/* ==========================================
   KitchenBoard (Pastry Dept) - Premium Dark Coffee & Gold Stylesheet
   ========================================== */

:root {
    --bg-coffee-dark: #0B0A09;      /* Dark roasted coffee bean black */
    --bg-coffee-card: #151312;      /* Medium charcoal coffee card */
    --bg-coffee-input: #1F1B1A;     /* Light coffee input background */
    --gold: #D4AF37;                /* High-contrast Gold */
    --gold-dim: #A8862A;            /* Muted Gold */
    --gold-glow: rgba(212, 175, 55, 0.15);
    --gold-border: rgba(212, 175, 55, 0.3);
    --text-white: #F5F5F7;          /* High readability white */
    --text-muted: #9C9896;          /* Muted coffee gray */
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Alerts & Labels */
    --alert-red: #EF4444;           /* Gluten-free / critical */
    --alert-orange: #F97316;        /* Nut-free / warning */
    --alert-yellow: #EAB308;        /* Vegan / caution */
    --green-ready: #10B981;         /* Ready status */
    --blue-info: #3B82F6;
    
    /* Font Outfit is imported in HTML */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-coffee-dark);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
    /* Soft coffee glow effect background */
    background-image:
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 0% 100%, rgba(139, 90, 43, 0.08) 0%, transparent 40%),
        linear-gradient(var(--bg-coffee-dark), var(--bg-coffee-dark));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    line-height: 1.4;
    font-size: 14px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-coffee-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* Animations */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 { animation: slideUpFade 0.4s var(--ease-out-expo) 0.05s both; }
.stagger-2 { animation: slideUpFade 0.4s var(--ease-out-expo) 0.10s both; }
.stagger-3 { animation: slideUpFade 0.4s var(--ease-out-expo) 0.15s both; }

/* Global Header Layout */
#main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
    background: #100E0D;
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.main-logo {
    height: 28px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.brand-info {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-white);
}

.brand-subtitle {
    font-size: 0.65rem;
    color: var(--gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 0.9rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.3s;
    border-radius: 6px;
}

.nav-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.03);
}

.nav-btn.active {
    color: var(--gold);
    background: var(--gold-glow);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.header-right {
    display: flex;
    align-items: center;
}

.role-badge {
    background: var(--bg-coffee-input);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.3s;
}

.role-badge:hover {
    border-color: var(--gold);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.2rem 1.25rem;
}

.page-panel {
    display: none;
}

.page-panel.active {
    display: block;
    animation: slideUpFade 0.5s var(--ease-out-expo) both;
}

.section-header {
    border-left: 3px solid var(--gold);
    padding-left: 0.7rem;
    margin-bottom: 1.2rem;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

/* Glassmorphic Panel Cards */
.panel-card {
    background: var(--bg-coffee-card);
    border: 1px solid var(--border-color);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-bottom: 1.5rem;
}

/* ==========================================
   Module 1: Daily Board Row Layout
   ========================================== */
.daily-board-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.function-row {
    display: grid;
    grid-template-columns: 200px 1fr 180px; /* Time/Pax | Desserts/Badges | Actions */
    align-items: center;
    background: var(--bg-coffee-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--gold);
    border-radius: 10px;
    padding: 1.2rem 1.8rem;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    gap: 1.5rem;
}

.function-row:hover {
    transform: translateX(4px);
    border-color: var(--gold-border);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.function-row.ready-status {
    border-left-color: var(--green-ready);
}

/* Header Left: Time & Pax Count */
.function-header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.function-time {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.function-pax {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.95;
    margin-top: 0.1rem;
}

/* Body Center: Dessert list, NOT wrapping horizontally */
.function-body-center {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
}

.dessert-item-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dessert-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
}

/* Alert tags badges */
.dietary-badge-container {
    display: inline-flex;
    gap: 0.4rem;
    flex-wrap: nowrap;
}

.dietary-pill {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.dietary-pill.gluten-free {
    background: rgba(239, 68, 68, 0.18);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.dietary-pill.nut-free {
    background: rgba(249, 115, 22, 0.18);
    color: #FDBA74;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.dietary-pill.vegan {
    background: rgba(234, 179, 8, 0.18);
    color: #FDE047;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.dietary-pill.other {
    background: rgba(59, 130, 246, 0.18);
    color: #93C5FD;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Footer Bottom Left: Room & Event details */
.function-footer-left {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.function-room {
    color: var(--gold-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.function-event-name {
    font-style: italic;
    opacity: 0.8;
}

/* Actions Right */
.function-actions-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.status-badge.prep {
    background: rgba(212, 175, 55, 0.12);
    color: var(--gold);
    border: 1px solid var(--gold-border);
}

.status-badge.ready {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green-ready);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-white);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.btn-primary {
    background: var(--gold);
    color: var(--bg-coffee-dark);
    border: 1px solid var(--gold);
}

.btn-primary:hover {
    background: var(--text-white);
    color: var(--bg-coffee-dark);
    border-color: var(--text-white);
    box-shadow: 0 0 12px var(--gold-glow);
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--alert-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: var(--alert-red);
    color: white;
    border-color: var(--alert-red);
}

/* ==========================================
   Module 2: Weekly Input Split Screen
   ========================================== */
#weekly-input-panel .split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    height: calc(100vh - 160px);
    min-height: 520px;
    max-height: 920px;
}

/* Left panel: BEO PDF simulator */
.beo-viewer-panel {
    background: #1C1917; /* Slate dark paper tone */
    border: 2px dashed rgba(212, 175, 55, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: border-color 0.3s ease;
}

.pdf-viewport {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    user-select: none;
    border-radius: 8px;
    background: #151312;
    cursor: default;
}

.pdf-viewport.can-pan {
    cursor: grab;
}

.pdf-viewport.is-panning {
    cursor: grabbing !important;
}

.pdf-canvas-wrapper {
    display: inline-block;
    position: relative;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
}

.pdf-canvas-wrapper img, .pdf-canvas-wrapper canvas {
    display: block;
    user-select: none;
    pointer-events: none;
    -webkit-user-drag: none;
}

.beo-viewer-panel.dragover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.15), inset 0 2px 10px rgba(0,0,0,0.6);
    transform: scale(1.008);
}

/* Loading Overlay Mask */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 25, 23, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    text-align: center;
}

.loading-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.loading-overlay .spinner {
    font-size: 3rem;
    animation: rotateSpinner 2.5s linear infinite;
    margin-bottom: 1rem;
    display: inline-block;
}

.loading-overlay .loading-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.loading-overlay .loading-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes rotateSpinner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.beo-doc-container {
    flex-grow: 1;
    background: #F5F4F0; /* Soft paper color */
    color: #1C1917;
    border-radius: 8px;
    padding: 1.5rem;
    font-size: 0.8rem;
    line-height: 1.4;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace; /* Typographic courier invoice look */
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    position: relative;
}

.beo-header {
    text-align: center;
    border-bottom: 2px dashed #1C1917;
    padding-bottom: 0.8rem;
    margin-bottom: 1rem;
}

.beo-title {
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.beo-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #1C1917;
    padding-bottom: 0.6rem;
}

.beo-meta-item strong {
    font-weight: bold;
}

.beo-content-section {
    margin-bottom: 1rem;
}

.beo-section-title {
    font-weight: bold;
    text-decoration: underline;
    margin-bottom: 0.4rem;
}

.beo-line-item {
    margin-bottom: 0.3rem;
}

.beo-line-item.highlight-whitelisted {
    background: rgba(212, 175, 55, 0.25);
    border-left: 2px solid var(--gold-dim);
    padding-left: 4px;
}

.beo-line-item.ignored-line {
    opacity: 0.45;
    text-decoration: line-through;
}

.beo-stamp {
    position: absolute;
    top: 20px;
    right: 20px;
    border: 3px double #EF4444;
    color: #EF4444;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 8px;
    transform: rotate(15deg);
    border-radius: 4px;
    text-transform: uppercase;
}

/* Right Panel: Auto populated review form */
.intake-form-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex-shrink: 0;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    background: var(--bg-coffee-input);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: white;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: var(--gold);
}

.desserts-dynamic-array {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 220px;
    overflow-y: auto;
    background: rgba(0,0,0,0.15);
    padding: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.dessert-form-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.dessert-placeholder-select {
    border: 1px solid var(--alert-orange);
    box-shadow: 0 0 5px rgba(249, 115, 22, 0.4);
}

/* Scan Simulation Controls */
.preset-selector-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.scan-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    margin: 0.5rem 0;
}

.scan-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--gold);
    transition: width 0.1s linear;
}

/* ==========================================
   Module 3: Special Ordering Two Column Layout
   ========================================== */
.workbench-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 1.5rem;
}

/* Upcoming feed scroll */
.upcoming-functions-feed {
    max-height: 520px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-right: 0.4rem;
}

.feed-event-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.feed-event-card:hover, .feed-event-card.selected {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.03);
}

.feed-event-title {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.9rem;
}

.feed-event-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
    display: flex;
    justify-content: space-between;
}

/* Output view section */
.checklist-output-card {
    margin-top: 2rem;
}

/* Scope Selector Pills */
.scope-pill-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.45rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.scope-pill-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
}

.scope-pill-btn.active {
    background: var(--gold-glow);
    color: var(--gold);
    border: 1px solid var(--gold-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.mindmap-scheduled-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34D399;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    margin-top: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Storage Zone Color-Coded Badges */
.zone-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    letter-spacing: 0.3px;
}

.zone-tag.freezer {
    background: rgba(59, 130, 246, 0.18);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.zone-tag.fridge {
    background: rgba(16, 185, 129, 0.18);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.zone-tag.drystore {
    background: rgba(245, 158, 11, 0.18);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Summary Table Zone Filter Tabs */
.summary-zone-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.summary-zone-tab:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.04);
}

.summary-zone-tab.active {
    background: var(--gold-glow);
    color: var(--gold);
    border: 1px solid var(--gold-border);
}

.summary-zone-tab.zone-freezer.active {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.summary-zone-tab.zone-fridge.active {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.summary-zone-tab.zone-drystore.active {
    background: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

/* ==========================================
   Module 3.1: Modern Collapsible Mind Map Cards
   ========================================== */
/* ==========================================
   Module 3.1: Visual Radial SVG Mind Map Engine
   ========================================== */

/* Viewport & Canvas */
.mindmap-viewport-container {
    position: relative;
    width: 100%;
    height: 780px;
    background: #0d0c0b;
    background-image: 
        radial-gradient(rgba(212, 175, 55, 0.08) 1.5px, transparent 1.5px),
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 32px 32px, 96px 96px, 96px 96px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.7);
    transition: height 0.3s ease;
}

.mindmap-viewport-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    border-radius: 0;
    border: none;
}

.mindmap-viewport-container:active {
    cursor: grabbing;
}

.mindmap-canvas-plane {
    position: absolute;
    top: 0;
    left: 0;
    width: 5000px;
    height: 4000px;
    transform-origin: 0 0;
    pointer-events: none;
}

.mindmap-svg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mindmap-svg-layer path.mindmap-branch-curve {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke-width 0.2s ease, opacity 0.2s ease;
}

.mindmap-svg-layer path.mindmap-branch-curve:hover {
    stroke-width: 4.5px !important;
    filter: drop-shadow(0 0 6px currentColor);
}

.mindmap-nodes-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Floating Navigation Controls */
.mindmap-floating-toolbar {
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;
    display: flex;
    gap: 0.4rem;
    background: rgba(20, 18, 16, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 0.35rem 0.6rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 20;
    pointer-events: auto;
}

.mindmap-tool-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.mindmap-tool-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-1px);
}

/* Branch Theme Color Palettes (Multi-colored Organic Branches) */
:root {
    --branch-0: #06B6D4;
    --branch-0-glow: rgba(6, 182, 212, 0.2);
    --branch-1: #F59E0B;
    --branch-1-glow: rgba(245, 158, 11, 0.2);
    --branch-2: #EC4899;
    --branch-2-glow: rgba(236, 72, 153, 0.2);
    --branch-3: #10B981;
    --branch-3-glow: rgba(16, 185, 129, 0.2);
    --branch-4: #8B5CF6;
    --branch-4-glow: rgba(139, 92, 246, 0.2);
    --branch-5: #D4AF37;
    --branch-5-glow: rgba(212, 175, 55, 0.2);
    --branch-6: #3B82F6;
    --branch-6-glow: rgba(59, 130, 246, 0.2);
    --branch-7: #EF4444;
    --branch-7-glow: rgba(239, 68, 68, 0.2);
}

/* Node Generic Card */
.mindmap-node {
    position: absolute;
    pointer-events: auto;
    display: flex;
    align-items: center;
    transform: translate(-50%, -50%);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    font-family: inherit;
}

/* Level 0: Central Root Node */
.mindmap-node.root-node {
    background: linear-gradient(135deg, #1f1a14, #12100d);
    border: 2.5px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.35), 0 8px 24px rgba(0, 0, 0, 0.8);
    border-radius: 30px;
    padding: 0.75rem 1.6rem;
    color: var(--gold);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 10;
    gap: 0.6rem;
}

.mindmap-node.root-node:hover {
    box-shadow: 0 0 45px rgba(212, 175, 55, 0.6), 0 10px 30px rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.03);
}

/* Level 1: Category Nodes (Main Trunk) */
.mindmap-node.category-node {
    background: #191715;
    border: 1.8px solid var(--branch-color, var(--gold));
    border-radius: 24px;
    padding: 0.5rem 1.1rem;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 12px var(--branch-glow, rgba(212, 175, 55, 0.15));
    z-index: 8;
    gap: 0.5rem;
}

.mindmap-node.category-node:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7), 0 0 20px var(--branch-glow, rgba(212, 175, 55, 0.3));
    transform: translate(-50%, -50%) scale(1.02);
}

/* Level 2: Dessert / Menu Item Nodes (Branches) */
.mindmap-node.dessert-node {
    background: #161514;
    border: 1.2px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid var(--branch-color, var(--gold));
    border-radius: 10px;
    padding: 0.45rem 0.85rem;
    color: #e5e5e5;
    font-size: 0.84rem;
    font-weight: 600;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    z-index: 6;
    gap: 0.5rem;
    max-width: 320px;
}

.mindmap-node.dessert-node.left-side {
    border-left: 1.2px solid rgba(255, 255, 255, 0.12);
    border-right: 4px solid var(--branch-color, var(--gold));
}

.mindmap-node.dessert-node:hover {
    border-color: var(--branch-color, var(--gold));
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.6), 0 0 10px var(--branch-glow, rgba(212, 175, 55, 0.2));
    transform: translate(-50%, -50%) scale(1.02);
}

/* Level 3: Raw Material / Item Leaf Nodes */
.mindmap-node.material-node {
    background: #11100f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.3rem 0.65rem;
    color: #cccccc;
    font-size: 0.78rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 4;
    gap: 0.4rem;
    max-width: 290px;
}

.mindmap-node.material-node:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: #1a1816;
    color: #ffffff;
    transform: translate(-50%, -50%) scale(1.02);
}

/* Node Action Toolbar (Quick Hover Pill) */
.node-action-toolbar {
    display: none;
    align-items: center;
    gap: 0.2rem;
    margin-left: 0.3rem;
    background: rgba(15, 14, 13, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 1px 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.mindmap-node:hover .node-action-toolbar {
    display: inline-flex;
}

.node-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 2px 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.node-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--gold);
}

.node-btn.add-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    color: var(--gold);
}

.node-btn.del-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

/* Node Collapse Toggle Indicator Button */
.node-collapse-toggle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--branch-color, var(--gold));
    color: #000;
    font-size: 0.65rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 6px var(--branch-glow, rgba(212, 175, 55, 0.4));
    transition: transform 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
}

.node-collapse-toggle:hover {
    transform: scale(1.2);
}

/* Storage badges inside material node */
.material-zone-badge {
    font-size: 0.68rem;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 700;
}
.material-zone-badge.freezer { background: rgba(59, 130, 246, 0.25); color: #60A5FA; }
.material-zone-badge.fridge { background: rgba(16, 185, 129, 0.25); color: #34D399; }
.material-zone-badge.drystore { background: rgba(245, 158, 11, 0.25); color: #FBBF24; }

    gap: 0.7rem;
    animation: drawerSlideDown 0.3s var(--ease-out-expo) both;
}

@keyframes drawerSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mindmap-branch-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-left: 1.2rem;
    border-left: 2px solid rgba(212, 175, 55, 0.3);
    margin-left: 0.6rem;
}

.mindmap-branch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
    position: relative;
    transition: all 0.25s ease;
}

.mindmap-branch-item::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    width: 12px;
    height: 2px;
    background: rgba(212, 175, 55, 0.4);
}

.mindmap-branch-item:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold-border);
    transform: translateX(2px);
}

/* ==========================================
   Module 4: Data Admin Layout
   ========================================== */
.admin-tab-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.admin-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
}

.admin-tab-btn:hover {
    color: white;
}

.admin-tab-btn.active {
    color: var(--bg-coffee-dark);
    background: var(--gold);
}

.admin-tab-panel {
    display: none;
}

.admin-tab-panel.active {
    display: block;
}

/* Data Tables */
.admin-table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.15);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.admin-table th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--gold);
    font-weight: 600;
    padding: 0.8rem 1rem;
    border-bottom: 2px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-white);
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

/* ==========================================
   Global Overlay Modal & Toasts
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-coffee-card);
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--gold);
    border-radius: 12px;
    width: 90%;
    max-width: 540px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1.6rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: translateY(-15px);
    transition: transform 0.3s var(--ease-out-expo);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-close-btn:hover {
    color: white;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.modal-full {
    grid-column: span 2;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

/* Toast System */
#toast-box {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 300;
}

.toast {
    background: var(--bg-coffee-card);
    border: 1px solid var(--gold-border);
    border-left: 4px solid var(--gold);
    color: var(--text-white);
    padding: 0.8rem 1.4rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideUpFade 0.3s var(--ease-out-expo) both;
}

.toast.success {
    border-left-color: var(--green-ready);
}

.toast.error {
    border-left-color: var(--alert-red);
}

/* Dynamic Countdown Styles */
.function-countdown {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0.2rem 0;
    transition: color 0.3s;
}

.function-countdown.urgent {
    color: var(--alert-orange);
    font-weight: bold;
    animation: pulseText 1.5s infinite;
}

.function-countdown.overdue {
    color: var(--alert-red);
    font-weight: bold;
}

@keyframes pulseText {
    0% { opacity: 0.85; }
    50% { opacity: 1; }
    100% { opacity: 0.85; }
}

/* ==========================================
   Searchable Autocomplete Dropdown & Dessert Rows
   ========================================== */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-coffee-card);
    border: 1px solid var(--gold-border);
    border-radius: 6px;
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

.dropdown-category-tabs {
    display: flex;
    gap: 0.3rem;
    padding: 0.4rem 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--gold-border);
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 2;
}

.dropdown-category-tabs .tab-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.dropdown-category-tabs .tab-btn:hover {
    color: var(--text-white);
    border-color: var(--gold-dim);
}

.dropdown-category-tabs .tab-btn.active {
    background: var(--gold);
    color: var(--bg-coffee-dark);
    border-color: var(--gold);
    font-weight: 700;
}

.dropdown-category-header {
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s, color 0.2s;
    color: var(--text-white);
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.dropdown-item .item-dietaries {
    display: inline-flex;
    gap: 0.2rem;
}

/* Selected Dessert Row styling */
.dessert-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.row-inputs-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

/* Custom Item Badge */
.badge-custom {
    background-color: #6a1b9a; /* Distinct Purple for Manual Entries */
    color: #fff;
    border: 1px dashed #e1bee7;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-right: 0.4rem;
    display: inline-block;
}

/* Dietary Tag Badges */
.badge-gf { background-color: #2e7d32; color: #fff; }
.badge-v { background-color: #4caf50; color: #fff; }
.badge-n { background-color: #e65100; color: #fff; }
.badge-df { background-color: #0288d1; color: #fff; }
.badge-vg { background-color: #15803d; color: #fff; }

/* Custom Entry Section in Dropdown */
.custom-entry-section {
    background: rgba(106, 27, 154, 0.18);
    border-top: 1px dashed rgba(225, 190, 231, 0.3);
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.custom-prompt {
    font-size: 0.82rem;
    color: #e1bee7;
}

.custom-tags-selection {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-white);
}

.custom-tags-selection label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    user-select: none;
}

.custom-tags-selection input[type="checkbox"] {
    accent-color: #9c27b0;
    cursor: pointer;
}

.btn-add-custom {
    background: #6a1b9a;
    color: #ffffff;
    border: 1px solid #ab47bc;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    transition: all 0.2s;
}

.btn-add-custom:hover {
    background: #8e24aa;
    box-shadow: 0 0 10px rgba(156, 39, 176, 0.4);
}

/* Dietary Requirements Section Upgrade */
.dietary-section {
    margin-bottom: 1rem;
}

.dietary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.dietary-counter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(37, 37, 37, 0.8);
    padding: 5px 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.dietary-counter-item .dietary-label {
    font-size: 0.75rem;
    color: var(--text-white);
    font-weight: 500;
}

.dietary-count-input {
    width: 48px;
    text-align: center;
    background: #121212;
    border: 1px solid var(--gold-border);
    color: var(--gold);
    font-weight: 700;
    border-radius: 4px;
    padding: 3px 4px;
    font-size: 0.82rem;
}

.dietary-count-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.4);
}

.guest-notes-wrapper {
    margin-top: 8px;
}

/* --- UX Optimization Styles --- */
/* High Contrast Filter */
.pdf-canvas-wrapper.high-contrast img,
.pdf-canvas-wrapper.high-contrast pre {
    filter: contrast(160%) brightness(105%) saturate(120%) !important;
}

/* Magnifier Lens Window */
.magnifier-lens {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    box-shadow: 0 0 20px rgba(0,0,0,0.8), inset 0 0 10px rgba(212, 175, 55, 0.4);
    pointer-events: none;
    display: none;
    z-index: 1000;
    overflow: hidden;
    background-repeat: no-repeat;
    background-color: #ffffff;
}

/* Non-zero Dietary Count Input Highlight */
.dietary-count-input.has-value {
    background: rgba(212, 175, 55, 0.25) !important;
    color: #ffffff !important;
    border-color: var(--gold) !important;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

/* Form Sticky Action Footer (Section 3 Workflow Completion) */
.form-sticky-footer {
    position: sticky;
    bottom: 0;
    background: rgba(28, 25, 23, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-color);
    padding: 0.8rem 0 0.4rem 0;
    margin-top: 0.8rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    z-index: 20;
}

/* ==========================================
   Dual-Mode Kitchen Execution Board Styles
   ========================================== */
.mode-switcher-container {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.mode-switcher-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mode-switcher-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.mode-switcher-btn.active {
    background: var(--gold);
    color: var(--bg-coffee-dark);
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.mode-time-hint {
    font-size: 0.72rem;
    opacity: 0.8;
    font-weight: normal;
}

/* View A: Batch Production Cards */
.batch-product-card {
    background: var(--bg-coffee-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.2rem;
    transition: border-color 0.3s;
}

.batch-product-card:hover {
    border-color: var(--gold-border);
}

.batch-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.batch-product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.batch-dietary-alert {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid var(--alert-red);
    color: #f87171;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.batch-card-metrics {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem 1.5rem;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-white);
    margin-bottom: 1rem;
}

.batch-metric-label {
    color: var(--text-muted);
    font-weight: 500;
}

.banana-scale {
    letter-spacing: 2px;
    font-size: 1.1rem;
}

.batch-progress-bar-wrapper {
    margin-top: 0.5rem;
}

.batch-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.batch-progress-track {
    width: 100%;
    height: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.batch-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37 0%, #10b981 100%);
    border-radius: 5px;
    transition: width 0.4s ease-out;
}

/* Collapsible Details Breakdown */
.batch-allocation-details {
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.8rem;
}

.batch-allocation-details summary {
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    user-select: none;
    outline: none;
}

.batch-allocation-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.6rem;
    font-size: 0.82rem;
}

.batch-allocation-table th {
    text-align: left;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding: 0.4rem 0.6rem;
}

.batch-allocation-table td {
    padding: 0.5rem 0.6rem;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-white);
}

/* View B: Chronological Service Mode */
.service-run-section {
    margin-bottom: 2rem;
}

.service-run-header {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold-border);
    margin-bottom: 1rem;
}

.service-run-header.urgent-run {
    color: var(--alert-red);
    border-bottom-color: var(--alert-red);
}

.service-room-card {
    background: var(--bg-coffee-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}

.service-room-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-item-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.service-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    font-size: 0.88rem;
}

.service-item-row.completed {
    opacity: 0.6;
    background: rgba(16, 185, 129, 0.08);
    border-color: var(--green-ready);
}

.service-item-row.completed .service-item-name {
    text-decoration: line-through;
}

.service-item-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.service-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--gold);
}

.service-item-status-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid var(--gold-border);
}

.service-item-status-pill.ready {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: var(--green-ready);
}


/* ==========================================
   Kitchen Execution Master Board Mockup Styles
   ========================================== */
:root {
    --font-core: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    --color-core: #FFFFFF;
    --color-accent: #FFD700; /* Primary data highlight gold */
    --color-secondary: #8E8E93; /* Secondary information medium grey */
    --bg-card: #1C1C1E;
}

.section-title {
    font-size: 13px;
    color: #AAAAAA;
    letter-spacing: 0.8px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: bold;
}

.timeline-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.timeline-card {
    background: #1E1E1E;
    border-left: 5px solid #FF3B30;
    border-radius: 8px;
    padding: 12px 14px;
    flex: 1;
    min-width: 240px;
}

.timeline-card.on-schedule {
    border-left-color: #34C759;
}

/* Core info: Time and Venue */
.time-large {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--color-accent);
    letter-spacing: 0.5px;
}

.venue-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-core);
    margin: 2px 0;
}

.timeline-time {
    font-size: 17px;
    font-weight: bold;
    color: #FFCC00;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.timeline-badge {
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
    background: rgba(255, 59, 48, 0.2);
    color: #FF3B30;
}

.timeline-badge.green {
    background: rgba(52, 199, 89, 0.2);
    color: #34C759;
}

.timeline-venue {
    font-size: 15px;
    font-weight: 600;
    color: #FFFFFF;
}

.timeline-pax {
    font-size: 12px;
    color: #888888;
    margin-top: 2px;
}

/* Production Batch Zone */
.batch-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.batch-card {
    background: #1E1E1E;
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #2C2C2C;
}

.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

/* Core info: Dish Name and Hero PAX count */
.item-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
}

.pax-hero {
    font-size: 2.2rem !important;
    font-weight: 900 !important;
    color: var(--color-accent) !important;
    line-height: 1;
}

.pax-hero .unit {
    font-size: 1rem;
    color: #FFF;
}

/* Secondary info: Client name, secondary text muted */
.client-name, .muted {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--color-secondary);
}

.batch-title {
    font-size: 18px;
    font-weight: bold;
    color: #FFFFFF;
}

.allergen-badge {
    background: #FF3B30;
    color: #FFFFFF;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    animation: pulse 2s infinite;
}

.dietary-badge {
    font-size: 14px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.dietary-badge:hover {
    transform: scale(1.03);
    filter: brightness(1.15);
}

.dietary-candidate-card {
    background: #1A1A1A;
    border: 1px solid #2C2C2C;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.dietary-candidate-card:hover {
    background: #252525;
    border-color: #0A84FF;
}

.dietary-candidate-card.disabled {
    opacity: 0.45;
    pointer-events: none;
    background: #141414;
    border-color: #222222;
}

.dietary-candidate-card.active-selected {
    border-color: #34C759;
    background: rgba(52, 199, 89, 0.08);
}

.dietary-badge.standard {
    background: rgba(52, 199, 89, 0.15);
    color: #34C759;
    border: 1px solid rgba(52, 199, 89, 0.4);
}

.dietary-badge.alert {
    background: #FF3B30;
    color: #FFFFFF;
    animation: pulse 2s infinite;
}

.batch-metrics {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 12px;
}

/* Breakdown toggle and table styles */
td.bold {
    font-weight: 700;
    color: #FFF;
}

td.boldhighlight {
    font-weight: 900;
    color: var(--color-accent);
}

.pax-count {
    font-size: 36px;
    font-weight: 900;
    color: #FFCC00;
}

.progress-bar-bg {
    flex: 1;
    background: #2A2A2A;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.progress-bar-fill {
    background: #34C759;
    height: 100%;
    border-radius: 8px;
    transition: width 0.4s ease;
}

.progress-text {
    font-size: 16px;
    font-weight: bold;
    color: #888888;
    width: 50px;
    text-align: right;
}

/* Collapsible Details */
.batch-card details {
    background: #161616;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #262626;
}

.batch-card summary {
    font-size: 14px;
    color: #0A84FF;
    cursor: pointer;
    font-weight: 600;
    outline: none;
}

.batch-card table {
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
    font-size: 14px;
}

.batch-card th, .batch-card td {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #282828;
}

.batch-card th {
    color: #666;
    font-weight: 600;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* =========================================================
   Mockup Card Layout (Time & Venue Group Card Layout)
   ========================================================= */
.daily-board-group-card {
    background: #141414;
    border: 1px solid #282828;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.group-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #262626;
    margin-bottom: 10px;
}

.group-time-venue {
    display: flex;
    align-items: center;
    gap: 10px;
}

.group-time-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: #FFCC00;
    letter-spacing: 0.5px;
}

.group-divider {
    color: #444;
    font-size: 1.2rem;
    font-weight: 300;
}

.group-venue-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #FFFFFF;
}

.group-countdown-badge {
    background: rgba(255, 59, 48, 0.2);
    color: #FF3B30;
    border: 1px solid #FF3B30;
    box-shadow: 0 0 12px rgba(255, 59, 48, 0.5);
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.3px;
}

.group-countdown-badge.ready {
    background: rgba(52, 199, 89, 0.2);
    color: #34C759;
    border-color: #34C759;
    box-shadow: 0 0 12px rgba(52, 199, 89, 0.5);
}

.group-dishes-track {
    border-left: 2px solid #2E2E2E;
    margin-left: 10px;
    padding-left: 16px;
    position: relative;
}

.group-track-icon {
    position: absolute;
    top: -20px;
    left: -13px;
    background: #141414;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 2px 4px;
    font-size: 0.95rem;
}

.dish-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    margin-bottom: 6px;
}

.dish-name-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
}

.dish-pax-hero {
    font-size: 1.4rem;
    font-weight: 900;
    color: #FFCC00;
}

.dish-inner-card {
    background: #1A1A1A;
    border: 1px solid #2A2A2A;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 1fr;
    gap: 12px;
    align-items: center;
}

.dish-info-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.column-title {
    font-size: 0.72rem;
    font-weight: bold;
    color: #AAAAAA;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-label-value {
    font-size: 0.82rem;
    color: #DDDDDD;
    line-height: 1.35;
}

.dietary-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dietary-pill {
    font-size: 0.72rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.dietary-pill:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.dietary-pill.vegan {
    background: #1B5E20;
    color: #FFFFFF;
    border: 1px solid #2E7D32;
}

.dietary-pill.nut-free {
    background: #8B2500;
    color: #FFFFFF;
    border: 1px solid #A03000;
}

.dietary-pill.gluten-free {
    background: #880E4F;
    color: #FFFFFF;
    border: 1px solid #C2185B;
}

.dietary-pill.standard {
    background: #1B5E20;
    color: #FFFFFF;
    border: 1px solid #2E7D32;
}

.status-pill-btn {
    background: rgba(255, 204, 0, 0.15);
    color: #FFCC00;
    border: 1px solid #FFCC00;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
    border-radius: 16px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: auto;
}

.status-pill-btn.ready {
    background: rgba(52, 199, 89, 0.15);
    color: #34C759;
    border-color: #34C759;
    box-shadow: 0 0 10px rgba(52, 199, 89, 0.3);
}

.status-pill-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

/* ==========================================================================
   HUMAN FACTORS & RESPONSIVE MULTI-DEVICE DESIGN SYSTEM
   ========================================================================== */

/* --- 1. Ergonomic Touch Targets & Visual Feedback --- */
button, .btn, .status-pill-btn, .dietary-pill, .nav-item, input, select {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.status-pill-btn, .dietary-pill, .btn {
    min-height: 36px; /* Optimized Ergonomic Touch Target Height */
    box-sizing: border-box;
}

.status-pill-btn:active, .dietary-pill:active, .btn:active {
    transform: scale(0.96) !important;
    opacity: 0.9;
}

/* --- 2. TV / Wall Display / Kitchen Kiosk (Ultra Large Screen >= 1800px) --- */
@media screen and (min-width: 1800px) {
    .container, .content-container {
        max-width: 1760px;
        margin: 0 auto;
    }

    /* 2-Column Grid for Daily Board Cards on Large Screen Wall Displays */
    #master-timeline-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .daily-board-group-card {
        padding: 20px 24px;
    }

    .group-time-text {
        font-size: 1.8rem;
    }

    .group-venue-text {
        font-size: 1.4rem;
    }

    .dish-name-title {
        font-size: 1.3rem;
    }

    .dish-pax-hero {
        font-size: 1.7rem;
    }
}

/* --- 3. Standard Desktop & Laptop Workstations (1200px to 1799px) --- */
@media screen and (min-width: 1200px) and (max-width: 1799px) {
    .daily-board-group-card {
        padding: 16px 20px;
    }
}

/* --- 4. Tablets, iPad & Touchscreen Workstations (768px to 1199px) --- */
@media screen and (max-width: 1199px) {
    #main-header {
        padding: 0.5rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .nav-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
    }

    .split-screen {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .beo-viewer-panel, .beo-form-panel {
        width: 100% !important;
        max-width: 100% !important;
    }

    .daily-board-group-card {
        padding: 12px 14px;
        margin-bottom: 12px;
    }

    .group-time-text {
        font-size: 1.35rem;
    }

    .group-venue-text {
        font-size: 1.1rem;
    }

    .dish-name-title {
        font-size: 1.05rem;
    }

    .dish-pax-hero {
        font-size: 1.3rem;
    }

    .dish-inner-card {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 10px 12px;
    }

    .dish-info-column:last-child {
        grid-column: span 2;
        align-items: flex-start !important;
        margin-top: 4px;
        padding-top: 8px;
        border-top: 1px dashed rgba(255, 255, 255, 0.1);
    }

    .status-pill-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* --- 5. Mobile & Portable Touch Terminals (< 768px) --- */
@media screen and (max-width: 767px) {
    /* Layout Header & Navigation */
    .top-header, .header-bar {
        padding: 12px 16px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .nav-tabs {
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .daily-board-group-card {
        padding: 16px 14px;
        margin-bottom: 16px;
        border-radius: 10px;
    }

    .group-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .group-time-venue {
        flex-wrap: wrap;
        gap: 8px;
    }

    .group-time-text {
        font-size: 1.7rem;
    }

    .group-venue-text {
        font-size: 1.2rem;
    }

    .group-divider {
        display: none;
    }

    .group-countdown-badge {
        align-self: flex-start;
        font-size: 0.78rem;
        padding: 4px 10px;
    }

    .group-dishes-track {
        margin-left: 4px;
        padding-left: 14px;
    }

    .group-track-icon {
        left: -12px;
        font-size: 0.9rem;
    }

    .dish-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .dish-name-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .dish-pax-hero {
        font-size: 1.5rem;
        align-self: flex-end;
    }

    .dish-inner-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 14px 14px;
        border-radius: 8px;
    }

    .dish-info-column:last-child {
        grid-column: span 1;
    }

    /* Modal adaptation for mobile screens */
    .modal-content, #dietary-selection-modal .modal-card {
        width: 94% !important;
        max-width: 94% !important;
        margin: 10px auto !important;
        padding: 16px !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }

    .dietary-candidate-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
    }

    .dietary-candidate-card > div:last-child {
        width: 100%;
    }
}

/* Quick Time Presets & Clock Time Picker Styling */
.native-time-picker-btn {
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
}

.native-time-picker-btn:hover {
    border-color: var(--gold) !important;
    background: rgba(212, 175, 55, 0.18) !important;
    transform: scale(1.05);
}

.time-presets-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.time-preset-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.time-preset-chip:hover {
    background: var(--gold-glow);
    color: var(--gold);
    border-color: var(--gold);
    transform: translateY(-1px);
}

    .dietary-candidate-card button {
        width: 100%;
    }

/* OCR Bounding Box Highlight Overlay Styles */
.beo-ocr-highlight-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.ocr-highlight-box {
    position: absolute;
    background: rgba(255, 204, 0, 0.3);
    border: 1.5px solid #FFCC00;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.6);
    pointer-events: auto;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    animation: highlightPulse 2s infinite ease-in-out;
}

.ocr-highlight-box:hover {
    background: rgba(255, 204, 0, 0.6);
    transform: scale(1.02);
    z-index: 15;
}

.ocr-highlight-box .ocr-highlight-label {
    position: absolute;
    top: -18px;
    left: 0;
    background: #FFCC00;
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@keyframes highlightPulse {
    0% { box-shadow: 0 0 4px rgba(255, 204, 0, 0.4); }
    50% { box-shadow: 0 0 10px rgba(255, 204, 0, 0.8); }
    100% { box-shadow: 0 0 4px rgba(255, 204, 0, 0.4); }
}

/* ==========================================
   Multi-Session Time Slot Filter & Badges
   ========================================== */
.session-filter-bar {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    margin-bottom: 0.6rem;
    padding-bottom: 0.3rem;
    -webkit-overflow-scrolling: touch;
}

.session-filter-chip {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.session-filter-chip:hover {
    border-color: var(--gold-border);
    color: var(--text-white);
    background: rgba(212, 175, 55, 0.08);
}

.session-filter-chip.active {
    background: var(--gold-glow);
    color: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.25);
}

.dessert-session-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.dessert-session-badge.morning-tea {
    background: rgba(245, 158, 11, 0.18);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.dessert-session-badge.lunch {
    background: rgba(16, 185, 129, 0.18);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.dessert-session-badge.afternoon-tea {
    background: rgba(139, 92, 246, 0.18);
    color: #C084FC;
    border: 1px solid rgba(139, 92, 246, 0.35);
}

.dessert-session-badge.dinner {
    background: rgba(239, 68, 68, 0.18);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.dessert-session-badge.general {
    background: rgba(156, 152, 150, 0.18);
    color: #D6D3D1;
    border: 1px solid rgba(156, 152, 150, 0.35);
}

/* ======================================================
   THREE-TRACK PROCUREMENT & RECIPE BOM ENGINE STYLES
   ====================================================== */

/* Procurement Tab Bar */
.procurement-tab-bar {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-coffee-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 6px;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.procurement-tab-btn {
    flex: 1;
    min-width: 160px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.procurement-tab-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-white);
}

.procurement-tab-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.05));
    border-color: var(--gold-border);
    color: var(--gold);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.procurement-tab-panel {
    display: none;
    animation: slideUpFade 0.35s var(--ease-out-expo) both;
}

.procurement-tab-panel.active {
    display: block;
}

/* Three-Track KPI Overview Cards */
.three-track-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.track-kpi-card {
    background: var(--bg-coffee-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.track-kpi-card:hover {
    border-color: var(--gold-border);
    transform: translateY(-2px);
}

.track-kpi-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.track-kpi-card.track-banquet::before { background: #3B82F6; }
.track-kpi-card.track-hightea::before { background: #EC4899; }
.track-kpi-card.track-cafe::before { background: #10B981; }
.track-kpi-card.track-master::before { background: var(--gold); }

.track-kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.track-kpi-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.track-kpi-val {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
}

.track-kpi-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* Master Summary Table Styling */
.master-summary-table th {
    background: #191614 !important;
    font-size: 0.76rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 0.8rem !important;
}

.master-summary-table td {
    padding: 0.75rem 0.8rem !important;
    vertical-align: middle;
    font-size: 0.84rem;
}

.deficit-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.18);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.sufficient-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.12);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.zone-tag {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.zone-tag.fridge { background: rgba(59, 130, 246, 0.18); color: #60A5FA; border: 1px solid rgba(59, 130, 246, 0.3); }
.zone-tag.freezer { background: rgba(147, 197, 253, 0.18); color: #93C5FD; border: 1px solid rgba(147, 197, 253, 0.3); }
.zone-tag.drystore { background: rgba(245, 158, 11, 0.18); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); }

/* High Tea Planner Components */
.hightea-sets-card {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.08), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.hightea-sets-control {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.hightea-number-input {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
    background: var(--bg-coffee-input);
    border: 2px solid var(--gold-border);
    border-radius: 8px;
    width: 110px;
    text-align: center;
    padding: 0.3rem 0.5rem;
}

.buffer-chip {
    background: rgba(236, 72, 153, 0.2);
    color: #F472B6;
    border: 1px solid rgba(236, 72, 153, 0.4);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Belle Cafe Inventory Table Inline Input */
.cafe-inline-input {
    background: var(--bg-coffee-input);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    width: 90px;
    text-align: center;
    transition: border-color 0.2s;
}

.cafe-inline-input:focus {
    border-color: var(--gold);
    outline: none;
    background: #25201E;
}

/* Recipe BOM Modal & Drawer */
.bom-config-header {
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.bom-table th {
    background: #171413;
    font-size: 0.74rem;
    color: var(--gold);
    text-transform: uppercase;
}

.bom-row {
    transition: background 0.2s;
}

.bom-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.bom-row-input {
    background: var(--bg-coffee-input);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.35rem 0.6rem;
    border-radius: 4px;
    font-size: 0.82rem;
    width: 100%;
}

.bom-row-input:focus {
    border-color: var(--gold);
    outline: none;
}

/* Daily Timeline Ingredient Readiness Badge */
.ingredient-readiness-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: transform 0.15s;
}

.ingredient-readiness-badge:hover {
    transform: scale(1.05);
}

.ingredient-readiness-badge.ready {
    background: rgba(16, 185, 129, 0.18);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.ingredient-readiness-badge.low {
    background: rgba(239, 68, 68, 0.2);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.45);
    animation: pulseAlert 2s infinite ease-in-out;
}

@keyframes pulseAlert {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 8px 2px rgba(239, 68, 68, 0.25); }
}

/* Print Stylesheet for PR / Order List */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    #main-header, .procurement-tab-bar, .section-header button, .btn {
        display: none !important;
    }
    .page-panel {
        display: block !important;
    }
    .master-summary-table {
        color: #000 !important;
        border: 1px solid #ccc !important;
    }
    .master-summary-table th, .master-summary-table td {
        border: 1px solid #ddd !important;
        color: #000 !important;
    }
}
