.dashboard-page{padding-top:0!important;background:linear-gradient(180deg,#f3f8fa 0,#f7f8fb 250px,#f7f8fb 100%)}
.compact-home-heading{display:none!important}
.overview-grid{gap:14px!important;margin-inline:0;padding:12px;border-radius:18px;background:linear-gradient(135deg,rgba(234,244,249,.92),rgba(235,243,250,.92))}
.overview-grid .feed-label,.overview-grid .stat-copy-main>span{font-size:var(--fs-sec)!important;font-weight:var(--fw-strong)}
.dashboard-summary-toggle{position:fixed;z-index:49;top:72px;right:24px;left:24px;width:auto;height:44px;display:flex;align-items:center;justify-content:center;gap:10px;margin:0;padding:7px 12px;border:1px solid #1d1d1f;border-radius:0 0 10px 10px;background:linear-gradient(135deg,#17171a 0%,#20282c 58%,#351a32 100%);color:#fff;box-shadow:0 8px 22px rgba(28,42,49,.16);opacity:0;visibility:hidden;transform:translateY(-10px);pointer-events:none;transition:opacity .22s ease,transform .22s ease,visibility 0s linear .22s;cursor:pointer}.dashboard-summary-toggle.is-visible{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto;transition-delay:0s}.dashboard-summary-toggle>span{display:flex;align-items:center;gap:5px}.dashboard-summary-toggle b{font-size:var(--fs-sub)}.dashboard-summary-toggle em{color:#bbe7ff;font-size:var(--fs-sub);font-style:normal;font-weight:var(--fw-strong)}.dashboard-summary-toggle>i:not([data-lucide]){width:1px;height:14px;background:rgba(255,255,255,.2)}.dashboard-summary-toggle small{margin-left:auto;color:#b9b4c2;font-size:11px}.dashboard-summary-toggle svg{width:15px;color:#fff}@media(min-width:901px){.dashboard-summary-toggle{left:256px}}
.overview-grid .stat,.overview-grid .compact-feed{height:142px!important;min-height:142px!important}
.overview-grid .stat{align-items:stretch!important;padding:20px 18px!important}
.overview-grid .stat-copy{align-content:space-between!important;gap:10px!important}
.stat-copy-main{display:grid;gap:7px}
.stat-copy-main>span{font-size:17px!important;font-weight:var(--fw-title)!important;letter-spacing:-.015em}
.stat-metric-note .priority-link{border:0;border-radius:6px;background:transparent;padding:3px 5px;font-size:var(--fs-sub);font-weight:var(--fw-strong);text-decoration:none!important;transition:background-color .16s ease,color .16s ease}
.stat-metric-note .priority-link.urgent{color:#d82665}
.stat-metric-note .priority-link.urgent:hover,.stat-metric-note .priority-link.urgent:focus-visible{background:#ffe7f0;color:#bd1553;outline:2px solid rgba(216,38,101,.18)}
.stat-metric-note .priority-link:not(.urgent){color:#6b6475}
.stat-metric-note .priority-link:not(.urgent):hover,.stat-metric-note .priority-link:not(.urgent):focus-visible{background:#e9f3f8;color:#3588b5;outline:2px solid rgba(53,136,181,.14)}
.stat-age-note{display:flex;align-items:center;gap:6px;color:#6f7782;font-size:var(--fs-sub);font-weight:var(--fw-strong);white-space:nowrap}
.stat-age-note svg{width:13px;height:13px;color:#016299}
.stat-age-note b{color:#2c7aa4;font-size:var(--fs-sub)}
.overview-grid .stat-side{align-self:center}
@media(max-width:1180px){.overview-grid{margin-inline:0}}
@media(max-width:640px){.overview-grid{padding:9px}.overview-grid .stat,.overview-grid .compact-feed{height:136px!important;min-height:136px!important}}

/* Keep the request feed title, context, and action buttons visible. */
.overview-grid .stat,.overview-grid .compact-feed{height:208px!important;min-height:208px!important}
.overview-grid .compact-feed{overflow:hidden!important;padding:14px 16px 18px!important}
.overview-grid .compact-feed .task-feed-card{
  height:160px!important;
  min-height:160px!important;
  grid-template-rows:25px minmax(70px,1fr) 34px!important;
  gap:5px;
  overflow:hidden!important;
  padding-bottom:13px!important;
}
.overview-grid .compact-feed .task-feed-copy{min-height:0;align-content:start;overflow:hidden}
.overview-grid .compact-feed .task-feed-copy span{display:block!important}
.overview-grid .compact-feed .task-feed-footer{
  position:static!important;
  min-height:34px!important;
  padding-top:4px!important;
  overflow:visible!important;
}
.overview-grid .compact-feed .task-feed-actions{min-height:30px!important}
@media(max-width:640px){
  .overview-grid .stat,.overview-grid .compact-feed{height:auto!important;min-height:174px!important}
  .overview-grid .compact-feed .task-feed-card{
    height:auto!important;
    min-height:138px!important;
    grid-template-rows:auto minmax(58px,1fr) auto!important;
  }
}
.dashboard-layout:has(.focus-rail[hidden]){grid-template-columns:1fr}.focus-actions .btn.pink{background:var(--accent);border-color:var(--accent);color:#fff}.item-excel-wrap{width:100%;padding:8px 0 12px;background:#f5f8ff;overflow-x:auto}.dashboard-order-table .item-excel-table{width:100%;min-width:680px;table-layout:fixed;border-collapse:collapse;background:#f5f8ff;font-size:var(--fs-sub)}.dashboard-order-table .item-excel-table thead{position:static}.dashboard-order-table .item-excel-table th,.dashboard-order-table .item-excel-table td{display:table-cell!important;min-width:0!important;padding:9px 8px;border:0;border-bottom:1px solid #dbe8fb;text-align:left;white-space:normal}.dashboard-order-table .item-excel-table th{height:auto;border-top:1px solid #dbe8fb;background:#edf4ff;color:var(--muted);font-weight:var(--fw-strong)}.dashboard-order-table .item-excel-table tbody tr:last-child td{border-bottom:0}.dashboard-order-table .item-excel-table th:nth-child(1){width:6%}.dashboard-order-table .item-excel-table th:nth-child(2){width:18%}.dashboard-order-table .item-excel-table th:nth-child(3){width:24%}.dashboard-order-table .item-excel-table th:nth-child(4){width:12%}.dashboard-order-table .item-excel-table th:nth-child(5){width:16%}.dashboard-order-table .item-excel-table th:nth-child(6){width:16%}.dashboard-order-table .item-excel-table th:nth-child(7){width:8%}.item-detail-actions{display:flex;justify-content:flex-end;padding:10px 12px 0}.item-detail-link{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border:1px solid #a9c6f3;border-radius:6px;background:#fff;color:#285eb7;font-size:var(--fs-sub);font-weight:var(--fw-strong);text-decoration:none}.item-detail-link:hover,.item-detail-link:focus-visible{border-color:#5f92df;background:#eaf2ff}.item-detail-link svg{width:14px;height:14px}html[data-theme="dark"] .item-excel-wrap,html[data-theme="dark"] .dashboard-order-table .item-excel-table{background:rgba(36,120,242,.07)}html[data-theme="dark"] .dashboard-order-table .item-excel-table th{background:rgba(36,120,242,.12)}

/* The request queue needs more reading and action space than a summary card. */
.overview-grid{grid-template-columns:minmax(390px,1.7fr) repeat(3,minmax(180px,1fr))!important}
.overview-grid .compact-feed{padding-bottom:14px!important}
.overview-grid .compact-feed .task-feed-card{height:100%!important;min-height:0!important;padding-bottom:0!important;grid-template-rows:25px minmax(55px,1fr) 36px!important}
.overview-grid .compact-feed .task-feed-actions{grid-template-columns:32px minmax(120px,1fr) 64px!important;gap:6px}
.overview-grid .compact-feed .task-feed-actions>[data-feed-snooze]{width:32px}
.overview-grid .compact-feed .task-feed-actions .personal-complete{width:64px}
.feed-autoplay-progress,.feed-page-dots{display:none!important}
/* Keep the operational summary on one row on narrow desktop screens. */
@media(max-width:1250px) and (min-width:761px){
  .dashboard-page{padding-top:12px}
  .compact-home-heading{display:none}
  .overview-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;margin-inline:0}
  .overview-grid .compact-feed{grid-column:span 2}
  .overview-grid .stat{grid-column:span 1;min-width:0;padding-inline:14px!important}
  .overview-grid .stat-copy-main>span{font-size:var(--fs-sec)!important}
  .overview-grid .stat-side>strong{font-size:27px}
  .overview-grid .stat-age-note{font-size:11px}
}
@media(max-width:640px){.overview-grid{grid-template-columns:1fr!important}.overview-grid .compact-feed{grid-column:auto}}

/* Header owns the two short action counters; the body keeps operational depth. */
.topbar .dashboard-a11y-title{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.header-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(460px,46vw);margin-right:auto}
.header-stat{min-width:0;height:54px;display:grid;grid-template-columns:minmax(0,1fr) auto 14px;align-items:center;gap:8px;padding:7px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--text);box-shadow:0 3px 12px rgba(0,0,0,.035)}
.header-stat>span{display:grid;gap:2px;min-width:0}.header-stat>span>strong{font-size:var(--fs-body)}.header-stat>span>small{overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.header-stat>span b{color:var(--pink)}.header-stat>span i{font-style:normal}.header-stat>em{font-size:22px;font-style:normal;font-weight:var(--fw-strong);font-variant-numeric:tabular-nums}.header-stat>em small{margin-left:2px;color:var(--muted);font-size:10px}.header-stat>svg{width:14px;color:var(--muted)}
.header-stat:hover,.header-stat:focus-visible{border-color:rgba(1,98,153,.42);background:var(--accent-soft);outline:0}.header-stat:hover>svg{color:var(--accent);transform:translateX(2px)}
.overview-grid{grid-template-columns:minmax(460px,2fr) minmax(230px,1fr)!important}.overview-grid .stat-request,.overview-grid .stat-approval{display:none}.overview-grid .compact-feed,.overview-grid .stat-production{height:158px!important;min-height:158px!important}
@media(max-width:1050px){.header-stats{width:min(390px,42vw)}.header-stat{padding-inline:8px}.header-stat>span>small{display:none}}
@media(max-width:1250px) and (min-width:901px){.overview-grid .compact-feed{grid-column:auto}}
@media(max-width:900px){.topbar .dashboard-a11y-title{position:static!important;width:auto!important;height:auto!important;margin:0!important;overflow:visible!important;clip:auto!important}.header-stats{display:none}.overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.overview-grid .compact-feed{grid-column:1/-1}.overview-grid .stat-request,.overview-grid .stat-approval{display:grid}.overview-grid .stat,.overview-grid .compact-feed{height:auto!important;min-height:158px!important}}

/* Freeze the dashboard shell while the center workspace scrolls independently. */
@media(min-width:901px){html:has(.dashboard-page),body:has(.dashboard-page){height:100%;overflow:hidden}body:has(.dashboard-page) .app{height:100vh;min-height:0;overflow:hidden}body:has(.dashboard-page) .sidebar{position:fixed;z-index:30;inset:0 auto 0 0;width:232px;height:100vh;overflow-y:auto;overflow-x:hidden}body:has(.dashboard-page) .main{width:calc(100vw - 232px);height:100vh;margin-left:232px;overflow:hidden}body:has(.dashboard-page) .topbar{position:fixed;z-index:50;top:0;right:0;left:232px;height:72px}body:has(.dashboard-page) .main>[data-page-slot]{position:fixed;inset:72px 0 0 232px;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable}body:has(.dashboard-page) .dashboard-page{height:auto;min-height:calc(100vh - 72px);overflow:visible;padding-bottom:32px}body:has(.dashboard-page) .orders-surface{height:auto;min-height:0}body:has(.dashboard-page) .main>[data-page-slot]{scrollbar-width:thin;scrollbar-color:var(--line-strong) transparent}body:has(.dashboard-page) .main>[data-page-slot]::-webkit-scrollbar{width:10px}body:has(.dashboard-page) .main>[data-page-slot]::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:999px;background:var(--line-strong);background-clip:padding-box}}
@media(min-width:1100px){body:has(.dashboard-page) .orders-surface .surface-head{position:sticky;z-index:23;top:44px;background:var(--surface)}body:has(.dashboard-page) .dashboard-order-table-wrap{overflow:visible}body:has(.dashboard-page) .dashboard-order-table>thead{position:sticky!important;z-index:22;top:112px}body:has(.dashboard-page) .dashboard-order-table>thead tr{background:var(--surface-2)}}

.dashboard-order-table .item-excel-wrap{padding-top:0}.dashboard-order-table .item-excel-table{min-width:720px}.dashboard-order-table .item-excel-table thead{position:static!important;top:auto!important}.dashboard-order-table .item-excel-table th{border-top:0}.dashboard-order-table .item-excel-table th:nth-child(1){width:6%}.dashboard-order-table .item-excel-table th:nth-child(2){width:16%}.dashboard-order-table .item-excel-table th:nth-child(3){width:22%}.dashboard-order-table .item-excel-table th:nth-child(4){width:12%}.dashboard-order-table .item-excel-table th:nth-child(5){width:14%}.dashboard-order-table .item-excel-table th:nth-child(6){width:14%}.dashboard-order-table .item-excel-table th:nth-child(7){width:9%}.dashboard-order-table .item-excel-table th:nth-child(8){width:7%}
html[data-theme="dark"] .dashboard-summary-toggle{border-color:#3b3343;background:linear-gradient(135deg,#17171a 0%,#20282c 58%,#351a32 100%)}
