/* =======================================================================
   DASHBOARD (mockup: docs/mockup-dashboard-airco-holland.html)
   Eigen bento-panelen in de .ah-*-naamruimte, geplaatst in het Filament-
   widgetraster (12 koloms). Kleuren flippen mee met het licht/donker-thema.
   ======================================================================= */

:root {
    --ah-card: #ffffff;
    --ah-ink: #1c2030;
    --ah-muted: #6b7180;
    --ah-line: #e7e9f1;
    --ah-veld: #f7f8fc;
    --ah-chip: #eef0f7;
    --ah-oranje-bg: #fff4e3;
    --ah-groen: #1f9d57;
    --ah-groen-bg: #e7f5ee;
    --ah-amber: #c9820a;
    --ah-amber-bg: #fdf1da;
    --ah-rood: #d4493f;
    --ah-rood-bg: #fbe9e7;
    --ah-blauw: #2f6fdb;
    --ah-blauw-bg: #e8f0fd;
    --ah-paars: #5b46c9;
    --ah-paars-bg: #ece9fb;
}

html.dark {
    --ah-card: #1f2733;
    --ah-ink: #f1f3f8;
    --ah-muted: #9aa3b2;
    --ah-line: rgba(255, 255, 255, 0.08);
    --ah-veld: rgba(255, 255, 255, 0.04);
    --ah-chip: rgba(255, 255, 255, 0.06);
    --ah-oranje-bg: rgba(249, 147, 0, 0.16);
}

.ah-ico {
    width: 1.05rem;
    height: 1.05rem;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

/* Begroeting */
.ah-hi {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.ah-hi-groet {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ah-marine);
}
html.dark .ah-hi-groet {
    color: #fff;
}
.ah-hi-sub {
    margin: 0.25rem 0 0;
    color: var(--ah-muted);
    font-size: 0.9rem;
}
.ah-hi-datum {
    color: var(--ah-muted);
    font-size: 0.85rem;
    font-weight: 600;
    background: var(--ah-card);
    border: 1px solid var(--ah-line);
    padding: 0.55rem 0.9rem;
    border-radius: 0.7rem;
}

/* KPI-tegels */
.ah-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 68rem) {
    .ah-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 34rem) {
    .ah-kpis {
        grid-template-columns: 1fr;
    }
}
.ah-kpi {
    display: block;
    background: var(--ah-card);
    border: 1px solid var(--ah-line);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ah-kpi:hover {
    border-color: var(--ah-oranje);
    box-shadow: 0 2px 12px rgba(33, 38, 80, 0.08);
}
.ah-kpi-lab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ah-muted);
    font-size: 0.78rem;
    font-weight: 600;
}
.ah-kpi-pic {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    background: var(--ah-oranje-bg);
    color: var(--ah-oranje-d);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ah-kpi-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ah-marine);
    margin: 0.6rem 0 0.15rem;
    line-height: 1;
}
html.dark .ah-kpi-num {
    color: #fff;
}
.ah-kpi-vs {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ah-muted);
}

/* Paneel (kaart) */
.ah-panel {
    height: 100%;
    background: var(--ah-card);
    border: 1px solid var(--ah-line);
    border-radius: 1rem;
    padding: 1.1rem 1.1rem 0.5rem;
    display: flex;
    flex-direction: column;
    color: var(--ah-ink);
}
.ah-p-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}
.ah-p-head .ah-tt {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ah-marine);
}
html.dark .ah-p-head .ah-tt {
    color: #fff;
}
.ah-pic {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    background: var(--ah-chip);
    color: var(--ah-marine);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
html.dark .ah-pic {
    color: #cdd3f0;
}
.ah-meer {
    margin-left: auto;
    color: var(--ah-muted);
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
}
a.ah-meer:hover {
    color: var(--ah-oranje-d);
}
.ah-leeg {
    color: var(--ah-muted);
    font-size: 0.85rem;
    padding: 0.6rem 0 1rem;
}

/* Openstaande acties */
.ah-taak {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--ah-line);
    text-decoration: none;
    color: inherit;
}
.ah-taak:first-of-type {
    border-top: none;
}
.ah-taak:hover .ah-t1 {
    color: var(--ah-oranje-d);
}
.ah-chk {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 0.4rem;
    border: 2px solid #cdd1e0;
    flex: none;
    margin-top: 0.1rem;
}
.ah-taak-body {
    flex: 1;
    min-width: 0;
}
.ah-t1 {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ah-ink);
}
.ah-t2 {
    font-size: 0.78rem;
    color: var(--ah-muted);
    margin-top: 0.1rem;
}
.ah-pill {
    font-size: 0.66rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
    flex: none;
}
.ah-pill-hoog {
    background: var(--ah-rood-bg);
    color: var(--ah-rood);
}
.ah-pill-vandaag {
    background: var(--ah-amber-bg);
    color: var(--ah-amber);
}
.ah-pill-week {
    background: var(--ah-blauw-bg);
    color: var(--ah-blauw);
}

/* Planning vandaag */
.ah-ev {
    display: flex;
    gap: 0.8rem;
    padding: 0.6rem 0;
    border-top: 1px solid var(--ah-line);
    text-decoration: none;
    color: inherit;
}
.ah-ev:first-of-type {
    border-top: none;
}
.ah-ev:hover .ah-t1 {
    color: var(--ah-oranje-d);
}
.ah-tijd {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ah-marine);
    width: 2.6rem;
    flex: none;
    padding-top: 0.05rem;
}
html.dark .ah-tijd {
    color: #cdd3f0;
}
.ah-streep {
    width: 4px;
    border-radius: 4px;
    flex: none;
    background: var(--ah-groen);
}
.ah-route {
    margin-top: auto;
    margin-bottom: 0.6rem;
    background: var(--ah-chip);
    border-radius: 0.7rem;
    padding: 0.6rem 0.75rem;
    color: var(--ah-muted);
    font-size: 0.76rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ah-route .ah-ico {
    color: var(--ah-oranje-d);
    width: 0.95rem;
    height: 0.95rem;
}

/* Berichten */
.ah-bericht {
    display: flex;
    gap: 0.7rem;
    padding: 0.65rem 0;
    border-top: 1px solid var(--ah-line);
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.ah-bericht:first-of-type {
    border-top: none;
}
.ah-kan {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    background: var(--ah-marine);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    font-weight: 700;
    font-size: 0.8rem;
}
.ah-bericht-body {
    flex: 1;
    min-width: 0;
}
.ah-nm {
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--ah-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ah-sn {
    font-size: 0.76rem;
    color: var(--ah-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ah-tag {
    font-size: 0.64rem;
    font-weight: 700;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    flex: none;
}
.ah-tag-nieuw {
    background: var(--ah-groen-bg);
    color: var(--ah-groen);
}
.ah-tag-klaar {
    background: var(--ah-blauw-bg);
    color: var(--ah-blauw);
}

/* Finance / in aanbouw */
.ah-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 1rem 1rem 1.6rem;
    margin: auto 0;
}
.ah-soon-ic {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.8rem;
    background: var(--ah-oranje-bg);
    color: var(--ah-oranje-d);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.2rem;
}
.ah-soon-ic .ah-ico {
    width: 1.4rem;
    height: 1.4rem;
}
.ah-soon-tt {
    font-weight: 700;
    color: var(--ah-marine);
    font-size: 0.9rem;
}
html.dark .ah-soon-tt {
    color: #fff;
}
.ah-soon-tx {
    color: var(--ah-muted);
    font-size: 0.78rem;
    max-width: 22rem;
}
.ah-soon-inline {
    margin-top: 0.6rem;
    margin-bottom: 0.8rem;
    background: var(--ah-oranje-bg);
    color: #8a5a06;
    border-radius: 0.7rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}
html.dark .ah-soon-inline {
    color: #f0b968;
}

/* Onderhoud & contracten */
.ah-od-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.ah-od-r {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0;
    font-size: 0.82rem;
    color: var(--ah-ink);
    text-decoration: none;
}
.ah-od-r:hover {
    color: var(--ah-oranje-d);
}
.ah-od-r b {
    color: var(--ah-marine);
}
html.dark .ah-od-r b {
    color: #fff;
}
.ah-od-r .ah-ico {
    color: var(--ah-oranje-d);
    width: 1rem;
    height: 1rem;
}

/* Pipeline */
.ah-pipe {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    text-decoration: none;
    margin-bottom: 0.7rem;
}
.ah-pipe-r {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8rem;
}
.ah-pipe-nm {
    width: 4.6rem;
    flex: none;
    color: var(--ah-muted);
    font-weight: 600;
}
.ah-pipe-track {
    flex: 1;
    height: 0.55rem;
    background: var(--ah-chip);
    border-radius: 6px;
    overflow: hidden;
}
.ah-pipe-track i {
    display: block;
    height: 100%;
    border-radius: 6px;
    background: var(--ah-marine);
}
html.dark .ah-pipe-track i {
    background: var(--ah-oranje);
}
.ah-pipe-n {
    width: 1.6rem;
    text-align: right;
    font-weight: 700;
    color: var(--ah-marine);
}
html.dark .ah-pipe-n {
    color: #fff;
}
