:root {
    --tp-body-bg: #eef2f7;
    --tp-card-bg: #ffffff;
    --tp-border-color: #d9e2ec;
    --tp-sidebar-bg: #0f172a;
    --tp-sidebar-surface: #111c34;
    --tp-sidebar-text: #cbd5e1;
    --tp-sidebar-active: #ffffff;
    --tp-sidebar-width: 280px;
}

body.tp-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, var(--tp-body-bg) 100%);
    color: #0f172a;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--tp-sidebar-width);
    background: linear-gradient(180deg, #0f172a 0%, #16213b 100%);
    color: var(--tp-sidebar-text);
}

.app-sidebar-inner {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 100vh;
    padding: 1.5rem 1rem;
}

.app-brand {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: #ffffff;
    text-decoration: none;
}

.app-brand-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.app-brand-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.sidebar-user-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 1rem;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92) 0%, rgba(15, 23, 42, 0.82) 100%);
}

.sidebar-user-name {
    color: #ffffff;
    font-weight: 600;
}

.sidebar-user-role,
.sidebar-user-branch {
    color: #cbd5e1;
    font-size: 0.92rem;
}

.sidebar-logout {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 0.35rem;
    padding: 0.55rem 0.8rem;
    border-radius: 0.75rem;
    color: #ffffff;
    text-decoration: none;
    background: rgba(37, 99, 235, 0.2);
    transition: background-color 0.18s ease;
}

.sidebar-logout:hover,
.sidebar-logout:focus {
    background: rgba(37, 99, 235, 0.35);
    color: #ffffff;
}

.sidebar-section {
    padding: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.34);
}

.sidebar-section.is-active {
    border-color: rgba(96, 165, 250, 0.42);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.sidebar-section-title {
    margin-bottom: 0.65rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-link {
    display: block;
    padding: 0.7rem 0.8rem;
    border-radius: 0.85rem;
    color: var(--tp-sidebar-text);
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-link:hover,
.sidebar-link:focus {
    background: rgba(148, 163, 184, 0.14);
    color: var(--tp-sidebar-active);
    transform: translateX(2px);
}

.sidebar-link.active {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}

.app-main {
    flex: 1;
    min-width: 0;
}

.compact-scheduling-main {
    width: 100%;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 28rem),
        linear-gradient(180deg, #f8fafc 0%, var(--tp-body-bg) 100%);
}

.compact-scheduling-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 4.25rem;
    padding: 0.75rem clamp(1rem, 2vw, 1.75rem);
    background: linear-gradient(135deg, #082f7d 0%, #0f3ea6 48%, #0f172a 100%);
    color: #ffffff;
    box-shadow: 0 1rem 2.25rem rgba(15, 23, 42, 0.16);
}

.compact-scheduling-brand {
    display: inline-flex;
    flex-direction: column;
    min-width: 14rem;
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.15;
}

.compact-scheduling-brand:hover,
.compact-scheduling-brand:focus {
    color: #ffffff;
}

.compact-scheduling-brand-kicker {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.compact-scheduling-user {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    margin-left: auto;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.08);
}

.compact-scheduling-user-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.compact-scheduling-user-name {
    color: #ffffff;
    font-weight: 700;
}

.compact-scheduling-user-meta {
    max-width: 34rem;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-scheduling-logout {
    flex: 0 0 auto;
}

.compact-scheduling-content {
    width: 100%;
    max-width: 1920px;
    padding-right: clamp(0.75rem, 1.8vw, 1.5rem);
    padding-left: clamp(0.75rem, 1.8vw, 1.5rem);
}

.hero-card,
.placeholder-card {
    background: var(--tp-card-bg);
}

.auth-card,
.auth-side-card {
    background: rgba(255, 255, 255, 0.96);
}

.admin-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.88rem;
    font-weight: 600;
}

.data-card {
    background: rgba(255, 255, 255, 0.96);
}

.scheduling-hero {
    align-items: center;
    gap: 1.25rem;
}

.scheduling-hero-copy {
    min-width: 18rem;
}

.scheduling-hero .h3 {
    color: #0f172a;
    font-size: clamp(1.8rem, 2.3vw, 2.35rem);
    letter-spacing: -0.035em;
}

.scheduling-hero-actions {
    justify-content: flex-end;
}

.scheduling-control-card {
    border: 1px solid #dbe5f0 !important;
    border-radius: 1.2rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 1rem 2.4rem rgba(15, 23, 42, 0.08);
}

.scheduling-control-card .card-body {
    padding: 0.85rem 1.05rem !important;
}

.scheduling-toolbar {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.8rem 1rem;
}

.scheduling-toolbar-form {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem;
}

.scheduling-toolbar-field {
    min-width: 0;
}

.scheduling-toolbar-field .form-label {
    margin-bottom: 0.25rem;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 600;
}

.scheduling-toolbar-branch {
    flex: 0 0 16rem;
    max-width: 18rem;
}

.scheduling-toolbar-date {
    flex: 0 0 14.5rem;
    max-width: 15rem;
}

.scheduling-date-control {
    display: flex;
    align-items: stretch;
    gap: 0.4rem;
}

.scheduling-date-control .form-control {
    width: 9.2rem;
    min-width: 0;
}

.scheduling-date-control .btn {
    white-space: nowrap;
}

.scheduling-control-center {
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
}

.scheduling-control-right {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 14.5rem;
    margin-left: auto;
}

.scheduling-toolbar-nav {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.scheduling-control-right .btn,
.scheduling-toolbar-nav .btn,
.scheduling-date-control .btn,
.scheduling-toolbar .form-control,
.scheduling-toolbar .form-select {
    min-height: 2.45rem;
    border-radius: 0.62rem;
}

.scheduling-control-right .metric-chip {
    min-height: 2.45rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.scheduling-create-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 12.4rem;
    min-height: 2.9rem;
    border-radius: 0.72rem;
    font-weight: 700;
    box-shadow: 0 0.9rem 1.75rem rgba(13, 110, 253, 0.28);
}

.js-timeline-toolbar-action {
    display: none;
}

html[data-scheduling-view-mode="timeline"] .js-timeline-toolbar-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.scheduling-nav-icon {
    width: 2.45rem;
    padding-right: 0;
    padding-left: 0;
    font-size: 1.25rem;
    line-height: 1;
}

.scheduling-view-switcher {
    display: inline-flex;
    overflow: hidden;
    padding: 0.1rem;
    border: 1px solid #d8e2ef;
    border-radius: 0.72rem;
    background: linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.scheduling-view-switcher .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: auto;
    min-height: 2.35rem;
    padding: 0.45rem 0.62rem;
    border: 0 !important;
    border-radius: 0.58rem !important;
    color: #475569;
    background: transparent;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: none !important;
}

.scheduling-view-switcher .btn:hover,
.scheduling-view-switcher .btn:focus {
    color: #0d6efd;
    background: rgba(255, 255, 255, 0.8);
}

.scheduling-view-switcher .btn.btn-primary,
html[data-scheduling-view-mode="group3"] .scheduling-view-switcher [data-scheduling-view="group3"],
html[data-scheduling-view-mode="timeline"] .scheduling-view-switcher [data-scheduling-view="timeline"] {
    color: #ffffff;
    background: linear-gradient(135deg, #0d6efd 0%, #0052cc 100%);
    box-shadow: 0 0.65rem 1.2rem rgba(13, 110, 253, 0.22) !important;
}

@media (max-width: 1180px) {
    .scheduling-toolbar-form {
        flex: 1 1 100%;
    }

    .scheduling-control-center {
        justify-content: flex-start;
    }

    .scheduling-control-right {
        justify-content: flex-start;
        margin-left: 0;
    }

}

@media (max-width: 767.98px) {
    .compact-scheduling-content {
        padding-right: 0.55rem;
        padding-left: 0.55rem;
    }

    .compact-scheduling-content > .row.g-4 {
        --bs-gutter-x: 1.1rem;
    }

    .scheduling-control-card .card-body,
    .scheduling-view-card > .card-body,
    .scheduling-side-panel .card-body {
        padding: 0.8rem !important;
    }

    .scheduling-toolbar-field,
    .scheduling-toolbar-branch,
    .scheduling-toolbar-date {
        flex: 1 1 100%;
        max-width: none;
    }

    .scheduling-date-control,
    .scheduling-toolbar-nav,
    .scheduling-control-right,
    .scheduling-view-switcher {
        width: 100%;
    }

    .scheduling-toolbar {
        gap: 0.7rem;
    }

    .scheduling-date-control {
        flex-wrap: wrap;
    }

    .scheduling-date-control .form-control {
        width: auto;
        flex: 1 1 9.5rem;
    }

    .scheduling-hero-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .scheduling-hero-actions .metric-chip,
    .scheduling-hero-actions .badge {
        flex: 1 1 auto;
        justify-content: center;
    }

    .scheduling-toolbar-nav .btn,
    .scheduling-control-right .btn,
    .scheduling-date-control .btn,
    .scheduling-create-primary {
        flex: 1 1 auto;
    }

    .scheduling-view-switcher {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .scheduling-view-switcher [data-scheduling-view="group3"],
    html[data-scheduling-view-mode] .scheduling-view-card [data-scheduling-panel="group3"] {
        display: none !important;
    }

    .scheduling-view-switcher .btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .scheduling-line-controls {
        gap: 0.45rem;
        margin-bottom: 0.65rem;
    }

    .scheduling-line-tabs {
        padding-bottom: 0.15rem;
    }

    .scheduling-line-tab {
        width: auto;
        min-width: 7.7rem;
        min-height: 3rem;
        padding: 0.5rem 0.7rem;
    }

    .scheduling-line-tab small {
        white-space: nowrap;
    }

    .calendar-line-compact .calendar-heading h3 {
        font-size: 0.96rem;
    }

    .calendar-line-compact .calendar-heading p {
        font-size: 0.8rem;
    }

    .scheduling-calendar-shell {
        padding: 0.35rem;
    }

    html[data-scheduling-view-mode="calendar"]
        .scheduling-view-card
        [data-scheduling-panel="calendar"]
        .scheduling-calendar-shell
        > #schedulingCalendar {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .scheduling-calendar-shell .fc-col-header-cell-cushion {
        padding: 0.65rem 0.25rem;
        font-size: 0.82rem;
    }

    .scheduling-calendar-shell .fc-timegrid-axis,
    .scheduling-calendar-shell .fc-timegrid-slot-label {
        font-size: 0.76rem;
    }

    .scheduling-calendar-shell .fc-v-event .fc-event-main {
        padding: 0.22rem 0.28rem;
    }

    .scheduling-timeline-shell {
        padding: 0.7rem;
    }

    .scheduling-timeline-header {
        gap: 0.7rem;
        padding: 0.1rem 0 0.8rem;
    }

    .scheduling-timeline-meta {
        width: 100%;
        justify-content: space-between;
    }

    .scheduling-timeline-toggle {
        flex-wrap: wrap;
        width: 100%;
        justify-content: space-between;
        border-radius: 0.85rem;
    }

    .scheduling-timeline-day-header,
    .scheduling-timeline-day-body {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .scheduling-timeline-day-body {
        gap: 0.7rem;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .scheduling-timeline-row {
        padding: 0.48rem 0.58rem;
    }

    .scheduling-timeline-vehicle,
    .scheduling-timeline-customer {
        font-size: 0.84rem;
    }

    .scheduling-timeline-hints {
        font-size: 0.74rem;
    }
}

.admin-form-accordion .accordion-item {
    border-radius: 0.75rem;
    overflow: hidden;
}

.admin-form-accordion .accordion-button {
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: none;
}

.admin-form-accordion .accordion-button:not(.collapsed) {
    background: rgba(248, 250, 252, 0.98);
    color: #0f172a;
    box-shadow: inset 0 -1px 0 var(--tp-border-color);
}

.admin-form-accordion .accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.admin-form-accordion .accordion-button::after {
    margin-left: 0;
}

.admin-form-accordion .accordion-subtitle {
    margin-left: auto;
    margin-right: 0.75rem;
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 400;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.table-actions form {
    margin: 0;
}

.vehicle-color-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.vehicle-color-swatch {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 999px;
    vertical-align: middle;
}

.supported-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.supported-vehicle-option {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    min-height: 4.25rem;
    padding: 0.85rem;
    border: 1px solid var(--tp-border-color);
    border-radius: 0.9rem;
    background: rgba(248, 250, 252, 0.92);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.supported-vehicle-option:hover,
.supported-vehicle-option:focus-within {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: 0 0.5rem 1.5rem rgba(37, 99, 235, 0.08);
}

.supported-vehicle-option-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.supported-vehicle-option-title {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: #0f172a;
}

.supported-vehicle-option-meta {
    color: #64748b;
    font-size: 0.9rem;
}

.calendar-line-compact,
.scheduling-line-controls {
    display: grid;
    gap: 0.28rem;
    margin: 0 0 0.5rem;
}

html[data-scheduling-view-mode="calendar"] .scheduling-view-card > .card-body {
    padding: 0.55rem 0.65rem 0.75rem !important;
}

html[data-scheduling-view-mode="calendar"] .scheduling-view-card {
    overflow: hidden;
}

.scheduling-line-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.scheduling-line-tab {
    display: inline-flex;
    flex-direction: column;
    flex: 0 0 auto;
    justify-content: center;
    width: clamp(8.1rem, 9vw, 9.4rem);
    min-height: 3.45rem;
    padding: 0.44rem 0.7rem;
    border: 1px solid #d8e2ef;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.68);
    color: #1e293b;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.scheduling-line-tab:first-child {
    border-top-left-radius: 0.52rem;
    border-bottom-left-radius: 0.52rem;
}

.scheduling-line-tab:last-child {
    border-top-right-radius: 0.52rem;
    border-bottom-right-radius: 0.52rem;
}

.scheduling-line-tab + .scheduling-line-tab {
    margin-left: -1px;
}

.scheduling-line-tab span {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.12;
    white-space: nowrap;
}

.scheduling-line-tab small {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.2;
}

.scheduling-line-tab:hover,
.scheduling-line-tab:focus {
    border-color: #93c5fd;
    background: rgba(239, 246, 255, 0.86);
    color: #0d6efd;
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.22);
    transform: none;
}

.scheduling-line-tab.is-active {
    border-color: #0d6efd;
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.16), rgba(13, 110, 253, 0.08));
    color: #0d6efd;
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.14), 0 0.35rem 0.75rem rgba(13, 110, 253, 0.12);
    z-index: 1;
}

.scheduling-line-tab.is-active small {
    color: #1d4ed8;
}

.calendar-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.calendar-line-compact .calendar-heading {
    margin: 0;
}

.calendar-line-compact .calendar-heading h3 {
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.1;
    margin-bottom: 0.08rem !important;
}

.calendar-line-compact .calendar-heading p {
    font-size: 0.86rem;
    line-height: 1.18;
}

html[data-scheduling-view-mode="group3"] .calendar-only-heading,
html[data-scheduling-view-mode="timeline"] .calendar-only-heading {
    display: none !important;
}

.scheduling-calendar-shell {
    min-height: 36rem;
    padding: 0.55rem;
    border: 1px solid #dbe5f0;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
    overflow-x: hidden;
}

.scheduling-calendar-shell.is-readonly {
    border-color: #f59e0b;
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.72), #ffffff 7rem);
}

.scheduling-calendar-shell .fc {
    min-width: 760px;
}

.scheduling-calendar-shell .fc-theme-standard td,
.scheduling-calendar-shell .fc-theme-standard th,
.scheduling-calendar-shell .fc-scrollgrid {
    border-color: #e8eef6;
}

.scheduling-calendar-shell .fc-scrollgrid {
    border-radius: 0.85rem;
    overflow: hidden;
}

.scheduling-calendar-shell .fc-col-header-cell {
    background: #fbfdff;
}

.scheduling-calendar-shell .fc-col-header-cell-cushion {
    display: block;
    padding: 0.8rem 0.4rem;
    color: #111827;
    font-weight: 700;
    text-decoration: none;
}

.scheduling-calendar-shell .fc-timegrid-axis,
.scheduling-calendar-shell .fc-timegrid-slot-label {
    color: #64748b;
    font-weight: 500;
}

.scheduling-calendar-shell .fc-timegrid-col.fc-day-today {
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.08), rgba(13, 110, 253, 0.025));
}

.scheduling-calendar-shell .fc-timegrid-now-indicator-line {
    border-color: #ef4444;
}

.scheduling-calendar-shell .fc-event {
    border: 0 !important;
    border-radius: 0.6rem;
    box-shadow: 0 0.55rem 1.1rem rgba(37, 99, 235, 0.2);
    overflow: hidden;
}

.scheduling-calendar-shell .fc-v-event .fc-event-main {
    padding: 0.25rem 0.35rem;
    overflow: hidden;
}

.scheduling-calendar-shell .fc-v-event .fc-event-main-frame {
    min-width: 0;
    overflow: hidden;
}

.scheduling-calendar-event {
    width: 100%;
    min-width: 0;
    color: inherit;
    overflow: hidden;
}

.scheduling-calendar-shell .fc-event.calendar-booking-block {
    border: 1px dashed #94a3b8 !important;
    background: repeating-linear-gradient(
        -45deg,
        rgba(241, 245, 249, 0.98),
        rgba(241, 245, 249, 0.98) 7px,
        rgba(226, 232, 240, 0.98) 7px,
        rgba(226, 232, 240, 0.98) 14px
    ) !important;
    color: #374151 !important;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.96;
}

.scheduling-calendar-shell .fc-v-event.calendar-booking-block .fc-event-main {
    padding: 0.2rem 0.3rem;
    color: #374151 !important;
}

.calendar-booking-block-content {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 0.05rem;
    overflow: hidden;
    font-size: 0.7rem;
    line-height: 1.05;
}

.calendar-booking-block-time,
.calendar-booking-block-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-booking-block-time {
    font-weight: 800;
}

.calendar-booking-block-label {
    font-weight: 650;
}

.calendar-booking-block-content.is-compact {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    font-size: 0.64rem;
}

.calendar-booking-block-content.is-compact .calendar-booking-block-label {
    flex: 1 1 auto;
}

.scheduling-calendar-shell .fc-event.calendar-cancelled-hold {
    border: 1px dashed #94a3b8 !important;
    background: repeating-linear-gradient(
        -45deg,
        rgba(248, 250, 252, 0.98),
        rgba(248, 250, 252, 0.98) 7px,
        rgba(226, 232, 240, 0.98) 7px,
        rgba(226, 232, 240, 0.98) 14px
    ) !important;
    color: #334155 !important;
    box-shadow: none;
    cursor: help;
}

.scheduling-calendar-shell .fc-v-event.calendar-cancelled-hold .fc-event-main {
    padding: 0.2rem 0.3rem;
    color: #334155 !important;
}

.calendar-temporary-hold-content {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 0.05rem;
    overflow: hidden;
    font-size: 0.68rem;
    line-height: 1.05;
}

.calendar-temporary-hold-time,
.calendar-temporary-hold-label {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-temporary-hold-time {
    font-weight: 800;
}

.calendar-temporary-hold-label {
    font-weight: 650;
}

.calendar-temporary-hold-content.is-compact {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.25rem;
    font-size: 0.63rem;
}

html[data-scheduling-view-mode="calendar"] [data-scheduling-panel="group3"] {
    display: none !important;
}

html[data-scheduling-view-mode="calendar"] [data-scheduling-panel="timeline"] {
    display: none !important;
}

html[data-scheduling-view-mode="group3"] [data-scheduling-panel="calendar"] {
    display: none !important;
}

html[data-scheduling-view-mode="group3"] [data-scheduling-panel="timeline"] {
    display: none !important;
}

html[data-scheduling-view-mode="group3"] [data-scheduling-panel="group3"] {
    display: block !important;
}

html[data-scheduling-view-mode="timeline"] [data-scheduling-panel="calendar"],
html[data-scheduling-view-mode="timeline"] [data-scheduling-panel="group3"] {
    display: none !important;
}

html[data-scheduling-view-mode="timeline"] [data-scheduling-panel="timeline"] {
    display: block !important;
}

html[data-scheduling-view-mode="group3"] .scheduling-view-switcher [data-scheduling-view="calendar"] {
    color: #475569;
    background: transparent;
}

html[data-scheduling-view-mode="group3"] .scheduling-view-switcher [data-scheduling-view="timeline"],
html[data-scheduling-view-mode="timeline"] .scheduling-view-switcher [data-scheduling-view="calendar"],
html[data-scheduling-view-mode="timeline"] .scheduling-view-switcher [data-scheduling-view="group3"] {
    color: #475569;
    background: transparent;
}

html[data-scheduling-view-mode="group3"] .scheduling-view-switcher [data-scheduling-view="group3"] {
    color: #fff;
    background: linear-gradient(135deg, #0d6efd 0%, #0052cc 100%);
}

html[data-scheduling-view-mode="timeline"] .scheduling-view-switcher [data-scheduling-view="timeline"] {
    color: #fff;
    background: linear-gradient(135deg, #0d6efd 0%, #0052cc 100%);
}

.scheduling-group-shell {
    --group-card-inset: 0.45rem;
    --group-day-header-height: 3.35rem;
    --grouped-slot-height: 43.5px;
    --group-title-height: 2.75rem;
    min-height: 36rem;
    padding: 1rem;
    border: 1px solid #dbe5f0;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
    overflow-x: auto;
}

.scheduling-group-shell.is-readonly {
    border-color: #f59e0b;
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.72), #ffffff 7rem);
}

.scheduling-group-grid {
    display: grid;
    grid-template-columns: 4.5rem repeat(auto-fit, minmax(28rem, 1fr));
    min-width: 860px;
    gap: 0.85rem;
}

.scheduling-group-time-column,
.scheduling-group-line-section {
    overflow: hidden;
    border: 1px solid #dbe5f0;
    border-radius: 0.85rem;
    background: #ffffff;
}

.scheduling-group-time-head,
.scheduling-group-line-title {
    display: flex;
    box-sizing: border-box;
    height: var(--group-title-height);
    align-items: center;
    justify-content: center;
    padding: 0.65rem;
    border-bottom: 1px solid #dbe5f0;
    background: #fbfdff;
    color: #111827;
    font-weight: 700;
}

.scheduling-group-time-head {
    height: calc(var(--group-title-height) + var(--group-day-header-height));
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
}

.scheduling-group-time-body {
    display: grid;
    grid-auto-rows: var(--grouped-slot-height);
    background: #fbfdff;
    overflow: visible;
}

.scheduling-group-time-slot {
    display: flex;
    box-sizing: border-box;
    align-items: flex-start;
    justify-content: flex-end;
    border-bottom: 1px solid #e8eef6;
    padding: 0.36rem 0.55rem 0 0.25rem;
}

.scheduling-group-time-label {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.1;
    text-align: right;
    white-space: nowrap;
}

.scheduling-group-days-header,
.scheduling-group-days-body {
    display: grid;
    grid-template-columns: repeat(3, minmax(8.5rem, 1fr));
}

.scheduling-group-day-head {
    display: grid;
    box-sizing: border-box;
    gap: 0.1rem;
    height: var(--group-day-header-height);
    place-items: center;
    padding: 0.58rem 0.45rem;
    border-bottom: 1px solid #e8eef6;
    border-left: 1px solid #e8eef6;
    background: #fbfdff;
    color: #0f172a;
    text-align: center;
}

.scheduling-group-day-head:first-child,
.scheduling-group-day-body:first-child {
    border-left: 0;
}

.scheduling-group-day-head strong {
    color: #111827;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.15;
}

.scheduling-group-day-head span {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 500;
}

.scheduling-group-day-body {
    position: relative;
    min-height: 30rem;
    border-left: 1px solid #e8eef6;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0 calc(var(--grouped-slot-height) - 1px),
            #e8eef6 calc(var(--grouped-slot-height) - 1px) var(--grouped-slot-height)
        ),
        #ffffff;
    cursor: crosshair;
    overflow: visible;
}

.scheduling-group-shell.is-readonly .scheduling-group-day-body {
    cursor: default;
}

.scheduling-group-event {
    position: absolute;
    left: var(--group-card-inset);
    right: var(--group-card-inset);
    z-index: 2;
    box-sizing: border-box;
    display: grid;
    align-content: start;
    gap: 0;
    overflow: hidden;
    padding: 0.3rem 0.38rem;
    border: 0;
    border-radius: 0.6rem;
    text-align: left;
    box-shadow: 0 0.55rem 1.1rem rgba(37, 99, 235, 0.2);
}

.scheduling-group-event,
.scheduling-group-event * {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

.scheduling-group-event.scheduling-event-card {
    width: auto;
    max-width: none;
}

.scheduling-group-event.is-compact-group-event {
    display: flex;
    align-items: center;
    padding: 0.12rem 0.3rem;
}

.scheduling-group-event.is-regular-group-event {
    padding: 0.25rem 0.35rem;
}

.scheduling-group-event.is-temporary-hold {
    border: 1px dashed #94a3b8;
    background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 7px, #e2e8f0 7px, #e2e8f0 14px) !important;
    color: #334155 !important;
    box-shadow: none;
    cursor: help;
}

.scheduling-group-event.is-temporary-hold .calendar-temporary-hold-content {
    width: 100%;
}

.scheduling-event-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    line-height: 1.1;
}

.scheduling-event-card.is-normal {
    display: grid;
    gap: 0.05rem;
}

.scheduling-event-card.is-short {
    display: block;
}

.scheduling-group-event.scheduling-event-card.is-short.is-compact-group-event {
    display: flex;
    align-items: center;
}

.scheduling-event-line {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scheduling-event-line-inline,
.scheduling-event-details {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.scheduling-event-line-inline {
    width: 100%;
}

.scheduling-event-time {
    flex: 0 0 auto;
    font-size: 0.74rem;
    font-weight: 850;
}

.scheduling-event-vehicle {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 0.74rem;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scheduling-event-customer {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 0.74rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scheduling-event-separator {
    flex: 0 0 auto;
    overflow: hidden;
    white-space: pre;
}

.scheduling-event-icon {
    flex: 0 0 auto;
    max-width: 1rem;
    overflow: hidden;
}

.scheduling-group-event .scheduling-event-time,
.scheduling-group-event .scheduling-event-vehicle,
.scheduling-group-event .scheduling-event-customer {
    font-size: 0.68rem;
    line-height: 1.05;
}

.scheduling-group-event.is-compact-group-event .scheduling-event-line-inline {
    align-items: center;
    line-height: 1;
}

.scheduling-group-event.is-compact-group-event .scheduling-event-time,
.scheduling-group-event.is-compact-group-event .scheduling-event-vehicle,
.scheduling-group-event.is-compact-group-event .scheduling-event-customer,
.scheduling-group-event.is-compact-group-event .scheduling-event-separator {
    font-size: 0.62rem;
    line-height: 1;
}

.scheduling-group-event.is-compact-group-event .scheduling-event-time {
    font-weight: 850;
}

.scheduling-group-event.is-compact-group-event .scheduling-event-vehicle {
    flex: 0 1 auto;
}

.scheduling-group-event.is-compact-group-event .scheduling-event-customer {
    flex: 1 1 3rem;
}

.scheduling-group-event.is-regular-group-event .scheduling-event-line {
    line-height: 1.05;
}

.scheduling-calendar-event .scheduling-event-time,
.scheduling-calendar-event .scheduling-event-vehicle,
.scheduling-calendar-event .scheduling-event-customer {
    font-size: 0.76rem;
}

.scheduling-group-event strong {
    overflow: hidden;
    font-size: 0.74rem;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scheduling-timeline-shell {
    min-height: 36rem;
    padding: 1rem;
    border: 1px solid #dbe5f0;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.scheduling-timeline-shell.is-readonly {
    border-color: #f59e0b;
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.72), #ffffff 7rem);
}

.scheduling-timeline-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.2rem 0.15rem 1rem;
    border-bottom: 1px solid #e8eef6;
}

.scheduling-timeline-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
}

.scheduling-timeline-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.35rem;
    margin: 0;
    padding: 0.35rem 0.75rem;
    border: 1px solid #dbe5f0;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-weight: 600;
}

.scheduling-timeline-toggle .form-check-input {
    margin: 0;
}

.scheduling-timeline-days {
    display: grid;
    gap: 1rem;
    padding-top: 1rem;
}

.scheduling-timeline-day {
    overflow: hidden;
    border: 1px solid #dbe5f0;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 0.45rem 1.1rem rgba(15, 23, 42, 0.05);
}

.scheduling-timeline-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e8eef6;
    background: #fbfdff;
}

.scheduling-timeline-day-body {
    display: grid;
    gap: 0.9rem;
    padding: 0.95rem;
}

.scheduling-timeline-line {
    display: grid;
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.85rem;
}

.scheduling-timeline-line-title {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 0.35rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: right;
}

.scheduling-timeline-line-body {
    position: relative;
    display: grid;
    gap: 0.45rem;
    min-width: 0;
    padding-left: 1.1rem;
}

.scheduling-timeline-line-body::before {
    position: absolute;
    top: 0.25rem;
    bottom: 0.25rem;
    left: 0.34rem;
    width: 1px;
    background: #dbe5f0;
    content: "";
}

.scheduling-timeline-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.7rem 5.9rem minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-width: 0;
    padding: 0.55rem 0.7rem;
    border-radius: 0.85rem;
    text-align: left;
}

.scheduling-timeline-appointment {
    border: 1px solid #dbeafe;
    background: #f8fbff;
    color: #0f172a;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.scheduling-timeline-appointment:hover {
    border-color: #93c5fd;
    box-shadow: 0 0.55rem 1rem rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.scheduling-timeline-appointment.is-cancelled {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

.scheduling-timeline-appointment.is-temporary-hold {
    border-style: dashed;
    border-color: #94a3b8;
    background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 8px, #e2e8f0 8px, #e2e8f0 16px);
    color: #475569;
    cursor: help;
}

.scheduling-timeline-appointment.is-temporary-hold:hover {
    border-color: #64748b;
    box-shadow: none;
    transform: none;
}

.scheduling-timeline-free {
    border: 1px dashed #86efac;
    background: #f0fdf4;
    color: #14532d;
}

.scheduling-timeline-row[data-free-state="past"] {
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #64748b;
}

.scheduling-timeline-row[data-free-state="past"] .scheduling-timeline-dot {
    background: #94a3b8;
}

.scheduling-timeline-row[data-free-state="past"] .scheduling-timeline-time,
.scheduling-timeline-row[data-free-state="past"] .scheduling-timeline-main,
.scheduling-timeline-row[data-free-state="past"] .scheduling-timeline-hints {
    color: #64748b;
}

.scheduling-timeline-dot {
    display: block;
    width: 0.62rem;
    height: 0.62rem;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.24);
}

.scheduling-timeline-time {
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

.scheduling-timeline-body,
.scheduling-timeline-main,
.scheduling-timeline-customer,
.scheduling-timeline-vehicle,
.scheduling-timeline-hints {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scheduling-timeline-body {
    display: grid;
    gap: 0.12rem;
}

.scheduling-timeline-main {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.scheduling-timeline-vehicle {
    flex: 0 0 auto;
    color: #0d6efd;
    font-size: 0.86rem;
    font-weight: 850;
}

.scheduling-timeline-customer {
    flex: 1 1 auto;
    font-size: 0.92rem;
    font-weight: 750;
    white-space: nowrap;
}

.scheduling-timeline-hints {
    display: block;
    color: #166534;
    font-size: 0.78rem;
    white-space: nowrap;
}

.scheduling-timeline-action {
    white-space: nowrap;
}

.scheduling-timeline-chevron {
    color: #94a3b8;
    font-size: 1.35rem;
    line-height: 1;
}

.scheduling-timeline-empty-day {
    padding: 0.8rem 1rem;
    border: 1px dashed #dbe5f0;
    border-radius: 0.85rem;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
}

@media (max-width: 900px) {
    .scheduling-timeline-line {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .scheduling-timeline-line-title {
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 680px) {
    .scheduling-timeline-row {
        grid-template-columns: 0.7rem minmax(0, 1fr);
        gap: 0.5rem;
    }

    .scheduling-timeline-time,
    .scheduling-timeline-body,
    .scheduling-timeline-row .badge,
    .scheduling-timeline-action,
    .scheduling-timeline-chevron {
        grid-column: 2;
    }

    .scheduling-timeline-time {
        margin-bottom: -0.15rem;
    }
}

.scheduling-side-panel {
    position: sticky;
    top: 1rem;
    border: 1px solid #dbe5f0 !important;
    border-radius: 1.1rem;
    background: #fbfdff;
}

.scheduling-side-panel .card-body {
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .scheduling-side-panel {
        position: static;
        top: auto;
    }
}

.scheduling-panel-date-form .form-label {
    margin-bottom: 0.35rem;
    color: #334155;
    font-size: 0.86rem;
}

.scheduling-panel-date-form .input-group {
    gap: 0.45rem;
}

.scheduling-panel-date-form .input-group > .form-control,
.scheduling-panel-date-form .input-group > .btn {
    border-radius: 0.7rem !important;
}

.scheduling-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.scheduling-stat-card,
.scheduling-side-section,
.appointment-quick-card {
    border: 1px solid var(--tp-border-color);
    border-radius: 1rem;
    background: #ffffff;
}

.scheduling-stat-card {
    padding: 0.75rem 0.85rem;
    border-color: #e2e8f0;
    border-radius: 0.8rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 0.45rem 1.1rem rgba(15, 23, 42, 0.04);
}

.scheduling-stat-card span {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.scheduling-stat-card strong {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.55rem;
    line-height: 1;
}

.scheduling-side-section {
    padding: 0.85rem 0.95rem;
    border-color: #e2e8f0;
    border-radius: 0.85rem;
    background: #ffffff;
    box-shadow: 0 0.45rem 1rem rgba(15, 23, 42, 0.035);
}

.scheduling-capacity-card {
    position: relative;
    overflow: visible;
}

.scheduling-panel-menu {
    position: relative;
}

.scheduling-panel-gear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 0.65rem;
    color: #0f3ea6;
    background: #f8fbff;
}

.scheduling-panel-dropdown {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    z-index: 20;
    display: none;
    width: 14rem;
    padding: 0.75rem;
    border: 1px solid #d8e2ef;
    border-radius: 0.9rem;
    background: #ffffff;
    box-shadow: 0 1rem 2.4rem rgba(15, 23, 42, 0.16);
}

.scheduling-panel-dropdown.is-open {
    display: block;
}

.scheduling-panel-check {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0;
    color: #1e293b;
    cursor: pointer;
}

.scheduling-panel-check .form-check-input {
    margin: 0;
}

.scheduling-panel-check strong {
    display: block;
    font-size: 0.9rem;
    line-height: 1.1;
}

.scheduling-panel-check small {
    color: #64748b;
    font-size: 0.76rem;
}

.scheduling-capacity-list {
    display: grid;
    gap: 0.45rem;
}

.scheduling-capacity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #334155;
    font-size: 0.92rem;
}

.scheduling-capacity-row span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.scheduling-capacity-row strong {
    color: #0f172a;
    font-size: 0.9rem;
    white-space: nowrap;
}

.scheduling-panel-help {
    color: #64748b;
    font-size: 0.78rem;
}

.scheduling-mini-list {
    display: grid;
    gap: 0.35rem;
}

.scheduling-mini-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    color: #0f172a;
    text-align: left;
}

.scheduling-mini-item:last-child {
    border-bottom: 0;
}

.scheduling-mini-item span {
    min-width: 0;
    color: #334155;
    font-size: 0.86rem;
}

.scheduling-mini-item strong {
    flex: 0 0 auto;
    color: #0f3ea6;
    font-size: 0.86rem;
}

.scheduling-mini-item:disabled {
    cursor: default;
    opacity: 0.72;
}

.scheduling-first-free-compact {
    color: #0f172a;
}

.scheduling-first-free-button:not(:disabled) {
    cursor: pointer;
}

.scheduling-first-free-button:not(:disabled):hover,
.scheduling-first-free-button:not(:disabled):focus {
    color: #0f3ea6;
}

.scheduling-dot {
    display: inline-block;
    width: 0.65rem;
    height: 0.65rem;
    margin-right: 0.45rem;
    border-radius: 999px;
    background: #2563eb;
}

.appointment-quick-card {
    padding: 1rem;
    background: linear-gradient(180deg, #f8fbff, #ffffff);
    transition: border-color 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}

.appointment-quick-card.is-muted {
    border-style: dashed;
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.appointment-quick-card.is-muted .form-label,
.appointment-quick-card.is-muted #quickSlotEmptyText {
    color: #64748b;
}

.appointment-quick-summary {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem;
    border: 1px dashed #bfdbfe;
    border-radius: 0.85rem;
    background: #eff6ff;
}

.appointment-quick-summary.is-muted {
    border-color: #e2e8f0;
    background: #f8fafc;
}

.appointment-quick-summary strong {
    color: #0f172a;
}

.appointment-quick-summary span {
    color: #64748b;
    font-size: 0.92rem;
}

.appointment-quick-summary.is-selected {
    border-color: #86efac;
    background: #f0fdf4;
}

.appointment-quick-summary.is-warning {
    border-color: #fcd34d;
    background: #fffbeb;
}

.appointment-quick-summary.is-warning span {
    color: #b45309;
}

.appointment-status-text {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.appointment-status-text::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #94a3b8;
}

.appointment-status-text.is-muted {
    color: #64748b;
}

.appointment-status-text.is-success {
    color: #047857;
}

.appointment-status-text.is-success::before {
    background: #10b981;
}

.appointment-status-text.is-warning {
    color: #b45309;
}

.appointment-status-text.is-warning::before {
    background: #f59e0b;
}

.appointment-modal .modal-content,
.event-details-modal .modal-content,
.event-search-modal .modal-content,
.event-edit-modal .modal-content,
.event-cancel-modal .modal-content {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 1.25rem;
}

.appointment-modal .modal-content > form,
.event-edit-modal .modal-content > form,
.event-cancel-modal .modal-content > form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: 90vh;
    overflow: hidden;
}

.appointment-modal .modal-body,
.event-details-modal .modal-body,
.event-search-modal .modal-body,
.event-edit-modal .modal-body,
.event-cancel-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.appointment-modal-header {
    flex: 0 0 auto;
    align-items: flex-start;
    padding: 1.35rem 1.5rem 1rem;
    border-bottom: 1px solid var(--tp-border-color);
    background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.appointment-modal-kicker {
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.appointment-section {
    padding: 1.1rem;
    border: 1px solid var(--tp-border-color);
    border-radius: 1rem;
    background: #ffffff;
}

.appointment-trailer-controls {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid #fed7aa;
    border-radius: 1rem;
    background: #fff7ed;
}

.appointment-preview-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.85rem;
    padding: 1rem;
    border: 1px dashed #bfdbfe;
    border-radius: 1rem;
    background: #eff6ff;
}

.appointment-modal .appointment-preview-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.85rem;
}

.appointment-modal .appointment-preview-card > div {
    min-width: 0;
}

.appointment-modal .appointment-preview-card .detail-list-label {
    font-size: 0.68rem;
    line-height: 1.1;
}

.appointment-modal .appointment-preview-card .detail-list-value {
    font-size: 0.92rem;
    line-height: 1.2;
}

.appointment-modal .appointment-preview-status {
    grid-column: 1 / -1;
}

.appointment-gap-warning {
    margin-top: 0.35rem;
    padding: 0.4rem 0.55rem;
    border: 1px solid #fde68a;
    border-radius: 0.65rem;
    color: #92400e;
    background: #fffbeb;
    font-size: 0.82rem;
    line-height: 1.25;
}

.appointment-modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    flex: 0 0 auto;
    border-top: 1px solid var(--tp-border-color);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
}

.event-details-modal-header {
    flex: 0 0 auto;
    align-items: flex-start;
    padding: 1.35rem 1.5rem 1rem;
    border-bottom: 1px solid var(--tp-border-color);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
}

.event-search-results {
    display: grid;
    gap: 0.75rem;
    max-height: 34rem;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.event-search-result {
    padding: 0.85rem 0.95rem;
    border: 1px solid #dbe5f0;
    border-radius: 0.95rem;
    background: #ffffff;
    box-shadow: 0 0.35rem 0.9rem rgba(15, 23, 42, 0.04);
}

.event-search-result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.event-search-result-main {
    min-width: 0;
}

.event-search-result-title,
.event-search-result-meta,
.event-search-result-note {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-search-result-title {
    color: #0f172a;
    font-weight: 800;
    white-space: nowrap;
}

.event-search-result-meta {
    color: #475569;
    font-size: 0.9rem;
}

.event-search-result-note {
    color: #64748b;
    font-size: 0.86rem;
}

.event-search-result-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.45rem;
}

.event-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.event-details-section {
    padding: 1rem;
    border: 1px solid var(--tp-border-color);
    border-radius: 1rem;
    background: #ffffff;
}

.event-details-loading {
    padding: 2rem;
    border: 1px dashed var(--tp-border-color);
    border-radius: 1rem;
    color: #64748b;
    text-align: center;
    background: #f8fafc;
}

.event-details-modal-footer {
    flex: 0 0 auto;
    border-top: 1px solid var(--tp-border-color);
    background: #ffffff;
}

.event-details-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 767.98px) {
    .appointment-modal .modal-dialog,
    .event-details-modal .modal-dialog,
    .event-search-modal .modal-dialog,
    .event-edit-modal .modal-dialog,
    .event-cancel-modal .modal-dialog {
        margin: 0.5rem;
    }

    .appointment-modal .modal-content,
    .event-details-modal .modal-content,
    .event-search-modal .modal-content,
    .event-edit-modal .modal-content,
    .event-cancel-modal .modal-content,
    .appointment-modal .modal-content > form,
    .event-edit-modal .modal-content > form,
    .event-cancel-modal .modal-content > form {
        max-height: calc(100dvh - 1rem);
    }

    .appointment-modal-header,
    .event-details-modal-header {
        padding: 1rem 1rem 0.8rem;
    }

    .appointment-modal .modal-body,
    .event-details-modal .modal-body,
    .event-search-modal .modal-body,
    .event-edit-modal .modal-body,
    .event-cancel-modal .modal-body {
        padding: 0.9rem;
    }

    .appointment-modal .appointment-preview-card,
    .event-details-grid {
        grid-template-columns: 1fr;
    }

    .appointment-modal-footer,
    .event-details-modal-footer,
    .event-search-modal .modal-footer,
    .event-edit-modal .modal-footer,
    .event-cancel-modal .modal-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding: 0.85rem 0.9rem;
    }

    .appointment-modal-footer .btn,
    .event-details-modal-footer .btn,
    .event-search-modal .modal-footer .btn,
    .event-edit-modal .modal-footer .btn,
    .event-cancel-modal .modal-footer .btn {
        width: 100%;
        min-height: 2.7rem;
        margin: 0;
    }
}

#eventDetailsDescription {
    white-space: pre-line;
}

.empty-state-card {
    border: 1px dashed var(--tp-border-color);
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.9);
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.detail-list-label {
    display: block;
    margin-bottom: 0.25rem;
    color: #64748b;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-list-value {
    font-weight: 600;
    color: #0f172a;
}

.form-card-sticky {
    position: sticky;
    top: 1rem;
}

.table-link {
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
}

.table-link:hover,
.table-link:focus {
    color: #1d4ed8;
}

.auth-page-grid {
    min-height: calc(100vh - 8rem);
}

.auth-login-column {
    width: 100%;
    max-width: 32rem;
}

.auth-kicker {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2563eb;
}

.auth-side-list {
    margin: 0;
    padding-left: 1rem;
    color: #475569;
}

.auth-side-list li + li {
    margin-top: 0.65rem;
}

.placeholder-badge {
    font-size: 0.82rem;
}

.public-shell .container {
    max-width: 1100px;
}

@media (max-width: 991.98px) {
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
    }

    .app-sidebar-inner {
        position: static;
        min-height: auto;
    }

    .form-card-sticky {
        position: static;
    }

    .compact-scheduling-topbar {
        position: static;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .compact-scheduling-brand {
        min-width: min(100%, 18rem);
    }

    .compact-scheduling-user {
        order: 3;
        width: 100%;
        margin-left: 0;
    }

    .compact-scheduling-user-meta {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .compact-scheduling-topbar {
        gap: 0.75rem;
        padding: 0.85rem;
    }

    .compact-scheduling-brand,
    .compact-scheduling-logout {
        width: 100%;
    }

    .compact-scheduling-logout {
        justify-content: center;
    }

    .admin-form-accordion .accordion-subtitle {
        display: none;
    }
}

/* Phase 20: read-only admin dashboard. */
.dashboard-page-header {
    align-items: flex-start;
}

.dashboard-stat-card {
    --dashboard-accent: #2563eb;
    position: relative;
    min-height: 8rem;
    padding: 1.15rem 1.2rem 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 0.8rem 1.8rem rgba(15, 23, 42, 0.06);
}

.dashboard-stat-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.28rem;
    background: var(--dashboard-accent);
    content: '';
}

.dashboard-stat-card::after {
    position: absolute;
    top: -2rem;
    right: -1.6rem;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--dashboard-accent) 10%, transparent);
    content: '';
}

.dashboard-stat-card strong,
.dashboard-stat-card span,
.dashboard-stat-card small {
    position: relative;
    z-index: 1;
    display: block;
}

.dashboard-stat-label {
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.dashboard-stat-card strong {
    margin: 0.28rem 0 0.2rem;
    color: #0f172a;
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    line-height: 1;
}

.dashboard-stat-card small {
    color: #64748b;
    line-height: 1.35;
}

.dashboard-stat-primary { --dashboard-accent: #2563eb; }
.dashboard-stat-warning { --dashboard-accent: #f59e0b; }
.dashboard-stat-success { --dashboard-accent: #16a34a; }
.dashboard-stat-danger { --dashboard-accent: #ef4444; }
.dashboard-stat-indigo { --dashboard-accent: #4f46e5; }
.dashboard-stat-cyan { --dashboard-accent: #0891b2; }
.dashboard-stat-slate { --dashboard-accent: #475569; }
.dashboard-stat-orange { --dashboard-accent: #f97316; }

.dashboard-section-card {
    overflow: hidden;
}

.dashboard-table {
    min-width: 680px;
}

.dashboard-table thead th {
    border-bottom-color: #dbe5f0;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-table tbody td {
    border-color: #edf2f7;
    font-size: 0.9rem;
}

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.dashboard-quick-link {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem;
    border: 1px solid #dbe5f0;
    border-radius: 0.85rem;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    color: #0f172a;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dashboard-quick-link span {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.dashboard-quick-link:hover,
.dashboard-quick-link:focus {
    border-color: #93c5fd;
    color: #0d6efd;
    box-shadow: 0 0.65rem 1.3rem rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.dashboard-seven-day-list {
    display: grid;
    gap: 0.2rem;
}

.dashboard-seven-day-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.48rem 0;
    border-bottom: 1px solid #edf2f7;
}

.dashboard-seven-day-row:last-child {
    border-bottom: 0;
}

.dashboard-seven-day-row > span:first-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.dashboard-seven-day-row small {
    color: #64748b;
}

.dashboard-log-scroll {
    max-height: 28rem;
    overflow-y: auto;
}

.dashboard-log-summary {
    min-width: 18rem;
    max-width: 40rem;
    color: #475569;
}

@media (max-width: 767.98px) {
    .dashboard-quick-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-page-header .admin-page-actions {
        width: 100%;
    }
}

/* Phase 24: online booking admin and public flow. */
.online-admin-availability-list {
    display: grid;
    max-height: 38rem;
    gap: 0.8rem;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.online-admin-branch {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.online-admin-type-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1rem;
    max-height: 14rem;
    overflow-y: auto;
    background: #f8fafc;
}

.online-admin-type-check {
    min-width: 0;
    margin: 0;
}

.online-booking-page {
    --online-blue: #0b5ed7;
    --online-ink: #10233f;
    width: 100%;
    max-width: 1180px;
    min-width: 0;
    margin: 0 auto;
}

.online-booking-header,
.online-booking-hero,
.online-booking-brand,
.online-booking-fixed-choice,
.online-booking-step-heading {
    display: flex;
    align-items: center;
}

.online-booking-header {
    justify-content: flex-start;
    gap: 1rem;
}

.online-booking-brand {
    min-width: 0;
    gap: 0.75rem;
    color: var(--online-ink);
    text-decoration: none;
}

.online-booking-brand:hover {
    color: var(--online-blue);
}

.online-booking-brand > span:last-child {
    display: grid;
}

.online-booking-brand-mark {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0.9rem;
    color: #ffffff;
    background: linear-gradient(135deg, #0d6efd, #0f4cba);
    box-shadow: 0 0.7rem 1.4rem rgba(13, 110, 253, 0.22);
    font-weight: 850;
}

.online-booking-kicker {
    color: #3970b8;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.online-booking-title {
    color: var(--online-ink);
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 750;
    line-height: 1.08;
}

.online-booking-hero {
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid #dbeafe;
    border-radius: 1.25rem;
    background:
        radial-gradient(circle at 92% 12%, rgba(14, 165, 233, 0.13), transparent 27%),
        linear-gradient(135deg, #ffffff 20%, #eff6ff 100%);
}

.online-booking-hero .lead {
    font-size: 1.05rem;
}

.online-booking-preset-badge {
    max-width: min(100%, 18rem);
    white-space: normal;
}

.online-booking-form,
.online-booking-success,
.online-booking-state-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 1.25rem;
}

.online-booking-step {
    min-width: 0;
    padding: 1.1rem;
    border: 1px solid #dce6f1;
    border-radius: 1rem;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    scroll-margin-top: 1rem;
}

.online-booking-form .form-control,
.online-booking-form .form-select {
    width: 100%;
    min-height: 3rem;
}

.online-booking-form textarea.form-control {
    min-height: auto;
}

.online-booking-step-heading {
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.online-booking-step-number {
    display: grid;
    width: 1.9rem;
    height: 1.9rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--online-blue);
    font-size: 0.78rem;
    font-weight: 850;
}

.online-booking-fixed-choice {
    gap: 0.7rem;
    min-height: 3.2rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid #bfdbfe;
    border-radius: 0.8rem;
    background: #eff6ff;
}

.online-booking-fixed-choice > span:last-child {
    display: grid;
}

.online-booking-fixed-choice small {
    color: #64748b;
}

.online-booking-choice-dot {
    width: 0.7rem;
    height: 0.7rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--choice-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.online-booking-slots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.online-booking-slot {
    display: flex;
    min-height: 4rem;
    min-width: 0;
    align-items: center;
    gap: 0.6rem;
    padding: 0.72rem 0.75rem;
    border: 1px solid #dbe5f0;
    border-radius: 0.8rem;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.online-booking-slot:hover,
.online-booking-slot:has(input:checked) {
    border-color: #60a5fa;
    background: #eff6ff;
    transform: translateY(-1px);
}

.online-booking-slot > span {
    display: grid;
    min-width: 0;
}

.online-booking-slot strong,
.online-booking-slot small {
    overflow: hidden;
}

.online-booking-slot strong {
    text-overflow: ellipsis;
    white-space: nowrap;
}

.online-booking-slot small {
    color: #64748b;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
}

.online-booking-empty,
.online-booking-selected-slot {
    padding: 0.85rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.8rem;
    color: #64748b;
    background: #f8fafc;
    text-align: center;
}

.online-booking-selected-slot {
    margin-top: 0.7rem;
    border-style: solid;
    border-color: #86efac;
    color: #166534;
    background: #f0fdf4;
    font-weight: 700;
}

.online-booking-submit-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid #e2e8f0;
}

.online-booking-submit-area .btn {
    min-height: 3.1rem;
    flex: 0 0 auto;
}

.online-booking-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.online-booking-state-icon,
.online-booking-success-mark {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    margin-inline: auto;
    place-items: center;
    border-radius: 50%;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: 1.4rem;
    font-weight: 850;
}

.online-booking-success-mark {
    margin-inline: 0;
    color: #166534;
    background: #dcfce7;
}

.online-booking-confirm-modal .modal-dialog {
    max-width: 48rem;
}

.online-booking-confirm-modal .modal-content {
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    border: 0;
    border-radius: 1.1rem;
    box-shadow: 0 1.5rem 4rem rgba(15, 35, 63, 0.2);
}

.online-booking-confirm-modal .modal-body {
    min-width: 0;
    overflow-x: hidden;
}

.online-booking-confirm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.online-booking-confirm-section,
.online-booking-success-contact {
    min-width: 0;
    padding: 1rem;
    border: 1px solid #dce6f1;
    border-radius: 0.9rem;
    background: #f8fbff;
}

.online-booking-confirm-section-contact {
    grid-column: 1 / -1;
}

.online-booking-summary-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1rem;
}

.online-booking-summary-list > div {
    min-width: 0;
}

.online-booking-summary-list > .is-wide {
    grid-column: 1 / -1;
}

.online-booking-summary-list dt {
    margin-bottom: 0.15rem;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.online-booking-summary-list dd {
    margin: 0;
    color: var(--online-ink, #10233f);
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.online-booking-summary-list a {
    color: #0b5ed7;
    text-decoration: none;
}

.online-booking-summary-list a:hover {
    text-decoration: underline;
}

.scheduling-calendar-shell .fc-event.calendar-online-event {
    box-shadow: inset 3px 0 0 #67e8f9, 0 0.55rem 1.1rem rgba(37, 99, 235, 0.2);
}

.scheduling-group-event.is-online-event {
    box-shadow: inset 3px 0 0 #67e8f9, 0 0.55rem 1.1rem rgba(37, 99, 235, 0.2);
}

.scheduling-timeline-appointment.is-online-event {
    border-left: 3px solid #06b6d4;
}

@media (max-width: 768px) {
    .tp-body-public .public-shell > .container {
        max-width: 100%;
        padding: 1rem 0.75rem 1.5rem !important;
    }

    .online-admin-type-checks,
    .online-booking-slots {
        grid-template-columns: 1fr;
    }

    .online-booking-page {
        max-width: 100%;
    }

    .online-booking-header,
    .online-booking-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .online-booking-hero > div {
        width: 100%;
        min-width: 0;
    }

    .online-booking-title,
    .online-booking-hero .lead,
    .online-booking-public-notice {
        overflow-wrap: anywhere;
    }

    .online-booking-brand {
        gap: 0.6rem;
    }

    .online-booking-brand-mark {
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 0.75rem;
        font-size: 0.9rem;
    }

    .online-booking-brand strong {
        font-size: 0.94rem;
        line-height: 1.2;
    }

    .online-booking-hero {
        gap: 0.75rem;
        padding: 1rem;
        border-radius: 1rem;
    }

    .online-booking-title {
        font-size: clamp(1.65rem, 8vw, 2.05rem);
    }

    .online-booking-hero .lead {
        font-size: 0.94rem;
        line-height: 1.45;
    }

    .online-booking-preset-badge {
        align-self: flex-start;
        padding: 0.45rem 0.75rem !important;
    }

    .online-booking-form > .card-body {
        padding: 0.75rem !important;
    }

    .online-booking-form .row.g-4 {
        --bs-gutter-y: 0.85rem;
    }

    .online-booking-step {
        padding: 0.9rem;
        border-radius: 0.9rem;
    }

    .online-booking-step-heading {
        gap: 0.6rem;
        margin-bottom: 0.85rem;
    }

    .online-booking-step-number {
        width: 1.75rem;
        height: 1.75rem;
    }

    .online-booking-slot {
        min-height: 4.15rem;
        padding: 0.75rem;
    }

    .online-booking-submit-area {
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .online-booking-submit-area .btn {
        width: 100%;
        min-height: 3.25rem;
    }

    .online-booking-confirm-modal .modal-dialog {
        margin: 0.5rem;
    }

    .online-booking-confirm-modal .modal-content {
        max-height: calc(100dvh - 1rem);
        border-radius: 0.95rem;
    }

    .online-booking-confirm-grid,
    .online-booking-summary-list {
        grid-template-columns: 1fr;
    }

    .online-booking-confirm-section-contact,
    .online-booking-summary-list > .is-wide {
        grid-column: auto;
    }

    .online-booking-confirm-modal .modal-header,
    .online-booking-confirm-modal .modal-body,
    .online-booking-confirm-modal .modal-footer {
        padding: 0.9rem;
    }

    .online-booking-confirm-modal .modal-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .online-booking-confirm-modal .modal-footer .btn {
        width: 100%;
        min-height: 3rem;
        margin: 0;
    }
}

/* Phase 20 operational capacity dashboard. */
.dashboard-kpi-card {
    --dashboard-accent: #2563eb;
    position: relative;
    min-height: 7.6rem;
    padding: 1rem 1.05rem 0.9rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    box-shadow: 0 0.65rem 1.5rem rgba(15, 23, 42, 0.055);
}

.dashboard-kpi-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.25rem;
    background: var(--dashboard-accent);
    content: '';
}

.dashboard-kpi-card::after {
    position: absolute;
    top: -2.3rem;
    right: -2rem;
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--dashboard-accent) 9%, transparent);
    content: '';
}

.dashboard-kpi-card > * {
    position: relative;
    z-index: 1;
    display: block;
}

.dashboard-kpi-card strong {
    margin: 0.35rem 0 0.25rem;
    color: #0f172a;
    font-size: clamp(1.65rem, 2vw, 2.15rem);
    line-height: 1.05;
}

.dashboard-kpi-card .dashboard-kpi-compact-value {
    font-size: clamp(1.15rem, 1.45vw, 1.45rem);
    line-height: 1.2;
}

.dashboard-kpi-card small {
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.3;
}

.dashboard-eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: #2563eb;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-utilization-header,
.dashboard-utilization-layout,
.dashboard-date-nav,
.dashboard-line-heading,
.dashboard-activity-list article > div {
    display: flex;
    align-items: center;
}

.dashboard-utilization-header {
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-date-nav {
    gap: 0.45rem;
}

.dashboard-utilization-layout {
    justify-content: center;
    gap: clamp(2rem, 6vw, 5rem);
    padding: 0.5rem 0 1rem;
}

.dashboard-donut {
    --dashboard-percent: 0;
    position: relative;
    display: grid;
    width: clamp(11rem, 22vw, 15rem);
    flex: 0 0 auto;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(#2563eb calc(var(--dashboard-percent) * 1%), #e2e8f0 0);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08), 0 1rem 2rem rgba(37, 99, 235, 0.1);
}

.dashboard-donut::before {
    position: absolute;
    width: 68%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px #eef2f7;
    content: '';
}

.dashboard-donut-center {
    position: relative;
    display: grid;
    place-items: center;
}

.dashboard-donut-center strong {
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.dashboard-donut-center span {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-utilization-metrics {
    display: grid;
    min-width: min(100%, 18rem);
    gap: 0.7rem;
}

.dashboard-utilization-metrics > div {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    color: #475569;
    font-size: 0.88rem;
}

.dashboard-utilization-metrics strong {
    color: #0f172a;
}

.dashboard-utilization-metrics .dashboard-capacity-total {
    grid-template-columns: 1fr auto;
    margin-top: 0.15rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.dashboard-legend-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: #2563eb;
}

.dashboard-legend-dot.is-free { background: #cbd5e1; }
.dashboard-legend-dot.is-remaining { background: #10b981; }

.dashboard-no-capacity {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    background: #f8fafc;
}

.dashboard-no-capacity-icon {
    display: grid;
    width: 4.25rem;
    flex: 0 0 auto;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-weight: 800;
}

.dashboard-no-capacity div,
.dashboard-utilization-summary,
.dashboard-branch-toggle > span:first-child,
.dashboard-line-heading > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.dashboard-no-capacity span:last-child,
.dashboard-utilization-summary small,
.dashboard-branch-toggle small,
.dashboard-line-heading small {
    color: #64748b;
}

.dashboard-group-accordion {
    display: grid;
    gap: 0.75rem;
}

.dashboard-group-item {
    overflow: hidden;
    border: 1px solid #dbe5f0 !important;
    border-radius: 0.9rem !important;
}

.dashboard-group-item .accordion-button {
    gap: 1rem;
    padding: 1rem;
    background: #fff;
    box-shadow: none;
}

.dashboard-group-item .accordion-button:not(.collapsed) {
    background: #f4f8ff;
    color: #0f172a;
}

.dashboard-group-item .accordion-button::after {
    margin-left: 0;
}

.dashboard-utilization-summary {
    flex: 1;
}

.dashboard-utilization-summary small {
    margin-top: 0.2rem;
    font-size: 0.78rem;
}

.dashboard-utilization-percent {
    min-width: 3.4rem;
    padding: 0.4rem 0.55rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: center;
}

.dashboard-progress {
    height: 0.4rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.dashboard-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.dashboard-branch-card + .dashboard-branch-card {
    margin-top: 0.75rem;
}

.dashboard-branch-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    background: #fff;
}

.dashboard-branch-toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border: 0;
    background: #fff;
    color: #0f172a;
    text-align: left;
}

.dashboard-branch-toggle:hover,
.dashboard-branch-toggle:focus-visible {
    background: #f8fafc;
}

.dashboard-branch-meta {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.65rem;
    color: #64748b;
    font-size: 0.76rem;
}

.dashboard-branch-meta > strong {
    color: #1d4ed8;
}

.dashboard-line-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.75rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.dashboard-line-detail-card {
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid #dbe5f0;
    border-radius: 0.75rem;
    background: #fff;
}

.dashboard-line-heading {
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.dashboard-line-heading > span {
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 800;
}

.dashboard-line-detail-card dl {
    display: grid;
    gap: 0.45rem;
    margin: 0.8rem 0;
}

.dashboard-line-detail-card dl > div {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.78rem;
}

.dashboard-line-detail-card dt {
    color: #64748b;
    font-weight: 500;
}

.dashboard-line-detail-card dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
    text-align: right;
}

.dashboard-gap-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding-top: 0.7rem;
    border-top: 1px solid #edf2f7;
    color: #64748b;
    font-size: 0.72rem;
}

.dashboard-gap-row span:not(:first-child) {
    padding: 0.22rem 0.4rem;
    border-radius: 0.4rem;
    background: #fff7ed;
    color: #9a3412;
}

.dashboard-device-placeholder {
    border: 1px dashed #cbd5e1 !important;
    background: linear-gradient(145deg, #fff, #f8fafc);
}

.dashboard-access-card {
    border: 1px solid #dbeafe !important;
    background: linear-gradient(145deg, #ffffff, #f8fbff);
}

.dashboard-device-list {
    display: grid;
    gap: 0;
}

.dashboard-device-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-top: 1px solid #edf2f7;
}

.dashboard-device-list span,
.dashboard-device-list strong,
.dashboard-device-list small {
    display: block;
}

.dashboard-device-list strong {
    color: #0f172a;
    font-size: 0.8rem;
}

.dashboard-device-list small,
.dashboard-device-list time {
    color: #64748b;
    font-size: 0.72rem;
}

.dashboard-device-list time {
    white-space: nowrap;
}

.access-dashboard-code,
.access-one-time-code code {
    color: #7c2d12;
    font-family: "Cascadia Mono", "Segoe UI Mono", monospace;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.access-dashboard-code {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.05rem;
}

.access-one-time-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
}

.access-one-time-code strong,
.access-one-time-code span {
    display: block;
}

.access-one-time-code span {
    margin-top: 0.2rem;
    font-size: 0.84rem;
}

.access-one-time-code code {
    flex: 0 0 auto;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(124, 45, 18, 0.18);
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.72);
    font-size: 1.2rem;
}

.access-activation-code-input {
    text-transform: uppercase;
    font-family: "Cascadia Mono", "Segoe UI Mono", monospace;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.access-setting-switch .form-check-input {
    width: 2.7rem;
    height: 1.4rem;
    margin-right: 0.6rem;
}

.access-code-meta {
    display: grid;
    gap: 0.6rem;
}

.access-code-meta > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid #edf2f7;
}

.access-code-meta dt {
    color: #64748b;
    font-weight: 500;
}

.access-code-meta dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
    text-align: right;
}

.access-device-table th {
    color: #475569;
    font-size: 0.76rem;
    white-space: nowrap;
}

.access-device-table td {
    font-size: 0.84rem;
}

.access-device-table td:nth-child(2) {
    min-width: 15rem;
    max-width: 22rem;
}

.access-device-actions {
    min-width: 18rem;
}

@media (max-width: 767.98px) {
    .access-one-time-code {
        align-items: stretch;
        flex-direction: column;
    }

    .access-one-time-code code {
        text-align: center;
    }
}

.dashboard-critical-gap-list,
.dashboard-system-status {
    display: grid;
    gap: 0.65rem;
}

.dashboard-critical-gap-list > div,
.dashboard-system-status > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.84rem;
}

.dashboard-critical-gap-list > div:last-child,
.dashboard-system-status > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dashboard-critical-gap-list span,
.dashboard-system-status span {
    color: #475569;
}

.dashboard-critical-gap-list strong {
    color: #b45309;
    white-space: nowrap;
}

.dashboard-system-status strong {
    display: grid;
    min-width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.6rem;
    background: #eff6ff;
    color: #1d4ed8;
}

.dashboard-activity-list {
    display: grid;
    max-height: 30rem;
    gap: 0;
    overflow-y: auto;
}

.dashboard-activity-list article {
    padding: 0.75rem 0;
    border-bottom: 1px solid #edf2f7;
}

.dashboard-activity-list article:first-child {
    padding-top: 0;
}

.dashboard-activity-list article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dashboard-activity-list article > div {
    justify-content: space-between;
    gap: 0.75rem;
}

.dashboard-activity-list time {
    color: #94a3b8;
    font-size: 0.7rem;
    white-space: nowrap;
}

.dashboard-activity-list article > strong {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.8rem;
}

.dashboard-activity-list p {
    margin: 0.15rem 0 0;
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.35;
}

@media (max-width: 1199.98px) {
    .dashboard-side-column {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .dashboard-side-column > .dashboard-section-card {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 767.98px) {
    .dashboard-utilization-header,
    .dashboard-utilization-layout,
    .dashboard-branch-toggle {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-utilization-layout {
        gap: 1.5rem;
    }

    .dashboard-donut {
        align-self: center;
    }

    .dashboard-date-nav .btn {
        flex: 1;
    }

    .dashboard-branch-meta {
        justify-content: space-between;
    }

    .dashboard-line-grid,
    .dashboard-side-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .dashboard-group-item .accordion-button {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .dashboard-group-item .accordion-button::after {
        order: 3;
    }

    .dashboard-utilization-percent {
        margin-left: 0;
    }

    .dashboard-branch-meta {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}

/* Phase 21 booking blocks. */
.booking-block-table {
    min-width: 1080px;
}

.booking-block-table th {
    color: #64748b;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.booking-block-table td {
    font-size: 0.82rem;
    vertical-align: middle;
}

.booking-block-table td small {
    color: #64748b;
}

.booking-block-conflict-list {
    display: grid;
    gap: 0.65rem;
}

.booking-block-conflict-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    background: #f8fafc;
}

.booking-block-conflict-item strong,
.booking-block-conflict-item span {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-block-conflict-item span {
    margin-top: 0.15rem;
    color: #64748b;
    font-size: 0.82rem;
}

@media (max-width: 575.98px) {
    .booking-block-conflict-item {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    #bookingBlockConflictModal .modal-footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    #bookingBlockConflictModal .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
}

.scheduling-timeline-blocked {
    border-color: #cbd5e1;
    background: repeating-linear-gradient(-45deg, #f8fafc, #f8fafc 8px, #f1f5f9 8px, #f1f5f9 16px);
}

.scheduling-timeline-blocked .scheduling-timeline-dot {
    background: #64748b;
}

.scheduling-timeline-blocked .scheduling-timeline-main {
    color: #475569;
}

/* Phase 22 management reports. */
.reports-page-header {
    align-items: flex-end;
}

.reports-eyebrow {
    display: block;
    margin-bottom: 0.3rem;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.reports-filter-card,
.reports-section-card,
.reports-export-card {
    overflow: hidden;
    border-radius: 1rem;
}

.reports-filter-form .form-label {
    margin-bottom: 0.35rem;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
}

.reports-filter-actions {
    min-height: 3.75rem;
}

.reports-context-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #dbe5f0;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.76);
}

.reports-context-bar strong,
.reports-context-bar span {
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
}

.reports-context-bar strong {
    color: #1d4ed8;
    background: #dbeafe;
}

.reports-context-bar span {
    color: #475569;
    background: #f1f5f9;
    font-size: 0.8rem;
}

.reports-kpi-card {
    --reports-accent: #2563eb;
    position: relative;
    display: flex;
    min-height: 8.8rem;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 1.1rem 1.15rem 1rem;
    border: 1px solid color-mix(in srgb, var(--reports-accent) 18%, #e2e8f0);
    border-radius: 1rem;
    background: linear-gradient(145deg, #ffffff 55%, color-mix(in srgb, var(--reports-accent) 8%, #ffffff));
    box-shadow: 0 0.75rem 1.8rem rgba(15, 23, 42, 0.07);
}

.reports-kpi-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.28rem;
    background: var(--reports-accent);
    content: "";
}

.reports-kpi-card > span {
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.reports-kpi-card > strong {
    margin: 0.32rem 0 0.15rem;
    color: #0f172a;
    font-size: clamp(1.55rem, 2vw, 2.15rem);
    line-height: 1;
}

.reports-kpi-card > small {
    color: #64748b;
    font-size: 0.76rem;
}

.reports-tone-primary { --reports-accent: #2563eb; }
.reports-tone-success { --reports-accent: #16a34a; }
.reports-tone-indigo { --reports-accent: #4f46e5; }
.reports-tone-warning { --reports-accent: #f59e0b; }
.reports-tone-danger { --reports-accent: #ef4444; }
.reports-tone-cyan { --reports-accent: #0891b2; }
.reports-tone-slate { --reports-accent: #475569; }

.reports-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.reports-capacity-percent {
    color: #1d4ed8;
    font-size: clamp(1.65rem, 3vw, 2.6rem);
    line-height: 1;
}

.reports-capacity-progress {
    height: 0.7rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.reports-capacity-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #0891b2);
}

.reports-capacity-grid > div > div {
    display: flex;
    min-height: 4.6rem;
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem 0.9rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #f8fafc;
}

.reports-capacity-grid span,
.reports-highlight-grid span,
.reports-highlight-single span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.reports-capacity-grid strong {
    margin-top: 0.2rem;
    font-size: 1.1rem;
}

.reports-method-note {
    color: #64748b;
    font-size: 0.78rem;
}

.reports-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.reports-highlight-grid > div,
.reports-highlight-single {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid #dbeafe;
    border-radius: 0.75rem;
    background: #eff6ff;
}

.reports-highlight-grid strong,
.reports-highlight-single strong {
    color: #1e3a8a;
    font-size: 0.86rem;
}

.reports-table-wrap {
    border-top: 1px solid #e2e8f0;
}

.reports-table {
    min-width: 920px;
}

.reports-table thead th {
    padding: 0.72rem 0.75rem;
    border-bottom-color: #cbd5e1;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    white-space: nowrap;
}

.reports-table tbody td {
    padding: 0.68rem 0.75rem;
    border-color: #edf2f7;
    color: #334155;
    font-size: 0.78rem;
    white-space: nowrap;
}

.reports-utilization-pill {
    display: inline-flex;
    min-width: 4.5rem;
    justify-content: center;
    padding: 0.28rem 0.48rem;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-weight: 800;
}

.reports-trend {
    display: inline-flex;
    padding: 0.28rem 0.48rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
}

.reports-trend.is-positive {
    color: #166534;
    background: #dcfce7;
}

.reports-trend.is-negative {
    color: #991b1b;
    background: #fee2e2;
}

.reports-trend.is-neutral {
    color: #475569;
    background: #e2e8f0;
}

.reports-progress-cell {
    display: flex;
    min-width: 11rem;
    align-items: center;
    gap: 0.65rem;
}

.reports-progress-cell > div {
    width: 6.5rem;
    height: 0.4rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.reports-progress-cell > div span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
}

.reports-progress-cell strong {
    min-width: 4.2rem;
    font-size: 0.74rem;
}

.reports-vehicle-scroll,
.reports-daily-scroll {
    max-height: 33rem;
    overflow: auto;
}

.reports-vehicle-scroll .reports-table thead,
.reports-daily-scroll .reports-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.reports-empty-state {
    padding: 1.2rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.85rem;
    color: #64748b;
    background: #f8fafc;
    text-align: center;
}

.reports-export-card {
    border: 1px solid #bfdbfe !important;
    background: linear-gradient(135deg, #ffffff 55%, #eff6ff 100%);
}

@media (max-width: 1199.98px) {
    .reports-page-header,
    .reports-section-heading {
        align-items: flex-start;
    }

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

@media (max-width: 767.98px) {
    .reports-page-header,
    .reports-section-heading {
        flex-direction: column;
    }

    .reports-page-header .admin-page-actions {
        justify-content: flex-start;
    }

    .reports-filter-actions .btn {
        flex: 1 1 auto;
    }

    .reports-capacity-percent {
        font-size: 1.8rem;
    }
}

/* Phase 25A: compact company branding. */
.app-brand {
    min-width: 0;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
}

.app-brand-copy,
.compact-scheduling-brand-copy {
    display: grid;
    min-width: 0;
}

.app-brand-logo,
.compact-scheduling-brand-logo {
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.96);
}

.app-brand-logo {
    width: 2.6rem;
    height: 2.6rem;
    padding: 0.2rem;
    border-radius: 0.7rem;
}

.app-brand-title,
.compact-scheduling-brand-copy > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-scheduling-brand {
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
}

.compact-scheduling-brand-logo {
    width: 2.35rem;
    height: 2.35rem;
    padding: 0.18rem;
    border-radius: 0.65rem;
}

.auth-company-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 1rem;
}

.auth-company-logo {
    display: block;
    width: auto;
    max-width: 10rem;
    max-height: 4rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.auth-company-name {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.auth-company-subtitle {
    margin-top: 0.2rem;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.35;
}

.online-booking-brand-logo {
    display: block;
    width: auto;
    max-width: 11rem;
    max-height: 3.5rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.online-booking-brand-copy {
    min-width: 0;
}

.online-booking-brand-copy strong,
.online-booking-context-brand strong {
    overflow-wrap: anywhere;
}

.online-booking-context-brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.65rem;
    color: #10233f;
}

.online-booking-context-brand img {
    display: block;
    width: auto;
    max-width: 7rem;
    max-height: 2.2rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.online-booking-context-brand-modal {
    font-size: 0.85rem;
}

.online-booking-confirm-modal .modal-header > div {
    min-width: 0;
}

.online-admin-branding-summary {
    background: linear-gradient(135deg, #ffffff 50%, #eff6ff 100%);
}

.online-admin-branding-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 0.75rem;
}

.online-admin-branding-identity img {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.15rem;
    border: 1px solid #dbeafe;
    border-radius: 0.7rem;
    object-fit: contain;
    background: #ffffff;
}

.branding-settings-card,
.branding-preview-card {
    overflow: hidden;
}

.branding-preview {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem;
    border: 1px solid #dbeafe;
    border-radius: 1rem;
    background: linear-gradient(135deg, #ffffff 35%, #eff6ff 100%);
}

.branding-preview-logo {
    display: block;
    width: auto;
    max-width: 9rem;
    max-height: 4.5rem;
    flex: 0 0 auto;
    object-fit: contain;
}

.branding-preview-name {
    color: #0f172a;
    font-size: 1.1rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .auth-company-brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .auth-company-logo {
        max-width: 8.5rem;
        max-height: 3.5rem;
    }

    .online-booking-brand-logo {
        max-width: 8.5rem;
        max-height: 3rem;
    }

    .online-booking-context-brand img {
        max-width: 5.5rem;
        max-height: 1.8rem;
    }

    .branding-preview {
        align-items: flex-start;
        flex-direction: column;
    }

    .branding-preview-logo {
        max-width: 8rem;
        max-height: 3.5rem;
    }
}

/* Phase 25B: minimal general application settings. */
.app-brand-kicker,
.compact-scheduling-brand-kicker {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-company-brand > div {
    min-width: 0;
}

.auth-application-name {
    margin-top: 0.18rem;
    color: #1e3a5f;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.online-booking-public-notice {
    max-width: 48rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #dbe4ee;
    border-radius: 0.75rem;
    color: #475569;
    background: rgba(248, 250, 252, 0.9);
    font-size: 0.9rem;
    line-height: 1.45;
    white-space: pre-line;
}

.branding-preview-app-name {
    margin-top: 0.12rem;
    color: #1e3a5f;
    font-size: 0.9rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.general-settings-card textarea {
    min-height: 5.25rem;
    resize: vertical;
}

/* Phase 25C: self-service account access. */
.compact-scheduling-user {
    position: relative;
    padding-right: 2.15rem;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.compact-scheduling-user:hover,
.compact-scheduling-user:focus-visible {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
}

.compact-scheduling-user:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.22);
}

.sidebar-account-trigger {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.35rem;
    border: 0;
    border-radius: 0.75rem;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-account-trigger:hover,
.sidebar-account-trigger:focus-visible {
    background: rgba(148, 163, 184, 0.11);
}

.sidebar-account-trigger:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.18rem rgba(96, 165, 250, 0.25);
}

.sidebar-account-copy {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-account-copy > span {
    display: block;
}

.account-trigger-chevron {
    position: absolute;
    top: 50%;
    right: 0.7rem;
    color: currentColor;
    font-size: 1.45rem;
    line-height: 1;
    opacity: 0.58;
    transform: translateY(-50%);
}

.sidebar-account-trigger .account-trigger-chevron {
    position: static;
    flex: 0 0 auto;
    transform: none;
}

.account-modal .modal-dialog {
    max-width: 36rem;
}

.account-modal .modal-content {
    max-height: calc(100dvh - 2rem);
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, 0.22);
}

.account-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.account-overview-item {
    min-width: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    background: #f8fafc;
}

.account-overview-item > span,
.account-overview-item > strong {
    display: block;
}

.account-overview-item > span {
    margin-bottom: 0.2rem;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-overview-item > strong {
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: 0.94rem;
}

@media (max-width: 575.98px) {
    .account-modal .modal-dialog {
        margin: 0.5rem;
    }

    .account-modal .modal-content {
        max-height: calc(100dvh - 1rem);
    }

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

    .account-modal .modal-footer {
        display: grid;
        grid-template-columns: 1fr;
    }

    .account-modal .modal-footer .btn {
        width: 100%;
        min-height: 2.75rem;
        margin: 0;
    }
}
