/*
 * Employee Bookings modal (employee_appointments_modal.html.twig) — frosted
 * skin on top of frosted-modal.css: glass pill tabs, per-tab scrollers with
 * sticky headers, glass filter row, compact stat strip.
 */

/* ===== pill tabs ===== */
.bookings-modal .nav-tabs {
    border-bottom: none;
    gap: 6px;
    margin-bottom: 12px !important;
}
.bookings-modal .nav-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .7);
    background: rgba(255, 255, 255, .5);
    border-radius: 99px;
    color: #41597a;
    font-weight: 700;
    font-size: .82rem;
    padding: 6px 14px;
    transition: background .15s ease, color .15s ease;
}
.bookings-modal .nav-tabs .nav-link:hover {
    background: rgba(255, 255, 255, .8);
    color: #12233b;
}
.bookings-modal .nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #2674a6, #112a54);
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
    box-shadow: 0 6px 16px rgba(38, 116, 166, .35);
}
/* count badge inside the ACTIVE tab flips to translucent white on the gradient */
.bookings-modal .nav-tabs .nav-link.active .badge-soft {
    background: rgba(255, 255, 255, .2) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, .35) !important;
}

/* ===== filter row ===== */
.bookings-modal .input-group-text {
    background: rgba(255, 255, 255, .5);
    border: 1px solid rgba(255, 255, 255, .7);
    color: #41597a;
}
.bookings-modal .btn-primary {
    background-image: linear-gradient(135deg, #2674a6, #112a54) !important;
    background-color: #2674a6 !important;
    border: 1px solid rgba(255, 255, 255, .35) !important;
    color: #fff !important;
    font-weight: 600;
    border-radius: 11px !important;
}
.bookings-modal .btn-outline-secondary {
    background: rgba(255, 255, 255, .5);
    border: 1px solid rgba(255, 255, 255, .7);
    color: #41597a;
    font-weight: 600;
    border-radius: 11px;
}
.bookings-modal .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, .85);
    color: #12233b;
    border-color: rgba(255, 255, 255, .7);
}

/* ===== per-tab scroller — keeps the modal short; header stays visible ===== */
.bookings-modal .bk-scroll {
    max-height: min(44vh, 380px);
    overflow-y: auto;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(65, 89, 122, .35) transparent;
}
.bookings-modal .bk-scroll::-webkit-scrollbar { width: 6px; }
.bookings-modal .bk-scroll::-webkit-scrollbar-thumb {
    background: rgba(65, 89, 122, .35);
    border-radius: 99px;
}
.bookings-modal .bk-scroll::-webkit-scrollbar-thumb:hover { background: rgba(65, 89, 122, .55); }
.bookings-modal .bk-scroll::-webkit-scrollbar-track { background: transparent; }
/* sticky header needs a near-opaque tint or scrolled rows ghost through */
.bookings-modal .bk-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(248, 251, 254, .97) !important;
}

/* soften the bootstrap contextual row fills on the glass card */
.bookings-modal tr.table-danger td { background: rgba(220, 38, 38, .08) !important; }
.bookings-modal tr.table-success-subtle td { background: rgba(22, 163, 74, .08) !important; }

/* row action buttons → small glass tiles with themed icon colors */
.bookings-modal .table .btn-sm {
    background: rgba(255, 255, 255, .45);
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 9px;
    transition: background .15s ease, transform .15s ease;
}
.bookings-modal .table .btn-sm:hover {
    background: rgba(255, 255, 255, .85);
    transform: translateY(-1px);
}
.bookings-modal .table .btn-outline-primary,
.bookings-modal .table .btn-outline-primary i { color: var(--bit-listing-icon-view, #0e7490); }
.bookings-modal .table .btn-outline-secondary,
.bookings-modal .table .btn-outline-secondary i { color: var(--bit-listing-icon-edit, #2674a6); }

/* trim the empty-state padding (part of making the modal shorter) */
.bookings-modal .text-center.py-4,
.bookings-modal .text-center.py-5 { padding-top: 1rem !important; padding-bottom: 1rem !important; }

/* ===== compact stat strip (replaces the four summary cards) ===== */
.bookings-modal .bk-summary {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, .45);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 11px;
    padding: 6px 10px;
    margin-top: 10px;
}
.bookings-modal .bk-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 600;
    color: #41597a;
    padding: 2px 9px;
}
.bookings-modal .bk-stat + .bk-stat { border-left: 1px solid rgba(255, 255, 255, .75); }
.bookings-modal .bk-stat i { color: #2674a6; font-size: .78rem; }
.bookings-modal .bk-stat b { color: #12233b; font-weight: 800; }
