@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #ff0000;
    --primary-dark: #c20512;
    --accent: #ea580c;
    --accent-soft: #fff7ed;
    --accent-border: #fdba74;
    --sidebar-width: 220px;
    --sidebar-collapsed: 45px;
    --topbar-height: 64px;
    --bg-light: #f8fafc;
    --card-soft: #fff7ed;
    --text-muted: #64748b;
    --text-menu: #475569;
    --border-soft: #e2e8f0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    overflow-x: hidden;
}

/* Login */
.form-login {
    width: 400px;
    max-width: 100%;
    padding: 15px;
    margin-top: 20px;
}

.login-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-bottom: 15px;
}

.form-login input {
    margin-bottom: 10px;
}

.fundo-login {
    object-fit: cover;
    width: 100%;
    height: 100vh;
    object-position: left;
}

/* App layout — padrão Gestor Web */
.app-body {
    display: flex;
    min-height: calc(100vh - var(--topbar-height));
    margin-top: var(--topbar-height);
}

.app-sidebar {
    width: var(--sidebar-width);
    background: #fff;
    border-right: 1px solid var(--border-soft);
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    bottom: 0;
    overflow: hidden;
    transition: width 0.3s ease;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.app-sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.app-sidebar.collapsed .menu-label,
.app-sidebar.collapsed .submenu,
.app-sidebar.collapsed .menu-arrow {
    display: none;
}

.app-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: #fff;
    color: var(--text-menu);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px 0 0;
    z-index: 200;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #e9ecef;
}

.app-topbar-left {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    flex: 1;
}

.app-topbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding-left: 12px;
    width: var(--sidebar-width);
    transition: width 0.3s ease;
    box-sizing: border-box;
}

.app-topbar-brand.is-collapsed {
    width: var(--sidebar-collapsed);
    overflow: hidden;
}

.app-topbar-brand.is-collapsed .app-topbar-logo {
    display: none;
}

.menu-button {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    margin-right: 4px;
    margin-left: -4px;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.menu-button:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.app-topbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.app-topbar-logo img {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    display: block;
}

.app-topbar-estab {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: min(480px, 42vw);
    padding-left: 28px;
    box-sizing: border-box;
}

.app-topbar-estab-logo-wrap {
    position: relative;
    flex-shrink: 0;
}

.app-topbar-estab-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    background: #f8fafc;
    border: 1px solid var(--border-soft);
    display: block;
}

.app-topbar-estab-logo.placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.app-topbar-estab-logo.is-hide {
    display: none !important;
}

.app-topbar-estab-textos {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.app-topbar-estab-nome {
    font-size: 0.95rem;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-topbar-estab-meta {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-topbar-actions {
    margin-left: auto;
    display: flex;
    gap: 14px;
    align-items: center;
    padding-right: 6px;
    flex-shrink: 0;
}

.topbar-icon-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.topbar-icon-btn:hover {
    background: var(--accent-soft);
    color: var(--accent);
}
.gd-notif-wrap {
    position: relative;
}
.gd-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}
.gd-notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
    z-index: 14000;
    overflow: hidden;
}
.gd-notif-panel[hidden] {
    display: none !important;
}
.gd-notif-head {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #eef2f7;
    color: #111;
}
.gd-notif-list {
    max-height: 360px;
    overflow: auto;
}
.gd-notif-empty {
    padding: 24px 16px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}
.gd-notif-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    text-align: left;
    border: none;
    background: #fff;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}
.gd-notif-item:hover {
    background: #f8fafc;
}
.gd-notif-item.is-nova {
    background: #fff1f2;
}
.gd-notif-item strong {
    font-size: 13px;
    color: #111;
}
.gd-notif-item span {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.menu-usuario-topo {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
    color: #475569;
    padding: 6px 10px;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.menu-usuario-topo span {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-usuario-topo:hover,
.menu-usuario-topo.show {
    background: var(--accent-soft);
    color: var(--accent);
}

.menu-usuario-topo .icone-seta {
    font-size: 12px;
    color: #94a3b8;
    transition: transform 0.25s ease, color 0.15s ease;
}

.menu-usuario-topo:hover .icone-seta,
.menu-usuario-topo.show .icone-seta {
    color: var(--accent);
}

.menu-usuario-topo.show .icone-seta {
    transform: rotate(180deg);
}

.profile-menu-panel {
    min-width: 260px;
    padding: 0;
    margin-top: 10px !important;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
    overflow: hidden;
}

.profile-menu-panel .dropdown-divider {
    margin: 0;
    border-color: #eef2f7;
}

.profile-menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.08), rgba(234, 88, 12, 0.02));
}

.profile-menu-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid #fed7aa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.profile-menu-user {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-menu-user strong {
    font-size: 0.92rem;
    color: #1f2430;
    font-weight: 800;
}

.profile-menu-user small {
    display: block;
    font-size: 0.78rem;
    color: #6b7280;
    word-break: break-all;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    transition: background 0.15s ease, color 0.15s ease;
}

.profile-menu-item i {
    font-size: 1.05rem;
    color: #9ca3af;
    transition: color 0.15s ease;
}

.profile-menu-item:hover,
.profile-menu-item:focus {
    background: var(--accent-soft);
    color: var(--accent);
}

.profile-menu-item:hover i,
.profile-menu-item:focus i {
    color: var(--accent);
}

.profile-menu-logout {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
}

.profile-menu-logout,
.profile-menu-logout:hover,
.profile-menu-logout:focus {
    color: #dc3545;
}

.profile-menu-logout i {
    color: #dc3545;
}

.app-main {
    margin-left: var(--sidebar-width);
    padding: 1.25rem 1.5rem;
    width: calc(100% - var(--sidebar-width));
    min-height: calc(100vh - var(--topbar-height));
    background: var(--bg-light);
    transition: margin-left 0.3s ease, width 0.3s ease;
}

.gestor-flash-host {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.gestor-flash-host:not(:empty) {
    margin-bottom: 1rem;
}

body.sidebar-collapsed .app-main {
    margin-left: var(--sidebar-collapsed);
    width: calc(100% - var(--sidebar-collapsed));
}

.menu-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(17, 24, 39, 0.18) transparent;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-list::-webkit-scrollbar {
    width: 5px;
}

.menu-list::-webkit-scrollbar-track {
    background: transparent;
}

.menu-list::-webkit-scrollbar-thumb {
    background: rgba(17, 24, 39, 0.14);
    border-radius: 999px;
}

.menu-list::-webkit-scrollbar-thumb:hover {
    background: rgba(17, 24, 39, 0.28);
}

.menu-list:hover {
    scrollbar-color: rgba(17, 24, 39, 0.28) transparent;
}

.menu-item > a,
.menu-item > button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 12px 12px 16px;
    border: none;
    background: transparent;
    text-decoration: none;
    color: var(--text-menu);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    border-radius: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.menu-item > a:hover,
.menu-item > button:hover {
    background: var(--accent-soft);
    color: #c2410c;
}

.menu-item > a:hover .menu-icon,
.menu-item > button:hover .menu-icon,
.menu-item > a:hover .menu-arrow,
.menu-item > button:hover .menu-arrow {
    color: var(--accent);
}

.menu-item.active > a,
.menu-item.active > button {
    background: var(--accent-soft);
    color: #c2410c;
    box-shadow: inset 3px 0 0 var(--accent-border);
}

.menu-item.active .menu-icon,
.menu-item.active .menu-arrow {
    color: var(--accent);
}

.app-sidebar.collapsed .menu-item > a,
.app-sidebar.collapsed .menu-item > button {
    justify-content: center;
    padding: 14px 0;
    gap: 0;
}

.menu-icon {
    width: 18px;
    min-width: 18px;
    text-align: center;
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 16px;
    transition: color 0.15s ease;
}

.menu-arrow {
    margin-left: auto;
    margin-right: 2px;
    color: #94a3b8;
    transition: transform 0.25s ease, color 0.15s ease;
}

.menu-item > button[aria-expanded="true"] .menu-arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.submenu {
    list-style: none;
    padding: 4px 8px 8px 16px;
    margin: 0 0 4px;
    background: #f8fafc;
    border-left: 3px solid var(--accent-border);
}

.submenu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.submenu a:hover,
.submenu a.active {
    background: var(--accent-soft);
    color: #c2410c;
}

.page-header {
    margin-bottom: 1.5rem;
}

.page-header h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #3c2a3f;
    font-weight: 700;
}

@media (max-width: 992px) {
    .app-topbar-estab {
        display: none;
    }

    .app-topbar-brand {
        width: auto;
        min-width: var(--sidebar-collapsed);
    }
}

@media (max-width: 768px) {
    .menu-usuario-topo span {
        display: none;
    }

    .app-main {
        padding: 1rem;
    }
}

.loja-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.loja-page-header p {
    font-size: 0.92rem;
    margin-top: 0.35rem;
}

.loja-card .form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 6px;
}

.loja-divider {
    margin: 1.25rem 0;
    border-color: #eef2f7;
}

.loja-upload-block + .loja-upload-block {
    margin-top: 0;
}

.loja-logo-upload {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.loja-logo-preview-wrap {
    width: 96px;
    height: 96px;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.loja-logo-preview {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.loja-logo-placeholder,
.loja-banner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #9ca3af;
    font-size: 0.78rem;
    text-align: center;
    padding: 0.75rem;
}

.loja-logo-placeholder i,
.loja-banner-placeholder i {
    font-size: 1.4rem;
}

.loja-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 180px;
}

.loja-banner-upload {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.loja-banner-preview-wrap {
    width: 100%;
    height: 140px;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.loja-banner-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loja-form-actions {
    margin-top: 1.5rem;
    padding-top: 0.25rem;
}

/* Modal recorte logo/banner — Perfil Loja */
.loja-crop-dialog {
    max-width: 640px;
}

.loja-crop-dialog.is-banner {
    max-width: 760px;
}

.loja-crop-modal {
    text-align: left;
    padding: 1.35rem 1.35rem 1.15rem;
}

.loja-crop-modal .pedido-confirm-icon {
    margin-bottom: 0.75rem;
}

.loja-crop-modal .pedido-confirm-title,
.loja-crop-modal .pedido-confirm-text {
    text-align: center;
}

.loja-crop-stage {
    width: 100%;
    height: min(52vh, 420px);
    min-height: 240px;
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
    margin: 0.75rem 0 1rem;
}

.loja-crop-stage img {
    display: block;
    max-width: 100%;
}

.loja-crop-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    padding: 0.65rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
}

.loja-crop-tools label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0;
    white-space: nowrap;
}

.loja-crop-tools input[type="range"] {
    flex: 1;
    accent-color: #e53935;
}

.loja-crop-zoom-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
}

.loja-crop-zoom-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #c62828;
}

.loja-crop-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 auto 0.5rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.78rem;
    font-weight: 700;
}

.loja-crop-modal .pedido-confirm-actions {
    justify-content: stretch;
}

.loja-crop-modal .pedido-confirm-actions .btn {
    flex: 1;
}

.loja-tabs {
    border-bottom: 1px solid #e8ecf1;
    gap: 4px;
}

.loja-tabs .nav-link {
    border: none;
    border-radius: 10px 10px 0 0;
    color: #6b7280;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 0.95rem;
    cursor: pointer;
}

.loja-tabs .nav-link:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.loja-tabs .nav-link.active {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.08);
}

.loja-tab-panel {
    min-height: 120px;
}

.loja-tab-pane {
    display: none;
}

.loja-tab-pane.show.active {
    display: block;
}

.loja-tab-hint {
    font-size: 0.88rem;
    color: #6b7280;
}

.loja-horario-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.loja-horario-row {
    display: grid;
    grid-template-columns: 1.2fr auto 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    background: #f8fafc;
}

.loja-horario-nome {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1f2430;
}

.loja-horario-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    margin: 0;
}

.loja-horario-sep {
    color: #9ca3af;
    font-size: 0.85rem;
}

.loja-horario-row.is-fechado {
    opacity: 0.72;
}

.loja-horario-row.is-fechado .loja-horario-nome {
    color: #9ca3af;
}

@media (max-width: 768px) {
    .loja-horario-row {
        grid-template-columns: 1fr;
    }
}

.panel-placeholder {
    background: var(--bg-light);
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    color: #666;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-danger {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.card-stat {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.25rem;
}

.card-stat h3 {
    font-size: 0.875rem;
    color: #666;
    margin: 0 0 0.5rem;
}

.card-stat .value {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
}

/* Cards resumo pedidos */
.pedidos-resumo {
    margin-bottom: 1.5rem;
}

.pedido-card-resumo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    height: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pedido-card-resumo:hover {
    border-color: #f0b0b0;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.06);
}

.pedido-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fff0f0;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.pedido-card-resumo.tipo-balcao .pedido-card-icon {
    background: #fff3e0;
    color: #ef6c00;
}

.pedido-card-resumo.tipo-mesa .pedido-card-icon {
    background: #e8f5e9;
    color: #2e7d32;
}

.pedido-card-resumo.tipo-delivery .pedido-card-icon {
    background: #e3f2fd;
    color: #1565c0;
}

.pedido-card-resumo.canal .pedido-card-icon {
    background: #f5f5f5;
    color: #555;
}

.pedido-card-resumo.canal.has-value .pedido-card-icon {
    background: #fff0f0;
    color: var(--primary);
}

.pedido-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pedido-card-label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.pedido-card-valor {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.pedido-card-qtd {
    font-size: 0.75rem;
    color: #999;
}

/* Ações pedidos */
.pedido-acoes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-acao {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-acao-view {
    color: #1565c0;
    border-color: #bbdefb;
    background: #e3f2fd;
}

.btn-acao-view:hover {
    background: #1565c0;
    color: #fff;
    border-color: #1565c0;
}

.btn-acao-ok {
    color: #2e7d32;
    border-color: #c8e6c9;
    background: #e8f5e9;
}

.btn-acao-ok:hover {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}

.btn-acao-cancel {
    color: #c62828;
    border-color: #ffcdd2;
    background: #ffebee;
}

.btn-acao-cancel:hover {
    background: #c62828;
    color: #fff;
    border-color: #c62828;
}

/* Modal confirmar finalizar / cancelar pedido */
.pedido-confirm-modal {
    border: 0;
    border-radius: 18px;
    padding: 1.75rem 1.5rem 1.35rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pedido-confirm-close {
    position: absolute;
    top: 14px;
    right: 14px;
}

.pedido-confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0.25rem auto 1rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.pedido-confirm-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
    color: #1f2430;
}

.pedido-confirm-text {
    color: #6b7280;
    margin: 0 0 1rem;
    font-size: 0.95rem;
}

.pedido-confirm-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 1.25rem;
    text-align: left;
}

.pedido-confirm-meta span {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    font-weight: 700;
}

.pedido-confirm-meta strong {
    display: block;
    font-size: 0.88rem;
    color: #111827;
    margin-top: 2px;
    word-break: break-word;
}

.pedido-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.pedido-confirm-actions .btn {
    min-width: 120px;
    border-radius: 10px;
    font-weight: 700;
    padding: 0.6rem 1rem;
}

.btn-pedido-cancel {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
}

.btn-pedido-cancel:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

#modalPedidoConfirm.is-finalizar .pedido-confirm-icon {
    background: #e8f5e9;
    color: #2e7d32;
}

#modalPedidoConfirm.is-finalizar .btn-pedido-ok {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}

#modalPedidoConfirm.is-finalizar .btn-pedido-ok:hover {
    background: #1b5e20;
    border-color: #1b5e20;
}

#modalPedidoConfirm.is-cancelar .pedido-confirm-icon {
    background: #ffebee;
    color: #c62828;
}

#modalPedidoConfirm.is-cancelar .btn-pedido-ok {
    background: #c62828;
    border-color: #c62828;
    color: #fff;
}

#modalPedidoConfirm.is-cancelar .btn-pedido-ok:hover {
    background: #b71c1c;
    border-color: #b71c1c;
}

#modalStaffRemove.is-remover .pedido-confirm-icon {
    background: #ffebee;
    color: #c62828;
}

#modalStaffRemove.is-remover .btn-pedido-ok {
    background: #c62828;
    border-color: #c62828;
    color: #fff;
}

#modalStaffRemove.is-remover .btn-pedido-ok:hover {
    background: #b71c1c;
    border-color: #b71c1c;
}

.staff-remove-meta {
    grid-template-columns: 1fr 2fr;
}

/* Modal novo pagamento */
.pagamento-modal-dialog {
    max-width: 560px;
    width: calc(100% - 2rem);
    margin-left: auto;
    margin-right: auto;
}

.pagamento-modal-dialog.pagamento-modal-wide,
.pagamento-modal-dialog.modal-xl {
    max-width: 980px;
}

.pagamento-modal {
    padding: 28px 28px 24px;
}

.pagamento-modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
}

.pagamento-modal-dialog.pagamento-modal-wide .pagamento-modal-grid {
    grid-template-columns: 1.15fr 0.95fr;
}

.pagamento-tabs {
    border-bottom: 1px solid #e8ecf1;
    gap: 4px;
}

.pagamento-tabs .nav-link {
    border: none;
    border-radius: 10px 10px 0 0;
    color: #6b7280;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 0.9rem;
    cursor: default;
    pointer-events: none;
}

.pagamento-tabs .nav-link.active {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.08);
}

.pagamento-alerta-modal {
    max-width: 420px;
    margin: 0 auto;
    border: 2px solid #dc3545;
    box-shadow: 0 10px 28px rgba(220, 53, 69, 0.18);
}

.pagamento-alerta-icon {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

#modalPagamentoAlerta .btn-pedido-ok {
    background: #fff;
    border: 2px solid #dc3545;
    color: #dc3545;
}

#modalPagamentoAlerta .btn-pedido-ok:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

#modalPagamentoAlerta {
    z-index: 1100;
}

#modalPagamentoPixQr {
    z-index: 1110;
}

.pagamento-pix-qr-modal {
    max-width: 420px;
    margin: 0 auto;
}

.pagamento-pix-qr-valor {
    margin: 0 0 14px;
    font-size: 1.45rem;
    font-weight: 800;
    color: #dc3545;
    letter-spacing: -0.02em;
}

.pagamento-pix-qr-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 240px;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    background: #fff;
}

.pagamento-pix-qr-box canvas,
.pagamento-pix-qr-box img,
.pagamento-pix-qr-target {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.pagamento-pix-qr-target {
    width: 220px;
    height: 220px;
}

.pagamento-pix-qr-box.is-expired {
    opacity: 0.45;
    filter: grayscale(0.4);
}

.pagamento-pix-timer {
    text-align: left;
}

.pagamento-pix-timer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #4a5568;
}

.pagamento-pix-timer-row strong {
    font-variant-numeric: tabular-nums;
    color: #1f2430;
}

.pagamento-pix-timer-row.is-expired strong {
    color: #dc3545;
}

.pagamento-pix-timer-track {
    height: 6px;
    border-radius: 999px;
    background: #eef2f7;
    overflow: hidden;
}

.pagamento-pix-timer-bar {
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #dc3545, #f07178);
    transform-origin: left center;
    transition: width 0.2s linear;
}

#pagPixConfirmarManual {
    background: #fff;
    border: 2px solid #dc3545;
    color: #dc3545;
}

#pagPixConfirmarManual:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.pag-entregador-select-lista {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.pagamento-card {
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    background: #fff;
    padding: 14px 14px 12px;
    min-height: 120px;
}

.pagamento-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.pagamento-card-head h6 {
    margin: 0;
    font-weight: 800;
    color: #1f2430;
}

.pagamento-card-actions {
    display: flex;
    gap: 6px;
}

.pag-pedidos-lista {
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pag-pedido-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    background: #f8fafc;
    margin: 0;
    cursor: pointer;
}

.pag-pedido-item:hover {
    background: #f1f5f9;
}

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

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

.pag-pedido-info small {
    color: #6b7280;
}

.pag-pedido-valor {
    color: #dc3545;
    white-space: nowrap;
}

    .pag-pedidos-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eef2f7;
    font-size: 0.9rem;
}

.pag-plano-box {
    border: 1px solid #f3d6dc;
    background: #fff7f8;
    border-radius: 14px;
    padding: 12px 14px;
}

.pag-plano-box-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.pag-plano-box-head strong {
    color: #1f2430;
}

.pag-plano-percent {
    display: inline-flex;
    align-items: center;
    background: #dc3545;
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    border-radius: 999px;
    padding: 2px 10px;
}

.pag-plano-help {
    color: #6b7280;
    font-size: 0.82rem;
}

.pag-plano-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pag-plano-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.88rem;
    color: #4b5563;
}

.pag-plano-list li.pag-plano-liquido {
    padding-top: 6px;
    border-top: 1px dashed #f3d6dc;
    color: #1f2430;
    font-weight: 700;
}

.fin-cash-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid #f3d6dc;
    background: #fff7f8;
    border-radius: 14px;
    color: #4b5563;
}

.fin-cash-banner i {
    color: #dc3545;
    font-size: 1.15rem;
    margin-top: 2px;
}

.fin-cash-banner p {
    font-size: 0.88rem;
}

.fin-row-dinheiro {
    background: #fafafa;
}

.fin-pag-badges {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.fin-pag-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0.28em 0.72em;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.fin-pag-badge.is-dinheiro {
    background: #6c757d;
    color: #fff;
}

.fin-pag-badge.is-pix {
    background: #32bcad;
    color: #fff;
}

.fin-pag-badge.is-cartao {
    background: #2563eb;
    color: #fff;
}

.fin-pag-badge.is-outro {
    background: #e2e8f0;
    color: #334155;
}

@media (max-width: 900px) {
    .pagamento-modal-dialog.pagamento-modal-wide .pagamento-modal-grid {
        grid-template-columns: 1fr;
    }
}

.pagamento-modal-icon {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.pagamento-modal-form .form-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #4a5568;
    margin-bottom: 6px;
}

.pag-funcionario-picker {
    position: relative;
}

.pag-funcionario-lista {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.pag-funcionario-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
}

.pag-funcionario-item:hover {
    background: #f8f9fb;
}

.pag-funcionario-item-info strong {
    display: block;
    font-size: 0.92rem;
    color: #1f2430;
}

.pag-funcionario-item-info small {
    color: #6b7280;
}

.pag-funcionario-empty {
    padding: 14px;
    text-align: center;
    color: #6b7280;
    font-size: 0.88rem;
}

.pag-funcionario-selecionado {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-top: 8px;
    background: #f8f9fb;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
}

.pag-funcionario-selecionado .clientes-avatar {
    flex-shrink: 0;
}

/* Dashboard (estilo Gestor Web) */
.dashboard-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    color: #1f2430;
}

.dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.dashboard-hero h1 {
    margin: 0 0 6px;
    font-size: 1.55rem;
    font-weight: 800;
    color: #5d2e46;
    letter-spacing: -0.02em;
}

.dashboard-refresh {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e4d4dc;
    background: #fff;
    color: #5d2e46;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
}

.dashboard-refresh:hover {
    background: #f8eef3;
    color: #5d2e46;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.dashboard-kpi-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dashboard-kpi-period {
    font-size: 0.78rem;
    font-weight: 700;
    color: #5d2e46;
    padding: 2px 2px 6px;
}

.dashboard-kpi-card {
    background: #fff;
    border: 1px solid #e7e7ee;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(31, 36, 48, 0.03);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-kpi-card.clients {
    border-color: #f0d6e0;
    background: linear-gradient(180deg, #fff 0%, #fff8fb 100%);
}

.dashboard-kpi-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
}

.dashboard-kpi-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.15;
}

.dashboard-kpi-detail {
    font-size: 0.78rem;
    font-weight: 600;
    color: #5d2e46;
}

.dashboard-main-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.dashboard-donuts {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 14px;
}

.dashboard-panel {
    background: #fff;
    border: 1px solid #e7e7ee;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(31, 36, 48, 0.04);
}

.dashboard-panel h2 {
    margin: 0 0 8px;
    font-size: 0.98rem;
    font-weight: 800;
    color: #1f2430;
}

.donut-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 8px;
    align-items: center;
}

.donut-wrap {
    position: relative;
    min-height: 210px;
}

.donut-wrap canvas {
    width: 100% !important;
    height: 210px !important;
}

.donut-central {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding-bottom: 8px;
}

.donut-central strong {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.donut-central span {
    margin-top: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.donut-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donut-legend li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
    color: #64748b;
}

.donut-legend strong {
    color: #111827;
    font-weight: 800;
}

.notas-mini {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.notas-mini > div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 0.8rem;
}

.notas-mini span {
    color: #64748b;
    font-weight: 600;
}

.notas-mini strong {
    color: #111827;
}

.dashboard-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.dashboard-chart-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}

.dashboard-chart-header h2 {
    margin: 0;
}

.dashboard-chart-header span {
    font-size: 0.78rem;
    color: #6b7280;
    font-weight: 600;
}

.dashboard-chart-body {
    position: relative;
    height: 280px;
}

.dashboard-pedidos-cards {
    background: #fff;
    border: 1px solid #e7e7ee;
    border-radius: 14px;
    padding: 18px 18px 8px;
    box-shadow: 0 2px 12px rgba(31, 36, 48, 0.04);
}

@media (max-width: 1200px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .dashboard-kpi-col {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .dashboard-kpi-period {
        grid-column: 1 / -1;
    }

    .dashboard-donuts,
    .dashboard-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pedido-confirm-meta {
        grid-template-columns: 1fr;
    }

    .donut-row {
        grid-template-columns: 1fr;
    }

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

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
        width: 100%;
    }
}

/* Financeiro — Fluxo / Valores / Conta / Desempenho */
.fin-page {
    width: 100%;
    max-width: 1400px;
}

.fin-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 1.25rem;
}

.fin-hero h1 {
    margin: 0 0 4px;
    font-size: 1.55rem;
    font-weight: 800;
    color: #1f2430;
    letter-spacing: -0.02em;
}

.fin-hero p {
    margin: 0;
    color: #6b7280;
    font-size: 0.92rem;
}

.fin-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    background: #fff;
    border: 1px solid #e7e7ee;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 2px 10px rgba(31, 36, 48, 0.03);
}

.fin-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fin-filter-field label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
}

.fin-filter-field .form-control {
    min-width: 150px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.fin-filter-btn {
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.9rem;
}

.fin-kpi {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid #e7e7ee;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    height: 100%;
    box-shadow: 0 2px 10px rgba(31, 36, 48, 0.03);
}

.fin-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bg-soft-red { background: #fff0f0; color: #c62828; }
.bg-soft-green { background: #e8f5e9; color: #2e7d32; }
.bg-soft-blue { background: #e3f2fd; color: #1565c0; }
.bg-soft-orange { background: #fff3e0; color: #ef6c00; }
.bg-soft-plum { background: #f8eef3; color: #5d2e46; }

.fin-kpi-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
}

.fin-kpi-value {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.fin-kpi-value.is-money {
    font-size: 1.2rem;
}

.fin-kpi-value.is-text {
    font-size: 1rem;
    word-break: break-word;
}

.fin-section {
    margin-bottom: 1.5rem;
}

.fin-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0.75rem;
}

.fin-section-head h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1f2430;
}

.fin-section-head span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
}

.fin-panel {
    background: #fff;
    border: 1px solid #e7e7ee;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(31, 36, 48, 0.04);
}

.fin-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #64748b;
    font-weight: 700;
    border-bottom-width: 1px;
    background: #f8fafc;
}

.fin-table tbody tr:hover {
    background: #fff8f8;
}

.fin-pay-card {
    background: #fff;
    border: 1px solid #e7e7ee;
    border-radius: 12px;
    padding: 1rem;
    height: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fin-pay-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
}

.fin-pay-card strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: #111827;
}

.fin-pay-card span:last-child {
    font-size: 0.75rem;
    color: #94a3b8;
}

.fin-empty-alert {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
    color: #92400e;
}

.fin-empty-alert i {
    font-size: 1.4rem;
    margin-top: 2px;
}

.fin-empty-alert strong {
    display: block;
    margin-bottom: 2px;
}

.fin-empty-alert p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.fin-status-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.fin-status-list li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
}

.fin-status-list strong {
    color: #111827;
    font-weight: 800;
}

.fin-chart-sm {
    height: 200px;
    position: relative;
}

.fin-chart-lg {
    height: 280px;
    position: relative;
}

.fin-tipo-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

.fin-tipo-pill.tipo-balcao { background: #fff3e0; color: #ef6c00; }
.fin-tipo-pill.tipo-delivery { background: #e3f2fd; color: #1565c0; }
.fin-tipo-pill.tipo-mesa { background: #e8f5e9; color: #2e7d32; }

.fin-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.fin-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: #cbd5e1;
    flex: 1;
    max-width: 100px;
}

.fin-progress-bar.tipo-balcao { background: #ef6c00; }
.fin-progress-bar.tipo-delivery { background: #1565c0; }
.fin-progress-bar.tipo-mesa { background: #2e7d32; }

.fin-progress span {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    min-width: 36px;
}

@media (max-width: 768px) {
    .fin-filter {
        width: 100%;
    }

    .fin-filter-field,
    .fin-filter-field .form-control {
        width: 100%;
        min-width: 0;
    }

    .fin-filter-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Clientes */
.clientes-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e7e7ee;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #5d2e46;
}

.clientes-panel {
    padding-top: 14px;
}

.clientes-toolbar {
    display: flex;
    gap: 12px;
}

.clientes-search {
    position: relative;
    flex: 1;
}

.clientes-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.clientes-search .form-control {
    padding-left: 2.4rem;
    border-radius: 10px;
    border-color: #e5e7eb;
    min-height: 44px;
}

.clientes-search .form-control:focus {
    border-color: #f0b0b0;
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.08);
}

.clientes-id {
    font-weight: 700;
    color: #64748b;
}

.clientes-nome {
    display: flex;
    align-items: center;
    gap: 10px;
}

.clientes-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff0f0;
    color: #c62828;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.clientes-contato {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.9rem;
}

.clientes-contato i {
    margin-right: 4px;
    color: #94a3b8;
}

.clientes-contato small {
    color: #64748b;
}

/* Conta bancária */
.conta-destino-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 12px;
    padding: 14px 16px;
}

.conta-destino-box i {
    font-size: 1.35rem;
    margin-top: 2px;
}

.conta-destino-box strong {
    display: block;
    margin-bottom: 2px;
}

.conta-destino-box p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.conta-destino-box.ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.conta-destino-box.warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.conta-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.conta-info-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 10px;
}

.conta-info-list span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
}

.conta-info-list strong {
    color: #111827;
    font-size: 0.92rem;
    text-align: right;
    word-break: break-word;
}

.conta-form .form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
}

.conta-tabs {
    border-bottom: 1px solid #e7e7ee;
    gap: 4px;
}

.conta-tabs .nav-link {
    border: 0;
    border-radius: 10px 10px 0 0;
    color: #6b7280;
    font-weight: 700;
    padding: 0.7rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.conta-tabs .nav-link:hover {
    color: #5d2e46;
    background: #f8eef3;
}

.conta-tabs .nav-link.active {
    color: #fff;
    background: var(--primary, #ff0000);
}

/* Cardápio — itens, categorias, acompanhamentos */
.cardapio-page .cardapio-btn-top {
    border-radius: 10px;
    font-weight: 700;
}

.cardapio-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #eef2f7;
    color: #64748b;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    padding: 0.85rem 0.75rem;
}

.cardapio-table tbody td {
    border-color: #f1f5f9;
    padding: 0.85rem 0.75rem;
    vertical-align: middle;
}

.cardapio-row-pausado {
    opacity: 0.72;
}

.cardapio-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.cardapio-badge-ativo {
    background: #ecfdf5;
    color: #047857;
}

.cardapio-badge-pausado {
    background: #fef2f2;
    color: #b91c1c;
}

.btn-acao-pause {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

.btn-acao-pause:hover {
    background: #ffedd5;
    color: #9a3412;
}

.cardapio-acomp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cardapio-acomp-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
}

.cardapio-modal .cardapio-modal-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 1rem;
}

.cardapio-modal .cardapio-modal-meta span {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #94a3b8;
    font-weight: 700;
}

.cardapio-modal .cardapio-modal-meta strong {
    display: block;
    font-size: 0.9rem;
    color: #111827;
    margin-top: 2px;
}

.cardapio-modal-desc {
    color: #6b7280;
    font-size: 0.92rem;
    margin: 0 0 1rem;
}

.cardapio-modal-list ul {
    color: #374151;
    font-size: 0.92rem;
}

.cardapio-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 1rem;
}

.cardapio-toolbar .clientes-search {
    flex: 1;
    min-width: 240px;
    max-width: 420px;
}

.cardapio-toolbar-meta {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 600;
}

.cardapio-confirm-icon {
    background: #fef2f2 !important;
    color: #dc2626 !important;
}

.cardapio-confirm-nome {
    margin: 0 0 1.25rem;
    padding: 0.65rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    font-weight: 700;
    color: #1f2937;
    font-size: 0.95rem;
}

.cardapio-confirm-modal .pedido-confirm-actions .btn-danger {
    font-weight: 700;
}

/* Cardápio — catálogo (layout legado) */
.cardapio-catalogo {
    padding: 0;
}

.cardapio-catalogo-title {
    color: #6b7280;
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.cardapio-catalogo-tabs {
    border-bottom: 1px solid #e5e7eb;
    gap: 0;
    margin-bottom: 0;
}

.cardapio-catalogo-tabs .nav-link {
    border: 0;
    border-radius: 0;
    color: #374151;
    font-weight: 500;
    padding: 0.75rem 1rem;
    text-transform: none;
}

.cardapio-catalogo-tabs .nav-link.active {
    background: transparent;
    border-bottom: 2px solid var(--primary, #ff0000);
    color: var(--primary, #ff0000);
}

.cardapio-catalogo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.cardapio-catalogo-actions .btn-danger {
    border-radius: 4px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    text-transform: none;
}

.cardapio-catalogo-filtros {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
}

.cardapio-search-wrap {
    align-items: center;
    display: flex;
    flex: 1 1 280px;
    gap: 0.5rem;
    max-width: 420px;
    position: relative;
}

.cardapio-search-wrap i {
    color: #9ca3af;
    left: 0.75rem;
    position: absolute;
    z-index: 1;
}

.cardapio-search-wrap .form-control {
    border-color: #d1d5db;
    border-radius: 4px;
    padding-left: 2.25rem;
}

.cardapio-filtro-categoria {
    border-color: #d1d5db;
    border-radius: 4px;
    max-width: 220px;
    min-width: 180px;
}

.cardapio-catalogo-table-wrap {
    margin-top: 1.5rem;
}

.cardapio-catalogo-table thead th {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.85rem 0.75rem;
    text-transform: none;
}

.cardapio-catalogo-table tbody td {
    border-color: #f3f4f6;
    padding: 0.65rem 0.75rem;
    vertical-align: middle;
}

.cardapio-item-thumb {
    border-radius: 10px;
    height: 50px;
    object-fit: cover;
    width: 50px;
}

.cardapio-item-thumb-empty {
    align-items: center;
    background: #eee;
    color: #777;
    display: inline-flex;
    font-size: 0.72rem;
    justify-content: center;
    text-align: center;
}

.cardapio-desc-status {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 2px;
}

.cardapio-desc-status.is-ativo {
    color: #2e7d32;
}

.cardapio-desc-status.is-pausado {
    color: #ed6c02;
}

.cardapio-status-toggle {
    align-items: center;
    color: #555 !important;
    display: inline-flex;
    flex-direction: column;
    font-size: 0.75rem;
    gap: 2px;
    text-decoration: none !important;
}

.cardapio-status-toggle i {
    color: #555;
    font-size: 1.1rem;
}

.cardapio-catalogo-footer {
    margin-top: 0.75rem;
    text-align: center;
}

.cardapio-catalogo-count,
.cardapio-catalogo-range {
    color: #374151;
    font-size: 0.875rem;
}

.cardapio-pagination {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
    justify-content: center;
}

.cardapio-pagination .btn-link {
    color: var(--primary, #ff0000);
    font-size: 1.1rem;
    text-decoration: none;
}

.cardapio-pagination .btn-link:disabled {
    color: #d1d5db;
}

/* Modal cadastro produto */
.cardapio-prod-modal-dialog {
    margin: 1rem auto;
    max-height: calc(100vh - 2rem);
}

.cardapio-prod-modal-dialog .modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 2rem);
}

.cardapio-prod-modal-dialog form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.cardapio-prod-modal {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
}

.cardapio-prod-modal-head {
    border-bottom: 0;
    flex-shrink: 0;
    padding: 1.25rem 1.5rem 0.5rem;
    position: relative;
    text-align: center;
}

.cardapio-prod-modal-title {
    color: var(--primary, #ff0000);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.cardapio-prod-modal-close {
    filter: invert(18%) sepia(95%) saturate(7452%) hue-rotate(358deg) brightness(95%);
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.cardapio-prod-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.75rem 1.5rem 1.75rem;
}

.cardapio-prod-step {
    padding-bottom: 0.25rem;
}

.cardapio-prod-btn-next {
    margin-bottom: 0.25rem;
}

.cardapio-prod-modal-body .form-label {
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.cardapio-prod-modal-body .form-control,
.cardapio-prod-modal-body .form-select {
    border-color: #d1d5db;
    border-radius: 4px;
    font-size: 0.875rem;
}

.cardapio-codbarras-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.cardapio-btn-gerar-codbarras {
    border-color: #d1d5db;
    color: #374151;
    font-size: 1rem;
    padding-inline: 0.65rem;
}

.cardapio-btn-gerar-codbarras:hover,
.cardapio-btn-gerar-codbarras:focus {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: var(--primary, #ff0000);
}

.cardapio-produto-nome-wrap {
    position: relative;
}

.cardapio-sugestoes-dropdown {
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    left: 0;
    margin-top: 0.35rem;
    max-height: 220px;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1080;
}

.cardapio-sugestoes-dropdown .cardapio-sugestao-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid #f3f4f6;
    color: #111827;
    cursor: pointer;
    display: block;
    padding: 0.65rem 0.85rem;
    text-align: left;
    width: 100%;
}

.cardapio-sugestoes-dropdown .cardapio-sugestao-item:last-child {
    border-bottom: 0;
}

.cardapio-sugestoes-dropdown .cardapio-sugestao-item:hover,
.cardapio-sugestoes-dropdown .cardapio-sugestao-item:focus,
.cardapio-sugestoes-dropdown .cardapio-sugestao-item.active {
    background: #fef2f2;
    color: var(--primary, #ff0000);
    outline: none;
}

.cardapio-sugestoes-dropdown .cardapio-sugestao-nome {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
}

.cardapio-sugestoes-dropdown .cardapio-sugestao-detalhe {
    color: #6b7280;
    display: block;
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.cardapio-sugestoes-empty {
    color: #6b7280;
    font-size: 0.8125rem;
    padding: 0.75rem 0.85rem;
}

.cardapio-prod-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cardapio-prod-step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.cardapio-prod-step-actions .btn-danger,
.cardapio-prod-btn-next {
    border-radius: 4px;
    font-weight: 600;
    min-width: 120px;
    text-transform: none;
}

.cardapio-obrigatorio {
    color: #111827;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.cardapio-obrigatorio span {
    color: #111827;
    font-weight: 700;
}

.cardapio-label-obrigatorio::after {
    color: #111827;
    content: ' *';
    font-weight: 700;
}

.cardapio-fiscal-hint-wrap {
    position: relative;
}

.cardapio-fiscal-hint {
    background: #fff;
    border: 1px solid #dc3545;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.18);
    color: #111827;
    font-size: 0.75rem;
    line-height: 1.35;
    max-width: 220px;
    opacity: 0;
    padding: 0.45rem 0.65rem;
    pointer-events: none;
    position: absolute;
    right: 0.35rem;
    top: 0.2rem;
    transform: translateY(calc(-100% - 6px));
    transition: opacity 0.15s ease;
    visibility: hidden;
    z-index: 6;
}

.cardapio-fiscal-hint::after {
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #dc3545;
    bottom: -7px;
    content: '';
    height: 0;
    position: absolute;
    right: 14px;
    width: 0;
}

.cardapio-fiscal-hint.is-visible {
    opacity: 1;
    visibility: visible;
}

.cardapio-switch-pausado,
.cardapio-opcoes-switch .form-check {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.cardapio-opcoes-switch {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cardapio-galeria-dropzone {
    align-items: center;
    background: #fafafa;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    min-height: 160px;
    padding: 1.5rem;
    text-align: center;
}

.cardapio-galeria-dropzone i {
    color: #94a3b8;
    font-size: 2rem;
}

.cardapio-galeria-dropzone.has-images {
    min-height: 80px;
}

.cardapio-galeria-preview img {
    border-radius: 8px;
    max-height: 120px;
    object-fit: cover;
    width: 100%;
}

.cardapio-pdv-placeholder {
    background: #fff;
    border-radius: 8px;
}

/* Cardápio — categorias */
.cardapio-categorias {
    padding: 0;
}

.cardapio-categorias-head {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.cardapio-categorias-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cardapio-btn-atualizar {
    border-radius: 4px;
    font-weight: 600;
    text-transform: none;
}

.cardapio-categorias-actions .btn-danger {
    border-radius: 4px;
    font-weight: 600;
    text-transform: none;
}

.cardapio-categorias-table-wrap {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
}

.cardapio-categorias-table thead th {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.85rem 0.75rem;
    text-transform: none;
}

.cardapio-categorias-table tbody td {
    border-color: #f3f4f6;
    padding: 0.75rem;
    vertical-align: middle;
}

.cardapio-cat-foto {
    border-radius: 8px;
    height: 40px;
    object-fit: cover;
    width: 40px;
}

.cardapio-cat-produtos-badge {
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    color: #374151;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 600;
    justify-content: center;
    min-width: 28px;
    padding: 0.1rem 0.45rem;
}

.cardapio-cat-produtos-badge.has-items {
    border-color: var(--primary, #ff0000);
    color: var(--primary, #ff0000);
}

.cardapio-cat-ativo {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.65rem;
}

.cardapio-cat-ativo.is-ativo {
    border-color: #86efac;
    color: #15803d;
}

.cardapio-cat-ativo.is-inativo {
    color: #6b7280;
}

.cardapio-categorias-total {
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.cardapio-cat-modal-dialog {
    max-width: 400px;
}

.cardapio-cat-modal {
    border: 0;
    border-radius: 8px;
}

.cardapio-cat-modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.cardapio-cat-input {
    border-color: #d1d5db;
    border-radius: 4px;
    padding: 0.65rem 0.85rem;
}

.cardapio-cat-input::placeholder {
    color: #9ca3af;
}

.cardapio-cat-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cardapio-cat-modal-actions .btn {
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    min-width: 110px;
    padding: 0.45rem 1rem;
    text-transform: uppercase;
}

.cardapio-cat-modal-actions .btn-outline-danger {
    background: #fff;
    color: var(--primary, #ff0000);
    border-color: var(--primary, #ff0000);
}

.cardapio-cat-modal-actions .btn-outline-danger:hover,
.cardapio-cat-modal-actions .btn-outline-danger:focus,
.cardapio-cat-modal-actions .btn-outline-danger:active {
    background: #fff1f2;
    border-color: var(--primary, #ff0000);
    color: var(--primary, #ff0000);
}

.cardapio-cat-modal-actions .btn-danger {
    background: var(--primary, #ff0000);
    border-color: var(--primary, #ff0000);
}

.cardapio-cat-foto-upload {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
}

.cardapio-cat-foto-preview {
    align-items: center;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    height: 72px;
    justify-content: center;
    min-width: 72px;
    overflow: hidden;
    width: 72px;
}

.cardapio-cat-foto-preview img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

/* Cardápio — acompanhamentos */
.cardapio-acompanhamentos {
    padding: 0;
}

.cardapio-acomp-search-wrap {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    max-width: 480px;
    position: relative;
}

.cardapio-acomp-search-wrap i {
    color: #9ca3af;
    left: 0.75rem;
    position: absolute;
    z-index: 1;
}

.cardapio-acomp-search-wrap .form-control {
    border-color: #d1d5db;
    border-radius: 4px;
    padding-left: 2.25rem;
}

.cardapio-acomp-modal {
    border: 0;
    border-radius: 8px;
}

.cardapio-acomp-close {
    filter: invert(18%) sepia(95%) saturate(7452%) hue-rotate(358deg) brightness(95%);
}

.cardapio-acomp-sugestoes {
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-bottom: 1rem;
    max-height: 180px;
    overflow-y: auto;
}

.cardapio-acomp-sugestao-item {
    background: #fff;
    border: 0;
    border-bottom: 1px solid #f3f4f6;
    display: block;
    padding: 0.65rem 0.85rem;
    text-align: left;
    width: 100%;
}

.cardapio-acomp-sugestao-item:hover {
    background: #fef2f2;
}

.cardapio-acomp-sugestao-item strong {
    display: block;
    font-size: 0.875rem;
}

.cardapio-acomp-sugestao-item small {
    color: #6b7280;
}

.cardapio-acomp-produto-selecionado {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
}

.cardapio-acomp-dropzone {
    border: 1px dashed #cbd5e1;
    border-radius: 4px;
    min-height: 96px;
    padding: 1rem;
    background: #fcfcfc;
}

.cardapio-acomp-chip {
    align-items: center;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    display: inline-flex;
    font-size: 0.8rem;
    gap: 0.25rem;
    margin: 0 0.35rem 0.35rem 0;
    padding: 0.2rem 0.55rem;
}

.cardapio-acomp-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.cardapio-acomp-modal-actions .btn {
    border-radius: 4px;
    font-weight: 600;
    min-width: 110px;
    text-transform: none;
}

.cardapio-acomp-modal-actions .btn-danger {
    background: var(--primary, #ff0000);
    border-color: var(--primary, #ff0000);
}

/* Perfil — Acesso */
.acesso-page-header {
    margin-bottom: 1.25rem;
}

.acesso-page-header p {
    font-size: 0.9rem;
}

.acesso-card {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    max-width: 760px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.acesso-card-title {
    align-items: center;
    color: var(--primary, #ff0000);
    display: flex;
    font-size: 0.95rem;
    font-weight: 700;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.acesso-card-title i {
    font-size: 1.1rem;
}

.acesso-card-seguranca {
    margin-bottom: 0;
}

.acesso-seguranca-text {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.acesso-btn-trocar-senha {
    font-weight: 600;
}

.acesso-btn-trocar-senha:hover,
.acesso-btn-trocar-senha:focus {
    background: #fff1f2;
    border-color: var(--primary, #ff0000);
    color: var(--primary, #ff0000);
}

.acesso-form-actions {
    border-top: 1px solid #eef2f7;
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
}

/* Horários */
.horarios-page-header {
    margin-bottom: 1.25rem;
}

.horarios-page-header p {
    font-size: 0.9rem;
}

.horarios-table-wrap {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.horarios-table {
    margin-bottom: 0;
}

.horarios-table thead th {
    background: #f8fafc;
    border-bottom: 1px solid #e8ecf1;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.horarios-table tbody td {
    border-bottom: 1px solid #f1f5f9;
    color: #1f2430;
    font-size: 0.92rem;
    vertical-align: middle;
}

.horarios-table tbody tr:last-child td {
    border-bottom: 0;
}

.horarios-table tbody tr.is-hoje {
    background: #fff7f7;
}

.horarios-dia-nome {
    font-weight: 700;
}

.horarios-hoje-badge {
    background: rgba(255, 0, 0, 0.08);
    border-radius: 999px;
    color: var(--primary, #ff0000);
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    margin-left: 0.45rem;
    padding: 0.12rem 0.45rem;
    text-transform: uppercase;
    vertical-align: middle;
}

.horarios-ativo-badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.18rem 0.55rem;
}

.horarios-ativo-badge.is-ativo {
    background: #ecfdf3;
    color: #15803d;
}

.horarios-ativo-badge.is-inativo {
    background: #f3f4f6;
    color: #6b7280;
}

.horarios-modal {
    border: 0;
    border-radius: 14px;
}

.horarios-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.horarios-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.horarios-modal-actions .btn {
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    min-width: 110px;
    padding: 0.45rem 1rem;
    text-transform: uppercase;
}

.horarios-modal-actions .btn-outline-danger {
    background: #fff;
    border-color: var(--primary, #ff0000);
    color: var(--primary, #ff0000);
}

.horarios-modal-actions .btn-outline-danger:hover,
.horarios-modal-actions .btn-outline-danger:focus,
.horarios-modal-actions .btn-outline-danger:active {
    background: #fff1f2;
    border-color: var(--primary, #ff0000);
    color: var(--primary, #ff0000);
}

.horario-edit-horas.is-fechado {
    opacity: 0.55;
    pointer-events: none;
}

/* Troca de senha — modal 2 etapas (tema claro) */
body.recover-open {
    overflow: hidden;
}

.recover-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
}

.recover-overlay.d-none {
    display: none !important;
}

.recover-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    color: #1f2430;
    border-radius: 16px;
    padding: 28px 24px 24px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
    border: 1px solid #e8ecf1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recover-brand {
    font-size: 22px;
    font-weight: 800;
    color: #ea1d2c;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.recover-card h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #1f2430;
}

.recover-sub {
    margin: 0 0 8px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.45;
}

.recover-sub strong {
    color: #1f2430;
    font-weight: 600;
}

.recover-alert-msg {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
}

.recover-alert-msg.is-error {
    background: #fef2f2;
    color: #b91c1c;
}

.recover-alert-msg.is-success {
    background: #fef3c7;
    color: #92400e;
}

.recover-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 8px 0 4px;
}

.recover-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #e8ecf1;
    background: #f8fafc;
    color: #1f2430;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.recover-option.selected {
    border-color: var(--primary, #ea1d2c);
    background: #fff7f7;
}

.recover-option.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.recover-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    position: relative;
}

.recover-option.selected .recover-radio {
    border-color: var(--primary, #ea1d2c);
}

.recover-option.selected .recover-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--primary, #ea1d2c);
}

.recover-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.recover-option-text strong {
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recover-option-text small {
    font-size: 11px;
    color: #9ca3af;
}

.recover-btn-primary {
    margin-top: 8px;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    background: var(--primary, #ea1d2c);
    color: #fff;
    cursor: pointer;
}

.recover-btn-primary:hover:not(:disabled) {
    background: #c91825;
}

.recover-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.recover-link {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px;
    align-self: center;
}

.recover-link:hover {
    color: var(--primary, #ea1d2c);
}

.recover-otp {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin: 8px 0 4px;
}

.recover-otp-input {
    width: 100%;
    aspect-ratio: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1f2430;
    background: #fff;
    border: 1.5px solid #e8ecf1;
    border-radius: 10px;
    outline: none;
}

.recover-otp-input:focus,
.recover-otp-input.filled {
    border-color: var(--primary, #ea1d2c);
}

.recover-resend {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    cursor: pointer;
    padding: 4px;
    text-align: left;
}

.recover-resend:hover:not(:disabled) {
    color: var(--primary, #ea1d2c);
}

.recover-resend:disabled {
    cursor: default;
}

.recover-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 650;
}

.recover-alert span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #92400e;
    color: #fef3c7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}

.recover-field input {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1.5px solid #e8ecf1;
    border-radius: 10px;
    color: #1f2430;
    padding: 14px;
    font-size: 15px;
    outline: none;
}

.recover-field input:focus {
    border-color: var(--primary, #ea1d2c);
}

.recover-field input::placeholder {
    color: #9ca3af;
}

.recover-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.recover-step.d-none {
    display: none !important;
}

/* Formulário staff — rodapé fixo (atendentes / funcionários) */
.staff-form-page {
    padding-bottom: 88px;
}

.staff-form-footer {
    position: fixed;
    left: var(--sidebar-width, 240px);
    right: 0;
    bottom: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-top: 1px solid #e8ecf1;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

.staff-form-footer .btn {
    border-radius: 10px;
    font-weight: 700;
    min-width: 120px;
}

.staff-seguranca-card {
    padding: 1.25rem 1.5rem;
}

.staff-seguranca-head {
    align-items: center;
    color: var(--primary, #ea1d2c);
    display: flex;
    font-size: 0.95rem;
    font-weight: 700;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.staff-seguranca-head i {
    font-size: 1.1rem;
}

.staff-seguranca-text {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.staff-seguranca-text strong {
    color: #1f2430;
}

body.sidebar-collapsed .staff-form-footer {
    left: var(--sidebar-collapsed, 60px);
}

@media (max-width: 991.98px) {
    .staff-form-footer {
        left: 0;
    }
}

/* Gestor Web Delivery */
.gestor-login-hero {
    background: linear-gradient(135deg, #c20512 0%, #ff0000 55%, #ea580c 100%);
    min-height: 100vh;
}

.gestor-login-hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    padding: 3rem;
    max-width: 420px;
}

.app-topbar-subtitle {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-soft);
}

.app-topbar-logo-text {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.gestor-stat-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--card-soft);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.gestor-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.gestor-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gestor-stat-value {
    display: block;
    font-size: 1.75rem;
    line-height: 1.2;
    color: #0f172a;
}

.gestor-fatura-stat-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    height: 100%;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.gestor-fatura-stat-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    color: inherit;
}

.gestor-fatura-stat-card.is-active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.gestor-fatura-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.gestor-fatura-stat-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}

.gestor-fatura-stat-value {
    display: block;
    font-size: 1.5rem;
    line-height: 1.1;
    font-weight: 700;
    color: #0f172a;
}

.gestor-fatura-stat-total .gestor-fatura-stat-icon {
    background: #f1f5f9;
    color: #475569;
}

.gestor-fatura-stat-approved .gestor-fatura-stat-icon {
    background: #dcfce7;
    color: #15803d;
}

.gestor-fatura-stat-pending .gestor-fatura-stat-icon {
    background: #fef3c7;
    color: #b45309;
}

.gestor-fatura-stat-process .gestor-fatura-stat-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.gestor-fatura-stat-rejected .gestor-fatura-stat-icon {
    background: #fee2e2;
    color: #b91c1c;
}

.gestor-fatura-stat-cancelled .gestor-fatura-stat-icon {
    background: #f1f5f9;
    color: #64748b;
}

.gestor-fatura-stat-approved.is-active {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.gestor-fatura-stat-pending.is-active {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.gestor-fatura-stat-process.is-active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.gestor-fatura-stat-rejected.is-active {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.gestor-fatura-stat-cancelled.is-active {
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.gestor-segmento-section {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1.25rem;
}

.gestor-segmento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-soft);
}

.gestor-loja-card {
    display: flex;
    flex-direction: column;
    background: var(--card-soft);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gestor-loja-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    border-color: var(--accent-border);
}

.gestor-loja-card-logo {
    height: 88px;
    background: #fffbf5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.gestor-loja-card-logo img {
    max-height: 64px;
    max-width: 100%;
    object-fit: contain;
}

.gestor-loja-card-placeholder,
.gestor-loja-detail-logo .gestor-loja-card-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff0000, #ea580c);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.gestor-loja-card-body {
    padding: 0.875rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.gestor-loja-card-nome {
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gestor-loja-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.gestor-loja-card-status {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gestor-loja-card-status.ativo { color: #15803d; }
.gestor-loja-card-status.inativo { color: #64748b; }

.gestor-filtros-bar {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1rem;
}

.gestor-segmento-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gestor-segmento-card:hover {
    border-color: var(--accent-border);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.gestor-segmento-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #fef2f2;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.gestor-loja-detail-banner {
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
}

.gestor-loja-detail-logo img,
.gestor-loja-detail-logo .gestor-loja-card-placeholder {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
}

.gestor-detail-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #334155;
}

.gestor-loja-tabs .nav-link {
    color: #64748b;
    font-weight: 600;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.65rem 1rem;
}

.gestor-loja-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

.gestor-loja-tab-content {
    min-height: 200px;
}

.gestor-loja-form .form-control:disabled,
.gestor-loja-form .form-control[readonly] {
    background: #f8fafc;
    color: #64748b;
}

.gestor-loja-horarios {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gestor-loja-horario-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) auto 120px auto 120px;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.gestor-loja-horario-row.is-fechado {
    opacity: 0.65;
    background: #f8fafc;
}

.gestor-loja-horario-nome {
    font-weight: 600;
    color: #334155;
}

.gestor-loja-horario-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.875rem;
    color: #475569;
}

.gestor-loja-horario-sep {
    color: #94a3b8;
    font-size: 0.875rem;
}

.gestor-loja-img-preview img,
.gestor-loja-img-preview .gestor-loja-card-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
}

.gestor-loja-banner-preview img {
    width: 100%;
    max-width: 420px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

.gestor-loja-banner-empty {
    width: 100%;
    max-width: 420px;
    height: 120px;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.875rem;
    background: #f8fafc;
}

@media (max-width: 768px) {
    .gestor-loja-horario-row {
        grid-template-columns: 1fr;
    }
}

.gestor-table-actions form + form {
    margin-left: 0.25rem;
}

.is-hide {
    display: none !important;
}

.gestor-plano-card {
    border-left: 4px solid var(--primary) !important;
}

.gestor-plano-card.is-atual {
    border: 2px solid var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.12) !important;
}

.gestor-plano-estab-banner {
    border-left: 4px solid var(--primary);
}

.gestor-plano-meta {
    font-size: 0.9rem;
    color: #334155;
}

.gestor-plano-badge-disponivel {
    background: #0d6efd !important;
    color: #fff !important;
}

.gestor-plano-badge-sistema {
    background: #7c3aed !important;
    color: #fff !important;
}

.gestor-plano-card.is-sistema {
    border-left: 4px solid #7c3aed !important;
}

.gestor-plano-checkout-modal .gestor-checkout-metodos {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gestor-plano-checkout-modal .gestor-checkout-metodos .btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.gestor-checkout-qr {
    max-width: 220px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.5rem;
}

.gestor-checkout-polling {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gestor-checkout-resumo {
    border-left: 4px solid var(--primary) !important;
}

.gestor-confirm-modal {
    border-radius: 16px;
    overflow: hidden;
}

.gestor-confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.gestor-confirm-icon.warn {
    background: #fff7ed;
    color: #ea580c;
}

.gestor-confirm-icon.danger {
    background: #fef2f2;
    color: #dc2626;
}

.gestor-confirm-icon.success {
    background: #ecfdf5;
    color: #059669;
}

.gestor-confirm-icon.key {
    background: #fff7ed;
    color: #c2410c;
}

.gestor-token-box {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #0f172a;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    user-select: all;
}

.gestor-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.gestor-view-grid section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.875rem 1rem;
}

.gestor-view-grid section.gestor-view-full {
    grid-column: 1 / -1;
}

.gestor-view-tabs .nav-link {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 0.75rem;
}

.gestor-view-tabs .nav-link.active {
    color: #c2410c;
    background: transparent;
    border-bottom-color: #dc2626;
}

.gestor-view-tab-content {
    min-height: 200px;
}

.gestor-table-actions .btn {
    padding: 0.25rem 0.5rem;
}

.gestor-btn-icon {
    width: 2rem;
    height: 2rem;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.gestor-btn-icon-wide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gestor-table-footer {
    background: #fff;
}

.gestor-table-count {
    font-weight: 600;
}

.gestor-pagination {
    align-items: center;
    display: inline-flex;
    gap: 0.5rem;
}

.gestor-pagination-btn {
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: var(--primary, #ff0000);
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    text-decoration: none;
    width: 2rem;
}

.gestor-pagination-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: var(--primary, #ff0000);
}

.gestor-pagination-btn.disabled {
    color: #d1d5db;
    cursor: default;
    pointer-events: none;
}

.gestor-pagination-info {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 3.5rem;
    text-align: center;
}

.gestor-btn-nav-loading.is-loading {
    opacity: 0.85;
    pointer-events: none;
}

.gestor-page-loading {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(2px);
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 9999;
}

.gestor-page-loading-box {
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    color: #64748b;
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    font-weight: 600;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
}

body.gestor-page-loading-open {
    overflow: hidden;
}

.btn-repassar-pedido {
    opacity: 0.28;
    transition: opacity 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-repassar-pedido.is-active {
    opacity: 1;
    background: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
    color: #fff;
}

.btn-repassar-pedido.is-active:hover {
    background: #bb2d3b;
    border-color: #bb2d3b;
    color: #fff;
}

.gestor-recursos-picker {
    position: relative;
}

.gestor-recursos-suggestions {
    position: absolute;
    z-index: 1050;
    left: 0;
    right: 0;
    top: calc(100% - 0.25rem);
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.12);
    max-height: 220px;
    overflow-y: auto;
}

.gestor-recursos-option {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #334155;
}

.gestor-recursos-option:hover,
.gestor-recursos-option:focus {
    background: #f8fafc;
    color: var(--primary);
}

.gestor-recursos-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gestor-recurso-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.8125rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.gestor-recurso-chip button {
    border: 0;
    background: transparent;
    color: #b91c1c;
    line-height: 1;
    padding: 0;
    font-size: 1rem;
    cursor: pointer;
}

.gestor-recurso-chip button:hover {
    color: #7f1d1d;
}

.gestor-estab-busca {
    position: relative;
}

.gestor-estab-busca-suggestions {
    position: absolute;
    z-index: 1050;
    left: 0;
    right: 0;
    top: calc(100% - 0.25rem);
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.12);
    max-height: 260px;
    overflow-y: auto;
}

.gestor-estab-busca-option {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 0.65rem 0.75rem;
    font-size: 0.875rem;
    color: #334155;
}

.gestor-estab-busca-option strong {
    display: block;
    color: #0f172a;
}

.gestor-estab-busca-option span {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.gestor-estab-busca-option:hover,
.gestor-estab-busca-option:focus {
    background: #f8fafc;
}

.gestor-table-actions form {
    display: inline-block;
}

.gestor-fatura-modal .modal-body.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.gestor-fatura-tabs {
    border-bottom: 1px solid #e2e8f0;
    gap: 0.25rem;
}

.gestor-fatura-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.55rem 0.85rem;
    margin-bottom: -1px;
    background: transparent;
}

.gestor-fatura-tabs .nav-link:hover {
    color: #dc2626;
    border-bottom-color: #fecaca;
}

.gestor-fatura-tabs .nav-link.active {
    color: #dc2626;
    border-bottom-color: #dc2626;
    background: transparent;
}

.gestor-fatura-tab-content {
    min-height: 280px;
}

.gestor-fatura-modal-section-first {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.gestor-fatura-modal-section + .gestor-fatura-modal-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eef2f7;
}

.gestor-fatura-modal-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.85rem;
}

.gestor-fatura-duplicar-resumo {
    display: grid;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.gestor-fatura-duplicar-resumo div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.gestor-fatura-duplicar-resumo span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.gestor-fatura-duplicar-resumo strong {
    color: #0f172a;
    text-align: right;
}

.gestor-fatura-modal-duplicar .modal-header {
    border-bottom-color: #fecaca;
}

.gestor-fatura-pedidos-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gestor-fatura-pedidos-periodo {
    font-size: 0.84rem;
    color: #64748b;
}

.gestor-fatura-pedidos-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.gestor-fatura-pedidos-card {
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.gestor-fatura-pedidos-table-shell {
    display: flex;
    flex-direction: column;
}

.gestor-fatura-pedidos-table-fixed {
    table-layout: fixed;
    width: 100%;
}

.gestor-fatura-col-id { width: 12%; }
.gestor-fatura-col-data { width: 30%; }
.gestor-fatura-col-valor { width: 22%; }
.gestor-fatura-col-pct { width: 14%; }
.gestor-fatura-col-comissao { width: 22%; }

.gestor-fatura-pedidos-table-scroll {
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.gestor-fatura-pedidos-table-scroll::-webkit-scrollbar {
    width: 8px;
}

.gestor-fatura-pedidos-table-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.gestor-fatura-pedidos-table-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.gestor-fatura-pedidos-table-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.gestor-fatura-pedidos-empty {
    margin: 0;
    padding: 2rem 1rem;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    font-size: 0.9rem;
}

.gestor-fatura-pedidos-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.gestor-fatura-pedidos-table thead th {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #64748b;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    white-space: nowrap;
    padding: 0.85rem 1rem;
    border: none;
    border-bottom: 1px solid #e2e8f0;
}

.gestor-fatura-pedidos-table tbody td {
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
    color: #334155;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.gestor-fatura-pedidos-table tbody tr:hover td {
    background: #fff7ed;
}

.gestor-fatura-pedido-row-even td {
    background: #ffffff;
}

.gestor-fatura-pedido-row-odd td {
    background: #f8fafc;
}

.gestor-fatura-pedido-num {
    display: inline-flex;
    min-width: 3.2rem;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    font-size: 0.82rem;
}

.gestor-fatura-pedido-data {
    color: #475569;
    font-variant-numeric: tabular-nums;
}

.gestor-fatura-pedido-valor {
    font-weight: 600;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.gestor-fatura-pedido-pct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 0.78rem;
    font-weight: 700;
}

.gestor-fatura-pedido-comissao {
    font-weight: 700;
    color: #b45309;
    font-variant-numeric: tabular-nums;
}

.gestor-fatura-pedidos-table tfoot td {
    padding: 0.95rem 1rem;
    background: linear-gradient(180deg, #fafafa 0%, #f4f4f5 100%);
    border-top: 1px solid #e4e4e7;
    color: #71717a;
    font-size: 0.88rem;
}

.gestor-fatura-pedido-comissao-total {
    color: #a16207;
    font-size: 0.95rem;
}

.gestor-fatura-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.gestor-fatura-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.gestor-fatura-info-item span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    font-weight: 600;
}

.gestor-fatura-info-item strong {
    color: #0f172a;
    font-size: 0.92rem;
    word-break: break-word;
}

.gestor-fatura-totais-grid {
    display: grid;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.gestor-fatura-totais-pedidos {
    background: #fff7ed;
    border-color: #fed7aa;
}

.gestor-fatura-totais-pedidos strong {
    color: #c2410c;
}

.gestor-fatura-totais-grid div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.gestor-fatura-totais-grid span {
    font-size: 0.82rem;
    color: #64748b;
}

.gestor-fatura-totais-grid strong {
    color: #0f172a;
    white-space: nowrap;
}

.gestor-fatura-total-final {
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #cbd5e1;
}

.gestor-fatura-total-final span {
    font-weight: 600;
    color: #334155;
}

.gestor-fatura-total-final strong {
    font-size: 1.05rem;
    color: #dc2626;
}

.gestor-fatura-modal .modal-footer {
    justify-content: flex-end;
    gap: 0.5rem;
}

.gd-chat-overlay {
    position: fixed;
    inset: 0;
    z-index: 13000;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    justify-content: flex-end;
}
.gd-chat-overlay[hidden] {
    display: none !important;
}
.gd-chat-drawer {
    width: min(420px, 100%);
    height: 100%;
    background: #fff;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
}
.gd-chat-header {
    display: grid;
    grid-template-columns: 44px 1fr 36px;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid #eef2f7;
}
.gd-chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff1f2;
    color: #dc2626;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.gd-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
    position: relative;
    z-index: 1;
}
.gd-chat-avatar img[hidden],
.gd-chat-avatar i[hidden] {
    display: none !important;
}
.gd-chat-head-text h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #111;
}
.gd-chat-head-text select {
    margin-top: 4px;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    padding: 4px 8px;
    color: #334155;
    background: #fff;
}
.gd-chat-overlay.is-contestacao #gdChatLojaSelect {
    display: none;
}
.gd-chat-sub {
    margin: 4px 0 0;
    font-size: 12px;
    color: #64748b;
}
.gd-chat-sub[hidden] {
    display: none !important;
}
.gd-chat-banner {
    margin: 10px 12px 0;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 12px;
    line-height: 1.4;
}
.gd-chat-banner[hidden] {
    display: none !important;
}
.gd-chat-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f8fafc;
    border-radius: 10px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #334155;
}
.gd-chat-lista {
    flex: 1;
    overflow: auto;
    padding: 16px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gd-chat-empty {
    margin: auto;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    max-width: 260px;
    line-height: 1.45;
}
.gd-chat-bubble {
    max-width: 82%;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}
.gd-chat-bubble.is-loja {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #111;
    border-bottom-left-radius: 4px;
}
.gd-chat-bubble.is-delivery {
    align-self: flex-end;
    background: #dc2626;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.gd-chat-bubble.is-cliente {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #111;
    border-bottom-left-radius: 4px;
}
.gd-chat-bubble.is-sistema {
    align-self: center;
    max-width: 92%;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    text-align: center;
    border-radius: 10px;
}
.gd-chat-overlay.is-contestacao .gd-chat-bubble.is-delivery {
    background: #fff1f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 14px;
}
.gd-chat-bubble small {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 2px;
}
.gd-chat-composer {
    display: flex;
    gap: 8px;
    padding: 12px 14px 16px;
    border-top: 1px solid #eef2f7;
    background: #fff;
}
.gd-chat-composer input {
    flex: 1;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
}
.gd-chat-composer input:focus {
    border-color: #dc2626;
}
.gd-chat-composer button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: #dc2626;
    color: #fff;
    cursor: pointer;
}
.gd-chat-composer button:disabled,
.gd-chat-composer input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
