:root {
    color-scheme: light;
    --ink: #17212b;
    --muted: #607080;
    --line: #cfd6dc;
    --panel: #f4f5f6;
    --card: #ffffff;
    --green: #176f4d;
    --yellow: #c48916;
    --blue: #2366d1;
    --red: #bf3434;
    --bar: #d7d9db;
    --bar-dark: #9fa2a5;
    --shadow: 0 10px 28px rgba(17, 24, 39, .18);
}

.client-guidance {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid #b7babd;
    background: #fff;
}

.client-guidance article {
    min-height: 72px;
    display: grid;
    align-content: center;
    gap: 4px;
    padding: 12px 16px;
    border-right: 1px solid #d4d7da;
}

.client-guidance strong {
    font-size: 14px;
}

.client-guidance span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.client-assurance {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.client-assurance article {
    border: 1px solid #b9b9b9;
    border-left: 5px solid var(--yellow);
    padding: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}

.client-assurance span {
    color: #8c640f;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.client-assurance strong {
    display: block;
    margin: 5px 0 7px;
}

.client-assurance p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

@media (max-width: 920px) {
    .client-guidance,
    .client-assurance {
        grid-template-columns: 1fr;
    }
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: #dfe2e5;
    overflow-x: hidden;
}

.client-login {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(110deg, rgba(7, 24, 41, .94), rgba(7, 24, 41, .72) 45%, rgba(16, 116, 87, .36)),
        url("kobis-login-bg.jpg") center right / cover;
}

.client-login.hidden { display: none; }

.client-login:not(.hidden) + .client-shell {
    display: none;
}

.client-login-card {
    width: min(450px, 100%);
    display: grid;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 8px;
    padding: 28px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 28px 76px rgba(0, 0, 0, .34);
}

.client-login-card img,
.client-brand img {
    width: 62px;
    height: auto;
}

.client-login-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(20, 63, 107, .12);
}

.client-login-brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.client-login-brand strong {
    display: block;
    color: #143f6b;
    font-size: 24px;
    font-weight: 950;
}

.client-login-brand small {
    display: block;
    color: #607080;
    font-size: 12px;
    font-weight: 900;
}

.eyebrow {
    margin: 0;
    color: #8c640f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2 { letter-spacing: 0; }

.client-login-card h1,
.client-header h1 {
    margin-bottom: 0;
}

.client-login-card h1 {
    color: #10263f;
    font-size: 30px;
    line-height: 1.08;
}

.client-login-copy,
.client-login-footnote {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.client-login-card label {
    display: grid;
    gap: 6px;
    color: #263747;
    font-size: 13px;
    font-weight: 900;
}

input,
button {
    min-height: 31px;
    border-radius: 3px;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
}

input {
    border: 1px solid #a3a7aa;
    padding: 0 11px;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12);
}

button {
    border-color: #adb1b8 #a2a6ac #8d9096;
    border-style: solid;
    border-width: 1px;
    padding: 0 12px;
    background-image: linear-gradient(#f7f8fa, #e7e9ec);
    color: #0f1111;
    cursor: pointer;
    box-shadow: rgba(255, 255, 255, .6) 0 1px 0 inset;
}

button:hover {
    border-color: #a2a6ac #979aa1 #82858a;
}

button:focus {
    border-color: #d4961e;
    box-shadow: rgba(212, 150, 30, .42) 0 0 3px 2px;
    outline: 0;
}

.client-login-card button,
.client-actions button:last-child {
    border-color: #0d5f3e #0b5437 #08452d;
    background-image: linear-gradient(#21845d, var(--green));
    color: #fff;
}

.client-shell {
    min-height: 100vh;
    padding-bottom: 26px;
}

.client-header {
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 62px;
    padding: 8px 18px;
    border-bottom: 1px solid #8f9295;
    background:
        linear-gradient(#eeeeef, #c9cbcd);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .85),
        0 2px 8px rgba(0, 0, 0, .14);
}

.client-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.client-brand span {
    color: #46515d;
    font-size: 12px;
    font-weight: 850;
}

.client-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.client-tabs {
    display: flex;
    min-height: 42px;
    border-bottom: 1px solid #a7aaad;
    background: linear-gradient(#eceeef, #d1d3d5);
}

.client-tabs button {
    min-width: 118px;
    min-height: 42px;
    border: 0;
    border-right: 1px solid #a7aaad;
    border-radius: 0;
    background: transparent;
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, .55);
    display: grid;
    place-items: center;
    gap: 1px;
    color: #33404c;
}

.client-tabs button span {
    font-size: 10px;
    font-weight: 950;
    color: #6b7280;
}

.client-tabs button.active {
    background: linear-gradient(#f9fafb, #e4e6e8);
    color: #111827;
}

.client-context {
    display: grid;
    grid-template-columns: 1.2fr .7fr .5fr .7fr;
    gap: 0;
    border-bottom: 1px solid #b7babd;
    background: #f4f5f6;
}

.client-context div {
    min-height: 52px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 9px 16px;
    border-right: 1px solid #d4d7da;
}

.client-context span,
.client-card small,
.empty-state {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.client-context strong {
    font-size: 15px;
}

.client-panel {
    display: none;
    padding: 16px;
}

.client-panel.active {
    display: block;
}

.dashboard-intro,
.client-card {
    border: 1px solid #b9b9b9;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--shadow);
}

.dashboard-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding: 14px 16px;
}

.dashboard-intro p:last-child {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-weight: 750;
}

.client-overview-grid {
    display: grid;
    grid-template-columns: 300px minmax(420px, 1fr) minmax(320px, .75fr) minmax(320px, .75fr);
    gap: 14px;
}

.client-card {
    padding: 14px;
}

.client-card h2 {
    margin-bottom: 12px;
    font-size: 18px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.progress-card {
    display: grid;
    justify-items: center;
    gap: 12px;
}

.progress-ring {
    display: grid;
    place-items: center;
    width: 146px;
    height: 146px;
    border-radius: 50%;
    background: conic-gradient(var(--green) 0deg, #dfe5dc 0deg);
}

.progress-ring span {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: #fff;
    font-size: 28px;
    font-weight: 950;
}

.progress-bars {
    width: 100%;
    display: grid;
    gap: 7px;
}

.progress-bars label {
    display: flex;
    justify-content: space-between;
    color: #435160;
    font-size: 12px;
    font-weight: 900;
}

meter {
    width: 100%;
    height: 13px;
}

.client-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.client-stats div {
    min-height: 92px;
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.client-stats strong {
    font-size: 30px;
    line-height: 1;
}

.client-stats span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.split-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .72fr);
    gap: 14px;
}

.client-list {
    display: grid;
    gap: 9px;
}

.client-list article {
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    padding: 10px;
    background: var(--panel);
}

.client-list.compact article {
    padding: 9px;
}

.client-list article > div,
.client-day-chart article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.client-list strong {
    font-size: 14px;
}

.client-list ul {
    margin: 4px 0 0;
    padding-left: 18px;
}

.client-progress-line {
    height: 9px;
    overflow: hidden;
    border: 1px solid #c6ccd2;
    background: #fff;
}

.client-progress-line i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--green), #35a06f);
}

.client-progress-line.warn i,
.client-progress-line.yellow i {
    background: linear-gradient(90deg, #c48916, #f0c75c);
}

.client-progress-line.info i {
    background: linear-gradient(90deg, var(--blue), #66a3ff);
}

.client-progress-line.danger i,
.client-progress-line.red i {
    background: linear-gradient(90deg, var(--red), #e36a58);
}

.status {
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.status-geleegd { background: #dff3e7; color: var(--green); }
.status-open { background: #fff6d8; color: #9a6710; }
.status-probleem { background: #e9f0ff; color: var(--blue); }
.status-niet_bereikbaar { background: #fde4dd; color: var(--red); }

.metric-row.good,
.street-card.green { box-shadow: inset 4px 0 0 var(--green); }

.metric-row.warn,
.street-card.yellow { box-shadow: inset 4px 0 0 var(--yellow); }

.metric-row.info { box-shadow: inset 4px 0 0 var(--blue); }

.metric-row.danger,
.street-card.red { box-shadow: inset 4px 0 0 var(--red); }

.type-row.kind-hand { box-shadow: inset 4px 0 0 #06b6d4; }
.type-row.kind-smal { box-shadow: inset 4px 0 0 #8b5cf6; }
.type-row.kind-normaal { box-shadow: inset 4px 0 0 #c48916; }

.street-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.client-day-chart {
    display: grid;
    gap: 8px;
}

.client-day-chart article {
    min-height: 32px;
    display: grid;
    grid-template-columns: 58px 1fr 54px;
    align-items: center;
    gap: 10px;
}

.client-day-chart div {
    height: 12px;
    border: 1px solid #c6ccd2;
    background: #fff;
}

.client-day-chart i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--green), #35a06f);
}

.client-day-chart span,
.client-day-chart strong {
    font-size: 12px;
}

@media (max-width: 1200px) {
    .client-overview-grid,
    .split-list {
        grid-template-columns: 1fr 1fr;
    }

    .progress-card {
        grid-column: span 1;
    }
}

@media (max-width: 820px) {
    .client-header,
    .client-brand,
    .dashboard-intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-tabs {
        overflow-x: auto;
    }

    .client-context,
    .client-overview-grid,
    .split-list,
    .client-stats {
        grid-template-columns: 1fr;
    }

    .client-panel {
        padding: 10px;
    }
}
