/* Approved Charcoal & Silver presentation. Business controls remain native. */
@media screen {
  :root {
    color-scheme: dark;
    --font-heading: "Bricolage Grotesque", sans-serif;
    --font-body: Lato, sans-serif;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: #e6e8e9;
    background: #24292c;
    --ink: #e8e7e1;
    --muted: #bdc3c5;
    --line: #485157;
    --paper: #2c3236;
    --surface: #2c3236;
    --panel: #2c3236;
    --canvas: #24292c;
    --bg: #24292c;
    --accent: #c4d2dc;
    --radius: 10px;
    --nav-rail: 64px;
    --nav-width: 224px;
    --nav-motion: 180ms cubic-bezier(.2,.7,.3,1);
  }
  body { font: 400 15px/1.65 var(--font-body); background: var(--canvas); color: var(--ink); }
  h1, h2, h3 { font-family: var(--font-heading); letter-spacing: -.02em; line-height: 1.2; font-weight: 600; text-wrap: balance; }
  h1, .page-heading h1, .sign-in-card h1 { font-size: 32px; letter-spacing: -.02em; }
  h2, .card h2, .section-title h2, .print-workstation h2 { font-size: 28px; color: var(--ink); }
  h3, #transfersView .transfer-section h3 { font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
  label, .label, .detail-fields dt, .transfer-meta dt { font-size: 13px; font-weight: 700; color: #d0d5d8; }
  .muted, .hint, .page-heading p, .sign-in-help { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
  .eyebrow, .banner-art, .sign-in-icon { display: none; }
  .card, dialog.card, .metric { background: var(--paper); color: var(--ink); border-color: var(--line); border-radius: 10px; box-shadow: none; }
  .card { padding: 24px; }
  .section-title { align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
  .page-heading { margin-bottom: 24px; }
  .page-heading p { margin-top: 8px; }
  .metric strong, .cycle-card .metric strong { font: 700 26px/1.3 var(--font-body); letter-spacing: 0; font-variant-numeric: tabular-nums; }
  .metric-top, .metric small { font-size: 12px; }
  .metric-grid { margin-bottom: 24px; }
  .metric { border-radius: 10px; border: 1px solid var(--line); background: var(--paper); padding: 24px; }
  #metrics .metric { min-height: 190px; display: flex; flex-direction: column; }
  #metrics .metric strong { font-size: 40px; font-weight: 400; margin: 22px 0; }
  #metrics .metric small { margin-top: auto; }
  .metric .icon, .section-title > .icon, .quick-workflows .icon { color: var(--accent); }
  .overview-columns { gap: 24px; }
  .quick-workflows a { padding: 16px 2px; font-size: 14px; font-weight: 400; border-color: var(--line); }
  .quick-workflows a:hover { background: transparent; color: var(--accent); }
  .activity-row { background: transparent; border-color: var(--line); }
  .activity-row time { color: var(--muted); font-size: 12px; }
  button, input, select, textarea { font-family: var(--font-body); }
  .primary, .secondary, .text-link, .icon-button { min-height: 40px; border-radius: 7px; font-size: 14px; line-height: 1.3; padding: 9px 16px; transform: none; }
  .primary { background: #d4dde3; border: 1px solid #d4dde3; color: #25323b; font-weight: 700; }
  .primary:hover { background: #e4e9ed; color: #25323b; transform: none; }
  .secondary { background: transparent; border: 1px solid var(--line); color: var(--ink); font-weight: 400; }
  .secondary:hover { background: #353c41; color: var(--ink); }
  .link-button, .text-link, td .record-link { color: var(--accent); font-weight: 400; }
  .primary .icon, .secondary .icon { width: 18px; height: 18px; }
  button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
    border: 1px solid #59646b; border-radius: 7px; background: #232c2d; color: var(--ink);
    font-size: 15px; font-weight: 400; padding: 9px 12px; min-width: 0;
  }
  input:not([type=checkbox]):not([type=radio]):not([type=file]), select:not([multiple]):not([size]) { height: 42px; }
  input::placeholder, textarea::placeholder { color: #a7b0b6; opacity: 1; }
  input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
  input:disabled, select:disabled { background: #2b3236; color: #b4bdc3; opacity: .7; }
  input[type=checkbox], input[type=radio] { accent-color: #c4d2dc; }
  select:not([multiple]):not([size]) {
    appearance: none; padding-right: 42px; white-space: nowrap;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 8 5 5 5-5' fill='none' stroke='%23bec6cc' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-size: 16px; background-position: right 14px center; background-repeat: no-repeat;
  }
  option, optgroup { background: #293135; color: var(--ink); font-weight: 400; }
  /* Progressive enhancement preserves native values, events, disabled states,
     form validation and multi-select behavior. Older browsers keep native menus. */
  @supports (appearance: base-select) {
    select:not([multiple]):not([size]), select:not([multiple]):not([size])::picker(select) { appearance: base-select; }
    select:not([multiple]):not([size]) { display: flex; align-items: center; padding-right: 14px; background-image: none; }
    select:not([multiple]):not([size])::picker-icon { margin-left: auto; color: #bec6cc; transition: rotate 120ms ease; }
    select:not([multiple]):not([size]):open::picker-icon { rotate: 180deg; }
    select:not([multiple]):not([size])::picker(select) {
      margin-block: 6px; padding: 4px; background: #293135; color: var(--ink);
      border: 1px solid #66737b; border-radius: 7px; box-shadow: 0 8px 24px #0005;
      max-height: min(280px,60vh); overflow-y: auto; scrollbar-width: thin;
      opacity: 0; transition: opacity 120ms ease, display 120ms allow-discrete, overlay 120ms allow-discrete;
    }
    select:not([multiple]):not([size])::picker(select):popover-open { opacity: 1; }
    @starting-style { select:not([multiple]):not([size])::picker(select):popover-open { opacity: 0; } }
    select:not([multiple]):not([size]) option { padding: 9px 12px; border-radius: 2px; font: 400 14px/1.4 var(--font-body); }
    select:not([multiple]):not([size]) option:checked { background: #39464e; color: #f0f2f3; }
    select:not([multiple]):not([size]) option:hover, select:not([multiple]):not([size]) option:focus { background: #45545e; color: #fff; }
    select:not([multiple]):not([size]) option::checkmark { order: 1; margin-left: auto; }
  }
  th, .gi-table-wrap th { background: #252f30; color: #d0d5d8; font: 700 13px/1.4 var(--font-body); text-transform: none; letter-spacing: 0; }
  td button + button { margin-left: 10px; }
  td { font-size: 14px; font-weight: 400; border-color: var(--line); }
  tbody tr:hover, .gi-table-wrap tbody tr:hover { background: #353c41; }
  .gi-table-wrap tbody tr:nth-child(even) { background: #30373b; }
  .gi-report-header, .transfer-section { color: var(--ink); }
  #transfersView .transfer-section { border-radius: 10px; background: var(--paper); }
  #transfersView .transfer-counts > div { border-radius: 7px; background: var(--canvas); }
  .setup, .item, .import-panel, .upload-area, .zpl-preview { background: #293135; border-color: var(--line); border-radius: 7px; }
  .workstation-selectors { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: end; }
  .workstation-selectors label, #printingStoreSlot label { min-width: 0; font-size: 13px; }
  .workstation-selectors select { height: 42px; padding-left: 12px; font-size: 15px; font-weight: 400; }
  .print-workstation { margin-bottom: 24px; padding: 20px 24px; }
  .print-grid { grid-template-columns: minmax(0,1fr) 104px 130px; align-items: end; gap: 16px; }
  .print-grid input, .print-grid #lookup { height: 42px; }
  .item strong { font-size: 14px; letter-spacing: 0; }
  .cycle-total { background: var(--paper); border-radius: 10px; }
  .cycle-card .cycle-total strong { font-size: 26px; font-weight: 700; letter-spacing: 0; }
  .cycle-card .cycle-itemCountAccuracy strong, .cycle-card .cycle-operationalAccuracy strong { font-size: 36px; }
  .cycle-card .cycle-total span { font-size: 13px; font-weight: 700; }
  .admin-tabs button { border-radius: 7px; font-size: 14px; font-weight: 400; }
  .admin-tabs { background: var(--paper); border-radius: 10px; }
  .admin-tabs .admin-tab[aria-selected=true] { background: #d4dde3; font-weight: 700; color: #25323b; border-color: var(--accent); }
  .admin-tabs .admin-tab .icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; }
  .notice, .status, .pill { background: #30383c; color: #d0d5d8; border-color: #59646b; border-radius: 3px; font-size: 13px; }
  .status.ok, .pill.confirmed, .result { background: #2a4035; color: #c3ddc6; }
  .status.warn, .pill.pending, .gi-outstanding { background: #463c2b; color: #edc98a; }
  .notice.error, .result.error, .pill.failed, .pill.cancelled { background: #493432; color: #f1b9ae; border-color: #805b54; }
  .server-status.ok { color: #b3d1b4; } .server-status.warn { color: #edc98a; }
  .workspace { min-height: 100dvh; }
  .sidebar { width: var(--nav-rail); padding: 12px; background: #eceeee; color: #292d30; border-right: 1px solid #cfd0c6; overflow: hidden; gap: 8px; transform: none; visibility: visible; contain: layout paint; transition: width var(--nav-motion); }
  .sidebar.open { width: var(--nav-width); transform: none; }
  .sidebar-toolbar { display: flex; align-items: center; height: 48px; min-height: 48px; flex-shrink: 0; }
  #menuToggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; color: #292d30; border: 1px solid #cfd0c6; background: transparent; border-radius: 3px; }
  #menuToggle:hover { background: #dce1e3; }
  .sidebar .brand.brand-logo { width: 40px; height: 64px; min-height: 64px; padding: 8px 0; gap: 12px; overflow: hidden; flex-shrink: 0; transition: width var(--nav-motion),height var(--nav-motion); }
  .sidebar .brand-logo img { width: 40px; height: 40px; flex-shrink: 0; padding: 0; border-radius: 0; background: transparent; mix-blend-mode: multiply; transition: width var(--nav-motion),height var(--nav-motion); }
  .sidebar .brand-logo span { width: 180px; font: 400 12px/1.4 var(--font-body); color: #62696d; letter-spacing: 0; margin: 0; white-space: nowrap; opacity: 0; transition: opacity 120ms ease; }
  .sidebar.open .brand.brand-logo { width: 200px; height: 124px; min-height: 124px; padding-left: 12px; }
  .sidebar.open .brand-logo img { width: 148px; height: 69px; }
  .sidebar.open .brand-logo span { opacity: 1; }
  .nav-label { height: 0; min-height: 0; margin: 0; opacity: 0; white-space: nowrap; overflow: hidden; font: 700 12px/1.4 var(--font-body); letter-spacing: 0; }
  .sidebar.open .nav-label { height: 16px; min-height: 16px; margin: 8px 12px; opacity: 1; color: #62696d; }
  .sidebar nav { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
  .sidebar .nav-link { display: flex; align-items: center; width: 40px; min-height: 40px; padding: 9px 8px; margin: 0 0 4px; gap: 12px; border-left: 2px solid transparent; border-radius: 3px; background: transparent; color: #292d30; font: 400 14px/1.4 var(--font-body); white-space: nowrap; overflow: hidden; transition: width var(--nav-motion),background 120ms ease; }
  .sidebar.open .nav-link { width: 200px; }
  .sidebar .nav-link > .icon:first-child { display: block; width: 20px; height: 20px; opacity: 1; margin: 0; }
  .sidebar .nav-link > .icon:not(:first-child) { display: none; }
  .sidebar .nav-link .nav-text { opacity: 0; transition: opacity 120ms ease; }
  .sidebar.open .nav-text { opacity: 1; }
  .sidebar .nav-link:hover { background: #e0e4e6; color: #292d30; }
  .sidebar .nav-link.active { background: #dce1e3; color: #252b2e; border-left-color: #607785; font-weight: 700; }
  .sidebar-bottom { flex-shrink: 0; padding-top: 8px; margin-top: auto; }
  .workspace-note { display: none; }
  /* Resize report tables once per toggle, rather than on every animation frame. */
  .workspace-main { margin-left: var(--nav-rail); padding-bottom: 48px; width: calc(100% - var(--nav-rail)); transition: none; }
  .nav-expanded .workspace-main { margin-left: var(--nav-width); width: calc(100% - var(--nav-width)); }
  .topbar { height: 72px; min-height: 72px; padding: 0 40px; background: var(--canvas); }
  .breadcrumb, .breadcrumb strong { font: 400 12px/1.4 var(--font-body); color: var(--muted); }
  .topbar-right { gap: 16px; font-size: 12px; }
  .avatar { font: 400 13px var(--font-body); background: #353c41; color: var(--ink); border-color: var(--line); }
  #mainContent { padding: 32px 40px; max-width: 1440px; }
  .nav-backdrop { position: fixed; inset: 0 0 0 var(--nav-rail); z-index: 19; padding: 0; margin: 0; background: #0006; border: 0; border-radius: 0; }
  .workspace-footer, .login-footer { position: fixed; inset: auto 0 0 var(--nav-rail); z-index: 10; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; min-height: 38px; margin: 0; padding: 10px 20px; border-top: 1px solid var(--line); background: var(--canvas); color: var(--muted); font: 400 11px/1.4 var(--font-body); transition: left var(--nav-motion); }
  .nav-expanded .workspace-footer { left: var(--nav-width); }
  .portal-version { font-size: 10px; text-align: right; white-space: nowrap; color: var(--muted); }
  .login-footer { left: 0; }
  .sign-in-layout { padding-bottom: 60px; }
  .sign-in-brand .brand-logo img { width: 180px; height: 83px; padding: 12px; border-radius: 3px; }
  .sign-in-brand p { display: none; }
  .sign-in-brand .brand span { font: 400 13px/1.5 var(--font-body); letter-spacing: 0; }
  .sign-in-card { padding: 32px; }
  .sign-in-card h1 { margin-top: 0; }
  .sign-in-card .primary { width: 100%; }
  @media (max-width: 1100px) { #mainContent { padding: 28px 24px; } .topbar { padding-inline: 24px; } }
  @media (max-width: 760px) {
    .sidebar { left: 0; transform: none; }
    .sidebar.open { transform: none; box-shadow: 8px 0 24px #0002; }
    .workspace-main, .nav-expanded .workspace-main { margin-left: var(--nav-rail); width: calc(100% - var(--nav-rail)); padding-bottom: 60px; }
    .workspace-footer, .nav-expanded .workspace-footer { left: var(--nav-rail); padding: 9px 12px; font-size: 10px; }
    .topbar { height: auto; min-height: 64px; padding: 12px 16px; }
    .topbar-right { margin-left: auto; gap: 8px; }
    #mainContent { padding: 24px 16px; }
    .page-heading h1 { font-size: 28px; }
    .card { padding: 20px; }
    .workstation-selectors { grid-template-columns: 1fr; gap: 12px; }
    .print-grid { grid-template-columns: minmax(0,1fr) 88px; gap: 12px; }
    .print-grid #lookup { grid-column: 1/-1; justify-self: start; }
    .sign-in-card { padding: 24px; }
    .cycle-card .cycle-total strong { font-size: 24px; }
  }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after, select::picker(select) { transition-duration: 0s !important; animation-duration: 0s !important; } }
}
@media print { .workspace-footer, .login-footer, .nav-backdrop { display: none !important; } }

/* Explicit multi-selection for user assignments. */
.user-assignment-group { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.user-assignment-group legend { padding: 0 5px; font-size: 14px; font-weight: 600; }
.user-assignment-list { display: grid; gap: 4px; max-height: 220px; overflow-y: auto; }
.user-assignment-list .user-assignment-choice { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 5px; cursor: pointer; }
.user-assignment-choice:hover, .user-assignment-choice:focus-within { background: #39464e; }
.user-assignment-choice input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.user-assignment-choice span { overflow-wrap: anywhere; }
