/* Shared dashboard hierarchy without changing reporting scopes or calculations. */
.dashboard,.agent-dashboard{--db-surface:#fff;--db-raised:#f4f8fe;--db-text:#143455;--db-muted:#536d89;--db-border:#d8e5f4;--db-accent:#1e63df}
:is(.dashboard,.agent-dashboard) :is(.dash-metric,.ad-metric){box-sizing:border-box;min-height:158px;border:1px solid var(--db-border);border-top:3px solid #377ce4;border-radius:14px;padding:22px!important;background:var(--db-surface);box-shadow:0 5px 16px #1c46720a;display:flex;align-items:flex-start;gap:14px}
.agent-dashboard .ad-metric{display:grid;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:1fr auto;gap:12px}.agent-dashboard .ad-metric:after{display:none}.agent-dashboard .ad-metric>.ad-icon{grid-column:2;grid-row:1;float:none;margin:0}.agent-dashboard .ad-metric>div{grid-column:1;grid-row:1}.agent-dashboard .ad-metric>.ad-link{grid-column:1/-1;grid-row:2;justify-self:start;padding:0;font-size:14px!important;font-weight:650}
:is(.dashboard,.agent-dashboard) :is(.dash-metric .dash-icon,.ad-metric .ad-icon){width:44px;height:44px;flex-shrink:0;border-radius:11px;background:#e9f2ff;color:#2463d6;display:grid;place-items:center}
:is(.dashboard,.agent-dashboard) :is(.dash-label,.ad-metric h2){font-size:14px!important;line-height:1.4;font-weight:650;color:var(--db-muted)!important;max-width:none;margin:0}
:is(.dashboard,.agent-dashboard) :is(.dash-metric strong,.ad-metric strong){display:block;font-size:clamp(26px,2.5vw,36px)!important;line-height:1.25;font-weight:750;letter-spacing:-.7px;margin:10px 0 6px;color:var(--db-text)!important;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;padding:0}
:is(.dashboard,.agent-dashboard) :is(.dash-metric small,.ad-metric small){display:block;font-size:12px;line-height:1.5;color:var(--db-muted)!important}
.dashboard .dash-metrics,.agent-dashboard .ad-metrics{gap:16px;align-items:stretch}
.dashboard .dashboard-request-feature,.agent-dashboard .dashboard-request-feature{display:flex;align-items:center;gap:24px;flex-wrap:wrap;padding:24px!important;border:1px solid #aac9f3;border-left:5px solid #2469df;border-radius:14px;background:linear-gradient(110deg,#eef5ff,#fff)!important;box-shadow:0 5px 18px #215a9b0a;margin:0 0 20px;color:#143455}
.agent-dashboard .ad-lead-request{margin:0 12px 16px}.dashboard-request-intro{display:flex;align-items:center;gap:16px;flex:1;min-width:220px}.dashboard-request-intro>.dash-icon,.dashboard-request-intro>.ad-icon{width:48px;height:48px;border-radius:12px;flex-shrink:0;background:#dceaff;color:#1e63df;display:grid;place-items:center}.dashboard-request-intro svg{width:24px;height:24px}.dashboard-eyebrow{display:block;font-size:11px;letter-spacing:.9px;font-weight:750;color:#32639d;margin-bottom:5px}
:is(.dashboard,.agent-dashboard) .dashboard-request-feature h2{font-size:22px!important;line-height:1.35;margin:0;color:#143455!important;letter-spacing:-.3px}.dashboard-request-intro p{margin:7px 0 0;font-size:14px;line-height:1.5;color:#496786!important}.dashboard-request-total{padding:0 24px;border-left:1px solid #c6d9f0;min-width:150px}.dashboard-request-total strong{font-size:34px;font-weight:800;line-height:1.2;color:#1c59bf;display:block}.dashboard-request-total span{font-size:13px;line-height:1.5;color:#496786;display:block;margin-top:5px}.dashboard-request-feature .btn{font-size:14px;min-height:44px;border-radius:9px;padding:12px 18px}.dashboard-request-buttons{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.dashboard-request-buttons .ad-link{font-size:14px;font-weight:650}

.agent-dashboard .ad-goal{border-top:3px solid #377ce4;padding:24px}.agent-dashboard .ad-goal h2{font-size:23px}.agent-dashboard .ad-goal .ad-hint{font-size:14px}.agent-dashboard .ad-goal-numbers>strong{font-size:34px;line-height:1.25;color:var(--db-text)}.agent-dashboard .ad-goal-numbers>span{font-size:15px;line-height:1.5;color:var(--db-muted);margin-bottom:16px}.agent-dashboard .ad-goal-numbers p{font-size:14px;line-height:1.5;color:var(--db-text)}.agent-dashboard .ad-ring strong{font-size:32px}.agent-dashboard .ad-card-head{gap:14px}.agent-dashboard .ad-next-row strong{font-size:15px}.agent-dashboard .ad-next-row small{font-size:13px;line-height:1.5}
html[data-theme=dark] :is(.dashboard,.agent-dashboard){--db-surface:#142238;--db-raised:#1d304b;--db-text:#e6eefb;--db-muted:#b6c7dc;--db-border:#344963;--db-accent:#9bc4ff}
html[data-theme=dark] :is(.dashboard,.agent-dashboard) .dashboard-request-feature{background:linear-gradient(110deg,#1c3557,#142238)!important;border-color:#4b77ad;color:#e6eefb}
html[data-theme=dark] :is(.dashboard,.agent-dashboard) .dashboard-request-feature h2{color:#e6eefb!important}html[data-theme=dark] .dashboard-request-intro p{color:#b9cce3!important}html[data-theme=dark] :is(.dashboard-eyebrow,.dashboard-request-total span){color:#b9cce3}html[data-theme=dark] .dashboard-request-total strong{color:#9bc4ff}html[data-theme=dark] .dashboard-request-total{border-color:#4b77ad}html[data-theme=dark] .agent-dashboard .ad-ring:before{background:#142238}html[data-theme=dark] .agent-dashboard .ad-ring strong{color:#e6eefb}
@media(max-width:1000px){.dashboard-request-total{padding:0 16px}.dashboard .dash-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.agent-dashboard .ad-goal-body{flex-wrap:wrap}.agent-dashboard .ad-goal-numbers{flex:1 1 170px}}
@media(max-width:600px){:is(.dashboard,.agent-dashboard) :is(.dash-metric,.ad-metric){padding:18px!important;min-height:145px}.dashboard .dashboard-request-feature,.agent-dashboard .dashboard-request-feature{padding:20px!important;gap:18px}.dashboard-request-intro{min-width:0;flex-basis:100%;align-items:flex-start}.dashboard-request-total{padding:0;border:0}.dashboard-request-feature>.btn{margin-left:auto}.dashboard-request-buttons{width:100%}.agent-dashboard .ad-goal{padding:20px}.dashboard .dash-metric .dash-icon{display:none}.dashboard .dash-metric strong{font-size:27px!important}}
/* Admin hero and monthly goal use their original dashboard.css styling. */


/* Pending requests remain visible through count refreshes, in either theme. */
.dashboard .dashboard-request-feature.db-pending{background:linear-gradient(110deg,#fff0f1,#fff8f8)!important;border-color:#eda0aa;border-left-color:#cf263d}
.dashboard .dashboard-request-feature.db-pending :is(h2,.dashboard-request-total strong){color:#a51e31!important}
.dashboard .dashboard-request-feature.db-pending :is(.dashboard-eyebrow,.dashboard-request-total span,.dashboard-request-intro p){color:#8a3340!important}
.dashboard .dashboard-request-feature.db-pending .dash-icon{background:#ffdde2;color:#b62038}
.dashboard .dashboard-request-feature.db-pending .dashboard-request-total{border-color:#edb4bc}
.dashboard .dashboard-request-feature.db-pending .btn.primary{background:#bd2439!important;border-color:#bd2439!important;color:#fff!important}
html[data-theme=dark] .dashboard .dashboard-request-feature.db-pending{background:linear-gradient(110deg,#49252f,#30232d)!important;border-color:#a85262;border-left-color:#ff6c83}
html[data-theme=dark] .dashboard .dashboard-request-feature.db-pending :is(h2,.dashboard-request-total strong){color:#ffd5dc!important}
html[data-theme=dark] .dashboard .dashboard-request-feature.db-pending :is(.dashboard-eyebrow,.dashboard-request-total span,.dashboard-request-intro p){color:#f1b8c2!important}
