@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;
    --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-alert {
    font-size: 14px;
    text-align: left;
    line-height: 1.4;
}

.form-login .is-invalid {
    border-color: #dc3545;
}

.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);
}

.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;
}

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;
    width: 100%;
    text-align: left;
    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;
}

button.pedido-card-resumo {
    cursor: pointer;
}

button.pedido-card-resumo.is-on {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.18);
}

.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-resumo.pagamento-pix .pedido-card-icon {
    background: #e8f5e9;
    color: #15803d;
}

.pedido-card-resumo.pagamento-dinheiro .pedido-card-icon {
    background: #ecfdf5;
    color: #047857;
}

.pedido-card-resumo.pagamento-cartao .pedido-card-icon {
    background: #eff6ff;
    color: #1d4ed8;
}

.pedido-status-badge {
    border: 0;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.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;
}

@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;
}

.clientes-toggle-pedidos {
    font-weight: 700;
    color: #c62828;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.clientes-toggle-pedidos:hover { color: #8e0000; }
.clientes-pedidos-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 4px 0 10px;
}
.clientes-pedidos-head {
    font-size: 0.82rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.staff-senha-regras {
    list-style: none;
    padding: 6px 0 0;
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
}
.staff-senha-regras li { position: relative; padding-left: 1.1rem; }
.staff-senha-regras li::before {
    content: 'â';
    position: absolute;
    left: 0;
    color: #94a3b8;
}
.staff-senha-regras li.is-ok { color: #15803d; }
.staff-senha-regras li.is-ok::before { content: 'â'; color: #16a34a; }

/* 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;
    align-items: center;
    justify-content: space-between;
}

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

.cardapio-catalogo-preview-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-left: auto;
}

.cardapio-btn-catalogo-preview,
.cardapio-btn-visualizar-digital {
    border-radius: 4px;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    text-transform: none;
    white-space: nowrap;
}

.cardapio-btn-visualizar-digital.active {
    background: var(--primary, #ff0000);
    border-color: var(--primary, #ff0000);
    color: #fff;
}

.cardapio-catalogo-preview-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.cardapio-catalogo-preview-modal .modal-header {
    align-items: flex-start;
    background: #fff;
    border-bottom: 0;
    padding: 1.1rem 1.35rem 0.65rem;
}

.catalogo-preview-tabs {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    gap: 0;
    margin: 0;
    padding: 0 1rem;
}

.catalogo-preview-tabs .nav-link {
    border: 0;
    border-radius: 0;
    color: #6b7280;
    font-weight: 600;
    padding: 0.7rem 0.9rem;
    text-transform: none;
}

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

.catalogo-preview-badge {
    background: #fef2f2;
    border-radius: 999px;
    color: #ea1d2c;
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-top: 0.35rem;
    padding: 0.12rem 0.5rem;
    text-transform: uppercase;
}

.catalogo-preview-validade {
    color: #9ca3af;
    display: block;
    font-size: 0.75rem;
    margin-top: 0.2rem;
}

.cardapio-catalogo-preview-modal .modal-title {
    color: #1f2430;
    font-size: 1.15rem;
    font-weight: 800;
}

.cardapio-catalogo-preview-modal .modal-body {
    background: #f7f7f7;
    padding: 1.15rem 1.25rem 1.4rem;
}

.catalogo-preview-footer {
    align-items: stretch;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem 1.1rem;
}

.catalogo-preview-footer-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.catalogo-preview-footer-btns .btn {
    font-weight: 700;
    min-width: 160px;
    text-transform: none;
}

.catalogo-preview-status {
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.4;
    padding: 0.55rem 0.75rem;
}

.catalogo-preview-status.is-info {
    background: #eff6ff;
    color: #1e40af;
}

.catalogo-preview-status.is-ok {
    background: #ecfdf5;
    color: #047857;
}

.catalogo-preview-status.is-erro {
    background: #fef2f2;
    color: #b91c1c;
}

.catalogo-preview-grupo + .catalogo-preview-grupo {
    margin-top: 1.15rem;
}

.catalogo-preview-grupo-titulo {
    color: #1f2430;
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 0.65rem;
}

.catalogo-preview-lista {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 12px;
    overflow: hidden;
}

.catalogo-preview-item {
    align-items: center;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    padding: 0.85rem 1rem;
}

.catalogo-preview-item + .catalogo-preview-item {
    border-top: 1px solid #f0f0f0;
}

.catalogo-preview-thumb {
    background: #f3f4f6;
    border-radius: 10px;
    height: 64px;
    object-fit: cover;
    width: 64px;
}

.catalogo-preview-thumb-empty {
    align-items: center;
    color: #9ca3af;
    display: flex;
    font-size: 0.7rem;
    font-weight: 700;
    justify-content: center;
    text-transform: uppercase;
}

.catalogo-preview-item-info h6 {
    color: #1f2430;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
}

.catalogo-preview-item-info p {
    color: #717171;
    font-size: 0.82rem;
    line-height: 1.35;
    margin: 0;
}

.catalogo-preview-preco {
    color: #ea1d2c;
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
}

.catalogo-preview-empty {
    background: #fff;
    border: 1px dashed #e5e7eb;
    border-radius: 12px;
    color: #6b7280;
    padding: 2.5rem 1.25rem;
    text-align: center;
}

.catalogo-preview-empty i {
    color: #ea1d2c;
    display: block;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.catalogo-preview-empty p {
    color: #1f2430;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

@media (max-width: 575.98px) {
    .catalogo-preview-item {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .catalogo-preview-preco {
        grid-column: 2;
    }
}

.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 [data-next]:disabled,
.cardapio-prod-modal #cardapioBtnSalvar:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.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-grid {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
}

.cardapio-opcoes-col {
    display: flex;
    flex: 1 1 240px;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 220px;
}

.cardapio-opcoes-col .cardapio-prod-section-title {
    margin-bottom: 0;
}

.cardapio-opcoes-col-dir {
    flex: 1 1 240px;
}

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

.cardapio-canais-delivery:empty {
    display: none;
}

.cardapio-canais-delivery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cardapio-opcoes-switch .form-check {
    margin: 0;
}

.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;
}

.cardapio-tamanhos-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.9rem 1rem 1rem;
}

.cardapio-tamanhos-box .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

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

/* ConexÃµes WhatsApp (estilo KMenu / Whaticket) */
.wa-page {
    padding: 1.25rem 1.5rem 2.5rem;
    background: #f8f9fa;
    min-height: calc(100vh - var(--topbar-height, 64px));
}

.wa-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.wa-header h1 {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
    color: #111827;
}

.wa-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.wa-stats {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.wa-stat {
    min-width: 128px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 0.55rem 1rem;
    text-align: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.wa-stat i {
    display: block;
    font-size: 1.6rem;
    color: #64748b;
    margin-bottom: 0.15rem;
}

.wa-stat strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.2;
}

.wa-stat span {
    font-size: 0.78rem;
    color: #64748b;
}

.wa-stat-whatsapp {
    background: rgba(37, 211, 102, 0.1);
}

.wa-stat-whatsapp i,
.wa-stat-whatsapp strong {
    color: #25d366;
}

.wa-empty {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: #64748b;
}

.wa-empty i {
    font-size: 2.4rem;
    color: #25d366;
}

.wa-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 320px));
    gap: 1rem;
}

.wa-card {
    position: relative;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    min-height: 350px;
}

.wa-card-head {
    background: #25d366;
    color: #fff;
    text-align: center;
    font-weight: 600;
    padding: 0.7rem 0.8rem;
    font-size: 1.05rem;
}

.wa-card-channel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    background: rgba(37, 211, 102, 0.2);
    color: #555;
    font-size: 0.82rem;
    padding: 0.35rem;
}

.wa-card-body {
    padding: 1rem 1rem 4.5rem;
    text-align: center;
}

.wa-card-icon {
    font-size: 2rem;
    color: #25d366;
    margin-bottom: 0.6rem;
}

.wa-card-body p {
    margin: 0.2rem 0;
    font-size: 0.86rem;
    color: #334155;
}

.wa-status-ico {
    display: inline-flex;
    vertical-align: middle;
}

.wa-status-ico.is-on { color: #22c55e; }
.wa-status-ico.is-wait { color: #64748b; }
.wa-status-ico.is-off { color: #ef4444; }

.wa-card-actions {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 52px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.wa-card-tools {
    position: absolute;
    right: 8px;
    bottom: 8px;
    display: flex;
    gap: 8px;
}

.wa-btn {
    border: 0;
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.wa-btn-success { background: #22c55e; color: #fff; }
.wa-btn-primary { background: #2563eb; color: #fff; }
.wa-btn-danger { background: #ef4444; color: #fff; }
.wa-btn-light { background: #e2e8f0; color: #0f172a; }
.wa-btn-navy { background: #3d4f6f; color: #fff; }
.wa-btn-navy:hover { background: #2f3f59; color: #fff; }

.wa-stats-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0.75rem 1rem;
    min-height: 88px;
    background: #fff;
    border-radius: 12px;
    padding: 0.65rem 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.wa-stats {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: stretch;
    gap: 0.75rem;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.wa-stats-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.45rem;
    flex: 0 0 auto;
    padding-top: 0.15rem;
}

.wa-stats-actions .wa-btn {
    white-space: nowrap;
    flex: 0 0 auto;
}

.wa-qr-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.wa-qr-bot {
    flex: 0 0 auto;
    background: #fff;
}
.wa-qr-bot img {
    display: block;
    width: 176px;
    height: auto;
    background: #fff;
}

.wa-modal-channel { width: min(720px, 100%); padding: 0.5rem 0.5rem 1rem; }
.wa-channel-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1rem 0.5rem;
}
.wa-channel-head h2 { margin: 0; font-size: 1.25rem; }
.wa-channel-head p { margin: 0.15rem 0 0; color: #64748b; font-size: 0.9rem; }
.wa-channel-head .wa-modal-close { margin-left: auto; }
.wa-channel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 0.75rem 1rem;
}
.wa-channel-card {
    text-align: left;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
}
.wa-channel-card:hover { border-color: #22c55e; box-shadow: 0 8px 20px rgba(34, 197, 94, 0.12); }
.wa-channel-card.is-disabled { opacity: 0.7; cursor: not-allowed; }
.wa-channel-card strong { font-size: 1rem; color: #111827; }
.wa-channel-card span { font-size: 0.82rem; color: #64748b; }
.wa-channel-card em {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    border-radius: 999px;
    padding: 0.1rem 0.45rem;
    width: fit-content;
}
.wa-channel-card em.is-soon { color: #2563eb; background: #dbeafe; }
.wa-channel-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    color: #16a34a;
    font-size: 1.3rem;
}
.wa-channel-foot {
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    margin: 0.25rem 1rem 0.5rem;
}
.wa-modal-add {
    width: min(1200px, calc(100vw - 2rem)) !important;
    max-width: 1200px;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.wa-add-title {
    text-align: center;
    font-weight: 700;
    padding: 0.85rem 1rem 0.5rem;
    font-size: 1.05rem;
    flex: 0 0 auto;
}
.wa-add-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    background: #4c3bb5;
    color: #fff;
    flex: 0 0 auto;
}
.wa-add-tabs button {
    flex: 1 0 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #fff;
    padding: 0.75rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.wa-add-tabs button.is-active { background: #3b2d96; }
.wa-add-body { padding: 1.1rem 1.25rem; overflow: auto; flex: 1 1 auto; }
.wa-add-pane[hidden] { display: none !important; }
.wa-add-image {
    width: 100%;
    border: 0;
    background: #3b82f6;
    color: #fff;
    border-radius: 8px;
    padding: 0.65rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.wa-add-top {
    display: grid;
    grid-template-columns: minmax(220px, 1.15fr) auto auto minmax(260px, 1.25fr);
    gap: 0.9rem 1.15rem;
    align-items: end;
    margin-bottom: 0.9rem;
}
.wa-add-top .wa-add-field { min-width: 0; flex: none; }
.wa-add-nome-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 0.55rem;
    background: #fff;
}
.wa-add-nome-wrap i { color: #64748b; }
.wa-add-nome-wrap input {
    border: 0 !important;
    padding: 0.5rem 0.2rem !important;
}
.wa-add-field.is-required.is-error .wa-add-nome-wrap { border-color: #ef4444; }
.wa-add-import {
    display: grid;
    grid-template-columns: minmax(340px, 1fr) minmax(460px, 1.35fr);
    gap: 1rem 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.75rem;
}
.wa-add-import-toggles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 0.75rem 1rem;
}
.wa-add-import-toggles .wa-switch {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}
.wa-add-import-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
}
.wa-add-import-dates .wa-add-full {
    grid-column: 1 / -1;
    margin-bottom: 0;
}
.wa-add-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: flex-end;
    margin-bottom: 0.85rem;
}
.wa-add-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 200px;
}
.wa-add-field.wa-add-full { width: 100%; min-width: 0; margin-bottom: 0.9rem; }
.wa-add-field span { font-size: 0.8rem; color: #475569; }
.wa-add-field input,
.wa-add-field select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    box-sizing: border-box;
}
.wa-add-field select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}
.wa-add-field.is-required input.wa-invalid { border-color: #ef4444; }
.wa-add-field.is-required small { color: #ef4444; display: none; }
.wa-add-field.is-required.is-error small { display: block; }
.wa-add-grow { flex: 1; }
.wa-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    white-space: normal;
    line-height: 1.3;
    max-width: 100%;
    cursor: pointer;
    user-select: none;
}
.wa-switch input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 42px;
    height: 22px;
    min-width: 42px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.wa-switch input[type="checkbox"]::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    transition: left 0.15s ease;
}
.wa-switch input[type="checkbox"]:checked {
    background: #334155;
}
.wa-switch input[type="checkbox"]:checked::after {
    left: 22px;
}
.wa-switch input[type="checkbox"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.wa-add-import .wa-switch { align-items: flex-start; }
.wa-add-warn { color: #dc2626; font-size: 0.82rem; font-weight: 600; }
.wa-add-token {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0.75rem 0;
}
.wa-add-token input { flex: 1; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0.45rem; }
.wa-icon-mini {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #e2e8f0;
    color: #0f172a;
}
.wa-add-fila { margin-top: 0.75rem; }
.wa-add-fila strong { display: block; }
.wa-add-fila p { color: #64748b; font-size: 0.85rem; margin: 0.2rem 0 0.5rem; }
.wa-add-soon {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    color: #64748b;
    text-align: center;
}
.wa-add-foot {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem 1rem;
    flex: 0 0 auto;
}

@media (max-width: 768px) {
    .wa-stats-bar {
        flex-wrap: wrap;
        justify-content: center;
        min-height: 0;
        gap: 0.75rem;
    }
    .wa-stats,
    .wa-stats-actions {
        justify-content: center;
        flex: 1 1 100%;
    }
    .wa-stats-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 900px) {
    .wa-header { flex-direction: column; align-items: stretch; }
    .wa-channel-grid,
    .wa-add-import,
    .wa-add-import-dates,
    .wa-add-import-toggles,
    .wa-add-top { grid-template-columns: 1fr; }
}

.wa-icon-btn {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wa-icon-edit { background: #22c55e; }
.wa-icon-del { background: #ef4444; }

.wa-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1080;
    padding: 1rem;
}

.wa-modal[hidden] { display: none !important; }

.wa-modal-panel {
    background: #fff;
    border-radius: 16px;
    width: min(640px, 100%);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.wa-modal-panel.wa-modal-add {
    width: min(1200px, calc(100vw - 2rem));
    max-width: 1200px;
    max-height: calc(100vh - 2rem);
}

.wa-modal-sm { width: min(420px, 100%); }

.wa-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.wa-modal-head h2 {
    margin: 0;
    font-size: 1.1rem;
}

.wa-modal-close {
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: #64748b;
}

.wa-modal-body { padding: 1rem; }

.wa-qr-box {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.wa-qr-box img,
.wa-qr-box canvas,
.wa-qr-box img {
    width: 280px;
    height: 280px;
    object-fit: contain;
    background: #fff;
    padding: 6px;
}

.wa-pairing {
    text-align: center;
}

.wa-pairing strong {
    display: block;
    font-size: 1.8rem;
    letter-spacing: 0.12em;
    color: #111827;
}

.wa-pairing small {
    color: #64748b;
}


/* Notificações do header (estilo cardápio) */
.parceiro-notif-menu { position: relative; display: inline-flex; align-items: center; }
.parceiro-notif-menu .topbar-icon-btn { position: relative; }
.parceiro-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;
  box-shadow: 0 0 0 2px #fff;
}
.parceiro-notif-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 340px;
  max-width: calc(100vw - 24px); max-height: min(70vh, 440px); overflow: hidden;
  display: flex; flex-direction: column; background: #fff; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.16); border: 1px solid #f0f0f0; z-index: 120;
}
.parceiro-notif-dropdown[hidden] { display: none !important; }
.parceiro-notif-dd-head {
  padding: 14px 16px; font-weight: 700; font-size: 15px; border-bottom: 1px solid #f1f5f9;
}
.parceiro-notif-dd-list { overflow: auto; max-height: 360px; }
.parceiro-notif-dd-empty { padding: 28px 16px; text-align: center; color: #94a3b8; font-size: 13px; }
.parceiro-notif-dd-item {
  display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left;
  border: 0; background: #fff; padding: 12px 16px; border-bottom: 1px solid #f8fafc; cursor: pointer;
}
.parceiro-notif-dd-item:hover { background: #fff8f8; }
.parceiro-notif-dd-item.is-unread { background: #fff5f5; }
.parceiro-notif-dd-item strong { font-size: 13px; color: #111827; }
.parceiro-notif-dd-item span { font-size: 12px; color: #64748b; line-height: 1.35; }
.parceiro-notif-dd-item small { font-size: 11px; color: #94a3b8; }

.vendas-fiscal-abas .nav-link {
    color: #64748b;
    font-weight: 600;
}
.vendas-fiscal-abas .nav-link.active {
    color: #dc3545;
    border-color: #e5e7eb #e5e7eb #fff;
}
.vendas-fiscal-filtro {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px 16px;
}
.vendas-fiscal-filtro label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}
.vendas-fiscal-chave {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}
.vendas-fiscal-total {
    margin-top: 12px;
    text-align: right;
    color: #374151;
}
.vendas-fiscal-check { width: 42px; text-align: center; }
.vendas-fiscal-acoes { white-space: nowrap; }
.btn-contador {
    background: #111827;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 8px 14px;
}
.btn-contador:disabled { opacity: .45; cursor: not-allowed; }
.contador-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(17, 24, 39, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.contador-modal[hidden] { display: none !important; }
.contador-modal-card {
    width: min(480px, 100%);
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}
.contador-modal-card h2 { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.contador-modal-card > p { color: #4b5563; margin-bottom: 14px; }
.contador-modal-acoes { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.contador-erro { color: #dc3545; font-size: 13px; margin-top: 8px; }
.contador-progresso ol { list-style: none; padding: 0; margin: 8px 0 0; }
.contador-progresso li { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: #94a3b8; border-bottom: 1px solid #f1f5f9; }
.contador-progresso li.ativo { color: #111827; font-weight: 700; }
.contador-progresso li.ok { color: #15803d; }
.contador-progresso li.erro { color: #dc3545; }
.contador-passo-icone { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; flex: 0 0 auto; }
.contador-progresso li.ativo .contador-passo-icone { border-top-color: transparent; animation: contador-gira .8s linear infinite; }
.contador-progresso li.ok .contador-passo-icone { background: #15803d; border-color: #15803d; }
.contador-progresso li.erro .contador-passo-icone { background: #dc3545; border-color: #dc3545; }
@keyframes contador-gira { to { transform: rotate(360deg); } }
.contador-resultado { margin: 14px 0 0; font-weight: 600; }
.contador-resultado.ok { color: #15803d; }
.contador-resultado.erro { color: #dc3545; }

.lista-paginacao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 8px 4px;
}
.lista-paginacao-label {
  min-width: 120px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}
.btn-pagina {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: rgb(243, 32, 32);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.btn-pagina:hover:not(:disabled) {
  background: #c81e1e;
}
.btn-pagina:disabled {
  background: #aaa;
  color: #fff;
  cursor: not-allowed;
}
