.overview-dashboard {
  --dashboard-positive-1: #dce7f4;
  --dashboard-positive-2: #b6c9e4;
  --dashboard-positive-3: #829ec5;
  --dashboard-positive-4: #526b9b;
  --dashboard-negative-1: #f4e5da;
  --dashboard-negative-2: #e9c7ae;
  --dashboard-negative-3: #cd9c7b;
  --dashboard-negative-4: #a46b49;
  min-width: 0;
  max-width: 100%;
  font-variant-numeric: tabular-nums;
}
.overview-dashboard .page-head { margin-bottom: 20px; }
.overview-dashboard .page-head h1 { font-size: 23px; }
.overview-dashboard .page-head p { color: #5d6b80; }
.dashboard-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 20px; margin: 0 0 12px; }
.dashboard-section-title h2 { margin: 0; font-size: 16px; font-weight: 650; }
.dashboard-section-title > span { color: #5d6b80; font-size: 12px; }
.dashboard-today { margin-bottom: 16px; }
.dashboard-today-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dashboard-today-item { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 17px 19px; }
.dashboard-today-name { display: flex; align-items: center; gap: 9px; color: #4b6082; }
.dashboard-today-name svg { width: 20px; height: 20px; }
.dashboard-today-name h3 { color: var(--ink); font-size: 14px; margin: 0; font-weight: 600; }
.dashboard-today-count { display: inline-flex; align-items: baseline; gap: 9px; color: var(--ink); padding: 6px 0; margin: 3px 0; background: none; border: 0; border-radius: 6px; cursor: pointer; }
.dashboard-today-count strong { font-size: 30px; font-weight: 650; line-height: 1.25; }
.dashboard-today-count span { color: #5d6b80; font-size: 12px; }
.dashboard-today-count:hover { color: var(--blue); }
.dashboard-today-flags { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 5px 0 13px; }
.dashboard-today-flags button { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 0; color: #5d6b80; border: 0; border-radius: 5px; background: none; font-size: 12px; cursor: pointer; }
.dashboard-today-flags button:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.dashboard-today-flags .has-overdue { color: #a34636; }
.dashboard-today-flags .has-unknown { color: #895a24; }
.dashboard-today-action { display: flex; flex-wrap: wrap; gap: 7px; }
.dashboard-today-action .button { min-height: 34px; font-size: 12px; }
.dashboard-shortcuts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #d5dfec; border-radius: 14px; background: #d5dfec; margin-bottom: 24px; }
.dashboard-shortcut { display: flex; gap: 11px; align-items: center; min-width: 0; min-height: 82px; text-align: left; padding: 14px 17px; border: 0; background: #f0f4fa; color: #4b6082; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 120ms ease; }
.dashboard-shortcut > svg { flex: 0 0 23px; width: 23px; height: 23px; }
.dashboard-shortcut span { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
.dashboard-shortcut strong { color: #31425f; font-size: 13px; font-weight: 650; }
.dashboard-shortcut small { color: #5d6b80; font-size: 11px; line-height: 1.5; }
.dashboard-shortcut > svg.dashboard-shortcut-arrow { flex-basis: 15px; width: 15px; height: 15px; }
.dashboard-shortcut:hover { background: #e5edf8; color: var(--blue); }
.dashboard-shortcut:active { transform: scale(.98); background: #d9e4f3; }
.dashboard-shortcut.working { background: #d9e4f3; cursor: progress; }
.dashboard-ledger { margin-bottom: 22px; }
.dashboard-stat-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; background: white; padding: 18px 0; margin: 0; }
.dashboard-stat { padding: 0 18px; min-width: 0; }
.dashboard-stat + .dashboard-stat { border-left: 1px solid var(--line); }
.dashboard-stat dt { color: #5d6b80; font-size: 12px; }
.dashboard-stat dd { color: #26384f; font-size: 21px; font-weight: 650; letter-spacing: -.02em; margin: 9px 0 7px; overflow-wrap: anywhere; line-height: 1.4; }
.dashboard-stat small { display: block; color: #5d6b80; font-size: 11px; line-height: 1.6; }
.overview-dashboard .dashboard-panel { border-radius: 16px; margin: 0; overflow: hidden; min-width: 0; }
.overview-dashboard .dashboard-panel .panel-head { gap: 12px; min-width: 0; padding: 17px 19px; }
.overview-dashboard .dashboard-panel .panel-head h2 { font-size: 15px; }
.dashboard-panel-subtitle { margin: 5px 0 0; color: #5d6b80; font-size: 11px; line-height: 1.6; }
.dashboard-analysis-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, .35fr); gap: 16px; align-items: start; margin-bottom: 18px; }
.dashboard-state-panels { display: grid; gap: 16px; min-width: 0; }
.dashboard-metric-tabs { display: flex; flex-wrap: wrap; padding: 3px; border: 1px solid var(--line); background: #f4f6fa; border-radius: 10px; gap: 2px; }
.dashboard-metric-tabs button { border: 0; border-radius: 7px; color: #5d6b80; background: none; font-size: 12px; padding: 7px 9px; min-height: 34px; cursor: pointer; transition: background-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.dashboard-metric-tabs button:hover { color: var(--blue); background: #e9eef7; }
.dashboard-metric-tabs button[aria-pressed="true"] { background: white; color: #3a527d; box-shadow: 0 1px 3px #243e6214; }
.dashboard-metric-tabs button.working { background: #e1e9f5; }
.dashboard-activity-body { min-width: 0; padding: 18px 19px 15px; }
.dashboard-heat-summary { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; color: #5d6b80; font-size: 12px; margin-bottom: 19px; }
.dashboard-heat-summary strong { color: #31425f; font-size: 20px; font-weight: 650; }
.dashboard-heat-summary > span:last-child { margin-left: auto; font-size: 11px; }
.dashboard-heat-scroll { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; padding: 3px 2px 9px; border-radius: 6px; }
.dashboard-heat-calendar { display: grid; grid-template-columns: 18px minmax(0, 1fr); grid-template-rows: 21px 170px; gap: 3px 9px; min-width: 430px; }
.dashboard-heat-months { grid-column: 2; grid-row: 1; display: grid; gap: 5px; color: #5d6b80; font-size: 10px; }
.dashboard-heat-weekdays { display: grid; grid-template-rows: repeat(7, 1fr); gap: 5px; grid-column: 1; grid-row: 2; color: #5d6b80; font-size: 10px; text-align: center; align-items: center; }
.dashboard-heat-grid { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; gap: 5px; min-width: 0; grid-column: 2; grid-row: 2; }
.dashboard-heat-cell { display: block; min-width: 0; min-height: 0; padding: 0; border: 1px solid #54698a10; border-radius: 4px; cursor: pointer; transition: background-color 300ms ease, border-color 200ms ease, box-shadow 200ms ease; }
.dashboard-heat-cell:hover { border-color: #50688f; box-shadow: inset 0 0 0 1px #50688f; }
.dashboard-heat-cell[aria-pressed="true"] { border-color: #233852; box-shadow: inset 0 0 0 1px #233852; }
.dashboard-heat-cell.working { border-color: #233852; cursor: progress; }
.overview-dashboard .zero { background-color: #edf1f5; }
.overview-dashboard .unknown { background-color: white; border: 1px dashed #8a96a9; }
.overview-dashboard .positive-1 { background-color: var(--dashboard-positive-1); }
.overview-dashboard .positive-2 { background-color: var(--dashboard-positive-2); }
.overview-dashboard .positive-3 { background-color: var(--dashboard-positive-3); }
.overview-dashboard .positive-4 { background-color: var(--dashboard-positive-4); }
.overview-dashboard .negative-1 { background-color: var(--dashboard-negative-1); }
.overview-dashboard .negative-2 { background-color: var(--dashboard-negative-2); }
.overview-dashboard .negative-3 { background-color: var(--dashboard-negative-3); }
.overview-dashboard .negative-4 { background-color: var(--dashboard-negative-4); }
.dashboard-heat-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #5d6b80; font-size: 10px; margin-top: 10px; }
.dashboard-heat-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 2px; vertical-align: -1px; }
.dashboard-heat-legend > span:first-child { margin-right: 7px; }
.dashboard-heat-legend > .dashboard-legend-note { margin-left: auto; }
.dashboard-heat-legend [hidden] { display: none; }
.dashboard-metric-note { color: #5d6b80; font-size: 11px; line-height: 1.75; margin: 11px 0 0; }
.dashboard-day-detail { border-top: 1px solid var(--line); padding-top: 16px; background: white; }
.dashboard-day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 19px; }
.dashboard-day-head h3 { font-size: 13px; margin: 0; font-weight: 650; }
.dashboard-day-head strong { font-size: 15px; color: #31425f; }
.dashboard-detail-filter { display: flex; gap: 8px; margin: 13px 19px 0; }
.dashboard-detail-filter input { min-width: 0; flex: 1; min-height: 36px; max-width: none; font-size: 12px; }
.dashboard-detail-filter .button { flex: none; font-size: 12px; }
.dashboard-day-detail .operations-results-bar { border: 0; padding-top: 11px; padding-bottom: 11px; }
.dashboard-day-detail .table-scroll { border-top: 1px solid var(--line); }
.dashboard-day-detail table { min-width: 530px; }
.dashboard-day-detail table td { max-width: 280px; overflow-wrap: anywhere; }
.dashboard-day-detail .empty { padding: 23px 19px; text-align: left; font-size: 12px; }
.dashboard-composition { padding: 0 19px 17px; }
.dashboard-composition-total { display: flex; align-items: baseline; gap: 8px; margin-bottom: 11px; }
.dashboard-composition-total strong { font-size: 23px; color: #31425f; font-weight: 650; }
.dashboard-composition-total span { font-size: 11px; color: #5d6b80; }
.dashboard-composition-bar { display: flex; overflow: hidden; width: 100%; height: 9px; border-radius: 3px; gap: 2px; margin-bottom: 17px; }
.dashboard-state-color { flex-basis: 0; min-width: 2px; }
.dashboard-state-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.dashboard-state-list li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto 34px; align-items: center; gap: 9px; font-size: 12px; }
.dashboard-state-list strong { font-weight: 600; }
.dashboard-state-list small { text-align: right; color: #5d6b80; font-size: 10px; }
.dashboard-state-dot { width: 8px; height: 8px; border-radius: 2px; }
.overview-dashboard .color-0 { background: #607aa6; }
.overview-dashboard .color-1 { background: #a2b5d2; }
.overview-dashboard .color-2 { background: #bc9365; }
.overview-dashboard .color-3 { background: #6f9692; }
.overview-dashboard .color-4 { background: #9795ab; }
.overview-dashboard .color-5 { background: #c8cfd9; }
.dashboard-capacity-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 18px; align-items: start; }
.dashboard-table-note { margin: 0; padding: 0 19px 13px; color: #5d6b80; font-size: 11px; line-height: 1.7; }
.dashboard-upcoming table { min-width: 420px; }
.dashboard-warehouses table { min-width: 610px; }
.dashboard-capacity-grid .table-scroll + .dashboard-table-note { padding-top: 13px; }
.overview-dashboard .dashboard-tasks, .overview-dashboard .dashboard-notifications { margin-bottom: 18px; }
.dashboard-task-filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 19px; margin: 0; background: #f5f7fb; border-block: 1px solid var(--line); }
.dashboard-task-filter input { min-height: 38px; min-width: 0; max-width: none; flex: 1 1 220px; font-size: 12px; }
.dashboard-task-filter button { min-height: 38px; }
.dashboard-tasks table { min-width: 820px; }
.dashboard-tasks td:nth-child(5) { max-width: 250px; overflow-wrap: anywhere; }
.dashboard-notifications table { min-width: 570px; }
.dashboard-notifications td:first-child { max-width: 550px; overflow-wrap: anywhere; }
.dashboard-readiness summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 19px; cursor: pointer; }
.dashboard-readiness summary span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; }
.dashboard-readiness summary strong { font-size: 14px; font-weight: 650; }
.dashboard-readiness summary small { color: #5d6b80; font-size: 12px; }
.dashboard-readiness summary::after { content: ""; flex: 0 0 7px; width: 7px; height: 7px; border-right: 1.5px solid #62738a; border-bottom: 1.5px solid #62738a; transform: rotate(45deg); transition: transform 200ms ease; }
.dashboard-readiness[open] summary::after { transform: rotate(225deg); }
.dashboard-readiness .table-scroll { border-top: 1px solid var(--line); }
.dashboard-readiness table { min-width: 620px; }
.dashboard-readiness .dashboard-table-note { padding-top: 13px; }
.overview-dashboard .dashboard-unavailable { padding: 20px; margin-bottom: 18px; background: #f6f8fc; }
.dashboard-unavailable h2 { font-size: 15px; margin: 0 0 9px; }
.dashboard-unavailable p { max-width: 72ch; color: #5d6b80; font-size: 13px; line-height: 1.75; margin: 0 0 13px; }
.overview-dashboard button:not(.dashboard-heat-cell):disabled { cursor: progress; opacity: .65; }
.overview-dashboard button:focus-visible, .dashboard-readiness summary:focus-visible, .dashboard-heat-scroll:focus-visible { outline: 2px solid #526b9b; outline-offset: 3px; }
.overview-dashboard input[type="search"] { caret-color: var(--blue); }
.overview-dashboard .table-scroll { max-width: 100%; }
@media (max-width: 1200px) {
  .dashboard-stat-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 0; }
  .dashboard-stat:nth-child(4) { border-left: 0; }
  .dashboard-stat:nth-child(n+4) { padding-top: 15px; border-top: 1px solid var(--line); }
  .dashboard-analysis-grid { grid-template-columns: minmax(0, 1fr) 245px; }
  .dashboard-activity .panel-head { align-items: flex-start; flex-direction: column; }
  .dashboard-shortcut { padding: 12px; gap: 8px; }
  .dashboard-shortcut > svg.dashboard-shortcut-arrow { display: none; }
}
@media (max-width: 900px) {
  .dashboard-analysis-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-state-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-activity .panel-head { flex-direction: row; flex-wrap: wrap; }
  .dashboard-capacity-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-shortcut { min-height: 76px; padding: 14px 17px; }
}
@media (max-width: 600px) {
  .overview-dashboard .page-head { margin-bottom: 17px; }
  .overview-dashboard .page-head h1 { font-size: 21px; }
  .dashboard-section-title { flex-wrap: wrap; gap: 5px 10px; }
  .dashboard-section-title > span { font-size: 11px; }
  .dashboard-today-list { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .dashboard-today-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 14px; padding: 13px 15px; }
  .dashboard-today-name { align-self: center; }
  .dashboard-today-count { grid-column: 2; grid-row: 1; margin: 0; gap: 6px; padding: 2px 0; }
  .dashboard-today-count strong { font-size: 25px; }
  .dashboard-today-flags { margin: 8px 0 9px; grid-column: 1 / -1; }
  .dashboard-today-flags button { min-height: 35px; }
  .dashboard-today-action { grid-column: 1 / -1; }
  .dashboard-today-action .button { min-height: 40px; flex: 1; }
  .dashboard-shortcut { padding: 13px; align-items: flex-start; gap: 8px; }
  .dashboard-shortcut > svg { width: 21px; height: 21px; flex-basis: 21px; }
  .dashboard-shortcut small { font-size: 10px; }
  .dashboard-stat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-block: 15px; gap: 14px 0; }
  .dashboard-stat { padding-inline: 14px; }
  .dashboard-stat dd { font-size: 19px; }
  .dashboard-stat:nth-child(3), .dashboard-stat:nth-child(5) { border-left: 0; }
  .dashboard-stat:nth-child(4) { border-left: 1px solid var(--line); }
  .dashboard-stat:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 13px; }
  .overview-dashboard .dashboard-panel .panel-head { padding: 15px; }
  .dashboard-metric-tabs { width: 100%; }
  .dashboard-metric-tabs button { flex: 1; padding: 8px 5px; font-size: 11px; min-height: 40px; }
  .dashboard-activity-body { padding: 15px; }
  .dashboard-heat-legend > .dashboard-legend-note { flex-basis: 100%; margin-top: 5px; }
  .dashboard-day-head { padding-inline: 15px; flex-wrap: wrap; gap: 6px; }
  .dashboard-detail-filter { margin-inline: 15px; flex-wrap: wrap; }
  .dashboard-detail-filter input { min-height: 40px; flex-basis: 180px; }
  .dashboard-detail-filter .button { min-height: 40px; }
  .dashboard-state-panels { grid-template-columns: minmax(0, 1fr); }
  .dashboard-state-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 17px; }
  .dashboard-state-list li { grid-template-columns: 7px minmax(0, 1fr) auto; gap: 7px; align-items: start; line-height: 1.4; }
  .dashboard-state-list small { grid-column: 2 / 4; text-align: left; margin-top: -6px; }
  .dashboard-state-dot { margin-top: 4px; }
  .dashboard-task-filter { padding-inline: 15px; }
  .dashboard-task-filter input { flex-basis: 100%; min-height: 42px; }
  .dashboard-task-filter button { min-height: 42px; flex: 1; }
  .dashboard-readiness summary { padding: 15px; flex-wrap: wrap; gap: 10px; }
  .dashboard-readiness summary span:first-child { flex-basis: 100%; }
  .dashboard-readiness summary::after { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-shortcut, .dashboard-metric-tabs button, .dashboard-heat-cell { transition-duration: 80ms; }
  .dashboard-shortcut:active { transform: none; background: #d9e4f3; }
  .dashboard-readiness summary::after { transition: none; }
}
