/* Correct Conception Belegungsplan – Frontend 0.1.12 */
.ccbp-frontend-dashboard,
.ccbp-frontend-box {
    --ccbp-border: #d9dee7;
    --ccbp-soft: #f7f9fc;
    --ccbp-text: #1f2937;
    --ccbp-muted: #667085;
    color: var(--ccbp-text);
}

.ccbp-frontend-box,
.ccbp-frontend-dashboard .ccbp-card {
    background: #fff;
    border: 1px solid var(--ccbp-border);
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    margin-bottom: 16px;
}

.ccbp-frontend-dashboard h2 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.2;
}

.ccbp-frontend-notice {
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 600;
}

.ccbp-notice-success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.ccbp-notice-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.ccbp-frontend-dashboard .ccbp-filter,
.ccbp-booking-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 10px;
    align-items: end;
    margin-bottom: 12px;
}

.ccbp-booking-grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.ccbp-frontend-dashboard label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-weight: 600;
    font-size: 13px;
}

.ccbp-frontend-dashboard input,
.ccbp-frontend-dashboard select,
.ccbp-frontend-dashboard textarea,
.ccbp-frontend-dashboard button {
    width: 100%;
    min-height: 36px;
    border-radius: 7px;
    box-sizing: border-box;
}

.ccbp-frontend-dashboard textarea {
    resize: vertical;
}

.ccbp-frontend-dashboard button {
    border: 0;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.ccbp-frontend-dashboard button:hover,
.ccbp-frontend-dashboard button:focus {
    background: #1d4ed8;
}

.ccbp-actions {
    margin: 8px 0 0;
}

.ccbp-actions button {
    max-width: 260px;
}

.ccbp-booking-wide {
    grid-column: span 2;
}

.ccbp-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 4px 0 8px;
    color: var(--ccbp-muted);
    font-size: 12px;
}

.ccbp-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    vertical-align: -1px;
    margin-right: 5px;
    border: 1px solid rgba(17, 24, 39, .13);
}

.ccbp-status.free { background: #fff; }
.ccbp-status.confirmed { background: #2563eb; }
.ccbp-status.requested { background: #f59e0b; }
.ccbp-status.blocked { background: #6b7280; }

.ccbp-table-scroll {
    overflow-x: auto;
    overflow-y: visible;
    max-width: 100%;
    border: 1px solid var(--ccbp-border);
    border-radius: 8px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
}

.ccbp-plan-table {
    --ccbp-resource-width: clamp(160px, 15vw, 190px);
    --ccbp-min-day-width: 12px;
    width: 100% !important;
    min-width: calc(var(--ccbp-resource-width) + (var(--ccbp-days, 30) * var(--ccbp-min-day-width)));
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 10px;
    white-space: nowrap;
}

.ccbp-plan-table th,
.ccbp-plan-table td {
    text-align: center;
    vertical-align: middle;
    line-height: 1;
    border-bottom: 1px solid #eef1f5;
    box-sizing: border-box;
}

.ccbp-plan-table tr {
    height: 15px;
}

.ccbp-plan-table th {
    padding: 2px 1px;
    font-weight: 600;
}

.ccbp-plan-table td {
    padding: 0;
}

.ccbp-plan-table col.ccbp-resource-col {
    width: var(--ccbp-resource-width);
}

.ccbp-plan-table col.ccbp-day-col {
    width: calc((100% - var(--ccbp-resource-width)) / var(--ccbp-days, 30));
}

.ccbp-plan-table .ccbp-day-head,
.ccbp-plan-table .ccbp-plan-cell {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

.ccbp-plan-table .ccbp-day-head {
    height: 28px;
}

.ccbp-plan-table .ccbp-day-head span {
    display: inline-block;
    transform: rotate(-45deg);
    transform-origin: center;
    white-space: nowrap;
    font-size: 9px;
}

.ccbp-plan-table .ccbp-resource-head,
.ccbp-plan-table .ccbp-resource-name {
    position: sticky;
    left: 0;
    z-index: 3;
    width: var(--ccbp-resource-width);
    min-width: var(--ccbp-resource-width);
    max-width: var(--ccbp-resource-width);
    text-align: left;
    background: #fff;
    box-shadow: 1px 0 0 var(--ccbp-border);
}

.ccbp-plan-table .ccbp-resource-name {
    padding: 1px 6px;
}

.ccbp-plan-table thead .ccbp-resource-head,
.ccbp-plan-table thead .ccbp-day-head {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #fff;
}

.ccbp-plan-table thead .ccbp-resource-head { z-index: 5; }

.ccbp-resource-name strong {
    font-size: 11.5px;
    line-height: 1;
}

.ccbp-resource-name small {
    display: inline;
    color: var(--ccbp-muted);
    margin-left: 5px;
    font-size: 9.5px;
    font-weight: 400;
    line-height: 1;
}

.ccbp-plan-cell {
    height: 14px;
    background: #fff;
}

.ccbp-free { background: #fbfcfd; }
.ccbp-free:hover { background: #eefaf1; }

.ccbp-cell-marker {
    display: block;
    width: clamp(5px, .65vw, 7px);
    height: clamp(5px, .65vw, 7px);
    border-radius: 2px;
    border: 1px solid rgba(17, 24, 39, .12);
    margin: 0 auto;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .30);
}

.ccbp-cell-marker:hover,
.ccbp-cell-marker:focus {
    transform: scale(1.5);
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.ccbp-booked-confirmed .ccbp-cell-marker { background: #2563eb; }
.ccbp-booked-requested .ccbp-cell-marker { background: #f59e0b; }
.ccbp-booked-blocked .ccbp-cell-marker { background: #6b7280; }
.ccbp-is-weekend { background: #f8fafc !important; }
.ccbp-is-today { background: #eef4ff !important; }
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 1100px) {
    .ccbp-frontend-dashboard .ccbp-filter,
    .ccbp-booking-grid {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 620px) {
    .ccbp-frontend-dashboard .ccbp-filter,
    .ccbp-booking-grid {
        grid-template-columns: 1fr;
    }

    .ccbp-booking-wide {
        grid-column: auto;
    }

    .ccbp-plan-table {
        --ccbp-resource-width: 154px;
        --ccbp-min-day-width: 10px;
    }
}


/* 0.1.7: echte responsive Matrix. Die Tages-Spalten verteilen sich auf die vorhandene Breite. */
.ccbp-frontend-dashboard .ccbp-plan-table th,
.ccbp-frontend-dashboard .ccbp-plan-table td {
    overflow: hidden;
}

.ccbp-frontend-dashboard .ccbp-table-scroll {
    container-type: inline-size;
}

@container (max-width: 760px) {
    .ccbp-frontend-dashboard .ccbp-plan-table {
        --ccbp-resource-width: 150px;
        --ccbp-min-day-width: 9px;
    }

    .ccbp-frontend-dashboard .ccbp-plan-table .ccbp-day-head span {
        font-size: 8px;
    }
}

/* 0.1.7: zweizeiliger Kalenderkopf – Monat oben, Tageszahl gerade darunter. */
.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-month-head,
.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-day-head {
    text-align: center;
    vertical-align: middle;
    padding: 1px 0;
    overflow: hidden;
    line-height: 1;
}

.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-month-head {
    height: 17px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    color: #334155;
    background: #f8fafc;
    border-bottom: 1px solid #e6ebf2;
}

.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-day-head {
    height: 16px;
    font-size: 9px;
    font-weight: 700;
}

.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-day-head span {
    transform: none !important;
    display: inline-block;
    font-size: 9px;
    line-height: 1;
    white-space: nowrap;
}

.ccbp-frontend-dashboard .ccbp-plan-table thead .ccbp-month-head,
.ccbp-frontend-dashboard .ccbp-plan-table thead .ccbp-resource-head {
    position: sticky;
    top: 0;
    z-index: 5;
}

.ccbp-frontend-dashboard .ccbp-plan-table thead .ccbp-day-head {
    position: sticky;
    top: 17px;
    z-index: 4;
    background: #fff;
}

.ccbp-frontend-dashboard .ccbp-plan-table thead .ccbp-resource-head {
    height: 33px;
    vertical-align: middle;
}


/* 0.1.8: Kalenderfeld-Darstellung – jeder Tag ist ein kompaktes Feld mit Tageszahl. */
.ccbp-frontend-dashboard .ccbp-plan-table {
    --ccbp-resource-width: clamp(170px, 16vw, 200px);
    --ccbp-day-size: 21px;
    --ccbp-min-day-width: var(--ccbp-day-size);
    width: max-content !important;
    min-width: calc(var(--ccbp-resource-width) + (var(--ccbp-days, 30) * var(--ccbp-day-size))) !important;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 0;
}

.ccbp-frontend-dashboard .ccbp-plan-table col.ccbp-resource-col {
    width: var(--ccbp-resource-width) !important;
}

.ccbp-frontend-dashboard .ccbp-plan-table col.ccbp-day-col {
    width: var(--ccbp-day-size) !important;
}

.ccbp-frontend-dashboard .ccbp-plan-table th,
.ccbp-frontend-dashboard .ccbp-plan-table td {
    border: 1px solid #edf1f6;
    padding: 0 !important;
    overflow: hidden;
}

.ccbp-frontend-dashboard .ccbp-plan-table tr {
    height: var(--ccbp-day-size);
}

.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-month-head {
    height: 16px;
    padding: 1px 0 !important;
    font-size: 9px;
    background: #f8fafc;
}

.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-day-head {
    height: 18px;
    padding: 0 !important;
    background: #fff;
}

.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-day-head span {
    transform: none !important;
    font-size: 9px;
    line-height: 18px;
}

.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-plan-cell {
    height: var(--ccbp-day-size);
    background: #fff;
}

.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-day-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--ccbp-day-size);
    min-height: var(--ccbp-day-size);
    border-radius: 0;
    font-size: 8.5px;
    line-height: 1;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
}

.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-day-box-free {
    background: #fff;
    color: #94a3b8;
    opacity: .72;
}

.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-free:hover .ccbp-day-box-free {
    background: #ecfdf3;
    color: #166534;
    opacity: 1;
}

.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-booked-confirmed .ccbp-day-box {
    background: #2563eb;
    color: #fff;
}

.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-booked-requested .ccbp-day-box {
    background: #f59e0b;
    color: #111827;
}

.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-booked-blocked .ccbp-day-box {
    background: #6b7280;
    color: #fff;
}

.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-booked .ccbp-day-box:hover,
.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-booked .ccbp-day-box:focus {
    outline: 2px solid #111827;
    outline-offset: -2px;
}

.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-resource-head,
.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-resource-name {
    width: var(--ccbp-resource-width) !important;
    min-width: var(--ccbp-resource-width) !important;
    max-width: var(--ccbp-resource-width) !important;
}

.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-resource-name {
    padding: 2px 6px !important;
}

@container (max-width: 760px) {
    .ccbp-frontend-dashboard .ccbp-plan-table {
        --ccbp-resource-width: 160px;
        --ccbp-day-size: 18px;
    }

    .ccbp-frontend-dashboard .ccbp-plan-table .ccbp-day-box,
    .ccbp-frontend-dashboard .ccbp-plan-table .ccbp-day-head span {
        font-size: 8px;
    }
}

/* Frontend cockpit 0.1.10 */
.ccbp-frontend-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.ccbp-frontend-tabs .ccbp-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--ccbp-border);
    border-radius: 8px;
    background: #fff;
    color: var(--ccbp-text);
    font-weight: 700;
    text-decoration: none;
}

.ccbp-frontend-tabs .ccbp-tab:hover,
.ccbp-frontend-tabs .ccbp-tab:focus,
.ccbp-frontend-tabs .ccbp-tab.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.ccbp-frontend-dashboard h3 {
    margin: 18px 0 10px;
    font-size: 16px;
    line-height: 1.25;
}

.ccbp-data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
    font-size: 13px;
}

.ccbp-data-table th,
.ccbp-data-table td {
    border-bottom: 1px solid #eef1f5;
    padding: 8px 9px;
    text-align: left;
    vertical-align: top;
}

.ccbp-data-table th {
    background: #f8fafc;
    font-weight: 700;
    color: #344054;
}

.ccbp-data-table small {
    color: var(--ccbp-muted);
}

.ccbp-list-scroll {
    overflow-x: auto;
}

.ccbp-inline-form {
    display: inline-block;
    margin: 0;
}

.ccbp-small-button,
.ccbp-small-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px !important;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    width: auto !important;
}

.ccbp-small-button {
    background: #e5e7eb !important;
    color: #111827 !important;
}

.ccbp-small-link {
    margin-right: 6px;
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #1d4ed8;
}

.ccbp-small-link:hover,
.ccbp-small-link:focus {
    border-color: #2563eb;
    background: #eff6ff;
}

.ccbp-row-status-cancelled {
    opacity: .6;
}

@media (max-width: 980px) {
    .ccbp-frontend-dashboard .ccbp-filter,
    .ccbp-booking-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }
}

@media (max-width: 640px) {
    .ccbp-frontend-dashboard .ccbp-filter,
    .ccbp-booking-grid {
        grid-template-columns: 1fr;
    }

    .ccbp-booking-wide {
        grid-column: span 1;
    }
}

/* 0.1.11 – Kundenlogik und Dublettenhinweise */
.ccbp-customer-select-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 12px;
    align-items: stretch;
    margin-bottom: 12px;
}

.ccbp-selected-customer-box,
.ccbp-duplicate-warning {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.35;
}

.ccbp-selected-customer-box {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.ccbp-selected-customer-box strong {
    display: block;
    margin-bottom: 3px;
}

.ccbp-duplicate-warning {
    margin: 8px 0 12px;
    border: 1px solid #fbbf24;
    background: #fffbeb;
    color: #92400e;
}

.ccbp-duplicate-warning strong {
    display: block;
    margin-bottom: 5px;
}

.ccbp-duplicate-warning ul {
    margin: 6px 0 0 18px;
    padding: 0;
}

.ccbp-new-customer-fields.is-disabled {
    opacity: .5;
    pointer-events: none;
}

.ccbp-new-customer-fields.is-disabled::before {
    content: 'Bestehender Kunde ausgewählt – neue Kundendaten werden nicht benötigt.';
    grid-column: 1 / -1;
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 760px) {
    .ccbp-customer-select-row {
        grid-template-columns: 1fr;
    }
}

/* 0.1.12 – Kundenmodus in der Buchungsmaske */
.ccbp-customer-mode-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 6px 0 12px;
}

.ccbp-radio-card {
    flex: 1 1 220px;
    flex-direction: row !important;
    align-items: center;
    gap: 8px !important;
    border: 1px solid var(--ccbp-border);
    border-radius: 9px;
    padding: 10px 12px;
    background: #f8fafc;
    cursor: pointer;
}

.ccbp-radio-card input {
    width: auto !important;
    min-height: auto !important;
}

.ccbp-customer-select-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr);
    gap: 12px;
    align-items: stretch;
    margin-bottom: 12px;
}

.ccbp-selected-customer-box,
.ccbp-customer-change-box,
.ccbp-duplicate-warning {
    border-radius: 9px;
    padding: 11px 12px;
    font-size: 13px;
}

.ccbp-selected-customer-box {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.ccbp-selected-customer-box strong,
.ccbp-selected-customer-box span,
.ccbp-selected-customer-box em {
    display: block;
}

.ccbp-selected-customer-box span {
    margin-top: 3px;
}

.ccbp-selected-customer-box em {
    margin-top: 5px;
    font-style: normal;
    color: #1d4ed8;
    font-weight: 700;
}

.ccbp-customer-change-box {
    margin: 0 0 12px;
    border: 1px solid #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.ccbp-customer-change-box strong,
.ccbp-customer-change-box span {
    display: block;
    margin-bottom: 7px;
}

.ccbp-secondary-button {
    max-width: 340px;
    min-height: 34px !important;
    background: #f97316 !important;
}

.ccbp-secondary-button:hover,
.ccbp-secondary-button:focus {
    background: #ea580c !important;
}

.ccbp-secondary-button.is-confirmed {
    background: #16a34a !important;
}

.ccbp-booking-customer-fields.is-existing-customer {
    border: 1px solid #e0ecff;
    background: #fbfdff;
    border-radius: 10px;
    padding: 12px;
}

.ccbp-booking-customer-fields.is-new-customer {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    padding: 12px;
}

@media (max-width: 780px) {
    .ccbp-customer-select-row {
        grid-template-columns: 1fr;
    }
}

/* Frontend booking edit 0.1.13 */
.ccbp-frontend-dashboard .ccbp-plan-table .ccbp-day-box-link {
    color: inherit;
    text-decoration: none !important;
    cursor: pointer;
}

.ccbp-booking-summary-box {
    margin: 0 0 14px;
}

.ccbp-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ccbp-edit-actions button {
    max-width: 260px;
}

.ccbp-cancel-edit-form {
    margin-top: 10px;
}

.ccbp-danger-button {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}

/* 0.1.16 – Öffentliche Verfügbarkeitsansicht */
.ccbp-public-availability {
    --ccbp-public-border: #d9e1ea;
    --ccbp-public-text: #172033;
    --ccbp-public-muted: #667085;
    --ccbp-public-blue: #173a5b;
    --ccbp-public-gold: #c19a43;
    --ccbp-public-free: #f4fbf3;
    --ccbp-public-free-border: #cfe9cf;
    --ccbp-public-occupied: #4f5968;
    --ccbp-public-day-min: 22px;
    color: var(--ccbp-public-text);
    font-family: Montserrat, Arial, sans-serif;
    font-size: 15px;
}

.ccbp-public-card {
    border: 1px solid var(--ccbp-public-border);
    border-radius: 14px;
    background: #fff;
    padding: 22px;
    box-shadow: 0 12px 34px rgba(16, 24, 40, .06);
}

.ccbp-public-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.ccbp-public-kicker {
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ccbp-public-gold);
    font-weight: 700;
    font-size: 12px;
}

.ccbp-public-head h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 38px);
    line-height: 1.15;
}

.ccbp-public-head p {
    margin: 0;
    max-width: 760px;
    color: var(--ccbp-public-muted);
}

.ccbp-public-cta,
.ccbp-public-filter button,
.ccbp-public-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.ccbp-public-cta,
.ccbp-public-filter button {
    background: var(--ccbp-public-blue);
    color: #fff;
    border: 0;
    cursor: pointer;
}

.ccbp-public-reset {
    background: #f3f5f7;
    color: var(--ccbp-public-text);
}

.ccbp-public-filter {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    margin: 0 0 16px;
}

.ccbp-public-filter label span {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 13px;
}

.ccbp-public-filter select,
.ccbp-public-filter input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cfd6df;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
    color: var(--ccbp-public-text);
}

.ccbp-public-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 4px 0 12px;
    padding: 10px 12px;
    border: 1px solid #edf0f4;
    border-radius: 10px;
    background: #fafbfc;
}

.ccbp-public-toolbar a {
    color: var(--ccbp-public-blue);
    text-decoration: none;
    font-weight: 700;
}

.ccbp-public-legend {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 0 0 10px;
    color: var(--ccbp-public-muted);
    font-size: 13px;
}

.ccbp-public-status {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: -2px;
    border: 1px solid var(--ccbp-public-border);
}

.ccbp-public-status.available {
    background: var(--ccbp-public-free);
    border-color: var(--ccbp-public-free-border);
}

.ccbp-public-status.occupied {
    background: var(--ccbp-public-occupied);
    border-color: var(--ccbp-public-occupied);
}

.ccbp-public-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--ccbp-public-border);
    border-radius: 12px;
    background: #fff;
}

.ccbp-public-table {
    width: 100%;
    width: max(100%, calc(var(--ccbp-public-resource-width) + (var(--ccbp-days) * var(--ccbp-public-day-min))));
    min-width: calc(var(--ccbp-public-resource-width) + (var(--ccbp-days) * var(--ccbp-public-day-min)));
    table-layout: fixed;
    border-collapse: collapse;
    --ccbp-public-resource-width: clamp(205px, 25vw, 300px);
}

.ccbp-public-resource-col {
    width: var(--ccbp-public-resource-width);
}

.ccbp-public-day-col {
    width: max(var(--ccbp-public-day-min), calc((100% - var(--ccbp-public-resource-width)) / max(var(--ccbp-days), 1)));
}

.ccbp-public-table th,
.ccbp-public-table td {
    border: 1px solid #edf0f4;
    padding: 0;
    text-align: center;
}

.ccbp-public-resource-head,
.ccbp-public-resource-name {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #fff;
}

.ccbp-public-resource-head {
    padding: 8px 10px !important;
    font-size: 13px;
    text-align: left !important;
}

.ccbp-public-month-head {
    padding: 4px 0 !important;
    font-size: 12px;
    font-weight: 700;
    background: #f7f9fb;
}

.ccbp-public-day-head {
    height: 24px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    white-space: nowrap;
    background: #fbfcfd;
}

.ccbp-public-day-head.is-weekend {
    background: #f2f5f8;
}

.ccbp-public-day-head.is-today {
    box-shadow: inset 0 0 0 2px var(--ccbp-public-gold);
}

.ccbp-public-resource-name {
    text-align: left !important;
    padding: 3px 8px !important;
    line-height: 1.05;
    white-space: normal;
}

.ccbp-public-resource-name strong {
    display: block;
    font-size: 13px;
    line-height: 1.05;
    margin-right: 0;
    white-space: nowrap;
}

.ccbp-public-resource-name small {
    display: block;
    margin-top: 1px;
    font-size: 9.5px;
    line-height: 1.05;
    color: var(--ccbp-public-muted);
    white-space: normal;
}

.ccbp-public-cell {
    height: 24px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1;
}

.ccbp-public-cell span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
}

.ccbp-public-cell.is-available {
    background: var(--ccbp-public-free);
    color: #6f8b73;
}

.ccbp-public-cell.is-occupied {
    background: var(--ccbp-public-occupied);
    color: #fff;
}

.ccbp-public-note {
    margin: 10px 0 0;
    color: var(--ccbp-public-muted);
    font-size: 13px;
}

@media (max-width: 980px) {
    .ccbp-public-head {
        display: block;
    }
    .ccbp-public-cta {
        margin-top: 14px;
    }
    .ccbp-public-filter {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 620px) {
    .ccbp-public-card {
        padding: 16px;
    }
    .ccbp-public-filter {
        grid-template-columns: 1fr;
    }
    .ccbp-public-toolbar {
        align-items: stretch;
        flex-direction: column;
        text-align: center;
    }
    .ccbp-public-table {
        --ccbp-public-resource-width: 190px;
        --ccbp-public-day-min: 21px;
    }
}
