/*
 * booking-slot-grid.css — Shared 7-day open-slot grid
 * ═══════════════════════════════════════════════════════════════════════
 * PATH: css/booking-slot-grid.css
 * ROLE: Ported from devindex's booking-slot-grid.css. Renders the 7-day
 *       open-slot picker: one card per day (name/date header, a list of
 *       slot buttons) collapsing to a 2-column grid under 768px. Shared by
 *       BOTH sides of the scheduler, which is why every color is a
 *       var(--token, #hex) pair: the custom-property names are the public
 *       site-shell tokens (--line --ground --ink --muted --teal
 *       --teal-deep --paper), so /book picks up the teal palette for free,
 *       while the admin pages — which never define those names — fall
 *       through to the second argument, the source's original greys. Do
 *       not drop the fallback hexes; they ARE the admin palette here.
 *       Shape/emphasis differences for the public page (pill buttons, the
 *       teal outline) live in css/book.css, which loads after this file.
 * Link from: Views/booking/_slot_grid.php,
 *       Views/public/book/index.php, Views/admin/scheduler/reschedule.php
 * Last Modified: 2026-09-15 — re-tokenized to the site-shell custom-property
 *       names for the public /book grid (fallback hexes unchanged)
 */

.slot-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.slot-grid-day {
    background: var(--paper, #fff);
    border: 1px solid var(--line, #e6e6e6);
    border-radius: 10px;
    padding: 10px 8px;
    min-height: 90px;
}

.slot-grid-day-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line, #e6e6e6);
}

.slot-grid-day-name {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted, #9a9a9a);
}

.slot-grid-day-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink, #444);
}

.slot-grid-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.slot-grid-form {
    margin: 0;
}

.slot-grid-button {
    display: block;
    width: 100%;
    background: var(--ground, #f6f6f6);
    border: 1px solid var(--line, #e6e6e6);
    border-radius: 6px;
    padding: 5px 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--teal-deep, #2b2b2b);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.slot-grid-button:hover {
    background: var(--teal, #444);
    border-color: var(--teal, #444);
    color: #fff;
}

.slot-grid-empty {
    margin: 0;
    font-size: 12px;
    color: var(--muted, #9a9a9a);
    font-style: italic;
    text-align: center;
}

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