/*
 * Scheduler calendar skin: layout, spacing and colors for the Monitor/CNC calendars.
 *
 * Moved here from WordPress "Additional CSS" (Customizer, WoodWorks theme) on 2026-11-15
 * so it is version-controlled and keeps working after the switch to the DWRR 2026 theme.
 * Recolored from the original blue/navy palette to the DWRR 2026 Figma browns; layout untouched.
 * Loads after frontend-style.css.
 */

/* Calculator CSS */

/* =========================================================
   CNC AVAILABILITY CALENDAR
   COMPLETE CLEAN UPDATED CSS
   Styling only — existing HTML, PHP and JS remain unchanged
========================================================= */

.wsp-calendar-shell {
    --wsp-primary: #b8856a;
    --wsp-navy: #4a3728;
    --wsp-navy-dark: #3a2b1f;
    --wsp-text: #4a3728;
    --wsp-muted: #6b5d52;
    --wsp-border: #e8dfd5;
    --wsp-available-bg: #faf5f0;
    --wsp-available-border: #d4a574;
    --wsp-taken-bg: #dff7d9;
    --wsp-taken-border: #91df86;

    width: 100% !important;
    max-width: 1440px !important;
    margin: 30px auto !important;
    padding: 0 20px !important;

    background: transparent !important;
    color: var(--wsp-text) !important;

    font-family: Arial, Helvetica, sans-serif !important;
    box-sizing: border-box !important;
}

.wsp-calendar-shell *,
.wsp-calendar-shell *::before,
.wsp-calendar-shell *::after {
    box-sizing: border-box !important;
}

.wsp-calendar-shell::before,
.wsp-calendar-shell::after {
    background: transparent !important;
}

/* =========================================================
   MAIN CARD
========================================================= */

.wsp-calendar-card {
    width: 100% !important;
    margin: 0 !important;

    background: #ffffff !important;
    border: 1px solid #e8dfd5 !important;
    border-radius: 18px !important;
    overflow: hidden !important;

    box-shadow: 0 14px 42px rgba(74, 55, 40, 0.08) !important;
}

/* =========================================================
   HEADER
========================================================= */

.wsp-calendar-header {
    padding: 26px 34px 22px !important;

    background: #ffffff !important;
    border-bottom: 1px solid var(--wsp-border) !important;
}

.wsp-calendar-title {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;

    margin: 0 0 7px !important;
    padding: 0 !important;
}

.wsp-calendar-dot {
    display: block !important;
    flex: 0 0 24px !important;

    width: 24px !important;
    height: 24px !important;

    background: var(--wsp-primary) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 5px rgba(184, 133, 106, 0.08) !important;
}

.wsp-calendar-title-text {
    margin: 0 !important;
    padding: 0 !important;

    color: var(--wsp-text) !important;
    font-size: 26px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -0.4px !important;
}

.wsp-calendar-subtitle {
    margin: 0 0 0 38px !important;
    padding: 0 !important;

    color: var(--wsp-text) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

/* =========================================================
   MAIN CONTENT
========================================================= */

.wsp-calendar-main {
    width: 100% !important;
    padding: 26px !important;

    background: #ffffff !important;
}

.wsp-calendar-panel {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;
}

/* =========================================================
   TOOLBAR
========================================================= */

.wsp-calendar-toolbar {
    position: relative !important;

    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 18px !important;

    width: 100% !important;
    min-height: 64px !important;

    margin: 0 0 24px !important;
    padding: 10px 12px !important;

    background: #ffffff !important;
    border: 1px solid var(--wsp-border) !important;
    border-radius: 15px !important;

    box-shadow: 0 3px 10px rgba(74, 55, 40, 0.04) !important;
}

.wsp-toolbar-group {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.wsp-toolbar-group-right {
    justify-content: flex-end !important;
}

.wsp-toolbar-label {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 180px !important;
    text-align: center !important;
}

.wsp-current-label {
    color: var(--wsp-text) !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

/* Previous and next buttons */
.wsp-nav-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

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

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;
    color: var(--wsp-text) !important;
    border: 1px solid #e5dbd0 !important;
    border-radius: 12px !important;

    font-size: 30px !important;
    line-height: 1 !important;
    font-weight: 400 !important;

    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.wsp-nav-btn:hover {
    background: #fbf7f2 !important;
    color: var(--wsp-primary) !important;
    border-color: var(--wsp-primary) !important;
}

/* Today button */
.wsp-nav-today {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 88px !important;
    height: 46px !important;

    margin: 0 !important;
    padding: 0 18px !important;

    background: #ffffff !important;
    color: var(--wsp-primary) !important;
    border: 1.5px solid var(--wsp-primary) !important;
    border-radius: 12px !important;

    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 700 !important;

    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.wsp-nav-today:hover {
    background: var(--wsp-primary) !important;
    color: #ffffff !important;
}

/* Date picker */
.wsp-date-jump {
    width: 166px !important;
    height: 46px !important;

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

    background: #ffffff !important;
    color: var(--wsp-text) !important;
    border: 1px solid #e5dbd0 !important;
    border-radius: 11px !important;

    font-size: 13px !important;
    font-weight: 600 !important;

    outline: none !important;
}

.wsp-date-jump:focus {
    border-color: var(--wsp-primary) !important;
    box-shadow: 0 0 0 3px rgba(184, 133, 106, 0.1) !important;
}

/* Print button */
.wsp-print-calendar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 46px !important;

    margin: 0 !important;
    padding: 0 18px !important;

    background: #ffffff !important;
    color: var(--wsp-text) !important;
    border: 1px solid #e5dbd0 !important;
    border-radius: 11px !important;

    font-size: 13px !important;
    font-weight: 700 !important;

    cursor: pointer !important;
}

.wsp-print-calendar:hover {
    color: var(--wsp-primary) !important;
    border-color: var(--wsp-primary) !important;
}

/* View buttons */
.wsp-view-toggle {
    display: inline-flex !important;
    align-items: center !important;

    min-height: 46px !important;
    padding: 3px !important;

    background: #ffffff !important;
    border: 1px solid #e5dbd0 !important;
    border-radius: 11px !important;

    overflow: hidden !important;
}

.wsp-view-toggle button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: 68px !important;
    height: 38px !important;

    margin: 0 !important;
    padding: 0 15px !important;

    background: transparent !important;
    color: var(--wsp-text) !important;
    border: 0 !important;
    border-right: 1px solid #e8dfd5 !important;
    border-radius: 8px !important;

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

    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.wsp-view-toggle button:last-child {
    border-right: 0 !important;
}

.wsp-view-toggle button:hover {
    background: #fbf7f2 !important;
    color: var(--wsp-primary) !important;
}

.wsp-view-toggle button.is-active {
    background: var(--wsp-primary) !important;
    color: #ffffff !important;

    box-shadow: 0 4px 10px rgba(184, 133, 106, 0.22) !important;
}

/* =========================================================
   MACHINE FILTER
========================================================= */

.wsp-machine-row {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;

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

.wsp-machine-label {
    margin: 0 !important;
    padding: 0 !important;

    color: var(--wsp-text) !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.wsp-machine-select {
    width: 250px !important;
    max-width: 100% !important;
    height: 46px !important;

    margin: 0 !important;
    padding: 0 45px 0 18px !important;

    background-color: #ffffff !important;
    color: var(--wsp-text) !important;
    border: 1px solid #e5dbd0 !important;
    border-radius: 24px !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    outline: none !important;
    cursor: pointer !important;
}

.wsp-machine-select:focus {
    border-color: var(--wsp-primary) !important;
    box-shadow: 0 0 0 3px rgba(184, 133, 106, 0.1) !important;
}

.wsp-helper-text {
    margin: 0 0 16px !important;
    padding: 0 !important;

    color: #5b4a3d !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

/* =========================================================
   CALENDAR GRID
========================================================= */

.wsp-calendar-grid {
    width: 100% !important;

    background: #ffffff !important;
    border: 1px solid #e8dfd5 !important;
    border-radius: 14px !important;

    overflow: hidden !important;

    --wsp-hour-height: 35px !important;
}

.wsp-grid-main {
    width: 100% !important;
    min-width: 0 !important;

    background: #ffffff !important;
}

/* Weekday header */
.wsp-grid-header-row:first-child {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;

    min-height: 52px !important;

    background: var(--wsp-navy) !important;
}

.wsp-grid-header-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-height: 52px !important;
    padding: 12px 8px !important;

    background: var(--wsp-navy) !important;
    color: #ffffff !important;
    border-left: 1px solid rgba(255, 255, 255, 0.22) !important;

    font-size: 15px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.wsp-grid-header-cell:first-child {
    border-left: 0 !important;
}

/* Month rows */
.wsp-grid-header-row:not(:first-child) {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(240px, auto) !important;

    background: #ffffff !important;
}

/* Day cells */
.wsp-grid-day-cell {
    position: relative !important;

    min-width: 0 !important;
    min-height: 240px !important;
    height: auto !important;

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

    background: #ffffff !important;
    border-top: 1px solid #e8dfd5 !important;
    border-left: 1px solid #e8dfd5 !important;

    overflow: hidden !important;
}

.wsp-grid-day-cell:nth-child(7n + 1) {
    border-left: 0 !important;
}

/* Remove original hourly lines from month view */
.wsp-canvas-month,
.wsp-time-grid.wsp-canvas-month {
    position: static !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border-radius: 0 !important;

    overflow: visible !important;
}

.wsp-canvas-month .wsp-time-line,
.wsp-time-grid.wsp-canvas-month .wsp-time-line {
    display: none !important;
}

/* =========================================================
   DATE NUMBER
========================================================= */

.wsp-day-label {
    position: absolute !important;
    top: 13px !important;
    right: 14px !important;
    left: auto !important;
    bottom: auto !important;

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

    width: auto !important;
    min-width: 25px !important;
    max-width: none !important;

    height: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;

    margin: 0 !important;
    padding: 0 5px !important;

    background: transparent !important;
    color: #4a3728 !important;
    border: 0 !important;
    border-radius: 50% !important;

    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 700 !important;

    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    transform: none !important;

    z-index: 6 !important;
}

.wsp-day-label.is-today {
    background: #ffffff !important;
    color: var(--wsp-primary) !important;
    border: 1.5px solid var(--wsp-primary) !important;
}

/* Outside month cells */
.wsp-grid-day-cell.is-outside {
    background: #fdfbf8 !important;
}

.wsp-grid-day-cell.is-outside .wsp-day-label {
    color: #a8998c !important;
}

.wsp-grid-day-cell.is-outside .wsp-slot-list,
.wsp-grid-day-cell.is-outside .wsp-day-summary {
    opacity: 0.82 !important;
}

/* =========================================================
   AVAILABILITY BADGE
   HORIZONTAL AND INLINE WITH DATE NUMBER
========================================================= */

.wsp-day-summary {
    position: absolute !important;
    top: 13px !important;
    right: 48px !important;
    left: auto !important;
    bottom: auto !important;

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

    width: auto !important;
    min-width: max-content !important;
    max-width: max-content !important;

    height: 25px !important;
    min-height: 25px !important;
    max-height: 25px !important;

    margin: 0 !important;
    padding: 0 9px !important;

    background: #ffffff !important;
    color: var(--wsp-primary) !important;
    border: 1px solid var(--wsp-primary) !important;
    border-radius: 999px !important;

    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 700 !important;

    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;

    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;

    transform: none !important;
    rotate: none !important;

    z-index: 5 !important;
}

.wsp-day-summary::before,
.wsp-day-summary::after {
    content: none !important;
    display: none !important;
}

/* =========================================================
   TIME SLOTS
========================================================= */

.wsp-slot-list {
    position: static !important;

    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
}

.wsp-slot-list-item {
    position: relative !important;

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

    width: 100% !important;
    min-height: 29px !important;

    margin: 0 !important;
    padding: 5px 7px !important;

    border-radius: 6px !important;

    cursor: pointer !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

.wsp-slot-list-item.is-available {
    background: var(--wsp-available-bg) !important;
    color: #4a3728 !important;
    border: 1px solid var(--wsp-available-border) !important;
}

.wsp-slot-list-item.is-taken,
.wsp-slot-list-item.is-booked,
.wsp-slot-list-item.is-unavailable {
    background: var(--wsp-taken-bg) !important;
    color: #145f20 !important;
    border: 1px solid var(--wsp-taken-border) !important;
}

.wsp-slot-list-item:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(74, 55, 40, 0.09) !important;
}

.wsp-slot-list-time {
    display: block !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: inherit !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    text-align: center !important;

    white-space: nowrap !important;
    writing-mode: horizontal-tb !important;
    transform: none !important;
}

/* =========================================================
   PUBLIC NOTE
========================================================= */

.wsp-public-note {
    margin: 16px 2px 0 !important;
    padding: 0 !important;

    color: #5b4a3d !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1180px) {
    .wsp-calendar-toolbar {
        grid-template-columns: 1fr auto !important;
    }

    .wsp-toolbar-label {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
    }

    .wsp-toolbar-group {
        grid-column: 1 !important;
    }

    .wsp-toolbar-group-right {
        grid-column: 2 !important;
    }

    .wsp-view-toggle button {
        min-width: 58px !important;
        padding: 0 10px !important;
    }

    .wsp-grid-header-row:not(:first-child) {
        grid-auto-rows: minmax(220px, auto) !important;
    }

    .wsp-grid-day-cell {
        min-height: 220px !important;
        padding: 48px 9px 10px !important;
    }

    .wsp-day-label {
        right: 9px !important;
    }

    .wsp-day-summary {
        right: 40px !important;
        padding: 0 6px !important;
        font-size: 9px !important;
    }

    .wsp-slot-list-time {
        font-size: 10px !important;
    }
}

/* =========================================================
   MOBILE
   Horizontal scrolling keeps the 7-column calendar readable
========================================================= */

@media (max-width: 767px) {
    .wsp-calendar-shell {
        width: 100% !important;
        max-width: 100% !important;

        margin: 15px auto !important;
        padding: 0 10px !important;

        background: transparent !important;
    }

    .wsp-calendar-card {
        border-radius: 14px !important;
    }

    .wsp-calendar-header {
        padding: 20px 18px 16px !important;
    }

    .wsp-calendar-title {
        gap: 10px !important;
    }

    .wsp-calendar-dot {
        flex-basis: 18px !important;
        width: 18px !important;
        height: 18px !important;
    }

    .wsp-calendar-title-text {
        font-size: 21px !important;
    }

    .wsp-calendar-subtitle {
        margin-left: 28px !important;
        font-size: 12px !important;
    }

    .wsp-calendar-main {
        padding: 15px !important;
    }

    .wsp-calendar-toolbar {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;

        padding: 12px !important;
    }

    .wsp-toolbar-label {
        order: -1 !important;

        width: 100% !important;
        min-width: 0 !important;
    }

    .wsp-current-label {
        font-size: 19px !important;
    }

    .wsp-toolbar-group,
    .wsp-toolbar-group-right {
        width: 100% !important;

        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .wsp-nav-btn {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
    }

    .wsp-nav-today {
        min-width: 80px !important;
        height: 42px !important;
    }

    .wsp-date-jump {
        width: 150px !important;
        height: 42px !important;
    }

    .wsp-print-calendar {
        display: none !important;
    }

    .wsp-view-toggle {
        width: 100% !important;
    }

    .wsp-view-toggle button {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    .wsp-machine-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .wsp-machine-select {
        width: 100% !important;
    }

    .wsp-calendar-grid {
        width: 100% !important;

        overflow-x: auto !important;
        overflow-y: hidden !important;

        -webkit-overflow-scrolling: touch !important;
    }

    .wsp-grid-main {
        width: 910px !important;
        min-width: 910px !important;
    }

    .wsp-grid-header-row:not(:first-child) {
        grid-auto-rows: minmax(215px, auto) !important;
    }

    .wsp-grid-day-cell {
        min-height: 215px !important;
        padding: 45px 9px 10px !important;
    }

    .wsp-day-label {
        top: 10px !important;
        right: 9px !important;

        min-width: 23px !important;

        height: 23px !important;
        min-height: 23px !important;
        max-height: 23px !important;

        padding: 0 4px !important;

        font-size: 12px !important;
    }

    .wsp-day-summary {
        top: 10px !important;
        right: 39px !important;

        width: auto !important;
        min-width: max-content !important;
        max-width: max-content !important;

        height: 23px !important;
        min-height: 23px !important;
        max-height: 23px !important;

        padding: 0 7px !important;

        font-size: 9px !important;
        line-height: 1 !important;

        white-space: nowrap !important;
        writing-mode: horizontal-tb !important;
        transform: none !important;
    }

    .wsp-slot-list {
        gap: 6px !important;
    }

    .wsp-slot-list-item {
        min-height: 27px !important;
        padding: 4px 5px !important;
    }

    .wsp-slot-list-time {
        font-size: 9px !important;
    }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {
    .wsp-calendar-shell {
        padding: 0 6px !important;
    }

    .wsp-calendar-main {
        padding: 10px !important;
    }

    .wsp-calendar-title-text {
        font-size: 19px !important;
    }

    .wsp-calendar-subtitle {
        margin-top: 8px !important;
        margin-left: 0 !important;
    }

    .wsp-toolbar-group {
        gap: 8px !important;
    }

    .wsp-date-jump {
        width: 100% !important;
    }

    .wsp-grid-main {
        width: 840px !important;
        min-width: 840px !important;
    }
}

/* =========================================================
   PRINT
========================================================= */

@media print {
    .wsp-calendar-shell {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;

        background: #ffffff !important;
    }

    .wsp-calendar-card {
        border: 0 !important;
        box-shadow: none !important;
    }

    .wsp-nav-btn,
    .wsp-nav-today,
    .wsp-date-jump,
    .wsp-print-calendar,
    .wsp-view-toggle,
    .wsp-machine-row {
        display: none !important;
    }

    .wsp-calendar-toolbar {
        display: flex !important;
        justify-content: center !important;

        border: 0 !important;
        box-shadow: none !important;
    }

    .wsp-calendar-grid {
        overflow: visible !important;
    }
}
/* =========================================================
   FINAL REFINEMENT PATCH
   Closer to reference + monitor select icon spacing fix
========================================================= */

/* Main outer spacing */
.wsp-calendar-shell {
    max-width: 1440px !important;
    padding: 0 8px !important;
}

.wsp-calendar-card {
    border-radius: 18px !important;
    box-shadow: none !important;
    border: 1px solid #e8dfd5 !important;
}

/* Header closer to reference */
.wsp-calendar-header {
    padding: 24px 28px 18px !important;
}

.wsp-calendar-title-text {
    font-size: 24px !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px !important;
}

.wsp-calendar-subtitle {
    margin-left: 40px !important;
    font-size: 13px !important;
    color: #5c4433 !important;
}

.wsp-calendar-main {
    padding: 22px !important;
}

/* Top toolbar */
.wsp-calendar-toolbar {
    min-height: 74px !important;
    padding: 12px 14px !important;
    margin-bottom: 26px !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    border: 1px solid #e8dfd5 !important;
}

.wsp-current-label {
    font-size: 22px !important;
    font-weight: 700 !important;
}

/* Navigation buttons */
.wsp-nav-btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 28px !important;
}

.wsp-nav-today {
    min-width: 94px !important;
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

/* Date field */
.wsp-date-jump {
    width: 136px !important;
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    padding: 0 38px 0 14px !important;
}

/* Print button */
.wsp-print-calendar {
    height: 44px !important;
    border-radius: 12px !important;
    padding: 0 18px !important;
}

/* View buttons */
.wsp-view-toggle {
    min-height: 44px !important;
    border-radius: 12px !important;
    padding: 2px !important;
}

.wsp-view-toggle button {
    min-width: 62px !important;
    height: 38px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

/* Filter row */
.wsp-machine-row {
    gap: 16px !important;
    margin: 0 0 10px !important;
}

.wsp-machine-label {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #4a3728 !important;
}

/* =========================================================
   SHARK HD SELECT — ICON BREATHING SPACE FIX
========================================================= */

.wsp-machine-select {
    width: 275px !important;
    max-width: 100% !important;
    height: 48px !important;

    padding: 0 56px 0 18px !important; /* right breathing space added */
    border-radius: 24px !important;
    border: 1px solid #e8dfd5 !important;
    background-color: #ffffff !important;
    color: #4a3728 !important;

    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;

    /* custom dropdown icon with proper spacing */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M2 2l6 6 6-6' fill='none' stroke='%23102047' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-size: 14px 9px !important;
    background-position: right 18px center !important;
}

.wsp-machine-select:hover {
    border-color: #d9cbbd !important;
}

.wsp-machine-select:focus {
    border-color: #b8856a !important;
    box-shadow: 0 0 0 3px rgba(184, 133, 106, 0.08) !important;
}

/* helper text */
.wsp-helper-text {
    font-size: 13px !important;
    color: #6b4f38 !important;
    margin-bottom: 14px !important;
}

/* Calendar grid closer to reference */
.wsp-calendar-grid {
    border-radius: 14px !important;
    border: 1px solid #e8dfd5 !important;
}

.wsp-grid-header-row:first-child {
    min-height: 58px !important;
}

.wsp-grid-header-cell {
    min-height: 58px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
}

.wsp-grid-header-row:not(:first-child) {
    grid-auto-rows: minmax(235px, auto) !important;
}

.wsp-grid-day-cell {
    min-height: 235px !important;
    padding: 36px 12px 12px !important;
}

/* Day numbers */
.wsp-day-label {
    top: 10px !important;
    right: 12px !important;
    min-width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    max-height: 22px !important;
    padding: 0 3px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    border-radius: 50% !important;
}

/* available badge inline with date */
.wsp-day-summary {
    top: 10px !important;
    left: 10px !important;
    right: auto !important;

    height: 21px !important;
    min-height: 21px !important;
    max-height: 21px !important;

    padding: 0 7px !important;
    border-radius: 999px !important;

    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.wsp-day-summary::before,
.wsp-day-summary::after {
    content: none !important;
    display: none !important;
}

/* Slot buttons */
.wsp-slot-list {
    gap: 6px !important;
}

.wsp-slot-list-item {
    min-height: 29px !important;
    border-radius: 5px !important;
    padding: 4px 6px !important;
}

.wsp-slot-list-time {
    font-size: 10px !important;
    font-weight: 700 !important;
}

/* =========================================================
   MOBILE RESPONSIVE
========================================================= */

@media (max-width: 767px) {
    .wsp-calendar-shell {
        padding: 0 6px !important;
        margin: 12px auto !important;
    }

    .wsp-calendar-header {
        padding: 18px 16px 14px !important;
    }

    .wsp-calendar-title-text {
        font-size: 20px !important;
    }

    .wsp-calendar-subtitle {
        margin-left: 28px !important;
        font-size: 12px !important;
    }

    .wsp-calendar-main {
        padding: 14px !important;
    }

    .wsp-calendar-toolbar {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        padding: 12px !important;
    }

    .wsp-toolbar-label {
        width: 100% !important;
        order: -1 !important;
    }

    .wsp-current-label {
        font-size: 19px !important;
    }

    .wsp-toolbar-group,
    .wsp-toolbar-group-right {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .wsp-nav-btn {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
    }

    .wsp-nav-today {
        min-width: 82px !important;
        height: 40px !important;
    }

    .wsp-date-jump {
        width: 145px !important;
        height: 40px !important;
    }

    .wsp-print-calendar {
        display: none !important;
    }

    .wsp-view-toggle {
        width: 100% !important;
    }

    .wsp-view-toggle button {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    .wsp-machine-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .wsp-machine-select {
        width: 100% !important;
        height: 46px !important;
        padding: 0 52px 0 16px !important;
        background-position: right 16px center !important;
    }

    .wsp-calendar-grid {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .wsp-grid-main {
        width: 910px !important;
        min-width: 910px !important;
    }

    .wsp-grid-header-row:not(:first-child) {
        grid-auto-rows: minmax(210px, auto) !important;
    }

    .wsp-grid-day-cell {
        min-height: 210px !important;
        padding: 34px 8px 10px !important;
    }

    .wsp-day-label {
        top: 8px !important;
        right: 8px !important;
        min-width: 20px !important;
        height: 20px !important;
        min-height: 20px !important;
        max-height: 20px !important;
        font-size: 11px !important;
    }

    .wsp-day-summary {
        top: 8px !important;
        left: 8px !important;
        height: 20px !important;
        min-height: 20px !important;
        max-height: 20px !important;
        padding: 0 6px !important;
        font-size: 9px !important;
    }

    .wsp-slot-list-item {
        min-height: 26px !important;
        padding: 4px 5px !important;
    }

    .wsp-slot-list-time {
        font-size: 9px !important;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .wsp-calendar-title-text {
        font-size: 18px !important;
    }

    .wsp-calendar-subtitle {
        margin-left: 0 !important;
        margin-top: 8px !important;
    }

    .wsp-calendar-main {
        padding: 10px !important;
    }

    .wsp-grid-main {
        width: 840px !important;
        min-width: 840px !important;
    }
}
/* =========================================================
   FINAL PATCH
   - Remove Print button
   - Fix date picker icon spacing
   - Center align calendar
========================================================= */

/* 1) calendar wrapper center align */
.wsp-calendar-shell {
    margin-left: auto !important;
    margin-right: auto !important;
}

.wsp-calendar-card {
    margin-left: auto !important;
    margin-right: auto !important;
}

.wsp-calendar-main {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* agar outer page builder wrapper left pull kar raha ho */
.wsp-calendar-panel,
.wsp-calendar-grid {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 2) remove print button completely */
.wsp-print-calendar {
    display: none !important;
}

/* 3) toolbar ko balanced rakho after print removal */
.wsp-calendar-toolbar {
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
}

.wsp-toolbar-group {
    justify-content: flex-start !important;
}

.wsp-toolbar-label {
    justify-content: center !important;
    text-align: center !important;
}

.wsp-toolbar-group-right {
    justify-content: flex-end !important;
}

/* 4) date input spacing fix */
.wsp-date-jump {
    width: 150px !important;
    height: 44px !important;
    padding: 0 16px 0 16px !important; /* right side breathing space */
    border-radius: 12px !important;
    background-position: right 14px center !important;
}

/* native calendar icon spacing */
.wsp-date-jump::-webkit-calendar-picker-indicator {
    margin-left: 10px !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

/* firefox / generic fallback feel */
.wsp-date-jump::-ms-clear,
.wsp-date-jump::-ms-reveal {
    display: none !important;
}

/* 5) right side controls ko neat gap */
.wsp-toolbar-group-right {
    gap: 10px !important;
}

/* 6) mobile responsive */
@media (max-width: 767px) {
    .wsp-calendar-shell {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .wsp-calendar-toolbar {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .wsp-toolbar-label {
        width: 100% !important;
        order: -1 !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .wsp-toolbar-group,
    .wsp-toolbar-group-right {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .wsp-date-jump {
        width: 145px !important;
        padding: 0 40px 0 14px !important;
    }

    .wsp-date-jump::-webkit-calendar-picker-indicator {
        margin-left: 8px !important;
    }
}
/* =========================================================
   BREATHING SPACE PATCH
========================================================= */

/* day cell ke andar zyada breathing space */
.wsp-grid-day-cell {
    padding: 42px 14px 16px !important; /* top right bottom left */
}

/* date number thora andar */
.wsp-day-label {
    top: 12px !important;
    right: 12px !important;
}

/* available badge thora andar */
.wsp-day-summary {
    top: 12px !important;
    left: 12px !important;
}

/* slots ke liye inner spacing */
.wsp-slot-list {
    margin-top: 4px !important;
    padding: 0 2px 2px !important;
    gap: 7px !important;
}

.wsp-slot-list-item {
    min-height: 31px !important;
    padding: 5px 8px !important;
}

/* tablet */
@media (max-width: 1180px) {
    .wsp-grid-day-cell {
        padding: 40px 12px 14px !important;
    }

    .wsp-day-label {
        top: 10px !important;
        right: 10px !important;
    }

    .wsp-day-summary {
        top: 10px !important;
        left: 10px !important;
    }

    .wsp-slot-list {
        padding: 0 1px 2px !important;
    }
}

/* mobile */
@media (max-width: 767px) {
    .wsp-grid-day-cell {
        padding: 38px 10px 12px !important;
    }

    .wsp-day-label {
        top: 8px !important;
        right: 8px !important;
    }

    .wsp-day-summary {
        top: 8px !important;
        left: 8px !important;
    }

    .wsp-slot-list {
        margin-top: 2px !important;
        padding: 0 1px 1px !important;
        gap: 6px !important;
    }

    .wsp-slot-list-item {
        min-height: 28px !important;
        padding: 4px 6px !important;
    }
}

/* =========================================================
   CNC CALENDAR — FINAL WEEK VIEW FIX
   Keep original hourly positioning.
   Move slots down to create space for availability badge.
========================================================= */

/* Detect week view from either shell attribute or active button */
.wsp-calendar-shell[data-view="week"] .wsp-grid-day-cell,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-grid-day-cell {
    position: relative !important;

    min-height: calc(
        (var(--wsp-hours-count, 6) * var(--wsp-hour-height, 40px)) + 52px
    ) !important;

    height: auto !important;
    padding: 4px 14px 14px !important;

    background: #ffffff !important;
    overflow: hidden !important;
}

/* Week date is already shown inside the dark-blue header */
.wsp-calendar-shell[data-view="week"] .wsp-day-label,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-day-label {
    display: none !important;
}

/* Preserve the original hourly canvas */
.wsp-calendar-shell[data-view="week"] .wsp-time-grid,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-time-grid {
    position: relative !important;
    display: block !important;

    width: 100% !important;

    height: calc(
        (var(--wsp-hours-count, 6) * var(--wsp-hour-height, 40px)) + 48px
    ) !important;

    min-height: calc(
        (var(--wsp-hours-count, 6) * var(--wsp-hour-height, 40px)) + 48px
    ) !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #ffffff !important;
    overflow: visible !important;
}

/* Keep timeline lines behind slots */
.wsp-calendar-shell[data-view="week"] .wsp-time-line,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-time-line {
    z-index: 0 !important;
    pointer-events: none !important;
}

/* =========================================================
   AVAILABILITY BADGE
========================================================= */

.wsp-calendar-shell[data-view="week"] .wsp-day-summary,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-day-summary {
    position: absolute !important;

    top: 12px !important;
    left: 14px !important;
    right: auto !important;
    bottom: auto !important;

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

    width: auto !important;
    min-width: max-content !important;
    max-width: calc(100% - 28px) !important;

    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;

    margin: 0 !important;
    padding: 0 9px !important;

    background: #ffffff !important;
    color: #b8856a !important;

    border: 1px solid #b8856a !important;
    border-radius: 999px !important;

    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-align: center !important;

    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;

    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;

    transform: none !important;
    translate: none !important;

    overflow: visible !important;
    z-index: 30 !important;
}

.wsp-calendar-shell[data-view="week"] .wsp-day-summary::before,
.wsp-calendar-shell[data-view="week"] .wsp-day-summary::after,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-day-summary::before,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-day-summary::after {
    content: none !important;
    display: none !important;
}

/* =========================================================
   SLOT LIST
   Push the complete list below the badge.
========================================================= */

.wsp-calendar-shell[data-view="week"] .wsp-time-grid > .wsp-slot-list,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-time-grid > .wsp-slot-list {
    position: absolute !important;

    top: 48px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;

    display: block !important;

    width: 100% !important;
    height: calc(
        var(--wsp-hours-count, 6) * var(--wsp-hour-height, 40px)
    ) !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;
    translate: none !important;

    overflow: visible !important;
    z-index: 10 !important;
}

/* Keep original hour-based slot positioning */
.wsp-calendar-shell[data-view="week"] .wsp-slot-list-item,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-slot-list-item {
    width: calc(100% - 8px) !important;
    max-width: calc(100% - 8px) !important;

    margin-left: 4px !important;
    margin-right: 4px !important;

    min-height: 32px !important;
    padding: 5px 7px !important;

    border-radius: 6px !important;

    overflow: visible !important;
    z-index: 12 !important;
}

/* Never clip the time text */
.wsp-calendar-shell[data-view="week"] .wsp-slot-list-time,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-slot-list-time {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    text-align: center !important;

    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;

    transform: none !important;
}

/* Hide badge on days that contain no slots */
.wsp-calendar-shell[data-view="week"]
.wsp-grid-day-cell:not(:has(.wsp-slot-list-item))
.wsp-day-summary,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
)
.wsp-grid-day-cell:not(:has(.wsp-slot-list-item))
.wsp-day-summary {
    display: none !important;
}

/* Equal week columns */
.wsp-calendar-shell[data-view="week"] .wsp-grid-header-row,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-grid-header-row {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1180px) {
    .wsp-calendar-shell[data-view="week"] .wsp-grid-day-cell,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-grid-day-cell {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-day-summary,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-day-summary {
        left: 10px !important;
        max-width: calc(100% - 20px) !important;

        height: 23px !important;
        min-height: 23px !important;
        max-height: 23px !important;

        padding: 0 7px !important;
        font-size: 9px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-slot-list-time,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-slot-list-time {
        font-size: 9px !important;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    .wsp-calendar-shell[data-view="week"] .wsp-calendar-grid,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-calendar-grid {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-grid-main,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-grid-main {
        width: 980px !important;
        min-width: 980px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-grid-day-cell,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-grid-day-cell {
        padding-right: 9px !important;
        padding-left: 9px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-day-summary,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-day-summary {
        top: 10px !important;
        left: 9px !important;

        max-width: calc(100% - 18px) !important;

        height: 22px !important;
        min-height: 22px !important;
        max-height: 22px !important;

        padding: 0 6px !important;
        font-size: 9px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-time-grid > .wsp-slot-list,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-time-grid > .wsp-slot-list {
        top: 44px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-slot-list-item,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-slot-list-item {
        min-height: 30px !important;
        padding: 4px 6px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-slot-list-time,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-slot-list-time {
        font-size: 9px !important;
    }
}
/* =========================================================
   WEEK VIEW — FINAL ALIGNMENT & SPACING POLISH
========================================================= */

/* Week cell inner spacing */
.wsp-calendar-shell[data-view="week"] .wsp-grid-day-cell,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-grid-day-cell {
    padding: 10px 16px 18px !important;
}

/* Keep content centered and equal inside every column */
.wsp-calendar-shell[data-view="week"] .wsp-time-grid,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-time-grid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Availability badge aligned with slot button left edge */
.wsp-calendar-shell[data-view="week"] .wsp-day-summary,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-day-summary {
    top: 18px !important;
    left: 8px !important;
    right: auto !important;

    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;

    padding: 0 10px !important;

    font-size: 10px !important;
    line-height: 1 !important;

    text-align: center !important;
}

/* Slot list spacing */
.wsp-calendar-shell[data-view="week"] .wsp-time-grid > .wsp-slot-list,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-time-grid > .wsp-slot-list {
    top: 56px !important;

    left: 8px !important;
    right: 8px !important;

    width: auto !important;
    height: auto !important;

    padding: 0 !important;
}

/* Clean gap between every time slot */
.wsp-calendar-shell[data-view="week"] .wsp-slot-list-item,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-slot-list-item {
    width: 100% !important;
    max-width: 100% !important;

    height: 34px !important;
    min-height: 34px !important;

    margin: 0 0 7px !important;
    padding: 5px 8px !important;

    border-radius: 6px !important;
}

/* Remove gap after last slot */
.wsp-calendar-shell[data-view="week"] .wsp-slot-list-item:last-child,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-slot-list-item:last-child {
    margin-bottom: 0 !important;
}

/* Keep text properly centered */
.wsp-calendar-shell[data-view="week"] .wsp-slot-list-time,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-slot-list-time {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    font-size: 10px !important;
    line-height: 1 !important;
    text-align: center !important;

    white-space: nowrap !important;
}

/* Give the complete week row enough bottom space */
.wsp-calendar-shell[data-view="week"] .wsp-grid-header-row:not(:first-child),
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
) .wsp-grid-header-row:not(:first-child) {
    grid-auto-rows: minmax(330px, auto) !important;
}

/* Empty columns stay visually clean */
.wsp-calendar-shell[data-view="week"]
.wsp-grid-day-cell:not(:has(.wsp-slot-list-item)),
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="week"].is-active
)
.wsp-grid-day-cell:not(:has(.wsp-slot-list-item)) {
    padding: 10px 16px 18px !important;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1180px) {
    .wsp-calendar-shell[data-view="week"] .wsp-grid-day-cell,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-grid-day-cell {
        padding: 9px 12px 16px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-day-summary,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-day-summary {
        left: 6px !important;
        top: 16px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-time-grid > .wsp-slot-list,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-time-grid > .wsp-slot-list {
        top: 52px !important;
        left: 6px !important;
        right: 6px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-slot-list-item,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-slot-list-item {
        height: 32px !important;
        min-height: 32px !important;
        margin-bottom: 6px !important;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    .wsp-calendar-shell[data-view="week"] .wsp-grid-day-cell,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-grid-day-cell {
        padding: 8px 10px 14px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-day-summary,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-day-summary {
        top: 14px !important;
        left: 5px !important;

        height: 22px !important;
        min-height: 22px !important;
        max-height: 22px !important;

        padding: 0 7px !important;
        font-size: 9px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-time-grid > .wsp-slot-list,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-time-grid > .wsp-slot-list {
        top: 48px !important;
        left: 5px !important;
        right: 5px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-slot-list-item,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-slot-list-item {
        height: 30px !important;
        min-height: 30px !important;
        margin-bottom: 6px !important;
        padding: 4px 6px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-slot-list-time,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="week"].is-active
    ) .wsp-slot-list-time {
        font-size: 9px !important;
    }
}

/* =========================================================
   DAY VIEW — REMOVE INNER SCROLL + ADD CLEAN SPACING
========================================================= */

/* Calendar grid ko full content height lene dein */
.wsp-calendar-shell[data-view="day"] .wsp-calendar-grid,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-calendar-grid {
    height: auto !important;
    min-height: 560px !important;
    max-height: none !important;

    overflow-x: hidden !important;
    overflow-y: visible !important;
}

/* Main grid should never create its own scrollbar */
.wsp-calendar-shell[data-view="day"] .wsp-grid-main,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-grid-main {
    height: auto !important;
    min-height: 560px !important;
    max-height: none !important;

    overflow: visible !important;
}

/* Content row height increased */
.wsp-calendar-shell[data-view="day"] .wsp-grid-header-row:not(:first-child),
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-grid-header-row:not(:first-child) {
    grid-auto-rows: 490px !important;

    height: 490px !important;
    min-height: 490px !important;
    max-height: none !important;

    overflow: visible !important;
}

/* Day cell height */
.wsp-calendar-shell[data-view="day"] .wsp-grid-day-cell,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-grid-day-cell {
    height: 490px !important;
    min-height: 490px !important;
    max-height: none !important;

    padding: 18px 20px 24px !important;

    overflow: visible !important;
}

/* Inner time canvas */
.wsp-calendar-shell[data-view="day"] .wsp-time-grid,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-time-grid {
    height: 448px !important;
    min-height: 448px !important;
    max-height: none !important;

    padding: 8px 0 14px !important;

    overflow: visible !important;
}

/* Slot positioning layer */
.wsp-calendar-shell[data-view="day"] .wsp-time-grid > .wsp-slot-list,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-time-grid > .wsp-slot-list {
    height: 448px !important;
    min-height: 448px !important;

    overflow: visible !important;
}

/* Narrow centered cards with breathing space */
.wsp-calendar-shell[data-view="day"] .wsp-slot-list-item,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-slot-list-item {
    left: 50% !important;
    right: auto !important;

    width: 33% !important;
    min-width: 300px !important;
    max-width: 460px !important;

    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;

    margin: 7px 0 !important;
    padding: 0 18px !important;

    border-radius: 9px !important;

    transform: translateX(-50%) !important;
}

/* Ensure slot labels stay centered */
.wsp-calendar-shell[data-view="day"] .wsp-slot-list-time,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-slot-list-time {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    font-size: 14px !important;
    line-height: 1.2 !important;
}

/* Remove any inherited internal scrollbar */
.wsp-calendar-shell[data-view="day"] .wsp-grid-day-cell,
.wsp-calendar-shell[data-view="day"] .wsp-time-grid,
.wsp-calendar-shell[data-view="day"] .wsp-slot-list,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-grid-day-cell,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-time-grid,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-slot-list {
    scrollbar-width: none !important;
}

.wsp-calendar-shell[data-view="day"] .wsp-grid-day-cell::-webkit-scrollbar,
.wsp-calendar-shell[data-view="day"] .wsp-time-grid::-webkit-scrollbar,
.wsp-calendar-shell[data-view="day"] .wsp-slot-list::-webkit-scrollbar,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-grid-day-cell::-webkit-scrollbar,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-time-grid::-webkit-scrollbar,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-slot-list::-webkit-scrollbar {
    display: none !important;
}

/* Tablet */
@media (max-width: 1180px) {
    .wsp-calendar-shell[data-view="day"] .wsp-slot-list-item,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="day"].is-active
    ) .wsp-slot-list-item {
        width: 50% !important;
        min-width: 280px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .wsp-calendar-shell[data-view="day"] .wsp-grid-day-cell,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="day"].is-active
    ) .wsp-grid-day-cell {
        padding: 14px 12px 20px !important;
    }

    .wsp-calendar-shell[data-view="day"] .wsp-slot-list-item,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="day"].is-active
    ) .wsp-slot-list-item {
        width: calc(100% - 24px) !important;
        min-width: 0 !important;
        max-width: none !important;

        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;

        margin: 9px 0 !important;
    }
}

/* =========================================================
   DAY VIEW — DATE ONE LINE + SLOT SPACING FIX
========================================================= */

/* Day header ko full width do */
.wsp-calendar-shell[data-view="day"] .wsp-grid-header-row:first-child,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-grid-header-row:first-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
}

/* Date heading ek hi line mein */
.wsp-calendar-shell[data-view="day"] .wsp-grid-header-cell,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-grid-header-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;

    min-height: 58px !important;
    padding: 0 18px !important;

    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-align: left !important;

    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    text-overflow: clip !important;
    overflow: visible !important;
}

/* Day view canvas */
.wsp-calendar-shell[data-view="day"] .wsp-time-grid,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-time-grid {
    height: 420px !important;
    min-height: 420px !important;
    overflow: visible !important;
}

/* Slot layer */
.wsp-calendar-shell[data-view="day"] .wsp-time-grid > .wsp-slot-list,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-time-grid > .wsp-slot-list {
    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 420px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: visible !important;
}

/* Slots: centered, 33% width and visible spacing */
.wsp-calendar-shell[data-view="day"] .wsp-slot-list-item,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-slot-list-item {
    position: absolute !important;

    left: 50% !important;
    right: auto !important;

    width: 33% !important;
    min-width: 300px !important;
    max-width: 460px !important;

    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;

    margin: 0 !important;
    padding: 0 16px !important;

    border-radius: 8px !important;

    /*
     * Inline top values remain 0, 70, 140...
     * 8px vertical offset gives:
     * 8px top space + 12px bottom space per hourly row.
     */
    transform: translate(-50%, 8px) !important;

    overflow: hidden !important;
}

/* Slot text */
.wsp-calendar-shell[data-view="day"] .wsp-slot-list-time,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-slot-list-time {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 700 !important;
    text-align: center !important;

    white-space: nowrap !important;
    overflow: visible !important;
}

/* Remove inner scrollbar */
.wsp-calendar-shell[data-view="day"] .wsp-calendar-grid,
.wsp-calendar-shell[data-view="day"] .wsp-grid-main,
.wsp-calendar-shell[data-view="day"] .wsp-grid-day-cell,
.wsp-calendar-shell[data-view="day"] .wsp-time-grid,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-calendar-grid,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-grid-main,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-grid-day-cell,
.wsp-calendar-shell:has(
    .wsp-view-toggle button[data-view="day"].is-active
) .wsp-time-grid {
    overflow-y: visible !important;
    max-height: none !important;
}

/* Tablet */
@media (max-width: 1180px) {
    .wsp-calendar-shell[data-view="day"] .wsp-slot-list-item,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="day"].is-active
    ) .wsp-slot-list-item {
        width: 48% !important;
        min-width: 280px !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .wsp-calendar-shell[data-view="day"] .wsp-grid-header-cell,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="day"].is-active
    ) .wsp-grid-header-cell {
        padding: 0 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }

    .wsp-calendar-shell[data-view="day"] .wsp-slot-list-item,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="day"].is-active
    ) .wsp-slot-list-item {
        width: calc(100% - 28px) !important;
        min-width: 0 !important;
        max-width: none !important;

        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;

        transform: translate(-50%, 10px) !important;
    }

    .wsp-calendar-shell[data-view="day"] .wsp-slot-list-time,
    .wsp-calendar-shell:has(
        .wsp-view-toggle button[data-view="day"].is-active
    ) .wsp-slot-list-time {
        font-size: 12px !important;
    }
}

.wsp-calendar-shell {
    width: 100% !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.wsp-calendar-shell,
.wsp-calendar-card,
.wsp-calendar-main,
.wsp-calendar-panel {
    min-width: 0 !important;
}

/* ---------------- TABLET ---------------- */
@media (max-width: 1024px) {
    .wsp-calendar-shell {
        padding: 0 12px !important;
        margin-top: 18px !important;
        margin-bottom: 18px !important;
    }

    .wsp-calendar-main {
        padding: 18px !important;
    }

    .wsp-calendar-toolbar {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 14px !important;
    }

    .wsp-toolbar-label {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .wsp-toolbar-group,
    .wsp-toolbar-group-right {
        grid-column: 1 !important;
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

    .wsp-machine-row {
        flex-wrap: wrap !important;
    }

    .wsp-machine-select {
        max-width: 100% !important;
    }
}

/* ---------------- MOBILE COMMON ---------------- */
@media (max-width: 767px) {
    .wsp-calendar-shell {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px auto !important;
        padding: 0 8px !important;
    }

    .wsp-calendar-card {
        width: 100% !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .wsp-calendar-header {
        padding: 18px 16px 15px !important;
    }

    .wsp-calendar-title {
        gap: 10px !important;
        align-items: center !important;
    }

    .wsp-calendar-dot {
        width: 18px !important;
        height: 18px !important;
        flex: 0 0 18px !important;
    }

    .wsp-calendar-title-text {
        font-size: 20px !important;
        line-height: 1.2 !important;
    }

    .wsp-calendar-subtitle {
        margin: 8px 0 0 28px !important;
        font-size: 12px !important;
        line-height: 1.45 !important;
    }

    .wsp-calendar-main {
        padding: 12px !important;
    }

    .wsp-calendar-toolbar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        min-height: 0 !important;
        padding: 12px !important;
        margin-bottom: 16px !important;
    }

    .wsp-toolbar-label {
        order: 1 !important;
        width: 100% !important;
        min-width: 0 !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .wsp-current-label {
        width: 100% !important;
        font-size: 18px !important;
        line-height: 1.25 !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .wsp-toolbar-group {
        order: 2 !important;
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }

    .wsp-toolbar-group-right {
        order: 3 !important;
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px !important;
        flex-wrap: wrap !important;
    }

    .wsp-nav-btn {
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        font-size: 24px !important;
    }

    .wsp-nav-today {
        min-width: 78px !important;
        height: 40px !important;
        padding: 0 14px !important;
    }

    .wsp-date-jump {
        width: 100% !important;
        max-width: 190px !important;
        height: 42px !important;
        padding: 0 42px 0 14px !important;
    }

    .wsp-date-jump::-webkit-calendar-picker-indicator {
        margin-left: 8px !important;
    }

    .wsp-print-calendar {
        display: none !important;
    }

    .wsp-view-toggle {
        width: 100% !important;
        min-height: 42px !important;
    }

    .wsp-view-toggle button {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        height: 36px !important;
        padding: 0 8px !important;
        font-size: 12px !important;
    }

    .wsp-machine-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
        margin-bottom: 10px !important;
    }

    .wsp-machine-label {
        width: 100% !important;
        font-size: 13px !important;
    }

    .wsp-machine-select {
        width: 100% !important;
        max-width: none !important;
        height: 44px !important;
        padding: 0 50px 0 16px !important;
        background-position: right 16px center !important;
    }

    .wsp-helper-text {
        font-size: 12px !important;
        line-height: 1.45 !important;
        margin-bottom: 12px !important;
    }

    .wsp-public-note {
        font-size: 11px !important;
        margin-top: 12px !important;
    }
}

/* =========================================================
   MOBILE MONTH VIEW
   Preserve all 7 columns with smooth horizontal scrolling.
========================================================= */
@media (max-width: 767px) {
    .wsp-calendar-shell[data-view="month"] .wsp-calendar-grid,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="month"].is-active) .wsp-calendar-grid {
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
    }

    .wsp-calendar-shell[data-view="month"] .wsp-grid-main,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="month"].is-active) .wsp-grid-main {
        width: 840px !important;
        min-width: 840px !important;
    }

    .wsp-calendar-shell[data-view="month"] .wsp-grid-header-row,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="month"].is-active) .wsp-grid-header-row {
        grid-template-columns: repeat(7, minmax(120px, 1fr)) !important;
    }

    .wsp-calendar-shell[data-view="month"] .wsp-grid-header-cell,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="month"].is-active) .wsp-grid-header-cell {
        min-height: 44px !important;
        padding: 10px 6px !important;
        font-size: 12px !important;
    }

    .wsp-calendar-shell[data-view="month"] .wsp-grid-header-row:not(:first-child),
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="month"].is-active) .wsp-grid-header-row:not(:first-child) {
        grid-auto-rows: minmax(210px, auto) !important;
    }

    .wsp-calendar-shell[data-view="month"] .wsp-grid-day-cell,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="month"].is-active) .wsp-grid-day-cell {
        min-height: 210px !important;
        padding: 38px 8px 10px !important;
        overflow: hidden !important;
    }

    .wsp-calendar-shell[data-view="month"] .wsp-day-label,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="month"].is-active) .wsp-day-label {
        top: 8px !important;
        right: 8px !important;
        min-width: 20px !important;
        height: 20px !important;
        min-height: 20px !important;
        max-height: 20px !important;
        font-size: 11px !important;
    }

    .wsp-calendar-shell[data-view="month"] .wsp-day-summary,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="month"].is-active) .wsp-day-summary {
        top: 8px !important;
        left: 8px !important;
        right: auto !important;
        height: 20px !important;
        min-height: 20px !important;
        max-height: 20px !important;
        padding: 0 6px !important;
        font-size: 9px !important;
        white-space: nowrap !important;
    }

    .wsp-calendar-shell[data-view="month"] .wsp-slot-list,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="month"].is-active) .wsp-slot-list {
        gap: 5px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .wsp-calendar-shell[data-view="month"] .wsp-slot-list-item,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="month"].is-active) .wsp-slot-list-item {
        width: 100% !important;
        min-height: 25px !important;
        padding: 4px !important;
    }

    .wsp-calendar-shell[data-view="month"] .wsp-slot-list-time,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="month"].is-active) .wsp-slot-list-time {
        font-size: 9px !important;
    }
}

/* =========================================================
   MOBILE WEEK VIEW
   Keep the seven-day layout scrollable and all slots readable.
========================================================= */
@media (max-width: 767px) {
    .wsp-calendar-shell[data-view="week"] .wsp-calendar-grid,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="week"].is-active) .wsp-calendar-grid {
        width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-grid-main,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="week"].is-active) .wsp-grid-main {
        width: 910px !important;
        min-width: 910px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-grid-header-row,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="week"].is-active) .wsp-grid-header-row {
        grid-template-columns: repeat(7, minmax(130px, 1fr)) !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-grid-header-cell,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="week"].is-active) .wsp-grid-header-cell {
        min-height: 52px !important;
        padding: 10px 6px !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-grid-header-row:not(:first-child),
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="week"].is-active) .wsp-grid-header-row:not(:first-child) {
        grid-auto-rows: minmax(320px, auto) !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-grid-day-cell,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="week"].is-active) .wsp-grid-day-cell {
        min-height: 320px !important;
        padding: 8px !important;
        overflow: hidden !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-time-grid,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="week"].is-active) .wsp-time-grid {
        min-height: 300px !important;
        overflow: visible !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-day-summary,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="week"].is-active) .wsp-day-summary {
        top: 12px !important;
        left: 8px !important;
        right: auto !important;
        height: 22px !important;
        min-height: 22px !important;
        max-height: 22px !important;
        padding: 0 6px !important;
        font-size: 9px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-time-grid > .wsp-slot-list,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="week"].is-active) .wsp-time-grid > .wsp-slot-list {
        top: 46px !important;
        left: 6px !important;
        right: 6px !important;
        width: auto !important;
        height: auto !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-slot-list-item,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="week"].is-active) .wsp-slot-list-item {
        width: 100% !important;
        max-width: 100% !important;
        height: 30px !important;
        min-height: 30px !important;
        margin: 0 0 6px !important;
        padding: 4px 5px !important;
    }

    .wsp-calendar-shell[data-view="week"] .wsp-slot-list-time,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="week"].is-active) .wsp-slot-list-time {
        font-size: 9px !important;
        white-space: nowrap !important;
    }
}

/* =========================================================
   MOBILE DAY VIEW
   Single-column, no inner scrollbar, full readable slots.
========================================================= */
@media (max-width: 767px) {
    .wsp-calendar-shell[data-view="day"] .wsp-calendar-grid,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="day"].is-active) .wsp-calendar-grid {
        width: 100% !important;
        height: auto !important;
        min-height: 490px !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .wsp-calendar-shell[data-view="day"] .wsp-grid-main,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="day"].is-active) .wsp-grid-main {
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 490px !important;
        overflow: visible !important;
    }

    .wsp-calendar-shell[data-view="day"] .wsp-grid-header-row,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="day"].is-active) .wsp-grid-header-row {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
    }

    .wsp-calendar-shell[data-view="day"] .wsp-grid-header-cell,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="day"].is-active) .wsp-grid-header-cell {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 52px !important;
        padding: 0 12px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .wsp-calendar-shell[data-view="day"] .wsp-grid-header-row:not(:first-child),
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="day"].is-active) .wsp-grid-header-row:not(:first-child),
    .wsp-calendar-shell[data-view="day"] .wsp-grid-day-cell,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="day"].is-active) .wsp-grid-day-cell,
    .wsp-calendar-shell[data-view="day"] .wsp-time-grid,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="day"].is-active) .wsp-time-grid,
    .wsp-calendar-shell[data-view="day"] .wsp-time-grid > .wsp-slot-list,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="day"].is-active) .wsp-time-grid > .wsp-slot-list {
        height: 420px !important;
        min-height: 420px !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .wsp-calendar-shell[data-view="day"] .wsp-grid-day-cell,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="day"].is-active) .wsp-grid-day-cell {
        padding: 0 !important;
    }

    .wsp-calendar-shell[data-view="day"] .wsp-slot-list-item,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="day"].is-active) .wsp-slot-list-item {
        position: absolute !important;
        left: 50% !important;
        right: auto !important;
        width: calc(100% - 24px) !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        margin: 0 !important;
        padding: 0 10px !important;
        transform: translate(-50%, 10px) !important;
        border-radius: 8px !important;
    }

    .wsp-calendar-shell[data-view="day"] .wsp-slot-list-time,
    .wsp-calendar-shell:has(.wsp-view-toggle button[data-view="day"].is-active) .wsp-slot-list-time {
        width: 100% !important;
        height: 100% !important;
        font-size: 12px !important;
        white-space: nowrap !important;
    }
}

/* ---------------- VERY SMALL MOBILE ---------------- */
@media (max-width: 420px) {
    .wsp-calendar-shell {
        padding: 0 4px !important;
    }

    .wsp-calendar-header {
        padding: 16px 12px 13px !important;
    }

    .wsp-calendar-main {
        padding: 8px !important;
    }

    .wsp-calendar-title-text {
        font-size: 18px !important;
    }

    .wsp-calendar-subtitle {
        margin-left: 0 !important;
        font-size: 11px !important;
    }

    .wsp-calendar-toolbar {
        padding: 10px !important;
    }

    .wsp-nav-btn {
        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;
    }

    .wsp-nav-today {
        min-width: 72px !important;
        height: 38px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    .wsp-date-jump {
        max-width: 100% !important;
    }

    .wsp-current-label {
        font-size: 16px !important;
    }
}

/* ---------- Compact month view (1.0.5) ----------
   Day cells were forced to 235px+ tall, though a day holds only a badge and
   a couple of time slots. Size rows to their content instead. */
html body .wsp-calendar-shell .wsp-calendar-grid {
    min-height: 0 !important;
}
html body .wsp-calendar-shell .wsp-grid-header-row {
    grid-auto-rows: minmax(112px, auto) !important;
}
html body .wsp-calendar-shell .wsp-grid-header-row .wsp-grid-day-cell {
    min-height: 112px !important;
    padding: 40px 10px 10px !important;
}
@media (max-width: 767px) {
    html body .wsp-calendar-shell .wsp-grid-header-row {
        grid-auto-rows: minmax(88px, auto) !important;
    }
    html body .wsp-calendar-shell .wsp-grid-header-row .wsp-grid-day-cell,
    html body .wsp-calendar-shell[data-view="month"] .wsp-grid-day-cell {
        min-height: 88px !important;
        padding: 36px 6px 8px !important;
    }
}

/* ---------- Larger, bolder text (1.0.5) ----------
   Members are 55+: bigger type and darker colours for contrast. */
html body .wsp-calendar-shell .wsp-slot-list-time {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #2E2119 !important;
    letter-spacing: 0 !important;
}
html body .wsp-calendar-shell .wsp-slot-list-item {
    padding: 6px 4px !important;
    border-width: 2px !important;
}
html body .wsp-calendar-shell .wsp-slot-list {
    gap: 6px !important;
}
html body .wsp-calendar-shell .wsp-day-summary {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #7A4E2D !important;
    border-width: 2px !important;
    padding: 2px 8px !important;
}
html body .wsp-calendar-shell .wsp-day-label {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #2E2119 !important;
}
html body .wsp-calendar-shell .wsp-grid-header-cell {
    font-size: 16px !important;
    font-weight: 800 !important;
}
html body .wsp-calendar-shell .wsp-current-label {
    font-size: 26px !important;
    font-weight: 800 !important;
}
html body .wsp-calendar-shell .wsp-calendar-subtitle,
html body .wsp-calendar-shell .wsp-public-note {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #3F2E22 !important;
}
html body .wsp-calendar-shell .wsp-nav-today,
html body .wsp-calendar-shell .wsp-print-calendar,
html body .wsp-calendar-shell button {
    font-size: 16px !important;
    font-weight: 700 !important;
}
html body .wsp-calendar-shell .wsp-grid-header-row .wsp-grid-day-cell {
    padding-top: 44px !important;
}
/* Narrow screens: keep text inside the small day boxes. */
@media (max-width: 767px) {
    html body .wsp-calendar-shell .wsp-slot-list-time { font-size: 13px !important; }
    html body .wsp-calendar-shell .wsp-day-summary { font-size: 12px !important; padding: 1px 6px !important; }
    html body .wsp-calendar-shell .wsp-day-label { font-size: 16px !important; }
    html body .wsp-calendar-shell .wsp-grid-header-cell { font-size: 13px !important; }
    html body .wsp-calendar-shell .wsp-grid-header-row .wsp-grid-day-cell { padding-top: 36px !important; }
}

/* ---------- My Bookings (1.0.6): readable dates, past/cancelled tucked away ---------- */
html body .wsp-booking-item {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px 16px !important;
    font-size: 17px !important;
}
html body .wsp-booking-item .wsp-booking-when { font-size: 18px !important; font-weight: 800 !important; color: #2E2119 !important; }
html body .wsp-booking-item .wsp-booking-time { font-size: 17px !important; font-weight: 700 !important; color: #3F2E22 !important; }
html body .wsp-booking-item .wsp-booking-status { font-size: 15px !important; font-weight: 700 !important; color: #2F6B39 !important; }
html body .wsp-booking-item.cancelled .wsp-booking-status { color: #9B3B2E !important; }
html body .wsp-booking-item .wsp-booking-cancel-btn { margin-left: auto !important; font-size: 16px !important; }
html body .wsp-booking-empty { font-size: 17px !important; color: #4B5563 !important; }
html body .wsp-booking-older { margin-top: 16px !important; }
html body .wsp-booking-older summary { cursor: pointer !important; font-size: 17px !important; font-weight: 700 !important; color: #8B5E3C !important; padding: 8px 0 !important; }
html body .wsp-booking-older .wsp-booking-item { opacity: .8 !important; }

/* ---------- Full-width month view that scales with the page (1.0.7) ----------
   The calendar fills the page width; day boxes keep their shape (6:5) and the
   text and time slots grow with them (container query units), so a wider
   screen shows a bigger calendar, not emptier boxes. */
html body .wsp-calendar-shell {
    max-width: none !important;
    margin: 12px 0 !important;
    padding: 0 !important;
}
html body .wsp-calendar-shell .wsp-calendar-card {
    max-width: none !important;
    width: 100% !important;
}
html body .wsp-calendar-shell .wsp-calendar-grid {
    container-type: inline-size;
}
html body .wsp-calendar-shell .wsp-grid-header-row {
    grid-auto-rows: auto !important;
}
html body .wsp-calendar-shell .wsp-grid-header-row .wsp-grid-day-cell {
    min-height: auto !important;
    aspect-ratio: 1.2 / 1;
    padding: clamp(30px, 3.4cqw, 64px) clamp(5px, .9cqw, 16px) clamp(6px, .9cqw, 16px) !important;
}
html body .wsp-calendar-shell .wsp-slot-list-time { font-size: clamp(13px, 1.45cqw, 26px) !important; }
html body .wsp-calendar-shell .wsp-slot-list-item { padding: clamp(4px, .55cqw, 10px) 4px !important; }
html body .wsp-calendar-shell .wsp-slot-list { gap: clamp(4px, .55cqw, 10px) !important; }
html body .wsp-calendar-shell .wsp-day-summary { font-size: clamp(11px, 1.25cqw, 22px) !important; }
html body .wsp-calendar-shell .wsp-day-label { font-size: clamp(15px, 1.6cqw, 28px) !important; }
html body .wsp-calendar-shell .wsp-grid-header-cell { font-size: clamp(13px, 1.4cqw, 24px) !important; }

/* Today (1.0.8): solid walnut-brown circle with white numbers in the Month view,
   and a brown header in the Week view, so the current date is easy to spot. */
html body .wsp-calendar-shell .wsp-day-label.is-today {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 1.9em !important;
    height: 1.9em !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 9999px !important;
    background: #4A3728 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
html body .wsp-calendar-shell .wsp-grid-header-cell.is-today {
    background: #4A3728 !important;
    color: #ffffff !important;
}

/* 1.0.12: in Day and Week views the member's name is what matters, so the name
   is bold and larger and the time is lighter. */
html body .wsp-calendar-shell .wsp-slot-bar .wsp-slot-time {
    font-weight: 500 !important;
    font-size: 15px !important;
    opacity: .85;
}
html body .wsp-calendar-shell .wsp-slot-bar .wsp-slot-name {
    font-weight: 800 !important;
    font-size: 19px !important;
    line-height: 1.25 !important;
    margin-top: 2px !important;
}

/* 1.0.14: scoped to grids that hold Month cells (.wsp-canvas-month), so the Day and
   Week views keep their own header. 1.0.13 Phones: the Month view fits the screen. Headers and day boxes share one
   7-column grid (they drifted apart when the box aspect-ratio met the 210px
   phone min-height). Each day shows its number and how many slots are open;
   tap a day to see its slots. */
@media (max-width: 767px) {
    html body .wsp-calendar-shell:has(.wsp-view-toggle button[data-view].is-active) .wsp-calendar-grid:has(.wsp-canvas-month) { overflow-x: hidden !important; grid-template-columns: minmax(0, 1fr) !important; }
    html body .wsp-calendar-shell:has(.wsp-view-toggle button[data-view].is-active) .wsp-calendar-grid:has(.wsp-canvas-month) .wsp-grid-main { width: 100% !important; min-width: 0 !important; }
    html body .wsp-calendar-shell:has(.wsp-view-toggle button[data-view].is-active) .wsp-calendar-grid:has(.wsp-canvas-month) .wsp-grid-main .wsp-grid-header-row {
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
        grid-auto-rows: minmax(76px, auto) !important;
        width: 100% !important;
    }
    html body .wsp-calendar-shell:has(.wsp-view-toggle button[data-view].is-active) .wsp-calendar-grid:has(.wsp-canvas-month) .wsp-grid-main .wsp-grid-header-cell {
        min-width: 0 !important; padding: 10px 0 !important; font-size: 13px !important;
        letter-spacing: 0 !important; overflow: hidden !important; text-align: center !important;
    }
    html body .wsp-calendar-shell:has(.wsp-view-toggle button[data-view].is-active) .wsp-calendar-grid:has(.wsp-canvas-month) .wsp-grid-header-row .wsp-grid-day-cell {
        aspect-ratio: auto !important; min-width: 0 !important; min-height: 76px !important;
        padding: 34px 2px 4px !important; cursor: pointer;
    }
    html body .wsp-calendar-shell:has(.wsp-view-toggle button[data-view].is-active) .wsp-calendar-grid:has(.wsp-canvas-month) .wsp-grid-day-cell .wsp-day-label {
        top: 4px !important; right: 50% !important; transform: translateX(50%) !important;
        font-size: 15px !important; height: auto !important; min-height: 0 !important; max-height: none !important;
    }
    html body .wsp-calendar-shell:has(.wsp-view-toggle button[data-view].is-active) .wsp-calendar-grid:has(.wsp-canvas-month) .wsp-grid-day-cell .wsp-day-label.is-today {
        width: 28px !important; height: 28px !important; max-height: 28px !important; top: 2px !important;
    }
    html body .wsp-calendar-shell:has(.wsp-view-toggle button[data-view].is-active) .wsp-calendar-grid:has(.wsp-canvas-month) .wsp-grid-day-cell .wsp-slot-list { display: none !important; }
    html body .wsp-calendar-shell:has(.wsp-view-toggle button[data-view].is-active) .wsp-calendar-grid:has(.wsp-canvas-month) .wsp-grid-day-cell .wsp-day-summary {
        position: static !important; display: block !important; margin: 0 auto !important;
        font-size: 11px !important; line-height: 1.15 !important; padding: 2px 1px !important;
        border-width: 1px !important; white-space: normal !important; text-align: center !important;
        max-width: 100% !important; overflow-wrap: anywhere;
    }
    html body .wsp-calendar-shell:has(.wsp-view-toggle button[data-view].is-active) .wsp-calendar-grid:has(.wsp-canvas-month) .wsp-grid-day-cell .wsp-sum-word { display: none !important; }
    html body .wsp-calendar-shell:has(.wsp-view-toggle button[data-view].is-active) .wsp-calendar-grid:has(.wsp-canvas-month) .wsp-grid-day-cell .wsp-day-summary { font-size: 13px !important; font-weight: 800 !important; }
}
/* 1.0.14 Phones: no aspect-ratio on day boxes (Week view too), so each box stays
   inside its column under the day header. */
@media (max-width: 767px) {
    html body .wsp-calendar-shell .wsp-grid-header-row .wsp-grid-day-cell { aspect-ratio: auto !important; min-width: 0 !important; }
}
