:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --text: #172033;
    --muted: #667085;
    --line: #d8dee9;
    --accent: #1b6fd6;
    --accent-dark: #1557a8;
    --ok: #138a53;
    --warn: #9a6412;
    --shadow: 0 10px 30px rgba(30, 43, 70, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Segoe UI, Arial, sans-serif;
}

.booking-page {
    --accent: #51473b;
    --accent-dark: #2f2821;
    --line: #ded8d0;
    --text: #161311;
    --muted: #6f655b;
    background:
        radial-gradient(circle at top left, rgba(90, 78, 66, 0.08), transparent 34%),
        #f4f1ed;
}

.booking-page .topbar {
    display: none;
}

.booking-page main {
    padding: 18px;
}

a {
    color: inherit;
}

.topbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 28px clamp(18px, 4vw, 48px);
    background: #fff;
    border-bottom: 1px solid var(--line);
}

h1,
h2,
p {
    margin: 0;
}

h1 {
    font-size: 32px;
    line-height: 1.1;
}

h2 {
    font-size: 18px;
}

.muted,
.topbar p,
.section-head span {
    color: var(--muted);
}

button {
    border: 0;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    min-height: 40px;
    padding: 10px 14px;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
}

button:hover,
button:hover {
    background: var(--accent-dark);
    color: #fff;
}

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

.button-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

.button-link:hover {
    background: var(--accent-dark);
}

.button-secondary {
    background: #eef2f7;
    color: #344054;
}

.button-secondary:hover {
    background: #d9e1ec;
    color: #172033;
}

.danger-button {
    background: #b42318;
}

.danger-button:hover {
    background: #8f1d14;
}

main {
    padding: 28px clamp(18px, 4vw, 48px) 48px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
}

.stack {
    display: grid;
    gap: 18px;
}

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

.mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-weight: 650;
}

input,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 42px;
    padding: 0 12px;
    background: #fffdfb;
    color: var(--text);
    font: inherit;
}

input:focus,
select:focus {
    outline: 2px solid rgba(81, 71, 59, 0.24);
    border-color: #756756;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    margin-bottom: 12px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.brand-choice,
.item,
.slot {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px;
    background: #fffdfb;
}

.brand-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 58px;
}

.brand-choice input {
    width: 18px;
    min-height: 18px;
}

.actions {
    margin-top: 18px;
}

.list {
    display: grid;
    gap: 10px;
}

.slot {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.route {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 6px;
    background: #eaf3ff;
    color: #185ca8;
    font-size: 13px;
}

.item-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 750;
}

.status {
    color: var(--warn);
}

.status.done {
    color: var(--ok);
}

.inline-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 8px;
    margin-bottom: 14px;
}

.alert {
    border: 1px solid #bfd7ff;
    background: #eef6ff;
    color: #185ca8;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.error {
    color: #b42318;
    font-weight: 650;
}

.auth-shell,
.booking-shell {
    display: grid;
    justify-content: center;
}

.auth-panel,
.booking-card {
    width: min(720px, calc(100vw - 36px));
}

.auth-panel {
    display: grid;
    gap: 14px;
    width: min(420px, calc(100vw - 36px));
}

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

.simple-brands .brand-choice {
    min-height: 54px;
    padding: 10px 12px;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.simple-brands .brand-choice:has(input:checked) {
    border-color: #756756;
    background: #f4f0ea;
    box-shadow: inset 0 0 0 1px rgba(81, 71, 59, 0.16);
}

.brand-choice.is-disabled {
    opacity: 0.45;
    background: #f1eee9;
}

.brand-choice.is-disabled input {
    cursor: not-allowed;
}

.simple-brands span {
    display: grid;
    gap: 2px;
}

.simple-brands strong {
    font-size: 14px;
}

.simple-brands small {
    font-size: 12px;
}

.time-list {
    display: grid;
    gap: 10px;
}

.time-option {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fbfcff;
}

.customer-details {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.customer-details[hidden] {
    display: none;
}

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

.date-filter label {
    width: min(240px, 100%);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.brand-calendar {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.calendar-column {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcff;
    min-height: 170px;
    padding: 12px;
}

.calendar-column h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.timeline {
    display: grid;
    gap: 8px;
}

.calendar-event,
.empty-slot {
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    background: #fff;
    padding: 10px;
}

.calendar-event span,
.empty-slot {
    display: block;
    color: var(--muted);
}

.outlook-calendar {
    display: grid;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.calendar-head {
    position: sticky;
    top: 0;
    z-index: 1;
    min-width: 0;
    padding: 10px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
    font-weight: 800;
}

.time-head {
    left: 0;
    z-index: 2;
}

.time-cell {
    min-height: 78px;
    padding: 10px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
    color: var(--muted);
    font-size: 13px;
}

.outlook-cell {
    min-height: 78px;
    padding: 6px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(to bottom, transparent 49%, #eef2f7 50%, transparent 51%),
        #fff;
}

.outlook-event {
    display: grid;
    gap: 3px;
    margin-bottom: 6px;
    padding: 8px;
    border-left: 4px solid var(--accent);
    border-radius: 6px;
    background: #eaf3ff;
    color: #185ca8;
    font-size: 13px;
}

.outlook-event span {
    color: #185ca8;
}

.brand-event {
    border-left-color: var(--ok);
    background: #eaf8f1;
    color: #0f6b41;
}

.brand-event span {
    color: #0f6b41;
}

.schedule-board {
    display: grid;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.schedule-corner,
.schedule-head {
    position: sticky;
    top: 0;
    z-index: 3;
    min-height: 42px;
    padding: 12px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #f8fafc;
    font-weight: 800;
}

.schedule-corner {
    left: 0;
    z-index: 4;
}

.schedule-times {
    position: relative;
    border-right: 1px solid var(--line);
    background: #f8fafc;
}

.schedule-time-label {
    position: absolute;
    left: 10px;
    color: #465c7c;
    font-size: 13px;
    transform: translateY(-1px);
}

.schedule-lane {
    position: relative;
    min-width: 0;
    border-right: 1px solid var(--line);
    background:
        repeating-linear-gradient(
            to bottom,
            #fff 0,
            #fff 42.5px,
            #eef2f7 43.5px,
            #fff 44.5px,
            #fff 86px,
            #cfd8e6 87px
        );
}

.schedule-event {
    position: absolute;
    left: 8px;
    right: 8px;
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 34px;
    overflow: hidden;
    border-left: 4px solid #2f66e8;
    border-radius: 7px;
    background: #eaf3ff;
    box-shadow: 0 1px 2px rgba(23, 32, 51, 0.08);
}

.event-title {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: baseline;
    padding: 7px 10px 5px;
    color: #104a9c;
    font-size: 13px;
}

.event-title span {
    color: #185ca8;
}

.event-segments {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.event-segment {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 22px;
    padding: 4px 10px;
    border-top: 1px solid rgba(47, 102, 232, 0.18);
    background: rgba(255, 255, 255, 0.35);
    color: #0f4fa8;
    font-size: 12px;
}

.event-segment:nth-child(even) {
    background: rgba(255, 255, 255, 0.62);
}

.event-segment span {
    white-space: nowrap;
}

.brand-schedule-event {
    border-left-color: var(--ok);
    background: #eaf8f1;
}

.brand-schedule-event .event-title,
.brand-schedule-event .event-title span {
    color: #0f6b41;
}

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

.route-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcff;
    padding: 10px;
}

.route-item.dragging {
    opacity: 0.55;
}

.drag-handle {
    display: grid;
    place-items: center;
    width: 28px;
    height: 40px;
    border-radius: 6px;
    background: #eef2f7;
    color: var(--muted);
    font-weight: 800;
    cursor: grab;
}

.brand-edit-form {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 100px auto auto;
    gap: 8px;
    align-items: center;
}

.check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    font-weight: 650;
}

.check-label input {
    width: 18px;
    min-height: 18px;
}

.compact-form {
    grid-template-columns: minmax(120px, 1fr) 120px auto;
}

.full-row {
    grid-column: 1 / -1;
}

.checkbox-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 650;
}

.pill-check input {
    width: 16px;
    min-height: 16px;
}

.employee-edit-form,
.customer-edit-form {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.customer-edit-form {
    grid-template-columns: minmax(120px, 1fr) minmax(140px, 1fr) minmax(120px, 1fr) auto;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.stats-row div {
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcff;
}

.stats-row strong {
    font-size: 22px;
}

.stats-row span {
    color: var(--muted);
    font-size: 13px;
}

.customer-status-line {
    margin-bottom: 8px;
}

.opening-form {
    display: grid;
    gap: 10px;
}

.opening-row {
    display: grid;
    grid-template-columns: minmax(130px, 1fr) 120px 120px;
    gap: 8px;
    align-items: center;
}

.calendly-shell {
    display: grid;
    grid-template-columns: 250px minmax(660px, 1fr) 340px;
    width: min(100%, 1480px);
    height: calc(100vh - 36px);
    min-height: 680px;
    max-height: 820px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #d8d1c8;
    border-radius: 12px;
    background: #fffdfb;
    box-shadow: 0 22px 60px rgba(47, 40, 33, 0.16);
}

.booking-info-card,
.booking-picker-card,
.booking-times-card {
    padding: 28px;
}

.booking-info-card {
    border-right: 1px solid var(--line);
    background: #fbfaf8;
}

.booking-times-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    border-left: 1px solid var(--line);
    background: #fffdfb;
    min-height: 0;
    overflow: hidden;
}

.booking-picker-card {
    min-height: 0;
    overflow: hidden;
}

.booking-picker-card form {
    min-height: 0;
}

.hop-logo {
    display: block;
    width: min(180px, 82%);
    height: auto;
    margin: 0 0 34px;
}

.booking-info-card h2 {
    margin: 8px 0 18px;
    font-size: 32px;
    color: #15110e;
    line-height: 1.05;
}

.meeting-meta,
.selected-summary {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    color: #4b5565;
}

.selected-summary span {
    display: block;
    color: var(--muted);
}

.booking-picker-head {
    display: grid;
    gap: 22px;
    margin-bottom: 18px;
}

.booking-picker-head h2 {
    font-size: 26px;
}

.month-nav {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 10px;
}

.month-nav a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #51473b;
    text-decoration: none;
    font-size: 32px;
    line-height: 1;
}

.month-nav a:hover {
    background: #f0ebe4;
}

.month-nav strong {
    font-size: 21px;
    font-weight: 650;
}

.calendar-layout {
    display: grid;
    grid-template-columns: 360px minmax(230px, 1fr);
    gap: 24px;
    align-items: start;
}

.calendar-weekdays,
.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-weekdays {
    margin-bottom: 10px;
    color: #2f3747;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
}

.calendar-day {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    min-height: 40px;
    margin: 0 auto;
    padding: 0;
    border-radius: 50%;
    background: transparent;
    color: #3d352d;
    font-size: 18px;
    font-weight: 650;
}

.calendar-day:hover {
    background: #f0ebe4;
    color: #2f2821;
}

.calendar-day.selected {
    background: #51473b;
    color: #fff;
}

.calendar-day.muted-day {
    color: #c0c8d4;
}

.brand-select-panel {
    display: grid;
    gap: 12px;
    max-height: calc(100vh - 250px);
    overflow: auto;
    padding-right: 4px;
}

.brand-select-panel h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.brand-select-panel p {
    line-height: 1.35;
}

.employee-preference {
    font-size: 14px;
}

.slot-hint {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 13px;
    border-radius: 8px;
    background: #f2eee8;
    color: #3d352d;
}

.slot-hint span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #8b745f;
}

.wide-button {
    width: 100%;
}

.times-head {
    display: grid;
    gap: 6px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.times-head span {
    color: #303846;
    font-size: 20px;
}

.times-head strong {
    color: var(--muted);
    font-size: 14px;
}

.booking-times-card .time-list {
    align-content: start;
    max-height: none;
    min-height: 0;
    height: 100%;
    overflow: auto;
    padding: 0 6px 18px 0;
}

.calendly-time-option {
    display: grid;
    gap: 10px;
    border: 0;
    padding: 0;
    background: transparent;
}

.time-button {
    width: 100%;
    min-height: 54px;
    border: 1px solid #9c8d7e;
    background: #fffdfb;
    color: #51473b;
    font-size: 20px;
    font-weight: 800;
}

.time-button:hover {
    background: #f0ebe4;
    color: #2f2821;
}

.empty-times {
    display: grid;
    gap: 8px;
    place-items: center;
    min-height: 220px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
}

.empty-times strong {
    color: var(--text);
    font-size: 18px;
}

.empty-times span {
    max-width: 260px;
}

.strong-empty {
    border-color: #f0c7c3;
    background: #fff7f6;
}

.calendly-time-option .customer-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfaf8;
}

.calendly-time-option .customer-details[hidden] {
    display: none;
}

.confirm-head {
    display: grid;
    gap: 3px;
}

.confirm-head span {
    color: var(--muted);
    font-size: 13px;
}

.booking-field-grid {
    display: grid;
    gap: 10px;
}

.confirm-button {
    width: 100%;
    background: #51473b;
}

.confirm-button:hover {
    background: #2f2821;
}

@media (max-width: 820px) {
    .topbar,
    .section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .form-grid,
    .mini-grid,
    .admin-grid,
    .inline-form,
    .slot,
    .time-option,
    .customer-details,
    .brand-edit-form,
    .employee-edit-form,
    .customer-edit-form,
    .compact-form {
        grid-template-columns: 1fr;
    }

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

    .date-filter {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .settings-overview,
    .settings-grid {
        grid-template-columns: 1fr;
    }

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

    .booking-info-card,
    .booking-times-card {
        border: 0;
        border-bottom: 1px solid var(--line);
    }

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

    .calendar-day {
        width: 40px;
        height: 40px;
        min-height: 40px;
        font-size: 17px;
    }
}

@media (max-width: 1180px) {
    .calendly-shell {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }

    .booking-info-card,
    .booking-times-card {
        border: 0;
        border-bottom: 1px solid var(--line);
    }

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

    .brand-select-panel,
    .booking-times-card .time-list {
        max-height: none;
    }
}

body:not(.booking-page) {
    --accent: #51473b;
    --accent-dark: #2f2821;
    --line: #d8d1c8;
    --text: #161311;
    --muted: #6f655b;
    background:
        radial-gradient(circle at top left, rgba(90, 78, 66, 0.06), transparent 30%),
        #f4f1ed;
}

body:not(.booking-page) .topbar,
body:not(.booking-page) .panel {
    background: #fffdfb;
    border-color: #d8d1c8;
}

body:not(.booking-page) .panel {
    box-shadow: 0 12px 32px rgba(47, 40, 33, 0.08);
}

body:not(.booking-page) button,
body:not(.booking-page) .button-link {
    background: #51473b;
}

body:not(.booking-page) button:hover,
body:not(.booking-page) .button-link:hover {
    background: #2f2821;
}

body:not(.booking-page) .button-secondary {
    background: #f0ebe4;
    color: #3d352d;
}

body:not(.booking-page) .danger-button {
    background: #8f3429;
}

body:not(.booking-page) .danger-button:hover {
    background: #68231c;
}

body:not(.booking-page) input,
body:not(.booking-page) select {
    background: #fffdfb;
}

.settings-page {
    max-width: 1420px;
    margin: 0 auto;
}

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

.settings-overview article {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid #d8d1c8;
    border-radius: 8px;
    background: #fffdfb;
}

.settings-overview strong {
    color: #2f2821;
    font-size: 30px;
    line-height: 1;
}

.settings-overview span {
    color: #6f655b;
    font-size: 13px;
}

.settings-grid {
    align-items: start;
    grid-template-columns: repeat(2, minmax(420px, 1fr));
}

.settings-page .panel {
    box-shadow: none;
    padding: 18px;
}

.settings-page .section-head {
    padding-bottom: 12px;
    border-bottom: 1px solid #e5ded6;
}

.settings-page .section-head h2 {
    color: #161311;
    font-size: 17px;
}

.settings-page .section-head span {
    font-size: 13px;
}

.settings-page .inline-form,
.settings-page .opening-form {
    padding-bottom: 14px;
    border-bottom: 1px solid #e8e1da;
}

.settings-page .inline-form {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.settings-scroll-list {
    max-height: 430px;
    overflow: auto;
    padding-right: 6px;
}

.customers-scroll-list {
    max-height: 520px;
}

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

.settings-page .item {
    padding: 12px;
}

.settings-page .item + .item {
    margin-top: 0;
}

.settings-page .opening-row {
    grid-template-columns: minmax(120px, 1fr) 112px 112px;
}

.settings-page .employee-edit-form,
.settings-page .brand-edit-form,
.settings-page .customer-edit-form {
    gap: 7px;
}

.customer-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.customer-tabs button {
    min-height: 36px;
    background: #f0ebe4;
    color: #3d352d;
}

.customer-tabs button.active {
    background: #51473b;
    color: #fff;
}

.customer-table-wrap {
    overflow: auto;
    border: 1px solid #ded8d0;
    border-radius: 8px;
    background: #fffdfb;
}

.customer-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.customer-table th,
.customer-table td {
    padding: 10px;
    border-bottom: 1px solid #e8e1da;
    text-align: left;
    vertical-align: top;
}

.customer-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f3eee8;
    color: #3d352d;
    font-size: 13px;
}

.customer-table tr:last-child td {
    border-bottom: 0;
}

.customer-row-form,
.customer-contact-fields,
.table-actions {
    display: grid;
    gap: 7px;
}

.table-actions {
    display: flex;
    align-items: center;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border: 1px solid #51473b;
    background: #51473b;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
}

.icon-button:hover {
    background: #2f2821;
    color: #fff;
}

.danger-icon-button {
    border-color: #8f3429;
    background: #8f3429;
    color: #fff;
}

.danger-icon-button:hover {
    background: #68231c;
    color: #fff;
}

.cancel-row-button {
    border-color: #9c8d7e;
    background: #9c8d7e;
}

.customer-row-form [data-view-value],
.customer-contact-fields [data-view-value] {
    display: block;
    min-height: 34px;
    padding: 8px 0;
    color: #2f2821;
}

.customer-contact-fields [data-view-value] {
    color: #6f655b;
}

.customer-table tr.is-editing {
    background: #fbfaf8;
}

.customer-contact-fields {
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 0.75fr);
}

.table-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    background: #f7e7df;
    color: #8f3429;
    font-weight: 750;
    font-size: 13px;
}

.table-status.done {
    background: #e8efe4;
    color: #49633c;
}

.customer-table small {
    display: block;
    color: #6f655b;
    margin-top: 3px;
}

body:not(.booking-page) .item,
body:not(.booking-page) .route-item,
body:not(.booking-page) .pill-check,
body:not(.booking-page) .stats-row div {
    background: #fffdfb;
    border-color: #ded8d0;
}

body:not(.booking-page) .schedule-corner,
body:not(.booking-page) .schedule-head,
body:not(.booking-page) .schedule-times {
    background: #f3eee8;
}

body:not(.booking-page) .schedule-lane {
    background:
        repeating-linear-gradient(
            to bottom,
            #fffdfb 0,
            #fffdfb 42.5px,
            #eee7df 43.5px,
            #fffdfb 44.5px,
            #fffdfb 86px,
            #d8d1c8 87px
        );
}

body:not(.booking-page) .schedule-event {
    border-left-color: #51473b;
    background: #f3eee8;
}

body:not(.booking-page) .event-title {
    color: #2f2821;
}

body:not(.booking-page) .event-title span {
    color: #6f655b;
}

body:not(.booking-page) .event-segment {
    border-top-color: rgba(81, 71, 59, 0.18);
    color: #3d352d;
}

body:not(.booking-page) .brand-schedule-event {
    border-left-color: #8b745f;
    background: #f4f0ea;
}

body:not(.booking-page) .brand-schedule-event .event-title,
body:not(.booking-page) .brand-schedule-event .event-title span {
    color: #3d352d;
}
