/* Jávem painel — alinhado ao site (grafite + laranja) */
:root {
    --primary: #FF6B35;
    --primary-2: #FF8A3D;
    --primary-3: #FFB347;
    --primary-dark: #E85D04;
    --primary-soft: rgba(255, 107, 53, 0.16);
    --primary-rgb: 255, 107, 53;
    --primary-2-rgb: 255, 138, 61;
    --secondary: #18181B;
    --sidebar-width: 260px;
    --header-height: 64px;
    --bg-body: #F4F6F9;
    --bg-card: #FFFFFF;
    --bg-sidebar: #0F0F10;
    --text-primary: #1A1A2E;
    --text-secondary: #6C757D;
    --border-color: #E9ECEF;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

[data-theme="dark"] {
    --bg-body: #0F0F10;
    --bg-card: #18181B;
    --bg-sidebar: #0F0F10;
    --bg-elevated: #232326;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    margin: 0;
}

[data-theme="dark"] body {
    background-color: #0F0F10;
    background-image:
        radial-gradient(ellipse 65% 40% at 12% -8%, rgba(var(--primary-rgb), 0.12), transparent 58%),
        radial-gradient(ellipse 50% 35% at 92% 8%, rgba(var(--primary-2-rgb), 0.06), transparent 52%);
    background-attachment: fixed;
}

.auth-body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, #16213E 50%, var(--primary) 100%);
    padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 1rem;
}

.auth-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.brand-icon {
    width: 64px;
    height: 64px;
    background: var(--primary);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.brand-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.brand-subtitle {
    color: var(--text-secondary);
    margin: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-2, #FF8A3D) 0%, var(--primary, #FF6B35) 55%, var(--primary-dark, #E85D04) 100%);
    border-color: transparent;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-3, #FFB347) 0%, var(--primary-2, #FF8A3D) 50%, var(--primary, #FF6B35) 100%);
    border-color: transparent;
    color: #fff;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: rgba(var(--primary-rgb), 0.55);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    border-right: 1px solid var(--border-color);
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
    padding-left: var(--safe-left);
    box-sizing: border-box;
}

[data-theme="dark"] .app-sidebar {
    background: rgba(15, 15, 16, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.sidebar-brand-logo {
    display: block;
    max-width: 220px;
    width: 100%;
    max-height: 72px;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.sidebar-brand-fallback {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-close {
    color: #fff;
    font-size: 1.2rem;
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.sidebar-user {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar i {
    font-size: 2.5rem;
    color: var(--primary);
}

.user-info strong {
    display: block;
    font-size: 0.9rem;
}

.user-info small {
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-nav-heading {
    padding: 0.9rem 0.9rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: all 0.2s;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(var(--primary-rgb), 0.15);
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background: var(--primary);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1030;
}

.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

html.sidebar-collapsed .app-sidebar {
    transform: translateX(-100%);
    pointer-events: none;
}

html.sidebar-collapsed .app-main {
    margin-left: 0;
}

.app-header {
    height: calc(var(--header-height) + var(--safe-top));
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--safe-top) max(1.5rem, calc(1.5rem + var(--safe-right))) 0 max(1.5rem, calc(1.5rem + var(--safe-left)));
    position: sticky;
    top: 0;
    z-index: 1020;
    box-sizing: border-box;
}

[data-theme="dark"] .app-header {
    background: rgba(24, 24, 27, 0.82);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.panel-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .panel-card {
    background: rgba(24, 24, 27, 0.88);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

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

.page-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.sidebar-toggle,
.theme-toggle,
.user-menu {
    color: var(--text-primary);
    text-decoration: none;
}

.sidebar-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-radius: 8px;
    font-size: 1.25rem;
    line-height: 1;
}

.sidebar-toggle:hover,
.sidebar-toggle:focus {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
}

.app-content {
    flex: 1;
    padding: 1.5rem;
}

.app-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.panel-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.stat-card-primary { border-left-color: #0D6EFD; }
.stat-card-success { border-left-color: #198754; }
.stat-card-warning { border-left-color: #FFC107; }
.stat-card-danger  { border-left-color: #DC3545; }
.stat-card-info    { border-left-color: #0DCAF0; }

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.stat-card-primary .stat-icon { background: rgba(13, 110, 253, 0.1); color: #0D6EFD; }
.stat-card-success .stat-icon { background: rgba(25, 135, 84, 0.1); color: #198754; }
.stat-card-warning .stat-icon { background: rgba(255, 193, 7, 0.15); color: #CC9A06; }
.stat-card-info    .stat-icon { background: rgba(13, 202, 240, 0.1); color: #0DCAF0; }

.stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
        pointer-events: none;
    }

    .app-sidebar.open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .app-main {
        margin-left: 0;
    }

    html.sidebar-collapsed .app-sidebar {
        transform: translateX(-100%);
    }

    html.sidebar-collapsed .app-sidebar.open {
        transform: translateX(0);
        pointer-events: auto;
    }
}

@media (max-width: 767.98px) {
    .table td .btn,
    .table td .d-inline {
        margin-bottom: 0.25rem;
    }
    .table td.text-nowrap {
        white-space: normal !important;
    }
    .table td.text-end {
        min-width: 9.5rem;
    }
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-theme="dark"] .input-group-text {
    background: #232326;
    border-color: var(--border-color);
    color: var(--text-primary);
    color-scheme: dark;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: #232326;
    border-color: rgba(var(--primary-rgb), 0.55);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.2);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control::placeholder {
    color: #71717A;
}

[data-theme="dark"] .form-select option,
[data-theme="dark"] select option {
    background-color: #232326;
    color: #f4f4f5;
}

[data-theme="dark"] .form-select option:checked,
[data-theme="dark"] .form-select option:hover,
[data-theme="dark"] select option:checked {
    background-color: rgba(var(--primary-rgb), 0.35);
    color: #fff;
}

[data-theme="dark"] .modal-content {
    background: #18181B;
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: 0.7;
}

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

[data-theme="dark"] .text-muted {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .form-text {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .dropdown-menu {
    background: #18181B;
    border-color: var(--border-color);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-primary);
}

[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus {
    background: var(--primary-soft);
    color: #fff;
}

[data-theme="dark"] .list-group-item {
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .alert {
    border: none;
}

[data-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--border-color);
    --bs-table-hover-bg: rgba(var(--primary-rgb), 0.06);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
}

[data-theme="dark"] .table > :not(caption) > * > * {
    background-color: transparent;
    color: inherit;
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .table-light,
[data-theme="dark"] .table-light > th,
[data-theme="dark"] .table-light > td,
[data-theme="dark"] thead.table-light th {
    --bs-table-bg: #232326;
    --bs-table-color: #F4F4F5;
    --bs-table-border-color: var(--border-color);
    background-color: #232326 !important;
    color: #F4F4F5 !important;
}

[data-theme="dark"] .table-success,
[data-theme="dark"] .table-success > th,
[data-theme="dark"] .table-success > td {
    --bs-table-bg: rgba(34, 197, 94, 0.14);
    --bs-table-color: #F4F4F5;
    --bs-table-border-color: rgba(34, 197, 94, 0.28);
    background-color: rgba(34, 197, 94, 0.14) !important;
    color: #F4F4F5 !important;
}

[data-theme="dark"] .nav-tabs {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .nav-tabs .nav-link {
    color: var(--text-secondary);
}

[data-theme="dark"] .nav-tabs .nav-link.active {
    background: var(--bg-card);
    border-color: var(--border-color) var(--border-color) var(--bg-card);
    color: var(--primary);
}

[data-theme="dark"] .badge.bg-secondary {
    background: #232326 !important;
    color: #A1A1AA !important;
}

.admin-table thead th a {
    color: inherit;
    text-decoration: none;
}

.admin-table thead th a:hover {
    color: var(--primary);
}

.detail-list dt {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.detail-list dd {
    margin-bottom: 0.65rem;
}

.empty-state {
    color: var(--text-secondary);
}

.audit-json {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.75rem;
    max-height: 180px;
    overflow: auto;
    background: var(--bg-body);
    padding: 0.75rem;
    border-radius: 8px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.stat-card-danger .stat-icon {
    background: rgba(220, 53, 69, 0.1);
    color: #DC3545;
}

[data-theme="dark"] .bg-light {
    background: #232326 !important;
    color: var(--text-primary) !important;
}

/* ── Modos operacionais (atendimento / cozinha / balcão) ─────────────────── */
.ops-card {
    border-width: 2px;
    border-radius: 12px;
    transition: box-shadow 0.15s;
}

.ops-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
}

.ops-btn {
    min-height: 48px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
}

.ops-qty {
    min-width: 2rem;
    text-align: center;
    flex-shrink: 0;
}

.ops-items li:last-child {
    border-bottom: none !important;
}

@media (max-width: 575.98px) {
    .ops-btn {
        min-height: 52px;
        font-size: 1.05rem;
    }
}

/* Etapa 4.1 — painel loja mobile + wizard */
.store-mobile-thumb-placeholder {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
}

.store-mobile-actions .btn {
    min-height: 44px;
}

.store-modal-footer {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.store-modal-footer .btn {
    min-height: 44px;
}

.product-wizard-progress {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
}

.product-wizard-step-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    min-height: 36px;
}

.product-wizard-step-btn .step-num {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 700;
}

.product-wizard-step-btn.is-active {
    border-color: var(--primary);
    color: var(--text-primary);
}

.product-wizard-step-btn.is-active .step-num,
.product-wizard-step-btn.is-done .step-num {
    background: var(--primary);
    color: #111;
}

.product-wizard-step-btn.is-done {
    opacity: 0.85;
}

.product-wizard-footer {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, transparent, var(--bg-body) 28%);
}

.product-wizard-footer .btn {
    min-height: 48px;
    min-width: 7rem;
}

.product-wizard {
    padding-bottom: 1rem;
}

.product-wizard-panel .form-control,
.product-wizard-panel .form-select {
    font-size: 16px;
    min-height: 48px;
}

@media (max-width: 767.98px) {
    .app-content {
        padding: 1rem;
    }

    .product-wizard-step-btn .step-label {
        display: none;
    }

    .store-mobile-card .card-body {
        padding: 1rem;
    }

    .product-wizard-footer {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        background: var(--bg-body);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
    }

    .product-wizard-footer .btn {
        flex: 1 1 auto;
    }

    .product-wizard-footer .d-flex {
        flex: 1 1 auto;
    }

    .product-wizard-progress {
        margin: 0 -0.25rem 1rem;
        padding: 0.15rem 0.25rem 0.5rem;
        scrollbar-width: none;
    }

    .product-wizard-progress::-webkit-scrollbar {
        display: none;
    }
}

/* ── Etapa 5: Sino / Notificações ─────────────────────────────────────────── */

/* Wrapper do sino no header */
.notif-bell-wrap {
    position: relative;
}

.notif-bell-btn {
    position: relative;
    color: var(--text-primary);
    font-size: 1.15rem;
    padding: 0.35rem 0.45rem;
}

.notif-bell-btn:hover {
    color: var(--primary);
}

/* Badge contador */
.notif-badge {
    position: absolute;
    top: 2px;
    right: 0px;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    background: #DC3545;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.1rem;
    border-radius: 999px;
    text-align: center;
    pointer-events: none;
    border: 2px solid var(--bg-card);
}

/* Drawer desktop */
.notif-drawer {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 520px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, #e9ecef);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1050;
    overflow: hidden;
}

.notif-drawer[hidden],
.notif-overlay[hidden] {
    display: none !important;
}

.notif-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.notif-drawer-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.notif-drawer-footer {
    border-top: 1px solid var(--border-color);
    padding: 0.5rem;
    padding-bottom: max(0.5rem, var(--safe-bottom));
    flex-shrink: 0;
}

/* Overlay para fechar ao clicar fora (desktop) */
.notif-overlay {
    position: fixed;
    inset: 0;
    z-index: 1045;
    background: transparent;
}

/* Lista de notificações */
.notif-list {
    margin: 0;
    padding: 0;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s;
}

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

.notif-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.notif-item--unread {
    background: rgba(13, 110, 253, 0.04);
}

.notif-item-body {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
}

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0D6EFD;
    flex-shrink: 0;
    margin-top: 5px;
}

.notif-dot--read {
    background: transparent;
}

.notif-item-text {
    flex: 1;
    min-width: 0;
}

.notif-item-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-item-msg {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.notif-item-actions {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.15rem;
}

.notif-link,
.notif-read-btn {
    font-size: 0.75rem;
    color: var(--primary);
}

.notif-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Bottom-sheet em mobile */
@media (max-width: 575.98px) {
    .notif-drawer {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: min(75vh, calc(100dvh - var(--safe-top) - 1rem));
        border-radius: 16px 16px 0 0;
        border-bottom: none;
        padding-bottom: var(--safe-bottom);
        box-sizing: border-box;
    }

    .notif-overlay {
        background: rgba(0, 0, 0, 0.4);
    }
}

/* Dark theme */
[data-theme="dark"] .notif-drawer {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .notif-item--unread {
    background: rgba(13, 110, 253, 0.07);
}

[data-theme="dark"] .notif-item:hover {
    background: rgba(var(--primary-rgb), 0.07);
}

/* ── Etapa 5: SLA Ops ──────────────────────────────────────────────────────── */

/* Banner de SLA no topo das páginas ops */
.ops-sla-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ops-sla-banner.sla-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.ops-sla-banner.sla-overdue {
    background: rgba(220, 53, 69, 0.1);
    color: #842029;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

[data-theme="dark"] .ops-sla-banner.sla-warning {
    color: #ffc107;
}

[data-theme="dark"] .ops-sla-banner.sla-overdue {
    color: #ea868f;
}

/* Chip de status "X pedidos em aberto" */
.ops-status-chip {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.ops-status-chip--info {
    color: #0D6EFD;
    font-weight: 600;
}

/* Badge SLA dentro de cards */
.ops-sla-badge {
    font-size: 0.7rem;
    padding: 0.2em 0.5em;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* Borda lateral colorida por nível SLA */
.ops-card--sla-warning {
    border-color: #ffc107 !important;
}

.ops-card--sla-overdue {
    border-color: #dc3545 !important;
    animation: sla-pulse 2s ease-in-out infinite;
}

@keyframes sla-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.2); }
    50%       { box-shadow: 0 0 0 5px rgba(220, 53, 69, 0); }
}

/* ── Pedidos da loja (mobile + desktop) ───────────────────────────────────── */
.store-orders-refresh {
    min-height: 44px;
    min-width: 44px;
}

.store-orders-tabs {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding: 0.35rem 0.25rem;
    background: var(--bg-body);
}

.store-orders-tabs-scroll {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
}

.store-orders-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.store-orders-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

.store-orders-tab:hover {
    color: var(--text-primary);
    border-color: var(--primary);
}

.store-orders-tab.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #111;
}

.store-orders-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.12);
    font-size: 0.75rem;
    font-weight: 700;
}

.store-orders-tab.is-active .store-orders-tab-count {
    background: rgba(0, 0, 0, 0.18);
}

.store-orders-tab-count.is-hot {
    background: #dc3545;
    color: #fff;
}

.store-orders-tab.is-active .store-orders-tab-count.is-hot {
    background: #111;
    color: #fff;
}

.store-orders-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .store-orders-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
}

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

.store-order-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
}

.store-order-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem 0.65rem;
    border-bottom: 1px solid var(--border-color);
}

.store-order-card__num {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.store-order-card__meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.store-order-card__total {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
}

.store-order-card__total strong {
    font-size: 1.05rem;
    white-space: nowrap;
}

.store-order-card__detail {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.store-order-card__body {
    padding: 0.85rem 1rem;
    flex: 1 1 auto;
}

.store-order-card__customer {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.store-order-card__customer i {
    color: var(--text-secondary);
}

.store-order-card__note {
    display: flex;
    gap: 0.45rem;
    align-items: flex-start;
    background: rgba(232, 93, 4, 0.08);
    border-radius: 0.75rem;
    padding: 0.55rem 0.7rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.store-order-card__note i {
    margin-top: 0.1rem;
    color: var(--primary);
}

.store-order-card__items {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 9.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.store-order-card__items li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(127, 127, 127, 0.12);
    font-size: 0.9rem;
}

.store-order-card__items li:last-child {
    border-bottom: 0;
}

.store-order-card__qty {
    flex: 0 0 auto;
    min-width: 1.75rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(127, 127, 127, 0.15);
    font-size: 0.75rem;
    font-weight: 700;
}

.store-order-track {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}
.store-order-track__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin-bottom: 0.35rem;
}
.store-order-track__live {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #06280f;
    background: #4ade80;
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
}
.store-order-track__status {
    font-size: 0.9rem;
    font-weight: 700;
}
.store-order-track__eta,
.store-order-track__hint {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
}
.store-order-track__map {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.25);
}
.store-order-track__map.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-order-track__map.is-empty::after {
    content: 'Aguardando GPS do entregador…';
    font-size: 0.8rem;
    color: var(--text-muted, #9ca3af);
}
.store-order-track-marker {
    background: transparent !important;
    border: none !important;
}
.store-order-track-marker__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    border: 2px solid #fff;
}

.store-order-card__driver {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.store-order-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid var(--border-color);
    background: rgba(127, 127, 127, 0.03);
}

.store-order-btn {
    min-height: 48px;
    font-weight: 700;
    border-radius: 10px;
}

.store-order-btn--secondary {
    min-width: 6.5rem;
}

.store-order-dispatch .form-select {
    font-size: 16px;
    min-height: 48px;
}

.store-order-summary {
    display: grid;
    gap: 0.65rem;
}

.store-order-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}

.store-order-summary dt {
    margin: 0;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.store-order-summary dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
}

.store-order-summary__total {
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 1.1rem;
}

.store-order-phone {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.store-order-phone:hover {
    color: var(--primary);
}

.store-order-items__row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(127, 127, 127, 0.12);
}

.store-order-items__row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.store-order-timeline > li {
    padding-bottom: 0.85rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(127, 127, 127, 0.12);
}

.store-order-timeline > li:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.store-order-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 30;
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
    margin-top: 0.5rem;
    background: var(--bg-body);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

.store-order-detail.has-sticky-actions {
    padding-bottom: 0.25rem;
}

.store-order-detail__back {
    min-height: 44px;
}

@media (max-width: 767.98px) {
    .store-orders-tabs {
        top: -0.25rem;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.04);
    }

    .store-order-card__actions {
        position: sticky;
        bottom: 0;
        z-index: 2;
        background: var(--bg-card);
    }

    .store-modal-footer .btn {
        min-height: 48px;
        flex: 1 1 auto;
    }
}

/* ── Painel entregador — fila de entregas ─────────────────────────────────── */
.driver-route__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.driver-stop {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    margin-bottom: 0.85rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.driver-stop.is-current {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.12);
}

.driver-stop__badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 1rem;
    background: rgba(127, 127, 127, 0.08);
    font-size: 0.8rem;
    font-weight: 700;
}

.driver-stop.is-current .driver-stop__badge {
    background: rgba(232, 93, 4, 0.12);
}

.driver-stop__now {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.driver-stop__next {
    color: var(--text-secondary);
}

.driver-stop__body {
    padding: 0.9rem 1rem 0.5rem;
}

.driver-stop__order {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.driver-stop__name {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
}

.driver-stop__addr {
    margin: 0;
    font-size: 0.95rem;
}

.driver-stop__hood {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.driver-stop__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.driver-stop__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.driver-stop__actions {
    padding: 0.75rem 1rem 1rem;
}

.driver-stop__cta {
    width: 100%;
    min-height: 52px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 12px;
}

.driver-stop__code-form {
    display: grid;
    gap: 0.5rem;
}

.driver-stop__code-form .form-control {
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    min-height: 52px;
}

.driver-stop__more summary {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
    list-style: none;
}

.driver-stop__more summary::-webkit-details-marker {
    display: none;
}

.driver-stop__more[open] summary {
    margin-bottom: 0.5rem;
}

@media (max-width: 575.98px) {
    .driver-stop.is-current .driver-stop__actions {
        position: sticky;
        bottom: 0;
        background: var(--bg-card);
        padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--border-color);
    }
}

/* ── Notificações da loja (mobile-first) ─────────────────────────────── */
.store-notif {
    max-width: 720px;
    margin: 0 auto;
    padding-bottom: 5.5rem;
}

.store-notif__hero {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.35rem;
}

.store-notif__hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.35rem;
    flex-shrink: 0;
}

.store-notif__title {
    margin: 0 0 0.2rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.store-notif__lead {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.store-notif__section {
    margin-bottom: 1.5rem;
}

.store-notif__section-head {
    margin-bottom: 0.75rem;
}

.store-notif__section-title {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 700;
}

.store-notif__section-desc {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.store-notif__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.store-notif-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    box-shadow: var(--shadow);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.store-notif-card.is-on {
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.12), var(--shadow);
}

.store-notif-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.store-notif-card__identity {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    min-width: 0;
}

.store-notif-card__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.store-notif-card__name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
}

.store-notif-card__desc {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.store-notif-card__switch .form-check-input {
    width: 3rem;
    height: 1.55rem;
    cursor: pointer;
    margin: 0;
}

.store-notif-card__switch .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.store-notif-card__sound-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0;
}

.store-notif-card__sound-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.store-notif-card__scroll-hint {
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.store-notif-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding-bottom: 0.35rem;
    margin-right: -0.25rem;
    padding-right: 0.5rem;
    scrollbar-width: thin;
}

.store-notif-chips::-webkit-scrollbar {
    height: 6px;
}

.store-notif-chips::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), 0.45);
    border-radius: 999px;
}

.store-notif-chip {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    scroll-snap-align: start;
    overflow: hidden;
}

.store-notif-chip__pick {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem 0.4rem 0.9rem;
    cursor: pointer;
    margin: 0;
}

.store-notif-chip__pick input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.store-notif-chip__play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    border: 0;
    border-left: 1px solid var(--border-color);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    padding: 0;
}

.store-notif-chip.is-selected {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.store-notif-chip.is-selected .store-notif-chip__play {
    border-left-color: rgba(var(--primary-rgb), 0.35);
    color: var(--primary-dark);
}

[data-theme="dark"] .store-notif-chip.is-selected {
    color: var(--primary-3);
}

[data-theme="dark"] .store-notif-chip.is-selected .store-notif-chip__play {
    color: var(--primary-3);
}

.store-notif-card__preview {
    min-height: 36px;
    display: flex;
    align-items: center;
}

.store-notif-card__hint {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.store-notif-play {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 40px;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    background: transparent;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.store-notif-play:active {
    transform: scale(0.98);
}

.store-notif-upload {
    margin-top: 0.55rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.store-notif-upload__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.45rem 0.95rem;
    border-radius: 12px;
    border: 1px dashed var(--border-color);
    background: var(--bg-body);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.store-notif-upload__btn--block {
    display: flex;
    width: 100%;
    margin-top: 0.45rem;
}

.store-notif__save {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 0 -0.25rem;
    padding: 0.75rem 0.25rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, transparent, var(--bg-body) 28%);
}

.store-notif__save-btn {
    width: 100%;
    min-height: 48px;
    font-weight: 700;
    border-radius: 14px;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .store-notif__save {
        position: static;
        background: none;
        padding: 0.5rem 0 0;
    }
    .store-notif__save-btn {
        width: auto;
        min-width: 220px;
    }
    .store-notif {
        padding-bottom: 1rem;
    }
    .store-notif-card__scroll-hint {
        display: none;
    }
}

/* ===== Salão PDV — mapa de mesas ===== */
.store-floor--pdv {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: -0.25rem 0 0;
}

/* Uso do plano (mesas) acima da busca */
.store-floor-plan-usage {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    font-size: 0.9rem;
}
.store-floor-plan-usage__label {
    font-weight: 600;
}
.store-floor-plan-usage__hint strong {
    color: inherit;
}

/* Busca no topo */
.store-floor-search {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
}
.store-floor-search__field {
    position: relative;
    flex: 1 1 220px;
    min-width: 0;
    display: flex;
    align-items: center;
}
.store-floor-search__field > .bi-search {
    position: absolute;
    left: 0.9rem;
    color: var(--text-secondary, #9ca3af);
    pointer-events: none;
    font-size: 0.95rem;
}
.store-floor-search__input {
    width: 100%;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border-color, #2a2a2a);
    background: var(--bg-elevated, #141414);
    color: var(--text-primary, #fff);
    padding: 0 2.6rem 0 2.45rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.store-floor-search__input::placeholder {
    color: var(--text-secondary, #9ca3af);
}
.store-floor-search__input:focus {
    border-color: var(--primary, #FF6B35);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.22);
}
.store-floor-search__clear {
    position: absolute;
    right: 0.65rem;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--text-secondary, #9ca3af);
    text-decoration: none;
}
.store-floor-search__clear:hover {
    color: var(--text-primary, #fff);
    background: rgba(255, 255, 255, 0.08);
}
.store-floor-search__submit {
    height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 1.25rem;
    background: var(--primary, #FF6B35);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}
.store-floor-search__submit:hover {
    filter: brightness(1.06);
}
.store-floor-search__chip {
    height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0 1rem;
    border: 1px solid var(--border-color, #2a2a2a);
    background: var(--bg-elevated, #141414);
    color: var(--text-primary, #fff);
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
.store-floor-search__chip:hover {
    border-color: var(--primary, #FF6B35);
    color: var(--primary, #FF6B35);
}
.store-floor-search__chip.is-active {
    border-color: var(--primary, #FF6B35);
    background: rgba(255, 107, 53, 0.14);
    color: var(--primary, #FF6B35);
}
@media (max-width: 575.98px) {
    .store-floor-search__submit,
    .store-floor-search__chip {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
    }
}

/* Abas superiores (grupos) — padrão grafite + laranja do painel */
.store-floor-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 0.4rem;
    align-items: stretch;
}
@media (min-width: 1100px) {
    .store-floor-modes {
        grid-template-columns: repeat(7, minmax(0, 1fr)) auto;
    }
}

.store-floor-mode {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    color: var(--text-primary) !important;
    background: var(--bg-card);
    border-radius: var(--radius, 12px);
    padding: 0.55rem 0.4rem;
    min-height: 58px;
    border: 1px solid var(--border-color);
    font-weight: 700;
    line-height: 1.15;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.store-floor-mode:hover {
    border-color: rgba(var(--primary-rgb), 0.55);
    color: var(--primary) !important;
    transform: translateY(-1px);
}
.store-floor-mode.is-active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary) !important;
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), 0.2);
}
.store-floor-mode__label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.store-floor-mode__meta {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.75;
    margin-top: 0.15rem;
    color: inherit;
}
.store-floor-mode__alerts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.25rem;
    width: 100%;
}
.store-floor-mode__alert {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72%;
    padding: 0.12rem 0.35rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-transform: none;
}
.store-floor-mode__alert.is-new {
    color: #fff;
    background: #e85d04;
    animation: store-floor-alert-pulse 1.4s ease-in-out infinite;
}
.store-floor-mode__alert.is-ready {
    color: #06280f;
    background: #4ade80;
    animation: store-floor-alert-pulse 1.6s ease-in-out infinite;
}
.store-floor-mode.has-alert-new {
    border-color: rgba(232, 93, 4, 0.85);
    box-shadow: 0 0 0 1px rgba(232, 93, 4, 0.25);
}
.store-floor-mode.has-alert-ready:not(.has-alert-new) {
    border-color: rgba(74, 222, 128, 0.85);
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.25);
}
@keyframes store-floor-alert-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.82; transform: scale(0.98); }
}

.store-floor-modes__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    min-width: 96px;
}
.store-floor-tool {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--bg-elevated, #141414);
    border: 1px solid var(--border-color, #2a2a2a);
    color: var(--text-primary, #fff);
    text-decoration: none;
}
.store-floor-tool:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Grid denso 12 colunas no desktop (estilo PDV) */
.store-floor-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100%;
    background: var(--bg-body, transparent);
    padding: 2px;
}
@media (min-width: 768px) {
    .store-floor-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
        gap: 7px !important;
    }
}
@media (min-width: 1100px) {
    .store-floor-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }
}

.store-floor-tile {
    aspect-ratio: 1 / 1;
    min-height: 0;
    width: 100%;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.28);
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 0.3rem 0.2rem;
    box-sizing: border-box;
    float: none !important;
    position: relative;
}
.store-floor-tile:hover,
.store-floor-tile:focus {
    filter: brightness(1.05);
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: 0;
}
.store-floor-tile.is-free { background: #22c55e; }
.store-floor-tile.is-occupied { background: #ef4444; }
.store-floor-tile.is-idle { background: #ff6b00; }
.store-floor-tile.is-blocked { background: #6b7280; cursor: not-allowed; }

.store-floor-tile__number {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}
@media (min-width: 1100px) {
    .store-floor-tile__number { font-size: 0.85rem; }
}
.store-floor-tile__icon {
    width: 28px;
    height: 28px;
    display: block;
    flex-shrink: 0;
    margin-top: 0.35rem;
}
@media (min-width: 1100px) {
    .store-floor-tile__icon {
        width: 34px;
        height: 34px;
    }
}
.store-floor-tile__name {
    font-size: 0.62rem;
    opacity: 0.95;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 0.15rem;
    font-weight: 600;
}

.store-floor-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 1.1rem;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.store-floor-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary, #A1A1AA);
    background: transparent;
    padding: 0;
    white-space: nowrap;
}
.store-floor-legend__item strong {
    color: var(--text-primary, #fff);
    font-weight: 700;
}
.store-floor-legend__swatch {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.25);
    flex-shrink: 0;
}
.store-floor-legend__item.is-free .store-floor-legend__swatch { background: #22c55e; }
.store-floor-legend__item.is-occupied .store-floor-legend__swatch { background: #ef4444; }
.store-floor-legend__item.is-idle .store-floor-legend__swatch { background: #ff6b00; }
.store-floor-legend__item.is-grouped .store-floor-legend__swatch { background: #a855f7; }

.store-floor-modes__tools .dropdown-toggle::after {
    display: none;
}
.store-floor-modes__tools .dropdown-menu {
    min-width: 240px;
}

.store-floor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.store-floor-actions .btn.active {
    box-shadow: inset 0 0 0 2px currentColor;
}
.store-floor-items .list-group-item {
    background: transparent;
}

