/* Bookings.css - Unified booking view layout for restaurants and facilities */
/* Column layout lives in BookingColumns organism (styles/organisms/BookingColumns/) */
/* Booking modal styles live in RestaurantAvailability.css (shared BookingFormModal) */

/* ========================================
   VIEW CONTAINER
   ======================================== */

.rb-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* Persistent chrome row (entity tabs + date-nav) — only present in department
   mode. Stays mounted across body re-renders so the SegmentedControl pill
   survives and slides on restaurant change. Single row: entity tabs on the
   left, date-nav (pax + refresh + date) pushed to the right. */
.rb-chrome {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-bottom: var(--space-3);
}

.rb-chrome .rb-entity-tabs {
    flex: 0 0 auto;
}

.rb-chrome .rb-header-date-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Body container — replaced wholesale on any non-chrome state change. */
.rb-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

/* ========================================
   HEADER (date nav + new booking)
   ======================================== */

.rb-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-shrink: 0;
    padding-bottom: var(--space-3);
}

.rb-header-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.rb-header-date-nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-left: auto;
}

/* ========================================
   SERVICE TABS
   ======================================== */

.rb-entity-tabs {
    flex-shrink: 0;
}

.rb-service-tabs {
    padding-bottom: var(--space-3);
    flex-shrink: 0;
}

/* ========================================
   DETAIL SECTION
   ======================================== */

.rb-detail-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-2) 0;
}

.rb-detail-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.rb-detail-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 600;
    min-width: 80px;
    flex-shrink: 0;
}

.rb-detail-dietary {
    display: flex;
    gap: var(--space-1);
    flex-wrap: wrap;
}

.rb-detail-notes {
    font-size: var(--text-sm);
    color: var(--text-body);
    background: var(--bg-layer-2);
    border-radius: var(--border-radius-md);
    padding: var(--space-2);
}

.rb-detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    padding-top: var(--space-3);
    border-top: var(--border-width-1) solid var(--border-subtle);
}

.rb-detail-actions-left,
.rb-detail-actions-right {
    display: flex;
    gap: var(--space-2);
}

/* ========================================
   ACTIVITY PANEL
   ======================================== */

.rb-activity {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.rb-activity-entry {
    font-size: var(--text-xs);
    color: var(--text-body);
    line-height: var(--line-height-relaxed);
    word-wrap: break-word;
}

.rb-activity-note {
    font-style: italic;
}

.rb-add-note {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.rb-add-note .input-wrapper {
    flex: 1;
}

/* ========================================
   CAPACITY ERROR
   ======================================== */

.ra-capacity-error {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
}

.ra-capacity-error--warning {
    background: var(--color-warning-light);
    border: 1px solid var(--color-warning);
}

.ra-capacity-error--error {
    background: var(--color-error-light);
    border: 1px solid var(--color-error);
}

.ra-capacity-error-icon {
    flex-shrink: 0;
    margin-top: var(--space-1);
}

.ra-capacity-error--warning .ra-capacity-error-icon { color: var(--color-warning); }
.ra-capacity-error--error .ra-capacity-error-icon { color: var(--color-error); }

.ra-capacity-error-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.ra-capacity-error-heading {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-heading);
}

.ra-capacity-error-message {
    font-size: var(--text-xs);
    color: var(--text-body);
}

.ra-capacity-error-detail {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* ========================================
   MULTI-ROOM DETAIL
   ======================================== */

.rb-detail-room {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    border-top: var(--border-width-1) solid var(--border-subtle);
}

.rb-detail-room:first-of-type {
    border-top: none;
}

.rb-detail-room-header {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
