/* ALPLINE 4.1.115 — dashboard-only paper finish, without DOM/layout reorder.
   Only existing dashboard routes; Owner's Original grid stays in its original order. */
body.member-portal[data-route="dashboard"],body.franchise-portal[data-route="franchise.dashboard"] {
 --alp115-ink:#153641;--alp115-muted:#536e73;--alp115-line:#dbe7e6;
 --alp115-shadow:0 4px 17px rgba(14,53,64,.055);
}
body.member-portal[data-route="dashboard"] .portal-content,
body.franchise-portal[data-route="franchise.dashboard"] .portal-content {
 background:#f4f9f9!important;color:var(--alp115-ink)!important;
}
body.member-portal[data-route="dashboard"] .portal-content :is(h1,h2,h3),
body.franchise-portal[data-route="franchise.dashboard"] .portal-content :is(h1,h2,h3){
 color:#132f42!important;font-weight:790!important;line-height:1.25!important;letter-spacing:-.018em!important;
 text-shadow:none!important;
}
/* 8 established operational KPI cards remain untouched in arrangement and count. */
body.franchise-portal[data-route="franchise.dashboard"] main.alp457-franchise-dashboard .alp481-kpis>article,
body.franchise-portal[data-route="franchise.dashboard"] main.alp457-franchise-dashboard .alp457-kpi-grid>article,
body.member-portal[data-route="dashboard"] main.member-workspace :is(.alp481-kpis,.alp484-primary-kpis,.alp484-secondary-kpis,.alp457-kpi-grid,.live-summary)>article,
body.member-portal[data-route="dashboard"] main.member-workspace .workspace-card {
 background:#fff!important;border:1px solid var(--alp115-line)!important;border-radius:12px!important;
 box-shadow:var(--alp115-shadow)!important;color:var(--alp115-ink)!important;min-width:0!important;
}
body.franchise-portal[data-route="franchise.dashboard"] main.alp457-franchise-dashboard .alp481-kpis>article,
body.franchise-portal[data-route="franchise.dashboard"] main.alp457-franchise-dashboard .alp457-kpi-grid>article {
 min-height:126px!important;transition:box-shadow .15s ease;
}
body.franchise-portal[data-route="franchise.dashboard"] main.alp457-franchise-dashboard .alp457-kpi-grid>article a {
 min-height:0!important;height:100%!important;padding:14px 15px!important;
}
body.franchise-portal[data-route="franchise.dashboard"] main.alp457-franchise-dashboard .alp457-kpi-grid :is(a>i,a i) {
 width:28px!important;height:28px!important;min-width:28px!important;border-radius:8px!important;
 font-style:normal!important;font-size:14px!important;line-height:1!important;display:grid!important;place-items:center!important;
 color:var(--brand-primary,#096b67)!important;background:color-mix(in srgb,var(--brand-primary,#096b67) 9%,white)!important;
}
body.franchise-portal[data-route="franchise.dashboard"] main.alp457-franchise-dashboard .alp457-kpi-grid a>small,
body.member-portal[data-route="dashboard"] main.member-workspace .live-summary small {
 color:#405e61!important;font-size:12px!important;line-height:1.4!important;letter-spacing:0!important;font-weight:710!important;
}
body.franchise-portal[data-route="franchise.dashboard"] main.alp457-franchise-dashboard .alp457-kpi-grid a>strong,
body.member-portal[data-route="dashboard"] main.member-workspace .live-summary b {
 font-size:clamp(22px,2.2vw,29px)!important;line-height:1.17!important;color:#0f3842!important;
 font-weight:820!important;font-variant-numeric:tabular-nums!important;letter-spacing:-.025em!important;
}
body.franchise-portal[data-route="franchise.dashboard"] main.alp457-franchise-dashboard .alp457-kpi-grid a>span {
 font-size:11px!important;line-height:1.45!important;color:var(--alp115-muted)!important;font-weight:480!important;
}
/* Preserve hero and group layout while removing excess whitespace. */
body.franchise-portal[data-route="franchise.dashboard"] main .alp457-franchise-head,
body.member-portal[data-route="dashboard"] main.member-workspace .dash-head {
 background:#fff!important;border:1px solid var(--alp115-line)!important;border-radius:13px!important;
 box-shadow:0 3px 14px rgba(14,53,64,.035)!important;padding:clamp(16px,2vw,24px)!important;
 min-height:0!important;box-sizing:border-box!important;
}
body.franchise-portal[data-route="franchise.dashboard"] main .alp457-franchise-head h1,
body.member-portal[data-route="dashboard"] main .dash-head h1 {
 font-size:clamp(24px,2.7vw,34px)!important;line-height:1.19!important;margin:5px 0!important;
}
body.member-portal[data-route="dashboard"] main .function-grid :is(i,svg),
body.member-portal[data-route="dashboard"] main .dashboard-function-grid :is(i,svg) {
 width:28px!important;height:28px!important;font-size:15px!important;min-width:28px!important;
 border-radius:8px!important;color:var(--brand-primary,#076b68)!important;
 background:color-mix(in srgb,var(--brand-primary,#076b68) 10%,white)!important;
}
body.member-portal[data-route="dashboard"] main .function-grid a,
body.franchise-portal[data-route="franchise.dashboard"] main .franchise-launchpad-grid a {
 background:#fff!important;border:1px solid var(--alp115-line)!important;
 border-radius:10px!important;box-shadow:0 2px 10px rgba(15,50,62,.045)!important;
 min-width:0!important;min-height:63px!important;padding:11px 12px!important;
}
body.member-portal[data-route="dashboard"] main .function-grid a :is(b,strong),
body.franchise-portal[data-route="franchise.dashboard"] main .franchise-launchpad-grid a strong {
 color:#183942!important;font-size:13px!important;font-weight:780!important;line-height:1.3!important;
}
body.member-portal[data-route="dashboard"] main .function-grid a small,
body.franchise-portal[data-route="franchise.dashboard"] main .franchise-launchpad-grid a span {
 color:#516a6c!important;font-size:11px!important;line-height:1.4!important;
}
body.member-portal[data-route="dashboard"] main :is(.alp484-panel,.alp457-paper,.control-card),
body.franchise-portal[data-route="franchise.dashboard"] main :is(.control-card,.alp457-paper,.od-panel) {
 border-color:var(--alp115-line)!important;box-shadow:var(--alp115-shadow)!important;
}
body.member-portal[data-route="dashboard"] .portal-sidebar .portal-menu i,
body.franchise-portal[data-route="franchise.dashboard"] .portal-sidebar .portal-menu i {
 font-size:15px!important;line-height:1!important;
}
/* Distinguish selected nav without changing user-selected admin colours. */
body.member-portal[data-route="dashboard"] .portal-sidebar a.active,
body.franchise-portal[data-route="franchise.dashboard"] .portal-sidebar a.active {
 box-shadow:inset 3px 0 color-mix(in srgb,var(--brand-primary,#0b7567) 70%,white)!important;
}
body.member-portal[data-route="dashboard"] :is(a,button):focus-visible,
body.franchise-portal[data-route="franchise.dashboard"] :is(a,button):focus-visible {
 outline:3px solid color-mix(in srgb,var(--brand-primary,#087467) 46%,white)!important;outline-offset:2px!important;
}
@media(max-width:680px){
 body.franchise-portal[data-route="franchise.dashboard"] main.alp457-franchise-dashboard .alp457-kpi-grid>article {min-height:108px!important}
 body.franchise-portal[data-route="franchise.dashboard"] main.alp457-franchise-dashboard .alp457-kpi-grid>article a {padding:11px!important}
 body.member-portal[data-route="dashboard"] main .function-grid a {padding:10px!important}
}
@media(prefers-reduced-motion:reduce){
 body.franchise-portal[data-route="franchise.dashboard"] main .alp457-kpi-grid>article {transition:none!important}
}
