/* Consulting Flow — 03-estrutura.css · Estrutura do app: menu lateral, barra do topo, conteúdo, notificações
   Carregado na ordem 01→07 (ver CF_CSS em app/lib/core.php). Mexa só no arquivo do bloco. */
/* ================= ESTRUTURA DO APP ================= */
.app{min-height:100vh;}
.sidebar{position:fixed; inset:0 auto 0 0; width:var(--sb-w); background:var(--navy-900); color:#fff; display:flex; flex-direction:column; z-index:60; transition:width .22s ease, transform .22s ease; overflow:hidden;}
.sb-head{height:var(--top-h); display:flex; align-items:center; gap:12px; padding:0 17px; border-bottom:1px solid rgba(255,255,255,.07); flex-shrink:0;}
.sb-toggle{width:34px; height:34px; border-radius:9px; border:none; background:transparent; color:rgba(255,255,255,.75); display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; transition:background .15s;}
.sb-toggle:hover{background:rgba(255,255,255,.08); color:#fff;}
.sb-toggle svg{width:20px; height:20px;}
.sb-brand{display:flex; align-items:center; gap:10px; white-space:nowrap; opacity:0; transition:opacity .15s;}
.sb-brand .logomark{width:26px; height:26px;}
.sb-brand b{font-family:var(--font-title); font-size:13.5px; font-weight:700; letter-spacing:.3px;}
.sb-brand b span{color:var(--gold-light);}
.sb-nav{flex:1; overflow-y:auto; overflow-x:hidden; padding:12px 0;}
.sb-sec{font-size:10px; font-weight:700; letter-spacing:1.2px; text-transform:uppercase; color:rgba(255,255,255,.32); padding:14px 24px 6px; white-space:nowrap; height:34px; opacity:0; transition:opacity .15s;}
.sb-link{position:relative; display:flex; align-items:center; gap:14px; height:44px; margin:2px 10px; padding:0 14px; border-radius:10px; color:rgba(255,255,255,.62); white-space:nowrap; font-weight:600; font-size:13.5px; transition:background .15s, color .15s; cursor:pointer; border:none; background:none; width:calc(100% - 20px); text-align:left;}
.sb-link svg{width:20px; height:20px;}
.sb-link span{opacity:0; transition:opacity .12s;}
.sb-link:hover{background:rgba(255,255,255,.06); color:#fff;}
.sb-link.active{background:rgba(201,162,75,.14); color:#fff;}
.sb-link.active::before{content:''; position:absolute; left:-10px; top:10px; bottom:10px; width:3px; border-radius:0 3px 3px 0; background:var(--gold);}
.sb-link.active svg{color:var(--gold-light);}
.sb-link .sb-badge{position:absolute; left:30px; top:8px; min-width:16px; height:16px; padding:0 4px; border-radius:8px; background:var(--gold); color:var(--navy-950); font-size:9.5px; font-weight:800; display:flex; align-items:center; justify-content:center; opacity:1;}
.sb-foot{border-top:1px solid rgba(255,255,255,.07); padding:8px 0 12px; flex-shrink:0;}
html.sb-open .sidebar{width:var(--sb-w-open); box-shadow:12px 0 40px rgba(7,21,39,.25);}
html.sb-open .sb-brand, html.sb-open .sb-sec, html.sb-open .sb-link span{opacity:1;}
html.sb-open .sb-link .sb-badge{left:auto; right:12px; top:14px;}
.sb-backdrop{position:fixed; inset:0; background:rgba(7,21,39,.45); z-index:55; opacity:0; pointer-events:none; transition:opacity .2s;}
html.sb-open .sb-backdrop{opacity:1; pointer-events:auto;}
.sb-tip{position:fixed; z-index:80; background:var(--navy-950); color:#fff; font-size:12px; font-weight:600; padding:6px 10px; border-radius:7px; pointer-events:none; white-space:nowrap; box-shadow:0 6px 18px rgba(0,0,0,.25); opacity:0; transform:translateX(-4px); transition:opacity .12s, transform .12s;}
.sb-tip.show{opacity:1; transform:none;}

.main{margin-left:var(--sb-w); min-height:100vh; display:flex; flex-direction:column; transition:margin .22s ease;}
@media (min-width:1280px){ html.sb-open .main{margin-left:var(--sb-w-open);} html.sb-open .sb-backdrop{opacity:0; pointer-events:none;} html.sb-open .sidebar{box-shadow:none;} }

.topbar{position:sticky; top:0; z-index:40; height:var(--top-h); background:rgba(255,255,255,.92); backdrop-filter:saturate(1.4) blur(10px); -webkit-backdrop-filter:saturate(1.4) blur(10px); border-bottom:1px solid var(--line); display:flex; align-items:center; gap:14px; padding:0 28px;}
.tb-menu{display:none; width:38px; height:38px; border:1px solid var(--line); border-radius:10px; background:#fff; align-items:center; justify-content:center; cursor:pointer; color:var(--navy-900);}
.tb-menu svg{width:19px; height:19px;}
.tb-title{min-width:0; flex:1;}
.tb-title h1{font-size:16.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.tb-title p{font-size:11.5px; color:var(--ink-soft); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.tb-actions{display:flex; align-items:center; gap:8px;}
.tb-search{display:flex; align-items:center; gap:9px; height:38px; padding:0 12px; border:1px solid var(--line); border-radius:10px; background:var(--bg); color:var(--slate-400); font-size:12.5px; cursor:pointer; min-width:220px;}
.tb-search svg{width:15px; height:15px;}
.tb-search kbd{margin-left:auto; font-family:var(--font-body); font-size:10.5px; font-weight:700; border:1px solid var(--line-strong); border-radius:5px; padding:1px 5px; background:#fff; color:var(--ink-soft);}
.icon-btn{position:relative; width:38px; height:38px; border-radius:10px; border:1px solid var(--line); background:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; color:var(--navy-900); transition:border-color .15s;}
.icon-btn:hover{border-color:var(--line-strong);}
.icon-btn svg{width:18px; height:18px;}
.icon-btn .count{position:absolute; top:-5px; right:-5px; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--navy-900); color:#fff; font-size:10px; font-weight:800; display:flex; align-items:center; justify-content:center; border:2px solid #fff;}
.user-btn{display:flex; align-items:center; gap:9px; padding:4px 10px 4px 4px; border-radius:24px; border:1px solid var(--line); background:#fff; cursor:pointer;}
.avatar{width:30px; height:30px; border-radius:50%; background:var(--navy-900); color:var(--gold-light); font-family:var(--font-title); font-weight:700; font-size:11.5px; display:flex; align-items:center; justify-content:center; flex-shrink:0;}
.user-btn .who{font-size:12.5px; font-weight:700; line-height:1.15; text-align:left;}
.user-btn .who small{display:block; font-size:10.5px; color:var(--ink-soft); font-weight:500;}

.dropdown{position:absolute; top:calc(100% + 8px); right:0; min-width:250px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 18px 40px rgba(10,31,61,.14); padding:6px; z-index:70; display:none;}
.dropdown.open{display:block;}
.dd-wrap{position:relative;}
.dd-item{display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:8px; font-size:13px; font-weight:600; color:var(--ink); cursor:pointer; width:100%; border:none; background:none; text-align:left;}
.dd-item:hover{background:var(--bg);}
.dd-item svg{width:16px; height:16px; color:var(--slate-500);}
.dd-sep{height:1px; background:var(--line); margin:6px 4px;}
.dd-head{padding:8px 10px 10px; border-bottom:1px solid var(--line); margin-bottom:6px;}
.dd-head b{display:block; font-size:13px;} .dd-head small{font-size:11.5px; color:var(--ink-soft);}

.notif-panel{width:360px; max-width:calc(100vw - 24px); padding:0;}
.notif-head{display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-bottom:1px solid var(--line);}
.notif-head b{font-family:var(--font-title); font-size:13.5px;}
.notif-head button{border:none; background:none; color:var(--navy-700); font-size:12px; font-weight:700; cursor:pointer;}
.notif-list{max-height:380px; overflow-y:auto;}
.notif-item{display:flex; gap:10px; padding:11px 14px; border-bottom:1px solid var(--line); font-size:12.5px; cursor:pointer;}
.notif-item:last-child{border-bottom:none;}
.notif-item:hover{background:var(--bg);}
.notif-item i{width:7px; height:7px; border-radius:50%; background:var(--slate-300); margin-top:6px; flex-shrink:0;}
.notif-item.unread i{background:var(--gold);}
.notif-item.unread{background:#FCFBF7;}
.notif-item small{display:block; color:var(--slate-400); font-size:11px; margin-top:2px;}
.notif-empty{padding:28px 14px; text-align:center; color:var(--ink-soft); font-size:12.5px;}

.content{padding:26px 28px 56px; width:100%; max-width:1440px; margin:0 auto; flex:1;}
.content.narrow{max-width:980px;}
.content.wide{max-width:none;}   /* dashboard: usa a largura toda da tela */
