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

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

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: var(--text-muted);
    font-size: var(--font-sm);
}

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

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: var(--font-md);
}

.kitchen-header {
    height: 60px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.kitchen-header-left,
.kitchen-header-center,
.kitchen-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.outlet-name {
    font-size: var(--font-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: var(--font-xs);
    font-weight: 500;
}

.connection-status.online {
    background: var(--success-bg);
    color: var(--success);
}

.connection-status.offline {
    background: var(--danger-bg);
    color: var(--danger);
}

.connection-status.connecting {
    background: var(--warning-bg);
    color: var(--warning);
}

.connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.connection-status.connecting .connection-dot {
    animation: pulse 1s infinite;
}

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

.kitchen-stats {
    display: flex;
    gap: 16px;
}

.kitchen-stat {
    text-align: center;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    min-width: 70px;
}

.kitchen-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.kitchen-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 2px;
}

.kitchen-stat.pending .kitchen-stat-value {
    color: var(--warning);
}

.kitchen-stat.preparing .kitchen-stat-value {
    color: var(--info);
}

.kitchen-stat.ready .kitchen-stat-value {
    color: var(--success);
}

.kitchen-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.kitchen-main {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    background: var(--bg-secondary);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.status-tabs {
    display: flex;
    gap: 4px;
}

.status-tab {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    font-size: var(--font-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-secondary);
}

.status-tab:hover {
    border-color: var(--primary);
}

.status-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.counter-filter {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.counter-filter label {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.counter-filter select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    font-size: var(--font-sm);
    min-width: 150px;
}

.audio-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    cursor: pointer;
    font-size: var(--font-sm);
    transition: all 0.15s;
}

.audio-toggle:hover {
    border-color: var(--primary);
}

.audio-toggle.active {
    background: var(--success-bg);
    border-color: var(--success);
    color: var(--success);
}

.audio-icon {
    width: 16px;
    height: 16px;
}

.orders-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.order-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.15s;
}

.order-card:hover {
    box-shadow: var(--shadow-md);
}

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

.order-token {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.order-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-type-badge {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    font-weight: 500;
    text-transform: uppercase;
}

.order-type-badge.dine_in {
    background: var(--info-bg);
    color: var(--info);
}

.order-type-badge.takeaway {
    background: var(--warning-bg);
    color: var(--warning);
}

.order-wait-time {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    font-weight: 600;
}

.order-wait-time.fresh {
    background: var(--success-bg);
    color: var(--success);
}

.order-wait-time.normal {
    background: var(--warning-bg);
    color: var(--warning);
}

.order-wait-time.delayed {
    background: #FED7AA;
    color: #C2410C;
}

.order-wait-time.critical {
    background: var(--danger-bg);
    color: var(--danger);
}

.order-card-body {
    flex: 1;
    padding: 12px 16px;
}

.order-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

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

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

.veg-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid;
    border-radius: 2px;
    position: relative;
    flex-shrink: 0;
}

.veg-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.veg-indicator.veg {
    border-color: #0f8a0f;
}

.veg-indicator.veg::after {
    background: #0f8a0f;
}

.veg-indicator.nonveg {
    border-color: #b71c1c;
}

.veg-indicator.nonveg::after {
    background: #b71c1c;
}

.order-item-name {
    font-size: var(--font-sm);
    font-weight: 500;
}

.order-item-qty {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.order-customer {
    margin-top: 8px;
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.order-counter {
    margin-top: 8px;
    font-size: var(--font-xs);
    color: var(--info);
    background: var(--info-bg);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.order-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 8px;
}

.action-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

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

.action-btn.start-prep {
    background: var(--info);
    color: white;
}

.action-btn.start-prep:hover {
    background: #2563EB;
}

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

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

.action-btn.complete {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.action-btn.complete:hover {
    background: var(--border-color);
}

.empty-state {
    text-align: center;
    padding: 60px 24px;
    color: var(--text-muted);
}

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

.empty-state h3 {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: var(--font-sm);
}

.surge-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    border-radius: var(--radius-md);
    color: var(--danger);
    font-size: var(--font-sm);
    font-weight: 500;
    animation: surge-pulse 2s infinite;
}

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

.surge-indicator svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 900px) {
    .kitchen-header {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px;
        gap: 12px;
    }
    
    .kitchen-header-left,
    .kitchen-header-center,
    .kitchen-header-right {
        gap: 8px;
    }
    
    .kitchen-stats {
        gap: 8px;
    }
    
    .kitchen-stat {
        padding: 6px 10px;
        min-width: 55px;
    }
    
    .kitchen-stat-value {
        font-size: 16px;
    }
    
    .outlet-name {
        font-size: var(--font-md);
    }
    
    .filter-bar {
        flex-wrap: wrap;
        padding: 12px 16px;
    }
    
    .counter-filter {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
    
    .orders-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .status-tabs {
        flex-wrap: wrap;
    }
    
    .status-tab {
        padding: 6px 12px;
        font-size: var(--font-xs);
    }
}

.header-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--text-secondary);
}

.header-icon-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.header-icon-btn svg {
    width: 18px;
    height: 18px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: var(--font-lg);
    font-weight: 600;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.15s;
}

.modal-close:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.settings-section {
    margin-bottom: 24px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.settings-section h3 {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.setting-row:last-child {
    border-bottom: none;
}

.setting-row label {
    font-size: var(--font-sm);
    color: var(--text-primary);
}

.setting-row select,
.setting-row input[type="range"] {
    width: 150px;
}

.setting-row select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    font-size: var(--font-sm);
}

.setting-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.setting-row input[type="range"] {
    cursor: pointer;
}

.order-modal {
    max-width: 600px;
}

.order-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-modal-token {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.order-modal-type {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    font-weight: 500;
    text-transform: uppercase;
    background: var(--info-bg);
    color: var(--info);
}

.order-modal-type.takeaway {
    background: var(--warning-bg);
    color: var(--warning);
}

.order-modal-info {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
}

.order-modal-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.order-modal-row .label {
    color: var(--text-muted);
    font-size: var(--font-sm);
}

.order-modal-row span:last-child {
    font-weight: 500;
    font-size: var(--font-sm);
}

.wait-badge {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    background: var(--success-bg);
    color: var(--success);
}

.wait-badge.delayed {
    background: var(--warning-bg);
    color: var(--warning);
}

.wait-badge.critical {
    background: var(--danger-bg);
    color: var(--danger);
}

.order-modal-items {
    margin-bottom: 16px;
}

.order-modal-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

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

.order-modal-item-main {
    flex: 1;
}

.order-modal-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.order-modal-item-name {
    font-weight: 600;
    font-size: var(--font-md);
}

.order-modal-item-qty {
    background: var(--bg-secondary);
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: var(--font-sm);
}

.order-modal-item-modifiers {
    margin-top: 6px;
    padding-left: 20px;
}

.order-modal-item-modifier {
    font-size: var(--font-xs);
    color: var(--text-muted);
    padding: 2px 0;
}

.order-modal-item-modifier::before {
    content: '+';
    margin-right: 4px;
}

.order-modal-item-notes {
    margin-top: 6px;
    padding: 8px 12px;
    background: var(--warning-bg);
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    color: var(--warning);
    font-style: italic;
}

.order-modal-notes {
    background: var(--warning-bg);
    border: 1px solid var(--warning);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-top: 16px;
}

.order-modal-notes h4 {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--warning);
    margin-bottom: 8px;
}

.order-modal-notes p {
    font-size: var(--font-sm);
    color: var(--text-primary);
    line-height: 1.5;
}

.order-items-collapsed {
    position: relative;
}

.order-items-collapsed .order-item:nth-child(n+4) {
    display: none;
}

.order-items-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, var(--bg-primary));
    pointer-events: none;
}

.order-expand-btn {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: var(--font-xs);
    cursor: pointer;
    transition: all 0.15s;
}

.order-expand-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-secondary);
}

.order-card.selected {
    outline: 3px solid var(--primary);
    outline-offset: -2px;
}

.keyboard-hint {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 8px 16px;
    display: flex;
    gap: 16px;
    font-size: var(--font-xs);
    color: var(--text-muted);
    box-shadow: var(--shadow-lg);
    z-index: 50;
}

.keyboard-hint kbd {
    display: inline-block;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 11px;
    margin-right: 4px;
}

@media (min-width: 600px) {
    .orders-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

@media (min-width: 1600px) {
    .orders-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1920px) {
    .orders-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.density-compact .order-card {
    font-size: 12px;
}

.density-compact .order-card-header,
.density-compact .order-card-body,
.density-compact .order-card-footer {
    padding: 8px 12px;
}

.density-compact .order-token {
    font-size: 18px;
}

.density-compact .order-item {
    padding: 4px 0;
}

.density-compact .orders-grid {
    gap: 10px;
}

.density-spacious .order-card-header,
.density-spacious .order-card-body,
.density-spacious .order-card-footer {
    padding: 16px 20px;
}

.density-spacious .order-token {
    font-size: 28px;
}

.density-spacious .order-item {
    padding: 10px 0;
}

.density-spacious .orders-grid {
    gap: 20px;
}

[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --border-color: #2a2a4a;
    --border-light: #252545;
    --text-primary: #e8e8f0;
    --text-secondary: #a8a8c0;
    --text-muted: #6b6b8a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .login-container,
[data-theme="dark"] .kitchen-main {
    background: var(--bg-secondary);
}

[data-theme="dark"] .login-card,
[data-theme="dark"] .order-card,
[data-theme="dark"] .modal,
[data-theme="dark"] .kitchen-header,
[data-theme="dark"] .filter-bar {
    background: var(--bg-primary);
}

[data-theme="dark"] .kitchen-stat {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .modal-overlay {
    background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .order-items-collapsed::after {
    background: linear-gradient(transparent, var(--bg-primary));
}

[data-theme="dark"] input,
[data-theme="dark"] select {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-secondary {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .btn-secondary:hover {
    background: var(--border-color);
}

[data-theme="dark"] .modal-footer {
    background: var(--bg-secondary);
}

.key-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 8px;
    vertical-align: middle;
}

.has-modifiers,
.has-notes {
    font-size: 10px;
    margin-left: 4px;
    color: var(--text-muted);
}

.has-modifiers {
    background: var(--info-bg);
    color: var(--info);
    padding: 1px 4px;
    border-radius: 3px;
}

.btn-success {
    background: var(--success);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-success:hover {
    background: #059669;
}

@media (hover: none) {
    .key-hint {
        display: none;
    }
}

.view-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    cursor: pointer;
    font-size: var(--font-sm);
    transition: all 0.15s;
    color: var(--text-secondary);
}

.view-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.view-toggle.active {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.view-toggle svg {
    width: 16px;
    height: 16px;
}

.orders-split-view {
    display: flex;
    flex: 1;
    gap: 16px;
    padding: 16px;
    overflow: hidden;
}

.split-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.split-column-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.split-column-icon {
    font-size: 18px;
}

.split-column-title {
    font-weight: 600;
    font-size: var(--font-md);
    color: var(--text-primary);
}

.split-column-count {
    margin-left: auto;
    background: var(--primary);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: var(--font-xs);
    font-weight: 600;
}

.dine-in-column .split-column-count {
    background: var(--info);
}

.takeaway-column .split-column-count {
    background: var(--warning);
}

.split-column .split-grid {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.split-column .order-card {
    margin: 0;
}

.prep-estimate {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-top: 8px;
}

.prep-estimate svg {
    width: 12px;
    height: 12px;
}

.prep-estimate-value {
    font-weight: 600;
    color: var(--text-secondary);
}

.prep-estimate.long {
    background: var(--warning-bg);
    color: var(--warning);
}

.prep-estimate.long .prep-estimate-value {
    color: var(--warning);
}

@media (max-width: 900px) {
    .orders-split-view {
        flex-direction: column;
    }
    
    .split-column {
        max-height: 50%;
    }
    
    .view-toggle .view-label {
        display: none;
    }
}

.analytics-modal {
    max-width: 700px;
}

.analytics-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.analytics-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

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

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

.analytics-section {
    margin-bottom: 24px;
}

.analytics-section:last-child {
    margin-bottom: 0;
}

.analytics-section h3 {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.chart-container {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 16px;
    min-height: 120px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    gap: 4px;
}

.bar-chart-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.bar-chart-bar {
    width: 100%;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.3s;
}

.bar-chart-label {
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 4px;
}

.bar-chart-value {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.type-distribution {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.type-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.type-bar-label {
    width: 70px;
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

.type-bar-fill {
    flex: 1;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.type-bar-fill::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.3s;
}

.dine-in-bar .type-bar-fill::after {
    background: var(--info);
    width: var(--bar-width, 0%);
}

.takeaway-bar .type-bar-fill::after {
    background: var(--warning);
    width: var(--bar-width, 0%);
}

.type-bar-value {
    width: 40px;
    text-align: right;
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .analytics-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .analytics-card-value {
        font-size: 22px;
    }
}
