/* Shared palette: readable ink, restrained blue actions, neutral work surfaces. */
:root{--brand-ink:#24384b;--brand-muted:#607286;--brand-blue:#245b82;--brand-blue-hover:#194766;--brand-soft:#eaf2f8;--brand-canvas:#f3f5f8;--brand-line:#d8e0e8;--ink:var(--brand-ink);--muted:var(--brand-muted);--paper:var(--brand-canvas);--line:var(--brand-line);--green:var(--brand-blue);--green-soft:var(--brand-soft);--lime:#cbddec;--shadow:0 4px 18px rgba(29,52,73,.05);color-scheme:light}
body{background:var(--brand-canvas)}
:is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid #3377a7;outline-offset:3px}
.shell.authenticated .sidebar{background:#edf2f6;border-right-color:var(--brand-line)}
.shell.authenticated .sidebar .brand b{color:#203f58}.shell.authenticated .sidebar .brand small{color:#526b80}
.shell.authenticated .sidebar .nav-item{color:#3d586e}.shell.authenticated .sidebar .nav-item i{color:#627e94}
.shell.authenticated .sidebar .nav-item:hover{background:#e0eaf2;color:#244e6b}
.shell.authenticated .sidebar .nav-item.active{background:var(--brand-blue);border-color:var(--brand-blue);color:#fff}
.shell.authenticated .sidebar .nav-item.active i{color:#fff}
.shell.authenticated .sidebar details.nav-disclosure>summary{color:#526a7f}
.shell.authenticated .sidebar details.nav-disclosure:has(.nav-item.active)>summary{color:#244e6b}
.shell.authenticated :is(.panel,.supply-card,.stat,.order-detail-panel,.order-list-panel){border-color:var(--brand-line);box-shadow:0 2px 10px rgba(29,52,73,.025)}
.shell.authenticated .btn.primary{background:var(--brand-blue);border-color:var(--brand-blue);color:#fff}
.shell.authenticated .btn.primary:hover{background:var(--brand-blue-hover);border-color:var(--brand-blue-hover)}
.shell.authenticated .btn.secondary{background:#fff;border-color:#cbd7e1;color:#36556e}
.shell.authenticated .workspace-tab[aria-selected="true"]{color:#1e527a;background:#eef4f9}
.shell.authenticated .workspace-tab[aria-selected="true"]::after{background:var(--brand-blue)}
.shell.authenticated .data-table th{background:#edf2f7;color:#425c73;border-color:var(--brand-line)}
.shell.authenticated .data-table td{border-color:#e0e6ed;color:#304b62}
.shell.authenticated .data-table tbody tr:hover{background:#edf4fa}
.shell.authenticated :is(.page-title p,.panel-intro,.order-role-note){color:#607286}
.shell.authenticated .notice.warning{background:#fcf2e5;color:#80511f;border-color:#ecd7b7}
.shell.authenticated>.sidebar-collapse-toggle{color:#36556e;border-color:#cbd7e1;background:#fff}
.desk-workspace{min-width:0}.desk-frame{width:100%;height:calc(100dvh - 150px);min-height:600px;display:block;border:1px solid var(--brand-line);border-radius:8px;background:var(--brand-canvas)}
.desk-frame[hidden]{display:none}.desk-status{padding:12px 16px;background:#fff;border:1px solid var(--brand-line);border-radius:6px;color:var(--brand-muted)}.desk-status[hidden]{display:none}
.landing-refresh{--lp-ink:#203c51;--lp-muted:#596e80;--lp-line:var(--brand-line);--lp-blue:var(--brand-blue);background:#f7f8fa;color:var(--lp-ink)}
.landing-refresh .landing-nav{background:#132e43;border-color:#304b61}
.landing-refresh .landing-links a{color:#dce7ef}.landing-refresh .landing-links a:hover{color:#fff}
.landing-refresh .landing-main .btn.primary{background:var(--brand-blue);border-color:var(--brand-blue);color:#fff}
.landing-refresh .feature-tabs [aria-selected="true"] span{color:#dce9f3}
.landing-refresh .landing-actions .btn.primary{background:#e8f1f8;border-color:#e8f1f8;color:#1f4d6e}
.landing-refresh .landing-proof{background:#eaf0f5;border-color:var(--brand-line);color:#4e687d}
.landing-refresh .landing-main{background:#f7f8fa}
.landing-refresh .feature-tabs [role="tab"][aria-selected="true"]{background:var(--brand-blue);border-color:var(--brand-blue);color:white}
.landing-refresh .landing-footer{background:#eaf0f5;border-color:var(--brand-line);color:#536b80}
.module-workspace{--ink:var(--brand-ink);--muted:var(--brand-muted);--line:var(--brand-line);--border:var(--brand-line);--teal:var(--brand-blue);--navy:#18374e;--bg:var(--brand-canvas);--paper:var(--brand-canvas);--green:var(--brand-blue);--lime:#e7f0f7;color:var(--brand-ink)}
.module-workspace body{background:var(--brand-canvas)}
.module-workspace :is(button.primary,.btn.primary,.button.primary){background:var(--brand-blue);border-color:var(--brand-blue);color:#fff}
.module-workspace :is(th){background:#edf2f7;color:#425c73}
.module-workspace :is(input,select,textarea){border-color:#cbd7e1;color:#29465c}
.module-workspace :is(.card,.panel,.metric,.stat){border-color:var(--brand-line)}
.module-workspace .sidebar{background:#18374e}.module-workspace .sidebar .nav.active,.module-workspace .sidebar .nav button.active{background:#e7f0f7;color:#244e6b}
/* Embedded tools keep their own functional navigation as a horizontal second level. */
.embedded-workspace .layout,.embedded-workspace .shell{display:block;min-height:100vh}
.embedded-workspace .sidebar{position:static;inset:auto;width:auto;height:auto;padding:10px 16px;display:flex;flex-direction:row;align-items:center;gap:4px;background:#fff;color:#486177;border:0;border-bottom:1px solid var(--brand-line);box-shadow:none}
.module-trade.embedded-workspace .sidebar{flex-wrap:wrap}
.module-trade.embedded-workspace .sidebar>div,.module-trade.embedded-workspace .sidebar .navlabel{display:none}
.module-trade.embedded-workspace .sidebar .nav{flex:0 0 auto;width:auto;min-height:38px;margin:0;padding:8px 12px;border:0;border-radius:5px;font-size:13px;color:#526b80;background:transparent}
.module-trade.embedded-workspace .sidebar .nav.active{background:#e7f0f7;color:#1e527a;font-weight:700}
.module-trade.embedded-workspace .main{grid-column:auto}
.module-trade.embedded-workspace .topbar{height:auto;min-height:50px;padding:10px 20px;justify-content:flex-end;gap:10px;flex-wrap:wrap;background:#f8fafc}
.module-trade.embedded-workspace .breadcrumb,.module-trade.embedded-workspace .avatar{display:none}
.module-trade.embedded-workspace .content{padding:20px}
.module-customs.embedded-workspace .brand,.module-customs.embedded-workspace .sidebar-back,.module-customs.embedded-workspace .side-bottom{display:none}
.module-customs.embedded-workspace .sidebar .nav{display:flex;gap:4px;overflow:auto;margin:0;width:100%}
.module-customs.embedded-workspace .sidebar .nav button{flex:0 0 auto;min-height:38px;padding:8px 12px;white-space:nowrap;border-radius:5px;color:#526b80;font-size:13px}
.module-customs.embedded-workspace .sidebar .nav button.active{background:#e7f0f7;color:#1e527a}
.module-customs.embedded-workspace .main{max-width:none;padding:20px}
.module-customs.embedded-workspace .top{margin-bottom:20px;padding-bottom:12px;justify-content:flex-end}
.module-customs.embedded-workspace .top>.eyebrow{display:none}
@media(max-width:740px){.desk-frame{height:calc(100dvh - 120px);min-height:540px;border-radius:5px}.embedded-workspace .sidebar{padding:8px}.module-trade.embedded-workspace .content,.module-customs.embedded-workspace .main{padding:14px}.module-trade.embedded-workspace .topbar{padding:10px 12px}.module-trade.embedded-workspace .topright{gap:8px;flex-wrap:wrap}.landing-refresh .landing-links{background:#132e43}}
@media print{.desk-frame{border:0;height:auto}.embedded-workspace .sidebar{display:none}}
