/* Presentation only: fluid workspaces, global controls, compact operational queues. */
@media screen {
  html[data-inline-workspaces="true"] { --workspace-bar-height: 60px; }
  html body.ui-spacious #mainContent > .company-workspaces {
    align-items: center; flex-wrap: nowrap; gap: 6px;
    padding: 8px 24px; min-height: 60px;
  }
  html[data-inline-workspaces="true"] #mainContent > .company-workspaces { padding: 8px 24px; }
  html body.ui-spacious #mainContent > .company-workspaces > a {
    min-height: 40px; padding: 8px 16px; flex: 0 0 auto; white-space: nowrap;
  }
  html body.ui-spacious #mainContent .workspace-global-actions {
    margin: 0 0 0 auto; width: auto; flex: 0 0 auto;
  }
  html body.ui-spacious #mainContent .workspace-global-actions .topbar-icon-actions {
    display: flex; align-items: center; gap: 6px; margin: 0;
  }
  html body.ui-spacious #mainContent .workspace-global-actions .icon-action-btn {
    width: 36px; height: 36px; min-height: 36px; padding: 8px;
    border: 1px solid var(--ui-line); border-radius: 6px;
    background: var(--ui-panel); color: var(--ui-muted); box-shadow: none;
  }
  html body.ui-spacious #mainContent .workspace-global-actions .icon-action-btn:hover {
    color: var(--ui-brand); background: var(--ui-brand-soft);
  }
  html:not([data-workspace="nsk"]) body.ui-spacious #appShell > #mainContent {
    padding: 20px 24px 40px !important;
  }
  html:not([data-workspace="nsk"]) body.ui-spacious #appShell #mainContent > :not(.company-workspaces) {
    width: 100%; max-width: none !important; margin-inline: 0 !important;
  }
  html body.ui-spacious #appShell #financeWorkspaceContext {
    padding: 0 0 12px; margin-bottom: 16px; border: 0;
    border-bottom: 1px solid var(--ui-line); border-radius: 0; background: transparent;
  }
  html body.ui-spacious #appShell #financeWorkspaceContext > div:first-child {
    display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline;
  }
  html body.ui-spacious #appShell #mainContent > .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin: 0 0 20px !important; min-height: 0;
  }
  html body.ui-spacious #appShell .topbar h1 { font-size: 24px !important; margin: 4px 0 !important; }
  html body.ui-spacious #appShell #viewSubtitle { margin: 0; font-weight: 400; }
  html body.ui-spacious #appShell .topbar-actions { width: min(380px,40%); flex-shrink: 0; gap: 6px; }
  html body.ui-spacious #appShell .topbar-search { width: 100%; gap: 8px; }
  html body.ui-spacious #appShell .topbar-search .form-control { width: 100%; min-width: 0; }
  html body.ui-spacious #appShell .topbar-search :is(.btn,.form-control) { min-height: 40px !important; }
  html body.ui-spacious #appShell #view-dashboard { gap: 16px; }
  html body.ui-spacious #appShell #view-dashboard > * { margin-block: 0 !important; }
  html body.ui-spacious #appShell #view-dashboard .dashboard-kpis {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px !important;
  }
  html body.ui-spacious #appShell #view-dashboard .kpi {
    min-height: 102px; padding: 16px 18px !important; gap: 8px; text-align: left;
  }
  html body.ui-spacious #appShell #view-dashboard .kpi strong {
    font-size: clamp(22px,1.65vw,28px) !important; white-space: nowrap; line-height: 1.3;
  }
  html body.ui-spacious #appShell #view-dashboard .pit-reminder {
    padding: 10px 14px; gap: 12px; border-radius: 6px;
  }
  html body.ui-spacious #appShell .intake-overview,
  html body.ui-spacious #appShell .intake-overview:has(.intake-details[open]) {
    grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-items: start;
  }
  html body.ui-spacious #appShell #mainContent .intake-worklist {
    padding: 12px 16px !important; border-left: 1px solid var(--ui-line);
  }
  html body.ui-spacious #appShell .intake-heading { align-items: center; }
  html body.ui-spacious #appShell .intake-heading .btn { min-height: 36px !important; padding: 6px 10px !important; }
  html body.ui-spacious #appShell .intake-heading h2 { font-size: 14px !important; }
  html body.ui-spacious #appShell .intake-details { max-height: 300px; overflow: auto; scrollbar-gutter: stable; }
  html body.ui-spacious #appShell .intake-details > summary { min-height: 28px; padding-top: 6px; }
  html body.ui-spacious #appShell .intake-details[open] { margin-top: 4px; }
  html body.ui-spacious #appShell :is(.dashboard-audience-panel,.dashboard-compliance-strip) {
    padding: 16px !important; border: 1px solid var(--ui-line); border-radius: 8px; box-shadow: none; background: var(--ui-panel);
  }
  html body.ui-spacious #appShell :is(.dashboard-audience-card,.dashboard-compliance-card) {
    padding: 12px !important; min-height: 0; background: var(--ui-panel-soft); box-shadow: none;
  }
  html body.ui-spacious #appShell :is(.dashboard-audience-grid,.dashboard-compliance-grid) { gap: 12px; }
  html body.ui-spacious #appShell .dashboard-audience-head { margin-bottom: 12px; }
  html body.ui-spacious #appShell .sidebar { padding-top: 22px !important; }
  html body.ui-spacious #appShell .brand-block { margin-bottom: 20px !important; }
  html body.ui-spacious #appShell :is(button,a,summary):focus-visible { outline: 2px solid var(--ui-brand); outline-offset: 3px; }
}
@media screen and (min-width: 1500px) {
  html body.ui-spacious #appShell #view-dashboard .dashboard-kpis { grid-template-columns: repeat(6,minmax(0,1fr)) !important; }
}
@media screen and (max-width: 1100px) {
  html body.ui-spacious #appShell .intake-overview,
  html body.ui-spacious #appShell .intake-overview:has(.intake-details[open]) { grid-template-columns: 1fr; }
}
@media screen and (max-width: 980px) {
  html body.ui-spacious #appShell #mainContent > .topbar { flex-wrap: wrap; }
  html body.ui-spacious #appShell .topbar-actions { width: 100%; max-width: none !important; }
  html body.ui-spacious #appShell #view-dashboard .dashboard-kpis { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
  html body.ui-spacious #appShell .topbar-search :is(.btn,.form-control) { min-height: 44px !important; }
}
@media screen and (max-width: 600px) {
  html[data-inline-workspaces="true"] { --workspace-bar-height: 108px; }
  html body.ui-spacious #mainContent > .company-workspaces,
  html[data-inline-workspaces="true"] #mainContent > .company-workspaces { padding: 6px 12px; flex-wrap: wrap; gap: 4px; }
  html body.ui-spacious #mainContent > .company-workspaces > a { flex: 1; padding: 8px; font-size: 13px; }
  html body.ui-spacious #mainContent .workspace-global-actions { flex-basis: 100%; }
  html body.ui-spacious #mainContent .workspace-global-actions .topbar-icon-actions { justify-content: flex-end; }
  html body.ui-spacious #mainContent .workspace-global-actions .icon-action-btn { width: 40px; height: 40px; }
  html:not([data-workspace="nsk"]) body.ui-spacious #appShell > #mainContent { padding: 16px 12px 32px !important; }
  html body.ui-spacious #appShell #view-dashboard .dashboard-kpis { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  html body.ui-spacious #appShell #view-dashboard .kpi { min-height: 92px; padding: 12px !important; }
  html body.ui-spacious #appShell #view-dashboard .kpi strong { font-size: 20px !important; }
  html body.ui-spacious #appShell .intake-heading { flex-wrap: wrap; }
  html body.ui-spacious #appShell .intake-heading .btn { min-height: 40px !important; }
  html body.ui-spacious #appShell .dashboard-audience-grid { grid-template-columns: 1fr; }
}
@media screen {
  html body.ui-spacious #appShell #view-dashboard :is(.dashboard-audience-panel,.dashboard-compliance-strip) { padding:16px !important; margin-bottom:0 !important; }
  html body.ui-spacious #appShell #view-dashboard :is(.dashboard-audience-card,.dashboard-compliance-card) { padding:10px !important; }
  html body.ui-spacious #appShell #view-dashboard :is(.dashboard-audience-head,.dashboard-compliance-head) { margin-bottom:10px !important; }
  html body.ui-spacious #appShell #view-dashboard :is(.dashboard-audience-grid,.dashboard-compliance-grid) { margin-top:0 !important; }
  /* Budget every column so the three former auto columns cannot absorb all
     spare width. Keep the full-width table and existing narrow-screen scroll. */
  html body.ui-spacious #appShell #mainContent #view-inventory .inventory-table {
    width:100% !important; min-width:1430px !important;
  }
  html body.ui-spacious #appShell #mainContent #view-inventory .inventory-table :is(th,td):nth-child(2) { width:144px !important; }
  html body.ui-spacious #appShell #mainContent #view-inventory .inventory-table :is(th,td):is(:nth-child(8),:nth-child(11)) { width:96px !important; }
  html body.ui-spacious #appShell #mainContent #view-inventory .inventory-table :is(th,td):nth-child(7) { width:160px !important; }
  html body.ui-spacious #appShell #mainContent #view-inventory .inventory-table :is(th,td):is(:nth-child(10),:nth-child(13),:nth-child(14)) { width:126px !important; }
  html body.ui-spacious #appShell #mainContent #view-inventory .inventory-table :is(th,td):nth-child(6) { width:200px !important; }
  html body.ui-spacious #appShell #mainContent #view-inventory .inventory-table .btn { min-height:36px !important; padding-block:6px !important; }
}
@media screen and (min-width:981px) {
  html body.ui-spacious #mainContent > .company-workspaces > .ui-nav-toggle { display:none !important; }
}
@media screen and (min-width:601px) and (max-width:980px) {
  html body.ui-spacious #mainContent > .company-workspaces > .ui-nav-toggle { display:block !important; min-height:40px !important; padding:6px 10px; }
}
@media screen and (max-width:600px) {
  html body.ui-spacious #mainContent > .company-workspaces,
  html[data-inline-workspaces="true"] #mainContent > .company-workspaces { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  html body.ui-spacious #mainContent > .company-workspaces > .ui-nav-toggle { display:block !important; grid-column:1; grid-row:2; min-height:40px !important; padding:6px; font-size:13px; }
  html body.ui-spacious #mainContent .workspace-global-actions { grid-column:2 / 4; grid-row:2; width:auto; margin-left:auto; }
  html body.ui-spacious #mainContent .workspace-global-actions .topbar-icon-actions { width:auto !important; }
  html body.ui-spacious #appShell #view-dashboard .kpi strong { font-size:clamp(15px,4.6vw,20px) !important; }
  html body.ui-spacious #appShell #financeWorkspaceContext { gap:4px; margin-bottom:12px; }
}
@media screen {
  html body.ui-spacious #mainContent .workspace-global-actions .topbar-icon-actions {border:0;background:transparent;box-shadow:none;padding:0;}
  html body.ui-spacious #appShell #view-dashboard .pit-reminder {background:var(--ui-brand-soft);color:var(--ui-text);}
  html body.ui-spacious #appShell #view-dashboard .pit-reminder a {color:var(--ui-brand);}
}
@media screen {
  html[data-workspace="nsk"] .workspace-global-actions .theme-quick-toggle {display:none !important;}
}

/* Compact task shortcuts: all records are shown in the filtered ledger. */
html body.ui-spacious #appShell .dashboard-task-tiles {
  display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px;
}
html body.ui-spacious #appShell .dashboard-task-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-width: 0; padding: 16px; border: 1px solid var(--ui-line); border-radius: 8px;
  background: var(--ui-panel); color: var(--ui-text); text-align: left; cursor: pointer;
  box-shadow: none; font: inherit;
}
html body.ui-spacious #appShell .dashboard-task-tile:hover { border-color: var(--ui-brand); background: var(--ui-brand-soft); }
html body.ui-spacious #appShell .dashboard-task-tile:focus-visible { outline: 2px solid var(--ui-brand); outline-offset: 3px; }
.dashboard-task-tile .task-tile-title { font-weight: 600; }
.dashboard-task-tile > strong { font-size: 28px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.dashboard-task-tile .task-tile-description { font-size: 12px; color: var(--ui-muted); }
.dashboard-task-tile .task-tile-link { margin-top: auto; font-size: 13px; color: var(--ui-brand); }
@media (max-width:1100px) { html body.ui-spacious #appShell .dashboard-task-tiles { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width:640px) { html body.ui-spacious #appShell .dashboard-task-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* Three peer queues; missing-vehicle checks have one home. */
@media screen {
  html body.ui-spacious #appShell #view-dashboard .dashboard-queue-menu,
  html body.ui-spacious #appShell #view-dashboard .dashboard-queue-menu:has(.intake-details[open]) {
    grid-template-columns: repeat(3,minmax(0,1fr)); align-items:start;
  }
  html body.ui-spacious #appShell #view-dashboard .dashboard-queue-menu .intake-heading > div {
    display:grid; gap:4px;
  }
  html body.ui-spacious #appShell #view-dashboard .dashboard-queue-menu .intake-heading strong {
    font-size:12px; color:var(--ui-muted); font-weight:400;
  }
  html body.ui-spacious #appShell .dashboard-queue-menu .intake-details { max-height:360px; }
  html body.ui-spacious #appShell .dashboard-queue-menu .queue-source + .queue-source {
    border-top:1px solid var(--ui-line); margin-top:12px; padding-top:12px;
  }
  html body.ui-spacious #appShell .queue-source-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; }
  html body.ui-spacious #appShell .queue-source-heading h3 { margin:0; font-size:13px; }
  html body.ui-spacious #appShell .dashboard-queue-menu .message-actions { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
  html body.ui-spacious #appShell .dashboard-queue-menu .message-item { display:flex; flex-wrap:wrap; gap:8px; }
  html body.ui-spacious #appShell .dashboard-queue-menu .message-main { min-width:0; flex:1 1 180px; overflow-wrap:anywhere; }
}
@media screen and (max-width:1100px) {
  html body.ui-spacious #appShell #view-dashboard .dashboard-queue-menu,
  html body.ui-spacious #appShell #view-dashboard .dashboard-queue-menu:has(.intake-details[open]) { grid-template-columns:1fr; }
}

.salary-chart{padding:16px 0;border-top:1px solid #e2e8f0}.salary-chart-head{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.salary-chart-head span{font-size:13px;color:#64748b}.salary-chart-head i{display:inline-block;width:10px;height:10px;margin:0 5px 0 12px}.salary-chart-scroll{overflow-x:auto;width:100%}.salary-chart svg{display:block;max-width:none;font-family:inherit}
