/* ============================================================================
   STAFF APP - WHITE & ORANGE THEME (v3.0)
   Complete styles for all roles: Owner, Waiter, Cook, Hostess
   ============================================================================ */

:root {
    /* Основная палитра - оранжевая */
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FFF0EB;
    
    /* Нейтральные цвета */
    --bg: #F8F9FA;
    --card-bg: #FFFFFF;
    --text: #1A1A1A;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --divider: #F0F0F0;
    
    /* Статусы */
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --info: #3B82F6;
    --info-light: #DBEAFE;
    
    /* Эффекты */
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-fab: 0 4px 20px rgba(255,107,53,0.4);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 90px;
}

#app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ============================================================================
   LOGIN STYLES
   ============================================================================ */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--bg);
}

.login-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.login-logo p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text);
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

.error-message {
    background: var(--danger-light);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.demo-credentials {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 12px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.demo-credentials code {
    background: var(--bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--text);
}

.language-selector {
    margin-top: 24px;
    text-align: center;
}

.language-selector select {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
}

/* ============================================================================
   WAITER INTERFACE
   ============================================================================ */

.waiter-interface {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.waiter-header {
    background: var(--card-bg);
    padding: 20px;
    border-bottom: 1px solid var(--divider);
}

.waiter-header img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.waiter-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.waiter-header .shift-info {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.waiter-header .shift-info .material-icons {
    font-size: 18px;
    color: var(--primary);
}

.btn-call-manager {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 14px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-call-manager:hover {
    background: var(--primary-dark);
}

.waiter-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-card {
    background: var(--bg);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
}

.stat-card .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================================================
   TABLES GRID (WAITER)
   ============================================================================ */

.tables-section {
    padding: 20px;
    flex: 1;
}

.tables-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 80px;
}

.table-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    transition: transform 0.1s;
}

.table-card:active {
    transform: scale(0.98);
}

.table-card.status-ready {
    border-left: 4px solid var(--success);
}

.table-card.status-pending {
    border-left: 4px solid var(--warning);
}

.table-card.status-seated {
    border-left: 4px solid var(--info);
}

.table-card .table-number {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.table-card .table-number-large {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 12px;
}

.table-card .table-info {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.table-card .table-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.table-card .table-info .material-icons {
    font-size: 16px;
    color: var(--primary);
}

.table-card .table-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: auto;
}

.table-card .table-status .material-icons {
    font-size: 14px;
}

.table-card .table-status.ready {
    background: var(--success-light);
    color: var(--success);
}

.table-card .table-status.pending {
    background: var(--warning-light);
    color: var(--warning);
}

.table-card .table-status.seated {
    background: var(--info-light);
    color: var(--info);
}

.table-card-empty {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    border: 2px dashed var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    color: var(--text-muted);
}

.table-card-empty .material-icons {
    font-size: 32px;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* ============================================================================
   FLOATING ACTION BUTTON (FAB)
   ============================================================================ */

.fab-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 101;
}

.fab {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: var(--shadow-fab);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.fab:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.fab:active {
    transform: scale(0.95);
}

.fab .material-icons {
    font-size: 32px;
}

/* ============================================================================
   KDS (KITCHEN DISPLAY SYSTEM)
   ============================================================================ */

.kds-interface {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
}

.kds-header {
    background: var(--card-bg);
    padding: 16px 20px;
    border-bottom: 1px solid var(--divider);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kds-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.kds-header .station-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.kds-header .shift-info {
    color: var(--text-muted);
    font-size: 13px;
}

.kds-stats {
    display: flex;
    gap: 16px;
    padding: 12px 20px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--divider);
}

.kds-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.kds-stat .value {
    font-weight: 700;
    color: var(--text);
}

.kds-stat .value.urgent {
    color: var(--danger);
}

.kds-section {
    padding: 20px;
}

.kds-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kds-section h3 .badge {
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.order-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}

.order-card.urgent {
    border-color: var(--danger);
    background: var(--danger-light);
}

.order-card.in-progress {
    border-color: var(--warning);
    background: var(--warning-light);
}

.order-card.ready {
    border-color: var(--success);
    background: var(--success-light);
}

.order-card .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--divider);
}

.order-card .order-table {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.order-card .order-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.order-card .order-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.order-card .order-timer.urgent {
    color: var(--danger);
}

.order-card .order-timer.normal {
    color: var(--success);
}

.order-card .dish-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
}

.order-card .dish-item:last-child {
    border-bottom: none;
}

.order-card .dish-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.order-card .dish-modifiers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.order-card .dish-modifiers .modifier {
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text);
}

.order-card .dish-modifiers .allergen {
    background: var(--warning-light);
    color: var(--warning);
}

.btn-kds {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-kds .material-icons {
    font-size: 16px;
}

.btn-kds.start {
    background: var(--primary);
    color: white;
}

.btn-kds.start:hover {
    background: var(--primary-dark);
}

.btn-kds.ready {
    background: var(--success);
    color: white;
}

.btn-kds.ready:hover {
    background: #059669;
}

.btn-kds.problem {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-kds.problem:hover {
    background: var(--danger-light);
    color: var(--danger);
    border-color: var(--danger);
}

.kds-footer {
    background: var(--card-bg);
    padding: 12px 20px;
    border-top: 1px solid var(--divider);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.kds-footer .status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kds-footer .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
}

/* ============================================================================
   OWNER DASHBOARD
   ============================================================================ */

.owner-interface {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    padding-bottom: 90px;
}

.owner-header {
    background: var(--card-bg);
    padding: 16px 20px;
    border-bottom: 1px solid var(--divider);
}

.owner-header .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.owner-header .date-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

.owner-header .date-display .material-icons {
    font-size: 18px;
    color: var(--primary);
}

.owner-header .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.owner-header .btn-icon .material-icons {
    color: var(--text-muted);
    font-size: 20px;
}

.owner-header .greeting {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.dashboard-section {
    padding: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title .material-icons {
    color: var(--primary);
    font-size: 20px;
}

/* Financial Snapshot - Horizontal Scroll */
.financial-snapshot {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.financial-snapshot::-webkit-scrollbar {
    height: 4px;
}

.financial-snapshot::-webkit-scrollbar-track {
    background: var(--divider);
    border-radius: 2px;
}

.financial-snapshot::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    min-width: max-content;
    margin-bottom: 24px;
}

.stat-card-primary {
    background: var(--card-bg);
    padding: 18px 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    min-width: 170px;
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.stat-icon-bg {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon-bg .material-icons {
    color: var(--primary);
    font-size: 22px;
}

.stat-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.stat-badge.positive {
    background: var(--success-light);
    color: var(--success);
}

.stat-badge.neutral {
    background: #F3F4F6;
    color: var(--text-muted);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-cents, .stat-percent {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Live Operations */
.operations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.operation-card-wide {
    grid-column: span 2;
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.operation-card {
    background: var(--card-bg);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.operation-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.operation-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

.operation-label .material-icons {
    font-size: 18px;
    color: var(--primary);
}

.operation-status {
    font-size: 14px;
    font-weight: 600;
}

.operation-status.warning {
    color: var(--primary);
}

.progress-bar-container {
    height: 8px;
    background: #F3F4F6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 4px;
}

.operation-subtext {
    font-size: 12px;
    color: var(--text-muted);
}

.operation-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.operation-icon-circle.blue {
    background: var(--info-light);
}

.operation-icon-circle.blue .material-icons {
    color: var(--info);
    font-size: 24px;
}

.operation-icon-circle.green {
    background: var(--success-light);
}

.operation-icon-circle.green .material-icons {
    color: var(--success);
    font-size: 24px;
}

.operation-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.operation-label-small {
    font-size: 12px;
    color: var(--text-muted);
}

.operation-subtext-small {
    font-size: 11px;
    color: #9CA3AF;
    margin-top: 4px;
}

/* Circular Progress */
.circular-progress {
    width: 60px;
    height: 60px;
    margin: 0 auto 8px;
}

.circular-chart {
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: #F3F4F6;
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke: var(--success);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.percentage {
    fill: var(--text);
    font-size: 10px;
    font-weight: 700;
    text-anchor: middle;
}

/* Insights Cards */
.insight-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 16px;
    margin-bottom: 12px;
}

.insight-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.insight-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.view-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-link .material-icons {
    font-size: 16px;
}

.heatmap-status {
    font-size: 12px;
    color: var(--text-muted);
}

/* Dishes List */
.dishes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dish-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: 10px;
}

.dish-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.dish-info {
    flex: 1;
}

.dish-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.dish-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.dish-sold {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.dish-sold .material-icons {
    font-size: 14px;
}

.dish-sold-badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
}

.dish-sold-badge.neutral {
    background: #F3F4F6;
    color: var(--text-muted);
}

/* Floor Heatmap */
.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.heatmap-zone {
    padding: 16px 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
}

.heatmap-zone.zone-a {
    background: var(--success-light);
    color: var(--success);
}

.heatmap-zone.zone-b {
    background: var(--warning-light);
    color: var(--warning);
}

.heatmap-zone.zone-b.busy {
    background: #FED7AA;
    color: #EA580C;
}

.heatmap-zone.patio {
    grid-column: span 3;
    background: #F3F4F6;
    color: #9CA3AF;
}

.heatmap-zone.patio.closed {
    background: #E5E7EB;
    color: #9CA3AF;
}

/* Alert Card */
.alert-card {
    margin: 0 20px 20px;
    padding: 16px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-card.warning {
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

.alert-icon-bg {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--danger-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-icon-bg .material-icons {
    color: var(--danger);
    font-size: 22px;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.alert-message {
    font-size: 13px;
    color: var(--text-muted);
}

.btn-alert-action {
    padding: 8px 16px;
    background: var(--card-bg);
    color: var(--danger);
    border: 1px solid #FECACA;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.btn-alert-action:hover {
    background: #FEF2F2;
}

/* ============================================================================
   HOSTESS / RESERVATIONS STYLES
   ============================================================================ */

.hostess-interface {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    padding-bottom: 90px;
}

.hostess-header {
    background: var(--card-bg);
    padding: 20px;
    border-bottom: 1px solid var(--divider);
}

.hostess-header .header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
}

.date-selector .material-icons {
    color: var(--primary);
}

.date-select {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-icon .material-icons {
    color: var(--text-muted);
    font-size: 20px;
}

.reservations-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-badge {
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.stat-badge .stat-value {
    font-size: 20px;
    font-weight: 700;
}

.stat-badge .stat-label {
    font-size: 11px;
    opacity: 0.8;
}

.stat-badge.primary {
    background: var(--primary-light);
    color: var(--primary);
}

.stat-badge.warning {
    background: var(--warning-light);
    color: var(--warning);
}

.stat-badge.success {
    background: var(--success-light);
    color: var(--success);
}

.stat-badge.danger {
    background: var(--danger-light);
    color: var(--danger);
}

.reservations-section {
    padding: 20px;
}

.reservation-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 2px solid var(--border);
    padding: 16px;
    margin-bottom: 12px;
}

.reservation-card.vip {
    border-color: var(--warning);
    background: var(--warning-light);
}

.reservation-card.late {
    border-color: var(--danger);
    background: var(--danger-light);
}

.reservation-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.reservation-time .time-badge {
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.reservation-time .time-badge.late {
    background: var(--danger);
}

.reservation-info {
    flex: 1;
}

.guest-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vip-badge {
    background: var(--warning);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vip-badge .material-icons {
    font-size: 12px;
}

.reservation-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.reservation-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.reservation-meta .material-icons {
    font-size: 16px;
}

.reservation-details {
    margin-bottom: 12px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item .material-icons {
    font-size: 16px;
    color: var(--primary);
}

.detail-item.warning {
    color: var(--warning);
}

.detail-item.vip-tag {
    color: var(--warning);
    font-weight: 600;
}

.reservation-actions {
    display: flex;
    gap: 8px;
}

.reservation-actions .btn-action {
    flex: 1;
}

.reservation-actions .btn-action.icon {
    flex: 0 0 40px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reservation-actions .btn-action.danger {
    background: var(--danger);
}

.reservation-actions .btn-action.secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

/* ============================================================================
   BOTTOM NAVIGATION
   ============================================================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--divider);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #9CA3AF;
    text-decoration: none;
    font-size: 11px;
    padding: 4px 12px;
    gap: 4px;
    transition: color 0.2s;
}

.bottom-nav a:hover,
.bottom-nav a.active {
    color: var(--primary);
}

.bottom-nav a.active .material-icons {
    color: var(--primary);
}

.bottom-nav .material-icons {
    font-size: 24px;
}

.bottom-nav .nav-label {
    font-size: 10px;
    font-weight: 500;
}

.bottom-nav a[style*="visibility:hidden"] {
    pointer-events: none;
}

/* ============================================================================
   LOADING SPINNER
   ============================================================================ */

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.flex { display: flex; }
.flex-between { justify-content: space-between; }
.flex-center { align-items: center; justify-content: center; }
.flex-gap { gap: 12px; }

.hidden { display: none; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 400px) {
    .stats-grid-3 {
        gap: 12px;
    }
    
    .stat-card-primary {
        min-width: 150px;
    }
    
    .operations-grid {
        grid-template-columns: 1fr;
    }
    
    .operation-card-wide {
        grid-column: span 1;
    }
    
    .heatmap-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .heatmap-zone.patio {
        grid-column: span 2;
    }
    
    .bottom-nav a {
        padding: 4px 8px;
    }
    
    .bottom-nav .material-icons {
        font-size: 22px;
    }
}
/* ============================================================================
   LOGOUT BUTTON (для Owner и Waiter)
   ============================================================================ */

.owner-footer,
.waiter-footer {
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-logout {
    width: 100%;
    max-width: 300px;
    padding: 14px 20px;
    background: #FFFFFF;
    color: #EF4444;
    border: 1px solid #FECACA;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

.btn-logout:hover {
    background: #FEF2F2;
    border-color: #EF4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-logout:active {
    transform: scale(0.98);
}

.btn-logout .material-icons {
    font-size: 20px;
}

.app-version {
    font-size: 11px;
    color: #9CA3AF;
    text-align: center;
}

/* ============================================================================
   Обновляем существующие стили FAB (исправляем дубликаты)
   ============================================================================ */

.fab-container {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 101;
}

.fab {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #FF6B35;
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(255,107,53,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.fab:hover {
    background: #E55A2B;
    transform: scale(1.05);
}

.fab:active {
    transform: scale(0.95);
}

.fab .material-icons {
    font-size: 32px;
}
/* ============================================================================
   WAITER ORDER CREATION PAGE STYLES
   ============================================================================ */

.waiter-order-interface {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #F8F9FA;
    padding-bottom: 100px;
}

/* Order Header */
.order-header {
    background: #FFFFFF;
    padding: 16px 20px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.order-header .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.order-header .btn-icon .material-icons {
    color: #6B7280;
    font-size: 20px;
}

.order-info {
    flex: 1;
}

.order-info .current-table {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
}

.order-info .order-status {
    font-size: 12px;
    color: #10B981;
    font-weight: 600;
}

.order-summary {
    text-align: right;
    font-size: 13px;
    color: #6B7280;
}

.order-summary .order-total {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #FF6B35;
}

/* Menu Categories */
.menu-categories {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    overflow-x: auto;
    background: #FFFFFF;
    border-bottom: 1px solid #F0F0F0;
    scrollbar-width: none;
}

.menu-categories::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.category-tab.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.category-tab:hover {
    background: #FFF0EB;
    border-color: #FF6B35;
}

/* Menu Items Container */
.menu-items-container {
    padding: 20px;
    flex: 1;
}

.menu-category {
    margin-bottom: 24px;
}

.category-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F0F0F0;
}

.category-dishes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Dish Card */
.dish-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s;
}

.dish-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #FF6B35;
}

.dish-card.unavailable {
    opacity: 0.6;
    background: #F8F9FA;
}

.dish-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.dish-info {
    flex: 1;
    min-width: 0;
}

.dish-name {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dish-price {
    font-size: 14px;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 4px;
}

.dish-prep-time {
    font-size: 12px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dish-prep-time .material-icons {
    font-size: 14px;
}

.btn-add-dish {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid #FF6B35;
    background: #FFFFFF;
    color: #FF6B35;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-add-dish .material-icons {
    font-size: 18px;
}

.btn-add-dish:hover {
    background: #FF6B35;
    color: white;
}

.btn-add-dish:active {
    transform: scale(0.95);
}

.dish-unavailable {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Order Footer */
.order-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid #F0F0F0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.cart-preview {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6B7280;
}

.cart-items-count .material-icons {
    font-size: 18px;
}

.cart-total {
    font-size: 14px;
    color: #1A1A1A;
}

.cart-total .order-total {
    font-weight: 700;
    color: #FF6B35;
    font-size: 16px;
}

.btn-send-order {
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    background: #FF6B35;
    color: white;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-send-order:hover {
    background: #E55A2B;
}

.btn-send-order:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

.btn-send-order .material-icons {
    font-size: 20px;
}

/* Toast Notification */
.toast-notification {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive */
@media (max-width: 400px) {
    .dish-image {
        width: 70px;
        height: 70px;
    }
    
    .dish-name {
        font-size: 14px;
    }
    
    .btn-add-dish {
        padding: 8px 12px;
        font-size: 12px;
    }
}
/* ============================================================================
   ORDER CREATION PAGE STYLES
   ============================================================================ */

.waiter-order-interface {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #F8F9FA;
    padding-bottom: 100px;
}

.order-header {
    background: #FFFFFF;
    padding: 16px 20px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.order-header .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.order-info {
    flex: 1;
}

.order-info .current-table {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
}

.order-info .order-status {
    font-size: 12px;
    color: #10B981;
    font-weight: 600;
}

.order-summary {
    text-align: right;
    font-size: 13px;
    color: #6B7280;
}

.order-summary .order-total {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #FF6B35;
}

.menu-categories {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    overflow-x: auto;
    background: #FFFFFF;
    border-bottom: 1px solid #F0F0F0;
    scrollbar-width: none;
}

.menu-categories::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.category-tab.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.menu-items-container {
    padding: 20px;
    flex: 1;
}

.menu-category {
    margin-bottom: 24px;
}

.category-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F0F0F0;
}

.category-dishes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dish-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s;
}

.dish-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ПОДСВЕТКА ВЫБРАННЫХ БЛЮД */
.dish-card.selected {
    border-color: #FF6B35;
    background: #FFF0EB;
    box-shadow: 0 4px 12px rgba(255,107,53,0.2);
}

.dish-card.unavailable {
    opacity: 0.6;
    background: #F8F9FA;
}

.dish-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.dish-info {
    flex: 1;
    min-width: 0;
}

.dish-name {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dish-price {
    font-size: 14px;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 4px;
}

.dish-prep-time {
    font-size: 12px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dish-prep-time .material-icons {
    font-size: 14px;
}

.btn-add-dish {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #FF6B35;
    background: #FFFFFF;
    color: #FF6B35;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-add-dish .material-icons {
    font-size: 18px;
}

.btn-add-dish:hover {
    background: #FF6B35;
    color: white;
}

.btn-add-dish:active {
    transform: scale(0.95);
}

.dish-unavailable {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.order-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid #F0F0F0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.cart-preview {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6B7280;
}

.cart-items-count .material-icons {
    font-size: 18px;
}

.cart-total {
    font-size: 14px;
    color: #1A1A1A;
}

.cart-total .order-total {
    font-weight: 700;
    color: #FF6B35;
    font-size: 16px;
}

.btn-send-order {
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    background: #FF6B35;
    color: white;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-send-order:hover {
    background: #E55A2B;
}

.btn-send-order:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

.btn-send-order .material-icons {
    font-size: 20px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 400px) {
    .dish-image {
        width: 70px;
        height: 70px;
    }
    
    .dish-name {
        font-size: 14px;
    }
    
    .btn-add-dish {
        padding: 8px 12px;
        font-size: 12px;
    }
}
/* ============================================================================
   WAITER CREATE ORDER PAGE STYLES
   ============================================================================ */

.waiter-order-interface {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #F8F9FA;
    padding-bottom: 100px;
}

.order-header {
    background: #FFFFFF;
    padding: 16px 20px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.order-header .btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.order-header .btn-icon .material-icons {
    font-size: 20px;
    color: #6B7280;
}

.order-info {
    flex: 1;
}

.order-info .current-table {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
}

.order-info .order-status {
    font-size: 12px;
    color: #10B981;
    font-weight: 600;
}

.order-summary {
    text-align: right;
    font-size: 13px;
    color: #6B7280;
}

.order-summary .order-total {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #FF6B35;
}

.menu-categories {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    overflow-x: auto;
    background: #FFFFFF;
    border-bottom: 1px solid #F0F0F0;
    scrollbar-width: none;
}

.menu-categories::-webkit-scrollbar {
    display: none;
}

.category-tab {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.category-tab.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.category-tab:hover {
    background: #FFF0EB;
    border-color: #FF6B35;
}

.menu-items-container {
    padding: 20px;
    flex: 1;
}

.menu-category {
    margin-bottom: 24px;
}

.category-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F0F0F0;
}

.category-dishes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dish-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s;
}

.dish-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #FF6B35;
}

.dish-card.selected {
    border-color: #FF6B35;
    background: #FFF0EB;
}

.dish-card.unavailable {
    opacity: 0.6;
    background: #F8F9FA;
}

.dish-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.dish-info {
    flex: 1;
    min-width: 0;
}

.dish-name {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dish-price {
    font-size: 14px;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 4px;
}

.dish-prep-time {
    font-size: 12px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dish-prep-time .material-icons {
    font-size: 14px;
}

.btn-add-dish {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 2px solid #FF6B35;
    background: #FFFFFF;
    color: #FF6B35;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-add-dish .material-icons {
    font-size: 18px;
}

.btn-add-dish:hover {
    background: #FF6B35;
    color: white;
}

.btn-add-dish:active {
    transform: scale(0.95);
}

.dish-unavailable {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.order-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid #F0F0F0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.cart-preview {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items-count {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6B7280;
}

.cart-items-count .material-icons {
    font-size: 18px;
}

.cart-total {
    font-size: 14px;
    color: #1A1A1A;
}

.cart-total .order-total {
    font-weight: 700;
    color: #FF6B35;
    font-size: 16px;
}

.btn-view-order {
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    background: #FF6B35;
    color: white;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-view-order:hover {
    background: #E55A2B;
}

.btn-view-order:disabled {
    background: #9CA3AF;
    cursor: not-allowed;
}

.btn-view-order .material-icons {
    font-size: 20px;
}
/* ============================================================================
DISH CUSTOMIZATION PAGE - COMPLETE STYLES
============================================================================ */

.dish-customization-interface {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #F8F9FA;
    padding-bottom: 100px;
}

/* Header */
.customization-header {
    background: #FFFFFF;
    padding: 16px 20px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.customization-header .btn-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6B7280;
}

.customization-header .page-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
}

/* Dish Info Card */
.dish-info-card {
    background: #FFFFFF;
    padding: 20px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    gap: 16px;
}

.dish-info-card .dish-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.dish-info-card .dish-details {
    flex: 1;
}

.dish-info-card .dish-name {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 8px 0;
}

.dish-info-card .dish-description {
    font-size: 13px;
    color: #6B7280;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.dish-info-card .dish-meta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.dish-info-card .dish-price {
    font-size: 18px;
    font-weight: 700;
    color: #FF6B35;
}

.dish-info-card .dish-prep-time {
    font-size: 13px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dish-info-card .dish-prep-time .material-icons {
    font-size: 16px;
}

/* Customization Form */
.customization-form {
    flex: 1;
    padding: 20px;
}

/* Customization Sections */
.customization-section {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #E5E7EB;
}

.customization-section .section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* Badges */
.required-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: #FFF0EB;
    color: #FF6B35;
    text-transform: uppercase;
}

.selection-limit {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background: #F3F4F6;
    color: #6B7280;
    text-transform: uppercase;
}

/* Option Groups */
.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Radio Group */
.radio-group .option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.radio-group .option-item:hover {
    border-color: #FF6B35;
    background: #FFF0EB;
}

.radio-group .option-item:has(input:checked) {
    border-color: #FF6B35;
    background: #FFF0EB;
}

.radio-group .option-item input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #E5E7EB;
    border-radius: 50%;
    margin: 0;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.radio-group .option-item input[type="radio"]:checked {
    border-color: #FF6B35;
    background: #FF6B35;
}

.radio-group .option-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-group .option-item .option-label {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
}

.radio-group .option-item .option-desc {
    font-size: 12px;
    color: #6B7280;
    display: block;
    margin-top: 2px;
}

.radio-group .option-item .option-price {
    font-size: 14px;
    font-weight: 600;
    color: #FF6B35;
    white-space: nowrap;
}

/* Temperature Grid */
.temperature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.temperature-grid .option-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
}

.temperature-grid .option-item input[type="radio"] {
    position: absolute;
    top: 12px;
    right: 12px;
}

.temperature-grid .option-item .option-label {
    font-size: 16px;
    margin-bottom: 4px;
}

/* Checkbox Group */
.checkbox-group .option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-group .option-item:hover {
    border-color: #FF6B35;
    background: #FFF0EB;
}

.checkbox-group .option-item:has(input:checked) {
    border-color: #FF6B35;
    background: #FFF0EB;
}

.checkbox-group .option-item input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #E5E7EB;
    border-radius: 4px;
    margin: 0;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.checkbox-group .option-item input[type="checkbox"]:checked {
    background: #FF6B35;
    border-color: #FF6B35;
}

.checkbox-group .option-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.checkbox-group .option-item .option-label {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
}

.checkbox-group .option-item .option-price {
    font-size: 13px;
    font-weight: 600;
    color: #FF6B35;
    white-space: nowrap;
}

/* Kitchen Notes */
.kitchen-notes-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s;
}

.kitchen-notes-input:focus {
    outline: none;
    border-color: #FF6B35;
}

.kitchen-notes-input::placeholder {
    color: #9CA3AF;
}

/* Quantity Section */
.quantity-section {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #E5E7EB;
}

.quantity-section .section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 16px 0;
}

.quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.btn-qty-change {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 2px solid #E5E7EB;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-qty-change:hover {
    border-color: #FF6B35;
    color: #FF6B35;
}

.btn-qty-change:active {
    background: #FFF0EB;
}

.btn-qty-change .material-icons {
    font-size: 24px;
    color: #1A1A1A;
}

.qty-input {
    width: 60px;
    height: 48px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    color: #1A1A1A;
}

.qty-input:focus {
    outline: none;
    border-color: #FF6B35;
}

/* Footer */
.customization-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid #F0F0F0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 100;
}

.customization-footer .total-display {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.customization-footer .total-display span:first-child {
    font-size: 12px;
    color: #6B7280;
}

.customization-footer .customization-total {
    font-size: 22px;
    font-weight: 700;
    color: #FF6B35;
}

.btn-add-to-order {
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    background: #FF6B35;
    color: white;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.btn-add-to-order:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,107,53,0.4);
}

.btn-add-to-order:active {
    transform: translateY(0);
}

.btn-add-to-order .material-icons {
    font-size: 22px;
}

/* Responsive */
@media (max-width: 400px) {
    .dish-info-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .temperature-grid {
        grid-template-columns: 1fr;
    }
    
    .customization-footer {
        flex-direction: column;
        gap: 12px;
    }
    
    .customization-footer .total-display {
        align-items: center;
        width: 100%;
    }
    
    .btn-add-to-order {
        width: 100%;
        justify-content: center;
    }
}
/* ============================================================================
ORDER REVIEW PAGE STYLES
============================================================================ */

.order-review-interface {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #F8F9FA;
    padding-bottom: 100px;
}

/* Review Header */
.review-header {
    background: #FFFFFF;
    padding: 16px 20px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.review-header .btn-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6B7280;
}

.review-header .page-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0;
}

.review-header .header-spacer {
    width: 40px;
}

/* Order Info Bar */
.order-info-bar {
    background: #FFFFFF;
    padding: 12px 20px;
    border-bottom: 1px solid #F0F0F0;
    display: flex;
    gap: 24px;
}

.order-info-bar .info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6B7280;
}

.order-info-bar .info-item .material-icons {
    font-size: 18px;
    color: #FF6B35;
}

.order-info-bar .current-table {
    font-weight: 600;
    color: #1A1A1A;
}

/* Order Items List */
.order-items-list {
    padding: 20px;
    flex: 1;
}

.order-items-list .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6B7280;
}

.order-items-list .empty-state .material-icons {
    font-size: 64px;
    color: #D1D5DB;
    margin-bottom: 16px;
}

.order-items-list .empty-state p {
    font-size: 16px;
    margin-bottom: 24px;
}

.order-items-list .btn-add-items {
    padding: 12px 24px;
    border-radius: 10px;
    border: 2px solid #FF6B35;
    background: #FFFFFF;
    color: #FF6B35;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.order-items-list .btn-add-items:hover {
    background: #FF6B35;
    color: white;
}

/* Order Item Card */
.order-item-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.order-item-card .item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.order-item-card .item-quantity {
    background: #FF6B35;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    min-width: 32px;
    text-align: center;
}

.order-item-card .item-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
}

.order-item-card .item-price {
    font-size: 15px;
    font-weight: 700;
    color: #FF6B35;
}

.order-item-card .item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-left: 44px;
}

.order-item-card .option-tag {
    background: #F3F4F6;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

.order-item-card .option-tag.note {
    background: #FFF0EB;
    color: #FF6B35;
}

.order-item-card .btn-remove-item {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #FECACA;
    background: #FEF2F2;
    color: #EF4444;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.order-item-card .btn-remove-item:hover {
    background: #FEE2E2;
    border-color: #EF4444;
}

.order-item-card .btn-remove-item .material-icons {
    font-size: 16px;
}

/* Guest Info Section */
.guest-info-section {
    background: #FFFFFF;
    padding: 20px;
    border-top: 1px solid #F0F0F0;
    border-bottom: 1px solid #F0F0F0;
}

.guest-info-section .section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 16px 0;
}

.guest-info-section .form-group {
    margin-bottom: 16px;
}

.guest-info-section .form-group:last-child {
    margin-bottom: 0;
}

.guest-info-section .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 8px;
}

.guest-info-section .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 14px;
    color: #1A1A1A;
    transition: border-color 0.2s;
}

.guest-info-section .form-input:focus {
    outline: none;
    border-color: #FF6B35;
}

.guest-info-section .form-input::placeholder {
    color: #9CA3AF;
}

/* Order Summary */
.order-summary {
    background: #FFFFFF;
    padding: 20px;
}

.order-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #6B7280;
}

.order-summary .summary-row span:first-child {
    font-weight: 500;
}

.order-summary .summary-divider {
    height: 1px;
    background: #F0F0F0;
    margin: 8px 0;
}

.order-summary .total-row {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    padding-top: 12px;
}

.order-summary .total-row .total-value {
    color: #FF6B35;
    font-size: 20px;
}

/* Review Footer */
.review-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid #F0F0F0;
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 100;
}

.review-footer .btn-back-to-menu {
    flex: 1;
    padding: 14px 20px;
    border-radius: 10px;
    border: 2px solid #E5E7EB;
    background: #FFFFFF;
    color: #6B7280;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.review-footer .btn-back-to-menu:hover {
    border-color: #9CA3AF;
    color: #1A1A1A;
}

.review-footer .btn-send-order {
    flex: 2;
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    background: #FF6B35;
    color: white;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.review-footer .btn-send-order:hover {
    background: #E55A2B;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255,107,53,0.4);
}

.review-footer .btn-send-order:active {
    transform: translateY(0);
}

.review-footer .btn-send-order .material-icons {
    font-size: 20px;
}

/* Responsive */
@media (max-width: 400px) {
    .review-footer {
        flex-direction: column;
    }
    
    .review-footer .btn-back-to-menu,
    .review-footer .btn-send-order {
        flex: 1;
        width: 100%;
    }
    
    .order-item-card .item-options {
        padding-left: 0;
    }
}
/* ========== WAITER TABLES PAGE ========== */

/* Zone Tabs */
.zone-tabs {
    display: flex;
    gap: 8px;
    padding: 16px;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    -webkit-overflow-scrolling: touch;
}

.zone-tab {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    color: #6B7280;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.zone-tab.active {
    background: #FF6B35;
    color: #fff;
    border-color: #FF6B35;
}

.zone-tab:hover:not(.active) {
    background: #F9FAFB;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: #F9FAFB;
    border-bottom: 1px solid #e5e7eb;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
}

.stat-label {
    font-size: 12px;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tables Grid */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    padding: 16px;
    background: #F3F4F6;
}

.table-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid #10B981;
    position: relative;
}

.table-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.table-card.status-free {
    border-left-color: #10B981;
}

.table-card.status-occupied {
    border-left-color: #EF4444;
}

.table-card.status-reserved {
    border-left-color: #F59E0B;
}

.table-card.status-wait {
    border-left-color: #8B5CF6;
}

.table-card.status-dirty {
    border-left-color: #6B7280;
}

.table-card-new {
    border: 2px dashed #D1D5DB;
    border-left: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    color: #6B7280;
}

.table-card-new:hover {
    border-color: #FF6B35;
    color: #FF6B35;
    background: #FFF7ED;
}

.table-card-new .material-icons {
    font-size: 48px;
    margin-bottom: 8px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.table-number {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
}

.table-capacity {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #6B7280;
}

.table-capacity .material-icons {
    font-size: 18px;
}

.table-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.table-status-badge.available {
    background: #D1FAE5;
    color: #059669;
}

.table-status-badge.occupied {
    background: #FEE2E2;
    color: #DC2626;
}

.table-status-badge.reserved {
    background: #FEF3C7;
    color: #D97706;
}

.table-status-badge.waiting {
    background: #EDE9FE;
    color: #7C3AED;
}

.table-status-badge .material-icons {
    font-size: 16px;
}

.table-order-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #FF6B35;
    font-weight: 600;
}

.table-order-info .material-icons {
    font-size: 18px;
}

/* Quick Orders Section */
.quick-orders-section {
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.view-all-link {
    color: #FF6B35;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

.quick-orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 8px;
    font-size: 14px;
}

.order-id {
    font-weight: 600;
    color: #1F2937;
    min-width: 80px;
}

.order-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.order-status.preparing {
    background: #FEF3C7;
    color: #D97706;
}

.order-status.ready {
    background: #D1FAE5;
    color: #059669;
}

.order-time {
    color: #6B7280;
    margin-left: auto;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6B7280;
}

.empty-state .material-icons {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ========== TABLE DETAIL PAGE ========== */

.table-detail-interface {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F3F4F6;
}

.table-header-info {
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.table-number-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.table-number-display .material-icons {
    font-size: 32px;
    color: #FF6B35;
}

.table-number-display span:last-child {
    font-size: 24px;
    font-weight: 700;
    color: #1F2937;
}

.table-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.table-meta > span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6B7280;
}

.table-meta .material-icons {
    font-size: 18px;
}

.table-status.occupied {
    color: #DC2626;
}

.table-status.free {
    color: #059669;
}

.table-timer {
    color: #FF6B35 !important;
    font-weight: 600;
}

.table-total {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin-left: auto;
}

/* Guests Container */
.guests-container {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.guest-section {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.guest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #F9FAFB;
    cursor: pointer;
    border-bottom: 1px solid #e5e7eb;
}

.guest-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.guest-label {
    font-weight: 700;
    color: #FF6B35;
    font-size: 16px;
}

.guest-name {
    font-weight: 600;
    color: #1F2937;
}

.guest-stats {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #6B7280;
}

.guest-total {
    font-weight: 600;
    color: #1F2937;
}

.expand-icon {
    color: #9CA3AF;
}

.guest-items-container {
    padding: 16px;
}

.empty-guest-items {
    text-align: center;
    padding: 32px;
    color: #6B7280;
}

.empty-guest-items .material-icons {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.order-item:last-child {
    border-bottom: none;
}

.item-main {
    display: flex;
    gap: 12px;
    flex: 1;
}

.item-status-icon .material-icons {
    font-size: 20px;
    color: #10B981;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 4px 0;
}

.item-notes,
.item-allergy {
    font-size: 13px;
    color: #6B7280;
    margin: 2px 0;
}

.item-allergy {
    color: #EF4444;
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-allergy .material-icons {
    font-size: 14px;
}

.item-price {
    font-weight: 600;
    color: #1F2937;
    font-size: 15px;
}

.item-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.item-quantity {
    font-weight: 600;
    color: #FF6B35;
}

.item-status {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.status-pending .item-status {
    background: #FEF3C7;
    color: #D97706;
}

.status-served .item-status {
    background: #D1FAE5;
    color: #059669;
}

.btn-add-item {
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    background: #fff;
    color: #6B7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-add-item:hover {
    border-color: #FF6B35;
    color: #FF6B35;
    background: #FFF7ED;
}

/* Table Actions */
.table-actions {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    position: sticky;
    bottom: 0;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    background: #F9FAFB;
    border-color: #FF6B35;
    color: #FF6B35;
}

.btn-action .material-icons {
    font-size: 24px;
}

/* Animations */
@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .table-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .table-total {
        margin-left: 0;
    }
    
    .stats-bar {
        padding: 12px 8px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .tables-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
        padding: 12px;
    }
    
    .table-number {
        font-size: 28px;
    }
    
    .table-actions {
        padding: 12px;
    }
    
    .btn-action {
        min-width: 80px;
        padding: 10px 8px;
        font-size: 11px;
    }
    
    .btn-action .material-icons {
        font-size: 20px;
    }
}
/* ========== WAITER TABLES PAGE - HEADER ========== */

.waiter-interface {
    min-height: 100vh;
    background: #F9FAFB;
    padding-bottom: 24px;
}

/* Header */
.app-header {
    background: #fff;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.restaurant-info h1 {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin: 0 0 4px 0;
}

.waiter-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6B7280;
}

.waiter-name .material-icons {
    font-size: 18px;
}

.header-right {
    display: flex;
    gap: 12px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.btn-icon:hover {
    background: #F3F4F6;
    border-color: #FF6B35;
}

.btn-icon .material-icons {
    color: #6B7280;
    font-size: 22px;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #EF4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Zone Tabs */
.zone-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    overflow-x: auto;
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.zone-tabs::-webkit-scrollbar {
    display: none;
}

.zone-tab {
    padding: 10px 20px;
    border: 1px solid #E5E7EB;
    border-radius: 24px;
    background: #fff;
    color: #6B7280;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}

.zone-tab:hover {
    background: #F3F4F6;
}

.zone-tab.active {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Stats Bar - КАК В ПРОТОТИПЕ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px;
    background: #fff;
    margin: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.stat-item {
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    background: #F9FAFB;
    transition: all 0.2s;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-free .stat-value {
    color: #10B981;
}

.stat-waiting .stat-value {
    color: #F59E0B;
}

.stat-occupied .stat-value {
    color: #EF4444;
}

.stat-reserved .stat-value {
    color: #8B5CF6;
}

.stat-label {
    font-size: 12px;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Tables Grid */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .tables-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .tables-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.table-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.table-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.table-card.status-free {
    border-color: #10B981;
}

.table-card.status-occupied,
.table-card.status-seated {
    border-color: #EF4444;
}

.table-card.status-waiting,
.table-card.status-wait {
    border-color: #F59E0B;
}

.table-card.status-reserved {
    border-color: #8B5CF6;
}

.table-number {
    font-size: 12px;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.table-number-large {
    font-size: 32px;
    font-weight: 700;
    color: #1F2937;
    margin-bottom: 12px;
}

.table-info {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #6B7280;
}

.table-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.table-info .material-icons {
    font-size: 16px;
}

.table-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 8px;
    width: fit-content;
}

.table-status.occupied,
.table-status.seated {
    background: #FEE2E2;
    color: #DC2626;
}

.table-status.available,
.table-status.free {
    background: #D1FAE5;
    color: #059669;
}

.table-status.waiting,
.table-status.wait {
    background: #FEF3C7;
    color: #D97706;
}

.table-status.reserved {
    background: #EDE9FE;
    color: #7C3AED;
}

.table-status .material-icons {
    font-size: 16px;
}

/* Table Card Empty (New Order) */
.table-card-empty {
    background: #fff;
    border: 2px dashed #D1D5DB;
    border-radius: 16px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: #9CA3AF;
}

.table-card-empty:hover {
    border-color: #FF6B35;
    color: #FF6B35;
    background: #FFF7ED;
}

.table-card-empty .material-icons {
    font-size: 40px;
}

.table-card-empty span:last-child {
    font-size: 13px;
    font-weight: 600;
}

/* Quick Orders Section */
.quick-orders-section {
    background: #fff;
    margin: 0 20px 24px;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

.section-header .material-icons {
    font-size: 20px;
    color: #FF6B35;
}

.view-all-link {
    color: #FF6B35;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.view-all-link:hover {
    text-decoration: underline;
}

.quick-orders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #F9FAFB;
    border-radius: 12px;
    transition: all 0.2s;
}

.quick-order-item:hover {
    background: #F3F4F6;
}

.order-id {
    font-weight: 700;
    color: #1F2937;
    min-width: 80px;
    font-size: 14px;
}

.order-status {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-status.preparing {
    background: #FEF3C7;
    color: #D97706;
}

.order-status.ready {
    background: #D1FAE5;
    color: #059669;
}

.order-time {
    color: #9CA3AF;
    margin-left: auto;
    font-size: 13px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9CA3AF;
}

.empty-state .material-icons {
    font-size: 80px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
        margin: 12px 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .tables-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 16px;
    }
    
    .table-number-large {
        font-size: 24px;
    }
    
    .quick-orders-section {
        margin: 0 16px 16px;
        padding: 16px;
    }
}
