/* ============================================================
   BIGWOODS DAILY SCHEDULE
   Organized replacement CSS
   ============================================================ */


/* ============================================================
   1. THEME VARIABLES
   ============================================================ */

.bw-schedule-page {
    --bw-page-bg: #f3f4f6;
    --bw-page-text: #111827;
    --bw-muted-text: #4b5563;

    --bw-card-bg: #ffffff;
    --bw-card-header-bg: #eef2f7;
    --bw-card-border: rgba(15, 23, 42, .12);
    --bw-row-border: rgba(15, 23, 42, .08);
    --bw-shadow: 0 14px 35px rgba(15, 23, 42, .14);

    --bw-input-bg: #ffffff;
    --bw-input-border: rgba(15, 23, 42, .18);
    --bw-modal-bg: #ffffff;
    --bw-link-dark: #111827;

    min-height: calc(100vh - 90px);
}

html.dark .bw-schedule-page,
.dark .bw-schedule-page {
    --bw-page-bg: #05070a;
    --bw-page-text: #f9fafb;
    --bw-muted-text: #d1d5db;

    --bw-card-bg: #f8fafc;
    --bw-card-header-bg: #eef2f7;
    --bw-card-border: rgba(255, 255, 255, .14);
    --bw-row-border: rgba(15, 23, 42, .08);
    --bw-shadow: 0 16px 36px rgba(0, 0, 0, .45);

    --bw-input-bg: #ffffff;
    --bw-input-border: rgba(15, 23, 42, .18);
    --bw-modal-bg: #ffffff;
    --bw-link-dark: #111827;
}

/* Keep native calendar icon visible in dark mode */
html.dark .bw-date-input::-webkit-calendar-picker-indicator,
.dark .bw-date-input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.85;
    cursor: pointer;
}

html.dark .bw-date-input::-webkit-calendar-picker-indicator:hover,
.dark .bw-date-input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* ============================================================
   2. FILAMENT PAGE OVERRIDES
   ============================================================ */

.bw-schedule-page .fi-page,
.bw-schedule-page .fi-main,
.bw-schedule-page .fi-page-content {
    background: var(--bw-page-bg) !important;
}

.bw-schedule-page .fi-page,
.bw-schedule-page .fi-page-content {
    max-width: 100% !important;
}

.bw-schedule-page .fi-page-content {
    padding: 10px 20px 16px !important;
}


/* ============================================================
   3. PAGE SHELL / TOPBAR
   ============================================================ */

.bw-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
    color: var(--bw-page-text);
}

.bw-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
}

.bw-heading-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-self: start;
    min-width: 0;
}

.bw-page-title {
    margin: 0;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--bw-page-text) !important;
    text-shadow: none !important;
}

.bw-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.bw-actions-center {
    justify-self: center;
    justify-content: center;
    position: relative;
}

.bw-actions-right {
    justify-self: end;
    justify-content: flex-end;
}


/* ============================================================
   4. BASE BUTTONS
   ============================================================ */

.bw-btn,
.bw-icon-btn,
.bw-date-display-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 34px;
    padding: 0 12px;
    border-radius: 12px;

    border: 1px solid rgba(15, 23, 42, .15) !important;
    background: #ffffff !important;
    color: #111827 !important;

    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;

    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    cursor: pointer;
}

.bw-btn-small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
    box-shadow: none;
}

.bw-btn-primary-dark {
    background: #172554 !important;
    color: #ffffff !important;
    border-color: #172554 !important;
}

.bw-btn-layout {
    background: #e8f0ff !important;
    color: #1e3a8a !important;
}

.bw-btn-layout-icon {
    min-width: 38px;
    width: 38px;
    padding: 0;
    font-size: 18px;
    line-height: 1;
}

.bw-btn-success {
    background: #dcfce7;
    color: #111827;
    border-color: rgba(22,101,52,0.1);
}

.bw-icon-btn {
    min-height: 28px;
    min-width: 28px;
    padding: 0;
    border-radius: 8px;
    font-size: 12px;
    box-shadow: none;
}


/* ============================================================
   5. DATE NAVIGATION BUTTONS
   SVG icons only - no CSS arrows
   ============================================================ */

.bw-nav-btn {
    min-width: 48px;
    width: 48px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border-radius: 12px;

    background: linear-gradient(145deg, #38bdf8, #0ea5e9);
    border: 1px solid rgba(0,0,0,0.18);

    box-shadow:
        0 4px 10px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.35);

    cursor: pointer;
    transition: all 0.15s ease;
}

.bw-nav-btn:hover {
    background: linear-gradient(145deg, #22d3ee, #0284c7);
    transform: translateY(-1px);
}

.bw-nav-btn:active {
    transform: translateY(1px);
}

.bw-nav-icon,
.bw-nav-btn svg {
    width: 22px;
    height: 22px;

    stroke: #000000;
    stroke-width: 2.8;
    fill: none;

    stroke-linecap: round;
    stroke-linejoin: round;
}

.bw-nav-btn::before,
.bw-nav-btn::after {
    content: none !important;
    display: none !important;
}


/* ============================================================
   6. DATE DISPLAY / DATE PICKER
   ============================================================ */

.bw-date-display-btn {
    min-width: 240px;
    max-width: 100%;
    min-height: 34px;
    padding: 0 16px;

    color: var(--bw-page-text) !important;
    background: color-mix(in srgb, var(--bw-page-bg) 88%, #ffffff 12%) !important;
    border: 1px solid color-mix(in srgb, var(--bw-page-text) 20%, transparent) !important;

    box-shadow: none;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.bw-date-picker-wrap {
    position: relative;
    min-width: 0;
}

.bw-date-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;

    width: 365px;
    padding: 20px;
    border-radius: 18px;

    background: var(--bw-modal-bg) !important;
    color: #111827 !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    box-shadow: 0 18px 38px rgba(0,0,0,0.22);
}

.bw-date-popover-title {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.bw-date-input {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border-radius: 14px;

    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid rgba(15, 23, 42, .18) !important;

    font-size: 20px;
    font-weight: 700;
    outline: none;
}

.bw-date-popover-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 16px;
}

.bw-date-input:focus,
.bw-select:focus,
.bw-textarea:focus,
.bw-picker-search:focus {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}


/* ============================================================
   7. TOP RIGHT ACTION BUTTONS
   Full text desktop, icon-only responsive
   ============================================================ */

.bw-top-action-btn {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;

    transition: all 0.15s ease;
}

.bw-general-note-btn {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #bae6fd;
}

.bw-general-note-btn:hover {
    background: #bae6fd;
}

.bw-search-bookings-btn {
    background: #172554;
    color: #ffffff;
    border: 1px solid #172554;
}

.bw-search-bookings-btn:hover {
    background: #1e3a8a;
}

.bw-action-icon {
    display: none;
}

.bw-action-svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ============================================================
   8. STATUS PILLS / BOOKING TEXT
   ============================================================ */

.bw-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    border: none;
}

.bw-pill-button {
    cursor: pointer;
}

.bw-pill-open {
    background: linear-gradient(145deg, #38bdf8, #0ea5e9) !important;
    color: #000000 !important;
    border: 1px solid rgba(0,0,0,0.18) !important;

    box-shadow:
        0 4px 10px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.35) !important;
}

.bw-pill-booked {
    background: #dbeafe;
    color: #1d4ed8;
}

.bw-pill-disabled,
.bw-item-action .bw-pill-disabled,
.bw-item-action .bw-pill-disabled span,
.bw-item-action .bw-pill-disabled-text,
.bw-item-action .bw-past-booking-text {
    color: #111827 !important;
    opacity: 1 !important;
}

.bw-past-booking-text,
.bw-item-action .bw-past-booking-text,
.bw-item-action .bw-pill-disabled,
.bw-item-action .bw-pill-disabled-text,
.bw-row.is-past-booking .bw-item-action,
.bw-row.is-past-booking .bw-item-action * {
    font-size: 12px !important;
    line-height: 1.05 !important;
    font-weight: 700 !important;
    color: #111827 !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
    opacity: 1 !important;
}

.bw-past-booking-button {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    color: #111827 !important;
    text-decoration-color: #111827 !important;
}

.bw-booked-name {
    display: inline-block;
    max-width: 180px;

    font-size: 13px;
    font-weight: 800;
    color: #111827 !important;
    text-align: right;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ============================================================
   9. LAYOUT MODE
   ============================================================ */

.bw-layout-banner {
    padding: 10px 14px;
    border-radius: 14px;

    background: rgba(219, 234, 254, 0.98);
    color: #1e3a8a;

    font-size: 13px;
    font-weight: 800;

    border: 1px solid rgba(59, 130, 246, 0.15);
}

.bw-layout-desktop-only {
    display: none;
}

.bw-move-stack {
    display: flex;
    gap: 6px;
}


/* ============================================================
   10. BOARD / CARDS
   ============================================================ */

.bw-board {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
    overflow: visible;
}

.bw-card {
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto 1fr;

    background: var(--bw-card-bg) !important;
    border: 1px solid var(--bw-card-border) !important;
    border-radius: 18px;

    overflow: hidden;
    box-shadow: var(--bw-shadow) !important;
    color: #111827 !important;
}

.bw-card.is-layout-mode {
    outline: 2px dashed rgba(59, 130, 246, 0.18);
    outline-offset: -2px;
}

.bw-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 10px 12px;

    background: var(--bw-card-header-bg) !important;
    border-bottom: 1px solid var(--bw-row-border) !important;
    color: #111827 !important;
}

.bw-card-header-right {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.bw-card-title,
.bw-item-name,
.bw-note-row,
.bw-past-booking-text,
.bw-booked-name {
    color: #111827 !important;
}

.bw-card-title {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.bw-card-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
}


/* ============================================================
   11. ROWS / ITEMS
   ============================================================ */

.bw-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;

    min-height: 38px;
    padding: 0 12px;

    border-bottom: 1px solid var(--bw-row-border) !important;
}

.bw-row:last-child {
    border-bottom: none !important;
}

.bw-item-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.05;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bw-item-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    min-width: 84px;
    color: #111827;
}

.bw-item-action .bw-past-booking-text {
    display: inline-block;
    max-width: 84px;
    text-align: right;
}


/* ============================================================
   12. ALERTS
   ============================================================ */

.bw-alerts-old-style {
    padding: 8px 10px 10px !important;
    background: #f58a2a !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.bw-alert-heading-old {
    margin: 0 0 6px 0 !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    color: #000000 !important;
}

.bw-alert-row-old {
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;

    padding: 3px 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    color: #000000 !important;

    font-size: 11px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
}

.bw-alert-row-old + .bw-alert-row-old {
    margin-top: 2px !important;
}

.bw-alert-dot-old {
    flex: 0 0 auto !important;

    width: 7px !important;
    height: 7px !important;
    min-width: 7px !important;

    border-radius: 999px !important;
    margin-top: 3px !important;
    background: #000000 !important;
}

.bw-alert-text-old {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    color: #000000 !important;
}

.bw-alert-row-old.is-cleaning-required,
.bw-alert-row-old.is-cleaning-required .bw-alert-text-old {
    color: #000000 !important;
}

.bw-alert-row-old.is-no-cleaning {
    background: #cfcfcf !important;
    color: #000000 !important;

    margin-left: -10px !important;
    margin-right: -10px !important;
    margin-top: 4px !important;
    margin-bottom: -10px !important;

    padding: 6px 10px !important;
}

.bw-alert-row-old.is-no-cleaning .bw-alert-text-old,
.bw-alert-line.is-no-cleaning .bw-alert-bullet,
.bw-alert-line.is-no-cleaning .bw-alert-text {
    color: #111827 !important;
}

.bw-alert-row-old.is-no-cleaning .bw-alert-dot-old {
    background: #000000 !important;
}


/* ============================================================
   13. NOTES / EMPTY STATE
   ============================================================ */

.bw-notes-body {
    display: flex;
    flex-direction: column;
    padding: 6px 0;
}

.bw-note-row {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(15,23,42,0.06);

    font-size: 12px;
    line-height: 1.3;
    font-weight: 600;
}

.bw-note-row:last-child {
    border-bottom: none;
}

.bw-note-note,
.bw-note-request {
    color: #111827;
}

.bw-note-cancellation {
    color: #dc2626;
}

.bw-empty {
    grid-column: 1 / -1;

    padding: 24px;
    border-radius: 18px;

    background: rgba(255,255,255,0.96);
    color: var(--bw-page-text) !important;

    font-weight: 700;
}


/* ============================================================
   14. CONFIRM MODAL
   ============================================================ */

.bw-confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 250;
}

.bw-confirm-wrap {
    position: fixed;
    inset: 0;
    z-index: 260;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.bw-confirm-card {
    width: 100%;
    max-width: 460px;

    background: var(--bw-modal-bg) !important;
    color: #111827 !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;

    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    padding: 22px;
}

.bw-confirm-title {
    font-size: 20px;
    font-weight: 800;
    color: #111827 !important;
    margin-bottom: 10px;
}

.bw-confirm-text {
    font-size: 14px;
    line-height: 1.45;
    color: #111827 !important;
    margin-bottom: 18px;
}

.bw-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}


/* ============================================================
   15. MAIN MODALS
   ============================================================ */

.bw-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.55);
    z-index: 280;
}

.bw-modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 300;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    overflow: hidden;
}

.bw-modal-card {
    width: min(680px, 100%);
    max-height: calc(100vh - 40px);

    display: flex;
    flex-direction: column;

    background: var(--bw-modal-bg) !important;
    color: #111827 !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;

    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    overflow: visible;
    position: relative;
}

.bw-modal-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;

    padding: 18px 20px;

    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-bottom: 1px solid rgba(15,23,42,0.08);

    flex-shrink: 0;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.bw-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #111827 !important;
    line-height: 1.1;
}

.bw-modal-subtitle {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #111827 !important;
}

.bw-modal-close {
    flex-shrink: 0;

    background: #f3f4f6 !important;
    color: #111827 !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;

    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
}

.bw-modal-body {
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;

    flex: 1 1 auto;
    min-height: 0;

    -webkit-overflow-scrolling: touch;
    position: relative;
}

.bw-modal-body-visible {
    overflow-y: auto;
    overflow-x: visible;
    position: relative;
}

.bw-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    padding: 16px 20px 20px;
    border-top: 1px solid rgba(15,23,42,0.08);
    background: #ffffff;

    flex-shrink: 0;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}


/* ============================================================
   16. FORMS / PICKERS
   ============================================================ */

.bw-step-title,
.bw-label,
.bw-picker-trigger,
.bw-picker-option,
.bw-picker-empty {
    color: #111827 !important;
}

.bw-step-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 14px;
}

.bw-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.bw-label {
    font-size: 14px;
    font-weight: 800;
}

.bw-field-picker {
    position: relative;
    z-index: 1;
}

.bw-picker {
    position: relative;
}

.bw-picker-trigger {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    padding: 0 14px;
    border-radius: 14px;

    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid rgba(15, 23, 42, .18) !important;

    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.bw-picker-trigger-text {
    flex: 1;
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bw-picker-trigger-arrow {
    flex-shrink: 0;
    font-size: 20px;
    line-height: 1;
    color: #64748b;
}

.bw-picker-panel,
.bw-picker-panel-modal {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 500;

    display: flex;
    flex-direction: column;

    background: var(--bw-modal-bg) !important;
    color: #111827 !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;

    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(0,0,0,0.18);
    overflow: hidden;
}

.bw-picker-panel {
    max-height: min(360px, 45vh);
}

.bw-picker-panel-modal {
    max-height: min(420px, 50vh);
}

.bw-picker-search-wrap {
    padding: 10px;
    border-bottom: 1px solid rgba(15,23,42,0.06);
    background: #f8fafc;
    flex-shrink: 0;
}

.bw-picker-search {
    width: 100%;
    min-height: 44px;

    padding: 0 12px;
    border-radius: 12px;

    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid rgba(15, 23, 42, .18) !important;

    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.bw-picker-list,
.bw-picker-list-tall {
    overflow-y: auto;
    overflow-x: hidden;

    padding: 8px;
    flex: 1 1 auto;
    min-height: 0;

    -webkit-overflow-scrolling: touch;
}

.bw-picker-list {
    max-height: 260px;
}

.bw-picker-list-tall {
    max-height: 340px;
}

.bw-picker-option {
    width: 100%;
    display: block;

    text-align: left;
    border: none;
    background: #ffffff;

    font-size: 14px;
    font-weight: 700;

    padding: 10px 12px;
    border-radius: 10px;

    cursor: pointer;
}

.bw-picker-option:hover {
    background: #eff6ff;
    color: #1d4ed8 !important;
}

.bw-picker-empty {
    padding: 10px 12px;
    color: #64748b !important;
    font-size: 14px;
    font-weight: 700;
}

.bw-picker-inline {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bw-picker-panel-inline {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 1 !important;

    max-height: none !important;

    display: flex;
    flex-direction: column;

    background: #ffffff;
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 16px;

    box-shadow: 0 18px 38px rgba(0,0,0,0.12);
    overflow: hidden;
}

.bw-picker-panel-inline .bw-picker-list-tall {
    max-height: 320px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none !important;
}

.bw-select,
.bw-textarea {
    width: 100%;
    border-radius: 14px;

    background: #ffffff !important;
    color: #111827 !important;
    border: 1px solid rgba(15, 23, 42, .18) !important;

    font-size: 15px;
    font-weight: 600;
    outline: none;
}

.bw-select {
    min-height: 48px;
    padding: 0 42px 0 14px;
}

.bw-textarea {
    padding: 12px 14px;
    resize: vertical;
}

.bw-inline-message {
    border-radius: 14px;
    padding: 12px 14px;

    font-size: 14px;
    font-weight: 700;

    margin-bottom: 16px;
}

.bw-inline-warning {
    background: #fef3c7;
    color: #92400e;
}

.bw-inline-danger {
    background: #fee2e2;
    color: #991b1b;
}

.bw-failure-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.bw-failure-item {
    border-radius: 14px;

    background: #fff1f2;
    border: 1px solid rgba(220, 38, 38, 0.12);
    color: #b91c1c;

    padding: 12px 14px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}


/* ============================================================
   17. RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (min-width: 1280px) {
    .bw-layout-desktop-only {
        display: inline-flex;
    }
}

@media (max-width: 1500px) {
    .bw-board {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Tablet and smaller */
@media (max-width: 1279px) {
    .bw-topbar {
        grid-template-columns: 1fr;
        gap: 12px;
        align-items: start;
    }

    .bw-heading-wrap {
        justify-self: start;
    }

    .bw-actions-center {
        justify-self: stretch;
        width: 100%;
        justify-content: center;
    }

    .bw-actions-right {
        display: flex;
        justify-self: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .bw-top-action-btn {
        width: 42px;
        height: 38px;
        min-height: 38px;
        padding: 0;
        border-radius: 12px;
    }

    .bw-action-full {
        display: none;
    }

    .bw-action-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        font-size: 22px;
        font-weight: 900;
        line-height: 1;
    }

    .bw-modal-wrap {
        align-items: flex-start;
        padding-top: 4vh;
        padding-bottom: 16px;
    }

    .bw-modal-card {
        max-height: calc(100vh - 6vh);
    }

    .bw-picker-panel,
    .bw-picker-panel-modal {
        max-height: min(420px, 52vh);
    }

    .bw-picker-list,
    .bw-picker-list-tall {
        max-height: 340px;
    }
}

@media (max-width: 1100px) {
    .bw-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Phones */
@media (max-width: 767px) {
    .bw-schedule-page .fi-page-content {
        padding: 10px 12px !important;
    }

    .bw-page {
        gap: 12px;
    }

    .bw-page-title {
        font-size: 20px;
    }

    .bw-actions-center {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        gap: 8px;
        align-items: center;
    }

    .bw-nav-btn {
        min-width: 44px;
        width: 44px;
        padding: 0;
    }

    .bw-date-picker-wrap {
        width: 100%;
    }

    .bw-date-display-btn {
        width: 100%;
        min-width: 0;
        padding: 0 10px;

        font-size: 12px;
        line-height: 1.2;
    }

    .bw-date-popover {
        left: 50%;
        transform: translateX(-50%);
        width: min(365px, calc(100vw - 24px));
    }

    .bw-date-popover-actions {
        flex-wrap: wrap;
    }

    .bw-btn-small {
        flex: 1 1 calc(50% - 5px);
    }

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

    .bw-row {
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 36px;
        padding: 0 10px;
    }

    .bw-card-header {
        padding: 9px 11px;
    }

    .bw-card-title {
        font-size: 14px;
    }

    .bw-item-name {
        font-size: 12px;
    }

    .bw-pill {
        font-size: 12px;
        padding: 0 10px;
    }

    .bw-booked-name {
        max-width: 130px;
        font-size: 15px;
    }

    .bw-item-action {
        min-width: 72px;
    }

    .bw-item-action .bw-past-booking-text {
        max-width: 85px;
        font-size: 15px !important;
    }

    .bw-alert-heading {
        font-size: 12px;
    }

    .bw-alert-line {
        font-size: 10px;
        line-height: 1.15;
        padding: 8px 10px;
    }

    .bw-modal-wrap {
        align-items: flex-start;
        justify-content: center;

        padding: 10px;
        overflow: hidden;
    }

    .bw-modal-card {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 20px);

        border-radius: 20px;
        overflow: visible;
        transform: none;
    }

    .bw-modal-header {
        padding: 16px;
    }

    .bw-modal-title {
        font-size: 18px;
        line-height: 1.1;
    }

    .bw-modal-subtitle {
        font-size: 12px;
        line-height: 1.25;
    }

    .bw-modal-body {
        padding: 16px;
        overflow-y: auto;
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
    }

    .bw-picker-panel,
    .bw-picker-panel-modal {
        max-height: min(320px, 42vh);
    }

    .bw-picker-list,
    .bw-picker-list-tall {
        max-height: 230px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bw-modal-footer {
        flex-wrap: wrap;
        padding: 14px 16px 16px;
    }

    .bw-confirm-wrap {
        padding: 14px;
    }

    .bw-confirm-card {
        border-radius: 14px;
        padding: 18px;
    }
}
/* Lodge Availability Calendar controls */
.bw-lodge-calendar-controls {
    display: grid;
    grid-template-columns: 44px minmax(86px, 110px) minmax(82px, 100px) 44px;
    align-items: center;
    gap: 8px;

    /* 👇 THIS centers the whole block */
    margin: 0 auto;
    justify-content: center;
}

.bw-lodge-calendar-controls .bw-btn-small {
    width: 44px;
    min-width: 44px;
    height: 38px;
    padding: 0;
}

.bw-lodge-calendar-controls select {
    width: 100%;
    height: 38px;
    min-width: 0;
}

@media (max-width: 480px) {
    .bw-lodge-calendar-controls {
        grid-template-columns: 40px minmax(72px, 1fr) minmax(70px, 1fr) 40px;
        gap: 6px;
        max-width: 100%;
    }

    .bw-lodge-calendar-controls .bw-btn-small {
        width: 40px;
        min-width: 40px;
    }
}

/* ============================================================
   MOBILE SCHEDULE SIZING
   Keeps same widths — reduces vertical height
   ============================================================ */

@media (max-width: 900px) {

    /* -------------------------------
       DATE BAR
    -------------------------------- */
    .bw-schedule-page .bw-actions-center {
        display: grid !important;
        grid-template-columns: 48px minmax(0, 1fr) 48px !important;
        gap: 8px !important;
        align-items: center !important;
    }

    .bw-schedule-page .bw-nav-btn {
        width: 48px !important;
        min-width: 48px !important;
        height: 42px !important;
    }

    .bw-schedule-page .bw-date-display-btn {
        min-height: 42px !important;
        padding: 6px 14px !important;
        font-size: 17px !important;
        font-weight: 900 !important;
    }

    /* -------------------------------
       CARD HEADER
    -------------------------------- */
    .bw-schedule-page .bw-card-header {
        min-height: 52px !important;
        padding: 10px 14px !important;
    }

    .bw-schedule-page .bw-card-title {
        font-size: 17px !important;
        line-height: 1.1 !important;
    }

    .bw-schedule-page .bw-card-header button {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }

    /* -------------------------------
       ROW HEIGHT (SHORTER)
    -------------------------------- */
    .bw-schedule-page .bw-row {
        min-height: 46px !important;
        padding: 4px 12px !important;
        gap: 10px !important;
    }

    .bw-schedule-page .bw-item-name {
        font-size: 13px !important;
        line-height: 1.1 !important;
        font-weight: 800 !important;
    }

    /* KEEP SAME ACTION WIDTH */
    .bw-schedule-page .bw-row .bw-item-action {
        width: 170px !important;
        min-width: 170px !important;
        max-width: 170px !important;

        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }

    /* KEEP SAME WIDTH — SHORTER HEIGHT */
    .bw-schedule-page .bw-pill,
    .bw-schedule-page .bw-pill-button,
    .bw-schedule-page .bw-pill-open {
        width: 150px !important;
        min-width: 150px !important;
        max-width: 150px !important;

        min-height: 34px !important;
        padding: 4px 14px !important;

        font-size: 13px !important;
        font-weight: 900 !important;
        line-height: 1 !important;

        border-radius: 999px !important;
    }

    /* Status text */
    .bw-schedule-page .bw-row .bw-item-action .bw-past-booking-text,
    .bw-schedule-page .bw-row .bw-item-action button.bw-past-booking-text,
    .bw-schedule-page .bw-row.is-past-booking .bw-item-action .bw-past-booking-text,
    .bw-schedule-page .bw-row.is-out-of-season .bw-item-action .bw-past-booking-text {
        font-size: 15px !important;
        font-weight: 800 !important;
        line-height: 1.1 !important;

        max-width: 160px !important;
        min-height: auto !important;
        padding: 0 !important;

        white-space: nowrap !important;
        text-align: right !important;
    }
}


/* ==========================================
   SMALL PHONES
========================================== */
@media (max-width: 520px) {

    .bw-schedule-page .bw-row {
        min-height: 42px !important;
        padding: 3px 10px !important;
    }

    .bw-schedule-page .bw-row .bw-item-action {
        width: 155px !important;
        min-width: 155px !important;
        max-width: 155px !important;
    }

    .bw-schedule-page .bw-pill,
    .bw-schedule-page .bw-pill-button,
    .bw-schedule-page .bw-pill-open {
        width: 135px !important;
        min-width: 135px !important;
        max-width: 135px !important;

        min-height: 32px !important;
        padding: 3px 12px !important;
        font-size: 15px !important;
    }

    .bw-schedule-page .bw-row .bw-item-action .bw-past-booking-text {
        font-size: 15px !important;
        max-width: 145px !important;
    }
}


/* ==========================================
   No keyholders on selected date to make booking modal
========================================== */

.bw-no-keyholders-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 310 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 20px !important;
    background: rgba(15, 23, 42, 0.45) !important;
}

.bw-no-keyholders-card {
    width: 100%;
    max-width: 460px;

    background: var(--bw-modal-bg) !important;
    color: #111827 !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;

    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
    padding: 22px;
}

.bw-no-keyholders-card h2 {
    font-size: 20px;
    font-weight: 800;
    color: #111827 !important;
    margin: 0 0 10px;
}

.bw-no-keyholders-card p {
    font-size: 14px;
    line-height: 1.45;
    color: #111827 !important;
    margin: 0 0 18px;
}

.bw-no-keyholders-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.bw-no-keyholders-ok {
    min-height: 38px;
    padding: 0 22px;
    border-radius: 12px;

    border: 1px solid #172554 !important;
    background: #172554 !important;
    color: #ffffff !important;

    font-size: 14px;
    font-weight: 800;
    cursor: pointer;

    box-shadow: 0 10px 24px rgba(23, 37, 84, 0.22);
}

.bw-no-keyholders-ok:hover {
    background: #1e3a8a !important;
    border-color: #1e3a8a !important;
}

@media (max-width: 767px) {
    .bw-no-keyholders-overlay {
        padding: 14px !important;
    }

    .bw-no-keyholders-card {
        border-radius: 14px;
        padding: 18px;
    }
}

/* ==========================================
   Select Date Calendar for booking schedule
========================================== */

.bw-date-picker-wrap {
    position: relative !important;
}

.bw-date-split-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-width: 215px;
    max-width: 215px;
    width: 215px;

    height: 48px;
    padding: 0 6px;
}

.bw-date-day-label {
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    flex-shrink: 0;
}

.bw-date-only-input {
    border: none;
    background: transparent;
    width: 95px;
    font-weight: 800;
    text-align: center;
    outline: none;
    color: #111827;
    padding: 0;
}

.bw-calendar-popover {
    position: absolute !important;
    top: calc(100% + 0px) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 330px !important;
    padding: 14px !important;
    z-index: 9999 !important;
}

.bw-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(#f3f4f6, #d1d5db);
    border: 1px solid #9ca3af;
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 12px;
}

.bw-calendar-title {
    font-size: 20px;
    font-weight: 900;
    color: #111827;
}

.bw-calendar-arrow {
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 999px;
    background: #374151;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.bw-calendar-days,
.bw-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.bw-calendar-days div {
    text-align: center;
    font-size: 15px;
    font-weight: 900;
    color: #111827;
    padding: 4px 0;
}

.bw-calendar-day,
.bw-calendar-blank {
    height: 34px;
}

.bw-calendar-day {
    border: 1px solid #d1d5db;
    background: #f3f4f6;
    color: #374151;
    font-size: 16px;
    cursor: pointer;
}

.bw-calendar-day:hover {
    background: #dbeafe;
    border-color: #38bdf8;
}

.bw-calendar-day.is-selected {
    background: #ecfccb;
    border: 2px solid #84cc16;
    color: #111827;
    font-weight: 900;
}

/* Force white date selector in dark mode */
.dark .bw-date-split-input,
.dark .bw-date-display-btn {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #111827 !important;
}

.dark .bw-date-day-label {
    color: #111827 !important;
}

.dark .bw-date-only-input {
    background: transparent !important;
    color: #111827 !important;
}

.dark .bw-date-only-input::placeholder {
    color: #6b7280 !important;
}

@media (max-width: 900px) {
    .bw-schedule-page .bw-actions-center {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 48px 1fr 48px !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 0 !important;
        position: relative !important;
        min-height: 52px !important;
    }

    .bw-schedule-page .bw-actions-center .bw-nav-btn:first-child {
        grid-column: 1 !important;
        justify-self: start !important;
        position: static !important;
        transform: none !important;
    }

    .bw-schedule-page .bw-actions-center .bw-nav-btn:last-child {
        grid-column: 3 !important;
        justify-self: end !important;
        position: static !important;
        transform: none !important;
    }

    .bw-schedule-page .bw-date-picker-wrap {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-self: center !important;
        align-self: center !important;
        width: auto !important;
        margin: 0 auto !important;
        z-index: 1 !important;
    }

    .bw-schedule-page .bw-date-split-input {
        width: 215px !important;
        min-width: 215px !important;
        max-width: 215px !important;
    }

    .bw-schedule-page .bw-nav-btn {
        z-index: 2 !important;
    }
}

/* ==========================================
   General Notes Highlighting
========================================== */
.bw-note-general {
    display: block !important;
    width: 100% !important;

    background: #fef3c7 !important;
    border-left: 5px solid #f59e0b !important;
    border-bottom: 1px solid rgba(15,23,42,0.08) !important;

    padding: 14px 12px !important;
    margin: 0 !important;

    color: #111827 !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
}

.bw-note-general-label {
    display: inline-block;
    margin-bottom: 8px;

    background: #f59e0b;
    color: #ffffff;

    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;

    padding: 4px 8px;
    border-radius: 999px;
}

.bw-notes-body .bw-note-row.bw-note-general {
    background: #fef3c7 !important;
    border-left: 6px solid #f59e0b !important;
    padding: 14px 14px !important;
    font-weight: 900 !important;
    color: #111827 !important;
}