/* GTGM NEXUS UI system v3 — shared visual language for desktop, mobile and login. */
:root {
  --ui-navy-950:#071d33;
  --ui-navy-900:#0b2948;
  --ui-navy-800:#123f6c;
  --ui-blue-700:#1f5fd0;
  --ui-blue-600:#2f6fed;
  --ui-blue-500:#4388f4;
  --ui-blue-100:#eaf2ff;
  --ui-surface:#ffffff;
  --ui-surface-muted:#f7f9fc;
  --ui-canvas:#f2f5f9;
  --ui-text:#14243a;
  --ui-muted:#687b91;
  --ui-line:#dce5ef;
  --ui-success:#07875a;
  --ui-warning:#ad7007;
  --ui-danger:#cf3f47;
  --ui-radius-sm:10px;
  --ui-radius:14px;
  --ui-radius-lg:18px;
  --ui-shadow-sm:0 2px 8px rgba(16,43,72,.05);
  --ui-shadow:0 12px 32px rgba(16,43,72,.08);
  --ui-shadow-lg:0 24px 64px rgba(8,31,55,.16);
}

button,a,input,select,textarea { transition:border-color .16s ease,background-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:3px solid rgba(67,136,244,.28);
  outline-offset:2px;
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; transition-duration:.01ms!important; animation-duration:.01ms!important; animation-iteration-count:1!important; }
}

/* System-generated values and user inputs must never look interchangeable. */
:root {
  --ui-field-entry-border:#8fb9e9;
  --ui-field-entry-accent:#2f73df;
  --ui-field-system-bg:#edf3f8;
  --ui-field-system-border:#aebdcb;
  --ui-field-system-text:#40566d;
}
input.field-user-editable,select.field-user-editable,textarea.field-user-editable,
input.field-user-required,select.field-user-required,textarea.field-user-required {
  border-color:var(--ui-field-entry-border)!important;
  background-color:#fff!important;
  color:var(--ui-text)!important;
  box-shadow:inset 3px 0 0 var(--ui-field-entry-accent)!important;
  cursor:text;
}
select.field-user-editable,select.field-user-required { cursor:pointer; }
input.field-user-editable:hover,select.field-user-editable:hover,textarea.field-user-editable:hover,
input.field-user-required:hover,select.field-user-required:hover,textarea.field-user-required:hover { border-color:#5f9fe9!important; }
input.field-user-editable:focus,select.field-user-editable:focus,textarea.field-user-editable:focus,
input.field-user-required:focus,select.field-user-required:focus,textarea.field-user-required:focus {
  border-color:#327ee1!important;
  background:#fff!important;
  box-shadow:inset 3px 0 0 var(--ui-field-entry-accent),0 0 0 3px rgba(47,115,223,.14)!important;
}
input.field-system-auto,select.field-system-auto,textarea.field-system-auto {
  border:1px dashed var(--ui-field-system-border)!important;
  background-color:var(--ui-field-system-bg)!important;
  color:var(--ui-field-system-text)!important;
  box-shadow:inset 0 1px 2px rgba(25,52,79,.045)!important;
  caret-color:transparent!important;
  cursor:default!important;
}
input.field-system-auto:focus,select.field-system-auto:focus,textarea.field-system-auto:focus {
  border-color:var(--ui-field-system-border)!important;
  outline:0!important;
  box-shadow:inset 0 1px 2px rgba(25,52,79,.045)!important;
}
input.field-unavailable,select.field-unavailable,textarea.field-unavailable {
  border-color:#d0d7df!important;
  background:repeating-linear-gradient(135deg,#f3f5f7,#f3f5f7 8px,#eef1f4 8px,#eef1f4 16px)!important;
  color:#788695!important;
  box-shadow:none!important;
  cursor:not-allowed!important;
  opacity:.88!important;
}
label.field-mode-system>span:first-child::after,
label.field-mode-user>span:first-child::after,
label.field-mode-required>span:first-child::after,
label.field-mode-unavailable>span:first-child::after {
  display:inline-flex;
  min-height:18px;
  align-items:center;
  margin-left:7px;
  border-radius:999px;
  padding:1px 7px;
  vertical-align:middle;
  font-size:9px;
  font-weight:900;
  line-height:1;
  letter-spacing:0;
}
label.field-mode-system>span:first-child::after { content:"系统自动"; border:1px solid #c5d0db; background:#e3eaf1; color:#52687d; }
label.field-mode-user>span:first-child::after { content:"可填写"; border:1px solid #bdd5f3; background:#edf5ff; color:#2469bf; }
label.field-mode-required>span:first-child::after { content:"必填"; border:1px solid #8ebbed; background:#e5f1ff; color:#145fba; }
label.field-mode-unavailable>span:first-child::after { content:"当前不可填写"; border:1px solid #d2d8df; background:#f0f2f4; color:#74818e; }
#gbsEditor .gbs-module-fields>label.field-mode-system,
#gbsEditor .gbs-form-grid>label.field-mode-system {
  border-style:dashed!important;
  border-color:#c5d1dc!important;
  background:linear-gradient(145deg,#f1f5f8,#eaf0f5)!important;
}
#gbsEditor .gbs-module-fields>label.field-mode-user,
#gbsEditor .gbs-module-fields>label.field-mode-required,
#gbsEditor .gbs-form-grid>label.field-mode-user,
#gbsEditor .gbs-form-grid>label.field-mode-required {
  border-color:#c7dcf4!important;
  background:#fff!important;
}
@media(max-width:600px){
  label.field-mode-system>span:first-child::after,label.field-mode-user>span:first-child::after,label.field-mode-required>span:first-child::after,label.field-mode-unavailable>span:first-child::after{min-height:16px;padding-inline:5px;font-size:8px}
}

/* Desktop application */
body:has(.app-shell) { color:var(--ui-text); background:var(--ui-canvas); }
.app-shell { grid-template-columns:232px minmax(0,1fr); background:var(--ui-canvas); }
.sidebar {
  width:232px;
  padding:18px 14px 16px;
  border-right:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 10% -5%,rgba(67,136,244,.32),transparent 26%),
    linear-gradient(180deg,#113a63 0%,var(--ui-navy-950) 72%);
  box-shadow:10px 0 34px rgba(8,31,55,.08);
}
.brand { min-height:54px; gap:11px; padding:3px 8px 16px; }
.brand-mark { width:38px; height:38px; filter:drop-shadow(0 7px 12px rgba(10,36,67,.3)); }
.brand strong { font-size:16px; letter-spacing:.01em; }
.brand small { color:#a9bfd4; font-size:11px; letter-spacing:.16em; }
.sidebar .nav { gap:6px; padding-right:3px; }
.nav button { border-radius:var(--ui-radius-sm); }
.nav>button[data-view="dashboard"],.nav .nav-group-toggle {
  min-height:48px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.045);
  font-size:14px;
}
.nav>button[data-view="dashboard"]:hover,.nav .nav-group-toggle:hover,.nav .nav-group-toggle.expanded { background:rgba(255,255,255,.1); }
.nav [data-nav-group-item] {
  height:38px;
  margin-left:8px;
  border-left:2px solid rgba(100,164,238,.34);
  border-radius:0 9px 9px 0;
  padding-left:20px;
  color:#b9ccde;
  font-size:12px;
}
.nav [data-nav-group-item]:hover { border-left-color:#70aaff; background:rgba(255,255,255,.07); color:#fff; }
.nav [data-nav-group-item].active {
  border-left-color:#91bcff;
  background:linear-gradient(90deg,rgba(48,112,237,.34),rgba(48,112,237,.1));
  color:#fff;
  box-shadow:none;
}
.nav .nav-standalone { min-height:48px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.045); font-size:14px; font-weight:900; }
.factory-card { padding:13px; border:1px solid rgba(255,255,255,.09); border-radius:13px; background:rgba(255,255,255,.075); box-shadow:inset 0 1px rgba(255,255,255,.04); }
.factory-card label { color:#8fa9c1; }
.scope-picker-button { min-height:42px; }

.main { padding:20px 24px 28px; background:linear-gradient(180deg,#f3f6fa 0%,#eef3f8 100%); }
.topbar { min-height:58px; margin-bottom:16px; }
.eyebrow { margin-bottom:5px; color:var(--ui-blue-600); font-size:11px; letter-spacing:.08em; }
h1 { color:var(--ui-text); font-size:28px; letter-spacing:-.025em; }
.top-actions { margin-left:auto; justify-content:flex-end; gap:10px; }
.language-switch,.mobile-link { border-color:#c9d8e9; border-radius:10px; box-shadow:var(--ui-shadow-sm); }
.mobile-link:hover { border-color:#94b9ef; background:#f5f9ff; transform:translateY(-1px); }
.sync-status { padding:6px 9px; border-radius:999px; background:#edf3f8; }
.sync-status.ready { background:#e7f7ef; }
.user-card { min-height:42px; }
.avatar { width:40px; height:40px; box-shadow:inset 0 1px rgba(255,255,255,.5); }

/* A quiet, opt-in music player for employee break time. */
.break-music { position:relative; z-index:40; height:36px; display:inline-flex; align-items:center; flex:0 0 auto; }
.break-music-toggle {
  width:36px;
  min-width:36px;
  height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid #c7d9eb;
  border-radius:10px;
  padding:0;
  background:#eef9ff;
  box-shadow:0 5px 14px rgba(25,89,150,.12);
  cursor:pointer;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.break-music-toggle:hover,.break-music.open .break-music-toggle { border-color:#7eb6e7; box-shadow:0 7px 17px rgba(28,112,182,.18); }
.break-music.playing .break-music-toggle { border-color:#61aae4; box-shadow:0 0 0 4px rgba(70,164,228,.14),0 8px 20px rgba(28,112,182,.2); }
.break-music-button-icon { width:100%; height:100%; display:block; object-fit:cover; }
.break-music-toggle-label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; }
.break-music-panel {
  width:340px;
  max-height:min(620px,calc(100vh - 78px));
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  overflow:auto;
  border:1px solid #cfdeee;
  border-radius:17px;
  padding:16px;
  background:rgba(255,255,255,.98);
  box-shadow:0 24px 70px rgba(8,37,69,.22);
  color:var(--ui-text);
  backdrop-filter:blur(18px);
}
.break-music-panel[hidden] { display:none!important; }
.break-music-head,.break-music-now,.break-music-progress,.break-music-controls,.break-music-volume,.break-music-library-head { display:flex; align-items:center; }
.break-music-head { justify-content:space-between; }
.break-music-head small,.break-music-head strong { display:block; }
.break-music-head small { color:#3f7cc3; font-size:8px; font-weight:950; letter-spacing:.18em; }
.break-music-head strong { margin-top:3px; color:#173655; font-size:16px; }
.break-music-head button { width:30px; height:30px; border:0; border-radius:8px; background:#f1f5fa; color:#61758c; font-size:19px; cursor:pointer; }
.break-music-now { gap:11px; margin-top:14px; border-radius:13px; padding:12px; background:linear-gradient(135deg,#e9f3ff,#f7faff); }
.break-music-now>span { width:44px; height:44px; flex:0 0 auto; display:grid; place-items:center; overflow:hidden; border-radius:12px; background:#e9f9ff; box-shadow:0 9px 20px rgba(29,99,207,.16); }
.break-music-now>span img { width:100%; height:100%; display:block; object-fit:cover; }
.break-music-now>div { min-width:0; }
.break-music-now small,.break-music-now strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.break-music-now small { color:#71869d; font-size:9px; }
.break-music-now strong { margin-top:5px; color:#193a5c; font-size:12px; }
.break-music-progress { gap:8px; margin-top:12px; }
.break-music-progress span { min-width:28px; color:#8191a4; font-size:8px; text-align:center; }
.break-music-progress input,.break-music-volume input { min-width:0; flex:1; accent-color:#2f75df; }
.break-music-controls { justify-content:center; gap:14px; margin:8px 0 11px; }
.break-music-controls button { width:34px; height:34px; border:1px solid #d8e3ee; border-radius:50%; background:#fff; color:#345a80; font-size:22px; line-height:1; cursor:pointer; }
.break-music-controls .break-music-play { width:46px; height:46px; border:0; background:linear-gradient(145deg,#347ff1,#1458ca); color:#fff; box-shadow:0 10px 24px rgba(26,96,206,.26); font-size:15px; }
.break-music-volume { gap:10px; border-top:1px solid #edf1f6; padding:10px 2px; color:#667c93; font-size:9px; font-weight:850; }
.break-music-library-head { justify-content:space-between; margin-top:4px; }
.break-music-library-head>span { color:#425b75; font-size:10px; font-weight:950; }
.break-music-upload { cursor:pointer; }
.break-music-upload>span { display:inline-flex; min-height:28px; align-items:center; border:1px solid #bed4ed; border-radius:8px; padding:0 9px; color:#1c66ba; background:#f4f8fe; font-size:9px; font-weight:900; }
.break-music-upload.uploading { pointer-events:none; opacity:.55; }
.break-music-library { display:grid; gap:6px; max-height:190px; margin-top:9px; overflow:auto; }
.break-music-library>p { margin:10px 0; color:#8292a4; font-size:9px; line-height:1.6; text-align:center; }
.break-music-track-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:6px; border:1px solid #e2e9f1; border-radius:9px; padding:5px 6px 5px 9px; background:#fbfcfe; }
.break-music-track-row.active { border-color:#8eb8ea; background:#edf5ff; }
.break-music-track-select { min-width:0; border:0; padding:2px 0; background:transparent; color:#27425e; text-align:left; cursor:pointer; }
.break-music-track-select strong,.break-music-track-select small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.break-music-track-select strong { font-size:10px; }
.break-music-track-select small { margin-top:3px; color:#8998a9; font-size:8px; }
.break-music-track-actions { display:flex; gap:2px; }
.break-music-track-actions button { width:25px; height:25px; border:0; border-radius:6px; padding:0; background:#eef3f8; color:#60758c; font-size:11px; cursor:pointer; }
.break-music-track-actions button[data-music-delete] { color:#b8494f; }
.break-music-note { margin:10px 0 0; color:#8a99aa; font-size:8px; line-height:1.5; text-align:center; }

.role-intro,.panel,.placeholder,.metrics article,.portfolio-metrics article,.leadership-chart-card,.division-card,.group-focus section {
  border-color:var(--ui-line);
  border-radius:var(--ui-radius);
  box-shadow:var(--ui-shadow-sm);
}
.panel { padding:18px; background:rgba(255,255,255,.98); }
.panel-head { min-height:48px; margin-bottom:14px; }
.panel-head h2 { color:#18304d; font-size:17px; letter-spacing:-.01em; }
.panel-head p { color:var(--ui-muted); line-height:1.5; }
.role-intro { border-color:#cfdef1; padding:12px 15px; background:linear-gradient(110deg,#edf5ff,#f8fbff); }
.business-portfolio,.orders-hero,.factory-output-hero {
  border:1px solid rgba(255,255,255,.15);
  border-radius:var(--ui-radius-lg);
  background:
    radial-gradient(circle at 92% 0,rgba(98,183,255,.38),transparent 34%),
    linear-gradient(115deg,#123e70 0%,#1d63bf 58%,#347fe9 100%);
  box-shadow:0 14px 30px rgba(24,91,167,.18);
}
.business-portfolio { padding:12px 18px; }
.business-portfolio h2 { font-size:19px; }
.business-scope-buttons { padding:4px; border:1px solid rgba(255,255,255,.08); border-radius:11px; }
.business-scope-buttons button { min-height:34px; border-radius:8px; }
.business-scope-buttons button.active { box-shadow:0 6px 16px rgba(5,36,72,.2); }

.metrics,.portfolio-metrics { gap:12px; }
.metrics article,.portfolio-metrics article { border-top-width:0; padding:15px 16px; background:linear-gradient(155deg,#fff,#f9fbfd); }
.metrics article::before,.portfolio-metrics article::before { content:""; width:28px; height:3px; margin-bottom:8px; border-radius:99px; background:var(--ui-blue-600); }
.metrics article.processing::before { background:#e2a021; }
.metrics article.completed::before { background:#18a06c; }
.metrics article.alert::before { background:#e04e54; }
.metrics strong,.portfolio-metrics strong { color:#173452; letter-spacing:-.02em; }

.toolbar { align-items:center; gap:9px; }
.toolbar input,.toolbar select,.panel-head input,.panel-head select {
  min-height:40px;
  border:1px solid #cdd9e7;
  border-radius:10px;
  background:#fbfcfe;
}
.toolbar input:focus,.toolbar select:focus,.panel-head input:focus,.panel-head select:focus {
  border-color:#79a8ef;
  background:#fff;
  box-shadow:0 0 0 3px rgba(67,136,244,.12);
}
.panel-head button,.toolbar button,.card-actions button,.dialog-actions button,.payment-batch-toolbar button {
  min-height:38px;
  border-radius:10px;
}
.panel-head button:hover,.toolbar button:hover,.card-actions button:hover,.dialog-actions button:hover { border-color:#9eb8d4; background:#f6f9fd; }
.panel-head button.primary,.toolbar button.primary,.card-actions .agree,.card-actions .pay,.dialog-actions .primary,.payment-batch-toolbar button.primary {
  border-color:var(--ui-blue-600);
  background:linear-gradient(135deg,var(--ui-blue-600),var(--ui-blue-700));
  color:#fff;
  box-shadow:0 8px 18px rgba(47,111,237,.18);
}
.panel-head button.primary:hover,.toolbar button.primary:hover,.card-actions .agree:hover,.card-actions .pay:hover,.dialog-actions .primary:hover { transform:translateY(-1px); box-shadow:0 11px 22px rgba(47,111,237,.24); }
button:disabled { box-shadow:none!important; transform:none!important; }

.table-wrap { border:1px solid #e2e9f1; border-radius:12px; background:#fff; }
table { background:#fff; }
thead th { position:sticky; top:0; z-index:2; height:39px; background:#f6f8fb; color:#65778c; font-size:10px; letter-spacing:.025em; }
th,td { height:46px; border-bottom-color:#e7edf3; padding:9px 10px; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover { background:#f4f8fe; }
td[colspan] { padding-top:38px; padding-bottom:38px; color:#8391a2; text-align:center; }
.tag,.status,.administration-status { min-height:24px; border-radius:999px; }
.pagination-bar { padding:13px 4px 2px; }
.pagination-bar button,.pagination-bar select { min-height:38px; border-radius:9px; }

dialog { border-radius:var(--ui-radius-lg)!important; box-shadow:var(--ui-shadow-lg)!important; }
dialog::backdrop { background:rgba(5,24,44,.5)!important; backdrop-filter:blur(8px); }
.dialog-head,.balance-dialog-head,.scope-picker-head { background:linear-gradient(120deg,#123e6f,#246dc3)!important; }
.toast { border-radius:11px; box-shadow:var(--ui-shadow); }
.initial-loading { background:radial-gradient(circle at 50% 42%,#fff 0,#eef4fc 38%,#e6eef8 100%); }
.initial-loading-card { border-color:#d5e3f4; border-radius:24px; box-shadow:0 24px 70px rgba(20,57,99,.13); }

/* Mobile web app */
body:has(.mobile-app) { background:#dfe9f5; }
.mobile-app { background:linear-gradient(180deg,#f6f9fd 0%,#edf3f9 100%); }
.mobile-header { border-bottom-color:rgba(208,220,233,.8); background:rgba(248,251,255,.88); box-shadow:0 5px 20px rgba(21,54,90,.06); }
.premium-hero { border-radius:0 0 22px 22px; }
.premium-weather-card,.premium-pulse-card,.premium-focus-card,.premium-insight,.quick-grid button,.request-card {
  border-color:rgba(210,222,235,.92)!important;
  background:rgba(255,255,255,.9)!important;
  box-shadow:0 10px 28px rgba(25,57,92,.07)!important;
}
.premium-weather-card,.premium-pulse-card,.premium-focus-card,.premium-insight,.request-card { border-radius:16px!important; }
.premium-focus-card { overflow:hidden; }
.premium-focus-foot button,.submit-button,.completion-feedback button {
  background:linear-gradient(135deg,var(--ui-blue-600),var(--ui-blue-700))!important;
  box-shadow:0 10px 22px rgba(47,111,237,.2)!important;
}
.quick-grid { gap:10px; }
.quick-grid button { min-height:92px; border-radius:15px!important; }
.quick-grid button:active,.premium-priority-row:active { transform:scale(.985); }
.bottom-nav { border-top-color:rgba(205,218,231,.92); background:rgba(252,253,255,.94); box-shadow:0 -10px 28px rgba(25,57,92,.08); }
.bottom-nav button { min-height:44px; }
.bottom-nav .add { background:linear-gradient(145deg,#4388f4,#1f5fd0); box-shadow:0 10px 24px rgba(47,111,237,.3); }
.form-card input,.form-card select,.form-card textarea { border-color:#cdd9e7; background:#fff; box-shadow:inset 0 1px 2px rgba(21,54,90,.025); }

/* Login */
body:has(.login-page) { background:#eef3f8; }
.login-page { background:linear-gradient(135deg,#eef4fb,#f8fafc); }
.login-brand {
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 12% 12%,rgba(76,142,240,.42),transparent 30%),
    radial-gradient(circle at 88% 90%,rgba(29,96,184,.3),transparent 34%),
    linear-gradient(150deg,#123e69 0%,#071d33 76%);
}
.login-brand::after { content:""; position:absolute; right:-160px; bottom:-160px; width:430px; height:430px; border:1px solid rgba(255,255,255,.12); border-radius:50%; box-shadow:0 0 0 70px rgba(255,255,255,.025),0 0 0 140px rgba(255,255,255,.018); }
.login-brand-lockup { position:relative; z-index:1; }
.login-brand h1 { color:#f7fbff; font-size:clamp(44px,5vw,64px); letter-spacing:-.035em; text-shadow:0 10px 30px rgba(0,0,0,.18); }
.login-brand-lockup>span { color:#c8ddf1; }
.login-panel { position:relative; }
.login-card { border-color:#dbe5ef; border-radius:20px; background:rgba(255,255,255,.94); box-shadow:0 24px 70px rgba(16,43,72,.12); }
.login-title>span { display:inline-flex; padding:5px 9px; border-radius:999px; background:var(--ui-blue-100); }
.login-title h2 { letter-spacing:-.02em; }
.login-card input { height:50px; border-radius:11px; background:#fbfcfe; }
.login-card input:focus { background:#fff; }
.login-button { height:50px; border-radius:11px; background:linear-gradient(135deg,var(--ui-blue-600),var(--ui-blue-700)); box-shadow:0 12px 24px rgba(47,111,237,.2); cursor:pointer; }
.login-button:hover { transform:translateY(-1px); box-shadow:0 15px 30px rgba(47,111,237,.26); }

@media (min-width:981px) and (max-width:1280px) {
  .app-shell { grid-template-columns:208px minmax(0,1fr); }
  .sidebar { width:208px; }
  .main { padding-right:18px; padding-left:18px; }
}
@media (min-width:821px) and (max-width:980px) {
  .app-shell { grid-template-columns:184px minmax(0,1fr); }
  .sidebar { width:184px; }
}
@media (max-width:820px) {
  .app-shell { grid-template-columns:1fr; }
  .sidebar { width:auto; }
  .main { padding:16px; }
  .topbar { align-items:flex-start; flex-direction:column; }
  .top-actions { width:100%; margin-left:0; justify-content:flex-start; flex-wrap:wrap; }
  .break-music-panel { position:fixed; top:74px; right:14px; width:min(340px,calc(100vw - 28px)); max-height:calc(100vh - 92px); }
}
@media (max-width:480px) {
  .login-card { border-radius:18px; }
  .mobile-app { padding-right:14px; padding-left:14px; }
}

/* v3 refinement — one visual system across every business workspace. */
body:has(.app-shell) {
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.brand-mark,.initial-loading-card img,.mobile-header .brand-mark,.notification-sheet>img {
  overflow:hidden;
  border-radius:22%;
  object-fit:cover;
  background:#eaf8ff;
}
.brand-mark { width:40px; height:40px; box-shadow:0 8px 20px rgba(34,122,179,.2); }
.initial-loading-card img { width:64px; height:64px; box-shadow:0 14px 30px rgba(42,142,202,.18); }

.main>.view.active:not(#view-dashboard) { gap:14px; }
.gbs-hero,.chemical-hero,.material-delivery-hero,.intercompany-hero,.settings-hero,
.factory-business-data-hero,.fixed-assets-hero {
  min-height:72px;
  box-sizing:border-box;
  margin-bottom:14px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:16px;
  padding:14px 20px;
  background:
    radial-gradient(circle at 92% 0,rgba(106,190,255,.28),transparent 36%),
    linear-gradient(112deg,#123f70 0%,#1d62bd 58%,#347fe9 100%);
  box-shadow:0 12px 28px rgba(24,91,167,.16);
}
.gbs-hero h2,.chemical-hero h2,.material-delivery-hero h2,.intercompany-hero h2,.settings-hero h2,
.factory-business-data-hero h2,.fixed-assets-hero h2 { letter-spacing:-.018em; }
.gbs-hero p,.chemical-hero p,.material-delivery-hero p,.intercompany-hero p,.settings-hero p,
.factory-business-data-hero p,.fixed-assets-hero p { max-width:880px; color:rgba(255,255,255,.82); line-height:1.45; }

.panel,.gbs-workbench,.material-order-board,.material-detail-panel,.intercompany-panel {
  border:1px solid #dce6f0;
  border-radius:15px;
  background:#fff;
  box-shadow:0 5px 18px rgba(22,55,92,.055);
}
.panel:hover { border-color:#d4e0ec; }
.panel-head { align-items:flex-start; gap:18px; }
.panel-head>div:first-child { min-width:0; }
.panel-head h2 { margin-bottom:5px; font-size:18px; line-height:1.25; }
.panel-head p { max-width:820px; margin:0; font-size:11px; }
.panel.full-panel>.panel-head { padding-bottom:13px; border-bottom:1px solid #edf1f5; }

.toolbar,.people-head-actions,.intercompany-filters,.material-hero-actions,.gbs-hero-actions,.intercompany-actions {
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.toolbar input[type="search"],.people-head-actions input[type="search"],.intercompany-filters input[type="search"] {
  min-width:260px;
  background:#f8fafc;
}
.main input:not([type="checkbox"]):not([type="radio"]),.main select,.main textarea {
  border-color:#cfdbe8;
  color:#1b3048;
}
.main input:not([type="checkbox"]):not([type="radio"]):hover,.main select:hover,.main textarea:hover { border-color:#afc3d9; }
.main input:not([type="checkbox"]):not([type="radio"]):focus,.main select:focus,.main textarea:focus {
  border-color:#4e8de5;
  outline:0;
  box-shadow:0 0 0 3px rgba(47,111,237,.11);
}
.main button.primary,.main a.primary,.dialog-actions .primary,.material-hero-actions .primary {
  border-color:#2866d6!important;
  background:linear-gradient(135deg,#347cf0,#1f5fcf)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(39,103,218,.2)!important;
}
.main button.primary:hover,.main a.primary:hover,.dialog-actions .primary:hover,.material-hero-actions .primary:hover {
  transform:translateY(-1px);
  box-shadow:0 11px 24px rgba(39,103,218,.26)!important;
}

/* Primary actions inside dark heroes use a white, high-contrast treatment. */
.gbs-hero>button,.gbs-hero-actions button.primary,.gbs-hero button.primary,.chemical-hero button.primary,.material-delivery-hero button.primary,
.intercompany-hero button.primary,.settings-hero button.primary,.fixed-assets-hero a.primary {
  border-color:rgba(255,255,255,.84)!important;
  background:#fff!important;
  color:#165fab!important;
  box-shadow:0 8px 20px rgba(3,32,70,.18)!important;
}
.gbs-hero>button:hover,.gbs-hero-actions button.primary:hover,.gbs-hero button.primary:hover,.chemical-hero button.primary:hover,.material-delivery-hero button.primary:hover,
.intercompany-hero button.primary:hover,.settings-hero button.primary:hover,.fixed-assets-hero a.primary:hover {
  background:#f5f9ff!important;
  box-shadow:0 11px 24px rgba(3,32,70,.24)!important;
}

.table-wrap { overflow:auto; border-color:#dfe7ef; border-radius:12px; }
.table-wrap table { min-width:100%; border-collapse:separate; border-spacing:0; }
thead th {
  height:42px;
  border-bottom:1px solid #dfe7ef;
  padding:10px 12px;
  background:#f6f8fb;
  color:#607389;
  font-size:10px;
  font-weight:850;
  letter-spacing:.02em;
  white-space:nowrap;
}
tbody td { height:48px; padding:10px 12px; color:#20364f; font-size:11px; vertical-align:middle; }
tbody tr:nth-child(even) { background:#fbfcfe; }
tbody tr:hover { background:#f1f6fd; }
td button { min-height:32px; border-radius:8px; }
td .empty,.empty { color:#7c8da1; line-height:1.55; }

.gbs-metrics,.module-summary { gap:12px; }
.gbs-metrics article,.module-summary article,.summary-grid article,.settings-stats span {
  border-color:#dce6f0;
  border-radius:13px;
  background:linear-gradient(145deg,#fff,#f8fbfe);
  box-shadow:0 4px 14px rgba(22,55,92,.045);
}
.gbs-metrics article strong,.module-summary article strong,.summary-grid article strong { letter-spacing:-.025em; }

.material-tabs,.chemical-editor-tabs,.settings-tabs {
  gap:4px;
  padding:5px;
  border:1px solid #dbe5ef;
  border-radius:12px;
  background:#eef3f8;
}
.material-tabs button,.chemical-editor-tabs button,.settings-tabs button { border:0; border-radius:9px; background:transparent; }
.material-tabs button.active,.chemical-editor-tabs button.active,.settings-tabs button.active {
  background:#fff;
  color:#1e63c8;
  box-shadow:0 5px 14px rgba(26,70,121,.1);
}

.master-form,.administration-form,.asset-transfer-form,.factory-create-form,.organization-create-form,
.gbs-form-section,.chemical-supplier-section,.order-field-group {
  border-color:#dbe5ef!important;
  border-radius:13px!important;
  background:#f9fbfd!important;
}
.master-form button.primary,.administration-form button.primary,.asset-transfer-form button.primary,
.factory-create-form button.primary,.organization-create-form button.primary { min-height:40px; border-radius:9px; }
.main label>span { color:#5f7288; font-weight:800; }

dialog { overflow:hidden; border:1px solid rgba(197,212,228,.72)!important; background:#f5f8fb!important; }
.dialog-head,.balance-dialog-head,.scope-picker-head {
  border-bottom:1px solid rgba(255,255,255,.14)!important;
  background:
    radial-gradient(circle at 90% 0,rgba(104,185,255,.25),transparent 34%),
    linear-gradient(115deg,#123f70,#246bc2)!important;
}
.dialog-actions { border-top:1px solid #dce5ef!important; background:rgba(255,255,255,.96)!important; backdrop-filter:blur(10px); }
.dialog-actions button { min-width:104px; }

.pagination-bar { border-top:1px solid #edf1f5; }
.pagination-bar button.active,.pagination-bar button[aria-current="page"] { border-color:#2f6fed; background:#2f6fed; color:#fff; }
.tag,.status,.gbs-status,.administration-status,.intercompany-status { padding-inline:9px; font-weight:850; }

/* Mobile keeps the same hierarchy with larger touch targets. */
.mobile-header .brand-mark { width:42px; height:42px; }
.mobile-app .screen.active { animation:ui-screen-in .18s ease-out; }
@keyframes ui-screen-in { from { opacity:.72; transform:translateY(3px); } to { opacity:1; transform:none; } }
.mobile-app .form-card,.mobile-app .request-card,.mobile-app .quick-grid button,.mobile-app .premium-focus-card {
  border:1px solid #d8e3ee!important;
  border-radius:17px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(22,55,92,.065)!important;
}
.mobile-app .form-card label>span { color:#5f7288; font-weight:850; }
.mobile-app .form-card input,.mobile-app .form-card select,.mobile-app .form-card textarea { min-height:46px; border-radius:11px; }
.mobile-app .submit-button { min-height:50px; border-radius:12px!important; }
.mobile-app .screen-title { min-height:54px; }
.mobile-app .screen-title h1 { font-size:20px; }

@media (max-width:1100px) {
  .panel-head { align-items:stretch; flex-direction:column; gap:11px; }
  .panel-head .toolbar,.panel-head .people-head-actions,.panel-head .intercompany-filters { width:100%; }
  .toolbar input[type="search"],.people-head-actions input[type="search"],.intercompany-filters input[type="search"] { min-width:180px; flex:1; }
}
@media (min-width:901px) {
  .material-order-board>.panel-head { align-items:flex-start; flex-direction:row; }
  .material-order-board>.panel-head .toolbar { width:auto; margin-left:auto; flex-wrap:nowrap; }
  .material-order-board>.panel-head .toolbar input[type="search"] { width:300px; min-width:300px; flex:none; }
  .material-order-board>.panel-head .toolbar select { width:180px; min-width:180px; flex:none; }
}
@media (max-width:720px) {
  .gbs-hero,.chemical-hero,.material-delivery-hero,.intercompany-hero,.settings-hero,
  .factory-business-data-hero,.fixed-assets-hero { align-items:flex-start; min-height:0; flex-direction:column; padding:16px; }
  .toolbar,.people-head-actions,.intercompany-filters,.material-hero-actions,.gbs-hero-actions,.intercompany-actions { width:100%; }
  .toolbar>* { flex:1 1 130px; }
  .toolbar input[type="search"],.people-head-actions input[type="search"],.intercompany-filters input[type="search"] { width:100%; min-width:100%; }
}

/* Center navigation — the blue GTGM gradient and card rhythm mirror the approved reference. */
.app-shell{grid-template-columns:232px minmax(0,1fr)}
.sidebar{
  width:232px;
  padding:20px 14px 16px;
  border-right:1px solid rgba(139,193,240,.18);
  background:
    radial-gradient(circle at 8% -8%,rgba(78,150,231,.12),transparent 28%),
    linear-gradient(180deg,#174d83 0%,#123d69 29%,#092b49 64%,#031c2f 100%);
  box-shadow:10px 0 32px rgba(5,29,52,.12),inset -1px 0 rgba(255,255,255,.04);
}
.sidebar .brand{
  min-height:56px;
  gap:11px;
  padding:0 8px 12px;
}
.sidebar .brand-mark{
  width:40px;
  height:40px;
  margin-top:-2px;
  filter:drop-shadow(0 7px 13px rgba(0,22,50,.38));
}
.sidebar .brand strong{
  color:#fff;
  font-size:16px;
  font-weight:900;
  letter-spacing:.01em;
}
.sidebar .brand small{
  margin-top:5px;
  color:#afc8df;
  font-size:11px;
  font-weight:750;
  letter-spacing:.23em;
}
.sidebar .center-navigation{
  flex:1;
  min-height:0;
  display:grid;
  align-content:start;
  gap:7px;
  overflow-x:hidden;
  overflow-y:auto;
  padding:0 4px 12px 0;
  overscroll-behavior:contain;
  scrollbar-width:none;
}
.sidebar .center-navigation::-webkit-scrollbar{display:none}
.center-nav-group{min-width:0}
.center-nav-button{
  width:100%;
  min-height:50px;
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(149,194,231,.17);
  border-left-width:1px;
  border-radius:11px;
  padding:0 16px;
  background:rgba(39,79,117,.5);
  box-shadow:inset 0 1px rgba(255,255,255,.025);
  color:#dceaf7;
  text-align:left;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
.center-nav-button:hover{
  border-color:rgba(166,208,243,.3);
  background:rgba(51,96,139,.66);
  color:#fff;
  transform:translateY(-1px);
}
.center-nav-button.active,.center-nav-group.expanded>.center-nav-button{
  border-color:#3d86ff;
  background:linear-gradient(135deg,#347cff 0%,#2366e5 100%);
  box-shadow:0 8px 18px rgba(18,79,184,.28),inset 0 1px rgba(255,255,255,.18);
  color:#fff;
}
.center-nav-button>img:not(.center-nav-chevron){display:none}
.center-nav-button>span{
  min-width:0;
  flex:1;
  overflow:hidden;
  color:inherit;
  font-size:15px;
  font-weight:800;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.center-nav-group-home .center-nav-button{
  justify-content:center;
  min-height:50px;
  text-align:center;
}
.center-nav-group-home{margin-bottom:4px}
.center-nav-group-home .center-nav-button>span{
  flex:0 1 auto;
  font-size:16px;
  font-weight:900;
}
.center-nav-chevron{
  width:15px;
  height:15px;
  flex:0 0 15px;
  filter:brightness(0) invert(1);
  opacity:.84;
  transition:transform .16s ease;
}
.center-nav-group.expanded .center-nav-chevron{transform:rotate(180deg);filter:brightness(0) invert(1);opacity:1}
.center-nav-panel{
  display:grid;
  gap:3px;
  margin:5px 4px 1px;
  padding:7px;
  border:1px solid rgba(147,193,230,.13);
  border-left:1px solid rgba(147,193,230,.13);
  border-radius:10px;
  background:rgba(2,22,39,.28);
}
.center-nav-panel[hidden]{display:none!important}
.center-nav-section{
  margin:7px 0 2px;
  padding:0 8px;
  color:#85a8c6;
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}
.center-nav-section:first-child{margin-top:2px}
.center-nav-link{
  width:100%;
  min-height:33px;
  border:0;
  border-radius:8px;
  padding:6px 9px;
  background:transparent;
  color:#bad0e3;
  font-size:11px;
  font-weight:750;
  line-height:1.35;
  text-align:left;
  cursor:pointer;
}
.center-nav-link:hover{background:rgba(73,133,196,.2);color:#fff}
.center-nav-link.active{background:rgba(64,132,233,.28);color:#fff}
.sidebar .factory-card{
  flex:0 0 auto;
  margin-top:8px;
  padding:14px;
  border:1px solid rgba(154,199,234,.18);
  border-radius:13px;
  background:rgba(40,74,106,.58);
  box-shadow:inset 0 1px rgba(255,255,255,.035);
}
.sidebar .factory-card label{
  margin-bottom:12px;
  color:#90aec8;
  font-size:11px;
  font-weight:700;
}
.sidebar .scope-picker-button{min-height:42px;color:#fff}
.sidebar .scope-picker-button span{font-size:12px;font-weight:850}
.sidebar .scope-picker-button>img{width:15px;height:15px;flex:0 0 15px;filter:brightness(0) invert(1);opacity:.9}
@media(min-width:821px){.sidebar{width:232px}}
@media(max-width:1100px) and (min-width:821px){
  .app-shell{grid-template-columns:218px minmax(0,1fr)}
  .sidebar{width:218px;padding-inline:11px}
}
@media(max-width:820px){
  .app-shell{grid-template-columns:1fr}
  .sidebar{width:auto;padding:14px;background:linear-gradient(135deg,#174d83 0%,#082b49 62%,#031c2f 100%)}
  .sidebar .brand{padding-bottom:12px}
  .sidebar .center-navigation{max-height:none;overflow:visible}
}
