:root {
    --ink: #17212b;
    --muted: #5d6b78;
    --line: #d7dde3;
    --brand: #0f6f95;
    --accent: #d96f32;
    --bg: #f7f9fb;
    --panel: #ffffff;
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'Open Sans';
    src: url('/assets/OpenSans-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


.booking-wizard-page.splash-active {
    overflow: hidden;
}

.booking-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(246, 249, 252, .98);
    opacity: 1;
    transition: opacity .38s ease, visibility .38s ease;
}

.booking-splash[hidden] {
    display: none;
}

.booking-splash.is-done {
    opacity: 0;
    visibility: hidden;
}

.booking-splash-card {
    display: grid;
    justify-items: center;
    gap: 22px;
    width: min(340px, 100%);
    padding: 32px 28px;
    border: 1px solid rgba(0, 110, 170, .16);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(23, 33, 43, .12);
}

.booking-splash-logo {
    position: relative;
    width: 150px;
    height: 150px;
}

.booking-splash-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.booking-splash-logo-base {
    opacity: .13;
    filter: grayscale(1);
}

.booking-splash-logo-fill {
    clip-path: inset(0 100% 0 0);
    animation: bookingSplashLogoFill 1.35s linear forwards;
}

.booking-splash-copy {
    display: grid;
    gap: 6px;
    text-align: center;
}

.booking-splash-copy strong {
    color: #17212b;
    font-size: 18px;
    font-weight: 800;
}

.booking-splash-copy span {
    color: #667789;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.booking-splash-progress {
    width: min(260px, 100%);
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 110, 170, .12);
}

.booking-splash-progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #006eaa;
    transform: scaleX(.04);
    transform-origin: left;
    animation: bookingSplashProgress 1.35s linear forwards;
}

@keyframes bookingSplashLogoFill {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0 0 0 0); }
}

@keyframes bookingSplashProgress {
    from { transform: scaleX(.04); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .booking-splash,
    .booking-splash-logo-fill,
    .booking-splash-progress span {
        animation-duration: .01ms;
        transition-duration: .01ms;
    }
}

body {
    margin: 0;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

.page {
    min-height: 100vh;
    padding: 32px 18px;
}

.booking-shell {
    width: min(980px, 100%);
    margin: 0 auto;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(23, 33, 43, .08);
}

.intro {
    margin-bottom: 26px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--brand);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0;
}

h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
}

p {
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.wide {
    grid-column: 1 / -1;
}

input,
select {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

button {
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    padding: 0 18px;
    color: #fff;
    background: var(--brand);
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #0b5e7f;
}

.message {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid var(--line);
}

.success {
    border-color: #9ac7a8;
    color: #245b33;
    background: #edf8f0;
}

.error {
    border-color: #e0a198;
    color: #7a2a20;
    background: #fff1ef;
}

.request-list {
    display: grid;
    gap: 14px;
}

.request-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.request-card p {
    margin: 5px 0 0;
}

@media (max-width: 720px) {
    .booking-shell {
        padding: 20px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .request-card {
        align-items: stretch;
        flex-direction: column;
    }
}



.button-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    border-radius: 6px;
    padding: 0 14px;
    color: #fff;
    background: var(--brand);
    text-decoration: none;
    font-weight: 700;
}

.secondary {
    color: var(--ink);
    background: #edf1f5;
}

.secondary:hover {
    background: #dce4eb;
}

.admin-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 28px 20px;
    border-right: 1px solid var(--line);
    background: #fff;
}

.admin-sidebar h1 {
    font-size: 28px;
}

.admin-nav {
    display: grid;
    gap: 6px;
}

.admin-nav a {
    display: block;
    border-radius: 6px;
    padding: 11px 12px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
}

.admin-nav a:hover,
.admin-nav a.active {
    color: #fff;
    background: var(--brand);
}

.admin-main {
    padding: 32px;
    min-width: 0;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

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

.stat-grid,
.admin-grid,
.integration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

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

.stat-grid article,
.admin-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 18px;
}

.stat-grid strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.stat-grid span,
td span,
.hint {
    display: block;
    color: var(--muted);
    margin-top: 5px;
}

.admin-card {
    display: grid;
    gap: 12px;
}

.admin-manage-list {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(20, 36, 51, .055);
}

.admin-manage-head,
.admin-manage-row {
    display: grid;
    grid-template-columns: minmax(210px, 1.4fr) minmax(120px, .7fr) minmax(180px, 1fr) minmax(220px, 1.2fr) minmax(90px, .5fr) minmax(110px, .5fr);
    gap: 14px;
    align-items: center;
}

.user-manage-list .admin-manage-head,
.user-manage-list .admin-manage-row {
    grid-template-columns: minmax(200px, 1.2fr) minmax(90px, .55fr) minmax(190px, 1fr) minmax(90px, .5fr) minmax(135px, .7fr) minmax(110px, .5fr);
}

.admin-manage-head {
    padding: 12px 16px;
    color: var(--muted);
    background: #f2f5f8;
    font-size: 13px;
    font-weight: 700;
}

.admin-edit-item {
    border-top: 1px solid var(--line);
}

.admin-edit-item:first-of-type {
    border-top: 0;
}

.admin-edit-item summary {
    list-style: none;
}

.admin-edit-item summary::-webkit-details-marker {
    display: none;
}

.admin-manage-row {
    padding: 15px 16px;
    cursor: pointer;
}

.admin-manage-row:hover {
    background: #f8fbfd;
}

.admin-manage-row strong,
.admin-manage-row small {
    display: block;
}

.admin-manage-row small {
    margin-top: 4px;
    color: var(--muted);
}

.edit-button-like {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    border: 1px solid #006eaa;
    border-radius: 6px;
    padding: 0 12px;
    color: #006eaa;
    background: #fff;
    font-weight: 700;
}

.admin-edit-item[open] .edit-button-like {
    color: #fff;
    background: #006eaa;
}

.admin-edit-panel {
    border-top: 1px solid #d9e2ea;
    padding: 16px;
    background: #f8fbfd;
}

.admin-edit-panel .admin-card {
    max-width: 760px;
    box-shadow: none;
}

.status-chip {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.status-chip.active {
    color: #245b33;
    background: #edf8f0;
}

.status-chip.inactive {
    color: #7b2d2d;
    background: #fdeaea;
}

.status-chip.locked {
    color: #8a4b00;
    background: #fff3d6;
}

.admin-management-wrap {
    margin-bottom: 24px;
}

.admin-management-table {
    min-width: 1080px;
}

.admin-management-table th,
.admin-management-table td {
    vertical-align: middle;
}

.admin-management-table th:last-child,
.admin-management-table td:last-child {
    width: 125px;
    text-align: right;
}

.admin-management-table td:nth-child(4) {
    max-width: 390px;
    line-height: 1.35;
}

.admin-management-table strong {
    display: block;
}

.admin-management-table .admin-edit-table-row > td {
    padding: 0;
    background: #f8fbfd;
}

.admin-management-table .admin-edit-panel {
    border-top: 0;
    padding: 18px;
}

.admin-management-table .admin-edit-panel .admin-card {
    margin: 0;
}

.table-edit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    border: 1px solid #006eaa;
    border-radius: 6px;
    padding: 0 12px;
    color: #006eaa;
    background: #fff;
    font-weight: 700;
}

.table-edit-button.active,
.table-edit-button:hover {
    color: #fff;
    background: #006eaa;
}

.admin-new-row td {
    background: #fbfdff;
}


.compact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.direct-booking-card {
    max-width: 1180px;
}

.direct-booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.direct-booking-grid label {
    min-width: 0;
}

.direct-booking-grid .wide {
    grid-column: span 2;
}

.direct-booking-grid input,
.direct-booking-grid select,
.direct-booking-grid textarea {
    width: 100%;
    min-width: 0;
}

.direct-booking-actions,
.admin-section-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.direct-booking-actions {
    justify-content: flex-start;
}

.direct-booking-card textarea {
    resize: vertical;
}
.direct-form-section {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.direct-form-section h4 {
    margin: 0;
    color: #17212b;
    font-size: 16px;
}

.direct-booking-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.direct-slot-panel {
    display: grid;
    gap: 14px;
    margin: 20px 0 12px;
    border: 1px solid #cfe3f1;
    border-radius: 8px;
    background: #f7fbfe;
    padding: 16px;
}

.direct-slot-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.direct-slot-head strong,
.direct-slot-head span {
    display: block;
}

.direct-slot-head strong {
    color: #17212b;
    font-size: 16px;
}

.direct-slot-head span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.direct-slot-message,
.direct-selected-slot {
    margin: 0;
    border-radius: 6px;
    padding: 9px 11px;
    background: #edf4f9;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.direct-slot-message.info {
    color: #006aa6;
    background: #e8f4fb;
}

.direct-slot-message.success,
.direct-selected-slot {
    color: #247a3e;
    background: #eaf7ed;
}

.direct-slot-message.error {
    color: #a73333;
    background: #fdecec;
}

.direct-slot-message.warning {
    color: #8a5b00;
    background: #fff3d8;
}

.direct-slot-grid {
    display: grid;
    gap: 12px;
}

.direct-slot-calendar {
    display: grid;
    gap: 0;
    border: 1px solid #e3edf5;
    border-radius: 8px;
    background: #fff;
    padding: 22px 24px 28px;
}

.direct-slot-calendar .calendar-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
}

.direct-slot-calendar .calendar-head strong {
    color: #20242a;
    font-size: 17px;
    font-weight: 500;
}

.admin-body .direct-slot-calendar .ghost-button {
    min-height: 34px;
    border: 0;
    border-radius: 4px;
    color: #999;
    background: transparent;
    font-size: 28px;
    box-shadow: none;
}

.admin-body .direct-slot-calendar .ghost-button:hover {
    color: #006eaa;
    background: transparent;
}

.admin-body .direct-slot-calendar .ghost-button:disabled {
    opacity: .25;
    cursor: not-allowed;
}

.direct-slot-calendar .day-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(76px, 1fr));
    gap: 10px;
    margin-bottom: 28px;
}

.admin-body .direct-slot-calendar .day-button {
    display: grid;
    gap: 5px;
    place-items: center;
    min-height: 64px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    color: #b7b7b7;
    background: #fff;
    padding: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .04);
}

.admin-body .direct-slot-calendar .day-button strong {
    color: inherit;
    font-size: 17px;
    font-weight: 500;
}

.admin-body .direct-slot-calendar .day-button span {
    font-size: 11px;
}

.admin-body .direct-slot-calendar .day-button.has-availability {
    border-color: #b9d7e8;
    color: #17212b;
    background: #fff;
}

.admin-body .direct-slot-calendar .day-button.has-availability strong {
    font-weight: 800;
}

.admin-body .direct-slot-calendar .day-button.selected,
.admin-body .direct-slot-calendar .day-button.has-availability.selected {
    border-color: #006eaa;
    color: #fff;
    background: #006eaa;
}

.admin-body .direct-slot-calendar .day-button:disabled,
.admin-body .direct-slot-calendar .day-button.disabled {
    opacity: .45;
    color: #b8c1c9;
    background: #f7f9fb;
    cursor: not-allowed;
    box-shadow: none;
}

.direct-slot-calendar .slot-section {
    margin-top: 28px;
}

.direct-slot-calendar .slot-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #777;
    font-size: 13px;
}

.direct-slot-calendar .slot-divider::before,
.direct-slot-calendar .slot-divider::after {
    content: "";
    height: 1px;
    background: #eee;
    flex: 1;
}

.direct-slot-calendar .zslot-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    gap: 15px;
}

.direct-slot-calendar .zslot-grid.empty-state {
    grid-template-columns: 1fr;
    color: #777;
    text-align: center;
}

.admin-body .direct-slot-calendar .ztime-button {
    display: block;
    min-height: 34px;
    border: 1px solid #006eaa;
    border-radius: 4px;
    color: #006eaa;
    background: #fff;
    padding: 7px 10px;
    font-size: 13px;
    text-align: center;
    box-shadow: none;
}

.admin-body .direct-slot-calendar .ztime-button:hover,
.admin-body .direct-slot-calendar .ztime-button.selected {
    color: #fff;
    background: #006eaa;
}

.direct-slot-day {
    display: grid;
    gap: 8px;
    border-top: 1px solid #d7e6ef;
    padding-top: 12px;
}

.direct-slot-day:first-child {
    border-top: 0;
    padding-top: 0;
}

.direct-slot-day h5 {
    margin: 0;
    color: #17212b;
    font-size: 14px;
}

.direct-slot-day-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.admin-body .direct-slot-button {
    display: grid;
    gap: 3px;
    min-height: 54px;
    border: 1px solid #bcd9eb;
    border-radius: 7px;
    background: #fff;
    color: #00324f;
    padding: 8px 10px;
    text-align: left;
    box-shadow: none;
}

.admin-body .direct-slot-button:hover {
    border-color: #0076b6;
    background: #eef8fd;
    color: #00324f;
}

.direct-slot-button strong,
.direct-slot-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.direct-slot-button strong {
    font-size: 15px;
}

.direct-slot-button span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.admin-body .direct-slot-button.selected {
    border-color: #0076b6;
    background: #dff1fb;
    color: #005f92;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check input {
    min-height: auto;
}

.inline-form {
    margin: 0;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    background: #f2f5f8;
}

.actions {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.actions form {
    margin: 0;
}

.booking-actions {
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
    flex-wrap: nowrap;
    min-width: 210px;
    white-space: nowrap;
}

.booking-route-links {
    display: grid;
    gap: 5px;
    margin-top: 7px;
}

.booking-route-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: #0076b6;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.booking-route-link.muted {
    color: var(--muted);
    font-weight: 700;
}

.booking-route-link:hover {
    text-decoration: underline;
}

.dashboard-filter-form {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.dashboard-filter-form label {
    min-width: 0;
}

.dashboard-filter-actions {
    display: flex;
    align-items: end;
    gap: 10px;
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    color: #006eaa;
    font-weight: 800;
    text-decoration: none;
}

.secondary-link:hover {
    text-decoration: underline;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-card-wide {
    grid-column: 1 / -1;
}

.dashboard-card-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.dashboard-card-head h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.dashboard-card-head p {
    margin: 0;
    color: var(--muted);
}

.dashboard-card-head a {
    flex: 0 0 auto;
    color: #006eaa;
    text-decoration: none;
    font-weight: 800;
}

.dashboard-card-head a:hover {
    text-decoration: underline;
}

.dashboard-booking-list,
.dashboard-route-list {
    display: grid;
    gap: 10px;
}

.dashboard-booking-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #e1edf4;
    border-radius: 10px;
    padding: 11px 12px;
    background: #f8fbfd;
}

.dashboard-booking-time {
    display: grid;
    place-items: center;
    min-height: 54px;
    border-radius: 8px;
    color: #006eaa;
    background: #e9f5fb;
    font-weight: 800;
}

.dashboard-booking-time strong,
.dashboard-booking-time span,
.dashboard-booking-main strong,
.dashboard-booking-main span,
.dashboard-booking-main small,
.dashboard-booking-side small {
    display: block;
}

.dashboard-booking-time span {
    color: #102234;
    font-size: 13px;
}

.dashboard-booking-main {
    min-width: 0;
}

.dashboard-booking-main strong,
.dashboard-route-main strong {
    color: #102234;
}

.dashboard-booking-main span,
.dashboard-booking-main small,
.dashboard-booking-side small,
.dashboard-route-main span {
    color: #5f7183;
    font-size: 13px;
}

.dashboard-booking-side {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.dashboard-empty {
    margin: 0;
    border: 1px dashed #cfe3f1;
    border-radius: 10px;
    padding: 16px;
    color: #5f7183;
    background: #f8fbfd;
    font-weight: 700;
}

.dashboard-route-card {
    border: 1px solid #d5e8f2;
    border-radius: 14px;
    padding: 14px;
    background: #f8fbfd;
}

.dashboard-route-card header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.dashboard-route-card header strong,
.dashboard-route-card header span {
    display: block;
}

.dashboard-route-card header strong {
    color: #102234;
    font-size: 16px;
}

.dashboard-route-card header span {
    color: #5f7183;
    font-size: 13px;
}

.dashboard-route-card header em {
    border-radius: 999px;
    padding: 7px 10px;
    color: #004f7a;
    background: rgba(0, 110, 170, .10);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-route-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-route-button {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 6px;
    padding: 0 11px;
    color: #fff;
    background: #006eaa;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-route-button:hover {
    background: #075783;
}

.dashboard-route-opt-button {
    min-height: 32px;
    border: 1px solid #c9d8e4;
    padding: 0 11px;
    font-size: 12px;
    white-space: nowrap;
}

.dashboard-route-opt-button.active {
    color: #fff;
    background: #006eaa;
}

.dashboard-route-optimization {
    margin: 0 0 12px;
    border: 1px solid #d5e8f2;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}

.dashboard-route-optimization strong {
    display: block;
    margin-bottom: 8px;
    color: #102234;
}

.dashboard-route-optimization ol {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 18px;
}

.route-quality {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.route-quality-ok,
.route-quality-start {
    color: #245b33;
    background: #edf8f0;
}

.route-quality-critical {
    color: #7a5200;
    background: #fff3d8;
}

.route-quality-impossible {
    color: #8a1f1f;
    background: #fdeaea;
}

.route-quality-unknown {
    color: #5f7183;
    background: #eef2f5;
}

.dashboard-agenda-list,
.dashboard-log-list {
    display: grid;
    gap: 10px;
}

.dashboard-agenda-card {
    border: 1px solid #e1edf4;
    border-radius: 10px;
    padding: 12px;
    background: #f8fbfd;
}

.dashboard-agenda-card h3 {
    margin: 0 0 10px;
    font-size: 15px;
}

.dashboard-agenda-items {
    display: grid;
    gap: 8px;
}

.dashboard-agenda-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}

.dashboard-agenda-item small {
    display: block;
    color: #5f7183;
}

.dashboard-log-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 10px;
    border: 1px solid #e1edf4;
    border-radius: 10px;
    padding: 10px 12px;
    background: #f8fbfd;
}

.dashboard-log-item.is-error {
    border-color: #efc4c4;
    background: #fff7f7;
}

.dashboard-log-item strong,
.dashboard-log-item span,
.dashboard-log-item small {
    display: block;
}

.dashboard-log-item strong {
    color: #102234;
    text-transform: uppercase;
    font-size: 12px;
}

.dashboard-log-item span,
.dashboard-log-item small {
    color: #5f7183;
    font-size: 12px;
}

.dashboard-log-item p {
    margin: 0;
    color: #102234;
    font-weight: 700;
}

.dashboard-route-card ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-route-card li {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: flex-start;
}

.dashboard-route-time {
    display: grid;
    place-items: center;
    min-height: 36px;
    border-radius: 8px;
    color: #fff;
    background: #006eaa;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-route-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.dashboard-route-main a {
    width: fit-content;
    color: #006eaa;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-route-main a:hover {
    text-decoration: underline;
}

.dashboard-booking-main small,
.dashboard-booking-side small,
.dashboard-route-main span {
    overflow-wrap: anywhere;
}

.dashboard-booking-side {
    max-width: 280px;
    text-align: right;
}

@media (max-width: 980px) {
    .dashboard-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-card-wide {
        grid-column: auto;
    }

    .dashboard-booking-item {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .dashboard-booking-side {
        grid-column: 2;
        justify-items: start;
        max-width: none;
        text-align: left;
    }
}

@media (max-width: 560px) {
    .dashboard-filter-form,
    .dashboard-agenda-item,
    .dashboard-log-item {
        grid-template-columns: 1fr;
    }

    .dashboard-card-head,
    .dashboard-route-card header {
        flex-direction: column;
    }

    .dashboard-route-actions {
        justify-content: flex-start;
    }

    .dashboard-booking-item,
    .dashboard-route-card li {
        grid-template-columns: 1fr;
    }

    .dashboard-booking-side {
        grid-column: auto;
    }

    .dashboard-booking-time {
        place-items: start;
        min-height: auto;
        padding: 10px;
    }
}

.booking-edit-panel {
    display: flex;
    justify-content: flex-end;
}

.booking-edit-form {
    display: grid;
    gap: 8px;
    width: min(260px, 100%);
}

.booking-edit-inline {
    grid-template-columns: minmax(220px, 320px) auto;
    align-items: end;
    width: min(520px, 100%);
}

.booking-edit-form label {
    gap: 5px;
    font-size: 12px;
}

.booking-edit-form input[type="datetime-local"] {
    min-height: 38px;
    padding: 7px 9px;
    font-size: 13px;
}

.booking-edit-inline button {
    min-height: 38px;
}

.booking-edit-note {
    grid-column: 1 / -1;
    margin: 0;
    color: #5f7183;
    font-size: 12px;
    font-weight: 700;
}

.pill {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 8px;
    color: #245b33;
    background: #edf8f0;
    font-size: 12px;
    font-weight: 700;
}

.booking-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.booking-status-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 13px;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
    font-weight: 700;
}

.booking-status-tabs a.active,
.booking-status-tabs a:hover {
    border-color: #006eaa;
    color: #fff;
    background: #006eaa;
}

.booking-status-requested {
    color: #744700;
    background: #fff4d8;
}

.booking-status-confirmed {
    color: #245b33;
    background: #edf8f0;
}

.booking-status-cancelled {
    color: #8a1f1f;
    background: #fdeaea;
}

.booking-status-failed {
    color: #6d2f00;
    background: #fff0e2;
}

.booking-status-deleted {
    color: #5f7183;
    background: #eef2f5;
}

.status-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0;
}

.ok {
    color: #245b33;
}

.missing {
    color: #a23a2a;
}

@media (max-width: 720px) {
    .admin-layout,
    .stat-grid,
    .admin-grid,
    .integration-grid,
    .direct-booking-grid {
        grid-template-columns: 1fr;
    }

    .direct-booking-grid .wide {
        grid-column: span 1;
    }

    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-main {
        padding: 20px;
    }

    .admin-header,
    .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .booking-edit-panel {
        justify-content: flex-start;
    }

    .booking-edit-inline {
        grid-template-columns: 1fr;
    }
}

/* Kältech booking frontend */
:root {
    --brand: #006eaa;
    --brand-dark: #075783;
    --accent: #f6ad1b;
    --ink: #142433;
    --muted: #667789;
    --line: #d9e2ea;
    --bg: #f4f7fa;
    --panel: #ffffff;
}

.booking-page {
    background:
        linear-gradient(180deg, rgba(0, 110, 170, .10), rgba(244, 247, 250, 0) 360px),
        var(--bg);
}

.booking-app {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 26px 0 56px;
}

.booking-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    width: 210px;
    min-height: 58px;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: auto;
}

.topbar-copy {
    display: grid;
    gap: 3px;
    text-align: right;
    color: var(--muted);
}

.topbar-copy strong {
    color: var(--ink);
}

.booking-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
    margin-bottom: 24px;
}

.booking-hero h1 {
    max-width: 760px;
    margin-bottom: 12px;
    color: var(--ink);
}

.booking-hero p {
    max-width: 680px;
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.trust-strip span {
    border: 1px solid rgba(0, 110, 170, .22);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--brand-dark);
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

.booking-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.booking-panel,
.summary-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: 0 16px 36px rgba(20, 36, 51, .08);
}

.booking-panel {
    grid-column: 1;
    padding: 22px;
}

.section-title {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.section-title > span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    background: var(--brand);
    font-weight: 800;
    flex: 0 0 auto;
}

.section-title h2 {
    margin: 0 0 4px;
    font-size: 21px;
}

.section-title p {
    margin: 0;
    color: var(--muted);
}

.choice-grid {
    display: grid;
    gap: 12px;
}

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

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

.choice-card {
    position: relative;
    min-height: 104px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.choice-card:hover {
    border-color: rgba(0, 110, 170, .46);
    box-shadow: 0 12px 22px rgba(20, 36, 51, .08);
    transform: translateY(-1px);
}

.choice-card input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.choice-card span {
    display: grid;
    gap: 8px;
}

.choice-card strong {
    font-size: 17px;
    line-height: 1.25;
}

.choice-card small {
    color: var(--muted);
    font-size: 14px;
}

.choice-card:has(input:checked) {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0, 110, 170, .12);
}

.choice-card:has(input:checked)::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.date-slot-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
}

.date-field {
    align-self: start;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-height: 64px;
}

.empty-state {
    grid-template-columns: 1fr;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #f9fbfc;
    padding: 18px;
}

.slot-button {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: #fff;
}

.slot-button:hover,
.slot-button.selected {
    color: #fff;
    border-color: var(--brand);
    background: var(--brand);
}

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

.booking-summary {
    grid-column: 2;
    grid-row: 1 / span 4;
    position: sticky;
    top: 18px;
}

.summary-card {
    padding: 22px;
}

.summary-card img {
    width: 178px;
    max-width: 100%;
    height: auto;
    margin-bottom: 18px;
}

.summary-card h2 {
    margin: 0 0 14px;
}

.summary-card dl {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
}

.summary-card dl div {
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.summary-card dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.summary-card dd {
    margin: 4px 0 0;
    color: var(--ink);
    font-weight: 800;
}

.submit-button {
    width: 100%;
    background: var(--accent);
    color: #152334;
}

.submit-button:hover {
    background: #e89f11;
}

@media (max-width: 980px) {
    .booking-hero,
    .booking-flow,
    .date-slot-layout {
        grid-template-columns: 1fr;
    }

    .booking-summary {
        grid-column: 1;
        grid-row: auto;
        position: static;
    }

    .service-grid,
    .location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .booking-app {
        width: min(100% - 22px, 1180px);
        padding-top: 16px;
    }

    .booking-topbar,
    .booking-hero {
        align-items: flex-start;
    }

    .booking-topbar {
        flex-direction: column;
    }

    .topbar-copy {
        text-align: left;
    }

    .brand-mark {
        width: 180px;
    }

    .booking-hero p {
        font-size: 16px;
    }

    .booking-panel,
    .summary-card {
        padding: 18px;
    }

    .service-grid,
    .location-grid,
    .slot-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Zoho-like Kältech booking wizard */
.booking-wizard-page {
    background: #fff;
}

.zbooking {
    min-height: 100vh;
    color: #222;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

.zbooking-header {
    border-top: 1px solid #eee;
    padding: 28px 20px 40px;
    text-align: center;
}

.zbooking-header img {
    display: block;
    width: 170px;
    height: auto;
    margin: 0 auto 12px;
}

.zbooking-header h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
}

.zbooking-shell {
    display: grid;
    grid-template-columns: 460px minmax(0, 1fr);
    width: min(1080px, calc(100% - 48px));
    min-height: 560px;
    margin: 0 auto 60px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
}

.zbooking-steps {
    padding: 16px 14px;
    border-right: 1px solid #eee;
}

.zstep {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 80px;
    border: 0;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    padding: 14px 18px;
    color: #5a4b91;
    background: #fff;
    text-align: left;
}

.zstep.active {
    background: #f6f6f8;
}

.zstep.disabled {
    color: #9a9a9a;
    cursor: default;
}

.zstep span {
    min-width: 0;
}

.zstep strong {
    display: block;
    overflow: hidden;
    color: inherit;
    font-size: 16px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zstep small {
    display: block;
    margin-top: 4px;
    color: #333;
    font-size: 12px;
}

.zstep em {
    color: #514386;
    font-size: 28px;
    font-style: normal;
    line-height: 1;
}

.zicon {
    color: inherit;
    font-size: 16px;
}

.zbooking-content {
    padding: 28px 34px;
}

.zpane {
    display: none;
}

.zpane.active {
    display: block;
}

.zlist {
    display: grid;
    gap: 0;
}

.zlist-item {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 112px;
    border: 0;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    padding: 12px 0;
    color: #222;
    background: #fff;
    text-align: left;
}

.zlist-item:hover,
.zlist-item.selected {
    background: #fafafa;
}

.service-option.is-unavailable-location,
.service-option[hidden] {
    display: none !important;
}

.zavatar {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    color: #111;
    font-size: 16px;
}

.zservice-logo {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
}

.zservice-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.zitem-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.zitem-copy strong {
    overflow: hidden;
    font-size: 18px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zitem-copy small {
    overflow: hidden;
    color: #666;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zitem-copy a {
    color: #4f4386;
    font-size: 13px;
    text-decoration: none;
}

.zduration {
    color: #222;
    font-size: 12px;
    white-space: nowrap;
}

.staff-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    align-items: center;
    border: 1px solid #d9e2ea;
    border-left: 4px solid #006eaa;
    border-radius: 8px;
    padding: 12px 14px;
    background: #f8fbfd;
    box-shadow: 0 8px 18px rgba(20, 36, 51, .045);
}

.staff-line.has-staff {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    border-color: #bfd9e8;
    border-left-color: #006eaa;
    background: #fff;
}

.staff-avatar {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    min-width: 88px;
    overflow: hidden;
    border-radius: 8px;
    color: #006eaa;
    background: #eaf4f9;
    font-size: 22px;
    font-weight: 800;
}

.staff-avatar[hidden] {
    display: none;
}

.staff-avatar img,
.staff-line .staff-avatar img {
    display: block;
    width: 88px !important;
    height: 88px !important;
    max-width: 88px !important;
    max-height: 88px !important;
    object-fit: cover;
}

.staff-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.staff-label {
    color: #667789;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.staff-copy strong {
    overflow: hidden;
    color: #17212b;
    font-size: 17px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-copy small {
    overflow: hidden;
    color: #667789;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.staff-line button {
    justify-self: end;
    min-height: 38px;
    border: 1px solid #cbd6df;
    border-radius: 6px;
    padding: 0 12px;
    color: #006eaa;
    background: #fff;
    font-size: 14px;
}

.staff-line button:hover {
    border-color: #006eaa;
    background: #edf7fc;
}

.staff-actions {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.staff-panel {
    min-width: 220px;
}

.staff-choice-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.staff-choice {
    min-height: 34px;
    border: 1px solid #cbd6df;
    border-radius: 6px;
    padding: 0 10px;
    color: #324457;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
}

.staff-choice:hover,
.staff-choice.selected {
    border-color: #006eaa;
    color: #006eaa;
    background: #edf7fc;
}

.staff-panel-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 10px;
}

.staff-panel-actions button {
    min-width: 180px;
    border-color: #006eaa;
    color: #fff;
    background: #006eaa;
}

.staff-panel-actions button:hover {
    color: #fff;
    background: #075783;
}

.calendar-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto 34px;
    gap: 12px;
    align-items: center;
    margin: 24px 0;
}

.calendar-head strong {
    font-size: 17px;
    font-weight: 500;
}

.ghost-button {
    min-height: 34px;
    border: 0;
    color: #999;
    background: transparent;
    font-size: 28px;
}

.ghost-button:disabled {
    opacity: .25;
    cursor: not-allowed;
}

.timezone-select {
    width: 226px;
    min-height: 40px;
    border-color: #ddd;
    color: #333;
    background: #fff;
}

.day-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 28px;
}

.day-button {
    display: grid;
    gap: 5px;
    place-items: center;
    min-height: 64px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    color: #b7b7b7;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .04);
}

.day-button strong {
    font-size: 17px;
    font-weight: 500;
}

.day-button span {
    font-size: 11px;
}

.day-button.selected {
    border-color: #514386;
    color: #fff;
    background: #514386;
}

.day-button:disabled,
.day-button.disabled {
    opacity: .45;
    color: #b8c1c9;
    background: #f7f9fb;
    cursor: not-allowed;
    box-shadow: none;
}

.slot-section {
    margin-top: 28px;
}

.slot-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #777;
    font-size: 13px;
}

.slot-divider::before,
.slot-divider::after {
    content: "";
    height: 1px;
    background: #eee;
    flex: 1;
}

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

.zslot-grid.empty-state {
    grid-template-columns: 1fr;
    color: #777;
    text-align: center;
}

.ztime-button {
    min-height: 34px;
    border: 1px solid #514386;
    border-radius: 4px;
    color: #514386;
    background: #fff;
    font-size: 13px;
}

.ztime-button:hover,
.ztime-button.selected {
    color: #fff;
    background: #514386;
}

.info-form {
    width: min(390px, 100%);
    margin: 0 auto;
}

.info-form label,
.info-form .address-fields {
    color: #444;
    font-size: 15px;
    font-weight: 400;
}

.info-form .field-label {
    display: block;
    line-height: 1.35;
}

.info-form b,
.info-form legend b {
    display: inline;
    color: #f05b63;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.info-form input,
.info-form textarea,
.info-form select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-top: 7px;
    padding: 10px 11px;
    color: #333;
    background: #fff;
}

.address-fields {
    display: grid;
}

.info-form input:focus,
.info-form textarea:focus {
    border-color: #514386;
    outline: 0;
    box-shadow: 0 0 10px rgba(81, 67, 134, .16);
}

.phone-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-top: 7px;
}

.phone-row span {
    padding-left: 10px;
    color: #666;
    white-space: nowrap;
}

.phone-row input {
    border: 0;
    margin: 0;
}

.info-form fieldset {
    border: 0;
    margin: 16px 0;
    padding: 0;
}

.info-form legend {
    margin-bottom: 8px;
    color: #444;
    font-size: 15px;
}

.radio-line {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    color: #666 !important;
    font-size: 13px !important;
}

.radio-line input,
.consent-line input {
    width: auto;
    min-height: auto;
    margin: 0;
}

.info-form textarea {
    min-height: 100px;
    resize: vertical;
}

.consent-line {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin-top: 20px;
}

.consent-line span {
    color: #666;
    font-size: 12px;
    line-height: 1.25;
}

.zsubmit {
    width: 100%;
    min-height: 46px;
    margin-top: 28px;
    border-radius: 3px;
    background: #514386;
    font-size: 18px;
}

.zsubmit:hover {
    background: #443773;
}

@media (max-width: 900px) {
    .zbooking-shell {
        grid-template-columns: 1fr;
    }

    .zbooking-steps {
        border-right: 0;
        border-bottom: 1px solid #eee;
    }

    .zbooking-content {
        padding: 22px;
    }

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

@media (max-width: 620px) {
    .zbooking-header h1 {
        font-size: 24px;
    }

    .zbooking-shell {
        width: calc(100% - 20px);
    }

    .zlist-item {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .zavatar {
        width: 52px;
        height: 52px;
    }

    .zduration {
        grid-column: 2;
    }

    .calendar-head {
        grid-template-columns: 34px minmax(0, 1fr) 34px;
    }

    .timezone-select {
        grid-column: 1 / -1;
        width: 100%;
    }

    .day-strip,
    .zslot-grid,
    .two-col {
        grid-template-columns: 1fr;
    }
}


/* Card refinement for location/service choices */
.zbooking-shell {
    border-color: #e7ecf2;
    box-shadow: 0 18px 42px rgba(20, 36, 51, .07);
}

.zpane[data-step="location"] .zlist,
.zpane[data-step="service"] .zlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.zpane[data-step="location"] .zlist-item,
.zpane[data-step="service"] .zlist-item {
    min-height: 150px;
    border: 1px solid #e7ecf2;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(20, 36, 51, .045);
}

.zpane[data-step="location"] .zlist-item:hover,
.zpane[data-step="location"] .zlist-item.selected,
.zpane[data-step="service"] .zlist-item:hover,
.zpane[data-step="service"] .zlist-item.selected {
    border-color: #006eaa;
    background: #fbfdff;
    box-shadow: 0 12px 28px rgba(0, 110, 170, .11);
}

.zavatar {
    background: color-mix(in srgb, var(--card-accent) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--card-accent) 45%, #fff);
}

.zavatar img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.zitem-copy small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.zitem-copy a {
    display: none;
}

.zservice-logo img {
    border-radius: 6px;
}

@media (max-width: 780px) {
    .zpane[data-step="location"] .zlist,
    .zpane[data-step="service"] .zlist {
        grid-template-columns: 1fr;
    }
}


/* Wider cards to avoid clipped location names */
.zpane[data-step="location"] .zlist {
    grid-template-columns: 1fr;
}

.zpane[data-step="location"] .zlist-item {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 132px;
    padding: 20px 22px;
}

.zpane[data-step="service"] .zlist {
    grid-template-columns: 1fr;
}

.zpane[data-step="service"] .zlist-item {
    grid-template-columns: 72px minmax(0, 1fr) 104px;
    min-height: 116px;
    padding: 18px 22px;
}

.zpane[data-step="location"] .zitem-copy strong,
.zpane[data-step="service"] .zitem-copy strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.zpane[data-step="location"] .zitem-copy small,
.zpane[data-step="service"] .zitem-copy small {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.zavatar {
    width: 66px;
    height: 66px;
}

.zavatar img {
    width: 48px;
    height: 48px;
}

@media (max-width: 620px) {
    .zpane[data-step="service"] .zlist-item {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .zpane[data-step="location"] .zlist-item {
        grid-template-columns: 58px minmax(0, 1fr);
    }
}


/* Remove timezone selector spacing after hiding it */
.calendar-head {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
}


/* Kältech top stepper layout */
.top-stepper-shell {
    display: block;
    width: min(1080px, calc(100% - 48px));
    min-height: 0;
    padding: 0;
}

.top-stepper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid #e7ecf2;
    background: #fbfcfd;
}

.top-stepper .zstep {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 86px;
    border-right: 1px solid #e7ecf2;
    border-bottom: 0;
    padding: 18px 20px;
    color: #667789;
    background: transparent;
}

.top-stepper .zstep:last-child {
    border-right: 0;
}

.top-stepper .zstep.active {
    color: #006eaa;
    background: #fff;
    box-shadow: inset 0 -3px 0 #006eaa;
}

.top-stepper .zstep:not(.disabled):hover {
    color: #006eaa;
    background: #fff;
}

.top-stepper .zstep strong {
    color: inherit;
    font-weight: 700;
}

.top-stepper .zstep small {
    color: #667789;
}

.zstep-number {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    color: #fff;
    background: #9aa9b7;
    font-size: 14px;
    font-weight: 800;
}

.top-stepper .zstep.active .zstep-number {
    background: #006eaa;
}

.top-stepper .zstep:not(.disabled):not(.active) .zstep-number {
    background: #f6ad1b;
    color: #17212b;
}

.top-stepper + .zbooking-content {
    padding: 34px 50px 46px;
}

.top-stepper-shell .zpane[data-step="location"] .zlist,
.top-stepper-shell .zpane[data-step="service"] .zlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.top-stepper-shell .zpane[data-step="location"] .zlist-item,
.top-stepper-shell .zpane[data-step="service"] .zlist-item {
    min-height: 150px;
}

.top-stepper-shell .staff-line {
    width: min(520px, 100%);
}

.top-stepper-shell .calendar-head {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
}

.top-stepper-shell .day-strip {
    grid-template-columns: repeat(7, minmax(76px, 1fr));
}

.top-stepper-shell .zslot-grid {
    grid-template-columns: repeat(5, minmax(92px, 1fr));
}

.top-stepper-shell .info-form {
    width: min(560px, 100%);
}

.ztime-button,
.day-button.selected,
.zsubmit {
    border-color: #006eaa;
}

.ztime-button {
    color: #006eaa;
}

.ztime-button:hover,
.ztime-button.selected,
.day-button.selected {
    background: #006eaa;
}

.zsubmit {
    background: #006eaa;
}

.zsubmit:hover {
    background: #075783;
}

.zsubmit:disabled {
    border-color: #c8d4df;
    background: #dce6ee;
    color: #778899;
    cursor: not-allowed;
    opacity: 1;
    box-shadow: none;
}

.zsubmit:disabled:hover {
    background: #dce6ee;
}

.booking-is-submitting .zsubmit:disabled {
    border-color: #006eaa;
    background: #6aa6cb;
    color: #fff;
    cursor: wait;
}

.booking-is-submitting .zsubmit:disabled:hover {
    background: #6aa6cb;
}

.booking-submit-complete .zsubmit:disabled {
    border-color: #91c8a0;
    background: #dff2e4;
    color: #247a3e;
    cursor: default;
}

.booking-submit-progress {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 6px;
    margin-top: 10px;
    border-radius: 999px;
    background: #d8e6ef;
}

.booking-submit-progress span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: #006eaa;
    animation: booking-submit-progress 1.05s ease-in-out infinite;
}

@keyframes booking-submit-progress {
    0% {
        transform: translateX(-110%);
    }
    55% {
        transform: translateX(80%);
    }
    100% {
        transform: translateX(250%);
    }
}

.staff-line button {
    color: #006eaa;
}

.top-stepper-shell .staff-line {
    width: min(620px, 100%);
}

.staff-line.has-staff {
    align-items: start;
}

.staff-actions {
    align-self: start;
}

.staff-panel {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    justify-self: stretch;
}

.staff-choice-list {
    justify-content: flex-start;
}

.staff-choice {
    max-width: 100%;
    white-space: normal;
    text-align: center;
}

.staff-copy strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.staff-line .staff-panel-actions button {
    color: #fff;
    background: #006eaa;
}

.staff-line .staff-panel-actions button:hover {
    color: #fff;
    background: #075783;
}

.day-button.has-availability {
    border-color: #b9d7e8;
    color: #17212b;
    background: #fff;
}

.day-button.has-availability strong {
    font-weight: 800;
}

.day-button.has-availability.selected {
    border-color: #006eaa;
    color: #fff;
    background: #006eaa;
}

@media (max-width: 900px) {
    .top-stepper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .top-stepper .zstep {
        border-bottom: 1px solid #e7ecf2;
    }

    .top-stepper + .zbooking-content {
        padding: 24px;
    }

    .staff-line,
    .staff-line.has-staff {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .staff-line:not(.has-staff) {
        grid-template-columns: minmax(0, 1fr);
    }

    .staff-avatar {
        width: 64px;
        height: 64px;
        min-width: 64px;
        font-size: 18px;
    }

    .staff-avatar img,
    .staff-line .staff-avatar img {
        width: 64px !important;
        height: 64px !important;
        max-width: 64px !important;
        max-height: 64px !important;
    }

    .staff-actions {
        grid-column: 2;
        justify-items: start;
    }

    .staff-line:not(.has-staff) .staff-actions {
        grid-column: 1;
    }

    .staff-choice-list {
        justify-content: flex-start;
    }

    .top-stepper-shell .zpane[data-step="location"] .zlist,
    .top-stepper-shell .zpane[data-step="service"] .zlist,
    .top-stepper-shell .zslot-grid {
        grid-template-columns: 1fr;
    }

    .top-stepper-shell .day-strip {
        grid-template-columns: repeat(4, minmax(72px, 1fr));
    }
}

@media (max-width: 560px) {
    .top-stepper {
        grid-template-columns: 1fr;
    }

    .top-stepper .zstep {
        min-height: 68px;
        border-right: 0;
    }

    .top-stepper-shell .day-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Friendlier admin backend */
.admin-body {
    background: #f4f7fa;
}

.admin-app {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    padding: 24px 18px;
    border-right: 1px solid #d9e2ea;
    background: #fff;
}

.admin-brand {
    display: block;
    margin-bottom: 28px;
}

.admin-brand img {
    width: 190px;
    height: auto;
}

.admin-public-link {
    display: block;
    margin-top: 22px;
    border-radius: 6px;
    padding: 11px 12px;
    color: #006eaa;
    background: #edf7fc;
    text-decoration: none;
    font-weight: 700;
}

.admin-main {
    padding: 34px;
}

.admin-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-page-head h1 {
    margin: 0;
    font-size: 34px;
}

.admin-userline {
    margin: 6px 0 0;
    color: #667789;
    font-size: 13px;
}

.admin-login-body {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
    background: #f4f7fa;
}

.admin-login-card {
    display: grid;
    gap: 18px;
    width: min(420px, 100%);
    border: 1px solid #d9e2ea;
    border-radius: 8px;
    padding: 28px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(20, 36, 51, .08);
}

.admin-login-card img {
    width: 180px;
    height: auto;
}

.admin-login-card h1 {
    margin: 0 0 8px;
    font-size: 30px;
}

.admin-login-card p {
    margin: 0;
}

.admin-login-form {
    display: grid;
    gap: 14px;
}

.admin-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid #cbd6df;
    border-radius: 6px;
    padding: 0 14px;
    color: #17212b;
    background: #fff;
    text-decoration: none;
    font-weight: 700;
}

.admin-logout-button:hover {
    border-color: #006eaa;
    color: #006eaa;
}

.admin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 26px 0 16px;
}

.admin-section-head h2 {
    margin: 0 0 5px;
}

.admin-section-head p {
    margin: 0;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: #006eaa;
}

.stat-grid article,
.admin-card,
.table-wrap {
    box-shadow: 0 10px 26px rgba(20, 36, 51, .055);
}

@media (max-width: 980px) {
    .admin-manage-head {
        display: none;
    }

    .admin-manage-row,
    .user-manage-list .admin-manage-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .edit-button-like {
        justify-self: start;
    }
}

@media (max-width: 860px) {
    .admin-app {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        border-right: 0;
        border-bottom: 1px solid #d9e2ea;
    }
}

.admin-hours-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.admin-hours-card {
    gap: 16px;
}

.hours-editor {
    display: grid;
    border: 1px solid #d9e2ea;
    border-radius: 8px;
    overflow: hidden;
}

.hours-row {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) 110px 120px 120px;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #e7ecf2;
    background: #fff;
}

.hours-row:last-child {
    border-bottom: 0;
}

.hours-row-head {
    color: #667789;
    background: #f4f7fa;
    font-size: 13px;
    font-weight: 700;
}

.hours-row input[type="time"] {
    width: 100%;
    min-height: 38px;
}

@media (max-width: 1220px) {
    .admin-hours-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hours-row,
    .hours-row-head {
        grid-template-columns: 1fr;
    }

    .hours-row-head {
        display: none;
    }
}

.zoho-settings-card {
    grid-column: 1 / -1;
}


.integration-log-card {
    grid-column: 1 / -1;
}

.integration-test-card {
    align-content: start;
}

.subtle-button {
    justify-self: start;
    min-height: 38px;
    padding: 0 13px;
    color: #324457;
    font-size: 14px;
    box-shadow: none;
}

.field-group-title {
    margin: 4px 0 10px;
    color: #17212b;
    font-weight: 700;
}

.crm-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.crm-field-check {
    align-items: flex-start;
    border: 1px solid #d9e2ea;
    border-radius: 6px;
    padding: 10px;
    background: #fff;
}

.crm-field-check small {
    color: #667789;
    font-weight: 700;
}

.assignment-grid {
    display: grid;
    gap: 8px;
}

.assignment-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.assignment-check {
    align-items: flex-start;
    border: 1px solid #d9e2ea;
    border-radius: 6px;
    padding: 9px 10px;
    background: #fff;
}

.assignment-check small {
    color: #667789;
    font-weight: 700;
}

@media (max-width: 720px) {
    .crm-field-grid,
    .assignment-grid-two {
        grid-template-columns: 1fr;
    }
}


/* Kältech app admin alignment */
.admin-body,
.admin-login-body {
    --admin-brand-blue: #006eaa;
    --admin-brand-blue-dark: #004f7a;
    --admin-brand-blue-deep: #003f63;
    --admin-brand-blue-soft: rgba(0, 110, 170, .10);
    --admin-brand-orange: #f6ad1b;
    --admin-brand-orange-dark: #bf7900;
    --admin-brand-orange-soft: rgba(246, 173, 27, .16);
    --admin-ink: #102234;
    --admin-muted: #5f7183;
    --admin-surface: #ffffff;
    --admin-surface-soft: #f3f9fc;
    --admin-line: #d5e8f2;
    --admin-success: #177e4d;
    --admin-warning: #9b6400;
    --admin-danger: #b21f35;
    --admin-shadow: 0 22px 60px rgba(0, 55, 91, .12);
}

.admin-body {
    min-height: 100vh;
    color: var(--admin-ink);
    background: linear-gradient(180deg, #f7fbfe 0%, #eaf4fa 100%);
}

.admin-body .admin-app {
    grid-template-columns: 280px minmax(0, 1fr);
}

.admin-body .admin-sidebar {
    color: #fff;
    border-right: 0;
    padding: 28px 22px;
    background: linear-gradient(180deg, var(--admin-brand-blue-deep) 0%, var(--admin-brand-blue-dark) 100%);
}

.admin-body .admin-brand-panel {
    margin-bottom: 28px;
}

.admin-body .admin-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 210px;
    max-width: 100%;
    min-height: 76px;
    margin: 0 0 16px;
    border-radius: 22px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .94);
    overflow: hidden;
    filter: drop-shadow(0 12px 22px rgba(0, 28, 45, .18));
}

.admin-body .admin-brand img {
    display: block;
    width: 100%;
    max-height: 48px;
    object-fit: contain;
}

.admin-body .admin-brand-panel h1 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1;
}

.admin-body .admin-brand-panel p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
    line-height: 1.5;
}

.admin-body .admin-nav {
    gap: 10px;
}

.admin-body .admin-nav a {
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, .82);
    background: transparent;
}

.admin-body .admin-nav a.active,
.admin-body .admin-nav a:hover {
    border-color: rgba(246, 173, 27, .24);
    color: #fff;
    background: rgba(246, 173, 27, .18);
    box-shadow: inset 4px 0 0 var(--admin-brand-orange);
}

.admin-body .admin-public-link {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 16px;
    padding: 13px 16px;
    color: #fff;
    background: rgba(255, 255, 255, .12);
}

.admin-body .admin-public-link:hover {
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .18);
}

.admin-body .admin-main {
    padding: 28px;
}

.admin-body .admin-page-head {
    align-items: flex-start;
    margin-bottom: 24px;
}

.admin-body .admin-page-head h1 {
    color: var(--admin-ink);
    font-size: 32px;
}

.admin-body .admin-userline {
    display: inline-flex;
    margin-top: 10px;
    border: 1px solid rgba(0, 110, 170, .12);
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--admin-muted);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 22px rgba(0, 55, 91, .08);
}

.admin-body .admin-logout-button {
    border: 0;
    border-radius: 14px;
    min-height: 44px;
    padding: 0 16px;
    color: var(--admin-brand-blue-dark);
    background: var(--admin-brand-blue-soft);
}

.admin-body .admin-logout-button:hover {
    color: #fff;
    background: var(--admin-brand-blue);
}

.admin-body .stat-grid article,
.admin-body .admin-card,
.admin-body .table-wrap {
    border: 1px solid rgba(0, 110, 170, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--admin-shadow);
}

.admin-body .stat-grid article {
    padding: 18px 18px 20px;
}

.admin-body .stat-grid strong {
    color: var(--admin-ink);
    font-size: 32px;
}

.admin-body .stat-grid span,
.admin-body td span,
.admin-body .hint {
    color: var(--admin-muted);
}

.admin-body .admin-section-head h2,
.admin-body .admin-card h3 {
    color: var(--admin-ink);
}

.admin-body .admin-section-head p {
    color: var(--admin-muted);
}

.admin-body table {
    background: transparent;
}

.admin-body th,
.admin-body td {
    border-bottom-color: #e4eff6;
    padding: 13px 12px;
    font-size: 14px;
}

.admin-body th {
    color: var(--admin-muted);
    background: transparent;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
}

.admin-body .admin-management-table .admin-edit-table-row > td,
.admin-body .admin-edit-panel,
.admin-body .admin-management-table .admin-edit-panel {
    background: var(--admin-surface-soft);
}

.admin-body input:not([type="checkbox"]),
.admin-body select,
.admin-body textarea,
.admin-login-body input:not([type="checkbox"]) {
    border-color: var(--admin-line);
    border-radius: 14px;
    background: var(--admin-surface-soft);
}

.admin-body label {
    color: var(--admin-muted);
}

.admin-body button,
.admin-body .button-link,
.admin-body .table-edit-button,
.admin-login-body button {
    border-radius: 14px;
    font-weight: 700;
}

.admin-body button:not(.secondary):not(.warning):not(.danger),
.admin-body .button-link,
.admin-login-body button {
    color: #fff;
    background: var(--admin-brand-blue);
}

.admin-body button:not(.secondary):not(.warning):not(.danger):hover,
.admin-body .button-link:hover,
.admin-login-body button:hover {
    background: var(--admin-brand-blue-dark);
}

.admin-body button.secondary,
.admin-body .secondary,
.admin-body .table-edit-button {
    border-color: transparent;
    color: var(--admin-brand-blue-dark);
    background: var(--admin-brand-blue-soft);
}

.admin-body button.secondary:hover,
.admin-body .secondary:hover,
.admin-body .table-edit-button:hover,
.admin-body .table-edit-button.active {
    color: #fff;
    background: var(--admin-brand-blue);
}

.admin-body button.warning,
.admin-body .warning {
    color: var(--admin-brand-orange-dark);
    background: var(--admin-brand-orange-soft);
}

.admin-body button.danger,
.admin-body .danger {
    color: var(--admin-danger);
    background: #fde7ea;
}

.admin-body .booking-status-tabs a {
    border-color: rgba(0, 110, 170, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
}

.admin-body .booking-status-tabs a.active,
.admin-body .booking-status-tabs a:hover {
    border-color: transparent;
    color: #102234;
    background: var(--admin-brand-orange);
}

.admin-body .status-chip,
.admin-body .pill {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

.admin-body .status-chip.active,
.admin-body .booking-status-confirmed {
    color: var(--admin-success);
    background: rgba(23, 126, 77, .12);
}

.admin-body .status-chip.inactive,
.admin-body .booking-status-cancelled {
    color: var(--admin-danger);
    background: rgba(178, 31, 53, .12);
}

.admin-body .booking-status-requested {
    color: var(--admin-brand-orange-dark);
    background: var(--admin-brand-orange-soft);
}

.admin-body .booking-status-failed {
    color: var(--admin-warning);
    background: rgba(155, 100, 0, .12);
}

.admin-body .booking-status-deleted {
    color: var(--admin-muted);
    background: rgba(95, 113, 131, .12);
}

.admin-body .crm-field-check,
.admin-body .assignment-check,
.admin-body .hours-editor,
.admin-body .hours-row {
    border-color: rgba(0, 110, 170, .12);
    background: var(--admin-surface-soft);
}

.admin-body .hours-row-head {
    color: var(--admin-muted);
    background: rgba(0, 110, 170, .06);
}

.admin-login-body {
    color: var(--admin-ink);
    background: linear-gradient(180deg, #f7fbfe 0%, #eaf4fa 100%);
}

.admin-login-card {
    border: 1px solid rgba(0, 110, 170, .12);
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--admin-shadow);
}

.admin-login-card img {
    width: 210px;
}

.admin-login-card h1 {
    color: var(--admin-ink);
}

.admin-login-card p {
    color: var(--admin-muted);
}

@media (max-width: 860px) {
    .admin-body .admin-app {
        grid-template-columns: 1fr;
    }

    .admin-body .admin-sidebar {
        border-bottom: 0;
    }

    .admin-body .admin-main {
        padding: 22px;
    }
}


/* Außendienst route address gate */
.route-address-gate {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
    border: 1px solid rgba(0, 110, 170, .18);
    border-radius: 8px;
    padding: 18px;
    background: #f8fbfd;
}

.route-address-gate[hidden],
.schedule-calendar-area[hidden] {
    display: none;
}

.route-address-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.route-address-head > span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 10px;
    color: #102234;
    background: #f6ad1b;
    font-size: 12px;
    font-weight: 800;
}

.route-address-head h2 {
    margin: 0 0 5px;
    font-size: 20px;
}

.route-address-head p {
    margin: 0;
    color: #667789;
    line-height: 1.5;
}

.route-address-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.route-address-grid .wide {
    grid-column: 1 / -1;
}

.route-address-grid .field-label {
    display: block;
    line-height: 1.35;
}

.route-address-grid b {
    display: inline;
    color: #f05b63;
}

.route-address-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.route-address-message {
    margin: 0;
    border-radius: 6px;
    padding: 9px 11px;
    font-size: 13px;
    font-weight: 700;
}

.route-address-message.info {
    color: #075783;
    background: rgba(0, 110, 170, .10);
}

.route-address-message.success {
    color: #245b33;
    background: #edf8f0;
}

.route-address-message.error {
    color: #7a2a20;
    background: #fff1ef;
}

@media (max-width: 720px) {
    .route-address-head,
    .route-address-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .route-address-grid {
        grid-template-columns: 1fr;
    }
}


.admin-body button.direct-slot-button {
    display: grid;
    gap: 3px;
    min-height: 54px;
    border: 1px solid #bcd9eb;
    border-radius: 7px;
    background: #fff;
    color: #00324f;
    padding: 8px 10px;
    text-align: left;
    box-shadow: none;
}

.admin-body button.direct-slot-button:hover {
    border-color: #0076b6;
    background: #eef8fd;
    color: #00324f;
}

.admin-body button.direct-slot-button.selected {
    border-color: #0076b6;
    background: #dff1fb;
    color: #005f92;
}

.direct-slot-picker {
    display: grid;
    gap: 18px;
}

.direct-slot-date-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
}

.admin-body button.direct-slot-date-button {
    display: grid;
    flex: 0 0 112px;
    place-items: center;
    scroll-snap-align: start;
    min-height: 70px;
    border: 1px solid #d7e6ef;
    border-radius: 8px;
    padding: 9px 10px;
    color: #5d6f82;
    background: #fff;
    box-shadow: none;
}

.admin-body button.direct-slot-date-button span,
.admin-body button.direct-slot-date-button small {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.admin-body button.direct-slot-date-button strong {
    color: #17212b;
    font-size: 18px;
    line-height: 1.2;
}

.admin-body button.direct-slot-date-button:hover,
.admin-body button.direct-slot-date-button.selected {
    border-color: #0076b6;
    color: #fff;
    background: #0076b6;
}

.admin-body button.direct-slot-date-button:hover strong,
.admin-body button.direct-slot-date-button.selected strong {
    color: #fff;
}

.direct-slot-times {
    display: grid;
    gap: 18px;
}

.direct-slot-current-day {
    margin: 0;
    color: #17212b;
    font-size: 16px;
}

.direct-slot-period {
    display: grid;
    gap: 11px;
}

.direct-slot-divider {
    display: grid;
    grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
    align-items: center;
    gap: 12px;
    color: #667789;
    font-size: 13px;
    font-weight: 700;
}

.direct-slot-divider::before,
.direct-slot-divider::after {
    content: "";
    height: 1px;
    background: #d7e6ef;
}

.direct-slot-period-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px 14px;
}

.direct-slot-empty {
    grid-column: 1 / -1;
    margin: 0;
    border-radius: 8px;
    padding: 10px 12px;
    color: #667789;
    background: #edf4f9;
    font-size: 13px;
    font-weight: 700;
}

.admin-body button.direct-slot-button {
    justify-items: center;
    min-height: 48px;
    border-radius: 7px;
    padding: 7px 10px;
    text-align: center;
}

.direct-slot-button strong,
.direct-slot-button span {
    display: block;
    max-width: 100%;
}

.direct-slot-button strong {
    font-size: 14px;
}

.direct-slot-button span {
    font-size: 11px;
}

@media (max-width: 720px) {
    .direct-slot-head {
        align-items: stretch;
        flex-direction: column;
    }

    .direct-booking-grid .wide {
        grid-column: 1 / -1;
    }

    .direct-slot-calendar {
        padding: 16px;
    }

    .direct-slot-calendar .day-strip {
        grid-template-columns: repeat(7, minmax(68px, 1fr));
        overflow-x: auto;
    }

    .direct-slot-calendar .zslot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.user-action-stack {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.user-action-stack form {
    margin: 0;
}

.security-log-card {
    margin-top: 22px;
}

.admin-body .status-chip.locked {
    color: var(--admin-warning);
    background: rgba(255, 178, 31, .18);
}

.user-management-table th:last-child,
.user-management-table td:last-child {
    width: 230px;
}

.admin-user-form .split-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 4px;
}

.admin-user-form .split-actions .danger {
    margin-left: auto;
    min-width: 92px;
}
