/* Approved Home layout; scoped to avoid changing other workflows. */
body:has(.home-dashboard) {background:#f5f8f7;color:#243d45}
.app-shell:has(.home-dashboard) .app-header {height:72px;min-height:72px;border-color:#e4edeb}
.app-shell:has(.home-dashboard) .app-identity {flex-direction:row;align-items:center;gap:12px;color:#087d70}
.app-shell:has(.home-dashboard) .app-sidebar {border-color:#e4edeb;padding:28px 18px}
.app-shell:has(.home-dashboard) .foundation-nav-link {color:#647b82;padding:13px 17px;border-radius:11px}
.app-shell:has(.home-dashboard) .foundation-nav-link.active {background:#e8f5f0;color:#087d70;font-weight:700}
.app-shell:has(.home-dashboard) .app-content {padding:32px;min-width:0;background:#f5f8f7}
.home-dashboard {--home-green:#087d70;--home-line:#e5edeb;max-width:1240px;margin:auto;font-size:14px}
.home-heading {display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:27px}
.home-heading h1 {font-size:26px;font-weight:700;margin:0 0 9px;color:#243d45}
.home-heading p,.home-panel-head p {color:#83979d;margin:0;line-height:1.8;font-size:12px}
.home-today {font-size:12px;color:#80979c;white-space:nowrap}
.home-overview {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:23px;margin-bottom:24px;align-items:stretch}
.home-panel {background:white;border:1px solid var(--home-line);border-radius:16px;box-shadow:0 5px 22px #23483c05;min-width:0;overflow:hidden}
.home-panel-head {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:23px 24px;border-bottom:1px solid #f1f5f4;min-height:99px}
.home-panel h2 {font-size:17px;font-weight:700;margin:0 0 7px;color:#2b444b;line-height:1.65}
.home-panel-icon {color:#087d70;background:#edf8f4;border-radius:12px;width:40px;height:40px;display:grid;place-items:center;font-size:26px;flex-shrink:0}
.home-scores,.home-pending-table {width:100%;border-collapse:collapse;text-align:right}
.home-scores th,.home-pending-table th {font-size:11px;color:#879ca2;font-weight:400;background:#fbfdfc;padding:15px 17px;white-space:nowrap}
.home-scores td {padding:22px 17px;border-bottom:1px solid #f0f4f3;font-size:13px}
.home-scores tr:last-child td,.home-pending-table tr:last-child td {border-bottom:0}
.home-branch {display:flex;align-items:center;gap:8px;font-weight:500;overflow-wrap:anywhere}
.home-dot {width:8px;height:8px;display:inline-block;border-radius:50%;flex-shrink:0}
.home-score {font-size:22px;font-weight:700;color:#35525b;white-space:nowrap}
.home-critical {border-radius:7px;min-width:31px;display:inline-block;text-align:center;padding:4px 8px;background:#fff5e8;color:#b97d38;font-size:12px}
.home-critical.zero {background:#edf7f2;color:#5c9a7d}
.home-panel-foot {border-top:1px solid #f0f4f3;color:#92a3a8;font-size:11px;padding:16px 23px;line-height:1.8}
.home-chart-controls {display:flex;align-items:center;gap:9px;font-size:11px;color:#84989e;flex-shrink:0}
.home-chart-controls select {border:1px solid #dce7e4;background:white;border-radius:7px;color:#3a595e;padding:8px;max-width:165px;font-size:12px}
.home-chart-box {padding:16px 20px 0;direction:ltr}
.home-chart-heading {display:flex;justify-content:space-between;font-size:10px;color:#96a8ad;padding:0 8px 7px;direction:rtl}
#home-trend-chart {display:block;width:100%;height:auto;overflow:visible}
#home-trend-chart text {fill:#91a5aa;font-size:10px}
.home-chart-line {fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.home-chart-dot {fill:white;stroke-width:2.5;cursor:help}
.home-chart-dot:focus,.home-chart-dot:hover {fill:#dcebe5;stroke-width:4;outline:none;r:6}
.home-legend {display:flex;gap:14px 21px;justify-content:center;flex-wrap:wrap;padding:8px 20px 18px;font-size:11px;color:#708a92}
.home-legend>span {display:flex;align-items:center;gap:7px}
.home-chart-status {padding:13px 22px;background:#fbfdfc;border-top:1px solid #f0f4f3;color:#90a2a8;font-size:11px;min-height:46px;line-height:1.7}
.home-pending-total {background:#edf7f2;color:#489276;border-radius:8px;padding:6px 11px;font-size:12px;white-space:nowrap}
.home-pending-table td {border-bottom:1px solid #edf3f1;padding:22px 23px;font-size:13px}
.home-pending-table th {padding:15px 23px}
.home-pending-table strong {font-weight:600;display:block;color:#34505a}
.home-pending-table small {display:block;color:#95a7ac;font-size:11px;margin-top:7px}
.home-waiting {display:inline-block;background:#fff7e9;color:#b98a40;border-radius:7px;font-size:11px;padding:6px 10px;white-space:nowrap}
.home-inspection-link {display:inline-block;border:1px solid #a9d7c7;color:#087d70;text-decoration:none;border-radius:8px;padding:8px 13px;white-space:nowrap;font-size:12px}
.home-inspection-link:hover {background:#edf8f4}
.home-inspection-link:focus-visible,.home-chart-controls select:focus-visible {outline:2px solid #087d70;outline-offset:3px}
.home-state {padding:30px 24px;color:#71878e;min-height:100px;font-size:13px;line-height:1.9}
.home-error {color:#a54136;background:#fff9f7;margin:0}
@media(max-width:1100px) {.home-overview {grid-template-columns:minmax(0,1fr)} .home-scores td {padding:16px 20px}}
@media(max-width:760px) {
 .app-shell:has(.home-dashboard) .app-content {padding:20px 15px}
 .app-shell:has(.home-dashboard) .app-header {padding:10px 16px}
 .app-shell:has(.home-dashboard) .app-sidebar {padding:10px 15px}
 .home-heading {align-items:flex-start;gap:12px;margin-bottom:20px}
 .home-heading h1 {font-size:21px}.home-heading p {font-size:11px}.home-today {font-size:10px;padding-top:6px}
 .home-overview {gap:17px;margin-bottom:17px}.home-panel {border-radius:13px}
 .home-panel-head {padding:18px 16px;gap:10px;min-height:87px}.home-panel h2 {font-size:14px}.home-panel-head p {font-size:10px}
 .home-chart-panel .home-panel-head {align-items:flex-start;flex-direction:column}.home-chart-controls {align-self:flex-end}
 .home-scores th {padding:12px 10px;font-size:10px}.home-scores td {padding:18px 10px;font-size:12px}.home-score {font-size:21px}
 .home-chart-box {padding:13px 8px 0}#home-trend-chart text {font-size:14px}.home-legend {font-size:10px;gap:10px 12px;padding:8px 10px 13px}.home-chart-status {font-size:11px;padding:10px 13px}
 .home-pending-total {font-size:10px}.home-pending-table thead {display:none}
 .home-pending-table tbody {display:grid;gap:12px;padding:13px}.home-pending-table tr {display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--home-line);border-radius:10px;padding:7px}
 .home-pending-table td {border:0;padding:7px;font-size:12px;min-width:0;overflow-wrap:anywhere}.home-pending-table td:first-child,.home-pending-table td:last-child {grid-column:1/-1}
 .home-pending-table td[data-label]:before {content:attr(data-label);display:block;color:#91a3a9;font-size:10px;margin-bottom:6px}
 .home-inspection-link {width:100%;text-align:center;padding:10px}.home-panel-foot {padding:12px 15px;font-size:10px}
}
