:root {
    --admin-bg: #eef2f5;
    --admin-ink: #111c27;
    --admin-muted: #66727e;
    --admin-line: #d9e1e8;
    --admin-card: #ffffff;
    --admin-soft: #f7f9fb;
    --admin-yellow: #f8c05a;
    --admin-green: #176f4d;
    --admin-blue: #2366a8;
    --admin-red: #b94134;
    --admin-shadow: 0 18px 50px rgba(15, 27, 40, .12);
}

.admin-command-strip,
.admin-focus-grid,
.client-guidance,
.client-assurance,
.professional-grid,
.security-band,
.driver-workflow {
    letter-spacing: 0;
}

.admin-command-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: -6px 0 18px;
}

.admin-command-strip article {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-height: 76px;
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 8px;
    padding: 13px 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 249, 251, .9));
    box-shadow: 0 10px 30px rgba(15, 27, 40, .1);
}

.admin-command-strip article > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #101923;
    background: var(--admin-yellow);
    font-weight: 950;
}

.admin-command-strip strong,
.admin-focus-grid strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.admin-command-strip small,
.admin-focus-grid small {
    display: block;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.admin-focus-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.admin-focus-grid article {
    border: 1px solid var(--admin-line);
    border-left: 5px solid var(--admin-yellow);
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 27, 40, .08);
}

.admin-focus-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--admin-green);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

@media (max-width: 980px) {
    .admin-command-strip,
    .admin-focus-grid {
        grid-template-columns: 1fr;
    }
}

.server-body {
    min-height: 100vh;
    overflow: auto;
    color: var(--admin-ink);
    background:
        linear-gradient(180deg, #101923 0, #101923 178px, transparent 178px),
        radial-gradient(circle at top right, rgba(248, 192, 90, .22), transparent 360px),
        var(--admin-bg);
}

.login-screen {
    background:
        linear-gradient(110deg, rgba(7, 24, 41, .95), rgba(20, 63, 107, .76) 44%, rgba(16, 116, 87, .42)),
        url("kobis-login-bg.jpg") center right / cover no-repeat;
}

.login-card {
    width: min(420px, 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .62);
    background: rgba(255, 255, 255, .96);
}

.login-card input {
    min-height: 44px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    padding: 0 12px;
}

.admin-shell {
    width: min(1520px, calc(100% - 36px));
    margin: 0 auto;
    padding: 22px 0 34px;
}

.admin-header {
    min-height: 112px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    color: #fff;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 22px;
}

.admin-brand img {
    width: 156px;
    height: auto;
    filter:
        brightness(0) saturate(100%) invert(82%) sepia(39%) saturate(1000%) hue-rotate(334deg) brightness(101%) contrast(95%)
        drop-shadow(0 12px 22px rgba(0, 0, 0, .32));
}

.admin-header h1,
.admin-card h2,
.admin-card h3 {
    margin: 0;
    letter-spacing: 0;
}

.admin-header h1 {
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1;
}

.admin-header .eyebrow {
    color: var(--admin-yellow);
}

.admin-toolbar,
.filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-toolbar {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(16px);
}

.admin-toolbar select,
.admin-toolbar button,
.filter-row select,
.filter-row input,
.user-form input,
.user-form select,
.municipality-form input,
.municipality-form select {
    min-height: 42px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: var(--admin-ink);
    font-weight: 800;
    outline: none;
}

.admin-toolbar button {
    border-color: rgba(255, 255, 255, .34) rgba(255, 255, 255, .22) rgba(255, 255, 255, .14);
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    background-image: linear-gradient(rgba(255, 255, 255, .2), rgba(255, 255, 255, .1));
    box-shadow: rgba(255, 255, 255, .28) 0 1px 0 inset;
    color: #fff;
    cursor: pointer;
}

.admin-toolbar button:hover,
.secondary-button:hover,
.mini-button:hover {
    border-color: var(--admin-yellow);
}

.admin-tabs {
    display: flex;
    gap: 4px;
    margin: 4px 0 18px;
    padding: 6px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--admin-shadow);
}

.admin-tabs button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    border-color: #d5d9d9 #c6cacc #b7babd;
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    padding: 0 18px;
    background-image: linear-gradient(#ffffff, #edf0f3);
    color: var(--admin-muted);
    font-weight: 900;
    cursor: pointer;
    box-shadow: rgba(255, 255, 255, .6) 0 1px 0 inset;
}

.admin-tabs button span {
    min-width: 26px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(17, 28, 39, .12);
    border-radius: 3px;
    background: rgba(255, 255, 255, .72);
    color: var(--admin-ink);
    font-size: 11px;
}

.admin-tabs button.active {
    border-color: #0d5f3e #0b5437 #08452d;
    color: #fff;
    background-image: linear-gradient(#21845d, var(--admin-green));
    box-shadow: rgba(255, 255, 255, .35) 0 1px 0 inset;
}

.admin-tab-panel {
    display: none;
}

.admin-tab-panel.active {
    display: block;
}

.dashboard-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(247, 249, 251, .92));
    box-shadow: var(--admin-shadow);
}

.dashboard-intro h2,
.dashboard-intro p {
    margin: 0;
}

.dashboard-intro h2 {
    font-size: 28px;
}

.dashboard-intro > p {
    max-width: 560px;
    color: var(--admin-muted);
    font-weight: 800;
    line-height: 1.45;
}

.admin-grid,
.overview-grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.admin-card {
    display: grid;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--admin-shadow);
}

.admin-card h2 {
    font-size: 22px;
}

.hidden {
    display: none !important;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--admin-line);
}

.split-list > div,
.assignment-panel,
.user-list,
.municipality-list {
    border-top: 1px solid var(--admin-line);
    padding-top: 14px;
}

.progress-card {
    justify-items: center;
}

.progress-ring {
    display: grid;
    place-items: center;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: conic-gradient(var(--admin-green) 0deg, #dde6df 0deg);
    box-shadow: inset 0 0 0 1px rgba(17, 28, 39, .08);
}

.progress-ring span {
    display: grid;
    place-items: center;
    width: 136px;
    height: 136px;
    border-radius: 999px;
    background: #fff;
    color: var(--admin-ink);
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 10px 30px rgba(17, 28, 39, .1);
}

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

.progress-bars label {
    display: flex;
    justify-content: space-between;
    color: var(--admin-muted);
    font-size: 13px;
    font-weight: 900;
}

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

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

.admin-stats div {
    min-height: 106px;
    display: grid;
    align-content: center;
    gap: 8px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    padding: 15px;
    background: linear-gradient(180deg, #fff, var(--admin-soft));
}

.admin-stats strong {
    display: block;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1;
}

.admin-stats span,
.user-list small,
.activity-list small,
.municipality-list small,
.record-list small {
    display: block;
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 850;
}

.user-form,
.municipality-form,
.assignment-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    background: var(--admin-soft);
}

.user-create-actions,
.user-management-grid,
.user-overview {
    display: grid;
    gap: 12px;
}

.user-create-actions {
    grid-template-columns: repeat(3, auto);
    align-items: center;
}

.user-management-grid {
    grid-template-columns: minmax(360px, .9fr) minmax(420px, 1.1fr);
    align-items: start;
}

.user-editor-panel,
.user-column {
    display: grid;
    gap: 12px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.user-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.user-column-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--admin-line);
}

.user-column-heading span {
    min-width: 34px;
    border-radius: 999px;
    padding: 6px 9px;
    background: #e7f4ec;
    color: #244b35;
    text-align: center;
    font-size: 12px;
    font-weight: 900;
}

.role-user-list {
    max-height: 430px;
    border-top: 0;
    padding-top: 0;
}

.municipality-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 180px 180px;
}

.rev-upload-form {
    margin-top: 14px;
    border-top: 1px solid rgba(30, 42, 35, .1);
    padding-top: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 170px;
}

.upload-intro {
    display: grid;
    gap: 3px;
    align-content: center;
}

.upload-intro small,
.form-message {
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
}

.form-message {
    margin: 0;
}

.assignment-panel {
    display: grid;
    gap: 12px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.compact-heading {
    padding-bottom: 10px;
}

.assignment-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    padding: 12px;
    border: 1px solid var(--admin-line);
    background: var(--admin-soft);
}

#assignmentId {
    display: none;
}

#assignmentNote {
    grid-column: 1 / -1;
}

.assignment-form .save-button,
.assignment-form .danger-button {
    width: 100%;
}

.assignment-form input,
.assignment-form select {
    min-height: 42px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: var(--admin-ink);
    font-weight: 800;
}

.check-line {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    font-weight: 850;
}

.check-line input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
}

.municipality-photo-toggle {
    grid-column: 1 / -1;
    justify-content: flex-start;
    border-color: rgba(196, 137, 22, .32);
    background: #fff8e8;
}

.municipality-photo-toggle span {
    color: var(--admin-ink);
}

.user-list,
.assignment-list,
.activity-list,
.municipality-list,
.record-list {
    display: grid;
    gap: 8px;
    max-height: 58vh;
    overflow: auto;
    padding-right: 4px;
}

.user-list article,
.assignment-list article,
.activity-list article,
.municipality-list article,
.record-list article {
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    padding: 13px;
    background: #fff;
}

.user-list article,
.assignment-list article {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
}

.municipality-list article {
    display: grid;
    gap: 12px;
    cursor: pointer;
}

.user-list article:hover,
.assignment-list article:hover,
.municipality-list article:hover,
.record-list article:hover {
    border-color: rgba(23, 111, 77, .45);
    box-shadow: 0 10px 24px rgba(17, 28, 39, .06);
}

.user-list article > span,
.assignment-list article > span,
.municipality-summary > span {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 5px 9px;
    color: #37513f;
    background: #e7f4ec;
    font-size: 12px;
    font-weight: 900;
}

.user-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.user-card-actions > span {
    border-radius: 999px;
    padding: 5px 9px;
    color: #37513f;
    background: #e7f4ec;
    font-size: 12px;
    font-weight: 900;
}

.mini-button {
    min-height: 32px;
    border-color: #d5d9d9 #c6cacc #b7babd;
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    padding: 0 10px;
    background-image: linear-gradient(#ffffff, #edf0f3);
    color: var(--admin-ink);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: rgba(255, 255, 255, .6) 0 1px 0 inset;
}

.assignment-active {
    border-color: rgba(23, 111, 77, .5) !important;
    background: #f3fbf6 !important;
}

.user-list em {
    color: var(--admin-green);
    font-style: normal;
    font-weight: 900;
}

.municipality-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.municipality-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.municipality-actions > span {
    border-radius: 999px;
    padding: 5px 9px;
    color: #37513f;
    background: #e7f4ec;
    font-size: 12px;
    font-weight: 900;
}

.round-button {
    border-color: #145f87 #104f70 #0c405b;
    background-image: linear-gradient(#eaf8ff, #cfeeff);
    color: #145f87;
}

.complete-button {
    border-color: #0d5f3e #0b5437 #08452d;
    background-image: linear-gradient(#e8f8ee, #cdeed9);
    color: #0d5639;
}

.work-complete-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(23, 111, 77, .35);
    border-radius: 8px;
    padding: 10px;
    background: #ecf9f0;
    color: #0d5639;
    font-size: 12px;
    font-weight: 900;
}

.work-complete-banner span {
    color: #234436;
    font-weight: 800;
}

.municipality-work {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--admin-line);
    padding-top: 10px;
}

.work-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.work-meta span {
    display: grid;
    gap: 4px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    padding: 10px;
    background: var(--admin-soft);
    color: var(--admin-muted);
    font-size: 12px;
    font-weight: 800;
}

.work-meta strong {
    color: var(--admin-ink);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.driver-work-list {
    display: grid;
    gap: 8px;
}

.driver-work {
    display: grid;
    gap: 8px;
    border: 1px solid var(--admin-line);
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.driver-work ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.driver-work li {
    display: grid;
    grid-template-columns: minmax(120px, .8fr) minmax(120px, 1fr) auto;
    gap: 8px;
    color: var(--admin-muted);
    font-size: 12px;
}

.driver-work li strong {
    color: var(--admin-ink);
}

.driver-work time {
    color: var(--admin-muted);
    font-weight: 850;
}

.is-muted {
    opacity: .62;
}

.split-list {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 16px;
    align-items: start;
}

.split-list h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.record-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.record-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.round-detail {
    display: block;
    margin-top: 4px;
    color: var(--admin-green);
    font-weight: 900;
}

.record-list ul {
    margin: 9px 0 0;
    padding-left: 18px;
    color: var(--admin-muted);
    font-size: 13px;
}

.operations-card {
    grid-column: 1 / -1;
}

.operations-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid #b4b9be;
    background: #b4b9be;
}

.daily-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 10px;
    border: 1px solid #b4b9be;
    background: #b4b9be;
}

.daily-summary .operation-row:nth-child(n+6) {
    grid-column: 1 / -1;
}

.operation-row {
    display: grid;
    gap: 5px;
    min-height: 64px;
    padding: 10px;
    background: linear-gradient(#fff, #e8ebee);
}

.operation-row span {
    color: #5b6269;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.operation-row strong {
    color: #1f252b;
    font-size: 12px;
}

.operation-row.good {
    box-shadow: inset 4px 0 0 #176f4d;
}

.operation-row.warn {
    box-shadow: inset 4px 0 0 #c48916;
}

.operation-row.danger {
    box-shadow: inset 4px 0 0 #b94134;
}

.operations-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.map-card {
    min-height: calc(100vh - 142px);
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-color: #9da2a7;
    border-radius: 6px;
    background: #d8d8d8;
}

.office-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 0;
    min-height: calc(100vh - 252px);
    border-top: 1px solid #a6a8aa;
}

.office-map {
    min-height: calc(100vh - 252px);
    border: 0;
    background: #e5e8eb;
}

.office-map-side {
    display: flex;
    flex-direction: column;
    align-content: start;
    gap: 0;
    min-width: 0;
    border: 0;
    border-left: 1px solid #8f9295;
    padding: 0;
    background: #d8d8d8;
    overflow: auto;
    scrollbar-width: thin;
}

.map-card > .section-heading {
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid #9da2a7;
    background: linear-gradient(#f4f4f4, #c9cbcd);
}

.map-card .section-heading h2 {
    font-size: 17px;
}

.map-card .section-heading .eyebrow {
    color: #40464d;
}

.office-map-panel-header {
    display: grid;
    gap: 3px;
    padding: 15px 12px 14px;
    border-bottom: 1px solid #a6a8aa;
    background: #efefef;
}

.office-map-panel-header span {
    color: #46505a;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.office-map-panel-header strong {
    color: #15191d;
    font-size: 16px;
    line-height: 1.2;
}

.office-map-panel-section {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #b8bbbe;
}

.office-map-panel-section h3 {
    margin: 0;
    font-size: 13px;
}

.office-layer-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.office-layer-menu button {
    height: 29px;
    border: 1px solid #9da2a7;
    border-radius: 3px;
    background-image: linear-gradient(#f7f8fa, #e0e3e6);
    color: #15191d;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.office-layer-menu button[aria-pressed="true"] {
    border-color: #4f7fbd;
    background: linear-gradient(#eaf2ff, #cbdff8);
    color: #163d73;
}

.map-legend {
    display: grid;
    gap: 8px;
}

.map-legend span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #38424c;
    font-size: 12px;
    font-weight: 850;
}

.map-legend i {
    width: 12px;
    height: 12px;
    border: 1px solid #111820;
}

.map-legend .open { background: #c48916; }
.map-legend .done { background: #176f4d; }
.map-legend .issue { background: #2366d1; }
.map-legend .blocked { background: #b94134; }
.map-legend .driver {
    border-radius: 999px;
    background: #111820;
}

.office-marker {
    width: 8px;
    height: 8px;
    border: 1px solid rgba(17, 24, 39, .65);
    background: #c48916;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.office-marker.geleegd { background: #176f4d; }
.office-marker.probleem { background: #2366d1; }
.office-marker.niet_bereikbaar { background: #b94134; }
.office-marker.driver {
    width: 16px;
    height: 16px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: #111820;
}

.office-map .maplibregl-ctrl-bottom-left {
    bottom: 8px;
}

.office-map .maplibregl-ctrl-group {
    border-radius: 3px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
    max-height: 68vh;
    overflow: auto;
}

.photo-card {
    display: grid;
    gap: 8px;
    border: 1px solid #b7bcc1;
    padding: 10px;
    background: #f8f8f8;
}

.photo-card-preview {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid #c6cbd0;
    background: #e5e8eb;
}

.photo-viewer {
    position: fixed;
    z-index: 2600;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 24, 39, .72);
}

.photo-viewer.hidden {
    display: none;
}

.photo-viewer-window {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(980px, 96vw);
    height: min(760px, 92vh);
    border: 1px solid #8f9295;
    background: #111820;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
}

.photo-viewer-window img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    background: #0b0f14;
}

.photo-viewer-window footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 42px;
    padding: 8px 12px;
    background: linear-gradient(#f4f4f4, #c9cbcd);
    color: #15191d;
    font-size: 13px;
    font-weight: 850;
}

.photo-viewer-close,
.photo-viewer-nav {
    position: absolute;
    z-index: 2;
    border: 1px solid #8d9096;
    border-radius: 3px;
    background-image: linear-gradient(#f7f8fa, #e0e3e6);
    color: #111820;
    cursor: pointer;
}

.photo-viewer-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 30px;
    font-size: 18px;
    font-weight: 900;
}

.photo-viewer-nav {
    top: 50%;
    width: 38px;
    height: 54px;
    transform: translateY(-50%);
    font-size: 32px;
    line-height: 1;
}

.photo-viewer-nav.previous {
    left: 10px;
}

.photo-viewer-nav.next {
    right: 10px;
}

.photo-viewer-nav:disabled {
    opacity: .35;
    cursor: default;
}

.compact-records {
    max-height: 36vh;
}

.control-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.import-preview {
    display: grid;
    gap: 8px;
    border: 1px solid #b4b9be;
    padding: 12px;
    background: #fff;
}

.import-preview.hidden {
    display: none;
}

.import-preview ul {
    margin: 0;
    padding-left: 18px;
    color: #5b6269;
    font-size: 12px;
    font-weight: 800;
}

.priority-high {
    border-color: #b94134 !important;
    box-shadow: inset 4px 0 0 #b94134;
}

.schedule-rate {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    border: 1px solid #adb1b8;
    border-radius: 3px;
    padding: 0 10px;
    background: #fff8e8;
    color: #704d0f;
    font-size: 12px;
    font-weight: 900;
}

.schedule-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid #b4b9be;
    background: #b4b9be;
}

.schedule-kpi {
    display: grid;
    gap: 4px;
    padding: 12px;
    background: linear-gradient(#fff, #e8ebee);
}

.schedule-kpi strong {
    font-size: 28px;
    line-height: 1;
}

.schedule-kpi span {
    color: #5b6269;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.schedule-kpi.green,
.schedule-card.green {
    box-shadow: inset 4px 0 0 #176f4d;
}

.schedule-kpi.yellow,
.schedule-card.yellow {
    box-shadow: inset 4px 0 0 #c48916;
}

.schedule-kpi.red,
.schedule-card.red {
    box-shadow: inset 4px 0 0 #b94134;
}

.schedule-list {
    display: grid;
    gap: 8px;
    max-height: 66vh;
    overflow: auto;
    padding-right: 4px;
}

.schedule-card {
    display: grid;
    gap: 10px;
    border: 1px solid #b7bcc1;
    padding: 12px;
    background: #f8f8f8;
    cursor: pointer;
}

.schedule-card.selected {
    border-color: #2366d1;
    background: #eef5ff;
}

.schedule-head,
.schedule-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.schedule-head strong {
    display: block;
    font-size: 15px;
}

.schedule-head small {
    color: #5b6269;
    font-size: 11px;
    font-weight: 850;
}

.schedule-head > span {
    border-radius: 3px;
    padding: 5px 8px;
    background: #e8edf2;
    color: #24303a;
    font-size: 11px;
    font-weight: 900;
}

.schedule-track {
    position: relative;
    height: 12px;
    overflow: hidden;
    border: 1px solid #aeb3b8;
    background: #fff;
}

.schedule-track i {
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
}

.schedule-track .expected {
    background: #d9dde2;
}

.schedule-track .actual {
    background: linear-gradient(90deg, #176f4d, #35a06f);
}

.schedule-card.yellow .schedule-track .actual {
    background: linear-gradient(90deg, #c48916, #f2c24f);
}

.schedule-card.red .schedule-track .actual {
    background: linear-gradient(90deg, #b94134, #e56050);
}

.street-progress-card.green {
    box-shadow: inset 4px 0 0 #176f4d;
}

.street-progress-card.yellow {
    box-shadow: inset 4px 0 0 #c48916;
}

.street-progress-card.red {
    box-shadow: inset 4px 0 0 #b94134;
}

.schedule-meta {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.schedule-meta span {
    display: grid;
    gap: 2px;
    color: #5b6269;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.schedule-meta b {
    color: #1f252b;
    font-size: 12px;
}

.round-driver-modal {
    position: fixed;
    z-index: 2600;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(20, 24, 28, .42);
}

.round-driver-card {
    display: grid;
    gap: 14px;
    width: min(480px, 100%);
    border: 1px solid #9fa4a9;
    padding: 16px;
    background: #f2f2f2;
    box-shadow: 0 18px 48px rgba(0,0,0,.28);
}

.round-driver-card h2,
.round-driver-card p {
    margin: 0;
}

.round-driver-card label {
    display: grid;
    gap: 6px;
    color: #5b6269;
    font-size: 12px;
    font-weight: 900;
}

.round-driver-card select {
    min-height: 34px;
    border: 1px solid #b7bcc1;
    border-radius: 3px;
    padding: 0 9px;
    background: #fff;
    color: #1f252b;
    font-weight: 800;
}

.round-driver-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.status-pill {
    border-radius: 999px;
    padding: 5px 9px;
    background: #e8edf2;
    color: #435363;
    font-size: 12px;
    font-weight: 900;
}

.round-pill {
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

.round-done {
    background: #dff3e7;
    color: #16603c;
}

.round-open {
    background: #e9f7ff;
    color: #145f87;
}

.status-geleegd {
    background: #dff3e7;
    color: #16603c;
}

.status-niet_bereikbaar,
.status-probleem {
    background: #fde4dd;
    color: #9c3525;
}

.secondary-button,
.danger-button,
.save-button {
    box-sizing: border-box;
    min-height: 34px;
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    padding: 0 14px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: rgba(255, 255, 255, .35) 0 1px 0 inset;
    text-align: center;
    text-overflow: ellipsis;
    user-select: none;
    -webkit-user-select: none;
    white-space: nowrap;
}

.secondary-button:focus-visible,
.danger-button:focus-visible,
.save-button:focus-visible,
.mini-button:focus-visible,
.admin-toolbar button:focus-visible,
.admin-tabs button:focus-visible {
    border-color: #e0a126;
    box-shadow:
        rgba(255, 255, 255, .35) 0 1px 0 inset,
        rgba(224, 161, 38, .5) 0 0 3px 2px;
    outline: 0;
}

.save-button {
    border-color: #0d5f3e #0b5437 #08452d;
    background-image: linear-gradient(#21845d, var(--admin-green));
    color: #fff;
}

.secondary-button {
    border-color: #d5d9d9 #c6cacc #b7babd;
    background-image: linear-gradient(#ffffff, #edf0f3);
    color: var(--admin-ink);
}

.danger-button {
    border-color: #9f2828 #8e2222 #751a1a;
    background-image: linear-gradient(#d94b4b, var(--admin-red));
    color: #fff;
}

.danger-button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.empty-state {
    margin: 0;
    color: var(--admin-muted);
    font-weight: 850;
}

@media (max-width: 1100px) {
    .admin-grid,
    .overview-grid,
    .office-map-layout,
    .split-list {
        grid-template-columns: 1fr;
    }

    .admin-header,
    .admin-toolbar,
    .section-heading,
    .filter-row,
    .admin-brand {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-stats,
    .operations-list,
    .schedule-summary,
    .schedule-meta,
    .user-form,
    .assignment-form,
    .municipality-form,
    .work-meta,
    .driver-work li {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .admin-shell {
        width: min(100% - 20px, 1520px);
        padding-top: 14px;
    }

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

    .admin-tabs button {
        flex: 0 0 auto;
    }

    .admin-brand img {
        width: 138px;
    }
}

/* Kantoorportal in dezelfde MapKit/Kikker-achtige stijl als de chauffeurskant. */
.server-body {
    min-height: 100vh;
    overflow: auto;
    color: #1f252b;
    background: #d6d8da;
}

.server-body::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 60px 0 0;
    background:
        linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.35)),
        repeating-linear-gradient(0deg, rgba(105, 115, 125, .08) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(105, 115, 125, .07) 0 1px, transparent 1px 44px),
        #e9ecef;
}

.admin-shell {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 60px 0 26px;
}

.kantoor-toolbar {
    position: fixed;
    z-index: 1800;
    top: 0;
    left: 0;
    right: 0;
    min-height: 60px;
    height: 60px;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px 0 10px;
    color: #23282d;
    border-bottom: 1px solid #8f9295;
    background: linear-gradient(#eeeeee, #c7c9cb 48%, #b4b6b8);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.82),
        0 1px 3px rgba(0,0,0,.22);
}

.admin-brand {
    min-width: 330px;
    gap: 12px;
}

.admin-brand img {
    width: 86px;
    max-height: 44px;
    object-fit: contain;
    filter: none;
}

.admin-header h1 {
    color: #1f252b;
    font-size: 17px;
    line-height: 1.05;
    text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

.admin-header .eyebrow {
    margin-bottom: 3px;
    color: #5b6269;
    font-size: 10px;
    letter-spacing: .06em;
}

.admin-toolbar {
    align-self: center;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
}

.admin-toolbar select {
    width: min(330px, 30vw);
    min-height: 28px;
    height: 28px;
    border-color: #c8cdd2;
    border-radius: 4px;
    padding: 0 9px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.09);
    font-size: 12px;
}

.admin-toolbar button,
.secondary-button,
.danger-button,
.save-button,
.mini-button,
.admin-tabs button {
    min-height: 29px;
    border-color: #adb1b8 #a2a6ac #8d9096;
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    background-image: linear-gradient(#f7f8fa, #e7e9ec);
    box-shadow: rgba(255,255,255,.6) 0 1px 0 inset;
    color: #111820;
    font-size: 12px;
    font-weight: 800;
    text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

.admin-toolbar button:hover,
.secondary-button:hover,
.mini-button:hover,
.admin-tabs button:hover {
    border-color: #a2a6ac #979aa1 #82858a;
}

.save-button {
    border-color: #0d5f3e #0b5437 #08452d;
    background-image: linear-gradient(#21845d, #176f4d);
    color: #fff;
    text-shadow: none;
}

.danger-button {
    border-color: #9f2828 #8e2222 #751a1a;
    background-image: linear-gradient(#d94b4b, #b94134);
    color: #fff;
    text-shadow: none;
}

.kantoor-tabs {
    position: sticky;
    z-index: 900;
    top: 60px;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-bottom: 1px solid #a0a4a8;
    border-radius: 0;
    background: #d9d9d9;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.kantoor-tabs button {
    min-width: 118px;
    min-height: 42px;
    display: grid;
    grid-template-columns: 24px 1fr;
    align-items: center;
    gap: 5px;
    border-top: 0;
    border-bottom: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #343a40;
}

.kantoor-tabs button span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid #8c9398;
    border-radius: 3px;
    background: linear-gradient(#f7f8fa, #d9dde2);
    color: #1f2933;
    font-size: 13px;
}

.kantoor-tabs button.active {
    border-color: #8d9096;
    background: linear-gradient(#f3f4f5, #c4c8cc);
    color: #111820;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
}

.admin-tab-panel {
    padding: 14px 14px 0;
}

.selected-area-context {
    position: sticky;
    z-index: 850;
    top: 103px;
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(130px, .7fr));
    gap: 1px;
    margin: 0 14px 0;
    border: 1px solid #a0a4a8;
    background: #a0a4a8;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.selected-area-context > div {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 7px 10px;
    background: linear-gradient(#ffffff, #e8ebee);
}

.selected-area-context span {
    overflow: hidden;
    color: #5b6269;
    font-size: 10px;
    font-weight: 900;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.selected-area-context strong {
    overflow: hidden;
    color: #1f252b;
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-intro {
    margin: 0 0 12px;
    padding: 12px 14px;
    border: 1px solid #aeb3b8;
    border-radius: 0;
    background: linear-gradient(#f7f8fa, #e7e9ec);
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.dashboard-intro h2 {
    font-size: 18px;
}

.dashboard-intro > p {
    color: #4c5660;
    font-size: 13px;
}

.admin-grid,
.overview-grid {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 12px;
}

.admin-card {
    gap: 12px;
    border: 1px solid #aeb3b8;
    border-radius: 0;
    padding: 12px;
    background: #eeeeee;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.admin-card h2 {
    font-size: 17px;
}

.admin-card h3 {
    font-size: 14px;
}

.section-heading {
    align-items: center;
    min-height: 42px;
    padding: 6px 8px 10px;
    border-bottom: 1px solid #b6bbc0;
    background: #e6e6e6;
}

.section-heading .eyebrow {
    color: #5b6269;
    font-size: 10px;
    letter-spacing: .06em;
}

.filter-row select,
.filter-row input,
.user-form input,
.user-form select,
.municipality-form input,
.municipality-form select,
.assignment-form input,
.assignment-form select,
.login-card input {
    min-height: 32px;
    border-color: #c2c7cc;
    border-radius: 3px;
    padding: 0 9px;
    background: #fff;
    color: #1f252b;
    font-size: 12px;
    font-weight: 700;
}

.progress-card {
    justify-items: stretch;
}

.progress-ring {
    width: 144px;
    height: 144px;
    justify-self: center;
    background: conic-gradient(#176f4d 0deg, #d0d5d8 0deg);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.12);
}

.progress-ring span {
    width: 104px;
    height: 104px;
    background: #f6f6f6;
    font-size: 25px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
}

.admin-stats {
    gap: 1px;
    border: 1px solid #b4b9be;
    background: #b4b9be;
}

.admin-stats div {
    min-height: 78px;
    border: 0;
    border-radius: 0;
    padding: 10px;
    background: linear-gradient(#fff, #e8ebee);
}

.admin-stats strong {
    font-size: 26px;
}

.admin-stats span,
.user-list small,
.activity-list small,
.municipality-list small,
.record-list small {
    color: #5b6269;
    font-size: 11px;
}

.user-form,
.municipality-form,
.assignment-form,
.assignment-panel {
    border-color: #b4b9be;
    border-radius: 0;
    background: #e5e5e5;
}

.check-line {
    min-height: 32px;
    border-color: #c2c7cc;
    border-radius: 3px;
    background: #fff;
    font-size: 12px;
}

.user-list,
.assignment-list,
.activity-list,
.municipality-list,
.record-list {
    gap: 6px;
}

.user-list article,
.assignment-list article,
.activity-list article,
.municipality-list article,
.record-list article,
.driver-work,
.work-meta span {
    border-color: #b7bcc1;
    border-radius: 0;
    background: #f8f8f8;
    box-shadow: none;
}

.user-list article:hover,
.assignment-list article:hover,
.municipality-list article:hover,
.record-list article:hover {
    border-color: #7f9db9;
    box-shadow: inset 0 0 0 1px rgba(127,157,185,.22);
}

.user-card-actions > span,
.assignment-list article > span,
.municipality-actions > span,
.status-pill,
.round-pill {
    border-radius: 3px;
    padding: 4px 7px;
    font-size: 11px;
}

.split-list {
    gap: 12px;
}

.record-badges {
    gap: 4px;
}

.login-screen {
    background:
        linear-gradient(110deg, rgba(7, 24, 41, .95), rgba(20, 63, 107, .76) 44%, rgba(16, 116, 87, .42)),
        url("kobis-login-bg.jpg") center right / cover no-repeat;
}

.login-card {
    width: min(450px, 100%);
    border-radius: 8px;
    border-color: rgba(255,255,255,.72);
    padding: 28px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 28px 76px rgba(0,0,0,.34);
}

@media (max-width: 1100px) {
    .kantoor-toolbar {
        position: static;
        height: auto;
        min-height: 60px;
        flex-direction: column;
        padding: 10px;
    }

    .admin-shell {
        padding-top: 0;
    }

    .kantoor-tabs {
        top: 0;
        overflow-x: auto;
    }

    .selected-area-context {
        top: 42px;
        grid-template-columns: 1fr 1fr;
    }

    .admin-toolbar select {
        width: 100%;
    }
}
