/* ==========================================================================
   SaborNorte Prime — Sistema de Gestão Gastronômica, KDS & Cardápio QR Code
   Design System Moderno com Suporte Total a Dark Mode & Light Mode
   ========================================================================== */

:root {
    --rest-bg: #090d16;
    --rest-surface: #111726;
    --rest-surface-card: #182238;
    --rest-surface-hover: #1f2d4a;
    --rest-border: rgba(255, 255, 255, 0.08);
    --rest-border-active: rgba(245, 158, 11, 0.4);

    --rest-text: #f8fafc;
    --rest-text-muted: #94a3b8;
    --rest-text-light: #cbd5e1;

    --rest-amber: #f59e0b;
    --rest-amber-hover: #d97706;
    --rest-amber-subtle: rgba(245, 158, 11, 0.15);

    --rest-orange: #ea580c;
    --rest-green: #10b981;
    --rest-green-subtle: rgba(16, 185, 129, 0.15);
    --rest-blue: #3b82f6;
    --rest-blue-subtle: rgba(59, 130, 246, 0.15);
    --rest-purple: #8b5cf6;
    --rest-purple-subtle: rgba(139, 92, 246, 0.15);
    --rest-red: #ef4444;

    --rest-radius: 12px;
    --rest-radius-sm: 8px;
    --rest-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

[data-theme="light"], [data-bs-theme="light"] {
    --rest-bg: #f8fafc;
    --rest-surface: #ffffff;
    --rest-surface-card: #f1f5f9;
    --rest-surface-hover: #e2e8f0;
    --rest-border: rgba(0, 0, 0, 0.08);
    --rest-border-active: rgba(245, 158, 11, 0.5);

    --rest-text: #0f172a;
    --rest-text-muted: #64748b;
    --rest-text-light: #334155;

    --rest-amber-subtle: rgba(245, 158, 11, 0.12);
    --rest-green-subtle: rgba(16, 185, 129, 0.12);
    --rest-blue-subtle: rgba(59, 130, 246, 0.12);
    --rest-purple-subtle: rgba(139, 92, 246, 0.12);
    --rest-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

body {
    background-color: var(--rest-bg);
    color: var(--rest-text);
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-size: 13.5px;
}

/* ══════════════════════════════════════════════════
   BARRA DE DEMO SUPERIOR (DIFRATIVA STANDARDS)
   ══════════════════════════════════════════════════ */
.difrativa-demo-bar {
    background: #060911;
    color: #ffffff;
    padding: 9px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1060;
    font-size: 13px;
}

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

.demo-back-btn {
    color: #94a3b8;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: color 0.2s;
}
.demo-back-btn:hover { color: #ffffff; }

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 3px 10px;
    border-radius: 999px;
    color: #fbbf24;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
}

.demo-pulse {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: livePulseAnim 1.8s infinite;
}

@keyframes livePulseAnim {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.demo-cta-btn {
    background: #10b981;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.demo-cta-btn:hover {
    background: #059669;
    color: #ffffff;
}

/* ══════════════════════════════════════════════════
   LAYOUT PRINCIPAL: SIDEBAR + MAIN CONTENT
   ══════════════════════════════════════════════════ */
.rest-app,
.rest-wrapper {
    display: flex;
    min-height: calc(100vh - 46px);
    background-color: var(--rest-bg);
}

.rest-sidebar {
    width: 295px;
    background: var(--rest-surface);
    border-right: 1px solid var(--rest-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    position: sticky;
    top: 46px;
    height: calc(100vh - 46px);
    overflow-y: auto;
    z-index: 1040;
    transition: all 0.3s ease;
}

.rest-sidebar-top {
    padding: 20px 12px;
}

.rest-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--rest-border);
    margin-bottom: 16px;
}

.rest-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.rest-brand-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--rest-text);
    display: block;
}

.rest-brand-tag {
    font-size: 11px;
    color: var(--rest-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rest-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rest-nav-section {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--rest-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 10px 6px;
}

.rest-nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: var(--rest-radius-sm);
    color: var(--rest-text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.rest-nav a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.rest-nav a:hover {
    color: var(--rest-text);
    background: var(--rest-surface-hover);
}

.rest-nav a.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.24) 0%, rgba(245, 158, 11, 0.06) 100%);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-left: 4px solid var(--rest-amber);
    padding-left: 8px;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.rest-nav a.active i {
    color: #fbbf24;
}

/* Regras do Item Ativo no Tema Claro (Alto Contraste WCAG AAA) */
[data-theme="light"] .rest-nav a.active,
[data-bs-theme="light"] .rest-nav a.active,
body[data-theme="light"] .rest-nav a.active,
body[data-bs-theme="light"] .rest-nav a.active {
    color: #9a3412 !important;
    background: #fff7ed !important;
    border: 1px solid #fed7aa !important;
    border-left: 4px solid #ea580c !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.08) !important;
    padding-left: 9px !important;
}

[data-theme="light"] .rest-nav a.active i,
[data-bs-theme="light"] .rest-nav a.active i {
    color: #ea580c !important;
    font-size: 16.5px !important;
}

[data-theme="light"] .rest-nav a.active .nav-label,
[data-bs-theme="light"] .rest-nav a.active .nav-label {
    color: #9a3412 !important;
    font-weight: 700 !important;
}

[data-theme="light"] .rest-nav a,
[data-bs-theme="light"] .rest-nav a {
    color: #334155 !important;
}

[data-theme="light"] .rest-nav a i,
[data-bs-theme="light"] .rest-nav a i {
    color: #64748b !important;
}

[data-theme="light"] .rest-nav a:hover,
[data-bs-theme="light"] .rest-nav a:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}

[data-theme="light"] .rest-nav a:hover i,
[data-bs-theme="light"] .rest-nav a:hover i {
    color: #ea580c !important;
}

.nav-label {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--rest-surface-card);
    color: var(--rest-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.01em;
}
.nav-badge.orange { background: var(--rest-amber); color: #000000; }
.nav-badge.green { background: var(--rest-green); color: #ffffff; }
.nav-badge.pulse-amber {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid #f59e0b;
}

[data-theme="light"] .nav-badge.pulse-amber,
[data-bs-theme="light"] .nav-badge.pulse-amber {
    background: #ea580c !important;
    color: #ffffff !important;
    border: none !important;
}

.rest-sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--rest-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rest-store-card {
    background: var(--rest-surface-card);
    border: 1px solid var(--rest-border);
    padding: 12px;
    border-radius: var(--rest-radius-sm);
}

.store-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.store-status-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.store-name {
    font-size: 12.5px;
    color: var(--rest-text);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px;
    border-radius: var(--rest-radius-sm);
    transition: background 0.2s;
    cursor: pointer;
}
.sidebar-user:hover {
    background: var(--rest-surface-hover);
}

.sidebar-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rest-border);
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--rest-text);
}

.sidebar-user-role {
    font-size: 11px;
    color: var(--rest-text-muted);
}

/* ══════════════════════════════════════════════════
   ÁREA PRINCIPAL DE CONTEÚDO
   ══════════════════════════════════════════════════ */
.rest-main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--rest-bg);
    min-width: 0;
}

.rest-top-header {
    background: var(--rest-surface);
    border-bottom: 1px solid var(--rest-border);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 46px;
    z-index: 1030;
}

.rest-content,
.rest-content-area {
    padding: 24px;
    flex-grow: 1;
}

.rest-page {
    display: none;
}
.rest-page.active {
    display: block;
    animation: fadeInPage 0.25s ease;
}

@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.live-clock-badge {
    background: var(--rest-surface-card);
    border: 1px solid var(--rest-border);
    color: var(--rest-text);
    font-weight: 700;
    font-size: 12.5px;
}

.btn-icon-glass {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--rest-border);
    background: var(--rest-surface-card);
    color: var(--rest-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-icon-glass:hover {
    background: var(--rest-surface-hover);
    color: var(--rest-text);
}

.rest-surface-card {
    background: var(--rest-surface) !important;
    border: 1px solid var(--rest-border) !important;
}

/* ══════════════════════════════════════════════════
   KDS — KITCHEN DISPLAY SYSTEM
   ══════════════════════════════════════════════════ */
.kds-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    min-height: 600px;
}

.kds-col {
    background: var(--rest-surface);
    border: 1px solid var(--rest-border);
    border-radius: var(--rest-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    animation: livePulseAnim 1.8s infinite;
}

.kds-col-scroll {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: calc(100vh - 230px);
}

.kds-order-card {
    background: var(--rest-surface-card);
    border: 1px solid var(--rest-border);
    border-radius: var(--rest-radius-sm);
    padding: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.kds-order-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.kds-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.kds-table-badge {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f59e0b;
    color: #000000;
}

.kds-time {
    font-size: 11px;
    font-weight: 700;
}

.kds-meta {
    font-size: 11px;
    color: var(--rest-text-muted);
    margin-bottom: 10px;
}

.kds-items-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.kds-items-list li {
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--rest-border);
}
.kds-items-list li:last-child {
    border-bottom: none;
}

.kds-advance-btn {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 6px;
    background: #f59e0b;
    color: #000000;
    font-weight: 700;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
}
.kds-advance-btn:hover {
    background: #d97706;
    color: #ffffff;
}
.kds-advance-btn.btn-finish-prep {
    background: #3b82f6;
    color: #ffffff;
}
.kds-advance-btn.btn-finish-prep:hover {
    background: #2563eb;
}
.kds-advance-btn.btn-serve-done {
    background: #10b981;
    color: #ffffff;
}
.kds-advance-btn.btn-serve-done:hover {
    background: #059669;
}

.ready-to-serve {
    border-left: 4px solid #10b981 !important;
    animation: readyPulse 2s infinite;
}

@keyframes readyPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(16, 185, 129, 0); }
    50% { box-shadow: 0 0 16px rgba(16, 185, 129, 0.4); }
}

.concluded-card {
    opacity: 0.75;
}

/* ══════════════════════════════════════════════════
   GRADE DE MESAS TOUCH & SALÃO
   ══════════════════════════════════════════════════ */
.mesas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.mesa-box {
    background: var(--rest-surface);
    border: 1px solid var(--rest-border);
    border-radius: var(--rest-radius);
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 175px;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.mesa-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.mesa-capacity {
    font-size: 11px;
    color: var(--rest-text-muted);
}

.mesa-num {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin: 8px 0;
    color: var(--rest-text);
}

.mesa-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--rest-amber);
}

.mesa-status-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

.pill-livre { background: var(--rest-green-subtle); color: #10b981; }
.pill-ocupada { background: var(--rest-amber-subtle); color: #f59e0b; }
.pill-conta { background: var(--rest-purple-subtle); color: #a855f7; }

.mesa-box.mesa-livre {
    border-top: 4px solid #10b981;
}
.mesa-box.mesa-ocupada {
    border-top: 4px solid #f59e0b;
}
.mesa-box.mesa-conta {
    border-top: 4px solid #a855f7;
}

.pulse-border-purple {
    animation: purpleBorderPulse 2s infinite;
}
@keyframes purpleBorderPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(168, 85, 247, 0); }
    50% { box-shadow: 0 0 18px rgba(168, 85, 247, 0.45); }
}

/* ══════════════════════════════════════════════════
   AMBIENTE DO CLIENTE (CARDÁPIO QR CODE NO SMARTPHONE)
   ══════════════════════════════════════════════════ */
.client-viewport-wrapper {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.client-phone-frame {
    width: 420px;
    max-width: 100%;
    background: #0f172a;
    border: 8px solid #1e293b;
    border-radius: 42px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

/* Modo Tela Cheia / Tablet */
.client-phone-frame.full-mode {
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    border: 2px solid var(--rest-border);
}
.client-phone-frame.full-mode .client-phone-notch {
    display: none !important;
}

.client-phone-notch {
    height: 34px;
    background: #000000;
}
.phone-speaker {
    width: 60px;
    height: 4px;
    background: #334155;
    border-radius: 999px;
}

.client-app-content {
    background: var(--rest-bg);
    min-height: 640px;
    max-height: 750px;
    overflow-y: auto;
    position: relative;
}

.client-restaurant-hero {
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.9) 100%), url('https://images.unsplash.com/photo-1544025162-d76694265947?auto=format&fit=crop&w=800&q=80') center/cover;
    padding: 24px 16px 16px;
    position: relative;
}

.client-table-selector-bar {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.client-table-select {
    background: transparent;
    color: #ffffff;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
}
.client-table-select option {
    background: #0f172a;
    color: #ffffff;
}

.btn-xs {
    padding: 3px 8px;
    font-size: 11px;
    border-radius: 5px;
}

.client-categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.client-categories-scroll::-webkit-scrollbar { display: none; }

.client-cat-pill {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--rest-border);
    background: var(--rest-surface);
    color: var(--rest-text-muted);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.client-cat-pill:hover,
.client-cat-pill.active {
    background: var(--rest-amber);
    color: #000000;
    border-color: var(--rest-amber);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

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

.client-dish-item {
    background: var(--rest-surface);
    border: 1px solid var(--rest-border);
    border-radius: var(--rest-radius-sm);
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.2s;
}
.client-dish-item:hover {
    border-color: var(--rest-amber);
}

.client-dish-img {
    width: 84px;
    height: 84px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.client-dish-body {
    flex-grow: 1;
    min-width: 0;
}

.client-dish-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--rest-text);
    margin-bottom: 3px;
}

.client-dish-desc {
    font-size: 11.5px;
    color: var(--rest-text-muted);
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.client-dish-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--rest-amber);
}

/* Barra Fixa Inferior de Pedido do Cliente */
.client-bottom-cart-bar {
    position: sticky;
    bottom: 12px;
    left: 12px;
    right: 12px;
    margin: 0 12px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    z-index: 100;
}
.client-bottom-cart-bar:hover {
    transform: scale(1.02);
}

.client-cart-icon-badge {
    position: relative;
    color: #fbbf24;
}
.client-cart-icon-badge .badge {
    position: absolute;
    top: -6px;
    right: -8px;
    font-size: 10px;
}

/* ══════════════════════════════════════════════════
   CARDÁPIO BACKOFFICE & DISH CARDS
   ══════════════════════════════════════════════════ */
.dish-card {
    background: var(--rest-surface);
    border: 1px solid var(--rest-border);
    border-radius: var(--rest-radius);
    overflow: hidden;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.dish-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.dish-img {
    height: 160px;
    width: 100%;
    object-fit: cover;
}

.dish-body {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.dish-desc {
    font-size: 12px;
    color: var(--rest-text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

.dish-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--rest-amber);
}

/* ══════════════════════════════════════════════════
   MODAIS & COMPONENTES GERAIS
   ══════════════════════════════════════════════════ */
.rest-modal-content {
    background: var(--rest-surface) !important;
    color: var(--rest-text) !important;
    border-radius: var(--rest-radius) !important;
}

.rest-modal-list .list-group-item {
    background: transparent !important;
    color: var(--rest-text) !important;
    border-color: var(--rest-border) !important;
}

.rest-table th {
    background: var(--rest-surface-card) !important;
    color: var(--rest-text-muted) !important;
    border-bottom: 1px solid var(--rest-border) !important;
}
.rest-table td {
    background: transparent !important;
    color: var(--rest-text) !important;
    border-bottom: 1px solid var(--rest-border) !important;
}

/* KPIs */
.kpi-card {
    background: var(--rest-surface);
    border: 1px solid var(--rest-border);
    border-radius: var(--rest-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.kpi-val {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--rest-text);
}

.kpi-label {
    font-size: 11.5px;
    color: var(--rest-text-muted);
    margin-top: 2px;
}

/* Utilitários de Cor */
.text-purple { color: #a855f7 !important; }
.bg-purple-subtle { background: rgba(168, 85, 247, 0.15) !important; }
.btn-outline-purple {
    color: #a855f7;
    border-color: #a855f7;
}
.btn-outline-purple:hover {
    background: #a855f7;
    color: #ffffff;
}

/* Responsividade */
@media (max-width: 992px) {
    .rest-sidebar {
        position: fixed;
        left: -285px;
        top: 0;
        height: 100vh;
        z-index: 1070;
    }
    .rest-sidebar.open {
        left: 0;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.6);
    }
    .kds-board {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════
   MÓDULO DE DELIVERY, FRETES & MOTOBOYS
   ══════════════════════════════════════════════════ */
.nav-badge.blue {
    background: #0284c7;
    color: #ffffff;
}

[data-theme="light"] .nav-badge.blue,
[data-bs-theme="light"] .nav-badge.blue {
    background: #0369a1 !important;
    color: #ffffff !important;
}

/* Seletor de Tipo de Consumo do Cliente (Mesa / Delivery / Retirada) */
.client-order-type-tabs .btn {
    transition: all 0.2s ease;
    border: none;
}
.client-order-type-tabs .btn.active {
    background: var(--rest-amber) !important;
    color: #000000 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Cards de Pedidos Delivery */
.delivery-order-card {
    background: var(--rest-surface);
    border: 1px solid var(--rest-border);
    border-radius: var(--rest-radius);
    padding: 18px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.delivery-order-card:hover {
    border-color: rgba(14, 165, 233, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translateY(-2px);
}
.delivery-order-card.status-novo {
    border-left: 4px solid #f59e0b;
}
.delivery-order-card.status-preparo {
    border-left: 4px solid #3b82f6;
}
.delivery-order-card.status-rota {
    border-left: 4px solid #8b5cf6;
}
.delivery-order-card.status-entregue {
    border-left: 4px solid #10b981;
}

.delivery-badge-status {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.delivery-badge-status.novo {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.delivery-badge-status.preparo {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}
.delivery-badge-status.rota {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
}
.delivery-badge-status.entregue {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.delivery-customer-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--rest-text);
}
.delivery-address-box {
    background: var(--rest-surface-card);
    border-radius: var(--rest-radius-sm);
    padding: 10px 12px;
    font-size: 12.5px;
    margin: 10px 0;
    border: 1px solid var(--rest-border);
}

.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    font-weight: 600;
    border: none;
    transition: all 0.2s;
}
.btn-whatsapp:hover {
    background: #1eb854;
    color: #ffffff;
}

/* Cards de Motoboys */
.motoboy-card {
    background: var(--rest-surface);
    border: 1px solid var(--rest-border);
    border-radius: var(--rest-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s ease;
}
.motoboy-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.motoboy-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--rest-border);
}
