:root,
html,
body {
    color-scheme: light only !important;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #fff !important;
    color: #212529 !important;
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

input,
textarea,
select,
button {
    color-scheme: only light !important;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1I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121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.booking-selection-label {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.booking-selection-value {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
}

.customer-booking-dialog {
    display: grid;
    gap: 18px;
}

.customer-booking-header,
.customer-booking-meta {
    display: grid;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #f8fafc;
}

.customer-booking-header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.customer-booking-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.customer-booking-actions-fixed {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.customer-booking-actions-top {
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.customer-booking-confirmation-pricing {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #f8fafc;
}

.customer-booking-confirmation-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
    color: #334155;
}

.customer-booking-confirmation-line.is-total {
    padding-top: 12px;
    border-top: 1px solid #d7dde8;
    color: #0f172a;
    font-size: 1.05rem;
}

.customer-booking-confirmation-payments {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.customer-booking-confirmation-terms {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.customer-booking-confirmation-terms-link {
    color: #0369a1;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.customer-booking-confirmation-terms-link.is-disabled {
    color: #64748b;
    text-decoration: none;
}

.customer-booking-confirmation-payment-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.customer-booking-confirmation-payment-row + .customer-booking-confirmation-payment-row {
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.customer-booking-confirmation-payment-copy {
    display: grid;
    gap: 4px;
}

.customer-booking-confirmation-payment-title {
    font-weight: 700;
    color: #0f172a;
}

.customer-booking-confirmation-payment-text {
    color: #475569;
}

.customer-booking-action-tooltip-anchor {
    display: inline-flex;
}

.booking-option-explanation {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    line-height: 1.5;
    white-space: pre-wrap;
}

.booking-price-details {
    padding: 16px 18px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #334155;
    line-height: 1.6;
}

.booking-price-details :last-child {
    margin-bottom: 0;
}

.booking-status-panel {
    padding: 16px 18px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.booking-status-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
}

.booking-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 172px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.booking-status-badge.is-success {
    background: #dcfce7;
    color: #166534;
}

.booking-status-badge.is-warning {
    background: #fef3c7;
    color: #92400e;
}

.booking-status-badge.is-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.booking-status-badge.is-neutral {
    background: #e5e7eb;
    color: #374151;
}

.booking-status-detail {
    color: #475569;
    font-weight: 500;
}

.booking-admin-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 16px;
    background: #fff1e6;
    border: 1px solid #fdba74;
}

.booking-admin-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.booking-admin-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: start;
}

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

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

.booking-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.booking-admin-inline-message {
    align-self: center;
    color: #9a3412;
    font-weight: 500;
}

.booking-editor-field {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.booking-admin-panel .booking-editor-field .form-label {
    min-height: 24px;
    margin-bottom: 0;
}

.booking-admin-panel .booking-editor-field .form-control,
.booking-admin-panel .booking-editor-field .form-select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
}

.booking-editor-inline {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
    align-items: start;
}

.booking-editor-field .customer-booking-persons-picker,
.booking-editor-field .customer-booking-persons-picker.e-control-wrapper,
.booking-editor-field .customer-booking-persons-picker.e-ddl {
    width: 120px !important;
    max-width: 120px !important;
}

.booking-editor-field .customer-booking-persons-picker.e-ddl .e-input-group,
.booking-editor-field .customer-booking-persons-picker .e-input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100% !important;
}

.booking-editor-field .customer-booking-persons-picker.e-ddl .e-input-value,
.booking-editor-field .customer-booking-persons-picker .e-input-value,
.booking-editor-field .customer-booking-persons-picker.e-ddl .e-ddl-icon,
.booking-editor-field .customer-booking-persons-picker .e-ddl-icon {
    line-height: normal !important;
}

.customer-booking-persons-option {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.customer-booking-persons-option span:last-child {
    text-align: right;
}

.customer-booking-persons-option-header {
    font-weight: 700;
    color: #475569;
}

.booking-selection-subvalue {
    margin-top: 4px;
    color: #64748b;
    font-size: 0.9rem;
}

.customer-booking-discount-row {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.customer-booking-discount-input {
    text-transform: uppercase;
}

.customer-booking-discount-feedback {
    font-size: 0.95rem;
    font-weight: 500;
}

.customer-booking-discount-feedback.is-valid {
    color: #166534;
}

.customer-booking-discount-feedback.is-invalid {
    color: #b91c1c;
}

.customer-booking-page {
    max-width: 1100px;
    margin: 32px auto 48px;
    padding: 0 20px;
}

.customer-booking-page-header {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.customer-booking-page-title {
    margin: 0;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    line-height: 1.1;
    color: #0f172a;
}

.customer-booking-page-subtitle {
    margin: 8px 0 0;
    color: #475569;
}

.customer-booking-page-card {
    display: grid;
    gap: 20px;
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.08);
}

.customer-booking-page-body {
    display: grid;
    gap: 18px;
}

@media (max-width: 768px) {
    .booking-selection-label {
        font-size: 11px;
    }

    .booking-selection-value {
        font-size: 16px;
    }

    .customer-booking-confirmation-line.is-total {
        font-size: 1rem;
    }

    .customer-booking-page-title {
        font-size: clamp(1.5rem, 6vw, 1.95rem);
    }

    .customer-booking-page-subtitle {
        font-size: 0.95rem;
    }
}

.schedule-wrapper .e-schedule .e-year-view td.cell-available,
.schedule-wrapper .e-schedule .e-year-view td.cell-available.e-current-day {
    background-color: var(--available-day-color) !important;
    color: var(--available-day-text-color) !important;
}

.schedule-wrapper .e-schedule .e-year-view td.cell-unavailable,
.schedule-wrapper .e-schedule .e-year-view td.cell-unavailable.e-current-day {
    background-color: var(--past-day-color) !important;
    color: var(--past-day-text-color) !important;
    cursor: default !important;
    pointer-events: none !important;
}

@media (max-width: 768px) {
    .customer-booking-header,
    .customer-booking-meta,
    .customer-booking-discount-row,
    .booking-editor-inline {
        grid-template-columns: 1fr;
    }

    .booking-status-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .customer-booking-confirmation-payment-row,
    .customer-booking-confirmation-terms {
        grid-template-columns: 1fr;
    }

    .booking-status-badge {
        min-width: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .customer-booking-page {
        margin-top: 20px;
        padding: 0 14px;
    }

    .customer-booking-page-card {
        padding: 18px;
        border-radius: 18px;
    }

    .booking-admin-grid-top,
    .booking-admin-grid-bottom {
        grid-template-columns: 1fr;
    }
}
