:root{--bg:#f3f5f7;--panel:#ffffff;--line:#d9dee5;--text:#243447;--muted:#6b7c93;--accent:#1f6fb2;--accent-2:#2f4050;--radius:6px}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:12px/1.4 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}.app{min-height:100vh;display:grid;grid-template-columns:220px minmax(0,1fr)}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:min(420px,100%);display:grid;gap:12px}.login-title{margin:0;font-size:24px}.login-form{display:grid;gap:10px}.login-error{color:#b44b4b;font-weight:600}.hidden{display:none!important}.sidebar{border-right:1px solid var(--line);background:#eee8de;padding:12px;display:grid;align-content:start;gap:12px}.brand,.panel,.notice{border:1px solid var(--line);border-radius:var(--radius);background:var(--panel)}.brand{padding:10px 12px}.brand-title{font-size:16px;font-weight:700}.brand-sub,.subtle,.status,.empty,.doc-meta{color:var(--muted);font-size:12px}.app-shell-legacy .nav{display:grid;gap:6px}.app-shell-legacy .nav-label{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em;margin:8px 4px 2px}.app-shell-legacy .nav a{border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:8px 10px}.app-shell-legacy .nav a.active{border-color:var(--accent);background:#f8fbff;box-shadow:inset 0 0 0 1px var(--accent);font-weight:600}.app-shell-legacy .nav a.pending{color:var(--muted);background:#f5f1ea}.main{padding:14px;display:grid;gap:12px}.header{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:10px 12px}.header-title{font-size:16px;font-weight:700}.searchbar{display:grid;grid-template-columns:minmax(180px,1fr) 180px 180px 110px;gap:8px;align-items:center}input,button,.btn{font:inherit;border:1px solid var(--line);border-radius:8px;padding:8px 10px;background:#fff;color:var(--text)}button,.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff;font-weight:600;cursor:pointer}.btn.secondary{background:#fff}.panel-head{padding:9px 12px;background:var(--panel2);border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;align-items:center}.panel-body{padding:10px 12px}.layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:12px}.product-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:12px}.workspace,.stack,.result-list{display:grid;gap:12px}.result-list{gap:8px}.result,.metric,.doc-card{border:1px solid var(--line);border-radius:8px;background:#fff;padding:8px 10px}.result .name,.doc-title{font-weight:700}.result .meta{color:var(--muted);font-size:12px;margin-top:3px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.metric .label{color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em}.metric .value{font-weight:700;font-size:16px;margin-top:4px}.chips,.actions{display:flex;gap:6px;flex-wrap:wrap}.chip,.badge{background:#fff;border:1px solid var(--line);border-radius:999px;padding:4px 8px;display:inline-block}.badge.safe{background:#ebf7ef;color:#1d7a46;border-color:#bfe0cc}.badge.unsafe{background:#fff0f0;color:#b44b4b;border-color:#e5c0c0}.badge.warn{background:#fff3df;color:#a86200;border-color:#e6c89b}table{width:100%;border-collapse:collapse}.inv-table th,.inv-table td,.intel-table th,.intel-table td,th,td{text-align:left;padding:7px 8px;border-bottom:1px solid var(--line);vertical-align:top}.inv-table th,.intel-table th,th{color:var(--muted);font-weight:600;background:#fbfaf7;text-transform:uppercase;letter-spacing:.04em;font-size:11px}.kv-tight th{width:130px}.num{text-align:right}.ctr{text-align:center}.grid-2,.grid-2-tight{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.notice{padding:10px 12px}.jsonbox{white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}@media(max-width:1100px){.app,.layout,.product-layout,.grid-2,.grid-2-tight{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:860px){.searchbar,.header{grid-template-columns:1fr}.metrics{grid-template-columns:1fr}}

/* GSA shell normalization */
body.fixed-nav.body-small, body.fixed-sidebar.full-height-layout.gray-bg.body-small, body, .gray-bg, #page-wrapper{background:#f4f6f8 !important;color:#233443 !important;font-family:"Open Sans",Arial,sans-serif;}#wrapper{min-height:100vh !important;}#page-wrapper{margin:0 0 0 220px !important;min-height:100vh !important;width:auto !important;overflow-x:hidden !important;}
.navbar-default.navbar-static-side{background:#243240 !important;width:220px !important;position:fixed !important;top:0 !important;left:0 !important;bottom:0 !important;height:100vh !important;z-index:2001 !important;overflow-y:hidden !important;}.sidebar-collapse{background:#243240 !important;width:220px !important;height:100vh !important;overflow-y:auto !important;overflow-x:hidden !important;scrollbar-gutter:stable;}
.nav-header{background:#1f2b36 !important;}
#side-menu > li > a, #side-menu .nav-second-level li a{display:block !important;padding:13px 18px 13px 22px !important;color:#d8e1ea !important;font-size:12px !important;font-weight:500 !important;background:transparent !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;}
#side-menu > li.active > a, #side-menu > li > a:hover, #side-menu .nav-second-level li a:hover{background:#1b2733 !important;color:#fff !important;}
#side-menu .nav-label{display:inline !important;margin:0 !important;color:inherit !important;text-transform:none !important;letter-spacing:0 !important;font-size:12px !important;}
#side-menu i{width:16px !important;text-align:center !important;margin-right:8px !important;}
#side-menu .fa.arrow{float:right !important;line-height:20px !important;}

#side-menu .nav-second-level, #side-menu .nav-second-level.collapse{display:none !important;height:auto !important;}
#side-menu > li.menu-open > .nav-second-level, #side-menu > li.menu-open > .nav-second-level.collapse{display:block !important;height:auto !important;}
#side-menu > li.has-submenu > a{cursor:pointer;}
#side-menu > li.has-submenu > a .fa.arrow{transition:transform .15s ease;}
#side-menu > li.menu-open > a .fa.arrow,
#side-menu > li.active > a .fa.arrow{transform:rotate(90deg);}
#side-menu .nav-second-level li a{padding-top:9px !important;padding-bottom:9px !important;font-size:11px !important;}
#side-menu > li > a{padding-top:11px !important;padding-bottom:11px !important;}
.navbar.navbar-fixed-top, .border-bottom{background:#ffffff !important;}
.navbar-header .navbar-minimalize.btn.btn-primary, .btn.btn-primary{background:#2f6ea3 !important;border-color:#2f6ea3 !important;}
.navbar-header .navbar-minimalize.btn.btn-primary:hover, .btn.btn-primary:hover{background:#275d8a !important;border-color:#275d8a !important;}
.welcome-message, .navbar-top-links li a{color:#667789 !important;}
.page-heading{background:#fff !important;border-bottom:1px solid #dbe3ea !important;padding:18px 10px 16px !important;}
.page-heading h2{font-size:22px !important;font-weight:600 !important;color:#233443 !important;margin:0 0 4px !important;}
.breadcrumb{background:transparent !important;padding:0 !important;margin:0 !important;font-size:11px !important;color:#667789 !important;}
.wrapper-content, .wrapper.wrapper-content{padding:20px !important;}
.ibox{background:#fff !important;border:1px solid #dbe3ea !important;border-radius:6px !important;box-shadow:0 1px 2px rgba(15,23,42,.05) !important;overflow:hidden !important;}
.ibox-title{background:#fff !important;border-bottom:1px solid #dbe3ea !important;padding:14px 16px !important;min-height:unset !important;}
.ibox-title h5{font-size:13px !important;font-weight:600 !important;letter-spacing:.02em !important;color:#233443 !important;margin:0 !important;}
.ibox-content{background:#fff !important;padding:16px !important;}
.searchrow, .searchbar, .filterbar, .compact-tools, .resultbar{gap:8px !important;}
.resultmeta, .submeta, .subaddr, .empty-state, .statusline, .chip-label{color:#667789 !important;font-size:11px !important;}
.form-control, .btn, .btn-group .btn{height:34px !important;border-radius:6px !important;font-size:12px !important;box-shadow:none !important;}
.form-control{border:1px solid #dbe3ea !important;color:#233443 !important;}
.btn.btn-white, .btn.btn-default{background:#fff !important;border:1px solid #dbe3ea !important;color:#233443 !important;}
.pagination > li > a, .pagination > li > span{border-color:#dbe3ea !important;color:#233443 !important;padding:5px 9px !important;font-size:11px !important;}
.table, .table-responsive{background:#fff !important;color:#233443 !important;}
.table > thead > tr > th{background:#f7f9fc !important;color:#667789 !important;border-bottom:1px solid #dbe3ea !important;font-size:10px !important;text-transform:uppercase !important;letter-spacing:.04em !important;padding:8px 10px !important;}
.table > tbody > tr > td{border-top:1px solid #edf2f7 !important;padding:8px 10px !important;vertical-align:middle !important;line-height:1.4 !important;font-size:12px !important;}
.table-striped > tbody > tr:nth-of-type(odd){background:#fbfcfd !important;}
.table-hover > tbody > tr:hover{background:#f4f8fb !important;}
.empty-state{padding:16px 12px !important;border:1px dashed #dbe3ea !important;border-radius:6px !important;background:#f8fafc !important;}
.statuspill{border:1px solid #dbe3ea !important;background:#fff !important;color:#667789 !important;border-radius:999px !important;padding:6px 10px !important;}
.statuspill.active{background:#eaf2fb !important;border-color:#2f6ea3 !important;color:#2f6ea3 !important;}
.table-label, .badge{border-radius:999px !important;padding:3px 8px !important;font-size:11px !important;font-weight:600 !important;border:1px solid transparent !important;}
.label-card{background:#eaf2fb !important;color:#2f6ea3 !important;}
.label-wire{background:#e8f6f6 !important;color:#2c7a7b !important;}
.label-other{background:#fff2df !important;color:#a66a1c !important;}
.label-approved{background:#eaf6ef !important;color:#2f8f63 !important;}
.label-pending{background:#fff6e5 !important;color:#b7791f !important;}
.label-rejected{background:#fdeeee !important;color:#c05656 !important;}
.panel.panel-default{border:1px solid #dbe3ea !important;border-radius:6px !important;box-shadow:none !important;}
.panel.panel-default .panel-heading{background:#f7f9fc !important;border-bottom:1px solid #dbe3ea !important;color:#233443 !important;font-weight:700 !important;}
.panel-body, .tab-content{background:#fff !important;}
.tabs-container .nav-tabs > li > a{color:#667789 !important;background:#fff !important;border:1px solid transparent !important;}
.tabs-container .nav-tabs > li.active > a{color:#2f6ea3 !important;border-color:#dbe3ea #dbe3ea #fff !important;background:#fff !important;}
@media (max-width:768px){
  .navbar-default.navbar-static-side,
  .sidebar-collapse{
    width:220px !important;
    position:fixed !important;
    top:0 !important;
    left:-220px !important;
    bottom:0 !important;
    z-index:2040 !important;
    overflow-y:auto !important;
  }
  body.sidebar-open .navbar-default.navbar-static-side,
  body.sidebar-open .sidebar-collapse,
  body.mini-navbar .navbar-default.navbar-static-side,
  body.mini-navbar .sidebar-collapse,
  body.canvas-menu .navbar-default.navbar-static-side,
  body.canvas-menu .sidebar-collapse{
    left:0 !important;
  }
  #page-wrapper,
  body.fixed-nav #page-wrapper,
  body.body-small #page-wrapper,
  body.fixed-sidebar #page-wrapper{
    margin:0 !important;
    width:100% !important;
    min-height:100vh !important;
  }
  .navbar-header .navbar-minimalize{
    display:inline-block !important;
  }
}

/* Shared AJ shell continuity layer */
.shell-nav-header .profile-element{
  padding:18px 20px !important;
}
.shell-nav-header .font-bold{
  font-size:13px !important;
  color:#fff !important;
}
.shell-nav-header .text-muted{
  color:#93a6b7 !important;
}
#side-menu > li.has-submenu > a{
  display:flex !important;
  align-items:center !important;
}
#side-menu > li.has-submenu > a .nav-label{
  flex:1 1 auto;
}
#side-menu > li.menu-open > a,
#side-menu > li.active > a{
  background:#18222d !important;
  color:#fff !important;
}
#side-menu > li.menu-open > .nav-second-level,
#side-menu > li.active > .nav-second-level{
  background:#1f2b36 !important;
}
#side-menu .nav-second-level li a{
  color:#aebccc !important;
  padding-left:48px !important;
}
#side-menu .nav-second-level li.active > a,
#side-menu .nav-second-level li a:hover{
  background:#203344 !important;
  color:#fff !important;
}
#side-menu .nav-second-level li a.pending{
  color:#7f93a6 !important;
}
.shell-soon{
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:1px 6px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.03em;
  background:#304455;
  color:#c3d2df;
}
.shell-global-bar{
  padding:0 16px !important;
  min-height:50px !important;
  display:flex !important;
  align-items:center !important;
  border-bottom:1px solid #dbe3ea !important;
}
.shell-topbar{
  width:100%;
  display:grid;
  grid-template-columns:auto minmax(320px,1fr) auto;
  gap:14px;
  align-items:center;
}
.shell-topbar-left{
  display:flex !important;
  align-items:center;
  gap:10px;
}
.shell-utility-icons{
  display:flex;
  gap:8px;
}
.shell-utility-icons a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:4px;
  color:#667789;
  background:#f7f9fc;
  border:1px solid #dbe3ea;
}
.shell-global-search{
  display:grid;
  grid-template-columns:160px 190px minmax(180px,1fr) 140px 56px;
  gap:8px;
  align-items:center;
  margin:0;
}
.shell-topbar-right{
  display:flex !important;
  align-items:center;
  gap:8px;
  margin:0 !important;
}
.shell-topbar-right li{
  float:none !important;
}
.shell-topbar-right a{
  color:#667789 !important;
}
.page-heading .title-action{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
@media (max-width:1100px){
  .shell-topbar{
    grid-template-columns:1fr;
  }
  .shell-topbar-right{
    justify-content:flex-end;
  }
}
@media (max-width:768px){
  .shell-global-bar{
    padding:8px 14px !important;
  }
  .shell-global-search{
    grid-template-columns:1fr;
  }
  .shell-topbar-right{
    justify-content:flex-start;
  }
}

/* AJ dark theme parity */
body.fixed-nav.body-small,
body.fixed-sidebar.full-height-layout.gray-bg.body-small,
body,
.gray-bg,
#page-wrapper,
.wrapper-content,
.wrapper.wrapper-content{
  background:#0b0f14 !important;
  color:#e5e7eb !important;
}
.navbar.navbar-fixed-top,
.border-bottom,
.page-heading,
.white-bg,
.ibox,
.ibox-title,
.ibox-content,
.customer-report,
.sales-report,
.invoice-report,
.payment-report,
.summary-card,
.action-card,
.queue-card,
.link-card,
.metric-card,
.home-card,
.home-note,
.panel.panel-default,
.panel-body,
.tab-content,
.form-control,
.btn.btn-white,
.btn.btn-default,
.statuspill,
.empty-state,
.pagination > li > a,
.pagination > li > span{
  background:#121821 !important;
  color:#e5e7eb !important;
  border-color:#273244 !important;
}
.page-heading h2,
.ibox-title h5,
.report-title,
.report-block,
.queue-title,
.link-card .title,
.home-card .title,
.metric-card .value,
.lane-row .lane-title,
.table,
.table-responsive,
.table > tbody > tr > td,
.table > thead > tr > th,
.breadcrumb,
.breadcrumb a,
.welcome-message,
.navbar-top-links li a,
.resultmeta,
.report-desc,
.report-block .muted,
.home-card .meta,
.home-note .meta,
.metric-card .sub,
.metric-card .label,
.lane-row .lane-meta,
.section-kicker,
.status-chip,
.submeta,
.subaddr,
.statusline,
.chip-label{
  color:#cbd5e1 !important;
}
.report-head,
.table > thead > tr > th,
.panel.panel-default .panel-heading,
.tabs-container .nav-tabs > li > a,
.report-row:hover,
.table-hover > tbody > tr:hover,
.table-striped > tbody > tr:nth-of-type(odd){
  background:#0f141d !important;
  color:#94a3b8 !important;
}
.page-heading,
.border-bottom,
.ibox-title,
.panel.panel-default .panel-heading,
.report-head,
.table > thead > tr > th{
  border-bottom-color:#273244 !important;
}
.table > tbody > tr > td,
.report-row,
.lane-row,
.panel.panel-default,
.ibox,
.customer-report,
.sales-report,
.invoice-report,
.payment-report,
.summary-card,
.action-card,
.queue-card,
.link-card,
.metric-card,
.home-card,
.home-note{
  border-color:#273244 !important;
}
.report-row:hover,
.action-link:hover,
#side-menu > li > a:hover,
#side-menu .nav-second-level li a:hover,
#side-menu .nav-second-level li.active > a,
.btn.btn-white:hover,
.btn.btn-default:hover{
  background:#17202b !important;
  color:#ffffff !important;
}
.form-control{
  background:#0f141d !important;
  color:#e5e7eb !important;
}
.form-control::placeholder,
input::placeholder{
  color:#7c8aa5 !important;
}
.btn.btn-primary,
.navbar-header .navbar-minimalize.btn.btn-primary{
  background:#4338ca !important;
  border-color:#4338ca !important;
  color:#f8fafc !important;
}
.btn.btn-primary:hover,
.navbar-header .navbar-minimalize.btn.btn-primary:hover{
  background:#4f46e5 !important;
  border-color:#4f46e5 !important;
}
.shell-global-bar{
  background:#0f141d !important;
  border-bottom-color:#273244 !important;
}
.shell-utility-icons a{
  background:#17202b !important;
  color:#cbd5e1 !important;
  border-color:#273244 !important;
}
.shell-topbar-right a,
.shell-topbar-right .welcome-message{
  color:#cbd5e1 !important;
  font-size:11px !important;
}
.statuspill.active{
  background:#1e1b4b !important;
  border-color:#4f46e5 !important;
  color:#c7d2fe !important;
}
.gsa-badge,
.lane-chip{
  background:#1e1b4b !important;
  color:#c7d2fe !important;
  border-color:#4f46e5 !important;
}
.shell-soon{
  background:#312e81 !important;
  color:#e0e7ff !important;
}
.queue-pill.good,.status-good{background:#052e1d !important;color:#86efac !important;}
.queue-pill.warn,.status-warning,.status-ask{background:#3b2a10 !important;color:#fcd34d !important;}
.queue-pill.bad,.status-critical{background:#3a1117 !important;color:#fda4af !important;}
.status-normal{background:#172554 !important;color:#93c5fd !important;}
.top-status .status-chip,
.status-chip{
  background:#121821 !important;
  border-color:#273244 !important;
  color:#cbd5e1 !important;
}
.summary-card,
.section-card,
.mini-card,
.create-form,
.metric,
.tab-pill,
.gsa-link,
.detail-toolbar .btn,
.hero-meta .metric,
.kv,
.create-status,
.dup-warning{
  background:#121821 !important;
  color:#e5e7eb !important;
  border-color:#273244 !important;
}
.summary-card h1,
.summary-card h2,
.summary-card h3,
.section-card h1,
.section-card h2,
.section-card h3,
.section-card h4,
.mini-card .mini-value,
.customer-name h2,
.kv div,
.kv div:nth-child(odd),
.kv div:nth-child(even),
.create-form h3,
.create-form .form-section,
.create-form label,
.create-form input,
.create-form select,
.tab-pill,
.gsa-link,
.metric .label,
.metric .value,
.metric .sub,
.mini-title,
.mini-card,
.detail-toolbar .btn,
.status-strip,
.text-muted{
  color:#e5e7eb !important;
}
.create-form input,
.create-form select{
  background:#0f141d !important;
  border-color:#273244 !important;
}
.create-form input::placeholder,
.create-form select::placeholder{
  color:#7c8aa5 !important;
}
.tab-pill{
  background:#121821 !important;
  border-color:#273244 !important;
}
.tab-pill.active,
.gsa-link,
.detail-toolbar .btn.btn-primary,
.detail-toolbar .gsa-link{
  background:#1e1b4b !important;
  border-color:#4f46e5 !important;
  color:#e0e7ff !important;
}
.label,
.label-primary,
.label-info,
.badge{
  background:#1e1b4b !important;
  color:#c7d2fe !important;
  border-color:#4f46e5 !important;
}
.create-status.saving{background:#172554 !important;color:#bfdbfe !important;border-color:#3b82f6 !important;}
.create-status.success{background:#052e1d !important;color:#86efac !important;border-color:#22c55e !important;}
.create-status.error{background:#3a1117 !important;color:#fda4af !important;border-color:#fb7185 !important;}
.dup-warning,.dup-warning .dup-title,.dup-warning .dup-list li,.dup-warning .dup-list li a{
  background:#3b2a10 !important;
  color:#fcd34d !important;
  border-color:#d97706 !important;
}


/* Dashboard/header cleanup + minimal topbar */
.shell-global-bar.shell-global-bar-minimal{
  padding:0 18px !important;
}
.shell-topbar.shell-topbar-minimal{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  width:100%;
  min-height:54px;
}
.shell-topbar-minimal .shell-topbar-spacer{
  flex:1 1 auto;
}
.shell-topbar-minimal .shell-topbar-right{
  margin-left:auto !important;
}
.shell-topbar-minimal .shell-topbar-right li,
.shell-topbar-minimal .shell-topbar-right a,
.shell-topbar-minimal .shell-topbar-right .welcome-message{
  color:#cbd5e1 !important;
}
.dashboard-page-heading{
  background:transparent !important;
  border-bottom:0 !important;
  padding:16px 10px 4px !important;
}
.dashboard-page-heading h2{
  font-size:22px !important;
  font-weight:700 !important;
  color:#f8fafc !important;
  margin:0 !important;
}
.dashboard-page-heading .dashboard-subtitle{
  margin-top:4px;
  color:#94a3b8 !important;
  font-size:11px;
}
@media (max-width:768px){
  .shell-global-bar.shell-global-bar-minimal{
    padding:8px 14px !important;
  }
}


/* Unified light theme for ERP/static shell */
body.theme-light,
body.theme-light .gray-bg,
body.theme-light #page-wrapper,
body.theme-light .wrapper-content,
body.theme-light .wrapper.wrapper-content{
  background:#f5f7fb !important;
  color:#111827 !important;
}
body.theme-light .navbar.navbar-fixed-top,
body.theme-light .border-bottom,
body.theme-light .page-heading,
body.theme-light .white-bg,
body.theme-light .ibox,
body.theme-light .ibox-title,
body.theme-light .ibox-content,
body.theme-light .customer-report,
body.theme-light .sales-report,
body.theme-light .invoice-report,
body.theme-light .payment-report,
body.theme-light .summary-card,
body.theme-light .action-card,
body.theme-light .queue-card,
body.theme-light .link-card,
body.theme-light .metric-card,
body.theme-light .home-card,
body.theme-light .home-note,
body.theme-light .panel.panel-default,
body.theme-light .panel-body,
body.theme-light .tab-content,
body.theme-light .statuspill,
body.theme-light .empty-state,
body.theme-light .pagination > li > a,
body.theme-light .pagination > li > span,
body.theme-light .section-card,
body.theme-light .mini-card,
body.theme-light .create-form,
body.theme-light .metric,
body.theme-light .tab-pill,
body.theme-light .gsa-link,
body.theme-light .detail-toolbar .btn,
body.theme-light .hero-meta .metric,
body.theme-light .kv,
body.theme-light .create-status,
body.theme-light .dup-warning{
  background:#ffffff !important;
  color:#111827 !important;
  border-color:#dbe3ef !important;
}
body.theme-light .page-heading h2,
body.theme-light .ibox-title h5,
body.theme-light .report-title,
body.theme-light .report-block,
body.theme-light .queue-title,
body.theme-light .link-card .title,
body.theme-light .home-card .title,
body.theme-light .metric-card .value,
body.theme-light .lane-row .lane-title,
body.theme-light .table,
body.theme-light .table-responsive,
body.theme-light .table > tbody > tr > td,
body.theme-light .table > thead > tr > th,
body.theme-light .breadcrumb,
body.theme-light .breadcrumb a,
body.theme-light .welcome-message,
body.theme-light .navbar-top-links li a,
body.theme-light .resultmeta,
body.theme-light .report-desc,
body.theme-light .report-block .muted,
body.theme-light .home-card .meta,
body.theme-light .home-note .meta,
body.theme-light .metric-card .sub,
body.theme-light .metric-card .label,
body.theme-light .lane-row .lane-meta,
body.theme-light .section-kicker,
body.theme-light .status-chip,
body.theme-light .submeta,
body.theme-light .subaddr,
body.theme-light .statusline,
body.theme-light .chip-label,
body.theme-light .shell-topbar-right .welcome-message,
body.theme-light .shell-topbar-right a,
body.theme-light .create-form label,
body.theme-light .mini-title,
body.theme-light .text-muted{
  color:#475467 !important;
}
body.theme-light .report-head,
body.theme-light .table > thead > tr > th,
body.theme-light .panel.panel-default .panel-heading,
body.theme-light .tabs-container .nav-tabs > li > a,
body.theme-light .report-row:hover,
body.theme-light .table-hover > tbody > tr:hover,
body.theme-light .table-striped > tbody > tr:nth-of-type(odd){
  background:#f8fafc !important;
  color:#475467 !important;
}
body.theme-light .page-heading,
body.theme-light .border-bottom,
body.theme-light .ibox-title,
body.theme-light .panel.panel-default .panel-heading,
body.theme-light .report-head,
body.theme-light .table > thead > tr > th,
body.theme-light .table > tbody > tr > td,
body.theme-light .report-row,
body.theme-light .lane-row,
body.theme-light .panel.panel-default,
body.theme-light .ibox,
body.theme-light .customer-report,
body.theme-light .sales-report,
body.theme-light .invoice-report,
body.theme-light .payment-report,
body.theme-light .summary-card,
body.theme-light .action-card,
body.theme-light .queue-card,
body.theme-light .link-card,
body.theme-light .metric-card,
body.theme-light .home-card,
body.theme-light .home-note,
body.theme-light .section-card,
body.theme-light .mini-card,
body.theme-light .create-form,
body.theme-light .metric,
body.theme-light .kv,
body.theme-light .dup-warning{
  border-color:#dbe3ef !important;
}
body.theme-light .form-control,
body.theme-light .create-form input,
body.theme-light .create-form select{
  background:#ffffff !important;
  color:#111827 !important;
  border-color:#d0d9e6 !important;
}
body.theme-light .form-control::placeholder,
body.theme-light input::placeholder,
body.theme-light .create-form input::placeholder,
body.theme-light .create-form select::placeholder{
  color:#667085 !important;
}
body.theme-light .btn.btn-white,
body.theme-light .btn.btn-default,
body.theme-light .detail-toolbar .btn,
body.theme-light .tab-pill,
body.theme-light .gsa-link{
  background:#ffffff !important;
  color:#111827 !important;
  border-color:#d0d9e6 !important;
}
body.theme-light .btn.btn-white:hover,
body.theme-light .btn.btn-default:hover,
body.theme-light .detail-toolbar .btn:hover,
body.theme-light .tab-pill:hover,
body.theme-light .gsa-link:hover,
body.theme-light #side-menu > li > a:hover,
body.theme-light #side-menu .nav-second-level li a:hover,
body.theme-light #side-menu .nav-second-level li.active > a{
  background:#eef2ff !important;
  color:#312e81 !important;
}
body.theme-light .btn.btn-primary,
body.theme-light .navbar-header .navbar-minimalize.btn.btn-primary,
body.theme-light .tab-pill.active,
body.theme-light .detail-toolbar .btn.btn-primary,
body.theme-light .detail-toolbar .gsa-link,
body.theme-light .statuspill.active,
body.theme-light .gsa-badge,
body.theme-light .lane-chip,
body.theme-light .label,
body.theme-light .label-primary,
body.theme-light .label-info,
body.theme-light .badge{
  background:#5b3df5 !important;
  border-color:#5b3df5 !important;
  color:#ffffff !important;
}
body.theme-light .shell-global-bar{
  background:#ffffff !important;
  border-bottom-color:#dbe3ef !important;
}
body.theme-light .navbar-default.navbar-static-side,
body.theme-light .sidebar-collapse{
  background:#ffffff !important;
  border-right:1px solid #dbe3ef !important;
}
body.theme-light .nav-header,
body.theme-light .shell-nav-header,
body.theme-light #side-menu > li.menu-open > .nav-second-level,
body.theme-light #side-menu > li.active > .nav-second-level{
  background:#f8fafc !important;
}
body.theme-light .shell-nav-header .font-bold,
body.theme-light #side-menu > li > a,
body.theme-light #side-menu .nav-label,
body.theme-light #side-menu i,
body.theme-light #side-menu .nav-second-level li a{
  color:#344054 !important;
}
body.theme-light #side-menu > li.menu-open > a,
body.theme-light #side-menu > li.active > a{
  background:#eef2ff !important;
  color:#312e81 !important;
}
body.theme-light .shell-nav-header .text-muted,
body.theme-light .shell-soon,
body.theme-light #side-menu .nav-second-level li a.pending{
  color:#667085 !important;
}
body.theme-light .shell-utility-icons a{
  background:#f8fafc !important;
  color:#475467 !important;
  border-color:#dbe3ef !important;
}
body.theme-light .empty-state,
body.theme-light .dup-warning,
body.theme-light .memo-box{
  background:#f8fafc !important;
  color:#475467 !important;
  border-color:#dbe3ef !important;
}
body.theme-light .status-normal{background:#eff6ff !important;color:#1d4ed8 !important;}
body.theme-light .queue-pill.good, body.theme-light .status-good{background:#ecfdf3 !important;color:#15803d !important;}
body.theme-light .queue-pill.warn, body.theme-light .status-warning, body.theme-light .status-ask{background:#fffbeb !important;color:#b45309 !important;}
body.theme-light .queue-pill.bad, body.theme-light .status-critical{background:#fef2f2 !important;color:#b91c1c !important;}


/* Unified admin shell parity */
#side-menu{
  padding:8px 12px 18px !important;
}
.shell-section-label{
  list-style:none !important;
  padding:13px 10px 7px !important;
  color:#7f8ea3 !important;
  font-size:10px !important;
  letter-spacing:.12em !important;
  text-transform:uppercase !important;
  font-weight:700 !important;
}
.shell-company-tag{
  margin-top:4px;
  display:block;
}
#side-menu > li{
  list-style:none !important;
}
#side-menu > li > a{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  margin:0 0 4px !important;
  padding:11px 12px !important;
  border-radius:12px !important;
  color:#d1d5db !important;
  background:transparent !important;
}
#side-menu > li > a i{
  width:18px !important;
  margin-right:0 !important;
}
#side-menu > li > a .nav-label{
  flex:1 1 auto !important;
  font-size:12px !important;
}
#side-menu > li.active > a,
#side-menu > li.menu-open > a{
  background:linear-gradient(135deg,#6d28d9,#8b5cf6) !important;
  color:#fff !important;
  box-shadow:0 10px 30px rgba(0,0,0,.25) !important;
}
#side-menu > li:not(.active):not(.menu-open) > a:hover{
  background:#1a2430 !important;
  color:#fff !important;
}
#side-menu > li.menu-open > .nav-second-level,
#side-menu > li.active > .nav-second-level{
  background:transparent !important;
  padding:4px 0 8px 0 !important;
}
#side-menu .nav-second-level li a{
  margin:0 0 4px 34px !important;
  padding:8px 12px !important;
  border-radius:10px !important;
  font-size:11px !important;
  color:#b9c4d3 !important;
  background:transparent !important;
}
#side-menu .nav-second-level li.active > a,
#side-menu .nav-second-level li a:hover{
  background:#202b38 !important;
  color:#fff !important;
}
#side-menu .fa.arrow{
  line-height:1 !important;
}
.shell-nav-header{
  background:transparent !important;
  border-bottom:1px solid #273244 !important;
  margin:0 0 12px !important;
}
.shell-nav-header .profile-element{
  padding:8px 10px 16px !important;
}
body.theme-light #side-menu{
  padding:8px 12px 18px !important;
}
body.theme-light .shell-section-label{
  color:#98a2b3 !important;
}
body.theme-light .shell-nav-header{
  border-bottom-color:#dbe3ef !important;
}
body.theme-light #side-menu > li > a{
  color:#344054 !important;
}
body.theme-light #side-menu > li.active > a,
body.theme-light #side-menu > li.menu-open > a{
  background:linear-gradient(135deg,#5b3df5,#7c5cff) !important;
  color:#fff !important;
}
body.theme-light #side-menu > li:not(.active):not(.menu-open) > a:hover{
  background:#eef2ff !important;
  color:#312e81 !important;
}
body.theme-light #side-menu .nav-second-level li a{
  color:#475467 !important;
}
body.theme-light #side-menu .nav-second-level li.active > a,
body.theme-light #side-menu .nav-second-level li a:hover{
  background:#eef2ff !important;
  color:#312e81 !important;
}


/* Shell list cleanup */
#side-menu li,
#side-menu .nav-second-level li,
.navbar-top-links li,
.shell-topbar-right li{
  list-style:none !important;
}
#side-menu .nav-second-level,
.navbar-top-links,
.shell-topbar-right{
  margin:0 !important;
  padding-left:0 !important;
}
#side-menu .nav-second-level li a{
  position:relative;
}
#side-menu .nav-second-level li a::before{
  content:'';
  position:absolute;
  left:12px;
  top:50%;
  width:6px;
  height:6px;
  margin-top:-3px;
  border-radius:999px;
  background:currentColor;
  opacity:.35;
}
#side-menu .nav-second-level li.active > a::before,
#side-menu .nav-second-level li a:hover::before{
  opacity:.75;
}


/* Remove redundant static page heading/breadcrumb bar */
body.shell-flat-page-heading .page-heading{
  display:none !important;
}
body.shell-flat-page-heading .wrapper.wrapper-content,
body.shell-flat-page-heading .wrapper-content{
  padding-top:16px !important;
}

/* GSA-inspired shell parity pass */
body.shell-rail #page-wrapper{
  margin-left:84px !important;
}
body.shell-full #page-wrapper{
  margin-left:220px !important;
}
body.shell-rail .navbar-default.navbar-static-side,
body.shell-rail .sidebar-collapse{
  width:84px !important;
}
body.shell-full .navbar-default.navbar-static-side,
body.shell-full .sidebar-collapse{
  width:220px !important;
}
body.shell-rail #side-menu{
  padding:10px 10px 18px !important;
}
body.shell-rail .shell-nav-header{
  margin-bottom:10px !important;
}
body.shell-rail .shell-nav-header .profile-element,
body.shell-rail .shell-section-label,
body.shell-rail #side-menu > li > a .nav-label,
body.shell-rail #side-menu > li > a .fa.arrow,
body.shell-rail #side-menu > li > a .shell-admin-inline,
body.shell-rail .shell-company-tag,
body.shell-rail #side-menu > li:not(.menu-open):not(.menu-hover-open):not(.active) > .nav-second-level,
body.shell-rail > #wrapper #side-menu > li.shell-section-label{
  display:none !important;
}
body.shell-rail .logo-element{
  display:flex !important;
  justify-content:center;
  align-items:center;
  min-height:38px;
  margin:0 0 8px !important;
  color:#fff !important;
  font-weight:700;
  letter-spacing:.08em;
}
body.shell-full .logo-element{
  display:none !important;
}
body.shell-rail #side-menu > li > a{
  justify-content:center !important;
  gap:0 !important;
  padding:12px 0 !important;
  margin:0 0 6px !important;
  border-radius:14px !important;
}
body.shell-rail #side-menu > li > a i{
  width:auto !important;
  font-size:16px !important;
}
body.shell-rail #side-menu > li.has-submenu.menu-open > a,
body.shell-rail #side-menu > li.has-submenu.menu-hover-open > a,
body.shell-rail #side-menu > li.active > a{
  background:linear-gradient(135deg,#2563eb,#60a5fa) !important;
  color:#fff !important;
}
body.shell-full #side-menu > li.active > a,
body.shell-full #side-menu > li.menu-open > a{
  background:linear-gradient(135deg,#2563eb,#60a5fa) !important;
  color:#fff !important;
}
body.shell-rail #side-menu > li{
  position:relative !important;
}
body.shell-rail #side-menu > li > .nav-second-level{
  position:absolute !important;
  left:86px !important;
  top:0 !important;
  min-width:224px !important;
  padding:10px !important;
  border:1px solid #273244 !important;
  border-radius:14px !important;
  background:#121821 !important;
  box-shadow:0 20px 45px rgba(2,6,23,.45) !important;
  z-index:2305 !important;
}
body.shell-rail #side-menu > li.menu-open > .nav-second-level,
body.shell-rail #side-menu > li.menu-hover-open > .nav-second-level,
body.shell-rail #side-menu > li.active.menu-open > .nav-second-level{
  display:block !important;
}
body.shell-rail #side-menu .nav-second-level li a{
  margin:0 0 5px 0 !important;
  padding:10px 12px 10px 28px !important;
  border-radius:10px !important;
  background:#0f141d !important;
  color:#dbe6f2 !important;
  border:1px solid transparent !important;
}
body.shell-rail #side-menu .nav-second-level li a::before,
body.shell-full #side-menu .nav-second-level li a::before{
  left:11px !important;
  width:7px !important;
  height:7px !important;
  opacity:.45 !important;
}
body.shell-rail #side-menu .nav-second-level li.active > a,
body.shell-rail #side-menu .nav-second-level li a:hover,
body.shell-full #side-menu .nav-second-level li.active > a,
body.shell-full #side-menu .nav-second-level li a:hover{
  background:#17202b !important;
  border-color:#334155 !important;
  color:#ffffff !important;
}
body.shell-full #side-menu > li > a{
  background:transparent !important;
}
body.shell-full #side-menu > li:not(.active):not(.menu-open) > a:hover{
  background:#18222d !important;
}
.shell-admin-inline{
  display:inline-block;
  margin-left:8px;
  color:#9fb1c3;
  font-size:11px;
  font-weight:500;
}
.shell-nav-header .font-bold{
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.shell-global-bar{
  padding:10px 18px !important;
  min-height:60px !important;
}
.shell-topbar{
  display:grid !important;
  grid-template-columns:auto minmax(420px,1fr) auto;
  gap:14px;
  align-items:center;
  width:100%;
}
.shell-topbar-left{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}
.shell-nav-toggle{
  width:36px;
  height:36px;
  padding:0 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:10px !important;
}
.shell-utility-icons{
  display:flex !important;
  gap:8px !important;
}
.shell-utility-icons a{
  width:34px !important;
  height:34px !important;
  border-radius:10px !important;
  background:#17202b !important;
  border:1px solid #273244 !important;
}
.shell-global-search{
  display:grid !important;
  grid-template-columns:150px 180px minmax(220px,1fr) 132px 46px !important;
  gap:8px !important;
  align-items:center !important;
  margin:0 !important;
}
.shell-global-search .form-control,
.shell-global-search .btn{
  height:36px !important;
  border-radius:10px !important;
}
.shell-topbar-right{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}
.shell-topbar-right .welcome-message,
.shell-topbar-right a{
  color:#cbd5e1 !important;
  font-size:11px !important;
}
body.shell-flat-page-heading .wrapper.wrapper-content,
body.shell-flat-page-heading .wrapper-content{
  padding-top:12px !important;
}
body.theme-light.shell-rail #side-menu > li.has-submenu.menu-open > a,
body.theme-light.shell-rail #side-menu > li.has-submenu.menu-hover-open > a,
body.theme-light.shell-full #side-menu > li.active > a,
body.theme-light.shell-full #side-menu > li.menu-open > a,
body.theme-light.shell-rail #side-menu > li.active > a{
  background:linear-gradient(135deg,#2563eb,#60a5fa) !important;
  color:#fff !important;
}
body.theme-light.shell-rail #side-menu > li > .nav-second-level{
  background:#ffffff !important;
  border-color:#dbe3ef !important;
  box-shadow:0 20px 45px rgba(15,23,42,.12) !important;
}
body.theme-light.shell-rail #side-menu .nav-second-level li a{
  background:#f8fafc !important;
  color:#344054 !important;
}
body.theme-light.shell-rail #side-menu .nav-second-level li.active > a,
body.theme-light.shell-rail #side-menu .nav-second-level li a:hover,
body.theme-light.shell-full #side-menu .nav-second-level li.active > a,
body.theme-light.shell-full #side-menu .nav-second-level li a:hover{
  background:#eef2ff !important;
  border-color:#dbe3ef !important;
  color:#1d4ed8 !important;
}
body.theme-light .shell-admin-inline{
  color:#667085 !important;
}
body.theme-light .shell-utility-icons a{
  background:#f8fafc !important;
  border-color:#dbe3ef !important;
  color:#475467 !important;
}
@media (max-width:1100px){
  body.shell-rail #page-wrapper,
  body.shell-full #page-wrapper{
    margin-left:220px !important;
  }
  body.shell-rail .navbar-default.navbar-static-side,
  body.shell-rail .sidebar-collapse{
    width:220px !important;
  }
  .shell-topbar{
    grid-template-columns:1fr !important;
  }
  .shell-topbar-right{
    justify-content:flex-end !important;
  }
}
@media (max-width:768px){
  body.shell-rail #page-wrapper,
  body.shell-full #page-wrapper{
    margin-left:0 !important;
  }
  .shell-global-search{
    grid-template-columns:1fr !important;
  }
  .shell-topbar-right{
    justify-content:flex-start !important;
    flex-wrap:wrap;
  }
}
