/* Compact summary row, followed by a full-width work calendar. */
.dashboard-page .dashboard-top-grid {grid-template-columns:minmax(0,1fr); align-items:start;}
.dashboard-page .dashboard-calendar {width:100%; min-height:0;}
.dashboard-page .dashboard-calendar-body {max-height:none;}
.dashboard-page .dashboard-calendar-controls {gap:12px;}
.dashboard-page .dashboard-calendar-controls label,
.dashboard-page .dashboard-calendar-controls select {min-width:0;}
.dashboard-page .dashboard-calendar-controls select {width:100%;}
.dashboard-page .dashboard-calendar-day {min-height:100px; padding:8px;}
.dashboard-page .dashboard-calendar-day-heading {font-size:.8rem;}
.dashboard-page .dashboard-calendar-task {font-size:.8rem;}
.dashboard-page.cal-ui .dashboard-summary-cards { padding:0; grid-template-columns:repeat(6,minmax(0,1fr)); align-items:stretch; align-content:start; grid-auto-rows:auto; gap:12px; }
.dashboard-page .dashboard-summary-cards .card { display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:8px; text-align:left; padding:16px; min-width:0; width:100%; font:inherit; white-space:normal; border:1px solid #cbd5e1; border-radius:12px; background:white; color:#193047; }
.dashboard-page .dashboard-summary-cards .card[hidden] {display:none;}
.dashboard-page .dashboard-summary-cards .card h3 {margin:0; min-height:2.8em; font-size:.95rem; line-height:1.4;}
.dashboard-page .dashboard-summary-cards .card .metric {margin:0; font-size:2rem; line-height:1.1;}
.dashboard-page .dashboard-summary-cards button:hover {border-color:#2563eb;background:#eff6ff;}
.dashboard-page .dashboard-summary-cards button:focus-visible {outline:3px solid #2563eb;outline-offset:3px;}
#company-schedule-health {margin:20px;padding:24px;}
#company-schedule-health > p {color:#52647b;line-height:1.5;margin-top:10px;}
.dashboard-details-dialog {width:min(900px,calc(100vw - 32px));max-height:90dvh;overflow:auto;border:1px solid #cbd5e1;border-radius:16px;padding:24px;color:#193047;}
.dashboard-details-dialog::backdrop {background:#17263b99;}
.dashboard-details-dialog header {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;}
.dashboard-details-list {display:grid;gap:12px;margin-top:20px;}
.dashboard-details-list article {padding:18px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;}
.dashboard-details-list p {margin:10px 0;line-height:1.5;overflow-wrap:anywhere;}
@media(max-width:1100px) {.dashboard-page.cal-ui .dashboard-summary-cards {grid-template-columns:repeat(3,minmax(0,1fr));}}
@media(max-width:650px) {.dashboard-page.cal-ui .dashboard-summary-cards {grid-template-columns:repeat(2,minmax(0,1fr));} #company-schedule-health{margin:12px;padding:16px;}}
@media(max-width:380px) {.dashboard-page.cal-ui .dashboard-summary-cards {grid-template-columns:1fr;}}
