/* Navegação Hostr: mantém a identidade navy/coral e o conteúdo das telas. */
:root{--sidebar-width:236px;--shell-header:68px}
body{padding-left:var(--sidebar-width)}
.shell-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);z-index:130;background:#0b1930;color:#f6f2ec;display:flex;flex-direction:column;border-right:1px solid #24344e}
.shell-brand{padding:24px 22px 20px;display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.shell-brand img{width:88px;height:auto;object-fit:contain}
.shell-brand span{font-size:12px;color:#b4c3d5;padding-left:12px;border-left:1px solid #34425a}
.shell-workspaces{display:flex;gap:4px;margin:0 16px 20px;padding:4px;background:#152340;border:1px solid #34425a;border-radius:10px}
.shell-workspaces button{flex:1;min-height:36px;border:0;border-radius:7px;background:transparent;color:#b4c3d5;font:600 12px Inter,system-ui;cursor:pointer}
.shell-workspaces button[aria-pressed=true]{background:#f56044;color:#fff}
#secs-bar{display:flex;flex-direction:column;gap:6px;overflow-y:auto;padding:0 12px 20px;flex:1}
#secs-bar .sec{width:100%;min-height:44px;display:flex;align-items:center;gap:12px;padding:11px 14px;border:0;border-radius:9px;color:#b4c3d5;background:transparent;text-align:left;font:600 13px Inter,system-ui;cursor:pointer;position:relative}
#secs-bar .sec:hover{background:#1a2b46;color:#fff}
#secs-bar .sec.on{background:#26354d;color:#fff}
#secs-bar .sec.on .shell-icon{color:#ff927a}
.shell-icon{width:19px;height:19px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#secs-bar .sec[data-n]:not([data-n=""])::after{content:attr(data-n);margin-left:auto;position:static;background:#f56044;color:white;font-size:11px;border-radius:5px;padding:2px 6px}
.shell-foot{padding:16px 22px;border-top:1px solid #24344e;color:#b4c3d5;font-size:12px;line-height:1.6}
.shell-foot strong{display:block;color:#fff;font-weight:600}
.shell-menu{display:none}
.hdr{min-height:var(--shell-header);padding:12px 24px;flex-wrap:wrap}
.hdr>.logo,.hdr>img{display:none}
.shell-location{display:flex;flex-direction:column;gap:4px;min-width:130px;margin-right:auto}
.shell-location small{font-size:11px;color:#b4c3d5}
.shell-location strong{color:#fff;font-size:16px;line-height:1.3;font-weight:600}
.hdr-r{margin-left:8px}
.tabs-wrap{top:var(--shell-header);background:var(--navy2);border-bottom:1px solid var(--bdr);z-index:90}
.sec-subs{display:flex;flex-direction:column;gap:2px;margin:2px 0 6px 26px;padding-left:10px;border-left:1px solid #2a3c58}
.sec-subs .sec-sub{all:unset;box-sizing:border-box;min-height:36px;display:flex;align-items:center;padding:7px 10px;border-radius:7px;color:#9fb0c4;font:500 12.5px Inter,system-ui;cursor:pointer}
.sec-subs .sec-sub:hover{background:#1a2b46;color:#fff}
.sec-subs .sec-sub.on{color:#fff;background:#1f2f49;box-shadow:inset 2px 0 0 #f56044}
.sec-subs .sec-sub:focus-visible{outline:2px solid #ff927a;outline-offset:1px}
@media(min-width:901px){#tabs-bar{display:none!important}}
#tabs-bar{padding:0 24px;min-height:48px;align-items:center;background:var(--navy2);gap:6px;overflow-x:auto}
#tabs-bar .tab{min-height:44px;color:var(--t2);padding:10px 12px;font-size:12px;border-bottom:2px solid transparent;border-radius:0;background:transparent;flex-shrink:0}
#tabs-bar .tab.on{color:var(--cru);border-color:var(--coral);background:transparent}
#tabs-bar .tab:hover{color:var(--cru);background:var(--navy3)}
.tabs-fade{display:none!important}
.shell-backdrop{display:none}
.shell-close{display:none}
.shell-sidebar button:focus-visible,.shell-menu:focus-visible,#tabs-bar .tab:focus-visible{outline:2px solid #ff927a;outline-offset:2px}
.shell-sync{background:transparent;border:0;color:#b4c3d5;font:inherit;cursor:pointer;text-align:left;padding:0}
.sync-partial{color:#ffbf7a!important}
.source-status{max-width:600px;width:calc(100% - 32px);max-height:80vh;padding:24px;background:var(--navy2);color:var(--cru);border:1px solid var(--bdr);border-radius:14px;margin:auto}
.source-status::backdrop{background:rgba(4,13,27,.65)}
.source-status h2{font-size:20px;margin-bottom:8px}
.source-status p{color:var(--t2);font-size:13px;line-height:1.6;margin-bottom:16px}
.source-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--bdr);font-size:12px}
.source-row small{display:block;color:var(--t2);margin-top:4px}
.source-state{white-space:nowrap;color:var(--ok)}
.source-state.stale,.source-state.missing{color:var(--warn)}
.source-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.source-actions button{min-height:40px}
.fin-scope{font-size:12px;color:var(--t2);line-height:1.6;margin:0 0 18px;padding:12px 0;border-bottom:1px solid var(--sep)}
.fin-scope strong{color:var(--cru);font-weight:600}
.fin-base{display:inline-flex;border:1px solid var(--bdr);border-radius:8px;overflow:hidden;margin:0 8px 6px 0;vertical-align:middle}
.fin-base button{all:unset;cursor:pointer;font-size:12px;padding:5px 10px;color:var(--t2)}
.fin-base button.on{background:#f56044;color:#fff;font-weight:600}
.fin-base button:focus-visible{outline:2px solid #f56044;outline-offset:-2px}
.fin-reconcile{margin-top:14px;padding-top:10px;border-top:1px solid var(--sep);font-size:12px;line-height:1.6;color:var(--t2)}
.fin-reconcile b{color:var(--cru)}
@media(max-width:1180px){
  :root{--sidebar-width:208px}
  .hdr{padding:12px 16px;gap:8px}
  .hdr-r{gap:4px}.hdr-r>.hdr-div{display:none}
  #sync-status{max-width:130px;white-space:normal}
  .shell-location{min-width:100px}
}
@media(max-width:900px){
  body{padding-left:0}
  .shell-sidebar{transform:translateX(-100%);transition:transform .18s ease-out;width:260px;z-index:310}
  body.shell-open .shell-sidebar{transform:translateX(0)}
  body.shell-open{overflow:hidden}
  body.shell-open .shell-backdrop{display:block;position:fixed;inset:0;background:rgba(4,13,27,.6);border:0;z-index:300}
  .shell-menu{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;background:#152340;color:white;border:1px solid #34425a;border-radius:8px;cursor:pointer}
  .shell-close{display:block;position:absolute;right:8px;top:8px;background:transparent;color:#b4c3d5;border:0;width:36px;height:36px;font-size:22px;cursor:pointer}
  .hdr{padding:10px 12px}
  .shell-location{min-width:0}.shell-location strong{font-size:14px}
  .hdr-r{margin-left:auto}
  .hdr-r>a,.hdr-r>.hdr-more,.hdr-r>.hdr-sair,.hdr-r>.btn-icon:first-child{display:none}
  .sync-row{flex-direction:column;align-items:flex-end;gap:3px}
  #sync-btn{min-height:32px;font-size:11px}
  #sync-status{font-size:10px;max-width:140px}
  #hdr-filters{width:100%;order:3}
  #hdr-filters select{min-height:40px;flex:1;min-width:0;font-size:14px}
  #tabs-bar{padding:0 12px}
}
@media(prefers-reduced-motion:reduce){.shell-sidebar{transition:none}}
@media print{body{padding-left:0}.shell-sidebar,.shell-menu,.shell-backdrop,.tabs-wrap,.hdr{display:none!important}}
