/* Gersey Corporate theme — one visual system for the whole workspace.
   Replaces the former desktop-premium.css and liquid-glass.css layers.
   Flat surfaces, hairline borders, navy + restrained gold accent, tabular numbers. */
:root{
  --c-navy-950:#071731;--c-navy-900:#0A1E3F;--c-navy-800:#12305E;--c-navy-700:#1B3F78;
  --c-primary:#1C4F9C;--c-primary-hover:#163F7E;--c-primary-soft:#EAF0F9;
  --c-gold:#C9A54C;--c-gold-soft:#F7F0DE;
  --c-canvas:#F4F6F9;--c-surface:#FFFFFF;--c-subtle:#F8F9FB;
  --c-line:#E4E8EF;--c-line-strong:#CFD6E1;
  --c-ink:#0F1E36;--c-ink-2:#33425B;--c-muted:#66758C;
  --c-success:#137A4E;--c-success-soft:#E7F4EE;
  --c-warn:#A85F00;--c-warn-soft:#FBF1E1;
  --c-danger:#B3261E;--c-danger-soft:#FBEAE9;
  --r-sm:8px;--r-md:10px;--r-lg:14px;
  --sh-1:0 1px 2px rgba(15,30,54,.05),0 1px 3px rgba(15,30,54,.04);
  --sh-2:0 8px 28px rgba(15,30,54,.10),0 2px 6px rgba(15,30,54,.05);
  --ring:0 0 0 3px rgba(28,79,156,.18);
}
@media screen{
  /* ---------- Base ---------- */
  body{background:var(--c-canvas);color:var(--c-ink);font-feature-settings:"tnum" 1;-webkit-font-smoothing:antialiased}
  .enterprise-shell{
    --brand:var(--c-primary);--brand-deep:var(--c-navy-900);--brand-bright:var(--c-primary);
    --canvas:var(--c-canvas);--surface:var(--c-surface);--soft:var(--c-primary-soft);
    --line:var(--c-line);--ink:var(--c-ink);--muted:var(--c-muted);--gold:var(--c-gold);
    background:var(--c-canvas)!important;
  }
  .enterprise-shell :focus-visible{outline:2px solid var(--c-primary);outline-offset:2px}
  .enterprise-shell h1{font-size:26px;font-weight:700;letter-spacing:-.4px;color:var(--c-ink);line-height:1.35}
  .enterprise-shell h2{font-size:17px;font-weight:700;color:var(--c-ink)}
  .enterprise-shell h3{font-size:15px;font-weight:700;color:var(--c-ink)}
  .enterprise-shell .muted{color:var(--c-muted)}
  .enterprise-shell .heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--c-line)}
  .enterprise-shell .heading p{margin:0}
  .enterprise-shell .eyebrow{font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--c-gold);margin-bottom:2px}

  /* ---------- Sidebar ---------- */
  .enterprise-shell .sidebar{
    background:var(--c-navy-900)!important;border:0!important;box-shadow:none!important;
    padding:20px 12px 14px;gap:10px;color:#C9D3E3;
  }
  .enterprise-shell .workspace-brand{border-bottom:1px solid rgba(255,255,255,.08)!important;padding:4px 10px 16px;margin-bottom:6px}
  .enterprise-shell .workspace-brand strong{color:#fff;font-size:20px;font-weight:700;letter-spacing:-.3px}
  .enterprise-shell .workspace-brand small{color:var(--c-gold);font-size:11px;font-weight:600;letter-spacing:.02em}
  .enterprise-shell .nav button,
  .enterprise-shell .workspace-nav-group>summary{
    display:flex;align-items:center;gap:10px;min-height:40px;padding:8px 12px;margin:0 0 2px;
    border:0;border-inline-start:3px solid transparent!important;border-radius:var(--r-sm)!important;
    background:transparent!important;box-shadow:none!important;color:#C3CEDF!important;
    font-size:14px;font-weight:500;transform:none!important;transition:background .15s ease,color .15s ease;
  }
  .enterprise-shell .workspace-nav-group>summary{cursor:pointer;list-style:none;font-weight:600;color:#E3E9F3!important}
  .enterprise-shell .workspace-nav-group>summary::-webkit-details-marker{display:none}
  .enterprise-shell .nav button:hover,
  .enterprise-shell .workspace-nav-group>summary:hover{background:rgba(255,255,255,.06)!important;color:#fff!important}
  .enterprise-shell .nav button.active{
    background:rgba(255,255,255,.10)!important;color:#fff!important;font-weight:700;
    border-inline-start-color:var(--c-gold)!important;
  }
  .enterprise-shell .workspace-nav-group,.enterprise-shell .workspace-nav-group[open]{background:none!important;box-shadow:none!important;margin-bottom:2px}
  .enterprise-shell .workspace-nav-links{padding-inline-start:14px;margin-inline-start:10px;border-inline-start:1px solid rgba(255,255,255,.08)}
  .enterprise-shell .workspace-nav-links button{font-size:13.5px;min-height:36px}
  .enterprise-shell .nav-icon{color:#8FA3C2;opacity:1}
  .enterprise-shell .nav button.active .nav-icon,.enterprise-shell .nav button:hover .nav-icon{color:var(--c-gold)}
  .enterprise-shell .workspace-side-user{border-top:1px solid rgba(255,255,255,.08);padding-top:12px}
  .enterprise-shell .workspace-side-user strong{color:#fff}
  .enterprise-shell .workspace-side-user small{color:#8FA3C2}
  .enterprise-shell .side-bottom button{
    background:transparent!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:none!important;
    color:#C3CEDF!important;border-radius:var(--r-sm)!important;padding:7px 10px;font-size:12.5px;font-weight:500;
    display:inline-flex;align-items:center;gap:6px;
  }
  .enterprise-shell .side-bottom button:hover{background:rgba(255,255,255,.06)!important;color:#fff!important}
  .enterprise-shell .side-bottom{flex-wrap:wrap}
  #sound-toggle[aria-pressed=false]{opacity:.6}
  .enterprise-shell .workspace-nav-close{background:transparent!important;border:0!important;box-shadow:none!important;color:#8FA3C2!important}
  .enterprise-shell .avatar{background:var(--c-primary-soft);color:var(--c-primary);font-weight:700}
  .enterprise-shell .sidebar .avatar{background:rgba(201,165,76,.16);color:var(--c-gold)}

  /* ---------- Topbar ---------- */
  .enterprise-shell .topbar{
    background:var(--c-surface)!important;border:0!important;border-bottom:1px solid var(--c-line)!important;
    box-shadow:none!important;color:var(--c-ink);min-height:64px;backdrop-filter:none!important;
  }
  .enterprise-shell .topbar :is(.workspace-heading strong,.workspace-user b,.workspace-user strong){color:var(--c-ink)!important}
  .enterprise-shell .topbar :is(.workspace-heading small,.workspace-user small){color:var(--c-muted)!important}
  .enterprise-shell .topbar .workspace-logos{padding-inline:6px;border-inline:1px solid var(--c-line)}

  /* ---------- Buttons ---------- */
  .enterprise-shell :is(.main,.topbar) button:where(:not(.sort-heading,.name-link,.exec-text-button)),
  dialog button:where(:not(.sort-heading,.name-link,.close)){
    background:var(--c-primary);color:#fff;border:1px solid var(--c-primary);border-radius:var(--r-md);
    box-shadow:none;text-shadow:none;font-weight:600;transform:none;filter:none;
    transition:background .15s ease,border-color .15s ease,color .15s ease;
  }
  .enterprise-shell :is(.main,.topbar) button:where(:not(.sort-heading,.name-link,.exec-text-button,:disabled)):hover,
  dialog button:where(:not(.close,:disabled)):hover{background:var(--c-primary-hover);border-color:var(--c-primary-hover);filter:none;transform:none}
  .enterprise-shell :is(.main,.topbar) button.secondary,dialog button.secondary,
  .enterprise-shell .tabs button{
    background:var(--c-surface)!important;color:var(--c-ink-2)!important;border:1px solid var(--c-line-strong)!important;
  }
  .enterprise-shell :is(.main,.topbar) button.secondary:not(:disabled):hover,dialog button.secondary:not(:disabled):hover,
  .enterprise-shell .tabs button:hover{background:var(--c-subtle)!important;border-color:#B9C3D2!important}
  .enterprise-shell .tabs button.active{background:var(--c-navy-900)!important;color:#fff!important;border-color:var(--c-navy-900)!important}
  .enterprise-shell .main button.danger,dialog button.danger{
    background:var(--c-danger-soft)!important;color:var(--c-danger)!important;border:1px solid #F1C9C6!important;
  }
  .enterprise-shell .main button.danger:not(:disabled):hover,dialog button.danger:not(:disabled):hover{background:#F7DAD8!important}
  .enterprise-shell button.small{padding:6px 12px;font-size:12.5px;border-radius:var(--r-sm)!important}

  /* ---------- Form controls ---------- */
  .enterprise-shell :is(input,select,textarea):not([type=checkbox]):not([type=radio]),
  .enterprise-shell .report-multiselect summary,dialog :is(input,select,textarea):not([type=checkbox]):not([type=radio]){
    background:var(--c-surface)!important;border:1px solid var(--c-line-strong)!important;border-radius:var(--r-md)!important;
    color:var(--c-ink);box-shadow:none!important;min-height:40px;transition:border-color .15s ease,box-shadow .15s ease;
  }
  .enterprise-shell :is(input,select,textarea):not([type=checkbox]):not([type=radio]):hover{border-color:#B9C3D2!important}
  .enterprise-shell :is(input,select,textarea):focus,.enterprise-shell .report-multiselect summary:focus-visible,
  dialog :is(input,select,textarea):focus{outline:none!important;border-color:var(--c-primary)!important;box-shadow:var(--ring)!important}
  .enterprise-shell label{color:var(--c-ink-2);font-weight:600;font-size:12.5px}
  .enterprise-shell .multi-panel{background:var(--c-surface)!important;border:1px solid var(--c-line)!important;border-radius:var(--r-md)!important;box-shadow:var(--sh-2)!important}
  .enterprise-shell .multi-options label:hover{background:var(--c-subtle)!important;border-radius:6px}
  input[type=checkbox],input[type=radio]{accent-color:var(--c-primary)}

  /* ---------- Surfaces ---------- */
  .enterprise-shell :is(.card,.stat){
    background:var(--c-surface)!important;border:1px solid var(--c-line)!important;border-radius:var(--r-lg)!important;
    box-shadow:var(--sh-1)!important;backdrop-filter:none!important;
  }
  .enterprise-shell .stat:not(.alert):not(.expired){border-top:1px solid var(--c-line)!important}
  .enterprise-shell .stat .number{font-weight:700;color:var(--c-ink);font-variant-numeric:tabular-nums}
  .enterprise-shell .card-head{border-bottom:1px solid var(--c-line);padding-bottom:12px;margin-bottom:14px}
  .enterprise-shell .banner{border-radius:var(--r-md)!important;background:#F2F5FA;border:1px solid var(--c-line);color:var(--c-ink-2);box-shadow:none}
  .enterprise-shell .banner.warn{background:var(--c-warn-soft);border-color:#EED8B4;color:#6B3F00}
  .enterprise-shell .banner.error{background:var(--c-danger-soft);border-color:#F1C9C6;color:#7E1A14}
  .enterprise-shell .pill{border-radius:999px;font-weight:600;font-size:12px;background:var(--c-success-soft);color:var(--c-success)}
  .enterprise-shell .pill.red{background:var(--c-danger-soft);color:var(--c-danger)}
  .enterprise-shell .pill.amber{background:var(--c-warn-soft);color:var(--c-warn)}
  .enterprise-shell .loading{color:var(--c-muted)}

  /* ---------- Stat cards (report pages) ---------- */
  .enterprise-shell .stats{gap:16px;margin:18px 0}
  .enterprise-shell .stat{position:relative;overflow:hidden;padding:16px 20px 16px 18px!important;display:flex;flex-direction:column;gap:4px}
  .enterprise-shell .stat::before{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:3px;background:var(--c-primary)}
  .enterprise-shell .stat.alert::before{background:var(--c-warn)}
  .enterprise-shell .stat.expired::before{background:var(--c-danger)}
  .enterprise-shell .stat.alert,.enterprise-shell .stat.expired{background:var(--c-surface)!important}
  .enterprise-shell .stat>span:first-child{font-size:13px;font-weight:600;color:var(--c-muted)}
  .enterprise-shell .stat .number{font-size:28px;font-weight:700;letter-spacing:-.5px;line-height:1.2;margin:6px 0 2px;color:var(--c-ink);white-space:nowrap}
  .enterprise-shell .stat .number bdi{font-size:13px;font-weight:600;color:var(--c-muted);letter-spacing:0;margin-inline-start:4px}
  .enterprise-shell .stat.alert .number{color:var(--c-warn)}
  .enterprise-shell .stat.expired .number{color:var(--c-danger)}
  .enterprise-shell .stat small{font-size:12px;color:var(--c-muted)}

  /* ---------- File inputs ---------- */
  .enterprise-shell input[type=file]{padding:5px!important;min-height:42px;color:var(--c-muted);font-size:12.5px;cursor:pointer}
  .enterprise-shell input[type=file]::file-selector-button{
    margin-inline-end:10px;padding:6px 14px;border:1px solid var(--c-line-strong);border-radius:var(--r-sm);
    background:var(--c-subtle);color:var(--c-ink-2);font:inherit;font-weight:600;cursor:pointer;transition:background .15s ease}
  .enterprise-shell input[type=file]::file-selector-button:hover{background:var(--c-primary-soft);border-color:#B9C3D2}

  /* ---------- Tables ---------- */
  .enterprise-shell .table-wrap{background:var(--c-surface)!important;border:1px solid var(--c-line)!important;border-radius:var(--r-md)!important;box-shadow:none!important}
  .enterprise-shell table{border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
  .enterprise-shell th,.enterprise-shell .report-table thead th{
    background:var(--c-subtle)!important;color:var(--c-ink-2)!important;font-size:12.5px;font-weight:700;
    border-bottom:1px solid var(--c-line)!important;
  }
  .enterprise-shell td{border-bottom:1px solid #EEF1F5;color:var(--c-ink)}
  .enterprise-shell tbody td,.enterprise-shell .report-table tbody td,
  .enterprise-shell .report-table tbody tr:nth-child(even) td{background:var(--c-surface)!important}
  .enterprise-shell tbody tr:hover td,.enterprise-shell .report-table tbody tr:hover td{background:#F6F8FC!important}
  .enterprise-shell tfoot td,.enterprise-shell .report-table tfoot td{background:#F1F4F9!important;color:var(--c-ink)!important;font-weight:700;border-top:1px solid var(--c-line-strong)}
  .enterprise-shell td.nowrap{white-space:nowrap}
  .enterprise-shell td.negative{color:var(--c-danger)}
  .enterprise-shell td.positive{color:var(--c-success)}
  .enterprise-shell .sort-heading{color:inherit!important;font-weight:700}
  .enterprise-shell .table-toolbar input{max-width:320px}

  /* ---------- Footer & dialogs ---------- */
  .enterprise-shell .workspace-credit{background:transparent!important;border-top:1px solid var(--c-line)!important;color:var(--c-muted)!important;font-size:11.5px}
  .enterprise-shell .workspace-credit small{color:#8B98AB!important}
  dialog{background:var(--c-surface)!important;border:1px solid var(--c-line)!important;border-radius:16px!important;color:var(--c-ink)!important;box-shadow:var(--sh-2)!important;backdrop-filter:none!important}
  dialog::backdrop{background:rgba(7,23,49,.45);backdrop-filter:blur(2px)}

  /* ---------- Login ---------- */
  .gl-page .gl-card{background:var(--c-surface)!important;border:1px solid var(--c-line)!important;border-radius:18px!important;box-shadow:0 24px 60px rgba(4,14,32,.35)!important;backdrop-filter:none!important}
  .gl-page .gl-input input{background:var(--c-surface)!important;border:1px solid var(--c-line-strong)!important;border-radius:var(--r-md)!important;box-shadow:none!important}
  .gl-page .gl-input input:focus{border-color:var(--c-primary)!important;box-shadow:var(--ring)!important;outline:none}
  .gl-page .gl-submit{background:var(--c-navy-900)!important;border:1px solid var(--c-navy-900)!important;border-radius:var(--r-md)!important;box-shadow:none!important;transition:background .15s ease}
  .gl-page .gl-submit:not(:disabled):hover{background:var(--c-navy-800)!important}
}
@media screen and (max-width:760px){
  .enterprise-shell h1{font-size:22px}
  .enterprise-shell .heading{flex-wrap:wrap;align-items:flex-start}
  .enterprise-shell .topbar .workspace-logos{border:0}
}
@media (prefers-reduced-motion:reduce){
  .enterprise-shell *{transition:none!important;animation-duration:.001ms!important}
}
