/* Menu.css - Module-specific styles for Restaurant Menu editor */
/* Item rows now use ItemRow molecule. Only module-specific styles remain. */

/* ── Department-mode chrome (restaurant selector) ────────────── */
/* In the F&B "Menu" tab a persistent restaurant selector renders above the panel as a
   SIBLING section; switching restaurant swaps the courses in place (refreshResults) so
   the pill can slide. Section mode (bars) renders no chrome.

   There is deliberately no .menu-view / .menu-body container here. They wrapped the panel
   as a refresh seam, and a plain block wrapper between the stack and the panel is what let
   the panel take size containment without a height -- 645px of courses rendered invisibly
   behind a 95px header strip (TLP-994). The stack owns the gap; Panel.css owns the fill. */

.menu-chrome,
.menu-entity-tabs {
    display: flex;
}

/* TLP-1010: the selector now lists BARS as well as restaurants, so a hotel like
   Princess Andriana went from 8 pills to 16 and the strip outgrew the viewport.
   Without this the row pushed the whole page into a horizontal scroll, and
   selecting a venue near the right end dragged the menu panel off screen with it.
   Same three lines Bookings already uses on its own venue strip (Bookings.css
   .rb-chrome .rb-entity-tabs) -- the row scrolls INSIDE its row, the page never does. */
.menu-chrome .menu-entity-tabs {
    flex: 0 1 auto;
    min-width: 0;
    overflow-x: auto;
}

/* ── Board pricing lens + per-board editor (TLP-212) ─────────── */

.menu-period-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-bottom: var(--space-3);
}

/* Which of this kitchen's menus is being edited. Same shape as the board lens --
   a labelled SegmentedControl -- because it is the same kind of choice. */
.menu-service-bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-bottom: var(--space-3);
}

.menu-service-bar-label {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-board-lens {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-bottom: var(--space-3);
}

.menu-board-lens-label {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.menu-price-editor {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.menu-price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.menu-price-table th {
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
    padding: var(--space-1) var(--space-2);
}

.menu-price-table td {
    padding: var(--space-1) var(--space-2);
    border-bottom: var(--border-width-1) solid var(--border-subtle);
}

.menu-price-board {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
}

.menu-price-incl {
    text-align: center;
    white-space: nowrap;
}

/* ── Language Tabs ───────────────────────────────────────────── */

.menu-lang-tabs {
    display: flex;
    gap: var(--space-1);
    padding-bottom: var(--space-2);
    border-bottom: var(--border-width-1) solid var(--border-subtle);
}

.menu-lang-tab {
    padding: var(--space-1) var(--space-3);
    border: var(--border-width-1) solid var(--border-default);
    border-bottom: none;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    background: var(--bg-layer-2);
    color: var(--text-muted);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 600;
    transition: background 0.15s, color 0.15s;
}

.menu-lang-tab:hover {
    background: var(--bg-layer-3);
}

.menu-lang-tab.active {
    background: var(--bg-layer-4);
    color: var(--text-primary);
    border-bottom-color: var(--bg-layer-4);
}

/* ── Course Header (inside ExpandableList) ───────────────────── */

.menu-course-name {
    font-weight: 600;
    font-size: var(--text-sm);
}

/* ── Category Section within a Course ────────────────────────── */

.menu-category-section {
    border-left: 3px solid var(--border-strong);
    padding-left: var(--space-3);
}

/* Adjacent spacing handled by parent .menu-course-content gap */

.menu-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-1);
    border-bottom: var(--border-width-1) solid var(--border-subtle);
}

.menu-category-actions {
    display: flex;
    gap: var(--space-2);
    align-items: center;
}

/* ── Course Content (expanded) ────────────────────────────────── */

.menu-course-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* ── Image Section in Item Modal ─────────────────────────────── */

.menu-item-image-preview {
    padding-bottom: var(--space-2);
}

.menu-item-image {
    padding-top: var(--space-3);
}

.menu-item-image .file-upload-zone .upload-zone-label {
    padding: var(--space-3);
    min-height: auto;
    gap: var(--space-1);
}

.menu-item-image .file-upload-zone .upload-icon {
    display: none;
}

.menu-item-image .file-upload-zone .upload-subtitle,
.menu-item-image .file-upload-zone .upload-hint {
    display: none;
}

.menu-item-image .file-upload-zone h3 {
    font-size: var(--text-sm);
    margin: 0;
}

.menu-item-image img {
    max-width: 100%;
    max-height: 120px;
    border-radius: var(--border-radius-md);
    object-fit: cover;
}

/* ── Inventory Link Display ──────────────────────────────────── */

.menu-inventory-linked {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-2);
    background: var(--bg-layer-2);
    border-radius: var(--border-radius-md);
    font-size: var(--text-sm);
    color: var(--text-body);
}

.menu-inventory-empty {
    font-size: var(--text-sm);
    color: var(--text-muted);
}
