/* Desktop dashboard. Scoped selectors preserve the existing business forms. */
.portal-filter .toolbar{gap:16px;align-items:flex-end}
#content .portal-filter .toolbar>label{flex:0 1 600px;min-width:0}
.portal-filter select{width:100%;min-height:42px}
.portal-filter button{min-width:96px}
.dashboard{display:grid;gap:20px;min-width:0}
.dashboard .panel{margin:0}
.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.dashboard-metric{background:#fff;border:1px solid #dce5e9;border-radius:10px;padding:22px;min-width:0;border-top:3px solid #08776c}
.dashboard-metric h2,.dashboard-heading h2{font-size:15px;line-height:1.5;margin:0;color:#263d49}
.dashboard-value{font-size:clamp(23px,2vw,32px);font-weight:700;line-height:1.5;margin:12px 0 8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dashboard-value small,.dashboard-tasks dd small{font-size:13px;font-weight:400;color:#647781;margin-left:8px}
.dashboard-metric:last-child .dashboard-value{font-size:clamp(18px,1.4vw,26px);white-space:nowrap}
.dashboard-metric:last-child .dashboard-value small{display:block;margin-left:0}
.dashboard-metric p{font-size:12px;line-height:1.6;color:#647781;margin:0}
.dashboard-middle{display:grid;grid-template-columns:minmax(260px,1fr) minmax(0,2fr);gap:20px}
.dashboard-heading{padding:18px 22px;border-bottom:1px solid #e8eef1;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.dashboard-heading>span,.dashboard-caption{font-size:12px;color:#647781}
.dashboard-tasks dl{margin:0;padding:8px 22px}
.dashboard-tasks dl>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0}
.dashboard-tasks dl>div+div{border-top:1px solid #e8eef1}
.dashboard-tasks dt{font-size:14px;line-height:1.5}
.dashboard-tasks dd{margin:0;font-size:22px;font-weight:700;font-variant-numeric:tabular-nums}
.dashboard-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:18px 22px}
#content .dashboard-links button{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px 16px;text-align:left;min-width:0}
.dashboard-links strong{font-size:14px}
.dashboard-links span{font-size:12px;font-weight:400;color:#647781;line-height:1.5}
.dashboard-overview table{width:100%;min-width:850px}
.dashboard-overview .table-scroll{max-height:480px}
.dashboard-overview thead th{position:sticky;top:0;z-index:1;background:#f7fafb}
.dashboard-overview th,.dashboard-overview td{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.dashboard-overview th:first-child,.dashboard-overview td:first-child{text-align:left;min-width:190px;max-width:300px;white-space:normal;overflow-wrap:anywhere}
.dashboard-overview td:first-child strong,.dashboard-overview td:first-child span{display:block;line-height:1.6}
.dashboard-overview td:first-child span{font-size:12px;color:#647781;margin-top:4px}
.dashboard-empty{padding:42px 24px;text-align:center}
.dashboard-empty h3{font-size:16px;margin:0 0 10px}
.dashboard-empty p{font-size:14px;color:#647781;margin:0 0 20px;line-height:1.6}
.dashboard-caption{margin:0;line-height:1.6}
@media(min-width:701px) and (max-width:1200px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-middle{grid-template-columns:1fr}.dashboard-links{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.dashboard-metrics,.dashboard-middle{grid-template-columns:1fr}.dashboard-links{grid-template-columns:1fr}.dashboard-metric{padding:18px}.dashboard-heading{padding:16px}.dashboard-value{font-size:28px}}
