/* Tema visual global do ERP Online */
:root {
    --gc-cyan: #0ea5c6;
    --gc-magenta: #c7358f;
    --gc-yellow: #d9b421;
    --gc-black: #111827;
    --gc-ink: #142033;
    --gc-muted: #667085;
    --gc-page: #f3f6fb;
    --gc-panel: #ffffff;
    --gc-line: #dfe7f1;
    --gc-line-soft: #edf3f8;
    --gc-input: #f4f7fb;
    --gc-cyan-soft: #f1fbff;
    --gc-magenta-soft: #fff5fa;
    --gc-yellow-soft: #fffbe8;
    --gc-green-soft: #ecfdf5;
    --gc-green: #059669;
    --gc-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
    --gc-shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.055);
    --primary-color: var(--gc-cyan);
    --primary-hover: #0784ad;
    --accent-color: var(--gc-magenta);
    --bg-color: var(--gc-page);
    --text-main: var(--gc-ink);
    --text-light: var(--gc-muted);
    --border-color: var(--gc-line);
    --card-bg: var(--gc-panel);
    --primary-gradient: var(--gc-cyan);
    --sidebar-bg: #ffffff;
    --sidebar-hover: #f4f8fc;
}

/* Final modal scroll/layer hardening without JS observers.
   Keep modal headers and footers visible, and make the content area scroll. */
html.gc-erp-online-theme :where(.modal-overlay, .pos-modal-overlay, [class*="modal-overlay"]) {
    box-sizing: border-box !important;
    overflow: hidden !important;
    overscroll-behavior: contain !important;
}

html.gc-erp-online-theme :where(.modal-overlay, .pos-modal-overlay, [class*="modal-overlay"]) > :where(
    .modal,
    .modal-content,
    .modal-cliente,
    .modal-produto,
    .modal-categoria,
    .modal-conta,
    .modal-usuario,
    .modal-cupom,
    .modal-orcamento,
    .modal-venda,
    .modal-status-os,
    .modal-caixa,
    .modal-impressao,
    .modal-conta-recebimento,
    .pos-modal
) {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme :where(.modal-overlay, .pos-modal-overlay, [class*="modal-overlay"]) > :where(
    .modal,
    .modal-content,
    .modal-cliente,
    .modal-produto,
    .modal-categoria,
    .modal-conta,
    .modal-usuario,
    .modal-cupom,
    .modal-orcamento,
    .modal-venda,
    .modal-status-os,
    .modal-caixa,
    .modal-impressao,
    .modal-conta-recebimento,
    .pos-modal
) > form {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme :where(.modal-overlay, .pos-modal-overlay, [class*="modal-overlay"]) :where(
    .modal-header,
    .modal-footer,
    .form-actions,
    .pos-modal-header,
    .pos-modal-footer,
    .gc-edit-tool-modal__header,
    .gc-edit-tool-modal__footer
) {
    flex: 0 0 auto !important;
}

html.gc-erp-online-theme :where(.modal-overlay, .pos-modal-overlay, [class*="modal-overlay"]) :where(
    .modal-body,
    .pos-modal-body,
    .gc-edit-tool-modal__body
) {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
}

html.gc-erp-online-theme :where(.modal-overlay, .pos-modal-overlay, [class*="modal-overlay"]) > .modal > form > .modal-content,
html.gc-erp-online-theme :where(.modal-overlay, .pos-modal-overlay, [class*="modal-overlay"]) > .modal-content > form > .modal-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
}

html.gc-erp-online-theme :where(.gc-edit-tool-overlay) {
    z-index: 260000 !important;
}

html.gc-erp-online-theme :where(.gc-edit-tool-modal) {
    display: flex !important;
    flex-direction: column !important;
    z-index: 260001 !important;
}

html.gc-erp-online-theme :where(.gc-variant-list) {
    min-height: 0 !important;
    padding-bottom: 0.25rem !important;
}

html.gc-erp-online-theme :where(.modal-body, .pos-modal-body, .gc-edit-tool-modal__body) {
    scrollbar-width: thin;
    scrollbar-color: rgba(14, 165, 198, 0.75) rgba(226, 232, 240, 0.85);
}

html.gc-erp-online-theme :where(.modal-body, .pos-modal-body, .gc-edit-tool-modal__body)::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html.gc-erp-online-theme :where(.modal-body, .pos-modal-body, .gc-edit-tool-modal__body)::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.85);
    border-radius: 999px;
}

html.gc-erp-online-theme :where(.modal-body, .pos-modal-body, .gc-edit-tool-modal__body)::-webkit-scrollbar-thumb {
    background: rgba(14, 165, 198, 0.78);
    border: 2px solid rgba(226, 232, 240, 0.85);
    border-radius: 999px;
}

/* Premium edit modals: item variants and square-meter calculator. */
html.gc-erp-online-theme .gc-edit-tool-overlay {
    background: rgba(15, 23, 42, 0.62) !important;
    backdrop-filter: blur(7px);
    padding: 18px !important;
    overflow: hidden !important;
    z-index: 260000 !important;
    pointer-events: auto !important;
}

html.gc-erp-online-theme .gc-edit-tool-overlay[style*="flex"] {
    align-items: center !important;
    justify-content: center !important;
}

html.gc-erp-online-theme .gc-edit-tool-modal {
    position: relative !important;
    z-index: 260001 !important;
    width: min(560px, calc(100vw - 36px)) !important;
    max-width: 560px !important;
    max-height: min(720px, calc(100vh - 36px)) !important;
    max-height: min(720px, calc(100dvh - 36px)) !important;
    overflow: hidden !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    border-radius: 8px !important;
    background: #fffaf0 !important;
    box-shadow: 0 26px 80px rgba(15, 23, 42, 0.34) !important;
}

html.gc-erp-online-theme .gc-edit-tool-modal::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #11a9c9 0 25%, #d42c91 25% 50%, #e2bd28 50% 75%, #111827 75% 100%);
    z-index: 1;
}

html.gc-erp-online-theme .gc-edit-tool-modal__header {
    position: relative;
    z-index: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    padding: 1.45rem 1.55rem 1.05rem !important;
    border-bottom: 1px solid rgba(203, 213, 225, 0.72) !important;
    background: linear-gradient(180deg, #fffbeb 0%, #fffaf0 100%) !important;
}

html.gc-erp-online-theme .gc-edit-tool-modal__eyebrow {
    display: block;
    margin-bottom: 0.25rem;
    color: #64748b;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

html.gc-erp-online-theme .gc-edit-tool-modal__title {
    margin: 0 !important;
    color: #111827 !important;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem) !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme .gc-edit-tool-modal__subtitle {
    margin: 0.35rem 0 0 !important;
    color: #64748b !important;
    font-size: 0.92rem !important;
    line-height: 1.35 !important;
}

html.gc-erp-online-theme .gc-edit-tool-modal__close {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #e7d9c4 !important;
    border-radius: 999px !important;
    background: #fffdfa !important;
    color: #64748b !important;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08) !important;
    cursor: pointer !important;
}

html.gc-erp-online-theme .gc-edit-tool-modal__close:hover {
    color: #0f172a !important;
    border-color: #d6c3a8 !important;
}

html.gc-erp-online-theme .gc-edit-tool-modal__body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 1.25rem 1.55rem !important;
    background:
        radial-gradient(circle at top right, rgba(17, 169, 201, 0.08), transparent 34%),
        #fffaf0 !important;
}

html.gc-erp-online-theme .gc-edit-tool-modal__footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    padding: 1rem 1.55rem 1.2rem !important;
    border-top: 1px solid rgba(203, 213, 225, 0.72) !important;
    background: rgba(255, 250, 240, 0.94) !important;
}

html.gc-erp-online-theme .gc-edit-tool-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

html.gc-erp-online-theme .gc-edit-tool-btn {
    min-height: 46px !important;
    padding: 0.72rem 1.25rem !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
}

html.gc-erp-online-theme .gc-edit-tool-btn--ghost {
    border: 1px solid #e2d6c4 !important;
    background: #fffdfa !important;
    color: #111827 !important;
}

html.gc-erp-online-theme .gc-edit-tool-btn--primary {
    border: 1px solid #075c68 !important;
    background: linear-gradient(135deg, #075c68, #087a89) !important;
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(8, 122, 137, 0.24) !important;
}

html.gc-erp-online-theme .gc-variant-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

html.gc-erp-online-theme .gc-variant-option {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.85rem !important;
    min-height: 72px;
    padding: 0.9rem 1rem !important;
    border: 1px solid #dbeafe !important;
    border-left: 4px solid #bae6fd !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.86) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06) !important;
    cursor: pointer !important;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

html.gc-erp-online-theme .gc-variant-option:hover,
html.gc-erp-online-theme .gc-variant-option.is-selected {
    border-color: #7dd3fc !important;
    background: #f8fdff !important;
    box-shadow: 0 16px 34px rgba(17, 169, 201, 0.12) !important;
}

html.gc-erp-online-theme .gc-variant-checkbox {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
}

html.gc-erp-online-theme .gc-variant-checkmark {
    width: 26px;
    height: 26px;
    border: 2px solid #cbd5e1;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background: #fff;
}

html.gc-erp-online-theme .gc-variant-checkbox:checked + .gc-variant-checkmark {
    border-color: #0891b2;
    background: #0891b2;
    color: #fff;
}

html.gc-erp-online-theme .gc-variant-option__main {
    min-width: 0;
}

html.gc-erp-online-theme .gc-variant-option__main strong {
    display: block;
    color: #111827;
    font-size: 1rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

html.gc-erp-online-theme .gc-variant-option__main small {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
}

html.gc-erp-online-theme .gc-variant-option__price {
    min-width: 112px;
    padding: 0.62rem 0.75rem;
    border-radius: 8px;
    background: #e8fff3;
    color: #047857;
    font-size: 1rem;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

html.gc-erp-online-theme .gc-variant-option__price.is-negative {
    background: #fff1f2;
    color: #be123c;
}

html.gc-erp-online-theme .gc-variant-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 800;
}

html.gc-erp-online-theme .gc-variant-summary strong {
    color: #111827;
}

html.gc-erp-online-theme .gc-variant-special {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

html.gc-erp-online-theme .gc-variant-special-grid,
html.gc-erp-online-theme .gc-m2-form-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.9rem !important;
}

html.gc-erp-online-theme .gc-variant-field--wide {
    grid-column: 1 / -1;
}

html.gc-erp-online-theme .gc-variant-field,
html.gc-erp-online-theme .gc-m2-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

html.gc-erp-online-theme .gc-variant-field span,
html.gc-erp-online-theme .gc-m2-field span {
    color: #334155;
    font-size: 0.84rem;
    font-weight: 850;
}

html.gc-erp-online-theme .gc-variant-input,
html.gc-erp-online-theme .gc-m2-input {
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    padding: 0.78rem 0.85rem;
    border: 1px solid #dfcfb8;
    border-radius: 8px;
    background: #fffdfa;
    color: #111827;
    font-size: 1rem;
    outline: none;
}

html.gc-erp-online-theme .gc-variant-input:focus,
html.gc-erp-online-theme .gc-m2-input:focus {
    border-color: #11a9c9;
    box-shadow: 0 0 0 4px rgba(17, 169, 201, 0.14);
}

html.gc-erp-online-theme .gc-variant-note,
html.gc-erp-online-theme .gc-m2-note,
html.gc-erp-online-theme .gc-variant-empty {
    margin: 0;
    padding: 0.85rem 0.95rem;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fdff;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.45;
}

html.gc-erp-online-theme .gc-variant-empty {
    text-align: center;
}

html.gc-erp-online-theme .gc-m2-price-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
    padding: 0.95rem 1rem;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fdff;
}

html.gc-erp-online-theme .gc-m2-price-card span,
html.gc-erp-online-theme .gc-m2-result-card span {
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

html.gc-erp-online-theme .gc-m2-price-card strong,
html.gc-erp-online-theme .gc-m2-result-card strong {
    color: #083344;
    font-size: 1.08rem;
    font-weight: 900;
    text-align: right;
}

html.gc-erp-online-theme .gc-m2-result-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.9rem !important;
    margin-top: 0.9rem !important;
}

html.gc-erp-online-theme .gc-m2-result-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

html.gc-erp-online-theme .gc-m2-result-card--total {
    border-color: #b7ead7;
    background: #e8fff3;
}

@media (max-width: 640px) {
    html.gc-erp-online-theme .gc-edit-tool-overlay {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    html.gc-erp-online-theme .gc-edit-tool-modal {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 92vh !important;
        max-height: 92dvh !important;
        border-radius: 8px 8px 0 0 !important;
    }

    html.gc-erp-online-theme .gc-edit-tool-modal__header,
    html.gc-erp-online-theme .gc-edit-tool-modal__body,
    html.gc-erp-online-theme .gc-edit-tool-modal__footer {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    html.gc-erp-online-theme .gc-edit-tool-modal__footer {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    html.gc-erp-online-theme .gc-edit-tool-actions,
    html.gc-erp-online-theme .gc-edit-tool-actions > button {
        width: 100%;
    }

    html.gc-erp-online-theme .gc-variant-option {
        grid-template-columns: auto minmax(0, 1fr) !important;
    }

    html.gc-erp-online-theme .gc-variant-option__price {
        grid-column: 2;
        width: fit-content;
        min-width: 0;
    }

    html.gc-erp-online-theme .gc-variant-special-grid,
    html.gc-erp-online-theme .gc-m2-form-grid,
    html.gc-erp-online-theme .gc-m2-result-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Novo orcamento: remove sobras claras no modo escuro sem afetar o modo claro. */
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) .pos-product-bar {
    background: rgba(11, 19, 34, .98) !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 12px 26px rgba(0, 0, 0, .22) !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #filtroCategoria,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #buscaProdutoPos,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #buscaClientePos,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #descricaoOrcamento,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #prazoEntregaOrcamento,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #validadeOrcamento,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #forma_pagamento_orc,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #previasArte,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) .pos-product-input,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) .pos-search-input,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) .pos-input,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) .pos-category-filter {
    background: #0b1322 !important;
    border-color: rgba(148, 163, 184, .24) !important;
    color: #f8fafc !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #buscaProdutoPos:focus,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #buscaClientePos:focus,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #filtroCategoria:focus,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #descricaoOrcamento:focus,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #prazoEntregaOrcamento:focus,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #validadeOrcamento:focus,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #forma_pagamento_orc:focus {
    background: #0b1322 !important;
    border-color: rgba(34, 211, 238, .72) !important;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .13) !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #buscaProdutoPos::placeholder,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #buscaClientePos::placeholder,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #descricaoOrcamento::placeholder,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #prazoEntregaOrcamento::placeholder,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #forma_pagamento_orc::placeholder {
    color: #7f91a8 !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) .pos-product-icon,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) .pos-product-icon i {
    color: #9fb2c8 !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosProdutoPos.pos-resultados-busca,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosClientePos.pos-resultados-cliente {
    background: #0d1728 !important;
    border-color: rgba(148, 163, 184, .24) !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .36) !important;
    color: #f8fafc !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosProdutoPos .pos-resultado-item,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosClientePos .pos-resultado-cliente {
    background: #101b2e !important;
    border-color: rgba(148, 163, 184, .22) !important;
    color: #f8fafc !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosProdutoPos .pos-resultado-item:hover,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosProdutoPos .pos-resultado-item.active,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosClientePos .pos-resultado-cliente:hover {
    background: rgba(34, 211, 238, .12) !important;
    border-color: rgba(34, 211, 238, .52) !important;
    color: #ffffff !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosProdutoPos .pos-resultado-item strong,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosClientePos .pos-resultado-cliente strong {
    color: #f8fafc !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosProdutoPos .pos-resultado-item [style*="color:#6b7280"],
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosProdutoPos .pos-resultado-item [style*="color: #6b7280"],
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosClientePos .pos-resultado-cliente [style*="color:#6b7280"],
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosClientePos .pos-resultado-cliente [style*="color: #6b7280"] {
    color: #b8c6d9 !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosProdutoPos .pos-resultado-item [style*="color:#0369a1"],
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosProdutoPos .pos-resultado-item [style*="color: #0369a1"],
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosProdutoPos .pos-resultado-item [style*="color:#2563eb"],
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosProdutoPos .pos-resultado-item [style*="color: #2563eb"] {
    color: #67e8f9 !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosProdutoPos .pos-resultado-item[data-acao="novo_produto"],
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosClientePos .pos-resultado-cliente[data-acao="novo_cliente"] {
    background: rgba(34, 211, 238, .12) !important;
    border-color: rgba(34, 211, 238, .34) !important;
    color: #dff9ff !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosClientePos .pos-resultado-cliente[style*="background:#fee2e2"],
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #resultadosClientePos .pos-resultado-cliente[style*="background: #fee2e2"],
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #avisoSelecioneUsuario {
    background: rgba(244, 63, 94, .13) !important;
    border-color: rgba(244, 63, 94, .32) !important;
    color: #fecdd3 !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #clienteSelecionadoPos.pos-cliente-selecionado {
    background: rgba(16, 185, 129, .10) !important;
    border-color: rgba(52, 211, 153, .30) !important;
    color: #e9fff6 !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #clienteSelecionadoInfo,
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) #clienteSelecionadoInfo :where(strong, span) {
    color: #f8fafc !important;
}

/* Orcamento: mantem a badge "Cliente Final" legivel no modo escuro. */
html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) :where(
    #clienteTipoBadgePos[style*="background:#fde68a"],
    #clienteTipoBadgePos[style*="background: #fde68a"],
    #clienteSelecionadoInfo span[style*="background:#fef3c7"],
    #clienteSelecionadoInfo span[style*="background: #fef3c7"],
    #clienteSelecionadoInfo span[style*="background:#fde68a"],
    #clienteSelecionadoInfo span[style*="background: #fde68a"],
    #resultadosClientePos .pos-resultado-cliente span[style*="background:#fef3c7"],
    #resultadosClientePos .pos-resultado-cliente span[style*="background: #fef3c7"],
    #resultadosClientePos .pos-resultado-cliente span[style*="background:#fde68a"],
    #resultadosClientePos .pos-resultado-cliente span[style*="background: #fde68a"]
) {
    background: #fef3c7 !important;
    border-color: #fcd34d !important;
    color: #78350f !important;
    text-shadow: none !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) .pos-info-section {
    background: #111b2d !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    color: #f8fafc !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) .pos-info-section :where(h3, label, span, small) {
    color: #f8fafc !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) .pos-info-section small {
    color: #b8c6d9 !important;
}

html.gc-erp-online-theme.gc-dark-mode body:has(#formOrcamento) a[href="/pedido-assistido"] {
    background: rgba(34, 211, 238, .12) !important;
    border-color: rgba(34, 211, 238, .34) !important;
    color: #dff9ff !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22) !important;
}

/* Dedicated scroll fix for large edit modals with form-wrapped bodies. */
@media screen {
    html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay {
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        padding: 16px !important;
    }

    html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay > .modal {
        display: grid !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        width: min(95vw, 1120px) !important;
        max-width: min(95vw, 1120px) !important;
        height: min(860px, calc(100vh - 32px)) !important;
        height: min(860px, calc(100dvh - 32px)) !important;
        max-height: calc(100vh - 32px) !important;
        max-height: calc(100dvh - 32px) !important;
        min-height: 0 !important;
        overflow: hidden !important;
        top: auto !important;
        transform: none !important;
    }

    html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay > .modal > form {
        display: grid !important;
        grid-template-rows: minmax(0, 1fr) auto !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay > .modal > form > .modal-content {
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding-right: 1.25rem !important;
        scrollbar-gutter: stable !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay > .modal > form > .modal-footer {
        flex: none !important;
        min-height: 86px !important;
    }

    html.gc-erp-online-theme #modalCliente.modal-overlay {
        overflow: hidden !important;
        padding: 16px !important;
    }

    html.gc-erp-online-theme #modalCliente.modal-overlay > .modal-cliente {
        display: grid !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        height: min(780px, calc(100vh - 32px)) !important;
        height: min(780px, calc(100dvh - 32px)) !important;
        max-height: calc(100vh - 32px) !important;
        max-height: calc(100dvh - 32px) !important;
        margin: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        top: auto !important;
        transform: none !important;
    }

    html.gc-erp-online-theme #modalCliente.modal-overlay > .modal-cliente > form.modal-content {
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-gutter: stable !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    @media (max-width: 768px) {
        html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay,
        html.gc-erp-online-theme #modalCliente.modal-overlay {
            align-items: flex-end !important;
            padding: 0 !important;
        }

        html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay > .modal,
        html.gc-erp-online-theme #modalCliente.modal-overlay > .modal-cliente {
            width: 100% !important;
            max-width: 100% !important;
            height: 94vh !important;
            height: 94dvh !important;
            max-height: 94vh !important;
            max-height: 94dvh !important;
            border-radius: 18px 18px 0 0 !important;
        }
    }
}

/* PDV: remove sobras claras dos campos e listas no modo escuro. */
html.gc-erp-online-theme.gc-dark-mode body.pos-body .pos-product-bar {
    background: rgba(11, 19, 34, .98) !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 12px 26px rgba(0, 0, 0, .22) !important;
}

html.gc-erp-online-theme.gc-dark-mode body.pos-body #filtroCategoria,
html.gc-erp-online-theme.gc-dark-mode body.pos-body #buscaProdutoPos,
html.gc-erp-online-theme.gc-dark-mode body.pos-body #buscaClientePos,
html.gc-erp-online-theme.gc-dark-mode body.pos-body .pos-product-input,
html.gc-erp-online-theme.gc-dark-mode body.pos-body .pos-search-input,
html.gc-erp-online-theme.gc-dark-mode body.pos-body .pos-category-filter {
    background: #0b1322 !important;
    border-color: rgba(148, 163, 184, .24) !important;
    color: #f8fafc !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme.gc-dark-mode body.pos-body #buscaProdutoPos:focus,
html.gc-erp-online-theme.gc-dark-mode body.pos-body #buscaClientePos:focus,
html.gc-erp-online-theme.gc-dark-mode body.pos-body #filtroCategoria:focus {
    background: #0b1322 !important;
    border-color: rgba(34, 211, 238, .72) !important;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, .13) !important;
}

html.gc-erp-online-theme.gc-dark-mode body.pos-body #buscaProdutoPos::placeholder,
html.gc-erp-online-theme.gc-dark-mode body.pos-body #buscaClientePos::placeholder {
    color: #7f91a8 !important;
}

html.gc-erp-online-theme.gc-dark-mode body.pos-body .pos-product-icon,
html.gc-erp-online-theme.gc-dark-mode body.pos-body .pos-product-icon i {
    color: #9fb2c8 !important;
}

html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosProdutoPos.pos-resultados-busca {
    background: #0d1728 !important;
    border-color: rgba(148, 163, 184, .24) !important;
    box-shadow: 0 18px 34px rgba(0, 0, 0, .36) !important;
    color: #f8fafc !important;
}

html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosProdutoPos .pos-resultado-item,
html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosClientePos .pos-resultado-cliente {
    background: #101b2e !important;
    border-color: rgba(148, 163, 184, .22) !important;
    color: #f8fafc !important;
}

html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosProdutoPos .pos-resultado-item:hover,
html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosProdutoPos .pos-resultado-item.active,
html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosClientePos .pos-resultado-cliente:hover {
    background: rgba(34, 211, 238, .12) !important;
    border-color: rgba(34, 211, 238, .52) !important;
    color: #ffffff !important;
}

html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosProdutoPos .pos-resultado-item strong,
html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosClientePos .pos-resultado-cliente strong {
    color: #f8fafc !important;
}

html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosProdutoPos .pos-resultado-item [style*="color:#6b7280"],
html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosProdutoPos .pos-resultado-item [style*="color: #6b7280"],
html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosClientePos .pos-resultado-cliente [style*="color:#6b7280"],
html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosClientePos .pos-resultado-cliente [style*="color: #6b7280"] {
    color: #b8c6d9 !important;
}

html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosProdutoPos .pos-resultado-item [style*="color:#0369a1"],
html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosProdutoPos .pos-resultado-item [style*="color: #0369a1"],
html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosProdutoPos .pos-resultado-item [style*="color:#2563eb"],
html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosProdutoPos .pos-resultado-item [style*="color: #2563eb"] {
    color: #67e8f9 !important;
}

html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosProdutoPos .pos-resultado-item[data-acao="novo_produto"],
html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosClientePos .pos-resultado-cliente[data-acao="novo_cliente"] {
    background: rgba(34, 211, 238, .12) !important;
    border-color: rgba(34, 211, 238, .34) !important;
    color: #dff9ff !important;
}

html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosClientePos .pos-resultado-cliente[style*="background:#fee2e2"],
html.gc-erp-online-theme.gc-dark-mode body.pos-body #resultadosClientePos .pos-resultado-cliente[style*="background: #fee2e2"] {
    background: rgba(244, 63, 94, .13) !important;
    border-color: rgba(244, 63, 94, .32) !important;
    color: #fecdd3 !important;
}

html.gc-erp-online-theme.gc-dark-mode body.pos-body #clienteSelecionadoPos.pos-cliente-selecionado {
    background: rgba(16, 185, 129, .10) !important;
    border-color: rgba(52, 211, 153, .30) !important;
    color: #e9fff6 !important;
}

html.gc-erp-online-theme.gc-dark-mode body.pos-body #clienteSelecionadoInfo,
html.gc-erp-online-theme.gc-dark-mode body.pos-body #clienteSelecionadoInfo :where(strong, span) {
    color: #f8fafc !important;
}

html.gc-erp-online-theme.gc-dark-mode body.pos-body #avisoSelecioneUsuario,
html.gc-erp-online-theme.gc-dark-mode body.pos-body #posClienteBloqueadoAviso {
    background: rgba(244, 63, 94, .13) !important;
    border-color: rgba(244, 63, 94, .32) !important;
    color: #fecdd3 !important;
}

html.gc-erp-online-theme.gc-dark-mode body.pos-body a[href="/pedido-assistido"] {
    background: rgba(34, 211, 238, .12) !important;
    border-color: rgba(34, 211, 238, .34) !important;
    color: #dff9ff !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22) !important;
}

/* Final override: edit modals must keep footer visible and scroll only the form body. */
@media screen {
    html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay {
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        padding: 16px !important;
    }

    html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay > .modal {
        display: grid !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        width: min(95vw, 1120px) !important;
        max-width: min(95vw, 1120px) !important;
        height: min(860px, calc(100vh - 32px)) !important;
        height: min(860px, calc(100dvh - 32px)) !important;
        max-height: calc(100vh - 32px) !important;
        max-height: calc(100dvh - 32px) !important;
        min-height: 0 !important;
        overflow: hidden !important;
        top: auto !important;
        transform: none !important;
    }

    html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay > .modal > form {
        display: grid !important;
        grid-template-rows: minmax(0, 1fr) auto !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay > .modal > form > .modal-content {
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding-right: 1.25rem !important;
        scrollbar-gutter: stable !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay > .modal > form > .modal-footer {
        flex: none !important;
        min-height: 86px !important;
    }

    html.gc-erp-online-theme #modalCliente.modal-overlay {
        overflow: hidden !important;
        padding: 16px !important;
    }

    html.gc-erp-online-theme #modalCliente.modal-overlay > .modal-cliente {
        display: grid !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        height: min(780px, calc(100vh - 32px)) !important;
        height: min(780px, calc(100dvh - 32px)) !important;
        max-height: calc(100vh - 32px) !important;
        max-height: calc(100dvh - 32px) !important;
        margin: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        top: auto !important;
        transform: none !important;
    }

    html.gc-erp-online-theme #modalCliente.modal-overlay > .modal-cliente > form.modal-content {
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-gutter: stable !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    @media (max-width: 768px) {
        html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay,
        html.gc-erp-online-theme #modalCliente.modal-overlay {
            align-items: flex-end !important;
            padding: 0 !important;
        }

        html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay > .modal,
        html.gc-erp-online-theme #modalCliente.modal-overlay > .modal-cliente {
            width: 100% !important;
            max-width: 100% !important;
            height: 94vh !important;
            height: 94dvh !important;
            max-height: 94vh !important;
            max-height: 94dvh !important;
            border-radius: 18px 18px 0 0 !important;
        }
    }
}

/* Modal scroll safety
   Large edit forms can be taller than the viewport. Keep the modal chrome fixed
   and let the form body scroll, even when page-specific styles use inline rules. */
html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: clamp(12px, 3vh, 28px) !important;
    overscroll-behavior: contain !important;
}

html.gc-erp-online-theme :where(.modal-overlay.active, .modal-overlay[style*="flex"], .modal-overlay[style*="block"], [class*="modal-overlay"].active, [class*="modal-overlay"][style*="flex"], [class*="modal-overlay"][style*="block"]) {
    align-items: flex-start !important;
    justify-content: center !important;
}

html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(
    .modal,
    .modal-content,
    .modal-cliente,
    .modal-produto,
    .modal-categoria,
    .modal-conta,
    .modal-usuario,
    .modal-cupom,
    .modal-orcamento,
    .modal-venda,
    .modal-status-os,
    .modal-caixa,
    .modal-impressao,
    .modal-conta-recebimento,
    .pos-modal
) {
    display: flex !important;
    flex-direction: column !important;
    max-height: calc(100vh - 32px) !important;
    max-height: calc(100dvh - 32px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    top: auto !important;
    transform: none !important;
}

html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(.modal, .modal-cliente, .modal-venda, .modal-produto, .modal-content, .pos-modal) > :where(.modal-header, .pos-modal-header),
html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(.modal, .modal-cliente, .modal-venda, .modal-produto, .modal-content, .pos-modal) > form > :where(.modal-header, .pos-modal-header) {
    flex: 0 0 auto !important;
}

html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(.modal, .modal-cliente, .modal-venda, .modal-produto, .modal-content, .pos-modal) > form {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(.modal, .modal-cliente, .modal-venda, .modal-produto, .modal-content, .pos-modal) > :where(.modal-content, .modal-body, .pos-modal-body),
html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(.modal, .modal-cliente, .modal-venda, .modal-produto, .modal-content, .pos-modal) > form > :where(.modal-content, .modal-body, .pos-modal-body),
html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > .modal-cliente > form.modal-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable !important;
    overscroll-behavior: contain !important;
}

html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(.modal, .modal-cliente, .modal-venda, .modal-produto, .modal-content, .pos-modal) :where(.modal-footer, .form-actions, .pos-modal-footer),
html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(.modal, .modal-cliente, .modal-venda, .modal-produto, .modal-content, .pos-modal) > form > :where(.modal-footer, .form-actions, .pos-modal-footer) {
    flex: 0 0 auto !important;
}

@media (max-width: 768px) {
    html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) {
        padding: 0 !important;
        align-items: flex-end !important;
    }

    html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(
        .modal,
        .modal-content,
        .modal-cliente,
        .modal-produto,
        .modal-categoria,
        .modal-conta,
        .modal-usuario,
        .modal-cupom,
        .modal-orcamento,
        .modal-venda,
        .modal-status-os,
        .modal-caixa,
        .modal-impressao,
        .modal-conta-recebimento,
        .pos-modal
    ) {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 94vh !important;
        max-height: 94dvh !important;
        border-radius: 18px 18px 0 0 !important;
    }
}

/* Editar venda/orcamento: os blocos internos nao podem encolher ate esconder os itens. */
html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento) .modal-content > * {
    flex-shrink: 0 !important;
}

html.gc-erp-online-theme #editVendaItens,
html.gc-erp-online-theme #editOrcItens {
    min-height: 110px !important;
}

/* Assistente IA - layout de chat premium */
html.gc-erp-online-theme body:has(.assistant-page) {
    overflow: hidden !important;
}

html.gc-erp-online-theme .main-content.assistant-page {
    width: calc(100% - 250px) !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 0 0 250px !important;
    padding: 5.35rem 1.85rem 1.15rem !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-content: stretch !important;
    gap: 0 !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-bar,
html.gc-erp-online-theme .assistant-page .chat-container {
    width: min(100%, 1040px) !important;
    max-width: 1040px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-bar {
    min-height: 76px !important;
    padding: 1rem 1.15rem !important;
    border: 1px solid rgba(88, 75, 54, .15) !important;
    border-bottom: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    background:
        radial-gradient(circle at 4% 10%, rgba(0, 152, 170, .09), transparent 14rem),
        linear-gradient(180deg, rgba(255, 253, 247, .98), rgba(250, 244, 232, .96)) !important;
    box-shadow: var(--gc-shell-inner), 0 16px 34px rgba(83, 66, 31, .08) !important;
    position: relative !important;
    z-index: 3 !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-bar::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 4px !important;
    border-radius: 22px 22px 0 0 !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-left {
    min-width: 0 !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-left .avatar-sm,
html.gc-erp-online-theme .assistant-page .welcome-avatar,
html.gc-erp-online-theme .assistant-page .msg.bot .msg-avatar {
    background: linear-gradient(135deg, var(--gc-cyan), var(--gc-magenta)) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(0, 152, 170, .18) !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-left h3 {
    color: var(--gc-black) !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-left small {
    color: #607073 !important;
    font-weight: 650 !important;
}

html.gc-erp-online-theme .assistant-page .ia-status-pill {
    margin-left: .55rem !important;
    border-color: rgba(19, 150, 109, .22) !important;
    background: var(--gc-green-soft) !important;
    color: var(--gc-green) !important;
    white-space: nowrap !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-right {
    flex: 0 0 auto !important;
}

html.gc-erp-online-theme .assistant-page .btn-top {
    min-height: 36px !important;
    border-radius: 12px !important;
    border-color: rgba(88, 75, 54, .14) !important;
    background: rgba(255, 253, 247, .84) !important;
    color: #506066 !important;
    font-weight: 850 !important;
}

html.gc-erp-online-theme .assistant-page .btn-top:hover {
    border-color: rgba(0, 152, 170, .26) !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme .assistant-page .chat-container {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid rgba(88, 75, 54, .15) !important;
    border-top: 0 !important;
    border-radius: 0 0 22px 22px !important;
    background:
        radial-gradient(circle at 8% 0, rgba(0, 152, 170, .06), transparent 16rem),
        radial-gradient(circle at 92% 12%, rgba(216, 170, 24, .10), transparent 18rem),
        linear-gradient(180deg, rgba(255, 250, 240, .90), rgba(255, 246, 226, .80)) !important;
    box-shadow: var(--gc-shell-inner), 0 24px 48px rgba(83, 66, 31, .09) !important;
}

html.gc-erp-online-theme .assistant-page .chat-messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 1.15rem 1.35rem !important;
    gap: 1rem !important;
    scrollbar-gutter: stable !important;
}

html.gc-erp-online-theme .assistant-page .chat-messages::-webkit-scrollbar {
    width: 10px !important;
}

html.gc-erp-online-theme .assistant-page .chat-messages::-webkit-scrollbar-track {
    background: rgba(238, 225, 205, .55) !important;
    border-radius: 999px !important;
}

html.gc-erp-online-theme .assistant-page .chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gc-cyan), var(--gc-green)) !important;
    border: 2px solid rgba(255, 250, 240, .92) !important;
    border-radius: 999px !important;
}

html.gc-erp-online-theme .assistant-page .msg {
    align-items: flex-end !important;
    gap: .72rem !important;
}

html.gc-erp-online-theme .assistant-page .msg-content {
    max-width: min(74%, 720px) !important;
}

html.gc-erp-online-theme .assistant-page .msg.user .msg-content {
    max-width: min(68%, 660px) !important;
}

html.gc-erp-online-theme .assistant-page .msg-avatar {
    width: 38px !important;
    height: 38px !important;
    border: 1px solid rgba(255, 255, 255, .72) !important;
}

html.gc-erp-online-theme .assistant-page .msg.user .msg-avatar {
    background: var(--gc-black) !important;
    box-shadow: 0 10px 20px rgba(20, 24, 27, .14) !important;
}

html.gc-erp-online-theme .assistant-page .msg-bubble {
    border-radius: 18px !important;
    padding: .82rem 1rem !important;
    font-size: .94rem !important;
    line-height: 1.58 !important;
    box-shadow: 0 12px 26px rgba(66, 52, 28, .07) !important;
}

html.gc-erp-online-theme .assistant-page .msg.bot .msg-bubble {
    border: 1px solid rgba(88, 75, 54, .13) !important;
    background: rgba(255, 253, 247, .98) !important;
    color: #415157 !important;
    border-bottom-left-radius: 7px !important;
}

html.gc-erp-online-theme .assistant-page .msg.user .msg-bubble {
    border: 1px solid rgba(0, 152, 170, .20) !important;
    background: linear-gradient(135deg, var(--gc-cyan), #087f8e) !important;
    color: #fff !important;
    border-bottom-right-radius: 7px !important;
}

html.gc-erp-online-theme .assistant-page .msg-time {
    color: #819092 !important;
    font-weight: 650 !important;
}

html.gc-erp-online-theme .assistant-page .chat-input-bar {
    flex: 0 0 auto !important;
    padding: .95rem 1.35rem 1.05rem !important;
    border-top: 1px solid rgba(88, 75, 54, .12) !important;
    background: linear-gradient(180deg, rgba(255, 250, 240, .70), rgba(255, 253, 247, .97)) !important;
}

html.gc-erp-online-theme .assistant-page .input-row {
    min-height: 58px !important;
    padding: .3rem .42rem .3rem 1rem !important;
    border: 1px solid rgba(88, 75, 54, .16) !important;
    border-radius: 17px !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 12px 28px rgba(83, 66, 31, .08) !important;
}

html.gc-erp-online-theme .assistant-page .input-row:focus-within {
    border-color: rgba(0, 152, 170, .45) !important;
    box-shadow: 0 0 0 4px rgba(0, 152, 170, .10), 0 14px 30px rgba(83, 66, 31, .08) !important;
}

html.gc-erp-online-theme .assistant-page .input-row input {
    color: var(--gc-black) !important;
    font-size: .95rem !important;
    font-weight: 650 !important;
}

html.gc-erp-online-theme .assistant-page .btn-send {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, var(--gc-black), var(--gc-cyan)) !important;
    box-shadow: 0 12px 24px rgba(0, 152, 170, .18) !important;
}

html.gc-erp-online-theme .assistant-page .input-meta {
    justify-content: space-between !important;
    padding: 0 .35rem !important;
    color: #7c8a8d !important;
    font-weight: 650 !important;
}

html.gc-erp-online-theme .assistant-page .welcome-area {
    justify-content: center !important;
    min-height: 100% !important;
    padding: 1.5rem !important;
}

html.gc-erp-online-theme .assistant-page .welcome-area h2 {
    color: var(--gc-black) !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme .assistant-page .welcome-chip {
    border-color: rgba(88, 75, 54, .14) !important;
    background: rgba(255, 253, 247, .94) !important;
    color: #415157 !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme .assistant-page .welcome-chip:hover {
    border-color: rgba(0, 152, 170, .28) !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme.gc-dark-mode .main-content.assistant-page {
    width: calc(100% - 250px) !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 0 0 250px !important;
    padding: 5.35rem 1.85rem 1.15rem !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
}

html.gc-erp-online-theme.gc-dark-mode .assistant-page .chat-container,
html.gc-erp-online-theme.gc-dark-mode .assistant-page .chat-top-bar {
    background: #101b2a !important;
    border-color: rgba(125, 150, 178, .22) !important;
}

html.gc-erp-online-theme.gc-dark-mode .assistant-page .msg.bot .msg-bubble,
html.gc-erp-online-theme.gc-dark-mode .assistant-page .input-row,
html.gc-erp-online-theme.gc-dark-mode .assistant-page .chat-input-bar {
    background: #152235 !important;
    border-color: rgba(125, 150, 178, .22) !important;
    color: #e8eef7 !important;
}

@media (max-width: 900px) {
    html.gc-erp-online-theme .main-content.assistant-page,
    html.gc-erp-online-theme.gc-dark-mode .main-content.assistant-page {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 4.55rem .85rem .85rem !important;
    }

    html.gc-erp-online-theme .assistant-page .chat-top-bar {
        flex-wrap: wrap !important;
        gap: .75rem !important;
    }

    html.gc-erp-online-theme .assistant-page .ia-status-pill {
        margin-left: 0 !important;
    }

    html.gc-erp-online-theme .assistant-page .msg-content,
    html.gc-erp-online-theme .assistant-page .msg.user .msg-content {
        max-width: 86% !important;
    }
}

/* Etapa 7 - Fiscal e ferramentas operacionais */
html.gc-erp-online-theme:not(.gc-dark-mode) {
    --gc-ops-surface: #fffaf0;
    --gc-ops-surface-strong: #fff5dc;
    --gc-ops-panel: rgba(255, 250, 240, .92);
    --gc-ops-border: rgba(168, 129, 40, .18);
    --gc-ops-shadow: 0 18px 44px rgba(94, 72, 24, .10);
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .main-content.fp,
    .xml-main,
    .pc-page,
    .main-content:has(.cp-pos-container),
    .main-content:has(.etiquetas-container)
) {
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 167, 184, .055), transparent 30%),
        radial-gradient(circle at 86% 8%, rgba(227, 181, 28, .12), transparent 28%),
        linear-gradient(180deg, #fffdf7 0%, #fff9eb 38%, #f7faf6 100%) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .pg-hdr,
    body.xml-page-body .masthead-copy,
    .pc-hero,
    .cp-header,
    .etiquetas-container .produtos-header
) {
    position: relative !important;
    border: 1px solid var(--gc-ops-border) !important;
    border-radius: 22px !important;
    background:
        linear-gradient(135deg, rgba(255, 250, 240, .96), rgba(255, 255, 250, .86)),
        var(--gc-ops-surface) !important;
    box-shadow: var(--gc-ops-shadow) !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .pg-hdr,
    body.xml-page-body .masthead-copy,
    .pc-hero,
    .cp-header,
    .etiquetas-container .produtos-header
)::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 4px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .fp .pg-hdr {
    padding: 1.35rem 1.5rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .fp .pg-hdr h1,
html.gc-erp-online-theme:not(.gc-dark-mode) .pc-hero-main h1,
html.gc-erp-online-theme:not(.gc-dark-mode) .cp-header h1,
html.gc-erp-online-theme:not(.gc-dark-mode) .etiquetas-container .produtos-header h1 {
    color: var(--gc-black) !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .fp .pg-hdr .sub,
html.gc-erp-online-theme:not(.gc-dark-mode) .pc-hero-main p,
html.gc-erp-online-theme:not(.gc-dark-mode) .cp-header p,
html.gc-erp-online-theme:not(.gc-dark-mode) .etiquetas-container .produtos-header p {
    color: #66717a !important;
    font-weight: 650 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .pg-hdr h1 i,
    .cp-header h1 i,
    .etiquetas-container .produtos-header h1 i
) {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .tabs,
    .pc-tabs
) {
    border: 1px solid var(--gc-ops-border) !important;
    border-radius: 17px !important;
    background: rgba(255, 250, 240, .82) !important;
    box-shadow: var(--gc-shell-inner) !important;
    gap: .38rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .tabs button,
    .pc-tabs button
) {
    min-height: 40px !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #52606b !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .tabs button:hover,
    .pc-tabs button:hover
) {
    background: rgba(255, 255, 255, .72) !important;
    border-color: rgba(0, 167, 184, .16) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .tabs button.on,
    .pc-tabs button.is-active
) {
    background: linear-gradient(135deg, var(--gc-green-soft), rgba(241, 251, 255, .82)) !important;
    border-color: rgba(19, 150, 109, .24) !important;
    color: var(--gc-green) !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .card,
    .fp .stat-card,
    .fp .cfg-nav-inner,
    .fp-modal .mbox,
    body.xml-page-body .dock-panel,
    body.xml-page-body .metric-card,
    body.xml-page-body .file-stage,
    body.xml-page-body .summary-box,
    body.xml-page-body .detail-block,
    .pc-card,
    .pc-stat-card,
    .cp-card,
    .produtos-selecionados,
    .configuracao-etiqueta,
    .area-impressao
) {
    border: 1px solid var(--gc-ops-border) !important;
    background:
        linear-gradient(180deg, rgba(255, 253, 247, .96), rgba(255, 248, 232, .84)),
        var(--gc-ops-panel) !important;
    box-shadow: var(--gc-shell-inner), var(--gc-ops-shadow) !important;
    border-radius: 20px !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .card,
    body.xml-page-body .dock-panel,
    .pc-card,
    .cp-card,
    .produtos-selecionados,
    .configuracao-etiqueta,
    .area-impressao
) {
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .card,
    body.xml-page-body .dock-panel,
    .pc-card,
    .cp-card,
    .produtos-selecionados,
    .configuracao-etiqueta,
    .area-impressao
)::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--gc-cyan), var(--gc-magenta), var(--gc-yellow), var(--gc-black)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .fp .card,
html.gc-erp-online-theme:not(.gc-dark-mode) body.xml-page-body .dock-panel,
html.gc-erp-online-theme:not(.gc-dark-mode) .pc-card,
html.gc-erp-online-theme:not(.gc-dark-mode) .cp-card,
html.gc-erp-online-theme:not(.gc-dark-mode) .produtos-selecionados,
html.gc-erp-online-theme:not(.gc-dark-mode) .configuracao-etiqueta,
html.gc-erp-online-theme:not(.gc-dark-mode) .area-impressao {
    position: relative !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .stat-card,
    body.xml-page-body .metric-card,
    .pc-stat-card
) {
    padding: 1rem 1.05rem !important;
    min-height: 112px !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .stat-card::before,
    body.xml-page-body .metric-card::before,
    .pc-stat-card::before
) {
    height: 5px !important;
    width: auto !important;
    inset: 0 0 auto 0 !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .st-ico,
    body.xml-page-body .metric-icon,
    .pc-card-title > i
) {
    border-radius: 14px !important;
    border: 1px solid rgba(0, 167, 184, .16) !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .st-ico.gr,
    body.xml-page-body .metric-green
) {
    background: var(--gc-green-soft) !important;
    color: var(--gc-green) !important;
    border-color: rgba(19, 150, 109, .22) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .st-ico.yw,
    body.xml-page-body .metric-gold
) {
    background: var(--gc-yellow-soft) !important;
    color: #8a6700 !important;
    border-color: rgba(227, 181, 28, .26) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .st-ico.rd,
    .badge-red
) {
    background: var(--gc-red-soft) !important;
    color: var(--gc-red) !important;
    border-color: rgba(201, 54, 66, .24) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .st-lbl,
    body.xml-page-body .metric-label,
    .pc-stat-card span
) {
    color: #7c6f61 !important;
    font-size: .71rem !important;
    letter-spacing: .055em !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .st-val,
    body.xml-page-body .metric-value,
    .pc-stat-card strong,
    .cp-resumo-total,
    .preco-valor
) {
    color: var(--gc-black) !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
}

/* Ajustes finais - garantir precedencia sobre as etapas visuais */
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-provider-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
    align-items: stretch !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-provider-card {
    min-height: 245px !important;
    padding: 1.15rem !important;
    gap: .7rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-provider-card > p:not(.storage-provider-status) {
    min-height: 3.65em !important;
    margin-top: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-provider-status {
    width: fit-content !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-provider-actions {
    justify-content: flex-start !important;
    align-items: center !important;
    gap: .52rem !important;
    flex-wrap: wrap !important;
    padding-top: .75rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-btn {
    flex: 0 0 auto !important;
    min-width: auto !important;
    min-height: 38px !important;
    padding: .58rem .78rem !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    border-radius: 12px !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-btn.primary[data-storage-provider] {
    min-width: 126px !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-btn.link-danger {
    min-height: 38px !important;
    padding: .58rem .2rem !important;
}

#modalImpressaoCaixa.modal-overlay,
#modalImpressaoFechamentoCaixa.modal-overlay {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 24px 12px !important;
    overflow-y: auto !important;
}

#modalImpressaoCaixa .modal-content-comprovante-caixa,
#modalImpressaoFechamentoCaixa .modal-content-comprovante-caixa {
    width: min(600px, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 48px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#modalImpressaoCaixa .modal-content-comprovante-caixa .modal-header,
#modalImpressaoFechamentoCaixa .modal-content-comprovante-caixa .modal-header {
    flex: 0 0 auto !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    background: inherit !important;
}

#modalImpressaoCaixa .conteudo-impressao-caixa,
#modalImpressaoFechamentoCaixa .conteudo-impressao-caixa {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 1.5rem 1.65rem !important;
}

#modalImpressaoCaixa .modal-content-comprovante-caixa .form-actions,
#modalImpressaoFechamentoCaixa .modal-content-comprovante-caixa .form-actions {
    flex: 0 0 auto !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 2 !important;
    margin-top: 0 !important;
    padding: 1rem 1.5rem !important;
    border-top: 1px solid rgba(88, 75, 54, .14) !important;
    background: linear-gradient(180deg, rgba(255, 250, 240, .96), rgba(255, 253, 247, .98)) !important;
}

/* Comprovantes de caixa no modo escuro */
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .conteudo-impressao-caixa,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .conteudo-impressao-caixa {
    background: #0b1220 !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .modal-content-comprovante-caixa .form-actions,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .modal-content-comprovante-caixa .form-actions {
    border-top-color: rgba(148, 163, 184, .22) !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(11, 18, 32, .98)) !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-caixa,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-caixa {
    background: linear-gradient(180deg, #111827 0%, #0b1220 100%) !important;
    border-color: rgba(148, 163, 184, .28) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .36) !important;
    color: #e5eefb !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-empresa,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-empresa {
    background: linear-gradient(135deg, rgba(34, 211, 238, .10), rgba(216, 61, 150, .07)) !important;
    border-color: rgba(125, 211, 252, .22) !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-empresa-info h2,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-empresa-info h2 {
    color: #f8fafc !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-empresa-info p,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-empresa-info p {
    color: #b8c6d9 !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-info,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-info,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-detalhes-secao,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-detalhes-secao {
    background: rgba(15, 23, 42, .84) !important;
    border-color: rgba(148, 163, 184, .22) !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-item,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-item,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-detalhe-item,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-detalhe-item {
    border-bottom-color: rgba(148, 163, 184, .16) !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-item:hover,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-item:hover,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-detalhe-item:hover,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-detalhe-item:hover {
    background: rgba(30, 41, 59, .82) !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-label,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-label {
    color: #aebed2 !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-value,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-value,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-detalhe-item span:first-child,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-detalhe-item span:first-child {
    color: #f8fafc !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-value.valor-destaque,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-value.valor-destaque {
    background: none !important;
    -webkit-text-fill-color: #67e8f9 !important;
    color: #67e8f9 !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-detalhes,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-detalhes {
    background: linear-gradient(135deg, rgba(245, 158, 11, .14), rgba(251, 191, 36, .07)) !important;
    border-color: rgba(251, 191, 36, .25) !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-detalhes-secao h4,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-detalhes-secao h4 {
    color: #fde68a !important;
    border-bottom-color: rgba(251, 191, 36, .22) !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .detalhe-obs,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .detalhe-obs {
    color: #cbd5e1 !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-footer,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-footer {
    background: linear-gradient(135deg, rgba(16, 185, 129, .14), rgba(6, 95, 70, .20)) !important;
    border-color: rgba(52, 211, 153, .25) !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-footer p,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-footer p {
    color: #b8f7d4 !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalImpressaoCaixa .comprovante-rodape,
html.gc-erp-online-theme.gc-dark-mode #modalImpressaoFechamentoCaixa .comprovante-rodape {
    color: #94a3b8 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) main.main-content.cr-page {
    width: calc(100% - 250px) !important;
    max-width: none !important;
    margin: 0 0 0 250px !important;
    box-sizing: border-box !important;
    padding: 5.25rem 1.85rem 1.6rem !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    padding: 5.2rem 1.85rem 1rem !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) .chat-top-bar {
    flex: 0 0 auto !important;
    border-radius: 18px 18px 0 0 !important;
    box-shadow: var(--gc-shell-inner), 0 12px 28px rgba(128, 93, 26, .07) !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) .chat-container {
    flex: 1 1 auto !important;
    width: min(100%, 980px) !important;
    max-width: 980px !important;
    height: auto !important;
    min-height: 0 !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) .chat-messages {
    min-height: 0 !important;
    padding: 1rem 1rem .8rem !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) .chat-input-bar {
    flex: 0 0 auto !important;
    padding: .75rem 1rem 0 !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) .input-row {
    min-height: 54px !important;
}

@media (max-width: 768px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) main.main-content.cr-page {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 4.2rem 1rem 1rem !important;
    }

    html.gc-erp-online-theme main.main-content:has(.chat-container) {
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: 4.2rem .75rem .75rem !important;
    }

    html.gc-erp-online-theme main.main-content:has(.chat-container) .chat-top-bar {
        flex-wrap: wrap !important;
        gap: .65rem !important;
    }
}

@media print {
    html.gc-erp-online-theme,
    html.gc-erp-online-theme body,
    html.gc-erp-online-theme .main-content,
    html.gc-erp-online-theme .detalhes-container,
    html.gc-erp-online-theme .container,
    html.gc-erp-online-theme .card-section,
    html.gc-erp-online-theme .orcamento-header-card,
    html.gc-erp-online-theme .empresa,
    html.gc-erp-online-theme .cupom-container,
    html.gc-erp-online-theme .cupom,
    html.gc-erp-online-theme .comprovante-container,
    html.gc-erp-online-theme .conteudo-impressao-caixa,
    html.gc-erp-online-theme [class*="print"] {
        background: #fff !important;
        background-image: none !important;
    }

    html.gc-erp-online-theme .main-content,
    html.gc-erp-online-theme .detalhes-container,
    html.gc-erp-online-theme .container {
        box-shadow: none !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    html.gc-erp-online-theme :where(
        .gc-app-topbar,
        .gc-sidebar,
        .sidebar,
        .menu-lateral,
        .menu-toggle,
        .sidebar-overlay,
        .header-usuario,
        .usuario-logado,
        .avatar-dropdown,
        .gc-user-menu,
        .acoes-print,
        .acoes-buttons,
        .no-print
    ) {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Assistente IA - precedencia final do chat */
html.gc-erp-online-theme body:has(.assistant-page) {
    overflow: hidden !important;
}

html.gc-erp-online-theme .main-content.assistant-page {
    width: calc(100% - 250px) !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 0 0 250px !important;
    padding: 5.35rem 1.85rem 1.15rem !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-content: stretch !important;
    gap: 0 !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-bar,
html.gc-erp-online-theme .assistant-page .chat-container {
    width: min(100%, 1040px) !important;
    max-width: 1040px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-bar {
    min-height: 76px !important;
    padding: 1rem 1.15rem !important;
    border: 1px solid rgba(88, 75, 54, .15) !important;
    border-bottom: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    background: radial-gradient(circle at 4% 10%, rgba(0, 152, 170, .09), transparent 14rem), linear-gradient(180deg, rgba(255, 253, 247, .98), rgba(250, 244, 232, .96)) !important;
    box-shadow: var(--gc-shell-inner), 0 16px 34px rgba(83, 66, 31, .08) !important;
    position: relative !important;
    z-index: 3 !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-bar::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 4px !important;
    border-radius: 22px 22px 0 0 !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-left {
    min-width: 0 !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-left .avatar-sm,
html.gc-erp-online-theme .assistant-page .welcome-avatar,
html.gc-erp-online-theme .assistant-page .msg.bot .msg-avatar {
    background: linear-gradient(135deg, var(--gc-cyan), var(--gc-magenta)) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(0, 152, 170, .18) !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-left h3 {
    color: var(--gc-black) !important;
    font-size: 1rem !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-left small {
    color: #607073 !important;
    font-weight: 650 !important;
}

html.gc-erp-online-theme .assistant-page .ia-status-pill {
    margin-left: .55rem !important;
    border-color: rgba(19, 150, 109, .22) !important;
    background: var(--gc-green-soft) !important;
    color: var(--gc-green) !important;
    white-space: nowrap !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-right {
    flex: 0 0 auto !important;
}

html.gc-erp-online-theme .assistant-page .btn-top {
    min-height: 36px !important;
    border-radius: 12px !important;
    border-color: rgba(88, 75, 54, .14) !important;
    background: rgba(255, 253, 247, .84) !important;
    color: #506066 !important;
    font-weight: 850 !important;
}

html.gc-erp-online-theme .assistant-page .btn-top:hover {
    border-color: rgba(0, 152, 170, .26) !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme .assistant-page .chat-container {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid rgba(88, 75, 54, .15) !important;
    border-top: 0 !important;
    border-radius: 0 0 22px 22px !important;
    background: radial-gradient(circle at 8% 0, rgba(0, 152, 170, .06), transparent 16rem), radial-gradient(circle at 92% 12%, rgba(216, 170, 24, .10), transparent 18rem), linear-gradient(180deg, rgba(255, 250, 240, .90), rgba(255, 246, 226, .80)) !important;
    box-shadow: var(--gc-shell-inner), 0 24px 48px rgba(83, 66, 31, .09) !important;
}

html.gc-erp-online-theme .assistant-page .chat-messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 1.15rem 1.35rem !important;
    gap: 1rem !important;
    scrollbar-gutter: stable !important;
}

html.gc-erp-online-theme .assistant-page .chat-messages::-webkit-scrollbar {
    width: 10px !important;
}

html.gc-erp-online-theme .assistant-page .chat-messages::-webkit-scrollbar-track {
    background: rgba(238, 225, 205, .55) !important;
    border-radius: 999px !important;
}

html.gc-erp-online-theme .assistant-page .chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gc-cyan), var(--gc-green)) !important;
    border: 2px solid rgba(255, 250, 240, .92) !important;
    border-radius: 999px !important;
}

html.gc-erp-online-theme .assistant-page .msg {
    align-items: flex-end !important;
    gap: .72rem !important;
}

html.gc-erp-online-theme .assistant-page .msg-content {
    max-width: min(74%, 720px) !important;
}

html.gc-erp-online-theme .assistant-page .msg.user .msg-content {
    max-width: min(68%, 660px) !important;
}

html.gc-erp-online-theme .assistant-page .msg-avatar {
    width: 38px !important;
    height: 38px !important;
    border: 1px solid rgba(255, 255, 255, .72) !important;
}

html.gc-erp-online-theme .assistant-page .msg.user .msg-avatar {
    background: var(--gc-black) !important;
    box-shadow: 0 10px 20px rgba(20, 24, 27, .14) !important;
}

html.gc-erp-online-theme .assistant-page .msg-bubble {
    border-radius: 18px !important;
    padding: .82rem 1rem !important;
    font-size: .94rem !important;
    line-height: 1.58 !important;
    box-shadow: 0 12px 26px rgba(66, 52, 28, .07) !important;
}

html.gc-erp-online-theme .assistant-page .msg.bot .msg-bubble {
    border: 1px solid rgba(88, 75, 54, .13) !important;
    background: rgba(255, 253, 247, .98) !important;
    color: #415157 !important;
    border-bottom-left-radius: 7px !important;
}

html.gc-erp-online-theme .assistant-page .msg.user .msg-bubble {
    border: 1px solid rgba(0, 152, 170, .20) !important;
    background: linear-gradient(135deg, var(--gc-cyan), #087f8e) !important;
    color: #fff !important;
    border-bottom-right-radius: 7px !important;
}

html.gc-erp-online-theme .assistant-page .msg-time {
    color: #819092 !important;
    font-weight: 650 !important;
}

html.gc-erp-online-theme .assistant-page .chat-input-bar {
    flex: 0 0 auto !important;
    padding: .95rem 1.35rem 1.05rem !important;
    border-top: 1px solid rgba(88, 75, 54, .12) !important;
    background: linear-gradient(180deg, rgba(255, 250, 240, .70), rgba(255, 253, 247, .97)) !important;
}

html.gc-erp-online-theme .assistant-page .input-row {
    min-height: 58px !important;
    padding: .3rem .42rem .3rem 1rem !important;
    border: 1px solid rgba(88, 75, 54, .16) !important;
    border-radius: 17px !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 12px 28px rgba(83, 66, 31, .08) !important;
}

html.gc-erp-online-theme .assistant-page .input-row:focus-within {
    border-color: rgba(0, 152, 170, .45) !important;
    box-shadow: 0 0 0 4px rgba(0, 152, 170, .10), 0 14px 30px rgba(83, 66, 31, .08) !important;
}

html.gc-erp-online-theme .assistant-page .input-row input {
    color: var(--gc-black) !important;
    font-size: .95rem !important;
    font-weight: 650 !important;
}

html.gc-erp-online-theme .assistant-page .btn-send {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, var(--gc-black), var(--gc-cyan)) !important;
    box-shadow: 0 12px 24px rgba(0, 152, 170, .18) !important;
}

html.gc-erp-online-theme .assistant-page .input-meta {
    justify-content: space-between !important;
    padding: 0 .35rem !important;
    color: #7c8a8d !important;
    font-weight: 650 !important;
}

html.gc-erp-online-theme .assistant-page .welcome-area {
    justify-content: center !important;
    min-height: 100% !important;
    padding: 1.5rem !important;
}

html.gc-erp-online-theme .assistant-page .welcome-area h2 {
    color: var(--gc-black) !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme .assistant-page .welcome-chip {
    border-color: rgba(88, 75, 54, .14) !important;
    background: rgba(255, 253, 247, .94) !important;
    color: #415157 !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme .assistant-page .welcome-chip:hover {
    border-color: rgba(0, 152, 170, .28) !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme.gc-dark-mode .main-content.assistant-page {
    width: calc(100% - 250px) !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 0 0 250px !important;
    padding: 5.35rem 1.85rem 1.15rem !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
}

html.gc-erp-online-theme.gc-dark-mode .assistant-page .chat-container,
html.gc-erp-online-theme.gc-dark-mode .assistant-page .chat-top-bar {
    background: #101b2a !important;
    border-color: rgba(125, 150, 178, .22) !important;
}

html.gc-erp-online-theme.gc-dark-mode .assistant-page .msg.bot .msg-bubble,
html.gc-erp-online-theme.gc-dark-mode .assistant-page .input-row,
html.gc-erp-online-theme.gc-dark-mode .assistant-page .chat-input-bar {
    background: #152235 !important;
    border-color: rgba(125, 150, 178, .22) !important;
    color: #e8eef7 !important;
}

@media (max-width: 900px) {
    html.gc-erp-online-theme .main-content.assistant-page,
    html.gc-erp-online-theme.gc-dark-mode .main-content.assistant-page {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 4.55rem .85rem .85rem !important;
    }

    html.gc-erp-online-theme .assistant-page .chat-top-bar {
        flex-wrap: wrap !important;
        gap: .75rem !important;
    }

    html.gc-erp-online-theme .assistant-page .ia-status-pill {
        margin-left: 0 !important;
    }

    html.gc-erp-online-theme .assistant-page .msg-content,
    html.gc-erp-online-theme .assistant-page .msg.user .msg-content {
        max-width: 86% !important;
    }
}

/* Ajustes finais - armazenamento, caixa, impressao e paginas especificas */
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-provider-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
    align-items: stretch !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-provider-card {
    min-height: 245px !important;
    padding: 1.15rem !important;
    gap: .7rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-provider-card header {
    margin-bottom: .15rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-provider-card > p:not(.storage-provider-status) {
    min-height: 3.65em !important;
    margin-top: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-provider-status {
    width: fit-content !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-provider-actions {
    justify-content: flex-start !important;
    align-items: center !important;
    gap: .52rem !important;
    flex-wrap: wrap !important;
    padding-top: .75rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-btn {
    flex: 0 0 auto !important;
    min-width: auto !important;
    min-height: 38px !important;
    padding: .58rem .78rem !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    border-radius: 12px !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-btn i {
    flex: 0 0 auto !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-btn.primary[data-storage-provider] {
    min-width: 126px !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-btn.link-danger {
    min-height: 38px !important;
    padding: .58rem .2rem !important;
}

#modalImpressaoCaixa.modal-overlay,
#modalImpressaoFechamentoCaixa.modal-overlay {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 24px 12px !important;
    overflow-y: auto !important;
}

#modalImpressaoCaixa .modal-content-comprovante-caixa,
#modalImpressaoFechamentoCaixa .modal-content-comprovante-caixa {
    width: min(600px, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 48px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#modalImpressaoCaixa .modal-content-comprovante-caixa .modal-header,
#modalImpressaoFechamentoCaixa .modal-content-comprovante-caixa .modal-header {
    flex: 0 0 auto !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    background: inherit !important;
}

#modalImpressaoCaixa .conteudo-impressao-caixa,
#modalImpressaoFechamentoCaixa .conteudo-impressao-caixa {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 1.5rem 1.65rem !important;
}

#modalImpressaoCaixa .modal-content-comprovante-caixa .form-actions,
#modalImpressaoFechamentoCaixa .modal-content-comprovante-caixa .form-actions {
    flex: 0 0 auto !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 2 !important;
    margin-top: 0 !important;
    padding: 1rem 1.5rem !important;
    border-top: 1px solid rgba(88, 75, 54, .14) !important;
    background: linear-gradient(180deg, rgba(255, 250, 240, .96), rgba(255, 253, 247, .98)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) main.main-content.cr-page {
    width: calc(100% - 250px) !important;
    max-width: none !important;
    margin: 0 0 0 250px !important;
    box-sizing: border-box !important;
    padding: 5.25rem 1.85rem 1.6rem !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    padding: 5.2rem 1.85rem 1rem !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) .chat-top-bar {
    flex: 0 0 auto !important;
    border-radius: 18px 18px 0 0 !important;
    box-shadow: var(--gc-shell-inner), 0 12px 28px rgba(128, 93, 26, .07) !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) .chat-container {
    flex: 1 1 auto !important;
    width: min(100%, 980px) !important;
    max-width: 980px !important;
    height: auto !important;
    min-height: 0 !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) .chat-messages {
    min-height: 0 !important;
    padding: 1rem 1rem .8rem !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) .chat-input-bar {
    flex: 0 0 auto !important;
    padding: .75rem 1rem 0 !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) .input-row {
    min-height: 54px !important;
}

@media (max-width: 768px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) main.main-content.cr-page {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 4.2rem 1rem 1rem !important;
    }

    html.gc-erp-online-theme main.main-content:has(.chat-container) {
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: 4.2rem .75rem .75rem !important;
    }

    html.gc-erp-online-theme main.main-content:has(.chat-container) .chat-top-bar {
        flex-wrap: wrap !important;
        gap: .65rem !important;
    }
}

@media print {
    html.gc-erp-online-theme,
    html.gc-erp-online-theme body,
    html.gc-erp-online-theme .main-content,
    html.gc-erp-online-theme .detalhes-container,
    html.gc-erp-online-theme .container,
    html.gc-erp-online-theme .card-section,
    html.gc-erp-online-theme .orcamento-header-card,
    html.gc-erp-online-theme .empresa,
    html.gc-erp-online-theme .cupom-container,
    html.gc-erp-online-theme .cupom,
    html.gc-erp-online-theme .comprovante-container,
    html.gc-erp-online-theme .conteudo-impressao-caixa,
    html.gc-erp-online-theme [class*="print"] {
        background: #fff !important;
        background-image: none !important;
    }

    html.gc-erp-online-theme .main-content,
    html.gc-erp-online-theme .detalhes-container,
    html.gc-erp-online-theme .container {
        box-shadow: none !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    html.gc-erp-online-theme :where(
        .gc-app-topbar,
        .gc-sidebar,
        .sidebar,
        .menu-lateral,
        .menu-toggle,
        .sidebar-overlay,
        .header-usuario,
        .usuario-logado,
        .avatar-dropdown,
        .gc-user-menu,
        .acoes-print,
        .acoes-buttons,
        .no-print
    ) {
        display: none !important;
        visibility: hidden !important;
    }
}

/* Ajuste final: sem faixa CMYK nos cards solicitados */
html.gc-erp-online-theme:not(.gc-dark-mode) .fp .stats .stat-card::before,
html.gc-erp-online-theme:not(.gc-dark-mode) body.xml-page-body .metrics-strip .metric-card::before,
html.gc-erp-online-theme:not(.gc-dark-mode) .main-content:has(.cp-pos-container) .cp-card::before,
html.gc-erp-online-theme:not(.gc-dark-mode) .pc-status-grid .pc-stat-card::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

/* Ajuste pos-conferencia da Etapa 7: remove faixas CMYK dos cards indicados */
html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .stats .stat-card,
    body.xml-page-body .metrics-strip .metric-card,
    .main-content:has(.cp-pos-container) .cp-card,
    .pc-status-grid .pc-stat-card
)::before {
    content: none !important;
    display: none !important;
}
html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .card,
    body.xml-page-body .dock-panel,
    .pc-card,
    .cp-card,
    .produtos-selecionados,
    .configuracao-etiqueta,
    .area-impressao
)::before,
html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .stat-card,
    body.xml-page-body .metric-card,
    .pc-stat-card
)::before {
    display: block !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp input,
    .fp select,
    .fp textarea,
    body.xml-page-body input,
    body.xml-page-body select,
    body.xml-page-body textarea,
    .pc-form-grid input,
    .pc-form-grid select,
    .pc-form-grid textarea,
    .pc-builder input,
    .pc-builder select,
    .cp-product-input,
    .cp-input-mini,
    .search-input,
    .configuracao-etiqueta select,
    .configuracao-etiqueta input,
    .quantidade-control input
) {
    border: 1px solid rgba(163, 126, 48, .20) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 250, .78) !important;
    color: var(--gc-ink) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp input:focus,
    .fp select:focus,
    .fp textarea:focus,
    body.xml-page-body input:focus,
    body.xml-page-body select:focus,
    body.xml-page-body textarea:focus,
    .pc-form-grid input:focus,
    .pc-form-grid select:focus,
    .pc-form-grid textarea:focus,
    .pc-builder input:focus,
    .pc-builder select:focus,
    .cp-product-input:focus,
    .search-input:focus,
    .configuracao-etiqueta select:focus,
    .configuracao-etiqueta input:focus
) {
    border-color: rgba(0, 167, 184, .42) !important;
    box-shadow: 0 0 0 4px rgba(0, 167, 184, .10), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
    outline: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .btn,
    body.xml-page-body .btn,
    .pc-btn,
    .cp-btn-primario,
    .cp-btn-secundario,
    .cp-product-search-btn,
    .btn-imprimir,
    .btn-quantidade,
    .btn-remover
) {
    min-height: 38px !important;
    border-radius: 12px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    box-shadow: var(--gc-shell-inner) !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .btn:hover,
    body.xml-page-body .btn:hover,
    .pc-btn:hover,
    .cp-btn-primario:hover,
    .cp-btn-secundario:hover,
    .cp-product-search-btn:hover,
    .btn-imprimir:hover,
    .btn-quantidade:hover,
    .btn-remover:hover
) {
    transform: translateY(-1px) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .btn-p,
    body.xml-page-body .btn-primary,
    .pc-btn-primary,
    .cp-btn-primario,
    .cp-product-search-btn,
    .btn-imprimir,
    .btn-quantidade
) {
    border: 1px solid rgba(0, 131, 148, .18) !important;
    background: linear-gradient(135deg, var(--gc-cyan), #087e95) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 26px rgba(0, 167, 184, .18) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .btn-o,
    body.xml-page-body .btn-secondary,
    .pc-btn-muted,
    .pc-btn-soft,
    .cp-btn-secundario
) {
    border: 1px solid rgba(163, 126, 48, .20) !important;
    background: rgba(255, 253, 247, .82) !important;
    color: #41535b !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .btn-d,
    .btn-remover
) {
    border: 1px solid rgba(201, 54, 66, .22) !important;
    background: var(--gc-red-soft) !important;
    color: var(--gc-red) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp table,
    body.xml-page-body table,
    .pc-table
) {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp th,
    body.xml-page-body th,
    .pc-table th
) {
    background: rgba(255, 245, 220, .72) !important;
    color: #5a4a33 !important;
    border-color: rgba(163, 126, 48, .14) !important;
    font-weight: 950 !important;
    letter-spacing: .055em !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp td,
    body.xml-page-body td,
    .pc-table td
) {
    color: #2d3b43 !important;
    border-color: rgba(163, 126, 48, .10) !important;
    background: rgba(255, 253, 247, .52) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp tr:hover td,
    body.xml-page-body tr:hover td,
    .pc-table tr:hover td
) {
    background: rgba(239, 251, 252, .48) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .badge,
    body.xml-page-body .badge,
    .cp-card-header .badge-step,
    .cp-tag-preco-tipo
) {
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .b-aut,
    .badge-green,
    .amb-prod
) {
    background: var(--gc-green-soft) !important;
    color: var(--gc-green) !important;
    border-color: rgba(19, 150, 109, .24) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .b-rej,
    .amb-hom,
    .badge-gold
) {
    background: var(--gc-yellow-soft) !important;
    color: #8a6700 !important;
    border-color: rgba(227, 181, 28, .26) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .b-can,
    .fp .sefaz-st.off
) {
    background: var(--gc-red-soft) !important;
    color: var(--gc-red) !important;
    border-color: rgba(201, 54, 66, .24) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .b-nfe,
    .fp .b-nfce,
    .fp .b-sim,
    .badge-blue,
    .cp-card-header .badge-step,
    .cp-tag-preco-tipo
) {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border-color: rgba(0, 167, 184, .22) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .fp .cfg-nav-inner {
    gap: .24rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .fp .cn-item {
    border: 1px solid transparent !important;
    color: #6b7280 !important;
    border-radius: 12px !important;
    font-weight: 850 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .fp .cn-item:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .fp .cn-item.on {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border-color: rgba(0, 167, 184, .18) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .sh,
    .pc-card-title,
    .configuracao-etiqueta-header,
    .cp-card-header,
    body.xml-page-body .dock-head,
    body.xml-page-body .block-head,
    body.xml-page-body .preview-band
) {
    border-color: rgba(163, 126, 48, .12) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .sh h3,
    .pc-card-title h2,
    .configuracao-etiqueta-header h2,
    .produtos-selecionados h2,
    .cp-card-header h3,
    body.xml-page-body .dock-head h2,
    body.xml-page-body .block-head h3,
    body.xml-page-body .summary-box h3
) {
    color: var(--gc-black) !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .sh p,
    .pc-card-title p,
    .configuracao-etiqueta-header p,
    body.xml-page-body .dock-head p,
    .cp-carrinho-vazio,
    .etiqueta-layout-info
) {
    color: #67747b !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .upload,
    body.xml-page-body .file-stage,
    .etiqueta-layout-info
) {
    border: 1px dashed rgba(0, 167, 184, .28) !important;
    background:
        linear-gradient(135deg, rgba(241, 251, 255, .72), rgba(255, 251, 232, .46)),
        rgba(255, 253, 247, .78) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.xml-page-body .stage-icon,
html.gc-erp-online-theme:not(.gc-dark-mode) body.xml-page-body .section-tag,
html.gc-erp-online-theme:not(.gc-dark-mode) body.xml-page-body .masthead-kicker {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border: 1px solid rgba(0, 167, 184, .18) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.xml-page-body .selected-file {
    border: 1px solid rgba(19, 150, 109, .22) !important;
    background: var(--gc-green-soft) !important;
    color: var(--gc-green) !important;
    border-radius: 14px !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .pc-hero {
    color: var(--gc-ink) !important;
    padding: 1.35rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .pc-hero::after {
    content: "" !important;
    position: absolute !important;
    right: -100px !important;
    bottom: -120px !important;
    width: 250px !important;
    height: 250px !important;
    border-radius: 999px !important;
    background: radial-gradient(circle, rgba(227, 181, 28, .18), transparent 68%) !important;
    pointer-events: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .pc-eyebrow {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border: 1px solid rgba(0, 167, 184, .18) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .pc-hero-guide {
    border: 1px solid rgba(163, 126, 48, .16) !important;
    background: rgba(255, 253, 247, .72) !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .pc-hero-guide h3,
html.gc-erp-online-theme:not(.gc-dark-mode) .pc-quick-steps {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .pc-stat-highlight {
    background: linear-gradient(135deg, var(--gc-green-soft), rgba(255, 253, 247, .85)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .pc-form-grid label {
    color: #5a4a33 !important;
    letter-spacing: .04em !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .pc-tips-list li::marker {
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .cp-header {
    padding: 1.35rem 1.5rem !important;
    margin-bottom: 1.25rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .cp-header a {
    border: 1px solid rgba(0, 167, 184, .18) !important;
    background: linear-gradient(135deg, var(--gc-cyan), #087e95) !important;
    color: #fff !important;
    box-shadow: 0 14px 26px rgba(0, 167, 184, .16) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .cp-pos-container {
    align-items: start !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .cp-product-icon {
    border-radius: 13px 0 0 13px !important;
    background: var(--gc-black) !important;
    color: #fff !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .cp-resultados-busca,
html.gc-erp-online-theme:not(.gc-dark-mode) .autocomplete-list {
    border: 1px solid rgba(163, 126, 48, .18) !important;
    border-radius: 16px !important;
    background: #fffdf7 !important;
    box-shadow: 0 22px 50px rgba(64, 48, 18, .18) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .cp-resultados-busca .pos-resultado-item:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .autocomplete-item:hover {
    background: var(--gc-cyan-soft) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .cp-carrinho-itens {
    border-radius: 15px !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .cp-resumo {
    border-top-color: rgba(163, 126, 48, .14) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .etiquetas-container {
    max-width: 1400px !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .etiquetas-container .produtos-header {
    padding: 1.3rem 1.45rem !important;
    margin-bottom: 1.15rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .produto-item {
    border: 1px solid rgba(163, 126, 48, .16) !important;
    border-radius: 15px !important;
    background: rgba(255, 253, 247, .75) !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .produto-item:hover {
    border-color: rgba(0, 167, 184, .26) !important;
    background: var(--gc-cyan-soft) !important;
    transform: translateY(-1px) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .produto-nome,
html.gc-erp-online-theme:not(.gc-dark-mode) .produto-nome-autocomplete {
    color: var(--gc-black) !important;
    font-weight: 900 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .produto-preco,
html.gc-erp-online-theme:not(.gc-dark-mode) .produto-preco-autocomplete {
    color: var(--gc-green) !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .etiqueta {
    border-color: rgba(17, 24, 39, .28) !important;
    box-shadow: 0 1px 3px rgba(17, 24, 39, .08) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .etiqueta-header {
    border-bottom-color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .fp-modal {
    background: rgba(28, 31, 34, .38) !important;
    backdrop-filter: blur(9px) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .fp-modal .mbox {
    position: relative !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .fp-modal .mbox::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 4px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .fp-toast,
html.gc-erp-online-theme:not(.gc-dark-mode) body.xml-page-body .toast {
    border-radius: 16px !important;
    box-shadow: 0 22px 42px rgba(47, 35, 16, .22) !important;
    font-weight: 900 !important;
}

@media (max-width: 1080px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) .cp-pos-container,
    html.gc-erp-online-theme:not(.gc-dark-mode) .pc-hero-split,
    html.gc-erp-online-theme:not(.gc-dark-mode) .pc-grid-2 {
        grid-template-columns: 1fr !important;
    }
}

@media print {
    html.gc-erp-online-theme :where(
        .etiquetas-container > .produtos-header,
        .configuracao-etiqueta,
        .produtos-selecionados,
        .area-preview .btn-imprimir,
        .search-container,
        .fp .pg-hdr,
        .fp .tabs,
        .fp .filtros,
        body.xml-page-body .masthead-copy,
        body.xml-page-body .metrics-strip,
        body.xml-page-body .dock-actions
    ) {
        display: none !important;
    }

    html.gc-erp-online-theme .area-impressao,
    html.gc-erp-online-theme .area-print-only,
    html.gc-erp-online-theme .etiqueta {
        box-shadow: none !important;
        background: #fff !important;
    }
}

html.gc-erp-online-theme,
html.gc-erp-online-theme body {
    min-height: 100%;
}

html.gc-erp-online-theme body {
    color: var(--gc-ink) !important;
    background:
        linear-gradient(90deg, rgba(14, 165, 198, .018), rgba(199, 53, 143, .012) 50%, rgba(217, 180, 33, .016)),
        var(--gc-page) !important;
}

html.gc-erp-online-theme .main-content {
    background:
        linear-gradient(90deg, rgba(14, 165, 198, .018), rgba(199, 53, 143, .012) 48%, rgba(217, 180, 33, .014)),
        var(--gc-page) !important;
    color: var(--gc-ink) !important;
    padding: 5.25rem 1.85rem 1.6rem !important;
    margin-left: 250px !important;
    min-height: 100vh !important;
}

html.gc-erp-online-theme .gc-app-topbar {
    background: rgba(255, 255, 255, .94) !important;
    border-bottom: 1px solid var(--gc-line) !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .045) !important;
}

html.gc-erp-online-theme .gc-sidebar,
html.gc-erp-online-theme .sidebar.gc-sidebar {
    background: #fff !important;
    color: var(--gc-ink) !important;
    border-right: 1px solid var(--gc-line) !important;
    box-shadow: 10px 0 34px rgba(15, 23, 42, .06) !important;
    position: fixed !important;
}

html.gc-erp-online-theme .gc-sidebar::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--gc-cyan) 0 25%, var(--gc-magenta) 25% 50%, var(--gc-yellow) 50% 75%, var(--gc-black) 75% 100%);
    z-index: 1;
}

html.gc-erp-online-theme .gc-sidebar-header {
    padding-top: 1.25rem !important;
    background:
        linear-gradient(180deg, rgba(14, 165, 198, .025), rgba(199, 53, 143, .012)),
        #fff !important;
    border-bottom: 1px solid var(--gc-line) !important;
}

html.gc-erp-online-theme .gc-sidebar-brand {
    min-height: 56px !important;
}

html.gc-erp-online-theme .gc-sidebar-logo {
    max-height: 48px !important;
    filter: none !important;
}

html.gc-erp-online-theme .gc-sidebar-logo-fallback {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme .gc-sidebar-registered {
    margin-top: .58rem !important;
    padding: .6rem .65rem !important;
    border: 1px solid #cae7ff !important;
    border-radius: 10px !important;
    background: var(--gc-cyan-soft) !important;
    min-height: 0 !important;
}

html.gc-erp-online-theme .gc-sidebar-registered span {
    color: #0575a6 !important;
    font-size: .62rem !important;
}

html.gc-erp-online-theme .gc-sidebar-registered strong {
    color: var(--gc-ink) !important;
    min-height: 0 !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme .gc-sidebar-tools {
    background: #fff !important;
}

html.gc-erp-online-theme .gc-organize-btn,
html.gc-erp-online-theme .gc-group-add-btn {
    color: #34445a !important;
    background: #fff !important;
    border-color: var(--gc-line) !important;
}

html.gc-erp-online-theme .gc-organize-btn:hover,
html.gc-erp-online-theme .gc-organize-btn.is-active,
html.gc-erp-online-theme .gc-group-add-btn:hover {
    color: #075985 !important;
    background: var(--gc-cyan-soft) !important;
    border-color: #aee8fb !important;
}

html.gc-erp-online-theme .gc-sidebar-menu {
    background: #fff !important;
    scrollbar-color: #cbd5e1 transparent !important;
}

html.gc-erp-online-theme .gc-sidebar-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
}

html.gc-erp-online-theme .gc-menu-link,
html.gc-erp-online-theme .gc-menu-group-toggle {
    color: #34445a !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
}

html.gc-erp-online-theme .gc-menu-link i,
html.gc-erp-online-theme .gc-menu-group-toggle i {
    color: #7a8aa0 !important;
    opacity: 1 !important;
}

html.gc-erp-online-theme .gc-menu-link:hover,
html.gc-erp-online-theme .gc-menu-link:focus-visible,
html.gc-erp-online-theme .gc-menu-group-toggle:hover,
html.gc-erp-online-theme .gc-menu-group-toggle:focus-visible {
    color: #075985 !important;
    background: var(--gc-cyan-soft) !important;
    border-color: #cae7ff !important;
}

html.gc-erp-online-theme .gc-menu-link:hover i,
html.gc-erp-online-theme .gc-menu-group-toggle:hover i {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme .gc-menu-link.is-active {
    color: #075985 !important;
    background: var(--gc-cyan-soft) !important;
    border-color: #cae7ff !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .gc-menu-link.is-active i {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme .gc-theme-switch {
    display: inline-flex !important;
    align-items: center !important;
    gap: .52rem !important;
    min-height: 38px !important;
    padding: .36rem .62rem !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .92) !important;
    color: var(--gc-ink) !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    user-select: none !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .045) !important;
}

html.gc-erp-online-theme .gc-theme-switch input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

html.gc-erp-online-theme .gc-theme-switch-track {
    width: 44px !important;
    height: 24px !important;
    border-radius: 999px !important;
    padding: 3px !important;
    display: inline-flex !important;
    align-items: center !important;
    background: #eaf4fb !important;
    border: 1px solid #cdeaf5 !important;
    transition: background .18s ease, border-color .18s ease !important;
}

html.gc-erp-online-theme .gc-theme-switch-thumb {
    width: 18px !important;
    height: 18px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    color: var(--gc-cyan) !important;
    font-size: .62rem !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .14) !important;
    transition: transform .18s ease, color .18s ease !important;
}

html.gc-erp-online-theme .gc-theme-switch input:checked + .gc-theme-switch-track {
    background: #142033 !important;
    border-color: #34445a !important;
}

html.gc-erp-online-theme .gc-theme-switch input:checked + .gc-theme-switch-track .gc-theme-switch-thumb {
    transform: translateX(20px) !important;
    color: #d9b421 !important;
}

html.gc-erp-online-theme .gc-theme-switch-label {
    white-space: nowrap !important;
}

html.gc-erp-online-theme .gc-menu-group.is-open > .gc-menu-group-toggle {
    color: var(--gc-ink) !important;
    background: #f7fafc !important;
    border-color: var(--gc-line-soft) !important;
}

html.gc-erp-online-theme .gc-menu-group-items .gc-menu-link {
    margin-left: .25rem !important;
    width: calc(100% - .25rem) !important;
}

html.gc-erp-online-theme .gc-menu-divider,
html.gc-erp-online-theme .gc-sidebar-footer {
    border-color: var(--gc-line) !important;
    background: #fff !important;
}

html.gc-erp-online-theme .gc-menu-divider {
    background: var(--gc-line) !important;
}

html.gc-erp-online-theme .gc-user-trigger {
    color: var(--gc-ink) !important;
    background: #f8fbfd !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 10px !important;
}

html.gc-erp-online-theme .gc-user-trigger:hover,
html.gc-erp-online-theme .gc-user-trigger.is-open {
    background: var(--gc-cyan-soft) !important;
    border-color: #cae7ff !important;
}

html.gc-erp-online-theme .gc-user-avatar {
    color: #fff !important;
    background: var(--gc-magenta) !important;
}

html.gc-erp-online-theme .gc-user-info strong {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme .gc-user-info small,
html.gc-erp-online-theme .gc-user-chevron {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme .gc-user-dropdown {
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme .gc-user-dropdown-item {
    color: #334155 !important;
}

html.gc-erp-online-theme .gc-user-dropdown-item:hover {
    background: rgba(14, 165, 198, .09) !important;
}

html.gc-erp-online-theme .gc-user-dropdown-item.is-danger {
    color: #be123c !important;
}

html.gc-erp-online-theme .gc-user-dropdown-item.is-danger:hover {
    background: rgba(190, 18, 60, .08) !important;
}

html.gc-erp-online-theme .menu-toggle {
    background: #fff !important;
    color: var(--gc-ink) !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 10px !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme .dashboard-header,
html.gc-erp-online-theme .page-header,
html.gc-erp-online-theme .produtos-header,
html.gc-erp-online-theme .clientes-header,
html.gc-erp-online-theme .header-section,
html.gc-erp-online-theme .fiscal-header,
html.gc-erp-online-theme .pos-header,
html.gc-erp-online-theme .ordens-header {
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 14px !important;
    box-shadow: var(--gc-shadow-soft) !important;
    padding: 1.05rem 1.2rem !important;
    margin-bottom: 1.15rem !important;
    position: relative !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme .dashboard-header::before,
html.gc-erp-online-theme .page-header::before,
html.gc-erp-online-theme .produtos-header::before,
html.gc-erp-online-theme .clientes-header::before,
html.gc-erp-online-theme .header-section::before,
html.gc-erp-online-theme .fiscal-header::before,
html.gc-erp-online-theme .pos-header::before,
html.gc-erp-online-theme .ordens-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: rgba(14, 165, 198, .75);
}

html.gc-erp-online-theme :where(.dashboard-header, .page-header, .produtos-header, .clientes-header, .header-section, .fiscal-header, .pos-header, .ordens-header) h1 {
    color: var(--gc-ink) !important;
    font-size: clamp(1.25rem, 2vw, 1.72rem) !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme :where(.dashboard-header, .page-header, .produtos-header, .clientes-header, .header-section, .fiscal-header, .pos-header, .ordens-header) p,
html.gc-erp-online-theme .header-date {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme .header-separator {
    color: var(--gc-line) !important;
}

html.gc-erp-online-theme :where(.card, .table-card, .card-form, .report-card, .filtro-card, .caixa-card, .card-resumo, .resumo-card, .config-card, .info-card, .section-card, .stat-card, .metric-card, .dashboard-card) {
    background: rgba(255, 255, 255, .98) !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 12px !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme :where(.card, .table-card, .report-card, .filtro-card, .caixa-card, .card-resumo, .resumo-card, .config-card, .info-card, .section-card, .stat-card, .metric-card, .dashboard-card):hover {
    box-shadow: 0 12px 26px rgba(15, 23, 42, .07) !important;
}

html.gc-erp-online-theme .card-icon,
html.gc-erp-online-theme .icon-card,
html.gc-erp-online-theme .stat-icon,
html.gc-erp-online-theme .resumo-icon {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border-radius: 10px !important;
}

html.gc-erp-online-theme .card:nth-child(2n) .card-icon,
html.gc-erp-online-theme .stat-card:nth-child(2n) .stat-icon {
    background: #f8fbfd !important;
    color: #64748b !important;
}

html.gc-erp-online-theme .card:nth-child(3n) .card-icon,
html.gc-erp-online-theme .stat-card:nth-child(3n) .stat-icon {
    background: var(--gc-yellow-soft) !important;
    color: #806600 !important;
}

html.gc-erp-online-theme table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

html.gc-erp-online-theme :where(th, thead th) {
    background: #f7fafc !important;
    color: #34445a !important;
    border-color: var(--gc-line) !important;
    font-weight: 800 !important;
    letter-spacing: .03em !important;
}

html.gc-erp-online-theme :where(td, tbody td) {
    border-color: var(--gc-line-soft) !important;
    color: #27364a !important;
}

html.gc-erp-online-theme tbody tr:hover {
    background: rgba(0, 166, 223, .045) !important;
}

html.gc-erp-online-theme :where(input, select, textarea) {
    background: var(--gc-input) !important;
    border-color: #cfdbea !important;
    border-radius: 10px !important;
    color: #233047 !important;
}

html.gc-erp-online-theme :where(input, select, textarea):focus {
    border-color: var(--gc-cyan) !important;
    box-shadow: 0 0 0 4px rgba(0, 166, 223, .13) !important;
    background: #fff !important;
    outline: none !important;
}

html.gc-erp-online-theme :where(.form-group label, label) {
    color: #34445a !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme :where(.btn-primary, .btn-salvar, .btn-cadastrar, .btn-novo-cliente, .btn-novo-produto, .btn-nova-categoria, .btn-novo-meio, .btn-novo-usuario, .btn-abrir-caixa, .btn-fechar-caixa, .btn-ativar, .btn-verificar, .btn-backup, .btn-download-backup, button[class^="btn-novo"], button[class^="btn-nova"]) {
    color: #fff !important;
    background: var(--gc-cyan) !important;
    border-color: transparent !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 20px rgba(14, 165, 198, .13) !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme :where(.btn-primary, .btn-salvar, .btn-cadastrar, .btn-novo-cliente, .btn-novo-produto, .btn-nova-categoria, .btn-novo-meio, .btn-novo-usuario, .btn-abrir-caixa, .btn-fechar-caixa, .btn-ativar, .btn-verificar, .btn-backup, .btn-download-backup, button[class^="btn-novo"], button[class^="btn-nova"]):hover {
    filter: saturate(1.05) brightness(.98) !important;
    box-shadow: 0 12px 24px rgba(14, 165, 198, .16) !important;
}

html.gc-erp-online-theme :where(.btn-cancelar, .btn-secundario, .btn-limpar, .btn-voltar, .btn-filtro, .btn-outline, .btn-ver-detalhes-alertas) {
    color: #34445a !important;
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 10px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme :where(.btn-cancelar, .btn-secundario, .btn-limpar, .btn-voltar, .btn-filtro, .btn-outline, .btn-ver-detalhes-alertas):hover {
    color: #075985 !important;
    background: var(--gc-cyan-soft) !important;
    border-color: #cae7ff !important;
}

html.gc-erp-online-theme :where(.modal-content, .modal-cliente, .modal-usuario, .modal-payment, .gc-group-modal) {
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 14px !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .20) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme :where(.modal-header, .modal-footer, .gc-group-modal-head, .gc-group-modal-foot) {
    background: #fff !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme :where(.modal-header h2, .gc-group-modal-head h3) {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme :where(.badge, .status-badge, .caixa-status-badge, .licenca-mensal-pill) {
    border-radius: 999px !important;
}

html.gc-erp-online-theme .status-aberto,
html.gc-erp-online-theme .badge-success {
    background: var(--gc-green-soft) !important;
    color: #047857 !important;
}

html.gc-erp-online-theme .status-fechado,
html.gc-erp-online-theme .badge-danger {
    background: #fff1f2 !important;
    color: #be123c !important;
}

/* Clientes e Produtos */
html.gc-erp-online-theme :where(.clientes-container, .produtos-container) {
    max-width: 100% !important;
    padding: 0 !important;
}

html.gc-erp-online-theme .clientes-container .page-header {
    align-items: center !important;
}

html.gc-erp-online-theme .produtos-container .produtos-header {
    display: block !important;
}

html.gc-erp-online-theme .produtos-container .produtos-header-row {
    display: grid !important;
    grid-template-columns: minmax(230px, 1fr) minmax(320px, 560px) auto !important;
    align-items: center !important;
    gap: .9rem !important;
    margin-bottom: 0 !important;
}

html.gc-erp-online-theme :where(.clientes-container .header-left h1, .produtos-header-title h1) {
    margin: 0 !important;
}

html.gc-erp-online-theme :where(.clientes-container .header-left p, .produtos-header-title p) {
    margin-top: .28rem !important;
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme .clientes-container .filtros-card {
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 12px !important;
    box-shadow: var(--gc-shadow-soft) !important;
    padding: .9rem !important;
    gap: .75rem !important;
}

html.gc-erp-online-theme .clientes-container .filtros-card > div:last-child {
    gap: .55rem !important;
    flex-wrap: wrap !important;
}

html.gc-erp-online-theme :where(.produtos-search-box, .produtos-filter-box) {
    min-width: 0 !important;
}

html.gc-erp-online-theme .produtos-container .produtos-filters {
    justify-content: flex-end !important;
    max-width: none !important;
    gap: .65rem !important;
}

html.gc-erp-online-theme :where(.clientes-container #filtroNome, .clientes-container #filtroStatus, .clientes-container #filtroTipo, .produtos-search-box input, .produtos-filter-box select) {
    height: 42px !important;
    background: #f8fbfd !important;
    border: 1px solid #d8e3ef !important;
    border-radius: 10px !important;
    color: #27364a !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme :where(.clientes-container #filtroNome, .produtos-search-box input) {
    padding-left: 2.55rem !important;
}

html.gc-erp-online-theme :where(.clientes-container #filtroNome::placeholder, .produtos-search-box input::placeholder) {
    color: #8a97aa !important;
}

html.gc-erp-online-theme :where(.clientes-container #filtroNome:focus, .clientes-container #filtroStatus:focus, .clientes-container #filtroTipo:focus, .produtos-search-box input:focus, .produtos-filter-box select:focus) {
    background: #fff !important;
    border-color: var(--gc-cyan) !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 198, .11) !important;
}

html.gc-erp-online-theme .clientes-container #btnLimparFiltros {
    height: 42px !important;
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 10px !important;
    color: #34445a !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme .clientes-container #btnLimparFiltros:hover {
    background: var(--gc-cyan-soft) !important;
    border-color: #cae7ff !important;
    color: #075985 !important;
}

html.gc-erp-online-theme :where(.clientes-container .table-card, .produtos-container .table-card) {
    padding: 0 !important;
    overflow: auto !important;
    border-radius: 14px !important;
}

html.gc-erp-online-theme :where(.clientes-table, .produtos-table) {
    min-width: 760px !important;
}

html.gc-erp-online-theme :where(.clientes-table thead, .produtos-table thead) {
    background: #f8fbfd !important;
}

html.gc-erp-online-theme :where(.clientes-table th, .produtos-table th) {
    border-top: 0 !important;
    border-bottom: 1px solid var(--gc-line) !important;
    color: #5c6b7f !important;
    font-size: .72rem !important;
    letter-spacing: .045em !important;
    padding: .9rem 1rem !important;
}

html.gc-erp-online-theme :where(.clientes-table td, .produtos-table td) {
    padding: .9rem 1rem !important;
    border-bottom: 1px solid var(--gc-line-soft) !important;
    font-size: .9rem !important;
}

html.gc-erp-online-theme :where(.clientes-table tbody tr, .produtos-table tbody tr) {
    transition: background-color .15s ease !important;
}

html.gc-erp-online-theme :where(.clientes-table tbody tr:hover, .produtos-table tbody tr:hover) {
    background: #fbfdff !important;
}

html.gc-erp-online-theme :where(.clientes-table tbody tr:hover td, .produtos-table tbody tr:hover td) {
    background: transparent !important;
}

html.gc-erp-online-theme :where(.nome-cell, .preco-cell) {
    color: var(--gc-ink) !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme :where(.email-cell, .telefone-cell, .documento-cell) {
    color: #667085 !important;
}

html.gc-erp-online-theme :where(.badge-ativo, .badge-inativo) {
    border-radius: 999px !important;
    padding: .32rem .68rem !important;
    font-size: .68rem !important;
    letter-spacing: .035em !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .badge-ativo {
    background: var(--gc-green-soft) !important;
    color: #047857 !important;
}

html.gc-erp-online-theme .badge-inativo {
    background: #f3f5f8 !important;
    color: #526070 !important;
}

html.gc-erp-online-theme :where(.btn-acoes, .btn-editar, .btn-excluir) {
    width: 34px !important;
    height: 34px !important;
    border-radius: 9px !important;
    border: 1px solid var(--gc-line) !important;
    background: #fff !important;
    color: #7a8aa0 !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme :where(.btn-acoes:hover, .btn-editar:hover) {
    background: var(--gc-cyan-soft) !important;
    border-color: #cae7ff !important;
    color: #075985 !important;
    transform: none !important;
}

html.gc-erp-online-theme :where(.excluir-cliente:hover, .excluir-produto:hover, .btn-excluir:hover) {
    background: #fff1f2 !important;
    border-color: #fecdd3 !important;
    color: #be123c !important;
}

html.gc-erp-online-theme :where(.menu-acoes, .combo-menu) {
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 10px !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme :where(.menu-acoes a, .combo-item) {
    color: #34445a !important;
}

html.gc-erp-online-theme :where(.menu-acoes a:hover, .combo-item:hover) {
    background: var(--gc-cyan-soft) !important;
    color: #075985 !important;
}

html.gc-erp-online-theme :where(.modal-overlay.active, .modal-overlay[style*="block"]) {
    background: rgba(15, 23, 42, .46) !important;
    backdrop-filter: blur(2px);
}

html.gc-erp-online-theme :where(.modal-cliente, .modal-produto) {
    border: 1px solid var(--gc-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 26px 70px rgba(15, 23, 42, .22) !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme :where(.modal-cliente .modal-header, .modal-produto .modal-header) {
    padding: 1rem 1.2rem !important;
    background: #fff !important;
    border-bottom: 1px solid var(--gc-line) !important;
}

html.gc-erp-online-theme :where(.modal-cliente .modal-content, .modal-produto .modal-content) {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme :where(.modal-cliente .form-row, .modal-produto .form-row) {
    gap: .9rem !important;
}

html.gc-erp-online-theme :where(.toggle-item, .variacoes-section, .fiscal-section) {
    background: #f8fbfd !important;
    border: 1px solid var(--gc-line-soft) !important;
    border-radius: 12px !important;
}

html.gc-erp-online-theme :where(.toggle-label, .section-title) {
    color: var(--gc-ink) !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme .toggle-description {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme :where(.combo-toggle, .btn-gerar-codigo, .btn-adicionar-variacao) {
    border-radius: 10px !important;
}

html.gc-erp-online-theme .btn-gerar-codigo {
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    color: #075985 !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .btn-adicionar-variacao {
    background: var(--gc-cyan-soft) !important;
    border: 1px solid #cae7ff !important;
    color: #075985 !important;
}

/* Orçamentos, Vendas, POS e Financeiro */
html.gc-erp-online-theme :where(.orcamentos-container, .vendas-container, .contas-container, .valores-receber-container, .relatorios-container) {
    max-width: 100% !important;
    padding: 0 !important;
}

html.gc-erp-online-theme :where(.vendas-header, .contas-container .page-header, .valores-receber-container .page-header, .relatorios-container .page-header) {
    align-items: center !important;
}

html.gc-erp-online-theme :where(.btn-novo, .btn-venda-rapida, .btn-nova-conta, .btn-export, .btn-atualizar, .btn-filtrar, .btn-confirmar, .btn-gerar, .btn-exportar, .btn-imprimir) {
    border-radius: 10px !important;
    font-weight: 800 !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme :where(.btn-novo, .btn-venda-rapida, .btn-nova-conta, .btn-atualizar, .btn-confirmar, .btn-gerar) {
    background: var(--gc-cyan) !important;
    border: 1px solid transparent !important;
    color: #fff !important;
}

html.gc-erp-online-theme :where(.btn-export, .btn-filtrar, .btn-exportar, .btn-imprimir) {
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    color: #34445a !important;
}

html.gc-erp-online-theme :where(.btn-export:hover, .btn-filtrar:hover, .btn-exportar:hover, .btn-imprimir:hover) {
    background: var(--gc-cyan-soft) !important;
    border-color: #cae7ff !important;
    color: #075985 !important;
}

html.gc-erp-online-theme .btn-filtrar.ativo {
    background: var(--gc-cyan-soft) !important;
    border-color: #cae7ff !important;
    color: #075985 !important;
}

html.gc-erp-online-theme :where(.filtro-card, .filter-section, .filtros-toolbar, .grafico-card, .card-valores, .report-card) {
    background: rgba(255, 255, 255, .98) !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 14px !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme :where(.filtro-card, .filter-section) {
    padding: .95rem !important;
}

html.gc-erp-online-theme :where(.filtro-label, .filter-section label, .radio-option, .radio-label) {
    color: #34445a !important;
}

html.gc-erp-online-theme :where(.radio-group, .tab-switcher) {
    gap: .45rem !important;
}

html.gc-erp-online-theme .radio-group {
    align-items: center !important;
}

html.gc-erp-online-theme :where(.radio-option, .radio-label, .tab-switcher button) {
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 999px !important;
    padding: .46rem .8rem !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme :where(.radio-custom) {
    border-color: #b7c7d8 !important;
}

html.gc-erp-online-theme .radio-option input[type="radio"]:checked + .radio-custom {
    background: var(--gc-cyan) !important;
    border-color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme .tab-switcher {
    background: #eef6fb !important;
    border: 1px solid #d6e8f4 !important;
    border-radius: 999px !important;
    padding: 4px !important;
    width: fit-content !important;
}

html.gc-erp-online-theme .tab-switcher button {
    border-color: transparent !important;
    color: #526070 !important;
}

html.gc-erp-online-theme .tab-switcher button.active {
    color: #075985 !important;
    background: #fff !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06) !important;
}

html.gc-erp-online-theme .tab-switcher .badge-count {
    background: #e8f4fb !important;
    color: #075985 !important;
}

html.gc-erp-online-theme .bulk-bar {
    background: #f8fbfd !important;
    color: var(--gc-ink) !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 12px !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme .bulk-bar button {
    border-radius: 9px !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .orcamentos-grid {
    gap: 1rem !important;
    margin-top: 1rem !important;
}

html.gc-erp-online-theme .orcamento-card {
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 14px !important;
    box-shadow: var(--gc-shadow-soft) !important;
    padding: 1rem !important;
    transform: none !important;
}

html.gc-erp-online-theme .orcamento-card:hover {
    border-color: #cae7ff !important;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .075) !important;
    transform: translateY(-1px) !important;
}

html.gc-erp-online-theme .orcamento-card.selected {
    background: #fbfdff !important;
    border-color: var(--gc-cyan) !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 198, .11) !important;
}

html.gc-erp-online-theme .orcamento-header {
    border-bottom: 1px solid var(--gc-line-soft) !important;
    padding-bottom: .78rem !important;
}

html.gc-erp-online-theme .orcamento-numero {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme :where(.orcamento-status, .status-chip, .pagamento-chip, .badge-status, .badge-vendas, .badge-detalhe, .status-badge) {
    border-radius: 999px !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .orcamento-total {
    background: #f8fbfd !important;
    border: 1px solid var(--gc-line-soft) !important;
    color: #047857 !important;
    border-radius: 12px !important;
}

html.gc-erp-online-theme .orcamento-actions .btn-action {
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    color: #34445a !important;
    border-radius: 9px !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .orcamento-actions .btn-action:hover {
    background: var(--gc-cyan-soft) !important;
    border-color: #cae7ff !important;
    color: #075985 !important;
    transform: none !important;
}

html.gc-erp-online-theme .orcamento-actions .btn-visualizar,
html.gc-erp-online-theme .orcamento-actions .btn-converter {
    background: var(--gc-cyan-soft) !important;
    color: #075985 !important;
    border-color: #cae7ff !important;
}

html.gc-erp-online-theme .orcamento-actions .btn-excluir {
    background: #fff1f2 !important;
    color: #be123c !important;
    border-color: #fecdd3 !important;
}

html.gc-erp-online-theme :where(.vendas-container .table-card, .contas-container .table-card, .valores-receber-container .table-wrapper, .relatorios-container .table-responsive) {
    border: 1px solid var(--gc-line) !important;
    border-radius: 14px !important;
    box-shadow: var(--gc-shadow-soft) !important;
    background: #fff !important;
}

html.gc-erp-online-theme :where(.vendas-table, .valores-table, .data-table) {
    min-width: 760px !important;
}

html.gc-erp-online-theme .vendas-container .table-card {
    padding: 0 !important;
    overflow: auto !important;
}

html.gc-erp-online-theme :where(.valor-cell, .valor-pendente, .metric-value, .financeiro-value) {
    color: var(--gc-ink) !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme .valor-pendente.orange,
html.gc-erp-online-theme .metric-value.orange {
    color: #a36d00 !important;
}

html.gc-erp-online-theme :where(.pagamento-chip, .status-chip, .nf-badge-ok, .nf-aviso) {
    border: 1px solid var(--gc-line-soft) !important;
    background: #f8fbfd !important;
    color: #34445a !important;
}

html.gc-erp-online-theme .status-chip--pago,
html.gc-erp-online-theme .status-pago,
html.gc-erp-online-theme .badge-pago,
html.gc-erp-online-theme .badge-aprovado,
html.gc-erp-online-theme .status-aprovado {
    background: var(--gc-green-soft) !important;
    color: #047857 !important;
}

html.gc-erp-online-theme .status-chip--pendente,
html.gc-erp-online-theme .status-pendente,
html.gc-erp-online-theme .badge-pendente {
    background: var(--gc-yellow-soft) !important;
    color: #806600 !important;
}

html.gc-erp-online-theme .status-chip--cancelada,
html.gc-erp-online-theme .status-recusado,
html.gc-erp-online-theme .status-vencido,
html.gc-erp-online-theme .badge-recusado,
html.gc-erp-online-theme .badge-cancelada {
    background: #fff1f2 !important;
    color: #be123c !important;
}

html.gc-erp-online-theme :where(.btn-nf-emitir, .btn-receber, .btn-print, .btn-acao) {
    border-radius: 9px !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .btn-nf-emitir {
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    color: #075985 !important;
}

html.gc-erp-online-theme .btn-nf-emitir:hover {
    background: var(--gc-cyan-soft) !important;
    border-color: #cae7ff !important;
    color: #075985 !important;
    transform: none !important;
}

html.gc-erp-online-theme .nf-dropdown {
    border: 1px solid var(--gc-line) !important;
    border-radius: 10px !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme #buscarNumeroVenda,
html.gc-erp-online-theme .busca-wrapper input {
    background: #f8fbfd !important;
    border: 1px solid #d8e3ef !important;
    border-radius: 10px !important;
    height: 42px !important;
}

html.gc-erp-online-theme :where(.card-resumo, .metric-box, .financeiro-box) {
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 12px !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme :where(.card-resumo h3, .metric-label, .financeiro-label, .card-subtitle) {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme :where(.icon-wrapper, .card-header i, .tipo-icon) {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border-radius: 10px !important;
}

html.gc-erp-online-theme .icon-wrapper.orange {
    background: var(--gc-yellow-soft) !important;
    color: #a36d00 !important;
}

html.gc-erp-online-theme .cliente-info .avatar {
    background: var(--gc-cyan) !important;
    color: #fff !important;
}

html.gc-erp-online-theme .cliente-info .avatar.orange {
    background: #a36d00 !important;
}

html.gc-erp-online-theme .pos-main.main-content {
    padding: 5rem 1.1rem 1.1rem !important;
}

html.gc-erp-online-theme .pos-container {
    gap: 1rem !important;
    max-width: 1680px !important;
}

html.gc-erp-online-theme :where(.pos-search-section, .pos-carrinho-section, .pos-cliente-section, .pos-info-section, .pos-resumo-section) {
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 14px !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme :where(.pos-search-header h3, .pos-carrinho-header h3, .pos-cliente-header h3, .pos-info-header, .pos-resumo-header h3) {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme :where(.pos-search-header h3 span) {
    background: var(--gc-cyan-soft) !important;
    color: #075985 !important;
    border: 1px solid #cae7ff !important;
}

html.gc-erp-online-theme .pos-product-bar {
    background: #f8fbfd !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme :where(.pos-product-input, .pos-search-input, .pos-input, .pos-textarea, .pos-date-input, .pos-category-filter) {
    background: #fff !important;
    border: 1px solid #d8e3ef !important;
    border-radius: 10px !important;
    color: #27364a !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme :where(.pos-product-input:focus, .pos-search-input:focus, .pos-input:focus, .pos-textarea:focus, .pos-date-input:focus) {
    border-color: var(--gc-cyan) !important;
    box-shadow: 0 0 0 4px rgba(14, 165, 198, .11) !important;
}

html.gc-erp-online-theme :where(.pos-product-search-btn, .pos-btn-finalizar, .pos-btn-aplicar, .pos-btn-confirmar) {
    background: var(--gc-cyan) !important;
    color: #fff !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme :where(.pos-btn-suspender, .pos-btn-cliente-rapido, .pos-btn-desconto, .pos-btn-limpar, .pos-btn-editar-variantes, .pos-qtd-btn) {
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    color: #34445a !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme :where(.pos-btn-suspender:hover, .pos-btn-cliente-rapido:hover, .pos-btn-desconto:hover, .pos-btn-limpar:hover, .pos-btn-editar-variantes:hover, .pos-qtd-btn:hover) {
    background: var(--gc-cyan-soft) !important;
    border-color: #cae7ff !important;
    color: #075985 !important;
}

html.gc-erp-online-theme :where(.pos-carrinho-item, .pos-cliente-selecionado, .pos-resumo-desconto-card, .pos-pagamento-resumo, .pos-variante-item) {
    background: #f8fbfd !important;
    border: 1px solid var(--gc-line-soft) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .pos-resumo-total {
    background: var(--gc-cyan-soft) !important;
    border: 1px solid #cae7ff !important;
    color: var(--gc-ink) !important;
    border-radius: 12px !important;
}

html.gc-erp-online-theme :where(.pos-modal-overlay, #modalSelecaoTipo.visible) {
    background: rgba(15, 23, 42, .46) !important;
    backdrop-filter: blur(2px) !important;
}

html.gc-erp-online-theme #modalSelecaoTipo > div {
    border: 1px solid var(--gc-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 26px 70px rgba(15, 23, 42, .22) !important;
}

html.gc-erp-online-theme #modalSelecaoTipo > div > div[style*="border-radius:50%"] {
    display: none !important;
}

html.gc-erp-online-theme .pos-modal {
    border: 1px solid var(--gc-line) !important;
    border-radius: 16px !important;
    box-shadow: 0 26px 70px rgba(15, 23, 42, .22) !important;
}

html.gc-erp-online-theme .pos-alert-caixa {
    background: #fff8e1 !important;
    color: #806600 !important;
    border: 1px solid #f2d05c !important;
    border-left: 4px solid var(--gc-yellow) !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

@media (max-width: 1100px) {
    html.gc-erp-online-theme .produtos-container .produtos-header-row {
        grid-template-columns: 1fr auto !important;
    }

    html.gc-erp-online-theme .produtos-container .produtos-filters {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        justify-content: stretch !important;
    }

    html.gc-erp-online-theme .orcamentos-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    html.gc-erp-online-theme .pos-container {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    html.gc-erp-online-theme .main-content {
        margin-left: 0 !important;
        padding: 4.7rem .85rem 1rem !important;
    }

    html.gc-erp-online-theme .gc-sidebar {
        box-shadow: 12px 0 34px rgba(15, 23, 42, .18) !important;
    }

    html.gc-erp-online-theme :where(.dashboard-header, .page-header, .produtos-header, .clientes-header, .header-section, .fiscal-header, .pos-header, .ordens-header) {
        border-radius: 12px !important;
        padding: 1rem !important;
    }

    html.gc-erp-online-theme .clientes-container .page-header,
    html.gc-erp-online-theme .produtos-container .produtos-header-row {
        display: flex !important;
        align-items: stretch !important;
        flex-direction: column !important;
    }

    html.gc-erp-online-theme .produtos-container .produtos-filters,
    html.gc-erp-online-theme .clientes-container .filtros-card,
    html.gc-erp-online-theme .clientes-container .filtros-card > div:last-child {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    html.gc-erp-online-theme :where(.btn-novo-cliente, .btn-novo-produto) {
        width: 100% !important;
        justify-content: center !important;
    }

    html.gc-erp-online-theme .orcamentos-grid {
        grid-template-columns: 1fr !important;
    }

    html.gc-erp-online-theme :where(.tab-switcher, .radio-group, .header-actions, .periodo-form, .periodo-inputs) {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    html.gc-erp-online-theme :where(.btn-novo, .btn-venda-rapida, .btn-nova-conta, .btn-export, .btn-atualizar) {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Dashboard refinado */
html.gc-erp-online-theme .dashboard-container {
    max-width: 1460px !important;
    padding: 0 !important;
}

html.gc-erp-online-theme .dashboard-main-layout {
    gap: 1rem !important;
}

html.gc-erp-online-theme .dashboard-top-section {
    grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) !important;
    gap: 1rem !important;
}

html.gc-erp-online-theme .dashboard-content-wrapper {
    gap: 1rem !important;
}

html.gc-erp-online-theme .dashboard-header {
    min-height: 74px !important;
}

html.gc-erp-online-theme .header-left-group {
    gap: .75rem !important;
    flex-wrap: wrap !important;
}

html.gc-erp-online-theme .header-date,
html.gc-erp-online-theme .filtro-periodo-texto {
    min-height: 34px !important;
    border-radius: 999px !important;
    border: 1px solid #cae7ff !important;
    background: var(--gc-cyan-soft) !important;
    color: #075985 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

html.gc-erp-online-theme .header-date i,
html.gc-erp-online-theme .filtro-periodo-texto i {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme .header-clock {
    color: #4b647f !important;
    font-weight: 700 !important;
}

html.gc-erp-online-theme .filtro-periodo-dropdown {
    border: 1px solid var(--gc-line) !important;
    border-radius: 10px !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme .filtro-periodo-item:hover,
html.gc-erp-online-theme .filtro-periodo-item.active {
    background: var(--gc-cyan-soft) !important;
    color: #075985 !important;
}

html.gc-erp-online-theme .licenca-mensal-banner {
    border: 1px solid var(--gc-line) !important;
    border-radius: 14px !important;
    background:
        linear-gradient(90deg, rgba(14,165,198,.035), rgba(199,53,143,.018) 52%, rgba(217,180,33,.03)),
        #fff !important;
    box-shadow: var(--gc-shadow-soft) !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme .licenca-mensal-banner::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto !important;
    height: 3px !important;
    background: rgba(14, 165, 198, .75) !important;
}

html.gc-erp-online-theme .licenca-mensal-icon {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .licenca-mensal-title,
html.gc-erp-online-theme .licenca-mensal-message {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme .licenca-mensal-eyebrow {
    color: #0575a6 !important;
}

html.gc-erp-online-theme .licenca-mensal-pill,
html.gc-erp-online-theme .licenca-mensal-countdown {
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    color: #34445a !important;
}

html.gc-erp-online-theme .licenca-mensal-action {
    background: var(--gc-cyan) !important;
    color: #fff !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 20px rgba(14,165,198,.12) !important;
}

html.gc-erp-online-theme .licenca-mensal-toggle {
    background: #fff !important;
    color: #34445a !important;
    border: 1px solid var(--gc-line) !important;
}

html.gc-erp-online-theme .caixa-container {
    top: 1rem !important;
}

html.gc-erp-online-theme .caixa-card {
    border-radius: 14px !important;
    border: 1px solid var(--gc-line) !important;
    box-shadow: var(--gc-shadow-soft) !important;
    padding: 1rem !important;
}

html.gc-erp-online-theme .caixa-card::before {
    height: 3px !important;
    background: var(--gc-cyan) !important;
}

html.gc-erp-online-theme .caixa-header {
    border-bottom-color: var(--gc-line) !important;
    gap: .75rem !important;
}

html.gc-erp-online-theme .caixa-icon {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    box-shadow: none !important;
    border-radius: 10px !important;
}

html.gc-erp-online-theme .caixa-header h2 {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme .caixa-header p,
html.gc-erp-online-theme .caixa-lista-vazia,
html.gc-erp-online-theme .caixa-footer p {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme .caixa-status-badge {
    border-radius: 999px !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme .caixa-status-badge.status-aberto {
    background: var(--gc-green-soft) !important;
    color: #047857 !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .caixa-status-badge.status-fechado {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
}

html.gc-erp-online-theme .caixa-resumo-card {
    background: #f8fbfd !important;
    border-color: var(--gc-line) !important;
    border-radius: 10px !important;
}

html.gc-erp-online-theme .caixa-resumo-card.vendas {
    background: var(--gc-cyan-soft) !important;
    border-color: #cae7ff !important;
}

html.gc-erp-online-theme .caixa-resumo-label,
html.gc-erp-online-theme .caixa-label-grande {
    color: #667085 !important;
    letter-spacing: .04em !important;
}

html.gc-erp-online-theme .caixa-resumo-valor,
html.gc-erp-online-theme .caixa-valor-grande {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme .caixa-resumo-valor.vendas {
    color: #0575a6 !important;
}

html.gc-erp-online-theme .caixa-valor-final,
html.gc-erp-online-theme .caixa-valor-esperado {
    background: linear-gradient(180deg, #f0fdf4, #ffffff) !important;
    border-color: #bbf7d0 !important;
    border-radius: 12px !important;
}

html.gc-erp-online-theme .caixa-valor-final .caixa-valor-grande,
html.gc-erp-online-theme .caixa-valor-esperado .caixa-valor-grande {
    color: #047857 !important;
}

html.gc-erp-online-theme .caixa-secao {
    border-top: 1px solid var(--gc-line-soft) !important;
    padding-top: .82rem !important;
}

html.gc-erp-online-theme .caixa-secao-title span {
    color: #34445a !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme .caixa-fechado {
    background: #f8fbfd !important;
    border: 1px dashed var(--gc-line) !important;
    border-radius: 12px !important;
}

html.gc-erp-online-theme .dashboard-grid {
    gap: .8rem !important;
}

html.gc-erp-online-theme .dashboard-grid > * {
    min-height: 112px !important;
}

html.gc-erp-online-theme .dashboard-grid .card {
    align-items: flex-start !important;
    border-radius: 14px !important;
    padding: 1rem !important;
    gap: .85rem !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme .dashboard-grid .card::before {
    height: 3px !important;
    background: rgba(14, 165, 198, .75) !important;
    opacity: .45 !important;
}

html.gc-erp-online-theme .dashboard-grid .card:hover {
    transform: translateY(-2px) !important;
    border-color: #cae7ff !important;
}

html.gc-erp-online-theme .dashboard-grid .card-icon {
    width: 42px !important;
    height: 42px !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .dashboard-grid .card-content h3 {
    color: #667085 !important;
    font-size: .7rem !important;
    letter-spacing: .045em !important;
}

html.gc-erp-online-theme .dashboard-grid .card-number {
    color: var(--gc-ink) !important;
    font-size: 1.18rem !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme .dashboard-grid .card-subtitle {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme #alertasVencimentoWrapper > div:first-child {
    background: #fff9d8 !important;
    border-color: #f6d75a !important;
    border-radius: 12px !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme .calendario-wrapper,
html.gc-erp-online-theme .entregas-wrapper {
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    border-radius: 14px !important;
    box-shadow: var(--gc-shadow-soft) !important;
    padding: 1rem !important;
    overflow: hidden !important;
    position: relative !important;
}

html.gc-erp-online-theme .calendario-wrapper::before,
html.gc-erp-online-theme .entregas-wrapper::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--gc-cyan) 0 25%, var(--gc-magenta) 25% 50%, var(--gc-yellow) 50% 75%, var(--gc-black) 75% 100%);
}

html.gc-erp-online-theme .calendario-header-title i {
    color: var(--gc-cyan) !important;
    background: var(--gc-cyan-soft) !important;
    border-radius: 10px !important;
    width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

html.gc-erp-online-theme .calendario-header-title h2,
html.gc-erp-online-theme .entregas-titulo {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme .calendario-header-desc,
html.gc-erp-online-theme .entregas-subtitulo {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme .calendario-container {
    border: 1px solid var(--gc-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    background: #fff !important;
}

html.gc-erp-online-theme .calendario-mes-header {
    border-bottom-color: var(--gc-line-soft) !important;
}

html.gc-erp-online-theme .calendario-titulo {
    color: var(--gc-ink) !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme .calendario-nav-btn {
    border: 1px solid var(--gc-line) !important;
    background: #fff !important;
    color: #34445a !important;
    border-radius: 9px !important;
}

html.gc-erp-online-theme .calendario-nav-btn:hover {
    background: var(--gc-cyan-soft) !important;
    color: #075985 !important;
    border-color: #cae7ff !important;
}

html.gc-erp-online-theme .dia-semana {
    color: #667085 !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme .dia-calendario {
    border-radius: 9px !important;
    color: #27364a !important;
}

html.gc-erp-online-theme .dia-calendario:hover:not(.outro-mes):not(.entrega-primaria):not(.entrega-multipla) {
    background: var(--gc-cyan-soft) !important;
}

html.gc-erp-online-theme .dia-calendario.entrega-primaria {
    background: var(--gc-cyan) !important;
    color: #fff !important;
}

html.gc-erp-online-theme .dia-calendario.entrega-secundaria {
    border-color: var(--gc-cyan) !important;
    background: var(--gc-cyan-soft) !important;
}

html.gc-erp-online-theme .dia-calendario.entrega-multipla {
    background: var(--gc-yellow) !important;
    color: #3b2f00 !important;
}

html.gc-erp-online-theme .dia-calendario.dia-selecionado {
    border-color: var(--gc-cyan) !important;
    box-shadow: 0 0 0 3px rgba(14, 165, 198, .12) !important;
}

@media (max-width: 1200px) {
    html.gc-erp-online-theme .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 992px) {
    html.gc-erp-online-theme .dashboard-top-section {
        grid-template-columns: 1fr !important;
    }

    html.gc-erp-online-theme .caixa-container {
        position: static !important;
    }
}

@media (max-width: 640px) {
    html.gc-erp-online-theme .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Visual global mais calmo para o ERP Online */
html.gc-erp-online-theme {
    --gc-cyan: #0f8f9f;
    --gc-magenta: #b12b78;
    --gc-yellow: #caa21a;
    --gc-black: #211c2e;
    --gc-ink: #221f2d;
    --gc-muted: #6f6878;
    --gc-page: #f1efea;
    --gc-panel: #f8f6f2;
    --gc-panel-2: #f4f1ec;
    --gc-panel-3: #eeeaf0;
    --gc-line: #ded8d2;
    --gc-line-soft: #ebe6e0;
    --gc-input: #f5f2ed;
    --gc-cyan-soft: #e7f4f3;
    --gc-magenta-soft: #f6e8f0;
    --gc-yellow-soft: #f7efd0;
    --gc-black-soft: #ece9ee;
    --gc-action: var(--gc-black);
    --gc-action-hover: #17131f;
    --gc-focus: rgba(177, 43, 120, .18);
    --gc-shadow: 0 18px 42px rgba(33, 28, 46, .075);
    --gc-shadow-soft: 0 8px 22px rgba(33, 28, 46, .06);
    --primary-color: var(--gc-action);
    --primary-hover: var(--gc-action-hover);
    --primary-gradient: linear-gradient(135deg, var(--gc-black), #33273f);
    --bg-color: var(--gc-page);
    --card-bg: var(--gc-panel);
    --sidebar-bg: var(--gc-panel);
    --sidebar-hover: var(--gc-panel-2);
    --gc-cmyk-strip: linear-gradient(90deg,
        var(--gc-cyan) 0 24%,
        var(--gc-magenta) 24% 49%,
        var(--gc-yellow) 49% 73%,
        var(--gc-black) 73% 100%);
}

html.gc-erp-online-theme body,
html.gc-erp-online-theme .main-content {
    background:
        linear-gradient(135deg, rgba(15, 143, 159, .026), rgba(177, 43, 120, .018) 48%, rgba(202, 162, 26, .026)),
        var(--gc-page) !important;
}

html.gc-erp-online-theme .gc-app-topbar {
    background: rgba(248, 246, 242, .96) !important;
    border-bottom-color: var(--gc-line) !important;
    box-shadow: 0 8px 24px rgba(33, 28, 46, .045) !important;
}

html.gc-erp-online-theme .gc-sidebar,
html.gc-erp-online-theme .sidebar.gc-sidebar {
    background:
        linear-gradient(180deg, rgba(33, 28, 46, .035), rgba(177, 43, 120, .014) 44%, rgba(202, 162, 26, .018)),
        var(--gc-panel) !important;
    box-shadow: 8px 0 28px rgba(33, 28, 46, .055) !important;
}

@media print {
    html.gc-erp-online-theme .gc-app-topbar,
    html.gc-erp-online-theme [data-gc-app-topbar],
    html.gc-erp-online-theme .gc-topbar-user-menu,
    html.gc-erp-online-theme .gc-user-menu-container,
    html.gc-erp-online-theme .gc-user-trigger,
    html.gc-erp-online-theme .gc-user-dropdown,
    html.gc-erp-online-theme .gc-sidebar,
    html.gc-erp-online-theme .sidebar,
    html.gc-erp-online-theme .menu-toggle,
    html.gc-erp-online-theme .sidebar-overlay {
        display: none !important;
        visibility: hidden !important;
    }

    html.gc-erp-online-theme .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 0 !important;
    }
}

html.gc-erp-online-theme .gc-sidebar::before,
html.gc-erp-online-theme .calendario-wrapper::before,
html.gc-erp-online-theme .entregas-wrapper::before {
    height: 3px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme :where(.dashboard-header, .page-header, .produtos-header, .clientes-header, .header-section, .fiscal-header, .pos-header, .ordens-header)::before {
    height: 2px !important;
    background: linear-gradient(90deg, rgba(11, 143, 179, .5), rgba(23, 32, 51, .18)) !important;
}

html.gc-erp-online-theme :where(.card, .table-card, .card-form, .report-card, .filtro-card, .caixa-card, .card-resumo, .resumo-card, .config-card, .info-card, .section-card, .stat-card, .metric-card, .dashboard-card),
html.gc-erp-online-theme .calendario-wrapper,
html.gc-erp-online-theme .entregas-wrapper {
    border-color: var(--gc-line) !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme .dashboard-grid .card::before,
html.gc-erp-online-theme .caixa-card::before {
    display: none !important;
}

html.gc-erp-online-theme .dashboard-grid .card:hover,
html.gc-erp-online-theme :where(.card, .table-card, .report-card, .filtro-card, .caixa-card, .card-resumo, .resumo-card, .config-card, .info-card, .section-card, .stat-card, .metric-card, .dashboard-card):hover {
    border-color: #d4e3ef !important;
    box-shadow: 0 12px 28px rgba(21, 32, 51, .065) !important;
}

html.gc-erp-online-theme .card-icon,
html.gc-erp-online-theme .icon-card,
html.gc-erp-online-theme .stat-icon,
html.gc-erp-online-theme .resumo-icon,
html.gc-erp-online-theme .dashboard-grid .card:nth-child(2n) .card-icon,
html.gc-erp-online-theme .dashboard-grid .card:nth-child(3n) .card-icon,
html.gc-erp-online-theme .stat-card:nth-child(2n) .stat-icon,
html.gc-erp-online-theme .stat-card:nth-child(3n) .stat-icon {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme .dashboard-grid .card-danger .card-icon {
    background: #fff4f7 !important;
    color: #be2b66 !important;
}

html.gc-erp-online-theme .dashboard-grid .card-warning .card-icon {
    background: #fff9df !important;
    color: #8a6b00 !important;
}

html.gc-erp-online-theme :where(.btn-primary, .btn-salvar, .btn-cadastrar, .btn-novo-cliente, .btn-novo-produto, .btn-nova-categoria, .btn-novo-meio, .btn-novo-usuario, .btn-abrir-caixa, .btn-fechar-caixa, .btn-ativar, .btn-verificar, .btn-backup, .btn-download-backup, button[class^="btn-novo"], button[class^="btn-nova"], .btn-novo, .btn-venda-rapida, .btn-nova-conta, .btn-atualizar, .btn-confirmar, .btn-gerar) {
    background: var(--gc-cyan) !important;
    box-shadow: 0 10px 22px rgba(11, 143, 179, .14) !important;
}

html.gc-erp-online-theme :where(.btn-primary, .btn-salvar, .btn-cadastrar, .btn-novo-cliente, .btn-novo-produto, .btn-nova-categoria, .btn-novo-meio, .btn-novo-usuario, .btn-abrir-caixa, .btn-fechar-caixa, .btn-ativar, .btn-verificar, .btn-backup, .btn-download-backup, button[class^="btn-novo"], button[class^="btn-nova"], .btn-novo, .btn-venda-rapida, .btn-nova-conta, .btn-atualizar, .btn-confirmar, .btn-gerar):hover {
    background: #087c9c !important;
    box-shadow: 0 12px 26px rgba(11, 143, 179, .18) !important;
}

html.gc-erp-online-theme :where(input, select, textarea) {
    background: var(--gc-input) !important;
    border-color: #d7e2ed !important;
}

html.gc-erp-online-theme :where(input, select, textarea):focus {
    border-color: var(--gc-cyan) !important;
    box-shadow: 0 0 0 4px rgba(11, 143, 179, .11) !important;
}

html.gc-erp-online-theme .header-date,
html.gc-erp-online-theme .filtro-periodo-texto,
html.gc-erp-online-theme .gc-sidebar-registered {
    background: #f7fbfe !important;
    border-color: #d9eaf4 !important;
    color: #28516a !important;
}

html.gc-erp-online-theme .calendario-header-title i {
    background: #eff8fc !important;
    color: var(--gc-cyan) !important;
    border: 1px solid #d8edf6 !important;
}

/* Cadastros: Clientes e Produtos */
html.gc-erp-online-theme :where(.clientes-container, .produtos-container) {
    display: grid !important;
    gap: 1rem !important;
}

html.gc-erp-online-theme :where(.clientes-container .page-header, .produtos-container .produtos-header) {
    min-height: 76px !important;
    padding: 1rem 1.12rem !important;
    border-radius: 12px !important;
}

html.gc-erp-online-theme .clientes-container .page-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 1rem !important;
}

html.gc-erp-online-theme .produtos-container .produtos-header-row {
    grid-template-columns: minmax(210px, 1fr) minmax(360px, 620px) auto !important;
}

html.gc-erp-online-theme :where(.clientes-container .header-left h1, .produtos-header-title h1) {
    font-size: 1.52rem !important;
    line-height: 1.15 !important;
}

html.gc-erp-online-theme :where(.clientes-container .header-left p, .produtos-header-title p) {
    font-size: .92rem !important;
}

html.gc-erp-online-theme :where(.btn-novo-cliente, .btn-novo-produto) {
    min-height: 42px !important;
    padding: .68rem .95rem !important;
    gap: .5rem !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
}

html.gc-erp-online-theme .clientes-container .filtros-card {
    display: grid !important;
    grid-template-columns: minmax(240px, 1fr) auto !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    padding: .85rem !important;
    border-radius: 12px !important;
}

html.gc-erp-online-theme .clientes-container .filtros-card i,
html.gc-erp-online-theme .produtos-search-box i {
    color: #8ba0b5 !important;
}

html.gc-erp-online-theme .produtos-filters {
    padding: .28rem !important;
    background: #f7fbfe !important;
    border: 1px solid #dce9f2 !important;
    border-radius: 12px !important;
}

html.gc-erp-online-theme :where(.produtos-search-box input, .produtos-filter-box select, .clientes-container #filtroNome, .clientes-container #filtroStatus, .clientes-container #filtroTipo) {
    height: 40px !important;
    background: #fff !important;
    border-color: transparent !important;
    border-radius: 9px !important;
}

html.gc-erp-online-theme :where(.produtos-search-box input:focus, .produtos-filter-box select:focus, .clientes-container #filtroNome:focus, .clientes-container #filtroStatus:focus, .clientes-container #filtroTipo:focus) {
    border-color: #bcdde9 !important;
    box-shadow: 0 0 0 3px rgba(11, 143, 179, .10) !important;
}

html.gc-erp-online-theme .clientes-container #btnLimparFiltros {
    height: 40px !important;
    border-radius: 9px !important;
}

html.gc-erp-online-theme :where(.clientes-container .table-card, .produtos-container .table-card) {
    border-radius: 12px !important;
    border: 1px solid var(--gc-line) !important;
    background: #fff !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme :where(.clientes-table, .produtos-table) {
    min-width: 840px !important;
}

html.gc-erp-online-theme :where(.clientes-table th, .produtos-table th) {
    background: #f8fbfe !important;
    color: #607086 !important;
    font-size: .7rem !important;
    font-weight: 800 !important;
    letter-spacing: .04em !important;
    border-top: 0 !important;
}

html.gc-erp-online-theme :where(.clientes-table th:first-child, .produtos-table th:first-child),
html.gc-erp-online-theme :where(.clientes-table th:last-child, .produtos-table th:last-child) {
    border-radius: 0 !important;
}

html.gc-erp-online-theme :where(.clientes-table td, .produtos-table td) {
    vertical-align: middle !important;
    color: #26364d !important;
}

html.gc-erp-online-theme .produtos-table td strong,
html.gc-erp-online-theme .clientes-table .nome-cell > div {
    color: var(--gc-ink) !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme :where(.clientes-table tbody tr:hover, .produtos-table tbody tr:hover) {
    background: #fbfdff !important;
}

html.gc-erp-online-theme :where(.clientes-table .acoes-wrapper, .produtos-table .acoes-wrapper) {
    display: inline-flex !important;
    align-items: center !important;
    gap: .36rem !important;
}

html.gc-erp-online-theme :where(.btn-acoes, .btn-editar, .btn-excluir) {
    width: 35px !important;
    height: 35px !important;
    border-radius: 10px !important;
}

html.gc-erp-online-theme :where(.clientes-table .badge, .produtos-table .badge) {
    border: 1px solid transparent !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme :where(.clientes-table .empty-state, .produtos-table .empty-state) {
    background: #fbfdff !important;
}

html.gc-erp-online-theme .empty-state-content,
html.gc-erp-online-theme .clientes-table .empty-state > div {
    min-height: 145px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .75rem !important;
    color: #718298 !important;
}

html.gc-erp-online-theme .empty-state-content i,
html.gc-erp-online-theme .clientes-table .empty-state i {
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    color: var(--gc-cyan) !important;
    background: var(--gc-cyan-soft) !important;
    font-size: 1.15rem !important;
}

html.gc-erp-online-theme .produtos-results-info {
    justify-self: end !important;
    margin-top: -.25rem !important;
    color: var(--gc-muted) !important;
    background: transparent !important;
}

html.gc-erp-online-theme .produtos-results-info #quantidadeProdutos {
    color: var(--gc-ink) !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme :where(.modal-cliente, .modal-produto) {
    width: min(94vw, 820px) !important;
    max-height: 86vh !important;
    display: flex !important;
    flex-direction: column !important;
}

html.gc-erp-online-theme .modal-cliente {
    max-width: 760px !important;
}

html.gc-erp-online-theme :where(.modal-cliente .modal-header, .modal-produto .modal-header) {
    min-height: 62px !important;
    flex: 0 0 auto !important;
}

html.gc-erp-online-theme :where(.modal-cliente .modal-content, .modal-produto .modal-content) {
    overflow: auto !important;
    padding: 1.15rem !important;
}

html.gc-erp-online-theme :where(.modal-cliente .modal-footer, .modal-produto .modal-footer) {
    position: sticky !important;
    bottom: -1.15rem !important;
    margin: 1rem -1.15rem -1.15rem !important;
    padding: .95rem 1.15rem !important;
    background: rgba(255, 255, 255, .96) !important;
    border-top: 1px solid var(--gc-line) !important;
    backdrop-filter: blur(6px) !important;
}

html.gc-erp-online-theme .modal-close {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    color: #738399 !important;
}

html.gc-erp-online-theme .modal-close:hover {
    background: #f3f7fb !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme .toggles-section {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: .75rem !important;
    margin: .75rem 0 1rem !important;
}

html.gc-erp-online-theme .toggle-item {
    min-height: 86px !important;
    padding: .82rem !important;
    background: #f8fbfe !important;
    border: 1px solid var(--gc-line) !important;
}

html.gc-erp-online-theme .toggle-switch input:checked + .toggle-slider {
    background: var(--gc-cyan) !important;
}

html.gc-erp-online-theme .combo-toggle,
html.gc-erp-online-theme .input-with-button input {
    min-height: 42px !important;
}

html.gc-erp-online-theme #imagemProdutoPreview {
    border-color: #cfe2ee !important;
    background: #f8fbfe !important;
    border-radius: 12px !important;
}

html.gc-erp-online-theme .fiscal-section,
html.gc-erp-online-theme .variacoes-section {
    margin-top: 1rem !important;
    padding: .95rem !important;
    background: #fbfdff !important;
    border: 1px solid var(--gc-line) !important;
}

html.gc-erp-online-theme .fiscal-section .section-toggle {
    border-top: 0 !important;
    padding: 0 !important;
}

@media (max-width: 980px) {
    html.gc-erp-online-theme .produtos-container .produtos-header-row,
    html.gc-erp-online-theme .clientes-container .page-header,
    html.gc-erp-online-theme .clientes-container .filtros-card {
        grid-template-columns: 1fr !important;
    }

    html.gc-erp-online-theme .produtos-filters {
        width: 100% !important;
    }

    html.gc-erp-online-theme :where(.btn-novo-cliente, .btn-novo-produto) {
        width: 100% !important;
        justify-content: center !important;
    }

    html.gc-erp-online-theme .toggles-section {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    html.gc-erp-online-theme .toggles-section {
        grid-template-columns: 1fr !important;
    }
}

/* Modal de produto: cadastro e edicao */
html.gc-erp-online-theme #modalProduto.modal-overlay {
    padding: 1.25rem !important;
    align-items: center !important;
    overflow: hidden !important;
    background: rgba(15, 23, 42, .52) !important;
}

html.gc-erp-online-theme #modalProduto .modal-produto {
    width: min(1080px, 96vw) !important;
    max-width: 1080px !important;
    max-height: 88vh !important;
    border-radius: 16px !important;
    background: #f7fafc !important;
    overflow: hidden !important;
    border: 1px solid rgba(226, 235, 244, .95) !important;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .28) !important;
    position: relative !important;
}

html.gc-erp-online-theme #modalProduto .modal-produto::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto !important;
    height: 4px !important;
    background: var(--gc-cmyk-strip) !important;
    z-index: 3 !important;
}

html.gc-erp-online-theme #modalProduto.insumo-mode .modal-produto {
    width: min(760px, 94vw) !important;
    max-width: 760px !important;
    max-height: 86vh !important;
    background: #ffffff !important;
}

html.gc-erp-online-theme #modalProduto .modal-header {
    min-height: 62px !important;
    padding: 1.15rem 1.25rem .9rem !important;
    background: #fff !important;
    border-bottom: 1px solid var(--gc-line) !important;
}

html.gc-erp-online-theme #modalProduto .modal-title-block {
    min-width: 0 !important;
}

html.gc-erp-online-theme #modalProduto .modal-header h2 {
    color: var(--gc-ink) !important;
    font-size: 1.16rem !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme #modalProduto #subtituloModalProduto {
    margin: .18rem 0 0 !important;
    color: #64748b !important;
    font-size: .82rem !important;
    line-height: 1.35 !important;
}

html.gc-erp-online-theme #modalProduto #formProduto {
    padding: 0 !important;
    background: #f7fafc !important;
    overflow: auto !important;
    flex: 1 1 auto !important;
}

html.gc-erp-online-theme #modalProduto.insumo-mode #formProduto {
    background: #fff !important;
}

html.gc-erp-online-theme #modalProduto .produto-modal-section,
html.gc-erp-online-theme #modalProduto .fiscal-section,
html.gc-erp-online-theme #modalProduto .variacoes-section {
    margin: 0 !important;
    padding: 1rem 1.15rem !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid var(--gc-line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme #modalProduto .produto-modal-hero {
    display: grid !important;
    grid-template-columns: 154px minmax(0, 1fr) !important;
    gap: .85rem 1rem !important;
    align-items: start !important;
}

html.gc-erp-online-theme #modalProduto.insumo-mode .produto-modal-hero {
    display: block !important;
    padding: 1.05rem 1.15rem .55rem !important;
    border-bottom: 0 !important;
}

html.gc-erp-online-theme #modalProduto.insumo-mode .produto-modal-hero > .form-group {
    max-width: none !important;
}

html.gc-erp-online-theme #modalProduto.insumo-mode .produto-modal-hero #nomeProduto {
    min-height: 48px !important;
    font-size: .98rem !important;
}

html.gc-erp-online-theme #modalProduto .produto-modal-hero > .form-group {
    margin: 0 !important;
}

html.gc-erp-online-theme #modalProduto .produto-modal-hero > .form-group:first-child {
    grid-row: 1 / span 2 !important;
}

html.gc-erp-online-theme #modalProduto #imagemProdutoArea {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: .7rem !important;
}

html.gc-erp-online-theme #modalProduto #imagemProdutoPreview {
    width: 132px !important;
    height: 132px !important;
    border: 1px dashed #bfd6e5 !important;
    border-radius: 14px !important;
    background: #f8fbfe !important;
}

html.gc-erp-online-theme #modalProduto #imagemProdutoArea > div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .45rem !important;
}

html.gc-erp-online-theme #modalProduto #imagemProdutoArea .btn-cancelar {
    margin-left: 0 !important;
    padding: .45rem .66rem !important;
    font-size: .76rem !important;
}

html.gc-erp-online-theme #modalProduto .produto-modal-hero textarea {
    min-height: 82px !important;
}

html.gc-erp-online-theme #modalProduto .produto-section-heading {
    display: flex !important;
    align-items: center !important;
    gap: .48rem !important;
    margin-bottom: .75rem !important;
    color: var(--gc-ink) !important;
    font-size: .82rem !important;
    font-weight: 900 !important;
}

html.gc-erp-online-theme #modalProduto .produto-section-heading::before {
    content: "" !important;
    width: 31px !important;
    height: 8px !important;
    flex: 0 0 31px !important;
    background:
        radial-gradient(circle at 4px 50%, var(--gc-cyan) 0 4px, transparent 4.5px),
        radial-gradient(circle at 16px 50%, var(--gc-magenta) 0 4px, transparent 4.5px),
        radial-gradient(circle at 28px 50%, var(--gc-yellow) 0 4px, transparent 4.5px) !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme #modalProduto .toggles-section {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: .7rem !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

html.gc-erp-online-theme #modalProduto.insumo-mode .produto-modal-rules {
    padding: .25rem 1.15rem .8rem !important;
    border-bottom: 0 !important;
}

html.gc-erp-online-theme #modalProduto.insumo-mode .toggles-section {
    grid-template-columns: minmax(0, 1fr) !important;
}

html.gc-erp-online-theme #modalProduto.insumo-mode .toggle-item {
    min-height: 58px !important;
    padding: .72rem .85rem !important;
    background: #f8fbfe !important;
    border-color: #dbeaf4 !important;
}

html.gc-erp-online-theme #modalProduto .toggle-item {
    min-height: 76px !important;
    margin: 0 !important;
    padding: .78rem .85rem !important;
    background: #f8fbfe !important;
    border: 1px solid #dfeaf3 !important;
    border-radius: 12px !important;
}

html.gc-erp-online-theme #modalProduto .toggle-label {
    font-size: .86rem !important;
    line-height: 1.2 !important;
}

html.gc-erp-online-theme #modalProduto .toggle-description {
    margin: .32rem 0 0 !important;
    color: #6d7e92 !important;
    font-size: .76rem !important;
    line-height: 1.35 !important;
}

html.gc-erp-online-theme #modalProduto .produto-modal-commerce .form-row {
    gap: .82rem !important;
    margin: 0 0 .82rem !important;
}

html.gc-erp-online-theme #modalProduto.insumo-mode .produto-modal-commerce {
    margin: 0 1.15rem 1.1rem !important;
    padding: 1rem !important;
    border: 1px solid #dbe7f0 !important;
    border-radius: 8px !important;
    background: #fbfdff !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .06) !important;
}

html.gc-erp-online-theme #modalProduto.insumo-mode .produto-modal-commerce .form-row:first-of-type {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

html.gc-erp-online-theme #modalProduto.insumo-mode #rowPrecosVenda {
    grid-template-columns: minmax(0, 1fr) !important;
}

html.gc-erp-online-theme #modalProduto.insumo-mode #grupoCustoProduto {
    order: 1 !important;
}

html.gc-erp-online-theme #modalProduto.insumo-mode #grupoUnidadeProduto {
    order: 2 !important;
}

html.gc-erp-online-theme #modalProduto.insumo-mode #estoqueGroup {
    display: block !important;
    order: 1 !important;
}

html.gc-erp-online-theme #modalProduto.insumo-mode #grupoCustoProduto,
html.gc-erp-online-theme #modalProduto.insumo-mode #grupoUnidadeProduto,
html.gc-erp-online-theme #modalProduto.insumo-mode #estoqueGroup {
    min-width: 0 !important;
}

html.gc-erp-online-theme #modalProduto .produto-modal-commerce .form-row:first-of-type {
    grid-template-columns: minmax(0, 2fr) minmax(170px, .8fr) !important;
}

html.gc-erp-online-theme #modalProduto #rowPrecosVenda {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html.gc-erp-online-theme #modalProduto .produto-modal-commerce .form-row:last-child {
    grid-template-columns: minmax(0, 1fr) !important;
    margin-bottom: 0 !important;
}

html.gc-erp-online-theme #modalProduto .form-group {
    margin-bottom: 0 !important;
}

html.gc-erp-online-theme #modalProduto .form-group label {
    margin-bottom: .38rem !important;
    color: #34445a !important;
    font-size: .76rem !important;
    font-weight: 900 !important;
}

html.gc-erp-online-theme #modalProduto :where(input, select, textarea, .combo-toggle) {
    min-height: 42px !important;
    border: 1px solid #d7e3ed !important;
    background: #f9fcff !important;
    border-radius: 10px !important;
    font-size: .9rem !important;
}

html.gc-erp-online-theme #modalProduto :where(input, select, textarea, .combo-toggle):focus,
html.gc-erp-online-theme #modalProduto .combo-toggle:focus-visible {
    border-color: var(--gc-cyan) !important;
    box-shadow: 0 0 0 4px rgba(11, 143, 179, .10) !important;
    background: #fff !important;
}

html.gc-erp-online-theme #modalProduto .input-with-button {
    gap: .55rem !important;
}

html.gc-erp-online-theme #modalProduto .btn-gerar-codigo {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

html.gc-erp-online-theme #modalProduto .fiscal-section .section-toggle {
    min-height: 38px !important;
    padding: 0 !important;
    border-top: 0 !important;
}

html.gc-erp-online-theme #modalProduto .fiscal-section .section-toggle > i:first-child {
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border-radius: 10px !important;
}

html.gc-erp-online-theme #modalProduto .fiscal-fields {
    padding-top: .95rem !important;
}

html.gc-erp-online-theme #modalProduto .fiscal-fields .form-row {
    gap: .82rem !important;
    margin-bottom: .82rem !important;
}

html.gc-erp-online-theme #modalProduto .variacoes-section .section-title {
    margin: 0 0 .32rem !important;
    font-size: .92rem !important;
}

html.gc-erp-online-theme #modalProduto .variacoes-header,
html.gc-erp-online-theme #modalProduto .variacao-item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 88px 104px 38px !important;
    align-items: center !important;
}

html.gc-erp-online-theme #modalProduto .variacoes-header {
    padding: .45rem .65rem !important;
    color: #718298 !important;
    background: #f8fbfe !important;
    border-radius: 10px !important;
}

html.gc-erp-online-theme #modalProduto .variacao-item {
    gap: .55rem !important;
    padding: .55rem 0 !important;
}

html.gc-erp-online-theme #modalProduto .btn-adicionar-variacao {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

html.gc-erp-online-theme #modalProduto .modal-footer {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 4 !important;
    margin: 0 !important;
    padding: .9rem 1.15rem !important;
    background: rgba(255, 255, 255, .97) !important;
    border-top: 1px solid var(--gc-line) !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: .75rem !important;
    backdrop-filter: blur(6px) !important;
}

html.gc-erp-online-theme #modalProduto .modal-footer .btn-cancelar,
html.gc-erp-online-theme #modalProduto .modal-footer .btn-cadastrar {
    min-height: 40px !important;
    padding: .65rem .98rem !important;
}

@media (max-width: 820px) {
    html.gc-erp-online-theme #modalProduto.modal-overlay {
        padding: .7rem !important;
    }

    html.gc-erp-online-theme #modalProduto .produto-modal-hero,
    html.gc-erp-online-theme #modalProduto .produto-modal-commerce .form-row:first-of-type,
    html.gc-erp-online-theme #modalProduto #rowPrecosVenda {
        grid-template-columns: 1fr !important;
    }

    html.gc-erp-online-theme #modalProduto .produto-modal-hero > .form-group:first-child {
        grid-row: auto !important;
    }

    html.gc-erp-online-theme #modalProduto .toggles-section,
    html.gc-erp-online-theme #modalProduto .fiscal-fields .form-row {
        grid-template-columns: 1fr !important;
    }
}

/* Paginas ainda fora do padrao visual do ERP Online */
html.gc-erp-online-theme .cp-header,
html.gc-erp-online-theme .pc-hero,
html.gc-erp-online-theme .pc-tabs,
html.gc-erp-online-theme .pc-card,
html.gc-erp-online-theme body.xml-page-body .masthead-copy,
html.gc-erp-online-theme body.xml-page-body .masthead-process,
html.gc-erp-online-theme body.xml-page-body .dock-panel,
html.gc-erp-online-theme body.xml-page-body .metric-card {
    border-radius: 12px !important;
    border: 1px solid var(--gc-line) !important;
    background: #fff !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme .cp-header,
html.gc-erp-online-theme .pc-hero,
html.gc-erp-online-theme .pc-card,
html.gc-erp-online-theme body.xml-page-body .masthead-copy,
html.gc-erp-online-theme body.xml-page-body .dock-panel {
    position: relative !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme .cp-header::before,
html.gc-erp-online-theme .pc-hero::before,
html.gc-erp-online-theme .pc-tabs::before,
html.gc-erp-online-theme .pc-card::before,
html.gc-erp-online-theme body.xml-page-body .masthead-copy::before,
html.gc-erp-online-theme body.xml-page-body .dock-panel::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto !important;
    width: 100% !important;
    height: 3px !important;
    border-radius: 999px 999px 0 0 !important;
    background: var(--gc-cmyk-strip) !important;
}

/* Consulta de precos */
html.gc-erp-online-theme .main-content:has(.cp-pos-container) {
    display: grid !important;
    gap: 1rem !important;
}

html.gc-erp-online-theme .cp-header {
    padding: 1.15rem 1.25rem !important;
    margin-bottom: 0 !important;
}

html.gc-erp-online-theme .cp-header h1 {
    color: var(--gc-ink) !important;
    font-size: 1.55rem !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme .cp-header h1 i {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme .cp-header p,
html.gc-erp-online-theme .cp-carrinho-vazio,
html.gc-erp-online-theme .cp-card-header h3,
html.gc-erp-online-theme .cp-field label {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme .cp-pos-container {
    gap: 1rem !important;
}

html.gc-erp-online-theme .cp-card {
    position: relative !important;
    border-radius: 12px !important;
    border: 1px solid var(--gc-line) !important;
    background: #fff !important;
    box-shadow: var(--gc-shadow-soft) !important;
    overflow: visible !important;
}

html.gc-erp-online-theme .cp-card-header h3 {
    font-weight: 800 !important;
}

html.gc-erp-online-theme .cp-card-header h3 i,
html.gc-erp-online-theme .cp-tag-preco-tipo i {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme .cp-card-header h3 span.badge-step {
    background: var(--gc-cyan-soft) !important;
    color: #087c9c !important;
}

html.gc-erp-online-theme .cp-product-icon,
html.gc-erp-online-theme .cp-product-search-btn,
html.gc-erp-online-theme .cp-btn-primario {
    background: var(--gc-cyan) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(11, 143, 179, .14) !important;
}

html.gc-erp-online-theme .cp-tag-preco-tipo {
    background: var(--gc-cyan-soft) !important;
    color: #075985 !important;
    border: 1px solid #cdeaf5 !important;
}

html.gc-erp-online-theme .cp-btn-secundario {
    border-color: var(--gc-line) !important;
    background: #fff !important;
    color: var(--gc-ink) !important;
}

/* Precificador */
html.gc-erp-online-theme .pc-page {
    background: var(--gc-page) !important;
    padding-top: 5.25rem !important;
}

html.gc-erp-online-theme .pc-hero {
    padding: 1.25rem !important;
}

html.gc-erp-online-theme .pc-hero-main h1,
html.gc-erp-online-theme .pc-card-title h2,
html.gc-erp-online-theme .pc-stat-card strong {
    color: var(--gc-ink) !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme .pc-hero-main p,
html.gc-erp-online-theme .pc-card-title p,
html.gc-erp-online-theme .pc-quick-steps,
html.gc-erp-online-theme .pc-stat-card small {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme .pc-eyebrow {
    background: var(--gc-cyan-soft) !important;
    color: #075985 !important;
    border: 1px solid #cdeaf5 !important;
}

html.gc-erp-online-theme .pc-hero-guide {
    border-radius: 10px !important;
    border: 1px dashed #cdeaf5 !important;
    background: #f8fbfe !important;
}

html.gc-erp-online-theme .pc-hero-guide h3,
html.gc-erp-online-theme .pc-hero-guide h3 i {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme .pc-stat-card {
    border-radius: 12px !important;
    border-color: var(--gc-line) !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme .pc-stat-card::before {
    content: none !important;
    display: none !important;
    background: transparent !important;
    width: 0 !important;
    height: 0 !important;
}

html.gc-erp-online-theme .pc-stat-highlight {
    background: linear-gradient(180deg, #fff, var(--gc-cyan-soft)) !important;
}

html.gc-erp-online-theme .pc-tabs {
    border-radius: 12px !important;
    top: 5rem !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

html.gc-erp-online-theme .pc-tabs button {
    border-color: var(--gc-line) !important;
    background: #fff !important;
    color: #34445a !important;
}

html.gc-erp-online-theme .pc-tabs button:hover,
html.gc-erp-online-theme .pc-tabs button.is-active {
    border-color: #cdeaf5 !important;
    background: var(--gc-cyan-soft) !important;
    color: #075985 !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .pc-card-title > i,
html.gc-erp-online-theme .pc-btn-primary {
    background: var(--gc-cyan) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(11, 143, 179, .14) !important;
}

html.gc-erp-online-theme .pc-btn-muted,
html.gc-erp-online-theme .pc-btn-soft {
    background: #fff !important;
    border: 1px solid var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme .pc-check,
html.gc-erp-online-theme .pc-tip-icon {
    background: var(--gc-cyan-soft) !important;
    border-color: #cdeaf5 !important;
    color: #075985 !important;
}

/* Entradas XML */
html.gc-erp-online-theme body.xml-page-body {
    --xml-bg-top: var(--gc-page);
    --xml-bg-bottom: var(--gc-page);
    --xml-ink: var(--gc-ink);
    --xml-text: #314155;
    --xml-muted: var(--gc-muted);
    --xml-surface: #ffffff;
    --xml-border: var(--gc-line);
    --xml-primary: var(--gc-cyan);
    --xml-primary-strong: #087c9c;
    --xml-warm: var(--gc-magenta);
    --xml-success: #059669;
    --xml-warning: #987200;
    --xml-shadow: var(--gc-shadow-soft);
    --xml-radius: 12px;
    background: var(--gc-page) !important;
}

html.gc-erp-online-theme body.xml-page-body::before,
html.gc-erp-online-theme body.xml-page-body .masthead-copy::after,
html.gc-erp-online-theme body.xml-page-body .masthead-process::after {
    display: none !important;
}

html.gc-erp-online-theme body.xml-page-body .masthead-copy {
    background: #fff !important;
}

html.gc-erp-online-theme body.xml-page-body .masthead-copy h1 {
    color: var(--gc-ink) !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme body.xml-page-body .masthead-copy p,
html.gc-erp-online-theme body.xml-page-body .dock-head p,
html.gc-erp-online-theme body.xml-page-body .stage-visual p,
html.gc-erp-online-theme body.xml-page-body .process-item p {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme body.xml-page-body .masthead-kicker,
html.gc-erp-online-theme body.xml-page-body .section-tag {
    background: var(--gc-cyan-soft) !important;
    color: #075985 !important;
    border: 1px solid #cdeaf5 !important;
}

html.gc-erp-online-theme body.xml-page-body .masthead-process {
    color: var(--gc-ink) !important;
    background: linear-gradient(180deg, #fff, #f8fbfe) !important;
}

html.gc-erp-online-theme body.xml-page-body .process-head strong,
html.gc-erp-online-theme body.xml-page-body .process-item strong {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme body.xml-page-body .process-head span {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme body.xml-page-body .process-item {
    border-top-color: var(--gc-line-soft) !important;
}

html.gc-erp-online-theme body.xml-page-body .process-number,
html.gc-erp-online-theme body.xml-page-body .stage-icon {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border: 1px solid #cdeaf5 !important;
}

html.gc-erp-online-theme body.xml-page-body .metric-blue,
html.gc-erp-online-theme body.xml-page-body .metric-slate {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme body.xml-page-body .metric-green {
    background: var(--gc-green-soft) !important;
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme body.xml-page-body .metric-gold {
    background: var(--gc-yellow-soft) !important;
    color: #987200 !important;
}

html.gc-erp-online-theme body.xml-page-body .btn-primary {
    background: var(--gc-cyan) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(11, 143, 179, .14) !important;
}

html.gc-erp-online-theme body.xml-page-body .btn-secondary,
html.gc-erp-online-theme body.xml-page-body .btn-contrast,
html.gc-erp-online-theme body.xml-page-body .btn-icon,
html.gc-erp-online-theme body.xml-page-body .stage-chip {
    background: #fff !important;
    color: var(--gc-ink) !important;
    border-color: var(--gc-line) !important;
}

html.gc-erp-online-theme body.xml-page-body .file-stage {
    border-color: #cdeaf5 !important;
    background: linear-gradient(180deg, #fff, #f8fbfe) !important;
}

@media (max-width: 1024px) {
    html.gc-erp-online-theme .main-content:has(.cp-pos-container),
    html.gc-erp-online-theme .pc-page,
    html.gc-erp-online-theme .xml-main {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 4.75rem 1rem 1rem !important;
    }

    html.gc-erp-online-theme .pc-hero-split,
    html.gc-erp-online-theme body.xml-page-body .xml-masthead,
    html.gc-erp-online-theme body.xml-page-body .import-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Configuracoes no padrao visual do ERP Online */
html.gc-erp-online-theme .main-content:has(.configuracoes-container) {
    background: var(--gc-page) !important;
    padding: 5.25rem 1.85rem 1.6rem !important;
}

html.gc-erp-online-theme .configuracoes-container {
    width: min(1240px, 100%) !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: grid !important;
    gap: 1rem !important;
}

html.gc-erp-online-theme .configuracoes-container .page-header {
    margin: 0 !important;
    min-height: 78px !important;
    padding: 1rem 1.15rem !important;
    border-radius: 12px !important;
    border: 1px solid var(--gc-line) !important;
    background: #fff !important;
    box-shadow: var(--gc-shadow-soft) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
}

html.gc-erp-online-theme .configuracoes-container .page-header::before,
html.gc-erp-online-theme .configuracoes-container .tabs-container::before,
html.gc-erp-online-theme .configuracoes-container .card-form::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto !important;
    height: 3px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme .configuracoes-container .page-header h1 {
    margin: 0 !important;
    color: var(--gc-ink) !important;
    font-size: 1.55rem !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: .55rem !important;
}

html.gc-erp-online-theme .configuracoes-container .page-header h1 i {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border: 1px solid #cdeaf5 !important;
    font-size: 1rem !important;
}

html.gc-erp-online-theme .configuracoes-container .page-header p {
    margin: .35rem 0 0 !important;
    color: var(--gc-muted) !important;
    font-size: .92rem !important;
    line-height: 1.45 !important;
}

html.gc-erp-online-theme .configuracoes-container .tabs-container {
    margin: 0 !important;
    padding: .58rem !important;
    border-radius: 12px !important;
    border: 1px solid var(--gc-line) !important;
    background: #fff !important;
    box-shadow: var(--gc-shadow-soft) !important;
    position: relative !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme .configuracoes-container .tabs {
    display: flex !important;
    gap: .42rem !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: .08rem 0 .12rem !important;
    border: 0 !important;
    scrollbar-width: thin !important;
    scrollbar-color: #cbd5e1 transparent !important;
}

html.gc-erp-online-theme .configuracoes-container .tab-button {
    min-height: 38px !important;
    min-width: max-content !important;
    width: auto !important;
    padding: .55rem .78rem !important;
    border-radius: 9px !important;
    border: 1px solid var(--gc-line) !important;
    background: #fff !important;
    color: #34445a !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    gap: .42rem !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .configuracoes-container .tab-button i {
    color: #7a8aa0 !important;
    font-size: .82rem !important;
}

html.gc-erp-online-theme .configuracoes-container .tab-button:hover,
html.gc-erp-online-theme .configuracoes-container .tab-button.active {
    background: var(--gc-cyan-soft) !important;
    border-color: #cdeaf5 !important;
    color: #075985 !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .configuracoes-container .tab-button:hover i,
html.gc-erp-online-theme .configuracoes-container .tab-button.active i {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme .configuracoes-container .tab-button span {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

html.gc-erp-online-theme .configuracoes-container .tab-content {
    min-width: 0 !important;
}

html.gc-erp-online-theme .configuracoes-container .card-form,
html.gc-erp-online-theme .configuracoes-container .card-list {
    margin: 0 !important;
    padding: 1.25rem !important;
    border-radius: 12px !important;
    border: 1px solid var(--gc-line) !important;
    background: #fff !important;
    box-shadow: var(--gc-shadow-soft) !important;
    position: relative !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme .configuracoes-container .form-header {
    margin: 0 0 1.05rem !important;
    padding: 0 0 .85rem !important;
    border-bottom: 1px solid var(--gc-line) !important;
}

html.gc-erp-online-theme .configuracoes-container .form-header h2,
html.gc-erp-online-theme .configuracoes-container .auditoria-title-section h2 {
    margin: 0 !important;
    color: var(--gc-ink) !important;
    font-size: 1.24rem !important;
    line-height: 1.22 !important;
    letter-spacing: 0 !important;
    font-weight: 850 !important;
}

html.gc-erp-online-theme .configuracoes-container .form-header p,
html.gc-erp-online-theme .configuracoes-container .auditoria-title-section p,
html.gc-erp-online-theme .configuracoes-container .form-help,
html.gc-erp-online-theme .configuracoes-container .panel-subtitle,
html.gc-erp-online-theme .configuracoes-container .permissao-desc {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme .configuracoes-container .form-row {
    gap: .9rem !important;
}

html.gc-erp-online-theme .configuracoes-container .form-group {
    margin-bottom: 1rem !important;
}

html.gc-erp-online-theme .configuracoes-container .form-group label,
html.gc-erp-online-theme .configuracoes-container .visual-panel label,
html.gc-erp-online-theme .configuracoes-container .permissoes-section-title {
    color: var(--gc-ink) !important;
    font-size: .84rem !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme .configuracoes-container :where(input[type="text"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="date"], input[type="file"], select, textarea) {
    min-height: 42px !important;
    border-radius: 9px !important;
    border: 1px solid #d7e2ed !important;
    background: var(--gc-input) !important;
    color: var(--gc-ink) !important;
    padding: .65rem .75rem !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .configuracoes-container :where(input, select, textarea):focus {
    background: #fff !important;
    border-color: var(--gc-cyan) !important;
    box-shadow: 0 0 0 4px rgba(11, 143, 179, .11) !important;
}

html.gc-erp-online-theme .configuracoes-container input[type="file"] {
    border-style: dashed !important;
    cursor: pointer !important;
}

html.gc-erp-online-theme .configuracoes-container input[type="file"]::file-selector-button {
    border: 1px solid var(--gc-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--gc-ink) !important;
    font-weight: 750 !important;
}

html.gc-erp-online-theme .configuracoes-container .form-actions,
html.gc-erp-online-theme .configuracoes-container .modal-footer {
    margin-top: 1.1rem !important;
    padding-top: 1rem !important;
    border-top: 1px solid var(--gc-line) !important;
}

html.gc-erp-online-theme .configuracoes-container :where(.btn-salvar, .btn-adicionar, .btn-novo-usuario, .btn-novo-meio, .btn-backup, .btn-download-backup, .btn-cadastrar) {
    min-height: 40px !important;
    border-radius: 9px !important;
    background: var(--gc-cyan) !important;
    color: #fff !important;
    border: 0 !important;
    box-shadow: 0 10px 22px rgba(11, 143, 179, .14) !important;
}

html.gc-erp-online-theme .configuracoes-container :where(.btn-salvar, .btn-adicionar, .btn-novo-usuario, .btn-novo-meio, .btn-backup, .btn-download-backup, .btn-cadastrar):hover {
    background: #087c9c !important;
    transform: translateY(-1px) !important;
}

html.gc-erp-online-theme .configuracoes-container :where(.btn-cancelar, .btn-limpar, .btn-limpar-filtros, .btn-mini-acao, .btn-mini-perfil) {
    border-radius: 9px !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .configuracoes-container .btn-limpar,
html.gc-erp-online-theme .configuracoes-container .btn-limpar-filtros {
    background: #fff4f7 !important;
    color: #be2b66 !important;
    border: 1px solid #ffd5e4 !important;
}

html.gc-erp-online-theme .configuracoes-container .logo-preview {
    min-height: 148px !important;
    border-radius: 12px !important;
    border: 1px dashed #cbd9e6 !important;
    background: #f8fbfe !important;
}

html.gc-erp-online-theme .configuracoes-container .logo-placeholder i {
    color: #9aa8b8 !important;
}

html.gc-erp-online-theme .configuracoes-container .visual-panel,
html.gc-erp-online-theme .configuracoes-container .backup-panel,
html.gc-erp-online-theme .configuracoes-container .checkbox-wrapper,
html.gc-erp-online-theme .configuracoes-container .permissao-item {
    border-radius: 11px !important;
    border: 1px solid var(--gc-line) !important;
    background: #f8fbfe !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .configuracoes-container .visual-panel {
    padding: 1rem !important;
}

html.gc-erp-online-theme .configuracoes-container .cores-opcoes {
    gap: .75rem !important;
}

html.gc-erp-online-theme .configuracoes-container .cor-opcao,
html.gc-erp-online-theme .configuracoes-container .theme-card {
    border-radius: 11px !important;
    border: 1px solid var(--gc-line) !important;
    background: #fff !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .configuracoes-container .cor-opcao:hover,
html.gc-erp-online-theme .configuracoes-container .cor-opcao.active,
html.gc-erp-online-theme .configuracoes-container .theme-card:hover,
html.gc-erp-online-theme .configuracoes-container .theme-card.selected {
    border-color: #cdeaf5 !important;
    background: var(--gc-cyan-soft) !important;
}

html.gc-erp-online-theme .configuracoes-container .cor-nome {
    color: var(--gc-ink) !important;
    font-weight: 850 !important;
}

html.gc-erp-online-theme .configuracoes-container .cor-descricao {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme .configuracoes-container .typography-options {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
}

html.gc-erp-online-theme .configuracoes-container .typography-option {
    min-height: 92px !important;
    display: flex !important;
    align-items: center !important;
}

html.gc-erp-online-theme .configuracoes-container .typography-option.active {
    border-color: #cdeaf5 !important;
    background: var(--gc-cyan-soft) !important;
    box-shadow: inset 0 0 0 1px rgba(11, 143, 179, .16) !important;
}

html.gc-erp-online-theme .configuracoes-container .typography-scale-panel input[type="range"] {
    width: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    accent-color: var(--gc-cyan) !important;
    background: transparent !important;
    border: 0 !important;
}

html.gc-erp-online-theme .configuracoes-container .font-scale-label {
    min-width: 64px !important;
    text-align: center !important;
    border-radius: 999px !important;
    padding: .38rem .62rem !important;
    background: var(--gc-cyan-soft) !important;
    color: #075985 !important;
    border: 1px solid #cdeaf5 !important;
}

html.gc-erp-online-theme .configuracoes-container .font-scale-presets {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: .5rem !important;
    margin-top: .85rem !important;
}

html.gc-erp-online-theme .configuracoes-container .font-scale-presets button {
    min-height: 34px !important;
    border-radius: 9px !important;
    border: 1px solid var(--gc-line) !important;
    background: #fff !important;
    color: var(--gc-ink) !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    padding: .45rem .7rem !important;
    cursor: pointer !important;
}

html.gc-erp-online-theme .configuracoes-container .font-scale-presets button:hover {
    border-color: #cdeaf5 !important;
    background: var(--gc-cyan-soft) !important;
    color: #075985 !important;
}

html.gc-erp-online-theme .configuracoes-container .font-preview-sample {
    margin-top: .9rem !important;
    border-radius: 11px !important;
    border: 1px dashed #cbd9e6 !important;
    background: #fff !important;
    padding: .85rem !important;
    display: grid !important;
    gap: .25rem !important;
}

html.gc-erp-online-theme .configuracoes-container .font-preview-sample strong {
    color: var(--gc-ink) !important;
    font-size: 1rem !important;
}

html.gc-erp-online-theme .configuracoes-container .font-preview-sample span {
    color: var(--gc-muted) !important;
    font-size: .9rem !important;
}

html.gc-erp-online-theme .configuracoes-container .auditoria-header,
html.gc-erp-online-theme .configuracoes-container .usuarios-toolbar,
html.gc-erp-online-theme .configuracoes-container .auditoria-toolbar {
    border-radius: 11px !important;
    border: 1px solid var(--gc-line) !important;
    background: #f8fbfe !important;
    padding: .9rem !important;
}

html.gc-erp-online-theme .configuracoes-container .stat-item,
html.gc-erp-online-theme .configuracoes-container .backup-stat-card {
    border-radius: 10px !important;
    border: 1px solid var(--gc-line) !important;
    background: #fff !important;
}

html.gc-erp-online-theme .configuracoes-container .stat-number {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme .configuracoes-container :where(.tabela-usuarios-container, .auditoria-table-container, .backup-saved-list, .meios-pagamento-container) {
    border-radius: 12px !important;
    border: 1px solid var(--gc-line) !important;
    background: #fff !important;
    box-shadow: none !important;
    overflow: auto !important;
}

html.gc-erp-online-theme .configuracoes-container :where(.usuarios-table, .auditoria-table, .meios-pagamento-table) {
    border-collapse: collapse !important;
    width: 100% !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .configuracoes-container :where(.usuarios-table th, .auditoria-table th, .meios-pagamento-table th) {
    background: #f8fbfe !important;
    color: #5d6d82 !important;
    border-bottom: 1px solid var(--gc-line) !important;
}

html.gc-erp-online-theme .configuracoes-container :where(.usuarios-table td, .auditoria-table td, .meios-pagamento-table td) {
    border-top: 1px solid var(--gc-line-soft) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme .configuracoes-container .btn-acao {
    border-radius: 9px !important;
    border: 1px solid var(--gc-line) !important;
    background: #fff !important;
    color: var(--gc-ink) !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme .configuracoes-container .btn-acao.permissao {
    background: var(--gc-cyan-soft) !important;
    color: #075985 !important;
    border-color: #cdeaf5 !important;
}

html.gc-erp-online-theme .configuracoes-container .btn-acao.comissoes {
    background: #ecfeff !important;
    color: #0e7490 !important;
    border-color: #bae6fd !important;
}

html.gc-erp-online-theme .configuracoes-container .btn-acao.editar {
    background: var(--gc-yellow-soft) !important;
    color: #7a5d00 !important;
    border-color: #f1df86 !important;
}

html.gc-erp-online-theme .configuracoes-container .btn-acao.excluir,
html.gc-erp-online-theme .configuracoes-container .btn-acao.desativar {
    background: #fff4f7 !important;
    color: #be2b66 !important;
    border-color: #ffd5e4 !important;
}

html.gc-erp-online-theme .configuracoes-container .modal-content {
    border-radius: 12px !important;
    border: 1px solid var(--gc-line) !important;
    box-shadow: 0 24px 70px rgba(21, 32, 51, .18) !important;
}

html.gc-erp-online-theme .configuracoes-container .modal-header {
    background: #fff !important;
    border-bottom: 1px solid var(--gc-line) !important;
}

html.gc-erp-online-theme .configuracoes-container .modal-header h2 {
    color: var(--gc-ink) !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme .configuracoes-container .permissoes-section-title {
    border-bottom-color: var(--gc-line) !important;
}

html.gc-erp-online-theme .configuracoes-container .permissao-checkbox input[type="checkbox"],
html.gc-erp-online-theme .configuracoes-container input[type="checkbox"],
html.gc-erp-online-theme .configuracoes-container input[type="radio"] {
    accent-color: var(--gc-cyan) !important;
}

@media (max-width: 900px) {
    html.gc-erp-online-theme .main-content:has(.configuracoes-container) {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 4.75rem 1rem 1rem !important;
    }

    html.gc-erp-online-theme .configuracoes-container .page-header,
    html.gc-erp-online-theme .configuracoes-container .card-form,
    html.gc-erp-online-theme .configuracoes-container .card-list {
        padding: 1rem !important;
    }

    html.gc-erp-online-theme .configuracoes-container .form-row,
    html.gc-erp-online-theme .configuracoes-container .auditoria-header,
    html.gc-erp-online-theme .configuracoes-container .auditoria-toolbar,
    html.gc-erp-online-theme .configuracoes-container .usuarios-toolbar {
        grid-template-columns: 1fr !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/* Modo escuro global */
html.gc-erp-online-theme.gc-dark-mode {
    color-scheme: dark;
    --gc-cyan: #24c4e7;
    --gc-magenta: #f05ab5;
    --gc-yellow: #f6d84a;
    --gc-black: #020617;
    --gc-ink: #edf4ff;
    --gc-muted: #a8b3c5;
    --gc-page: #08111f;
    --gc-panel: #111b2d;
    --gc-line: #263449;
    --gc-line-soft: #1b2638;
    --gc-input: #0d1728;
    --gc-cyan-soft: rgba(36, 196, 231, .13);
    --gc-magenta-soft: rgba(240, 90, 181, .12);
    --gc-yellow-soft: rgba(246, 216, 74, .14);
    --gc-green-soft: rgba(16, 185, 129, .14);
    --gc-green: #34d399;
    --gc-shadow: 0 18px 44px rgba(0, 0, 0, .26);
    --gc-shadow-soft: 0 12px 30px rgba(0, 0, 0, .22);
    --primary-color: var(--gc-cyan);
    --primary-hover: #1da9c9;
    --accent-color: var(--gc-magenta);
    --bg-color: var(--gc-page);
    --text-main: var(--gc-ink);
    --text-light: var(--gc-muted);
    --border-color: var(--gc-line);
    --card-bg: var(--gc-panel);
    --sidebar-bg: #0b1322;
    --sidebar-hover: #142033;
}

html.gc-erp-online-theme.gc-dark-mode body,
html.gc-erp-online-theme.gc-dark-mode .main-content {
    color: var(--gc-ink) !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(36, 196, 231, .11), transparent 34%),
        radial-gradient(circle at 88% 5%, rgba(240, 90, 181, .09), transparent 30%),
        var(--gc-page) !important;
}

html.gc-erp-online-theme.gc-dark-mode .gc-app-topbar,
html.gc-erp-online-theme.gc-dark-mode [data-gc-app-topbar] {
    background: rgba(11, 19, 34, .94) !important;
    border-bottom-color: var(--gc-line) !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .28) !important;
}

html.gc-erp-online-theme.gc-dark-mode .gc-sidebar,
html.gc-erp-online-theme.gc-dark-mode .sidebar.gc-sidebar,
html.gc-erp-online-theme.gc-dark-mode .gc-sidebar-header,
html.gc-erp-online-theme.gc-dark-mode .gc-sidebar-tools,
html.gc-erp-online-theme.gc-dark-mode .gc-sidebar-menu {
    background: #0b1322 !important;
    color: var(--gc-ink) !important;
    border-color: var(--gc-line) !important;
    box-shadow: 10px 0 34px rgba(0, 0, 0, .22) !important;
}

html.gc-erp-online-theme.gc-dark-mode .gc-sidebar-logo {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .28)) !important;
}

html.gc-erp-online-theme.gc-dark-mode .gc-sidebar-registered,
html.gc-erp-online-theme.gc-dark-mode .gc-organize-btn,
html.gc-erp-online-theme.gc-dark-mode .gc-group-add-btn,
html.gc-erp-online-theme.gc-dark-mode .gc-user-trigger,
html.gc-erp-online-theme.gc-dark-mode .gc-user-dropdown {
    background: #111b2d !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode .gc-sidebar-registered span,
html.gc-erp-online-theme.gc-dark-mode .gc-user-role,
html.gc-erp-online-theme.gc-dark-mode .card-subtitle,
html.gc-erp-online-theme.gc-dark-mode .header-date,
html.gc-erp-online-theme.gc-dark-mode .calendario-header-desc,
html.gc-erp-online-theme.gc-dark-mode .entregas-subtitulo,
html.gc-erp-online-theme.gc-dark-mode :where(p, small, .panel-subtitle, .form-help) {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme.gc-dark-mode .gc-sidebar-registered strong,
html.gc-erp-online-theme.gc-dark-mode .gc-user-name,
html.gc-erp-online-theme.gc-dark-mode :where(h1, h2, h3, h4, h5, h6, label, strong),
html.gc-erp-online-theme.gc-dark-mode :where(.card-number, .calendario-titulo, .entregas-titulo, .metric-value, .stat-number) {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode .gc-menu-link,
html.gc-erp-online-theme.gc-dark-mode .gc-menu-group-toggle {
    color: #c8d5e6 !important;
    background: transparent !important;
    border-color: transparent !important;
}

html.gc-erp-online-theme.gc-dark-mode .gc-menu-link i,
html.gc-erp-online-theme.gc-dark-mode .gc-menu-group-toggle i {
    color: #8da2ba !important;
}

html.gc-erp-online-theme.gc-dark-mode .gc-menu-link:hover,
html.gc-erp-online-theme.gc-dark-mode .gc-menu-link.is-active,
html.gc-erp-online-theme.gc-dark-mode .gc-menu-group-toggle:hover,
html.gc-erp-online-theme.gc-dark-mode .gc-menu-group.is-open > .gc-menu-group-toggle {
    color: #eaf8ff !important;
    background: rgba(36, 196, 231, .12) !important;
    border-color: rgba(36, 196, 231, .22) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(.dashboard-header, .page-header, .produtos-header, .clientes-header, .header-section, .fiscal-header, .pos-header, .ordens-header),
html.gc-erp-online-theme.gc-dark-mode :where(.card, .table-card, .card-form, .report-card, .filtro-card, .caixa-card, .card-resumo, .resumo-card, .config-card, .info-card, .section-card, .stat-card, .metric-card, .dashboard-card),
html.gc-erp-online-theme.gc-dark-mode :where(.calendario-wrapper, .entregas-wrapper, .calendario-container, .modal-content, .modal, .modal-box, .modal-card, .pos-modal, .gc-dialog-card) {
    background: rgba(17, 27, 45, .96) !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(.card, .table-card, .report-card, .filtro-card, .caixa-card, .card-resumo, .resumo-card, .config-card, .info-card, .section-card, .stat-card, .metric-card, .dashboard-card):hover {
    border-color: rgba(36, 196, 231, .28) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .28) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(.card-icon, .icon-card, .stat-icon, .resumo-icon, .calendario-header-title i, .caixa-icon),
html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:nth-child(2n) .card-icon,
html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:nth-child(3n) .card-icon {
    background: rgba(36, 196, 231, .13) !important;
    color: var(--gc-cyan) !important;
    border-color: rgba(36, 196, 231, .22) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(input[type="text"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="date"], input[type="search"], input[type="tel"], input[type="file"], select, textarea) {
    background: var(--gc-input) !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(input, select, textarea)::placeholder {
    color: #7f91a8 !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(input, select, textarea):focus {
    background: #101c30 !important;
    border-color: var(--gc-cyan) !important;
    box-shadow: 0 0 0 4px rgba(36, 196, 231, .13) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(table, .table, .usuarios-table, .auditoria-table, .meios-pagamento-table) {
    background: transparent !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(th, thead th, .usuarios-table th, .auditoria-table th, .meios-pagamento-table th) {
    background: #0d1728 !important;
    color: #b9c6d8 !important;
    border-color: var(--gc-line) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(td, tbody td, .usuarios-table td, .auditoria-table td, .meios-pagamento-table td) {
    color: var(--gc-ink) !important;
    border-color: var(--gc-line-soft) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(.filtro-periodo-texto, .filtro-periodo-dropdown, .filtro-periodo-item, .calendario-nav-btn, .font-scale-presets button, .btn-acao, .btn-secundario) {
    background: #111b2d !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(.filtro-periodo-item:hover, .calendario-nav-btn:hover, .font-scale-presets button:hover, .btn-acao:hover) {
    background: rgba(36, 196, 231, .12) !important;
    color: #eaf8ff !important;
    border-color: rgba(36, 196, 231, .24) !important;
}

html.gc-erp-online-theme.gc-dark-mode .dia-calendario {
    color: #d9e4f3 !important;
}

html.gc-erp-online-theme.gc-dark-mode .dia-calendario.outro-mes {
    color: #64748b !important;
}

html.gc-erp-online-theme.gc-dark-mode .dia-calendario:hover:not(.outro-mes):not(.entrega-primaria):not(.entrega-multipla) {
    background: rgba(36, 196, 231, .12) !important;
}

html.gc-erp-online-theme.gc-dark-mode .gc-theme-switch {
    background: #111b2d !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode .gc-theme-switch-track {
    background: #08111f !important;
    border-color: var(--gc-line) !important;
}

html.gc-erp-online-theme.gc-dark-mode .gc-theme-switch-thumb {
    background: #17243a !important;
    color: var(--gc-yellow) !important;
}

html.gc-erp-online-theme.gc-dark-mode .gc-dialog-overlay {
    background: rgba(2, 6, 23, .66) !important;
}

html.gc-erp-online-theme.gc-dark-mode .gc-dialog-message {
    color: var(--gc-muted) !important;
}

@media (max-width: 720px) {
    html.gc-erp-online-theme .header-right {
        gap: .55rem !important;
        flex-wrap: wrap !important;
    }

    html.gc-erp-online-theme .gc-theme-switch-label {
        display: none !important;
    }
}

/* Modo escuro: correções de contraste para telas antigas com CSS inline */
html.gc-erp-online-theme.gc-dark-mode body :where(
    [style*="background:white"],
    [style*="background: white"],
    [style*="background:#fff"],
    [style*="background: #fff"],
    [style*="background-color:white"],
    [style*="background-color: white"],
    [style*="background:#f8fafc"],
    [style*="background: #f8fafc"],
    [style*="background:#f9fafb"],
    [style*="background: #f9fafb"]
) {
    background: #111b2d !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode body :where(
    [style*="color:#111827"],
    [style*="color: #111827"],
    [style*="color:#1f2937"],
    [style*="color: #1f2937"],
    [style*="color:#374151"],
    [style*="color: #374151"]
) {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode body :where(
    [style*="color:#475569"],
    [style*="color: #475569"],
    [style*="color:#64748b"],
    [style*="color: #64748b"],
    [style*="color:#6b7280"],
    [style*="color: #6b7280"]
) {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo > div {
    background: #111b2d !important;
    border: 1px solid var(--gc-line) !important;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .46) !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo h2 {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo > div > p {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo a[href="/pos/autorizar"] {
    background: linear-gradient(135deg, rgba(22, 163, 74, .18), rgba(22, 163, 74, .08)) !important;
    border-color: #22c55e !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo a[href="/pos/autorizar"] h3 {
    color: #bbf7d0 !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo a[href="/pos/autorizar"] p {
    color: #86efac !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo a[href="/orcamentos/autorizar-novo"] {
    background: linear-gradient(135deg, rgba(36, 196, 231, .18), rgba(36, 196, 231, .08)) !important;
    border-color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo a[href="/orcamentos/autorizar-novo"] h3 {
    color: #a5f3fc !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo a[href="/orcamentos/autorizar-novo"] p {
    color: #7dd3fc !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo a[href="/pos/autorizar"] > i,
html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo a[href="/orcamentos/autorizar-novo"] > i {
    color: inherit !important;
}

html.gc-erp-online-theme.gc-dark-mode .orcamento-card {
    background: #111b2d !important;
    border: 1px solid var(--gc-line) !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme.gc-dark-mode .orcamento-card.selected {
    background: #142033 !important;
    border-color: rgba(36, 196, 231, .45) !important;
    box-shadow: 0 0 0 2px rgba(36, 196, 231, .18) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(.orcamento-numero, .orcamento-total, .orcamento-header, .orcamento-card strong) {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(.orcamento-info, .orcamento-info span, .orcamento-descricao, .paginacao-info) {
    color: var(--gc-muted) !important;
}

html.gc-erp-online-theme.gc-dark-mode .orcamento-actions .btn-action:not(.btn-visualizar):not(.btn-converter):not(.btn-excluir) {
    background: #0d1728 !important;
    border: 1px solid var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode .vendas-table tbody tr,
html.gc-erp-online-theme.gc-dark-mode .venda-row {
    background: #111b2d !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode .vendas-table tbody tr:nth-child(even) {
    background: #0f192a !important;
}

html.gc-erp-online-theme.gc-dark-mode .vendas-table tbody tr:hover {
    background: #17243a !important;
}

html.gc-erp-online-theme.gc-dark-mode .vendas-table :where(td, th) {
    color: var(--gc-ink) !important;
    border-color: var(--gc-line-soft) !important;
}

html.gc-erp-online-theme.gc-dark-mode .vendas-table thead th {
    background: #0b1322 !important;
    color: #dbeafe !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(.pagamento-chip, .btn-acoes, .paginacao-btn, .paginacao-numero) {
    background: #f8fbff !important;
    border-color: #d7e2ed !important;
    color: #34445a !important;
}

html.gc-erp-online-theme.gc-dark-mode .pagamento-chip__title {
    color: #1e293b !important;
}

html.gc-erp-online-theme.gc-dark-mode .pagamento-chip__subtitle {
    color: #64748b !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(.status-chip--pago, .status-pago) {
    background: #dcfce7 !important;
    color: #166534 !important;
    border-color: #bbf7d0 !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(.status-chip--pendente, .status-pendente) {
    background: #fef3c7 !important;
    color: #92400e !important;
    border-color: #fde68a !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(.status-chip--cancelada, .status-cancelado, .status-cancelada) {
    background: #e2e8f0 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(.pos-container, .pos-left, .pos-right, .pos-card, .pos-section, .pos-panel, .pos-carrinho-item, .pos-cliente-selecionado, .pos-pagamento-resumo, .pos-resumo-desconto-card) {
    background: #111b2d !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(.pos-container, .pos-left, .pos-right, .pos-card, .pos-section, .pos-panel, .pos-carrinho-item, .pos-cliente-selecionado) :where(p, span, small, label, div):not(.fa):not(.fas):not(.far):not(.fab):not(.fa-solid) {
    color: inherit !important;
}

/* Modo escuro refinado: somente quando o interruptor estiver ativo */
html.gc-erp-online-theme.gc-dark-mode {
    --gc-dark-page-2: #0a1424;
    --gc-dark-panel-2: #101b2e;
    --gc-dark-panel-3: #142138;
    --gc-dark-line-2: #2c3b52;
    --gc-dark-text-soft: #c5d0df;
}

html.gc-erp-online-theme.gc-dark-mode :where(
    .dashboard-container,
    .page-container,
    .produtos-container,
    .clientes-container,
    .vendas-container,
    .orcamentos-container,
    .ordens-container,
    .relatorios-container,
    .configuracoes-container,
    .fiscal-container,
    .consulta-precos-container,
    .precificador-container,
    .entrada-xml-container,
    .content-wrapper,
    .content-area
) {
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(
    .dashboard-header,
    .page-header,
    .produtos-header,
    .clientes-header,
    .header-section,
    .fiscal-header,
    .pos-header,
    .ordens-header,
    .filters-section,
    .filtros-container,
    .filtros-card,
    .search-section,
    .search-container,
    .table-card,
    .table-container,
    .table-wrapper,
    .list-card,
    .content-card,
    .panel-card,
    .form-card,
    .modal-content,
    .modal,
    .modal-box,
    .modal-card
) {
    background: linear-gradient(180deg, rgba(17, 27, 45, .98), rgba(14, 24, 40, .98)) !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(
    .dashboard-header,
    .page-header,
    .produtos-header,
    .clientes-header,
    .header-section,
    .fiscal-header,
    .pos-header,
    .ordens-header
) :where(p, span:not(.badge):not(.status-badge), small) {
    color: var(--gc-dark-text-soft) !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card,
html.gc-erp-online-theme.gc-dark-mode .stat-card,
html.gc-erp-online-theme.gc-dark-mode .metric-card,
html.gc-erp-online-theme.gc-dark-mode .dashboard-card {
    background: #111b2d !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .22) !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-content h3 {
    color: #93a4bb !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-subtitle,
html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-content p {
    color: #b4c1d4 !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-number {
    color: #f8fbff !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(
    .caixa-resumo-card,
    .caixa-lista,
    .caixa-lista-vazia,
    .caixa-fechado,
    .caixa-footer,
    .alertas-resumo-card,
    .alertas-detalhe-card
) {
    background: #0d1728 !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode .caixa-resumo-card.vendas {
    background: rgba(36, 196, 231, .12) !important;
    border-color: rgba(36, 196, 231, .42) !important;
}

html.gc-erp-online-theme.gc-dark-mode .caixa-valor-final {
    background: linear-gradient(135deg, rgba(16, 185, 129, .13), rgba(16, 185, 129, .05)) !important;
    border: 1px solid rgba(52, 211, 153, .28) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode .caixa-label-grande,
html.gc-erp-online-theme.gc-dark-mode .caixa-resumo-label,
html.gc-erp-online-theme.gc-dark-mode .caixa-secao-title span {
    color: #aab9cb !important;
}

html.gc-erp-online-theme.gc-dark-mode .caixa-valor-grande {
    color: #34d399 !important;
}

html.gc-erp-online-theme.gc-dark-mode .caixa-lista-vazia {
    color: #b7c4d5 !important;
}

html.gc-erp-online-theme.gc-dark-mode .btn-secundario,
html.gc-erp-online-theme.gc-dark-mode .btn-ver-detalhes-alertas {
    background: #101b2e !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode .calendario-wrapper,
html.gc-erp-online-theme.gc-dark-mode .entregas-wrapper {
    background: #101b2e !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode .calendario-container {
    background: #0c1627 !important;
    border-color: var(--gc-line) !important;
}

html.gc-erp-online-theme.gc-dark-mode .calendario-divisor {
    background: linear-gradient(180deg, transparent, rgba(36, 196, 231, .65), transparent) !important;
}

html.gc-erp-online-theme.gc-dark-mode .dia-semana {
    color: #93a4bb !important;
}

html.gc-erp-online-theme.gc-dark-mode .dia-calendario {
    background: #111b2d !important;
    border: 1px solid #304057 !important;
    color: #dbeafe !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme.gc-dark-mode .dia-calendario.outro-mes {
    background: #0b1322 !important;
    border-color: #263449 !important;
    color: #6f8096 !important;
    opacity: 1 !important;
}

html.gc-erp-online-theme.gc-dark-mode .dia-calendario:hover:not(.outro-mes):not(.entrega-primaria):not(.entrega-multipla) {
    background: rgba(36, 196, 231, .16) !important;
    border-color: rgba(36, 196, 231, .42) !important;
    color: #f8fbff !important;
}

html.gc-erp-online-theme.gc-dark-mode .dia-calendario.dia-selecionado {
    background: rgba(36, 196, 231, .18) !important;
    border-color: var(--gc-cyan) !important;
    color: #f8fbff !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(
    table,
    .vendas-table,
    .data-table,
    .usuarios-table,
    .auditoria-table,
    .meios-pagamento-table
) {
    background: #0d1728 !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(
    tbody tr,
    .vendas-table tbody tr,
    .data-table tbody tr,
    .usuarios-table tbody tr,
    .auditoria-table tbody tr,
    .meios-pagamento-table tbody tr
) {
    background: #111b2d !important;
    border-color: var(--gc-line-soft) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(
    tbody tr:nth-child(even),
    .vendas-table tbody tr:nth-child(even),
    .data-table tbody tr:nth-child(even)
) {
    background: #0f192a !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(td, th, td span, td strong, td small) {
    color: inherit !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(.pagamento-chip, .btn-acoes, .paginacao-btn, .paginacao-numero, .btn-action) {
    background: #0d1728 !important;
    border-color: var(--gc-line) !important;
    color: #dbeafe !important;
}

html.gc-erp-online-theme.gc-dark-mode .paginacao-numero.active,
html.gc-erp-online-theme.gc-dark-mode .paginacao-btn.active {
    background: var(--gc-cyan) !important;
    border-color: var(--gc-cyan) !important;
    color: #02111a !important;
}

html.gc-erp-online-theme.gc-dark-mode .pagamento-chip__title,
html.gc-erp-online-theme.gc-dark-mode .pagamento-chip__subtitle {
    color: #dbeafe !important;
}

html.gc-erp-online-theme.gc-dark-mode .orcamentos-grid .orcamento-card,
html.gc-erp-online-theme.gc-dark-mode .orcamento-card {
    background: #111b2d !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode .orcamento-header {
    border-bottom-color: var(--gc-line) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(
    .orcamento-info,
    .orcamento-info span,
    .orcamento-descricao,
    .info-row,
    .info-row span
) {
    color: #c2cede !important;
}

html.gc-erp-online-theme.gc-dark-mode .orcamento-total {
    background: #0d1728 !important;
    border-color: var(--gc-line) !important;
    color: #34d399 !important;
}

html.gc-erp-online-theme.gc-dark-mode .orcamento-actions .btn-action:not(.btn-excluir) {
    background: #0d1728 !important;
    border-color: var(--gc-line) !important;
    color: #dbeafe !important;
}

html.gc-erp-online-theme.gc-dark-mode .orcamento-actions .btn-visualizar,
html.gc-erp-online-theme.gc-dark-mode .orcamento-actions .btn-converter {
    background: rgba(36, 196, 231, .12) !important;
    border-color: rgba(36, 196, 231, .34) !important;
    color: #a5f3fc !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo {
    background: rgba(2, 6, 23, .78) !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo > div {
    background: #111b2d !important;
    border: 1px solid var(--gc-line) !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo :where(h2, h3, h4) {
    color: #f8fbff !important;
}

html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo :where(p, span) {
    color: #c2cede !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(
    .pos-main,
    .pos-left,
    .pos-right,
    .pos-card,
    .pos-section,
    .pos-panel,
    .pos-carrinho,
    .pos-carrinho-item,
    .pos-cliente-selecionado,
    .pos-pagamento-resumo,
    .pos-total-card
) {
    background: #111b2d !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(
    .produto-card,
    .cliente-card,
    .categoria-card,
    .os-card,
    .relatorio-card,
    .config-section,
    .backup-panel,
    .upload-area,
    .preview-area
) {
    background: #111b2d !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="password"],
    input[type="url"],
    input[type="date"],
    input[type="search"],
    input[type="tel"],
    input[type="file"],
    select,
    textarea
) {
    background: #0d1728 !important;
    border-color: var(--gc-line) !important;
    color: #f8fbff !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(
    .select2-container--default .select2-selection--single,
    .select2-container--default .select2-selection--multiple,
    .dropdown-menu,
    .dropdown-content,
    .suggestions,
    .autocomplete-results
) {
    background: #0d1728 !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(
    [style*="background:#ffffff"],
    [style*="background: #ffffff"],
    [style*="background-color:#ffffff"],
    [style*="background-color: #ffffff"],
    [style*="background-color:#fff"],
    [style*="background-color: #fff"],
    [style*="background:#f1f5f9"],
    [style*="background: #f1f5f9"],
    [style*="background-color:#f1f5f9"],
    [style*="background-color: #f1f5f9"]
) {
    background: #111b2d !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme.gc-dark-mode :where(
    [style*="color:#0f172a"],
    [style*="color: #0f172a"],
    [style*="color:#334155"],
    [style*="color: #334155"],
    [style*="color:#4b5563"],
    [style*="color: #4b5563"],
    [style*="color:#6b7280"],
    [style*="color: #6b7280"],
    [style*="color:#94a3b8"],
    [style*="color: #94a3b8"]
) {
    color: var(--gc-dark-text-soft) !important;
}

html.gc-erp-online-theme.gc-dark-mode footer,
html.gc-erp-online-theme.gc-dark-mode .footer {
    background: #0b1322 !important;
    border-top: 1px solid var(--gc-line) !important;
    color: #a8b3c5 !important;
}

/* Light-mode polish: softer surfaces and compact settings tabs */
html.gc-erp-online-theme:not(.gc-dark-mode) {
    --gc-surface: #fbfdff;
    --gc-surface-muted: #f6f9fc;
    --gc-surface-strong: #f2f6fa;
    --gc-button-surface: #f3f7fb;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .card,
    .table-card,
    .card-form,
    .report-card,
    .filtro-card,
    .caixa-card,
    .card-resumo,
    .resumo-card,
    .config-card,
    .info-card,
    .section-card,
    .stat-card,
    .metric-card,
    .dashboard-card,
    .produto-card,
    .cliente-card,
    .categoria-card,
    .os-card,
    .relatorio-card,
    .orcamento-card,
    .modal-content,
    .dropdown-menu,
    .dropdown-content,
    .table-wrapper,
    .data-table,
    .venda-card,
    .storage-usage-box,
    .storage-info-box,
    .storage-cleanup-box,
    .storage-provider-card
) {
    background: var(--gc-surface) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .btn-cancelar,
    .btn-secundario,
    .btn-secondary,
    .btn-print,
    .btn-imprimir,
    .btn-acoes,
    .btn-action,
    .action-btn,
    .paginacao-btn,
    .paginacao-numero,
    .storage-btn,
    .dropdown-menu button,
    .menu-acoes-dropdown a
):not(.active):not(.btn-primary):not(.btn-salvar):not(.btn-cadastrar):not(.btn-danger):not(.btn-excluir):not(.primary):not(.danger) {
    background: var(--gc-button-surface) !important;
    border-color: #dbe5f0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="password"],
    input[type="url"],
    input[type="date"],
    input[type="search"],
    input[type="tel"],
    input[type="file"],
    select,
    textarea
) {
    background: #f7fafc !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .configuracoes-container .page-header,
html.gc-erp-online-theme:not(.gc-dark-mode) .configuracoes-container .tabs-container,
html.gc-erp-online-theme:not(.gc-dark-mode) .configuracoes-container .card-form,
html.gc-erp-online-theme:not(.gc-dark-mode) .configuracoes-container .card-list {
    background: var(--gc-surface) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .configuracoes-container .page-header::before {
    height: 2px !important;
    opacity: .72 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .configuracoes-container .tabs-container::before,
html.gc-erp-online-theme:not(.gc-dark-mode) .configuracoes-container .card-form::before {
    display: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .configuracoes-container .tabs-container {
    padding: .42rem !important;
    overflow: visible !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .configuracoes-container .tabs {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)) !important;
    gap: .28rem !important;
    overflow: visible !important;
    padding: 0 !important;
    scrollbar-width: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .configuracoes-container .tabs::-webkit-scrollbar {
    display: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .configuracoes-container .tab-button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: .42rem .46rem !important;
    border-radius: 8px !important;
    font-size: .7rem !important;
    gap: .28rem !important;
    background: var(--gc-button-surface) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .configuracoes-container .tab-button i {
    font-size: .76rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .configuracoes-container .tab-button span {
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Etapa 1 - Base CMYK equilibrada para o tema claro */
html.gc-erp-online-theme:not(.gc-dark-mode) {
    --gc-cyan: #078da0;
    --gc-magenta: #b52b7b;
    --gc-yellow: #c49b12;
    --gc-black: #211c2e;
    --gc-ink: #251f31;
    --gc-muted: #716878;
    --gc-page: #f1eee8;
    --gc-panel: #f8f5ef;
    --gc-panel-2: #f3efe7;
    --gc-panel-3: #ece6dc;
    --gc-line: #ddd4c8;
    --gc-line-soft: #e9e1d7;
    --gc-input: #f4f0e8;
    --gc-cyan-soft: #e6f3f1;
    --gc-magenta-soft: #f6e7ef;
    --gc-yellow-soft: #f6efd3;
    --gc-graphite-soft: #edeaf0;
    --gc-green-soft: #eaf6ee;
    --gc-action: #211c2e;
    --gc-action-hover: #15111f;
    --gc-focus: rgba(181, 43, 123, .16);
    --gc-shadow: 0 18px 42px rgba(33, 28, 46, .075);
    --gc-shadow-soft: 0 8px 22px rgba(33, 28, 46, .06);
    --gc-cmyk-strip: linear-gradient(90deg, var(--gc-cyan) 0 24%, var(--gc-magenta) 24% 49%, var(--gc-yellow) 49% 73%, var(--gc-black) 73% 100%);
    --primary-color: var(--gc-action);
    --primary-hover: var(--gc-action-hover);
    --accent-color: var(--gc-magenta);
    --bg-color: var(--gc-page);
    --text-main: var(--gc-ink);
    --text-light: var(--gc-muted);
    --border-color: var(--gc-line);
    --card-bg: var(--gc-panel);
    --primary-gradient: linear-gradient(135deg, var(--gc-black), var(--gc-magenta));
    --gc-surface: var(--gc-panel);
    --gc-surface-muted: var(--gc-panel-2);
    --gc-surface-strong: var(--gc-panel-3);
    --gc-button-surface: #f2ece2;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body,
html.gc-erp-online-theme:not(.gc-dark-mode) .main-content {
    background:
        radial-gradient(circle at 12% 8%, rgba(7, 141, 160, .075), transparent 26rem),
        radial-gradient(circle at 90% 12%, rgba(181, 43, 123, .06), transparent 27rem),
        linear-gradient(135deg, rgba(196, 155, 18, .055), transparent 42%),
        var(--gc-page) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-app-topbar,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar,
html.gc-erp-online-theme:not(.gc-dark-mode) .sidebar.gc-sidebar,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-tools,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-menu,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-footer {
    background: rgba(248, 245, 239, .96) !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-app-topbar {
    box-shadow: 0 10px 28px rgba(33, 28, 46, .052) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-header {
    background:
        linear-gradient(180deg, rgba(7, 141, 160, .045), rgba(181, 43, 123, .026)),
        var(--gc-panel) !important;
    border-bottom-color: var(--gc-line) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar::before,
html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-header::before,
html.gc-erp-online-theme:not(.gc-dark-mode) .page-header::before,
html.gc-erp-online-theme:not(.gc-dark-mode) .card-form::before,
html.gc-erp-online-theme:not(.gc-dark-mode) .calendar-section::before,
html.gc-erp-online-theme:not(.gc-dark-mode) .configuracoes-container .page-header::before {
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .dashboard-header,
    .page-header,
    .produtos-header,
    .clientes-header,
    .vendas-header,
    .orcamentos-header,
    .os-header,
    .relatorios-header,
    .fiscal-header,
    .configuracoes-container .page-header,
    .configuracoes-container .tabs-container,
    .card,
    .table-card,
    .card-form,
    .card-list,
    .report-card,
    .filtro-card,
    .caixa-card,
    .card-resumo,
    .resumo-card,
    .config-card,
    .info-card,
    .section-card,
    .stat-card,
    .metric-card,
    .dashboard-card,
    .produto-card,
    .cliente-card,
    .categoria-card,
    .os-card,
    .relatorio-card,
    .orcamento-card,
    .modal-content,
    .dropdown-menu,
    .dropdown-content,
    .table-wrapper,
    .data-table,
    .venda-card,
    .storage-usage-box,
    .storage-info-box,
    .storage-cleanup-box,
    .storage-default-box,
    .storage-provider-card,
    .gc-storage-panel
) {
    background: linear-gradient(180deg, rgba(248, 245, 239, .98), rgba(243, 239, 231, .98)) !important;
    border-color: var(--gc-line) !important;
    box-shadow: var(--gc-shadow-soft) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .modal-header,
    .modal-footer,
    thead,
    .table-header,
    .storage-default-box,
    .storage-cleanup-toolbar,
    .resumo-header,
    .card-header
) {
    background: var(--gc-panel-2) !important;
    border-color: var(--gc-line) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="password"],
    input[type="url"],
    input[type="date"],
    input[type="search"],
    input[type="tel"],
    input[type="file"],
    select,
    textarea,
    .select2-container--default .select2-selection--single,
    .select2-container--default .select2-selection--multiple
) {
    background: var(--gc-input) !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    input[type="text"],
    input[type="email"],
    input[type="number"],
    input[type="password"],
    input[type="url"],
    input[type="date"],
    input[type="search"],
    input[type="tel"],
    select,
    textarea
):focus {
    border-color: var(--gc-magenta) !important;
    box-shadow: 0 0 0 4px var(--gc-focus), inset 0 1px 0 rgba(255, 255, 255, .42) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .btn-primary,
    .btn-salvar,
    .btn-cadastrar,
    .btn-adicionar,
    .btn-novo,
    .btn-novo-produto,
    .btn-success,
    button[type="submit"],
    .storage-btn.primary
):not(.btn-danger):not(.btn-excluir):not(.danger):not(.link-danger) {
    background: linear-gradient(135deg, var(--gc-black), #3a213c 58%, var(--gc-magenta)) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(33, 28, 46, .16) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .btn-primary,
    .btn-salvar,
    .btn-cadastrar,
    .btn-adicionar,
    .btn-novo,
    .btn-novo-produto,
    .btn-success,
    button[type="submit"],
    .storage-btn.primary
):not(.btn-danger):not(.btn-excluir):not(.danger):not(.link-danger):hover {
    background: linear-gradient(135deg, var(--gc-action-hover), #4b2447 58%, #c7358f) !important;
    transform: translateY(-1px);
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .btn-cancelar,
    .btn-secundario,
    .btn-secondary,
    .btn-print,
    .btn-imprimir,
    .btn-acoes,
    .btn-action,
    .action-btn,
    .paginacao-btn,
    .paginacao-numero,
    .storage-btn,
    .dropdown-menu button,
    .menu-acoes-dropdown a
):not(.active):not(.btn-primary):not(.btn-salvar):not(.btn-cadastrar):not(.btn-danger):not(.btn-excluir):not(.primary):not(.danger):not(.link-danger) {
    background: var(--gc-panel-2) !important;
    border-color: var(--gc-line) !important;
    color: var(--gc-ink) !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .btn-cancelar,
    .btn-secundario,
    .btn-secondary,
    .btn-print,
    .btn-imprimir,
    .btn-acoes,
    .btn-action,
    .action-btn,
    .paginacao-btn,
    .paginacao-numero,
    .storage-btn,
    .dropdown-menu button,
    .menu-acoes-dropdown a
):not(.active):not(.btn-primary):not(.btn-salvar):not(.btn-cadastrar):not(.btn-danger):not(.btn-excluir):not(.primary):not(.danger):not(.link-danger):hover {
    background: var(--gc-magenta-soft) !important;
    border-color: #e5bdd1 !important;
    color: var(--gc-magenta) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group-toggle,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-organize-btn,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-group-add-btn,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-user-trigger,
html.gc-erp-online-theme:not(.gc-dark-mode) .menu-toggle {
    background: transparent !important;
    border-color: transparent !important;
    color: #3b3345 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link:focus-visible,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link.is-active,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group.is-open > .gc-menu-group-toggle,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group-toggle:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-organize-btn:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-organize-btn.is-active,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-group-add-btn:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-user-trigger:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-user-trigger.is-open {
    background: var(--gc-magenta-soft) !important;
    border-color: #e5bdd1 !important;
    color: var(--gc-black) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link i,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group-toggle i,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-user-chevron {
    color: #837887 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link:hover i,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link.is-active i,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group-toggle:hover i {
    color: var(--gc-magenta) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-registered {
    background: linear-gradient(135deg, var(--gc-panel-2), var(--gc-yellow-soft)) !important;
    border-color: #e7d9a6 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-registered span {
    color: var(--gc-magenta) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-user-dropdown,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-user-storage-card,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-user-plan-card,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-user-notice-card {
    background: var(--gc-panel) !important;
    border-color: var(--gc-line) !important;
    box-shadow: var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-user-dropdown-item:hover {
    background: var(--gc-yellow-soft) !important;
    color: var(--gc-black) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-theme-switch {
    background: var(--gc-panel-2) !important;
    border-color: var(--gc-line) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-theme-switch-track {
    background: var(--gc-yellow-soft) !important;
    border-color: #e7d9a6 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-theme-switch-thumb {
    color: var(--gc-yellow) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.icon-box, .metric-icon, .stat-icon, .card-icon, .storage-provider-card header i) {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.metric-card, .stat-card, .dashboard-card, .relatorio-card):nth-child(4n + 2) :where(.icon-box, .metric-icon, .stat-icon, .card-icon) {
    background: var(--gc-magenta-soft) !important;
    color: var(--gc-magenta) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.metric-card, .stat-card, .dashboard-card, .relatorio-card):nth-child(4n + 3) :where(.icon-box, .metric-icon, .stat-icon, .card-icon) {
    background: var(--gc-yellow-soft) !important;
    color: #806300 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.metric-card, .stat-card, .dashboard-card, .relatorio-card):nth-child(4n) :where(.icon-box, .metric-icon, .stat-icon, .card-icon) {
    background: var(--gc-graphite-soft) !important;
    color: var(--gc-black) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(table, .vendas-table, .data-table, .usuarios-table, .auditoria-table, .meios-pagamento-table) {
    background: var(--gc-panel) !important;
    border-color: var(--gc-line) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(thead, .vendas-table thead, .data-table thead) :where(th, td) {
    background: var(--gc-panel-3) !important;
    color: #4f4659 !important;
    border-color: var(--gc-line) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(tbody tr, .vendas-table tbody tr, .data-table tbody tr) {
    background: var(--gc-panel) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(tbody tr:hover, .vendas-table tbody tr:hover, .data-table tbody tr:hover) {
    background: #f4eadf !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .storage-default-switch {
    background: var(--gc-panel-3) !important;
    border-color: var(--gc-line) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .storage-default-option {
    background: transparent !important;
    color: #4f4659 !important;
    border-color: transparent !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .storage-default-option.is-active {
    background: var(--gc-panel) !important;
    color: var(--gc-black) !important;
    border-color: var(--gc-magenta) !important;
    box-shadow: 0 10px 22px rgba(181, 43, 123, .12) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .storage-provider-card.is-active {
    border-color: var(--gc-magenta) !important;
    box-shadow: 0 16px 34px rgba(181, 43, 123, .12) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .storage-bar {
    background: var(--gc-panel-3) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .storage-bar span {
    background: linear-gradient(90deg, var(--gc-cyan), var(--gc-magenta) 58%, var(--gc-yellow)) !important;
}

/* Etapa 2 - Shell premium do ERP Online */
html.gc-erp-online-theme:not(.gc-dark-mode) {
    --gc-shell-glass: rgba(248, 245, 239, .88);
    --gc-shell-border: rgba(86, 73, 91, .13);
    --gc-shell-shadow: 0 18px 48px rgba(33, 28, 46, .10);
    --gc-shell-shadow-soft: 0 10px 28px rgba(33, 28, 46, .075);
    --gc-shell-inner: inset 0 1px 0 rgba(255, 255, 255, .55);
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-app-topbar {
    height: 66px !important;
    padding: 0 1.25rem !important;
    background:
        linear-gradient(180deg, rgba(248, 245, 239, .96), rgba(243, 239, 231, .90)),
        var(--gc-shell-glass) !important;
    border-bottom: 1px solid var(--gc-shell-border) !important;
    box-shadow: 0 12px 32px rgba(33, 28, 46, .07) !important;
    backdrop-filter: blur(14px) saturate(1.05) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-app-topbar::before {
    height: 3px !important;
    background: var(--gc-cmyk-strip) !important;
    opacity: .92 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar,
html.gc-erp-online-theme:not(.gc-dark-mode) .sidebar.gc-sidebar {
    background:
        radial-gradient(circle at 18% 6%, rgba(181, 43, 123, .065), transparent 9.5rem),
        radial-gradient(circle at 82% 28%, rgba(196, 155, 18, .075), transparent 11rem),
        linear-gradient(180deg, rgba(248, 245, 239, .98), rgba(240, 235, 226, .98)) !important;
    border-right: 1px solid var(--gc-shell-border) !important;
    box-shadow: 12px 0 34px rgba(33, 28, 46, .075) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar::after {
    content: "" !important;
    position: absolute !important;
    inset: 3px 0 0 auto !important;
    width: 1px !important;
    background: linear-gradient(180deg, rgba(7, 141, 160, .22), rgba(181, 43, 123, .16), rgba(196, 155, 18, .18), transparent) !important;
    pointer-events: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-header {
    padding: 1.05rem .95rem .82rem !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0)) !important;
    border-bottom: 1px solid rgba(221, 212, 200, .72) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-brand {
    min-height: 58px !important;
    padding: .38rem .55rem !important;
    border-radius: 14px !important;
    background:
        radial-gradient(circle at 16% 18%, rgba(7, 141, 160, .08), transparent 4.8rem),
        radial-gradient(circle at 82% 72%, rgba(181, 43, 123, .07), transparent 5rem) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-logo {
    max-height: 46px !important;
    filter: drop-shadow(0 8px 14px rgba(33, 28, 46, .08)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-registered {
    position: relative !important;
    margin-top: .62rem !important;
    padding: .68rem .72rem .66rem !important;
    border: 1px solid rgba(196, 155, 18, .34) !important;
    border-radius: 13px !important;
    background:
        linear-gradient(135deg, rgba(246, 239, 211, .74), rgba(246, 231, 239, .42)),
        rgba(248, 245, 239, .86) !important;
    box-shadow: var(--gc-shell-inner), 0 10px 20px rgba(33, 28, 46, .045) !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-registered::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 3px !important;
    background: linear-gradient(180deg, var(--gc-magenta), var(--gc-yellow)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-registered span {
    color: #7b5773 !important;
    font-size: .6rem !important;
    font-weight: 850 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-registered strong {
    color: var(--gc-black) !important;
    font-size: .81rem !important;
    font-weight: 900 !important;
    line-height: 1.22 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-tools {
    padding: .72rem .86rem .42rem !important;
    background: transparent !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-organize-btn,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-group-add-btn {
    min-height: 35px !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, .34) !important;
    border: 1px solid rgba(221, 212, 200, .78) !important;
    color: #4d4154 !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-organize-btn:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-group-add-btn:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-organize-btn.is-active {
    background: rgba(246, 231, 239, .76) !important;
    border-color: rgba(181, 43, 123, .28) !important;
    color: var(--gc-magenta) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-menu {
    padding: .42rem .62rem 1rem !important;
    gap: 3px !important;
    background: transparent !important;
    scrollbar-color: rgba(86, 73, 91, .28) transparent !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(86, 73, 91, .24) !important;
    border: 2px solid rgba(248, 245, 239, .9) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group-toggle {
    position: relative !important;
    min-height: 36px !important;
    padding: .52rem .68rem !important;
    border-radius: 11px !important;
    border: 1px solid transparent !important;
    color: #463c4d !important;
    font-weight: 760 !important;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link i,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group-toggle i {
    color: #8a7d8f !important;
    font-size: .92rem !important;
    transition: color .16s ease, transform .16s ease !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group-toggle:hover {
    background: rgba(255, 255, 255, .42) !important;
    border-color: rgba(221, 212, 200, .88) !important;
    color: var(--gc-black) !important;
    transform: translateX(1px) !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link:hover i,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group-toggle:hover i {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link.is-active,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group.is-open > .gc-menu-group-toggle {
    background:
        linear-gradient(135deg, rgba(246, 231, 239, .88), rgba(246, 239, 211, .50)) !important;
    border-color: rgba(181, 43, 123, .24) !important;
    color: var(--gc-black) !important;
    box-shadow: inset 3px 0 0 var(--gc-magenta), var(--gc-shell-inner), 0 8px 18px rgba(33, 28, 46, .04) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link.is-active i,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group.is-open > .gc-menu-group-toggle i {
    color: var(--gc-magenta) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group-items {
    margin: .12rem 0 .18rem .48rem !important;
    padding-left: .38rem !important;
    border-left: 1px dashed rgba(181, 43, 123, .22) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-divider {
    background: rgba(221, 212, 200, .72) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu {
    position: relative !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-trigger {
    min-height: 46px !important;
    min-width: 226px !important;
    padding: .35rem .48rem .35rem .42rem !important;
    border-radius: 14px !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .66), rgba(243, 239, 231, .82)) !important;
    border: 1px solid rgba(221, 212, 200, .86) !important;
    box-shadow: var(--gc-shell-inner), 0 10px 22px rgba(33, 28, 46, .055) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-trigger:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-trigger.is-open {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .74), rgba(246, 231, 239, .76)) !important;
    border-color: rgba(181, 43, 123, .28) !important;
    box-shadow: var(--gc-shell-inner), 0 16px 30px rgba(33, 28, 46, .09) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-user-avatar {
    width: 37px !important;
    height: 37px !important;
    flex-basis: 37px !important;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--gc-cmyk-strip) border-box !important;
    border: 2px solid transparent !important;
    color: var(--gc-magenta) !important;
    font-weight: 950 !important;
    box-shadow: 0 8px 18px rgba(33, 28, 46, .10) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-user-alert-dot {
    top: -3px !important;
    right: -3px !important;
    width: 12px !important;
    height: 12px !important;
    background: var(--gc-magenta) !important;
    border: 2px solid var(--gc-panel) !important;
    box-shadow: 0 0 0 3px rgba(181, 43, 123, .16), 0 4px 10px rgba(181, 43, 123, .22) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-info strong {
    color: var(--gc-black) !important;
    font-size: .86rem !important;
    font-weight: 850 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-info small {
    color: #7b7280 !important;
    font-size: .7rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-chevron {
    color: #7b7280 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown {
    min-width: 324px !important;
    max-width: min(360px, calc(100vw - 1.4rem)) !important;
    padding: .62rem !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at 0 0, rgba(7, 141, 160, .08), transparent 10rem),
        radial-gradient(circle at 100% 8%, rgba(181, 43, 123, .075), transparent 12rem),
        linear-gradient(180deg, rgba(248, 245, 239, .98), rgba(242, 237, 229, .98)) !important;
    border: 1px solid rgba(221, 212, 200, .96) !important;
    box-shadow: 0 26px 70px rgba(33, 28, 46, .18) !important;
    overflow: visible !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 18px auto 18px !important;
    height: 3px !important;
    border-radius: 0 0 999px 999px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown::after {
    content: "" !important;
    position: absolute !important;
    top: -7px !important;
    right: 34px !important;
    width: 14px !important;
    height: 14px !important;
    background: rgba(248, 245, 239, .98) !important;
    border-left: 1px solid rgba(221, 212, 200, .96) !important;
    border-top: 1px solid rgba(221, 212, 200, .96) !important;
    transform: rotate(45deg) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-card,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-card,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alerts-card {
    border-radius: 15px !important;
    border: 1px solid rgba(221, 212, 200, .92) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .44), rgba(255, 255, 255, .12)),
        var(--gc-panel-2) !important;
    box-shadow: var(--gc-shell-inner), 0 10px 24px rgba(33, 28, 46, .055) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-card {
    position: relative !important;
    padding: .86rem .9rem .9rem !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 4px !important;
    background: linear-gradient(180deg, var(--gc-cyan), var(--gc-magenta)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-kicker,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alerts-title,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-head span {
    color: #6d3764 !important;
    font-size: .65rem !important;
    font-weight: 950 !important;
    text-transform: uppercase !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-badge {
    background: rgba(246, 231, 239, .78) !important;
    border-color: rgba(181, 43, 123, .24) !important;
    color: var(--gc-magenta) !important;
    font-weight: 900 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-card.is-warning .gc-subscription-badge,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-card.is-soon .gc-subscription-badge {
    background: var(--gc-yellow-soft) !important;
    border-color: rgba(196, 155, 18, .34) !important;
    color: #806300 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-plan {
    color: var(--gc-black) !important;
    font-size: .94rem !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-meta {
    color: var(--gc-muted) !important;
    font-size: .76rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-meta i {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-action {
    min-height: 37px !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, var(--gc-black), #3a213c 58%, var(--gc-magenta)) !important;
    box-shadow: 0 14px 26px rgba(33, 28, 46, .16) !important;
    color: #fff !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-action:hover {
    background: linear-gradient(135deg, #15111f, #4b2447 58%, #c7358f) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-card {
    padding: .76rem .82rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-card:hover {
    border-color: rgba(7, 141, 160, .28) !important;
    box-shadow: var(--gc-shell-inner), 0 16px 32px rgba(33, 28, 46, .10) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-head strong {
    color: var(--gc-cyan) !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-row {
    font-size: .71rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-row span {
    color: #766f7a !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-row i {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-row strong {
    color: var(--gc-black) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-usage {
    height: 8px !important;
    background: rgba(236, 230, 220, .94) !important;
    border: 1px solid rgba(221, 212, 200, .92) !important;
    box-shadow: inset 0 1px 2px rgba(33, 28, 46, .055) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-usage.is-ok span {
    background: linear-gradient(90deg, var(--gc-cyan), #2a9d80) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-usage.is-warning span {
    background: linear-gradient(90deg, var(--gc-yellow), #d97706) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-usage.is-danger span,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-usage.is-full span {
    background: linear-gradient(90deg, #e85d2a, #be123c, var(--gc-magenta)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-divider {
    background: linear-gradient(90deg, rgba(7, 141, 160, .24), rgba(181, 43, 123, .18), rgba(196, 155, 18, .20)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-email,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-foot {
    color: #756c78 !important;
    font-size: .68rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-email i {
    color: var(--gc-magenta) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alerts-card {
    padding: .74rem .78rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alert-item {
    grid-template-columns: 27px 1fr 27px !important;
    gap: .52rem !important;
    padding: .54rem .28rem !important;
    border-top: 1px solid rgba(221, 212, 200, .78) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alert-item:hover {
    background: rgba(246, 239, 211, .50) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alert-item > i {
    width: 27px !important;
    height: 27px !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alert-item.is-warning > i {
    background: var(--gc-yellow-soft) !important;
    color: #806300 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alert-item.is-danger > i {
    background: #fbe8ed !important;
    color: #be123c !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alert-item strong {
    color: var(--gc-black) !important;
    font-size: .76rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alert-item small {
    color: var(--gc-muted) !important;
    font-size: .69rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alert-read {
    width: 25px !important;
    height: 25px !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, .55) !important;
    border: 1px solid rgba(221, 212, 200, .86) !important;
    color: #7b7280 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alert-read:hover {
    background: var(--gc-green-soft) !important;
    border-color: rgba(5, 150, 105, .24) !important;
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown-item {
    min-height: 40px !important;
    border-radius: 12px !important;
    padding: .68rem .76rem !important;
    color: #463c4d !important;
    font-size: .82rem !important;
    font-weight: 820 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown-item i {
    width: 26px !important;
    height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 9px !important;
    background: var(--gc-graphite-soft) !important;
    color: var(--gc-black) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown-item:hover {
    background: rgba(246, 239, 211, .58) !important;
    color: var(--gc-black) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown-item:hover i {
    background: var(--gc-yellow-soft) !important;
    color: #806300 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown-item.is-danger {
    color: #be123c !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown-item.is-danger i {
    background: #fbe8ed !important;
    color: #be123c !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown-item.is-danger:hover {
    background: #fbe8ed !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.modal-overlay.active, .modal-overlay[style*="block"], .pos-modal-overlay, #modalSelecaoTipo.visible) {
    background: rgba(33, 28, 46, .42) !important;
    backdrop-filter: blur(7px) saturate(.92) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.modal-content, .modal-cliente, .modal-usuario, .modal-payment, .gc-group-modal, .pos-modal, .gc-dialog-card) {
    border-radius: 18px !important;
    border: 1px solid rgba(221, 212, 200, .94) !important;
    background:
        linear-gradient(180deg, rgba(248, 245, 239, .99), rgba(243, 239, 231, .99)) !important;
    box-shadow: 0 30px 90px rgba(33, 28, 46, .22) !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.modal-header, .modal-cliente .modal-header, .modal-produto .modal-header, .gc-group-modal-head) {
    position: relative !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, .08)), var(--gc-panel-2) !important;
    border-bottom: 1px solid rgba(221, 212, 200, .86) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.modal-header, .modal-cliente .modal-header, .modal-produto .modal-header, .gc-group-modal-head)::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 3px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .modal-close {
    background: rgba(255, 255, 255, .52) !important;
    border: 1px solid rgba(221, 212, 200, .86) !important;
    color: #6f6677 !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .modal-close:hover {
    background: #fbe8ed !important;
    border-color: rgba(190, 18, 60, .20) !important;
    color: #be123c !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.alert, .alerta, .notification, .toast, .flash-message, .mensagem-alerta) {
    border-radius: 13px !important;
    border: 1px solid rgba(221, 212, 200, .9) !important;
    background: var(--gc-panel-2) !important;
    color: var(--gc-black) !important;
    box-shadow: var(--gc-shell-inner), var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) footer,
html.gc-erp-online-theme:not(.gc-dark-mode) .footer {
    background:
        linear-gradient(90deg, rgba(7, 141, 160, .08), rgba(181, 43, 123, .06), rgba(196, 155, 18, .08)),
        var(--gc-panel-3) !important;
    border-top: 1px solid var(--gc-line) !important;
    color: #6f6677 !important;
}

@media (max-width: 768px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) .gc-app-topbar {
        height: 60px !important;
        padding: 0 .82rem !important;
    }

    html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-trigger {
        min-width: 48px !important;
        border-radius: 13px !important;
    }

    html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown {
        right: 0 !important;
        min-width: min(330px, calc(100vw - 1rem)) !important;
    }
}

/* Etapa 3 - Dashboard premium */
html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-container {
    max-width: 1560px !important;
    padding: .85rem 1.4rem 1.8rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-main-layout {
    gap: 1.15rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-top-section {
    grid-template-columns: minmax(310px, 330px) minmax(0, 1fr) !important;
    gap: 1.15rem !important;
    align-items: start !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-content-wrapper {
    gap: 1.15rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-header {
    min-height: 76px !important;
    padding: 1rem 1.15rem !important;
    border-radius: 18px !important;
    border: 1px solid rgba(221, 212, 200, .96) !important;
    background:
        radial-gradient(circle at 1% 0, rgba(7, 141, 160, .08), transparent 13rem),
        radial-gradient(circle at 88% 12%, rgba(181, 43, 123, .07), transparent 13rem),
        linear-gradient(180deg, rgba(248, 245, 239, .98), rgba(242, 237, 229, .98)) !important;
    box-shadow: var(--gc-shell-inner), 0 18px 42px rgba(33, 28, 46, .085) !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-header::before {
    height: 3px !important;
    background: var(--gc-cmyk-strip) !important;
    opacity: .95 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-header h1 {
    color: var(--gc-black) !important;
    font-size: 1.55rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .header-left-group {
    gap: .72rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .header-separator {
    color: rgba(86, 73, 91, .18) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .header-date {
    min-height: 36px !important;
    padding: .42rem .72rem !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .44) !important;
    border: 1px solid rgba(221, 212, 200, .86) !important;
    color: #6d6270 !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .header-date i {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .header-clock {
    color: var(--gc-black) !important;
    font-weight: 850 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .header-right {
    gap: .62rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .filtro-periodo-container-simple {
    position: relative !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .filtro-periodo-texto {
    min-height: 38px !important;
    padding: .52rem .82rem !important;
    border-radius: 999px !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .54), rgba(246, 239, 211, .44)) !important;
    border: 1px solid rgba(221, 212, 200, .92) !important;
    color: var(--gc-black) !important;
    font-size: .74rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    box-shadow: var(--gc-shell-inner), 0 8px 18px rgba(33, 28, 46, .045) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .filtro-periodo-texto:hover {
    background: var(--gc-yellow-soft) !important;
    border-color: rgba(196, 155, 18, .34) !important;
    opacity: 1 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .filtro-periodo-texto i:first-child {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .filtro-periodo-dropdown {
    min-width: 210px !important;
    padding: .42rem !important;
    border-radius: 14px !important;
    background:
        linear-gradient(180deg, rgba(248, 245, 239, .98), rgba(242, 237, 229, .98)) !important;
    border: 1px solid rgba(221, 212, 200, .96) !important;
    box-shadow: 0 20px 50px rgba(33, 28, 46, .16) !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .filtro-periodo-item {
    min-height: 36px !important;
    padding: .55rem .7rem !important;
    border-radius: 10px !important;
    background: transparent !important;
    border: 0 !important;
    color: #4d4154 !important;
    font-weight: 800 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .filtro-periodo-item:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .filtro-periodo-item.active {
    background: var(--gc-magenta-soft) !important;
    color: var(--gc-magenta) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-card {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    border: 1px solid rgba(221, 212, 200, .96) !important;
    background:
        radial-gradient(circle at 0 0, rgba(7, 141, 160, .08), transparent 10rem),
        linear-gradient(180deg, rgba(248, 245, 239, .98), rgba(242, 237, 229, .98)) !important;
    box-shadow: var(--gc-shell-inner), 0 18px 42px rgba(33, 28, 46, .085) !important;
    padding: 1.05rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 3px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-header {
    gap: .78rem !important;
    padding-bottom: .86rem !important;
    border-bottom: 1px solid rgba(221, 212, 200, .74) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-header-left {
    gap: .72rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 13px !important;
    background:
        linear-gradient(135deg, var(--gc-cyan-soft), rgba(246, 231, 239, .54)) !important;
    color: var(--gc-cyan) !important;
    border: 1px solid rgba(7, 141, 160, .16) !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-header h2 {
    color: var(--gc-black) !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
    margin: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-header p,
html.gc-erp-online-theme:not(.gc-dark-mode) #caixaStatusTexto {
    color: var(--gc-muted) !important;
    font-size: .77rem !important;
    font-weight: 650 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-status-badge {
    min-height: 32px !important;
    padding: .42rem .74rem !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    font-size: .72rem !important;
    font-weight: 950 !important;
    text-transform: uppercase !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-status-badge.status-aberto,
html.gc-erp-online-theme:not(.gc-dark-mode) .status-aberto {
    background: var(--gc-green-soft) !important;
    border-color: rgba(5, 150, 105, .22) !important;
    color: #047857 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-status-badge.status-fechado,
html.gc-erp-online-theme:not(.gc-dark-mode) .status-fechado {
    background: #fbe8ed !important;
    border-color: rgba(190, 18, 60, .18) !important;
    color: #be123c !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-resumo {
    gap: .6rem !important;
    margin: .88rem 0 .72rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-resumo-card,
html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-lista,
html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-lista-vazia,
html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-fechado {
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .38) !important;
    border: 1px solid rgba(221, 212, 200, .86) !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-resumo-card.vendas {
    background: rgba(230, 243, 241, .72) !important;
    border-color: rgba(7, 141, 160, .22) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-resumo-label,
html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-label-grande {
    color: #8a7d8f !important;
    font-size: .64rem !important;
    font-weight: 950 !important;
    letter-spacing: .035em !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-resumo-valor {
    color: var(--gc-black) !important;
    font-size: 1.05rem !important;
    font-weight: 900 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-resumo-valor.vendas {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-valor-final {
    margin: .72rem 0 .9rem !important;
    padding: .86rem .92rem !important;
    border-radius: 15px !important;
    background:
        linear-gradient(135deg, rgba(234, 246, 238, .92), rgba(246, 239, 211, .44)) !important;
    border: 1px solid rgba(5, 150, 105, .20) !important;
    box-shadow: var(--gc-shell-inner), 0 10px 22px rgba(5, 150, 105, .055) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-valor-grande {
    color: #047857 !important;
    font-size: 1.32rem !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-secao {
    margin-top: .86rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-secao-header {
    gap: .55rem !important;
    margin-bottom: .52rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-secao-title span {
    color: var(--gc-black) !important;
    font-size: .84rem !important;
    font-weight: 850 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-lista-vazia {
    min-height: 58px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #8a7d8f !important;
    font-weight: 700 !important;
    text-align: center !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-footer {
    margin-top: .9rem !important;
    padding-top: .82rem !important;
    border-top: 1px solid rgba(221, 212, 200, .76) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-footer p {
    color: #756c78 !important;
    font-weight: 700 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .btn-abrir-caixa,
html.gc-erp-online-theme:not(.gc-dark-mode) .btn-fechar-caixa {
    min-height: 42px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--gc-black), #3a213c 58%, var(--gc-magenta)) !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(33, 28, 46, .16) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-fechado {
    min-height: 154px !important;
    padding: 1rem !important;
    background:
        radial-gradient(circle at 50% 0, rgba(181, 43, 123, .07), transparent 8rem),
        rgba(255, 255, 255, .34) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-fechado p {
    color: #756c78 !important;
    font-weight: 750 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: .86rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card {
    position: relative !important;
    min-height: 116px !important;
    padding: 1rem !important;
    border-radius: 17px !important;
    border: 1px solid rgba(221, 212, 200, .94) !important;
    background:
        linear-gradient(180deg, rgba(248, 245, 239, .99), rgba(243, 239, 231, .99)) !important;
    box-shadow: var(--gc-shell-inner), 0 14px 30px rgba(33, 28, 46, .07) !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 3px !important;
    background: var(--gc-cyan) !important;
    opacity: .9 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(4n + 2)::before {
    background: var(--gc-magenta) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(4n + 3)::before {
    background: var(--gc-yellow) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(4n)::before {
    background: var(--gc-black) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(181, 43, 123, .22) !important;
    box-shadow: var(--gc-shell-inner), 0 22px 46px rgba(33, 28, 46, .11) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border: 1px solid rgba(7, 141, 160, .14) !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(4n + 2) .card-icon {
    background: var(--gc-magenta-soft) !important;
    color: var(--gc-magenta) !important;
    border-color: rgba(181, 43, 123, .14) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(4n + 3) .card-icon {
    background: var(--gc-yellow-soft) !important;
    color: #806300 !important;
    border-color: rgba(196, 155, 18, .18) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(4n) .card-icon {
    background: var(--gc-graphite-soft) !important;
    color: var(--gc-black) !important;
    border-color: rgba(33, 28, 46, .12) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-content h3,
html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card h3 {
    color: #807684 !important;
    font-size: .67rem !important;
    font-weight: 950 !important;
    letter-spacing: .045em !important;
    line-height: 1.12 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-number {
    color: var(--gc-black) !important;
    font-size: 1.26rem !important;
    line-height: 1.08 !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-subtitle {
    color: var(--gc-muted) !important;
    font-size: .72rem !important;
    font-weight: 700 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) #alertasVencimentoWrapper {
    margin: .16rem 0 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) #alertasBarraTopo {
    padding: .72rem .9rem !important;
    border-radius: 15px !important;
    background:
        linear-gradient(135deg, rgba(246, 239, 211, .82), rgba(248, 245, 239, .92)) !important;
    border: 1px solid rgba(196, 155, 18, .28) !important;
    box-shadow: var(--gc-shell-inner), 0 12px 24px rgba(196, 155, 18, .08) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) #alertasBarraTopo > i {
    color: #a86f00 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) #alertasBarraTopo > span {
    color: #6f4d00 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) #alertasBarraTopo a {
    color: var(--gc-magenta) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) #alertasDetalhePanel {
    border-color: rgba(196, 155, 18, .28) !important;
    background: rgba(248, 245, 239, .96) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-wrapper,
html.gc-erp-online-theme:not(.gc-dark-mode) .entregas-wrapper {
    position: relative !important;
    overflow: hidden !important;
    margin-top: .98rem !important;
    padding: 1.16rem !important;
    border-radius: 18px !important;
    border: 1px solid rgba(221, 212, 200, .96) !important;
    background:
        radial-gradient(circle at 100% 0, rgba(196, 155, 18, .08), transparent 16rem),
        linear-gradient(180deg, rgba(248, 245, 239, .98), rgba(242, 237, 229, .98)) !important;
    box-shadow: var(--gc-shell-inner), 0 18px 42px rgba(33, 28, 46, .085) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-wrapper::before,
html.gc-erp-online-theme:not(.gc-dark-mode) .entregas-wrapper::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 3px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-header-section {
    margin-bottom: 1rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-header-title {
    gap: .72rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-header-title i {
    width: 42px !important;
    height: 42px !important;
    border-radius: 14px !important;
    background:
        linear-gradient(135deg, var(--gc-cyan-soft), rgba(246, 239, 211, .44)) !important;
    border: 1px solid rgba(7, 141, 160, .18) !important;
    color: var(--gc-cyan) !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-header-title h2,
html.gc-erp-online-theme:not(.gc-dark-mode) .entregas-titulo {
    color: var(--gc-black) !important;
    font-size: 1.45rem !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-header-desc,
html.gc-erp-online-theme:not(.gc-dark-mode) .entregas-subtitulo {
    color: var(--gc-muted) !important;
    font-size: .92rem !important;
    font-weight: 650 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-container {
    padding: 1rem !important;
    border-radius: 17px !important;
    border: 1px solid rgba(221, 212, 200, .92) !important;
    background: rgba(255, 255, 255, .34) !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-divisor {
    background: linear-gradient(180deg, transparent, rgba(181, 43, 123, .30), rgba(7, 141, 160, .28), transparent) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-mes-header {
    margin-bottom: .86rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-titulo {
    color: var(--gc-black) !important;
    font-size: 1.08rem !important;
    font-weight: 900 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-nav-btn {
    width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, .42) !important;
    border: 1px solid rgba(221, 212, 200, .90) !important;
    color: #6f6677 !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-nav-btn:hover {
    background: var(--gc-magenta-soft) !important;
    border-color: rgba(181, 43, 123, .24) !important;
    color: var(--gc-magenta) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-dias-semana {
    gap: .42rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dia-semana {
    color: #817688 !important;
    font-size: .68rem !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-grid {
    gap: .42rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario {
    border-radius: 12px !important;
    background: rgba(248, 245, 239, .86) !important;
    border: 1px solid rgba(221, 212, 200, .92) !important;
    color: #5a5060 !important;
    font-size: .82rem !important;
    font-weight: 850 !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario.outro-mes {
    background: rgba(236, 230, 220, .58) !important;
    color: #aaa0ab !important;
    opacity: 1 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario:hover:not(.outro-mes):not(.entrega-primaria):not(.entrega-multipla) {
    background: var(--gc-yellow-soft) !important;
    border-color: rgba(196, 155, 18, .28) !important;
    color: var(--gc-black) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario.entrega-primaria {
    background: linear-gradient(135deg, var(--gc-cyan), #2a9d80) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 10px 18px rgba(7, 141, 160, .18) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario.entrega-secundaria {
    background: var(--gc-cyan-soft) !important;
    border-color: rgba(7, 141, 160, .28) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario.entrega-multipla {
    background: linear-gradient(135deg, var(--gc-magenta), var(--gc-yellow)) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 10px 18px rgba(181, 43, 123, .18) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario.dia-selecionado {
    border-color: var(--gc-magenta) !important;
    box-shadow: 0 0 0 4px rgba(181, 43, 123, .14), var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .entrega-card {
    border-radius: 15px !important;
    background: rgba(255, 255, 255, .38) !important;
    border: 1px solid rgba(221, 212, 200, .90) !important;
    box-shadow: var(--gc-shell-inner), 0 10px 22px rgba(33, 28, 46, .055) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .entrega-card:hover {
    box-shadow: var(--gc-shell-inner), 0 16px 34px rgba(33, 28, 46, .10) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .entrega-cliente {
    color: var(--gc-black) !important;
    font-weight: 900 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .entrega-status.pago {
    background: var(--gc-green-soft) !important;
    color: #047857 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .entrega-status.pendente {
    background: var(--gc-yellow-soft) !important;
    color: #806300 !important;
}

@media (max-width: 1200px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-top-section {
        grid-template-columns: minmax(290px, 310px) minmax(0, 1fr) !important;
    }

    html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 992px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-top-section {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-container {
        padding: .76rem .62rem 1.25rem !important;
    }

    html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-header {
        padding: .95rem !important;
        gap: .72rem !important;
    }

    html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-container {
        padding: .75rem !important;
    }
}

/* Etapa 3.5 - Recalibracao de paleta: viva, logica e menos melancolica */
html.gc-erp-online-theme:not(.gc-dark-mode) {
    --gc-cyan: #0098aa;
    --gc-magenta: #d8328a;
    --gc-yellow: #d8aa18;
    --gc-black: #1b2529;
    --gc-ink: #27343a;
    --gc-muted: #65747a;
    --gc-page: #f6f1e7;
    --gc-panel: #fffaf0;
    --gc-panel-2: #f8efe1;
    --gc-panel-3: #eee1cd;
    --gc-line: #dfd0bd;
    --gc-line-soft: #eadfce;
    --gc-input: #fbf4e8;
    --gc-cyan-soft: #e3f5f3;
    --gc-magenta-soft: #fae9f1;
    --gc-yellow-soft: #fbefc8;
    --gc-graphite-soft: #e9ece8;
    --gc-green: #13966d;
    --gc-green-soft: #e6f5ec;
    --gc-red: #c93642;
    --gc-red-soft: #fae8ea;
    --gc-orange: #d87916;
    --gc-action: #1b2529;
    --gc-action-hover: #10181b;
    --gc-focus: rgba(0, 152, 170, .16);
    --gc-shell-border: rgba(88, 75, 54, .14);
    --gc-shell-shadow: 0 18px 48px rgba(42, 34, 22, .10);
    --gc-shell-shadow-soft: 0 10px 28px rgba(42, 34, 22, .075);
    --gc-shadow: 0 18px 42px rgba(42, 34, 22, .078);
    --gc-shadow-soft: 0 8px 22px rgba(42, 34, 22, .058);
    --gc-cmyk-strip: linear-gradient(90deg, var(--gc-cyan) 0 24%, var(--gc-magenta) 24% 46%, var(--gc-yellow) 46% 70%, var(--gc-black) 70% 100%);
    --primary-color: var(--gc-action);
    --primary-hover: var(--gc-action-hover);
    --accent-color: var(--gc-cyan);
    --bg-color: var(--gc-page);
    --text-main: var(--gc-ink);
    --text-light: var(--gc-muted);
    --border-color: var(--gc-line);
    --card-bg: var(--gc-panel);
    --primary-gradient: linear-gradient(135deg, var(--gc-black), #087f8e);
    --gc-surface: var(--gc-panel);
    --gc-surface-muted: var(--gc-panel-2);
    --gc-surface-strong: var(--gc-panel-3);
    --gc-button-surface: #f7ecd9;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body,
html.gc-erp-online-theme:not(.gc-dark-mode) .main-content {
    background:
        radial-gradient(circle at 9% 7%, rgba(0, 152, 170, .072), transparent 25rem),
        radial-gradient(circle at 92% 10%, rgba(216, 170, 24, .075), transparent 28rem),
        linear-gradient(135deg, rgba(19, 150, 109, .035), transparent 44%),
        var(--gc-page) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-app-topbar {
    background:
        linear-gradient(180deg, rgba(255, 250, 240, .96), rgba(248, 239, 225, .90)),
        rgba(255, 250, 240, .88) !important;
    border-bottom-color: rgba(88, 75, 54, .14) !important;
    box-shadow: 0 12px 32px rgba(42, 34, 22, .065) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar,
html.gc-erp-online-theme:not(.gc-dark-mode) .sidebar.gc-sidebar {
    background:
        radial-gradient(circle at 18% 7%, rgba(0, 152, 170, .07), transparent 9.5rem),
        radial-gradient(circle at 86% 30%, rgba(216, 170, 24, .085), transparent 11rem),
        linear-gradient(180deg, rgba(255, 250, 240, .98), rgba(246, 238, 225, .98)) !important;
    border-right-color: rgba(88, 75, 54, .14) !important;
    box-shadow: 12px 0 34px rgba(42, 34, 22, .07) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar::after {
    background: linear-gradient(180deg, rgba(0, 152, 170, .28), rgba(216, 170, 24, .24), rgba(19, 150, 109, .22), transparent) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-brand {
    background:
        radial-gradient(circle at 16% 18%, rgba(0, 152, 170, .085), transparent 4.8rem),
        radial-gradient(circle at 82% 72%, rgba(216, 170, 24, .075), transparent 5rem) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-registered {
    background:
        linear-gradient(135deg, rgba(251, 239, 200, .78), rgba(227, 245, 243, .42)),
        rgba(255, 250, 240, .88) !important;
    border-color: rgba(216, 170, 24, .34) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-registered::before {
    background: linear-gradient(180deg, var(--gc-cyan), var(--gc-yellow)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-registered span,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-kicker,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alerts-title,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-head span {
    color: #6f5b22 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group-toggle,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-organize-btn,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-group-add-btn {
    color: #39484d !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link i,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group-toggle i {
    color: #7a898c !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group-toggle:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-organize-btn:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-group-add-btn:hover {
    background: rgba(227, 245, 243, .72) !important;
    border-color: rgba(0, 152, 170, .22) !important;
    color: var(--gc-black) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link:hover i,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group-toggle:hover i {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link.is-active,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group.is-open > .gc-menu-group-toggle,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-organize-btn.is-active {
    background: linear-gradient(135deg, rgba(227, 245, 243, .92), rgba(251, 239, 200, .48)) !important;
    border-color: rgba(0, 152, 170, .26) !important;
    color: var(--gc-black) !important;
    box-shadow: inset 3px 0 0 var(--gc-cyan), var(--gc-shell-inner), 0 8px 18px rgba(42, 34, 22, .04) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-link.is-active i,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group.is-open > .gc-menu-group-toggle i {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-group-items {
    border-left-color: rgba(0, 152, 170, .24) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-user-avatar {
    color: var(--gc-cyan) !important;
    box-shadow: 0 8px 18px rgba(42, 34, 22, .10) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-user-alert-dot {
    background: var(--gc-red) !important;
    box-shadow: 0 0 0 3px rgba(201, 54, 66, .15), 0 4px 10px rgba(201, 54, 66, .22) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown {
    background:
        radial-gradient(circle at 0 0, rgba(0, 152, 170, .075), transparent 10rem),
        radial-gradient(circle at 100% 8%, rgba(216, 170, 24, .07), transparent 12rem),
        linear-gradient(180deg, rgba(255, 250, 240, .99), rgba(247, 239, 226, .99)) !important;
    border-color: rgba(88, 75, 54, .16) !important;
    box-shadow: 0 26px 70px rgba(42, 34, 22, .16) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown::after {
    background: rgba(255, 250, 240, .99) !important;
    border-color: rgba(88, 75, 54, .16) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-header,
html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-card,
html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-wrapper,
html.gc-erp-online-theme:not(.gc-dark-mode) .entregas-wrapper,
html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card,
html.gc-erp-online-theme:not(.gc-dark-mode) :where(.card, .table-card, .card-form, .card-list, .report-card, .filtro-card, .config-card, .info-card, .section-card, .stat-card, .metric-card, .dashboard-card, .produto-card, .cliente-card, .categoria-card, .os-card, .relatorio-card, .orcamento-card, .modal-content, .dropdown-menu, .dropdown-content, .table-wrapper, .data-table, .venda-card, .storage-usage-box, .storage-info-box, .storage-cleanup-box, .storage-default-box, .storage-provider-card, .gc-storage-panel) {
    background: linear-gradient(180deg, rgba(255, 250, 240, .99), rgba(248, 239, 225, .99)) !important;
    border-color: rgba(88, 75, 54, .15) !important;
    box-shadow: var(--gc-shell-inner), var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) :where(.card, .table-card, .report-card, .filtro-card, .caixa-card, .card-resumo, .resumo-card, .config-card, .info-card, .section-card, .stat-card, .metric-card, .dashboard-card):hover {
    border-color: rgba(0, 152, 170, .24) !important;
    box-shadow: var(--gc-shell-inner), 0 20px 42px rgba(42, 34, 22, .10) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.btn-primary, .btn-salvar, .btn-cadastrar, .btn-adicionar, .btn-novo, .btn-novo-produto, .btn-success, button[type="submit"], .storage-btn.primary, .btn-abrir-caixa, .btn-fechar-caixa, .gc-subscription-action):not(.btn-danger):not(.btn-excluir):not(.danger):not(.link-danger) {
    background: linear-gradient(135deg, var(--gc-black), #087f8e) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 14px 28px rgba(0, 152, 170, .14) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.btn-primary, .btn-salvar, .btn-cadastrar, .btn-adicionar, .btn-novo, .btn-novo-produto, .btn-success, button[type="submit"], .storage-btn.primary, .btn-abrir-caixa, .btn-fechar-caixa, .gc-subscription-action):not(.btn-danger):not(.btn-excluir):not(.danger):not(.link-danger):hover {
    background: linear-gradient(135deg, var(--gc-action-hover), #0098aa) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(input[type="text"], input[type="email"], input[type="number"], input[type="password"], input[type="url"], input[type="date"], input[type="search"], input[type="tel"], select, textarea):focus {
    border-color: var(--gc-cyan) !important;
    box-shadow: 0 0 0 4px var(--gc-focus), inset 0 1px 0 rgba(255, 255, 255, .50) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.btn-cancelar, .btn-secundario, .btn-secondary, .btn-print, .btn-imprimir, .btn-acoes, .btn-action, .action-btn, .paginacao-btn, .paginacao-numero, .storage-btn, .dropdown-menu button, .menu-acoes-dropdown a):not(.active):not(.btn-primary):not(.btn-salvar):not(.btn-cadastrar):not(.btn-danger):not(.btn-excluir):not(.primary):not(.danger):not(.link-danger):hover {
    background: var(--gc-cyan-soft) !important;
    border-color: rgba(0, 152, 170, .24) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-card::before {
    background: linear-gradient(180deg, var(--gc-green), var(--gc-cyan)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-badge {
    background: var(--gc-green-soft) !important;
    border-color: rgba(19, 150, 109, .24) !important;
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-card.is-trial .gc-subscription-badge {
    background: var(--gc-cyan-soft) !important;
    border-color: rgba(0, 152, 170, .24) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-card.is-voucher .gc-subscription-badge {
    background: var(--gc-green-soft) !important;
    border-color: rgba(19, 150, 109, .24) !important;
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-card.is-premium .gc-subscription-badge {
    background: linear-gradient(180deg, #fff8dc, #f7e7a7) !important;
    border-color: rgba(216, 184, 79, .58) !important;
    color: #7a5200 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-card.is-warning .gc-subscription-badge,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-card.is-soon .gc-subscription-badge {
    background: var(--gc-yellow-soft) !important;
    border-color: rgba(216, 170, 24, .34) !important;
    color: #8a6500 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-card.is-danger .gc-subscription-badge,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-card.is-blocked .gc-subscription-badge,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-card.is-overdue .gc-subscription-badge {
    background: var(--gc-red-soft) !important;
    border-color: rgba(201, 54, 66, .24) !important;
    color: var(--gc-red) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .storage-default-option.is-active,
html.gc-erp-online-theme:not(.gc-dark-mode) .storage-provider-card.is-active {
    background: linear-gradient(180deg, rgba(230, 245, 236, .95), rgba(255, 250, 240, .95)) !important;
    border-color: rgba(19, 150, 109, .34) !important;
    color: var(--gc-green) !important;
    box-shadow: var(--gc-shell-inner), 0 14px 28px rgba(19, 150, 109, .12) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .storage-default-option.is-active i,
html.gc-erp-online-theme:not(.gc-dark-mode) .storage-provider-card.is-active header i,
html.gc-erp-online-theme:not(.gc-dark-mode) .storage-provider-card.is-active h3 {
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .storage-btn.primary[data-storage-provider],
html.gc-erp-online-theme:not(.gc-dark-mode) .storage-btn.primary[data-storage-provider="local"],
html.gc-erp-online-theme:not(.gc-dark-mode) .storage-btn.primary[data-storage-provider="google_drive"],
html.gc-erp-online-theme:not(.gc-dark-mode) .storage-btn.primary[data-storage-provider="onedrive"] {
    background: linear-gradient(135deg, var(--gc-green), #0b7f5c) !important;
    box-shadow: 0 14px 28px rgba(19, 150, 109, .15) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-head strong,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-row i,
html.gc-erp-online-theme:not(.gc-dark-mode) .storage-usage-head strong {
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-usage,
html.gc-erp-online-theme:not(.gc-dark-mode) .storage-bar {
    background: rgba(238, 225, 205, .95) !important;
    border-color: rgba(88, 75, 54, .14) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-usage.is-ok span,
html.gc-erp-online-theme:not(.gc-dark-mode) .storage-bar span {
    background: linear-gradient(90deg, var(--gc-green), #2db681) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-usage.is-warning span,
html.gc-erp-online-theme:not(.gc-dark-mode) .storage-bar.is-warning span,
html.gc-erp-online-theme:not(.gc-dark-mode) .storage-bar.warning span {
    background: linear-gradient(90deg, var(--gc-yellow), var(--gc-orange)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-usage.is-danger span,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-usage.is-full span,
html.gc-erp-online-theme:not(.gc-dark-mode) .storage-bar.is-danger span,
html.gc-erp-online-theme:not(.gc-dark-mode) .storage-bar.danger span {
    background: linear-gradient(90deg, var(--gc-orange), var(--gc-red)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.status-aberto, .status-pago, .status-ativo, .status-active, .badge-success, .status-chip--pago, .status-chip--ativo, .entrega-status.pago) {
    background: var(--gc-green-soft) !important;
    border-color: rgba(19, 150, 109, .24) !important;
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.status-pendente, .status-warning, .badge-warning, .status-chip--pendente, .entrega-status.pendente, .status-proxima) {
    background: var(--gc-yellow-soft) !important;
    border-color: rgba(216, 170, 24, .30) !important;
    color: #8a6500 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.status-vencida, .status-cancelado, .status-cancelada, .status-danger, .badge-danger, .status-chip--cancelada, .status-chip--vencida) {
    background: var(--gc-red-soft) !important;
    border-color: rgba(201, 54, 66, .24) !important;
    color: var(--gc-red) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-status-badge.status-aberto,
html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-resumo-valor.vendas,
html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-valor-grande {
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-icon,
html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(4n + 2) .card-icon,
html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-header-title i,
html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario.entrega-secundaria {
    background: var(--gc-cyan-soft) !important;
    border-color: rgba(0, 152, 170, .22) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(4n + 2)::before {
    background: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(4n + 2) .card-icon {
    background: var(--gc-green-soft) !important;
    border-color: rgba(19, 150, 109, .22) !important;
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(4n + 3)::before,
html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario.entrega-multipla {
    background: linear-gradient(135deg, var(--gc-yellow), var(--gc-orange)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario.dia-selecionado {
    border-color: var(--gc-cyan) !important;
    box-shadow: 0 0 0 4px rgba(0, 152, 170, .14), var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .filtro-periodo-item:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .filtro-periodo-item.active,
html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-nav-btn:hover {
    background: var(--gc-cyan-soft) !important;
    border-color: rgba(0, 152, 170, .24) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alert-item.is-warning > i {
    background: var(--gc-yellow-soft) !important;
    color: #8a6500 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alert-item.is-danger > i,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown-item.is-danger i,
html.gc-erp-online-theme:not(.gc-dark-mode) .modal-close:hover {
    background: var(--gc-red-soft) !important;
    color: var(--gc-red) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown-item:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-user-dropdown-item:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alert-item:hover {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-black) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown-item:hover i {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown-item.is-danger:hover {
    background: var(--gc-red-soft) !important;
}

/* Etapa 3.6 - Mais luz, menos acinzentado */
html.gc-erp-online-theme:not(.gc-dark-mode) {
    --gc-cyan: #00a7b8;
    --gc-magenta: #e12f92;
    --gc-yellow: #e3b51c;
    --gc-black: #172426;
    --gc-ink: #1f3033;
    --gc-muted: #5d6f70;
    --gc-page: #fff4dc;
    --gc-panel: #fffdf7;
    --gc-panel-2: #fff7e8;
    --gc-panel-3: #ffedcb;
    --gc-line: #ecd7b5;
    --gc-line-soft: #f4e5ca;
    --gc-input: #fff9ed;
    --gc-cyan-soft: #e5fbfb;
    --gc-magenta-soft: #ffe9f4;
    --gc-yellow-soft: #fff2be;
    --gc-graphite-soft: #edf4ef;
    --gc-green: #109b70;
    --gc-green-soft: #e5f8ed;
    --gc-red: #c93642;
    --gc-red-soft: #ffe8ea;
    --gc-orange: #df7e13;
    --gc-action: #172426;
    --gc-action-hover: #0f1a1c;
    --gc-focus: rgba(0, 167, 184, .15);
    --gc-shell-border: rgba(163, 126, 48, .18);
    --gc-shell-shadow: 0 16px 42px rgba(128, 93, 26, .085);
    --gc-shell-shadow-soft: 0 8px 24px rgba(128, 93, 26, .062);
    --gc-shadow: 0 16px 38px rgba(128, 93, 26, .078);
    --gc-shadow-soft: 0 8px 20px rgba(128, 93, 26, .052);
    --gc-cmyk-strip: linear-gradient(90deg, var(--gc-cyan) 0 24%, var(--gc-magenta) 24% 46%, var(--gc-yellow) 46% 70%, var(--gc-black) 70% 100%);
    --primary-color: var(--gc-action);
    --primary-hover: var(--gc-action-hover);
    --accent-color: var(--gc-cyan);
    --bg-color: var(--gc-page);
    --text-main: var(--gc-ink);
    --text-light: var(--gc-muted);
    --border-color: var(--gc-line);
    --card-bg: var(--gc-panel);
    --primary-gradient: linear-gradient(135deg, var(--gc-black), #0094a2);
    --gc-surface: var(--gc-panel);
    --gc-surface-muted: var(--gc-panel-2);
    --gc-surface-strong: var(--gc-panel-3);
    --gc-button-surface: #fff4df;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body,
html.gc-erp-online-theme:not(.gc-dark-mode) .main-content {
    background:
        radial-gradient(circle at 8% 8%, rgba(0, 167, 184, .055), transparent 24rem),
        radial-gradient(circle at 88% 8%, rgba(227, 181, 28, .115), transparent 30rem),
        linear-gradient(90deg, rgba(255, 255, 255, .30), rgba(0, 167, 184, .018) 42%, rgba(227, 181, 28, .035)),
        var(--gc-page) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-app-topbar {
    background:
        linear-gradient(180deg, rgba(255, 253, 247, .98), rgba(255, 247, 232, .94)),
        rgba(255, 253, 247, .90) !important;
    border-bottom-color: rgba(163, 126, 48, .18) !important;
    box-shadow: 0 10px 26px rgba(128, 93, 26, .052) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar,
html.gc-erp-online-theme:not(.gc-dark-mode) .sidebar.gc-sidebar {
    background:
        radial-gradient(circle at 18% 8%, rgba(0, 167, 184, .060), transparent 9.5rem),
        radial-gradient(circle at 86% 30%, rgba(227, 181, 28, .105), transparent 11rem),
        linear-gradient(180deg, rgba(255, 253, 247, .99), rgba(255, 246, 226, .99)) !important;
    border-right-color: rgba(163, 126, 48, .18) !important;
    box-shadow: 10px 0 28px rgba(128, 93, 26, .058) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar::after {
    background: linear-gradient(180deg, rgba(0, 167, 184, .32), rgba(227, 181, 28, .30), rgba(16, 155, 112, .24), transparent) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-brand {
    background:
        radial-gradient(circle at 16% 18%, rgba(0, 167, 184, .09), transparent 4.8rem),
        radial-gradient(circle at 82% 72%, rgba(227, 181, 28, .10), transparent 5rem),
        rgba(255, 255, 255, .18) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-registered {
    background:
        linear-gradient(135deg, rgba(255, 242, 190, .88), rgba(229, 251, 251, .42)),
        rgba(255, 253, 247, .92) !important;
    border-color: rgba(227, 181, 28, .38) !important;
    box-shadow: var(--gc-shell-inner), 0 8px 18px rgba(128, 93, 26, .050) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-header,
html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-card,
html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-wrapper,
html.gc-erp-online-theme:not(.gc-dark-mode) .entregas-wrapper,
html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-subscription-card,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-mini-card,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-avatar-alerts-card,
html.gc-erp-online-theme:not(.gc-dark-mode) :where(.card, .table-card, .card-form, .card-list, .report-card, .filtro-card, .config-card, .info-card, .section-card, .stat-card, .metric-card, .dashboard-card, .produto-card, .cliente-card, .categoria-card, .os-card, .relatorio-card, .orcamento-card, .modal-content, .dropdown-menu, .dropdown-content, .table-wrapper, .data-table, .venda-card, .storage-usage-box, .storage-info-box, .storage-cleanup-box, .storage-default-box, .storage-provider-card, .gc-storage-panel) {
    background: linear-gradient(180deg, rgba(255, 253, 247, .99), rgba(255, 247, 232, .99)) !important;
    border-color: rgba(163, 126, 48, .18) !important;
    box-shadow: var(--gc-shell-inner), var(--gc-shadow-soft) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-header {
    background:
        radial-gradient(circle at 0 0, rgba(0, 167, 184, .055), transparent 13rem),
        radial-gradient(circle at 90% 10%, rgba(227, 181, 28, .10), transparent 13rem),
        linear-gradient(180deg, rgba(255, 253, 247, .99), rgba(255, 247, 232, .99)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-card {
    background:
        radial-gradient(circle at 0 0, rgba(0, 167, 184, .06), transparent 10rem),
        linear-gradient(180deg, rgba(255, 253, 247, .99), rgba(255, 247, 232, .99)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-wrapper,
html.gc-erp-online-theme:not(.gc-dark-mode) .entregas-wrapper {
    background:
        radial-gradient(circle at 100% 0, rgba(227, 181, 28, .105), transparent 16rem),
        linear-gradient(180deg, rgba(255, 253, 247, .99), rgba(255, 247, 232, .99)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-container,
html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-resumo-card,
html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-lista,
html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-lista-vazia,
html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-fechado,
html.gc-erp-online-theme:not(.gc-dark-mode) .entrega-card,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-trigger,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-organize-btn,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-group-add-btn {
    background: rgba(255, 255, 255, .48) !important;
    border-color: rgba(163, 126, 48, .18) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-trigger:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-trigger.is-open {
    background: linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(229, 251, 251, .58)) !important;
    border-color: rgba(0, 167, 184, .26) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown {
    background:
        radial-gradient(circle at 0 0, rgba(0, 167, 184, .06), transparent 10rem),
        radial-gradient(circle at 100% 8%, rgba(227, 181, 28, .085), transparent 12rem),
        linear-gradient(180deg, rgba(255, 253, 247, .99), rgba(255, 247, 232, .99)) !important;
    border-color: rgba(163, 126, 48, .20) !important;
    box-shadow: 0 24px 64px rgba(128, 93, 26, .13) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-dropdown::after {
    background: rgba(255, 253, 247, .99) !important;
    border-color: rgba(163, 126, 48, .20) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) :where(.card, .table-card, .report-card, .filtro-card, .caixa-card, .card-resumo, .resumo-card, .config-card, .info-card, .section-card, .stat-card, .metric-card, .dashboard-card):hover {
    border-color: rgba(0, 167, 184, .24) !important;
    box-shadow: var(--gc-shell-inner), 0 18px 38px rgba(128, 93, 26, .085) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-content h3,
html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card h3,
html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-resumo-label,
html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-label-grande,
html.gc-erp-online-theme:not(.gc-dark-mode) .dia-semana {
    color: #677b7c !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .card-subtitle,
html.gc-erp-online-theme:not(.gc-dark-mode) .calendario-header-desc,
html.gc-erp-online-theme:not(.gc-dark-mode) .caixa-header p,
html.gc-erp-online-theme:not(.gc-dark-mode) #caixaStatusTexto,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-user-menu .gc-user-info small {
    color: #5f7374 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .filtro-periodo-texto,
html.gc-erp-online-theme:not(.gc-dark-mode) .header-date {
    background: rgba(255, 255, 255, .56) !important;
    border-color: rgba(163, 126, 48, .18) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario {
    background: rgba(255, 253, 247, .90) !important;
    border-color: rgba(163, 126, 48, .18) !important;
    color: #344548 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario.outro-mes {
    background: rgba(255, 247, 232, .74) !important;
    color: #a28f70 !important;
}

/* Etapa 3.7 - Cards do dashboard com faixa de titulo */
html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-height: 128px !important;
    padding: 0 !important;
    border-radius: 18px !important;
    border: 1px solid rgba(163, 126, 48, .18) !important;
    background:
        radial-gradient(circle at 100% 100%, rgba(227, 181, 28, .08), transparent 7rem),
        linear-gradient(180deg, rgba(255, 253, 247, .99), rgba(255, 247, 232, .99)) !important;
    box-shadow: var(--gc-shell-inner), 0 16px 34px rgba(128, 93, 26, .08) !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card::before {
    display: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-heading {
    min-height: 38px !important;
    padding: .55rem .72rem .48rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(163, 126, 48, .13) !important;
    background:
        linear-gradient(135deg, rgba(227, 181, 28, .26), rgba(255, 253, 247, .72) 74%) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(2) .card-heading,
html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(6) .card-heading {
    background:
        linear-gradient(135deg, rgba(19, 150, 109, .20), rgba(255, 253, 247, .72) 74%) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(3) .card-heading,
html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(5) .card-heading {
    background:
        linear-gradient(135deg, rgba(0, 167, 184, .18), rgba(255, 253, 247, .72) 74%) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(4) .card-heading,
html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(8) .card-heading {
    background:
        linear-gradient(135deg, rgba(225, 47, 146, .17), rgba(255, 253, 247, .72) 74%) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(7) .card-heading {
    background:
        linear-gradient(135deg, rgba(23, 36, 38, .11), rgba(227, 181, 28, .13) 72%) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-heading h3,
html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card h3 {
    margin: 0 !important;
    max-width: 100% !important;
    color: var(--gc-black) !important;
    font-size: .72rem !important;
    font-weight: 950 !important;
    letter-spacing: .02em !important;
    line-height: 1.08 !important;
    text-transform: uppercase !important;
    overflow-wrap: anywhere !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-main {
    flex: 1 1 auto !important;
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: .82rem !important;
    min-width: 0 !important;
    padding: .95rem 1rem 1rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    margin: 0 !important;
    border-radius: 17px !important;
    background: rgba(227, 181, 28, .13) !important;
    color: #8a6500 !important;
    border: 1px solid rgba(227, 181, 28, .22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 10px 22px rgba(128, 93, 26, .08) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(2) .card-icon,
html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(6) .card-icon {
    background: var(--gc-green-soft) !important;
    color: var(--gc-green) !important;
    border-color: rgba(19, 150, 109, .22) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(3) .card-icon,
html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(5) .card-icon {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border-color: rgba(0, 167, 184, .22) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(4) .card-icon,
html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(8) .card-icon {
    background: var(--gc-magenta-soft) !important;
    color: var(--gc-magenta) !important;
    border-color: rgba(225, 47, 146, .20) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:nth-child(7) .card-icon {
    background: rgba(23, 36, 38, .08) !important;
    color: var(--gc-black) !important;
    border-color: rgba(23, 36, 38, .13) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-icon i {
    font-size: 1.14rem !important;
    line-height: 1 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-content {
    min-width: 0 !important;
    display: block !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-number {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    color: var(--gc-black) !important;
    font-size: 1.18rem !important;
    line-height: 1.04 !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    font-variant-numeric: tabular-nums !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-subtitle {
    display: block !important;
    max-width: 100% !important;
    margin: .18rem 0 0 !important;
    color: #546c68 !important;
    font-size: .76rem !important;
    line-height: 1.16 !important;
    font-weight: 760 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(227, 181, 28, .26) !important;
    box-shadow: var(--gc-shell-inner), 0 22px 44px rgba(128, 93, 26, .12) !important;
}

@media (max-width: 1400px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-main {
        grid-template-columns: 46px minmax(0, 1fr) !important;
        gap: .72rem !important;
        padding: .86rem .86rem .92rem !important;
    }

    html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-icon {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
    }

    html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-number {
        font-size: 1.08rem !important;
    }

    html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-subtitle {
        font-size: .72rem !important;
    }
}

@media (max-width: 420px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-main {
        grid-template-columns: 44px minmax(0, 1fr) !important;
    }

    html.gc-erp-online-theme:not(.gc-dark-mode) .dashboard-grid .card-icon {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }
}

/* Etapa 3.8 - Empresa ativa na topbar e logo solta */
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-app-topbar {
    justify-content: space-between !important;
    gap: 1rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-tenant {
    position: relative !important;
    z-index: 1 !important;
    min-width: 0 !important;
    max-width: min(520px, calc(100vw - 590px)) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: .64rem !important;
    padding: .46rem .82rem !important;
    border-radius: 999px !important;
    background:
        linear-gradient(135deg, rgba(255, 253, 247, .78), rgba(255, 246, 226, .64)) !important;
    border: 1px solid rgba(163, 126, 48, .18) !important;
    box-shadow: var(--gc-shell-inner), 0 10px 22px rgba(128, 93, 26, .052) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-tenant::before {
    content: "" !important;
    flex: 0 0 auto !important;
    width: 9px !important;
    height: 9px !important;
    border-radius: 999px !important;
    background: var(--gc-cmyk-strip) !important;
    box-shadow: 0 0 0 3px rgba(0, 167, 184, .10) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-tenant span {
    flex: 0 0 auto !important;
    color: #6f5b22 !important;
    font-size: .64rem !important;
    font-weight: 900 !important;
    letter-spacing: .055em !important;
    text-transform: uppercase !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-tenant strong {
    min-width: 0 !important;
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: var(--gc-black) !important;
    font-size: .84rem !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-header {
    padding: 1.18rem 1rem .72rem !important;
    border-bottom-color: rgba(163, 126, 48, .13) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-brand {
    min-height: 64px !important;
    padding: .2rem .2rem .45rem !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-brand::before,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-brand::after {
    display: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-logo {
    max-height: 54px !important;
    filter: drop-shadow(0 8px 16px rgba(128, 93, 26, .08)) !important;
}

@media (max-width: 1100px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-tenant {
        max-width: min(360px, calc(100vw - 380px)) !important;
    }
}

@media (max-width: 768px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) .gc-topbar-tenant {
        display: none !important;
    }
}

/* Etapa 3.9 - Personalizacao compacta do menu lateral */
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-sidebar-tools {
    padding: .48rem .92rem .18rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-head {
    min-height: 31px !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-head > span {
    color: #6f5b22 !important;
    font-size: .64rem !important;
    font-weight: 900 !important;
    letter-spacing: .07em !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-trigger {
    position: relative !important;
    width: 31px !important;
    height: 31px !important;
    border-radius: 999px !important;
    background:
        linear-gradient(135deg, rgba(255, 253, 247, .84), rgba(255, 246, 226, .68)) !important;
    border: 1px solid rgba(163, 126, 48, .20) !important;
    color: var(--gc-black) !important;
    box-shadow: var(--gc-shell-inner), 0 8px 18px rgba(128, 93, 26, .06) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-trigger:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-trigger.is-open,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-trigger.is-editing {
    background:
        linear-gradient(135deg, rgba(229, 251, 251, .88), rgba(255, 242, 190, .70)) !important;
    border-color: rgba(0, 167, 184, .28) !important;
    color: var(--gc-cyan) !important;
    box-shadow: var(--gc-shell-inner), 0 12px 24px rgba(0, 167, 184, .10) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-trigger.is-editing::after {
    content: "" !important;
    position: absolute !important;
    top: 3px !important;
    right: 3px !important;
    width: 7px !important;
    height: 7px !important;
    border-radius: 999px !important;
    background: var(--gc-green) !important;
    box-shadow: 0 0 0 2px rgba(255, 253, 247, .96) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-panel {
    top: calc(100% + .24rem) !important;
    left: .92rem !important;
    right: .92rem !important;
    padding: .42rem !important;
    border-radius: 14px !important;
    background:
        radial-gradient(circle at 100% 0, rgba(227, 181, 28, .11), transparent 8rem),
        linear-gradient(180deg, rgba(255, 253, 247, .99), rgba(255, 247, 232, .99)) !important;
    border: 1px solid rgba(163, 126, 48, .20) !important;
    box-shadow: 0 18px 38px rgba(128, 93, 26, .16) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-panel::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 12px auto 12px !important;
    height: 3px !important;
    border-radius: 0 0 999px 999px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-panel .gc-organize-btn,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-panel .gc-group-add-btn {
    min-height: 38px !important;
    justify-content: flex-start !important;
    padding: .55rem .64rem !important;
    border-radius: 11px !important;
    background: rgba(255, 255, 255, .48) !important;
    border: 1px solid rgba(163, 126, 48, .13) !important;
    color: var(--gc-black) !important;
    font-size: .76rem !important;
    font-weight: 850 !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-panel .gc-organize-btn i,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-panel .gc-group-add-btn i {
    width: 24px !important;
    height: 24px !important;
    border-radius: 9px !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-panel .gc-organize-btn.is-active i,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-panel .gc-group-add-btn i {
    background: var(--gc-green-soft) !important;
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-panel .gc-organize-btn:hover,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-panel .gc-organize-btn.is-active,
html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-panel .gc-group-add-btn:hover {
    background: rgba(229, 251, 251, .68) !important;
    border-color: rgba(0, 167, 184, .22) !important;
    color: var(--gc-black) !important;
}

@media (max-width: 768px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) .gc-menu-tools-panel {
        left: .85rem !important;
        right: .85rem !important;
    }
}

/* Etapa 4 - Cadastros premium */
html.gc-erp-online-theme:not(.gc-dark-mode) :where(.produtos-container, .clientes-container, .categorias-container, .meios-pagamento-page) {
    display: grid !important;
    gap: 1rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .produtos-container .produtos-header,
    .clientes-container .page-header,
    .categorias-container .page-header,
    .meios-pagamento-page .page-header
) {
    position: relative !important;
    min-height: 82px !important;
    padding: 1.05rem 1.18rem !important;
    border-radius: 18px !important;
    border: 1px solid rgba(163, 126, 48, .18) !important;
    background:
        radial-gradient(circle at 0 0, rgba(0, 167, 184, .055), transparent 12rem),
        radial-gradient(circle at 88% 0, rgba(227, 181, 28, .11), transparent 12rem),
        linear-gradient(180deg, rgba(255, 253, 247, .99), rgba(255, 247, 232, .99)) !important;
    box-shadow: var(--gc-shell-inner), 0 14px 30px rgba(128, 93, 26, .07) !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .produtos-container .produtos-header,
    .clientes-container .page-header,
    .categorias-container .page-header,
    .meios-pagamento-page .page-header
)::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 4px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .produtos-container .produtos-header-row {
    grid-template-columns: minmax(230px, 1fr) minmax(360px, 640px) auto !important;
    gap: .9rem !important;
    margin: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.clientes-container .page-header, .categorias-container .page-header, .meios-pagamento-page .page-header) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: .95rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .produtos-header-title h1,
    .clientes-container .header-left h1,
    .categorias-container .header-left h1,
    .meios-pagamento-page .page-title h1
) {
    color: var(--gc-black) !important;
    font-size: clamp(1.35rem, 1.7vw, 1.7rem) !important;
    font-weight: 950 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .meios-pagamento-page .page-title i {
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border: 1px solid rgba(0, 167, 184, .20) !important;
    font-size: 1.05rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .produtos-header-title p,
    .clientes-container .header-left p,
    .categorias-container .header-left p,
    .meios-pagamento-page .card-header p
) {
    color: #5f7374 !important;
    font-size: .92rem !important;
    font-weight: 650 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.produtos-filters, .clientes-container .filtros-card) {
    padding: .34rem !important;
    border-radius: 15px !important;
    background:
        linear-gradient(135deg, rgba(255, 253, 247, .72), rgba(229, 251, 251, .52)) !important;
    border: 1px solid rgba(163, 126, 48, .17) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .70) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .clientes-container .filtros-card {
    display: grid !important;
    grid-template-columns: minmax(250px, 1fr) auto !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    padding: .42rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .clientes-container .filtros-card > div:last-child {
    display: flex !important;
    align-items: center !important;
    gap: .5rem !important;
    flex-wrap: wrap !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .produtos-search-box input,
    .produtos-filter-box select,
    .clientes-container #filtroNome,
    .clientes-container #filtroStatus,
    .clientes-container #filtroTipo
) {
    height: 42px !important;
    background: rgba(255, 255, 255, .72) !important;
    border: 1px solid rgba(163, 126, 48, .13) !important;
    border-radius: 12px !important;
    color: var(--gc-ink) !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .produtos-search-box input:focus,
    .produtos-filter-box select:focus,
    .clientes-container #filtroNome:focus,
    .clientes-container #filtroStatus:focus,
    .clientes-container #filtroTipo:focus
) {
    background: rgba(255, 255, 255, .94) !important;
    border-color: rgba(0, 167, 184, .32) !important;
    box-shadow: 0 0 0 4px rgba(0, 167, 184, .11) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .clientes-container #btnLimparFiltros {
    height: 42px !important;
    border-radius: 12px !important;
    background: rgba(255, 253, 247, .82) !important;
    border-color: rgba(163, 126, 48, .18) !important;
    color: #5b4c38 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .clientes-container #btnLimparFiltros:hover {
    background: var(--gc-yellow-soft) !important;
    border-color: rgba(227, 181, 28, .28) !important;
    color: var(--gc-black) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .clientes-container .table-card,
    .produtos-container .table-card,
    .categorias-container .table-card,
    .meios-pagamento-page .content-card
) {
    position: relative !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    border: 1px solid rgba(163, 126, 48, .18) !important;
    background:
        linear-gradient(180deg, rgba(255, 253, 247, .99), rgba(255, 247, 232, .99)) !important;
    box-shadow: var(--gc-shell-inner), 0 14px 30px rgba(128, 93, 26, .065) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .clientes-container .table-card,
    .produtos-container .table-card,
    .categorias-container .table-card,
    .meios-pagamento-page .content-card
)::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--gc-cyan), var(--gc-magenta), var(--gc-yellow)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.clientes-table, .produtos-table, .categorias-table) {
    min-width: 760px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.clientes-table th, .produtos-table th, .categorias-table th) {
    background: rgba(255, 242, 190, .36) !important;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(163, 126, 48, .16) !important;
    color: #6c5b43 !important;
    font-size: .69rem !important;
    font-weight: 950 !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
    padding: .92rem 1rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.clientes-table td, .produtos-table td, .categorias-table td) {
    padding: .92rem 1rem !important;
    border-bottom: 1px solid rgba(163, 126, 48, .10) !important;
    color: #263b3f !important;
    vertical-align: middle !important;
    background: transparent !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.clientes-table tbody tr, .produtos-table tbody tr, .categorias-table tbody tr) {
    transition: background-color .15s ease !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.clientes-table tbody tr:hover, .produtos-table tbody tr:hover, .categorias-table tbody tr:hover) {
    background: rgba(229, 251, 251, .36) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.nome-cell, .preco-cell, .produtos-table td strong, .clientes-table .nome-cell > div) {
    color: var(--gc-black) !important;
    font-weight: 900 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.badge, .badge-ativo, .badge-inativo, .badge-desconto, .badge-acrescimo, .badge-nenhum) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .32rem !important;
    min-height: 28px !important;
    padding: .32rem .72rem !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    font-size: .72rem !important;
    font-weight: 900 !important;
    letter-spacing: .01em !important;
    text-transform: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.badge-ativo, .clientes-table .badge[style*="dcfce7"], .produtos-table .badge-ativo) {
    background: var(--gc-green-soft) !important;
    border-color: rgba(19, 150, 109, .18) !important;
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.badge-inativo, .badge-nenhum) {
    background: rgba(23, 36, 38, .07) !important;
    border-color: rgba(23, 36, 38, .10) !important;
    color: #506164 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.badge-acrescimo, .clientes-table .badge[style*="fee2e2"]) {
    background: var(--gc-red-soft) !important;
    border-color: rgba(201, 54, 66, .18) !important;
    color: var(--gc-red) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .badge-desconto {
    background: var(--gc-green-soft) !important;
    border-color: rgba(19, 150, 109, .18) !important;
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.btn-acoes, .btn-editar, .btn-excluir, .btn-icon) {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 11px !important;
    border: 1px solid rgba(163, 126, 48, .16) !important;
    background: rgba(255, 253, 247, .80) !important;
    color: #63777a !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.btn-acoes:hover, .btn-editar:hover, .btn-icon:hover) {
    background: var(--gc-cyan-soft) !important;
    border-color: rgba(0, 167, 184, .26) !important;
    color: var(--gc-cyan) !important;
    transform: translateY(-1px) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.excluir-cliente:hover, .excluir-produto:hover, .excluir-categoria:hover, .btn-excluir:hover) {
    background: var(--gc-red-soft) !important;
    border-color: rgba(201, 54, 66, .22) !important;
    color: var(--gc-red) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .meios-pagamento-page .card-header {
    padding: 1.15rem 1.35rem !important;
    border-bottom: 1px solid rgba(163, 126, 48, .12) !important;
    background: rgba(255, 242, 190, .28) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .meios-pagamento-page .card-header h2 {
    color: var(--gc-black) !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .meios-pagamento-page .meios-lista {
    padding: 1rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .meios-pagamento-page .meio-item {
    border-radius: 15px !important;
    background:
        linear-gradient(135deg, rgba(255, 253, 247, .94), rgba(229, 251, 251, .30)) !important;
    border: 1px solid rgba(163, 126, 48, .15) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .meios-pagamento-page .meio-item:hover {
    border-color: rgba(0, 167, 184, .24) !important;
    box-shadow: var(--gc-shell-inner), 0 16px 32px rgba(128, 93, 26, .09) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .meios-pagamento-page .meio-icon {
    border-radius: 16px !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border: 1px solid rgba(0, 167, 184, .20) !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .meios-pagamento-page .meio-nome {
    color: var(--gc-black) !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .meios-pagamento-page .meio-ajuste {
    color: #5f7374 !important;
    font-weight: 650 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.modal-cliente, .modal-produto, .categorias-container .modal-content, .meios-pagamento-page .modal-content) {
    border-radius: 19px !important;
    border: 1px solid rgba(163, 126, 48, .18) !important;
    background: linear-gradient(180deg, rgba(255, 253, 247, .99), rgba(255, 247, 232, .99)) !important;
    box-shadow: 0 28px 72px rgba(47, 35, 16, .24) !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.modal-cliente .modal-header, .modal-produto .modal-header, .categorias-container .modal-header, .meios-pagamento-page .modal-header) {
    position: relative !important;
    min-height: 62px !important;
    padding: 1rem 1.18rem !important;
    background: rgba(255, 242, 190, .31) !important;
    border-bottom: 1px solid rgba(163, 126, 48, .13) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.modal-cliente .modal-header, .modal-produto .modal-header, .categorias-container .modal-header, .meios-pagamento-page .modal-header)::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 3px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.modal-cliente .modal-header h2, .modal-produto .modal-header h2, .categorias-container .modal-header h2, .meios-pagamento-page .modal-header h2) {
    color: var(--gc-black) !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.modal-close, .categorias-container .modal-close, .meios-pagamento-page .modal-close) {
    border-radius: 999px !important;
    background: rgba(255, 253, 247, .74) !important;
    border: 1px solid rgba(163, 126, 48, .16) !important;
    color: #66797a !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.modal-close:hover, .categorias-container .modal-close:hover, .meios-pagamento-page .modal-close:hover) {
    background: var(--gc-red-soft) !important;
    border-color: rgba(201, 54, 66, .20) !important;
    color: var(--gc-red) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .modal-cliente .modal-content,
    .modal-produto .modal-content,
    .categorias-container .modal-content form,
    .meios-pagamento-page .modal-body
) {
    background: transparent !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.form-group label, .toggle-label, .checkbox-label) {
    color: var(--gc-black) !important;
    font-weight: 850 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .form-group input,
    .form-group select,
    .form-group textarea,
    .form-input,
    .combo-toggle
) {
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .70) !important;
    border: 1px solid rgba(163, 126, 48, .16) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus,
    .form-input:focus,
    .combo-toggle:focus
) {
    background: rgba(255, 255, 255, .96) !important;
    border-color: rgba(0, 167, 184, .34) !important;
    box-shadow: 0 0 0 4px rgba(0, 167, 184, .11) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.produto-modal-section, .toggle-item, .fiscal-section, .variacoes-section, .preview-ajuste) {
    border-radius: 15px !important;
    background: rgba(255, 253, 247, .58) !important;
    border: 1px solid rgba(163, 126, 48, .14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .70) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .produto-section-heading {
    display: flex !important;
    align-items: center !important;
    gap: .45rem !important;
    margin-bottom: .78rem !important;
    padding-left: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .produto-section-heading::before {
    content: "" !important;
    width: 9px !important;
    height: 9px !important;
    flex: 0 0 auto !important;
    border-radius: 999px !important;
    background: var(--gc-cmyk-strip) !important;
    box-shadow: 0 0 0 3px rgba(0, 167, 184, .08) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .produto-section-heading span {
    color: var(--gc-black) !important;
    font-weight: 950 !important;
    line-height: 1.1 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.empty-state, .empty-state-content, .clientes-table .empty-state > div) {
    color: #6a7f80 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.empty-state i, .empty-state-content i, .clientes-table .empty-state i) {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
}

@media (max-width: 1180px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) .produtos-container .produtos-header-row {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    html.gc-erp-online-theme:not(.gc-dark-mode) .produtos-container .produtos-filters {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
    }
}

@media (max-width: 980px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) :where(
        .clientes-container .page-header,
        .categorias-container .page-header,
        .meios-pagamento-page .page-header,
        .clientes-container .filtros-card
    ) {
        grid-template-columns: 1fr !important;
    }

    html.gc-erp-online-theme:not(.gc-dark-mode) :where(.produtos-filters, .clientes-container .filtros-card > div:last-child) {
        width: 100% !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    html.gc-erp-online-theme:not(.gc-dark-mode) :where(.btn-novo-cliente, .btn-novo-produto, .btn-nova-categoria, .meios-pagamento-page .btn-primary) {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Ajuste pontual - destaque do dia atual no calendario */
@keyframes gc-calendar-today-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(19, 150, 109, .28), var(--gc-shell-inner);
    }
    65% {
        box-shadow: 0 0 0 9px rgba(19, 150, 109, 0), var(--gc-shell-inner);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(19, 150, 109, 0), var(--gc-shell-inner);
    }
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario.dia-hoje {
    isolation: isolate !important;
    background:
        radial-gradient(circle at 50% 16%, rgba(19, 150, 109, .16), transparent 48%),
        rgba(255, 253, 247, .98) !important;
    border: 2px solid rgba(19, 150, 109, .62) !important;
    color: var(--gc-green) !important;
    font-weight: 950 !important;
    animation: gc-calendar-today-pulse 1.9s ease-out infinite !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario.dia-hoje::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 5px !important;
    width: 5px !important;
    height: 5px !important;
    border-radius: 999px !important;
    background: var(--gc-green) !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 0 0 3px rgba(19, 150, 109, .12) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario.dia-hoje.entrega-primaria,
html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario.dia-hoje.entrega-multipla {
    border-color: rgba(255, 255, 255, .86) !important;
    color: #fff !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario.dia-hoje.entrega-primaria::after,
html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario.dia-hoje.entrega-multipla::after {
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .18) !important;
}

@media (prefers-reduced-motion: reduce) {
    html.gc-erp-online-theme:not(.gc-dark-mode) .dia-calendario.dia-hoje {
        animation: none !important;
    }
}

/* Etapa 5 - Comercial premium */
html.gc-erp-online-theme:not(.gc-dark-mode) {
    --gc-commercial-surface: linear-gradient(180deg, rgba(255, 253, 247, .985), rgba(255, 248, 234, .985));
    --gc-commercial-surface-soft: linear-gradient(135deg, rgba(255, 253, 247, .92), rgba(255, 244, 220, .74));
    --gc-commercial-filter: linear-gradient(135deg, rgba(255, 253, 247, .78), rgba(229, 251, 251, .42));
    --gc-commercial-border: rgba(163, 126, 48, .17);
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-main,
html.gc-erp-online-theme:not(.gc-dark-mode) .vendas-container,
html.gc-erp-online-theme:not(.gc-dark-mode) .os-page,
html.gc-erp-online-theme:not(.gc-dark-mode) .main-content:has(#filtrosOrcamentos) {
    background: transparent !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-container,
html.gc-erp-online-theme:not(.gc-dark-mode) .vendas-container,
html.gc-erp-online-theme:not(.gc-dark-mode) .os-page,
html.gc-erp-online-theme:not(.gc-dark-mode) .main-content:has(#filtrosOrcamentos) {
    gap: 1rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-container {
    max-width: 1760px !important;
    grid-template-columns: minmax(0, 1fr) minmax(350px, 420px) !important;
    align-items: start !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-left,
html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-right {
    gap: 1rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .vendas-header,
    .os-page > .page-header,
    .main-content:has(#filtrosOrcamentos) > .page-header
) {
    position: relative !important;
    min-height: 82px !important;
    padding: 1.05rem 1.18rem !important;
    border-radius: 18px !important;
    border: 1px solid var(--gc-commercial-border) !important;
    background:
        radial-gradient(circle at 0 0, rgba(0, 167, 184, .055), transparent 12rem),
        radial-gradient(circle at 88% 0, rgba(227, 181, 28, .11), transparent 12rem),
        var(--gc-commercial-surface) !important;
    box-shadow: var(--gc-shell-inner), 0 14px 30px rgba(128, 93, 26, .07) !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .vendas-header,
    .os-page > .page-header,
    .main-content:has(#filtrosOrcamentos) > .page-header
)::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 4px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .vendas-header h1,
    .os-page > .page-header h1,
    .main-content:has(#filtrosOrcamentos) > .page-header h1
) {
    color: var(--gc-black) !important;
    font-size: clamp(1.42rem, 1.8vw, 1.78rem) !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
    line-height: 1.08 !important;
    margin: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .vendas-header p,
    .os-page > .page-header p,
    .main-content:has(#filtrosOrcamentos) > .page-header p
) {
    color: #5f7374 !important;
    font-size: .92rem !important;
    font-weight: 650 !important;
    margin-top: .35rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .vendas-header h1 i,
    .os-page > .page-header h1 i,
    .main-content:has(#filtrosOrcamentos) > .page-header h1 i
) {
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: .45rem !important;
    border-radius: 14px !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border: 1px solid rgba(0, 167, 184, .20) !important;
    font-size: 1.03rem !important;
    vertical-align: middle !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .filtro-card,
    .os-page .os-search,
    .main-content:has(#filtrosOrcamentos) #filtrosOrcamentos,
    .main-content:has(#filtrosOrcamentos) .tab-switcher,
    .main-content:has(#filtrosOrcamentos) .bulk-bar
) {
    padding: .78rem !important;
    border-radius: 17px !important;
    background: var(--gc-commercial-filter) !important;
    border: 1px solid var(--gc-commercial-border) !important;
    box-shadow: var(--gc-shell-inner), 0 10px 22px rgba(128, 93, 26, .045) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .vendas-container .filtro-card > div,
html.gc-erp-online-theme:not(.gc-dark-mode) .main-content:has(#filtrosOrcamentos) #filtrosOrcamentos {
    align-items: end !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .filtro-label,
    .main-content:has(#filtrosOrcamentos) #filtrosOrcamentos label,
    .os-page .os-search-hint
) {
    color: #6c5b43 !important;
    font-size: .76rem !important;
    font-weight: 900 !important;
    letter-spacing: .01em !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container #buscarNumeroVenda,
    .main-content:has(#filtrosOrcamentos) #filtroBusca,
    .main-content:has(#filtrosOrcamentos) #filtroModelo,
    .os-page #osSearchInput
) {
    height: 42px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .76) !important;
    border: 1px solid rgba(163, 126, 48, .16) !important;
    color: var(--gc-ink) !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container #buscarNumeroVenda:focus,
    .main-content:has(#filtrosOrcamentos) #filtroBusca:focus,
    .main-content:has(#filtrosOrcamentos) #filtroModelo:focus,
    .os-page #osSearchInput:focus
) {
    background: rgba(255, 255, 255, .96) !important;
    border-color: rgba(0, 167, 184, .34) !important;
    box-shadow: 0 0 0 4px rgba(0, 167, 184, .11) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .os-page .os-search-box {
    position: relative !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: center !important;
    gap: .55rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .os-page .os-search-box i {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    flex: 0 0 20px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border: 1px solid rgba(0, 167, 184, .18) !important;
    box-shadow: none !important;
    font-size: .58rem !important;
    line-height: 1 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .radio-group,
    .main-content:has(#filtrosOrcamentos) .tab-switcher
) {
    gap: .45rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .vendas-container .radio-option,
html.gc-erp-online-theme:not(.gc-dark-mode) .main-content:has(#filtrosOrcamentos) .tab-switcher button {
    min-height: 38px !important;
    padding: .48rem .72rem !important;
    border-radius: 999px !important;
    background: rgba(255, 253, 247, .76) !important;
    border: 1px solid rgba(163, 126, 48, .16) !important;
    color: #5b4c38 !important;
    font-weight: 850 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .vendas-container .radio-option:has(input:checked),
html.gc-erp-online-theme:not(.gc-dark-mode) .main-content:has(#filtrosOrcamentos) .tab-switcher button.active {
    background: var(--gc-green-soft) !important;
    border-color: rgba(19, 150, 109, .28) !important;
    color: var(--gc-green) !important;
    box-shadow: var(--gc-shell-inner), 0 8px 18px rgba(19, 150, 109, .08) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .vendas-container .radio-custom {
    width: 15px !important;
    height: 15px !important;
    border-color: rgba(0, 167, 184, .42) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .vendas-container .radio-option input[type="radio"]:checked + .radio-custom {
    background: var(--gc-green) !important;
    border-color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .table-card,
    .os-page .content-card,
    .os-page .table-container,
    .main-content:has(#filtrosOrcamentos) .orcamento-card,
    .main-content:has(#filtrosOrcamentos) #orcamentosConvertidosTabela,
    body.pos-body .pos-search-section,
    body.pos-body .pos-carrinho-section,
    body.pos-body .pos-cliente-section,
    body.pos-body .pos-info-section,
    body.pos-body .pos-resumo-section
) {
    position: relative !important;
    border-radius: 18px !important;
    border: 1px solid var(--gc-commercial-border) !important;
    background: var(--gc-commercial-surface) !important;
    box-shadow: var(--gc-shell-inner), 0 14px 30px rgba(128, 93, 26, .065) !important;
    overflow: hidden !important;
}

/* O autocomplete do PDV precisa escapar do card de busca para não ser recortado. */
html.gc-erp-online-theme body.pos-body .pos-search-section {
    overflow: visible !important;
    z-index: 30 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .table-card,
    .os-page .content-card,
    .main-content:has(#filtrosOrcamentos) .orcamento-card,
    .main-content:has(#filtrosOrcamentos) #orcamentosConvertidosTabela,
    body.pos-body .pos-search-section,
    body.pos-body .pos-carrinho-section,
    body.pos-body .pos-cliente-section,
    body.pos-body .pos-info-section,
    body.pos-body .pos-resumo-section
)::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--gc-cyan), var(--gc-magenta), var(--gc-yellow)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .vendas-table,
    .os-page .data-table,
    .main-content:has(#filtrosOrcamentos) table
) {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .vendas-table thead,
    .os-page .data-table thead,
    .main-content:has(#filtrosOrcamentos) table thead
) {
    background: rgba(255, 242, 190, .36) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .vendas-table th,
    .os-page .data-table th,
    .main-content:has(#filtrosOrcamentos) table th
) {
    padding: .92rem 1rem !important;
    border-bottom: 1px solid rgba(163, 126, 48, .16) !important;
    background: transparent !important;
    color: #6c5b43 !important;
    font-size: .69rem !important;
    font-weight: 950 !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .vendas-table td,
    .os-page .data-table td,
    .main-content:has(#filtrosOrcamentos) table td
) {
    padding: .88rem 1rem !important;
    border-bottom: 1px solid rgba(163, 126, 48, .10) !important;
    background: transparent !important;
    color: #263b3f !important;
    vertical-align: middle !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .vendas-table tbody tr:hover,
    .os-page .data-table tbody tr:hover,
    .main-content:has(#filtrosOrcamentos) table tbody tr:hover
) {
    background: rgba(229, 251, 251, .34) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .valor-cell,
    .os-page .data-table td strong,
    .main-content:has(#filtrosOrcamentos) .orcamento-numero,
    .main-content:has(#filtrosOrcamentos) .orcamento-total
) {
    color: var(--gc-black) !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .status-chip,
    .pagamento-chip,
    .badge-venda,
    .badge-orcamento,
    .badge-pago,
    .badge-pendente,
    .badge-cancelada,
    .orcamento-status
) {
    min-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .36rem !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    padding: .36rem .72rem !important;
    font-size: .72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.status-chip--pago, .badge-pago, .status-aprovado, .status-convertido) {
    background: var(--gc-green-soft) !important;
    color: var(--gc-green) !important;
    border-color: rgba(19, 150, 109, .24) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.status-chip--pendente, .badge-pendente, .status-pendente) {
    background: var(--gc-yellow-soft) !important;
    color: #8a6700 !important;
    border-color: rgba(227, 181, 28, .25) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.status-chip--cancelada, .badge-cancelada, .status-recusado) {
    background: var(--gc-red-soft) !important;
    color: var(--gc-red) !important;
    border-color: rgba(201, 54, 66, .24) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .pagamento-chip {
    background: rgba(255, 255, 255, .74) !important;
    border-color: rgba(163, 126, 48, .16) !important;
    color: var(--gc-black) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .pagamento-chip__icon {
    background: var(--gc-green-soft) !important;
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .btn-acoes,
    .os-page .btn-icon,
    .os-page .btn-copiar-numero,
    .main-content:has(#filtrosOrcamentos) .btn-action,
    .main-content:has(#filtrosOrcamentos) .btn-novo,
    .main-content:has(#filtrosOrcamentos) .btn-bulk-archive,
    .main-content:has(#filtrosOrcamentos) .btn-bulk-unarchive,
    .main-content:has(#filtrosOrcamentos) .btn-bulk-cancel
) {
    min-height: 34px !important;
    border-radius: 11px !important;
    border: 1px solid rgba(163, 126, 48, .16) !important;
    background: rgba(255, 253, 247, .78) !important;
    color: #3d4f54 !important;
    box-shadow: var(--gc-shell-inner) !important;
    font-weight: 850 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .btn-acoes:hover,
    .os-page .btn-icon:hover,
    .os-page .btn-copiar-numero:hover,
    .main-content:has(#filtrosOrcamentos) .btn-action:hover,
    .main-content:has(#filtrosOrcamentos) .btn-novo:hover
) {
    transform: translateY(-1px) !important;
    border-color: rgba(0, 167, 184, .25) !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .vendas-container .btn-cancelar-venda,
    .main-content:has(#filtrosOrcamentos) .btn-excluir,
    .main-content:has(#filtrosOrcamentos) .btn-bulk-delete,
    .os-page .btn-danger
) {
    background: var(--gc-red-soft) !important;
    border-color: rgba(201, 54, 66, .24) !important;
    color: var(--gc-red) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .main-content:has(#filtrosOrcamentos) .btn-converter {
    background: var(--gc-cyan-soft) !important;
    border-color: rgba(0, 167, 184, .24) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .main-content:has(#filtrosOrcamentos) .orcamentos-grid {
    gap: 1rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .main-content:has(#filtrosOrcamentos) .orcamento-card {
    padding: 1rem !important;
    min-height: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .main-content:has(#filtrosOrcamentos) .orcamento-header {
    padding-bottom: .75rem !important;
    border-bottom: 1px solid rgba(163, 126, 48, .13) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .main-content:has(#filtrosOrcamentos) .orcamento-info {
    color: #5f7374 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .main-content:has(#filtrosOrcamentos) .orcamento-info i {
    color: #7b8e91 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .main-content:has(#filtrosOrcamentos) .orcamento-total {
    min-height: 58px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .62) !important;
    border: 1px solid rgba(163, 126, 48, .16) !important;
    color: var(--gc-green) !important;
    font-size: clamp(1.16rem, 2vw, 1.52rem) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .main-content:has(#filtrosOrcamentos) .orcamento-actions {
    gap: .48rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body :where(
    .pos-search-header h3,
    .pos-carrinho-header h3,
    .pos-cliente-header h3,
    .pos-info-header h3,
    .pos-resumo-header h3
) {
    color: var(--gc-black) !important;
    font-size: .98rem !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body :where(
    .pos-search-header h3 span,
    .pos-carrinho-header h3 span
) {
    min-width: 26px !important;
    height: 26px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: .18rem !important;
    border-radius: 999px !important;
    background: var(--gc-yellow-soft) !important;
    color: #8a6700 !important;
    border: 1px solid rgba(227, 181, 28, .25) !important;
    font-size: .76rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body :where(.pos-search-header i, .pos-carrinho-header i, .pos-cliente-header i, .pos-info-header i, .pos-resumo-header i) {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-product-bar {
    padding: .45rem !important;
    border-radius: 18px !important;
    background: linear-gradient(135deg, rgba(255, 253, 247, .82), rgba(229, 251, 251, .45)) !important;
    border: 1px solid rgba(163, 126, 48, .15) !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body :where(.pos-category-filter, .pos-product-input, .pos-search-input, .pos-input, .pos-info-section input, .pos-info-section textarea, .pos-info-section select) {
    height: 42px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .78) !important;
    border: 1px solid rgba(163, 126, 48, .16) !important;
    color: var(--gc-ink) !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-info-section textarea {
    min-height: 74px !important;
    height: auto !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body :where(.pos-category-filter:focus, .pos-product-input:focus, .pos-search-input:focus, .pos-input:focus, .pos-info-section input:focus, .pos-info-section textarea:focus, .pos-info-section select:focus) {
    background: rgba(255, 255, 255, .96) !important;
    border-color: rgba(0, 167, 184, .34) !important;
    box-shadow: 0 0 0 4px rgba(0, 167, 184, .11) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-product-icon {
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border: 1px solid rgba(0, 167, 184, .18) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body :where(.pos-product-search-btn, .pos-btn-finalizar, .pos-btn-confirmar, .pos-btn-aplicar) {
    border-radius: 13px !important;
    border: 1px solid rgba(0, 167, 184, .22) !important;
    background: linear-gradient(135deg, var(--gc-cyan), var(--gc-magenta)) !important;
    color: #fff !important;
    font-weight: 950 !important;
    box-shadow: 0 12px 24px rgba(0, 167, 184, .16) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body :where(.pos-product-search-btn:hover, .pos-btn-finalizar:hover, .pos-btn-confirmar:hover, .pos-btn-aplicar:hover) {
    transform: translateY(-1px) !important;
    box-shadow: 0 16px 30px rgba(0, 167, 184, .20) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body :where(.pos-btn-cliente-rapido, .pos-btn-desconto, .pos-btn-suspender, .pos-btn-limpar, .pos-btn-remover-cliente) {
    border-radius: 12px !important;
    background: rgba(255, 253, 247, .78) !important;
    border: 1px solid rgba(163, 126, 48, .16) !important;
    color: #4e5f63 !important;
    box-shadow: var(--gc-shell-inner) !important;
    font-weight: 850 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body :where(.pos-btn-cliente-rapido:hover, .pos-btn-desconto:hover, .pos-btn-suspender:hover, .pos-btn-limpar:hover) {
    background: var(--gc-yellow-soft) !important;
    border-color: rgba(227, 181, 28, .26) !important;
    color: #7c5e00 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-carrinho-vazio {
    border-radius: 15px !important;
    border: 1px dashed rgba(163, 126, 48, .22) !important;
    background: rgba(255, 253, 247, .56) !important;
    color: #6a7f80 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-carrinho-vazio i {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border: 1px solid rgba(0, 167, 184, .18) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-carrinho-item {
    border-radius: 15px !important;
    background: rgba(255, 253, 247, .72) !important;
    border: 1px solid rgba(163, 126, 48, .14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .62) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-carrinho-item-nome {
    color: var(--gc-black) !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-carrinho-item-preco-total,
html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-resumo-total span:last-child {
    color: var(--gc-green) !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-cliente-selecionado {
    border-radius: 14px !important;
    background: var(--gc-green-soft) !important;
    border: 1px solid rgba(19, 150, 109, .22) !important;
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-resumo-valores {
    gap: .72rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-resumo-item {
    color: #5f7374 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-resumo-total {
    margin-top: .6rem !important;
    padding: 1rem !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, var(--gc-green-soft), rgba(255, 253, 247, .80)) !important;
    border: 1px solid rgba(19, 150, 109, .22) !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-resultados-busca,
html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-resultados-cliente {
    border-radius: 15px !important;
    border: 1px solid rgba(163, 126, 48, .17) !important;
    background: rgba(255, 253, 247, .98) !important;
    box-shadow: 0 18px 42px rgba(42, 34, 22, .14) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-height: min(320px, 48vh) !important;
    overscroll-behavior: contain !important;
    padding-right: 4px !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-resultados-cliente::-webkit-scrollbar {
    width: 8px !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-resultados-cliente::-webkit-scrollbar-track {
    background: rgba(42, 34, 22, .06) !important;
    border-radius: 999px !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-resultados-cliente::-webkit-scrollbar-thumb {
    background: rgba(42, 34, 22, .24) !important;
    border-radius: 999px !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body :where(.pos-resultado-item, .pos-resultado-cliente) {
    border-bottom: 1px solid rgba(163, 126, 48, .11) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body :where(.pos-resultado-item:hover, .pos-resultado-cliente:hover, .pos-resultado-item.active) {
    background: rgba(229, 251, 251, .46) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    body.pos-body .pos-modal,
    .vendas-container ~ .modal-overlay .modal,
    .vendas-container ~ .modal-overlay .modal-cupom,
    .os-page ~ .modal-overlay .modal-content,
    .main-content:has(#filtrosOrcamentos) ~ .modal-overlay .modal,
    body:has(.vendas-container) .modal-overlay .modal,
    body:has(.vendas-container) .modal-overlay .modal-cupom,
    body:has(.os-page) .modal-overlay .modal-content,
    body:has(#filtrosOrcamentos) .modal-overlay .modal
) {
    border-radius: 20px !important;
    border: 1px solid rgba(163, 126, 48, .18) !important;
    background: var(--gc-commercial-surface) !important;
    box-shadow: 0 28px 72px rgba(47, 35, 16, .24) !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    body.pos-body .pos-modal-header,
    .vendas-container ~ .modal-overlay .modal-header,
    .os-page ~ .modal-overlay .modal-header,
    .main-content:has(#filtrosOrcamentos) ~ .modal-overlay .modal-header,
    body:has(.vendas-container) .modal-overlay .modal-header,
    body:has(.os-page) .modal-overlay .modal-header,
    body:has(#filtrosOrcamentos) .modal-overlay .modal-header
) {
    position: relative !important;
    min-height: 60px !important;
    padding: 1rem 1.18rem !important;
    background: rgba(255, 242, 190, .31) !important;
    border-bottom: 1px solid rgba(163, 126, 48, .13) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    body.pos-body .pos-modal-header,
    .vendas-container ~ .modal-overlay .modal-header,
    .os-page ~ .modal-overlay .modal-header,
    .main-content:has(#filtrosOrcamentos) ~ .modal-overlay .modal-header,
    body:has(.vendas-container) .modal-overlay .modal-header,
    body:has(.os-page) .modal-overlay .modal-header,
    body:has(#filtrosOrcamentos) .modal-overlay .modal-header
)::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 3px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .stat-card,
    body.xml-page-body .metric-card,
    .pc-stat-card
)::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    width: auto !important;
    height: 5px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    body.pos-body .pos-modal-header h3,
    .vendas-container ~ .modal-overlay .modal-header h2,
    .vendas-container ~ .modal-overlay .modal-header h3,
    .os-page ~ .modal-overlay .modal-header h2,
    .os-page ~ .modal-overlay .modal-header h3,
    .main-content:has(#filtrosOrcamentos) ~ .modal-overlay .modal-header h2,
    .main-content:has(#filtrosOrcamentos) ~ .modal-overlay .modal-header h3,
    body:has(.vendas-container) .modal-overlay .modal-header h2,
    body:has(.vendas-container) .modal-overlay .modal-header h3,
    body:has(.os-page) .modal-overlay .modal-header h2,
    body:has(.os-page) .modal-overlay .modal-header h3,
    body:has(#filtrosOrcamentos) .modal-overlay .modal-header h2,
    body:has(#filtrosOrcamentos) .modal-overlay .modal-header h3
) {
    color: var(--gc-black) !important;
    font-weight: 950 !important;
}

@media (max-width: 1180px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-container {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 820px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) :where(
        .vendas-container .vendas-header,
        .os-page > .page-header,
        .main-content:has(#filtrosOrcamentos) > .page-header
    ) {
        grid-template-columns: 1fr !important;
    }

    html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-product-bar {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
    }

    html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-category-filter,
    html.gc-erp-online-theme:not(.gc-dark-mode) body.pos-body .pos-product-icon {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }
}

/* Etapa 6 - Financeiro, estoque e relatorios premium */
html.gc-erp-online-theme:not(.gc-dark-mode) {
    --gc-finance-surface: linear-gradient(180deg, rgba(255, 253, 247, .985), rgba(255, 248, 234, .985));
    --gc-finance-surface-soft: linear-gradient(135deg, rgba(255, 253, 247, .88), rgba(255, 244, 220, .72));
    --gc-finance-filter: linear-gradient(135deg, rgba(255, 253, 247, .78), rgba(229, 251, 251, .40));
    --gc-finance-border: rgba(163, 126, 48, .17);
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container,
    .valores-receber-container,
    .relatorios-container,
    .reports-hub,
    .cr-page,
    .produtos-container:has(#tabelaEstoque)
) {
    max-width: 1440px !important;
    margin: 0 auto !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container,
    .valores-receber-container,
    .relatorios-container,
    .cr-page,
    .produtos-container:has(#tabelaEstoque)
) {
    display: grid !important;
    gap: 1rem !important;
    padding: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .reports-hub {
    --rh-cyan: var(--gc-cyan) !important;
    --rh-magenta: var(--gc-magenta) !important;
    --rh-yellow: var(--gc-yellow) !important;
    --rh-ink: var(--gc-black) !important;
    --rh-muted: #5f7374 !important;
    --rh-line: var(--gc-finance-border) !important;
    --rh-soft: rgba(255, 248, 234, .72) !important;
    --rh-card: rgba(255, 253, 247, .96) !important;
    --rh-shadow: 0 14px 30px rgba(128, 93, 26, .065) !important;
    padding: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .page-header,
    .valores-receber-container .page-header,
    .relatorios-container .page-header,
    .cr-page .cr-header,
    .produtos-container:has(#tabelaEstoque) .produtos-header,
    .reports-hub .rh-hero
) {
    position: relative !important;
    min-height: 82px !important;
    padding: 1.05rem 1.18rem !important;
    border-radius: 18px !important;
    border: 1px solid var(--gc-finance-border) !important;
    background:
        radial-gradient(circle at 0 0, rgba(0, 167, 184, .055), transparent 12rem),
        radial-gradient(circle at 88% 0, rgba(227, 181, 28, .11), transparent 12rem),
        var(--gc-finance-surface) !important;
    box-shadow: var(--gc-shell-inner), 0 14px 30px rgba(128, 93, 26, .07) !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .page-header,
    .valores-receber-container .page-header,
    .relatorios-container .page-header,
    .cr-page .cr-header,
    .produtos-container:has(#tabelaEstoque) .produtos-header,
    .reports-hub .rh-hero
)::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 4px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .page-header h1,
    .valores-receber-container .page-header h1,
    .relatorios-container .page-header h1,
    .cr-page .cr-header h1,
    .produtos-container:has(#tabelaEstoque) .produtos-header h1,
    .reports-hub .rh-hero h1
) {
    color: var(--gc-black) !important;
    font-size: clamp(1.42rem, 1.8vw, 1.78rem) !important;
    font-weight: 950 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .page-header p,
    .valores-receber-container .page-header p,
    .relatorios-container .page-header p,
    .produtos-container:has(#tabelaEstoque) .produtos-header p,
    .reports-hub .rh-hero p
) {
    color: #5f7374 !important;
    font-size: .92rem !important;
    font-weight: 650 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .page-header h1 i,
    .valores-receber-container .page-header h1 i,
    .relatorios-container .page-header h1 i,
    .cr-page .cr-header h1 i,
    .produtos-container:has(#tabelaEstoque) .produtos-header h1 i
) {
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: .45rem !important;
    border-radius: 14px !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border: 1px solid rgba(0, 167, 184, .20) !important;
    font-size: 1.03rem !important;
    vertical-align: middle !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .cards-resumo,
    .valores-receber-container .resumo-metrics,
    .cr-page .cr-resumo,
    .reports-hub .rh-kpis,
    .reports-hub .rh-mini-grid
) {
    gap: 1rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .card-resumo,
    .valores-receber-container .card-resumo,
    .valores-receber-container .card-valores,
    .relatorios-container .report-card,
    .cr-page .cr-resumo-card,
    .cr-page .cr-conta-card,
    .cr-page .cr-vinculos,
    .produtos-container:has(#tabelaEstoque) .filtro-card,
    .produtos-container:has(#tabelaEstoque) .table-card,
    .reports-hub .rh-kpi,
    .reports-hub .rh-mini,
    .reports-hub .rh-panel,
    .reports-hub .rh-section,
    .reports-hub .rh-shortcuts,
    .reports-hub .rh-toolbar,
    .reports-hub .rh-nav,
    .reports-hub .rh-period-card
) {
    position: relative !important;
    border-radius: 18px !important;
    border: 1px solid var(--gc-finance-border) !important;
    background: var(--gc-finance-surface) !important;
    box-shadow: var(--gc-shell-inner), 0 14px 30px rgba(128, 93, 26, .065) !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .valores-receber-container .card-resumo,
    .valores-receber-container .card-valores,
    .relatorios-container .report-card,
    .cr-page .cr-vinculos,
    .produtos-container:has(#tabelaEstoque) .table-card,
    .reports-hub .rh-section,
    .reports-hub .rh-shortcuts
)::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, var(--gc-cyan), var(--gc-magenta), var(--gc-yellow)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .contas-container .card-resumo {
    min-height: 128px !important;
    display: grid !important;
    align-content: end !important;
    padding: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .contas-container .card-resumo::before {
    content: "" !important;
    display: block !important;
    height: 34px !important;
    margin-bottom: .95rem !important;
    background: rgba(227, 181, 28, .20) !important;
    border-bottom: 1px solid rgba(163, 126, 48, .12) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .contas-container .card-pago::before { background: rgba(19, 150, 109, .16) !important; }
html.gc-erp-online-theme:not(.gc-dark-mode) .contas-container .card-vencido::before { background: rgba(201, 54, 66, .14) !important; }
html.gc-erp-online-theme:not(.gc-dark-mode) .contas-container .card-total::before { background: rgba(0, 167, 184, .14) !important; }

html.gc-erp-online-theme:not(.gc-dark-mode) .contas-container .card-resumo h3,
html.gc-erp-online-theme:not(.gc-dark-mode) .contas-container .card-resumo p {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .card-resumo h3,
    .valores-receber-container .metric-label,
    .cr-page .rc-label,
    .reports-hub .rh-kpi span,
    .reports-hub .rh-mini span,
    .relatorios-container .card-header h3
) {
    color: #6c5b43 !important;
    font-size: .74rem !important;
    font-weight: 950 !important;
    letter-spacing: .045em !important;
    text-transform: uppercase !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .card-resumo p,
    .valores-receber-container .metric-value,
    .cr-page .rc-valor,
    .cr-page .cr-conta-saldo,
    .reports-hub .rh-kpi strong,
    .reports-hub .rh-mini strong
) {
    max-width: 100% !important;
    color: var(--gc-black) !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .card-pago p,
    .cr-page .cr-conta-saldo.positivo,
    .reports-hub .rh-green strong,
    .reports-hub .rh-finance-balance strong
) {
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .card-vencido p,
    .cr-page .cr-conta-saldo.negativo,
    .reports-hub .rh-finance-balance.negative strong
) {
    color: var(--gc-red) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .card-pendente p,
    .valores-receber-container .metric-value.orange,
    .valores-receber-container .valor-pendente.orange
) {
    color: #8a6700 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .filtros-toolbar,
    .contas-container .grafico-card,
    .produtos-container:has(#tabelaEstoque) .filtro-card,
    .reports-hub .rh-toolbar,
    .reports-hub .rh-nav
) {
    padding: .78rem !important;
    border-radius: 17px !important;
    background: var(--gc-finance-filter) !important;
    border: 1px solid var(--gc-finance-border) !important;
    box-shadow: var(--gc-shell-inner), 0 10px 22px rgba(128, 93, 26, .045) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .btn-filtrar,
    .reports-hub .rh-chip,
    .reports-hub .rh-secondary-btn,
    .reports-hub .rh-link-btn,
    .produtos-container:has(#tabelaEstoque) select,
    .produtos-container:has(#tabelaEstoque) input,
    .valores-receber-container .busca-wrapper,
    .cr-page .cr-header-btn
) {
    min-height: 38px !important;
    border-radius: 999px !important;
    background: rgba(255, 253, 247, .76) !important;
    border: 1px solid rgba(163, 126, 48, .16) !important;
    color: #5b4c38 !important;
    box-shadow: var(--gc-shell-inner) !important;
    font-weight: 850 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .btn-filtrar.ativo,
    .reports-hub .rh-primary-btn,
    .cr-page .cr-header-btn.primary,
    .cr-page .cr-btn-primary,
    .contas-container .btn-nova-conta,
    .contas-container .btn-salvar,
    .contas-container .btn-atualizar,
    .relatorios-container .btn-atualizar
) {
    border-radius: 13px !important;
    border: 1px solid rgba(0, 167, 184, .22) !important;
    background: linear-gradient(135deg, var(--gc-cyan), var(--gc-magenta)) !important;
    color: #fff !important;
    font-weight: 950 !important;
    box-shadow: 0 12px 24px rgba(0, 167, 184, .16) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .btn-filtrar:hover,
    .reports-hub .rh-chip:hover,
    .reports-hub .rh-secondary-btn:hover,
    .reports-hub .rh-link-btn:hover,
    .cr-page .cr-header-btn:hover
) {
    transform: translateY(-1px) !important;
    border-color: rgba(0, 167, 184, .25) !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .valores-receber-container .busca-wrapper input,
    .produtos-container:has(#tabelaEstoque) #buscarProduto,
    .produtos-container:has(#tabelaEstoque) #filtroCategoria,
    .produtos-container:has(#tabelaEstoque) #filtroEstoque,
    .contas-container .form-group input,
    .contas-container .form-group select,
    .contas-container .form-group textarea,
    .contas-container #contaRecebimentoPagar,
    .cr-page .cr-modal input,
    .cr-page .cr-modal select,
    .cr-page .cr-modal textarea,
    .cr-page .cr-vinculo-row select,
    .reports-hub .rh-period-row input,
    .relatorios-container .periodo-form input[type="date"]
) {
    min-height: 42px !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, .76) !important;
    border: 1px solid rgba(163, 126, 48, .16) !important;
    color: var(--gc-ink) !important;
    box-shadow: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .valores-receber-container .busca-wrapper input:focus,
    .produtos-container:has(#tabelaEstoque) #buscarProduto:focus,
    .produtos-container:has(#tabelaEstoque) #filtroCategoria:focus,
    .produtos-container:has(#tabelaEstoque) #filtroEstoque:focus,
    .contas-container .form-group input:focus,
    .contas-container .form-group select:focus,
    .contas-container .form-group textarea:focus,
    .cr-page .cr-modal input:focus,
    .cr-page .cr-modal select:focus,
    .cr-page .cr-modal textarea:focus,
    .reports-hub .rh-period-row input:focus,
    .relatorios-container .periodo-form input[type="date"]:focus
) {
    background: rgba(255, 255, 255, .96) !important;
    border-color: rgba(0, 167, 184, .34) !important;
    box-shadow: 0 0 0 4px rgba(0, 167, 184, .11) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .table-card,
    .valores-receber-container .table-wrapper,
    .relatorios-container .table-responsive,
    .produtos-container:has(#tabelaEstoque) .table-card
) {
    overflow-x: auto !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .table-card,
    .valores-receber-container .card-valores,
    .relatorios-container .report-card.full-width,
    .produtos-container:has(#tabelaEstoque) .table-card
) {
    padding: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .valores-receber-container .card-valores-header,
    .valores-receber-container .card-resumo-header,
    .relatorios-container .card-header,
    .reports-hub .rh-section-head,
    .reports-hub .rh-panel-head
) {
    padding: 1.05rem 1.18rem !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(163, 126, 48, .13) !important;
    background: rgba(255, 242, 190, .25) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .valores-receber-container .card-resumo .resumo-metrics {
    padding: 1.05rem 1.18rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .valores-receber-container .tabela-toolbar {
    padding: 1rem 1.18rem 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container table,
    .valores-receber-container .valores-table,
    .relatorios-container .data-table,
    .reports-hub .rh-table,
    .produtos-container:has(#tabelaEstoque) .produtos-table
) {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container thead,
    .valores-receber-container .valores-table thead,
    .relatorios-container .data-table thead,
    .reports-hub .rh-table thead,
    .produtos-container:has(#tabelaEstoque) .produtos-table thead
) {
    background: rgba(255, 242, 190, .36) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container th,
    .valores-receber-container .valores-table th,
    .relatorios-container .data-table th,
    .reports-hub .rh-table th,
    .produtos-container:has(#tabelaEstoque) .produtos-table th
) {
    padding: .92rem 1rem !important;
    border-top: 0 !important;
    border-bottom: 1px solid rgba(163, 126, 48, .16) !important;
    background: transparent !important;
    color: #6c5b43 !important;
    font-size: .69rem !important;
    font-weight: 950 !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container td,
    .valores-receber-container .valores-table td,
    .relatorios-container .data-table td,
    .reports-hub .rh-table td,
    .produtos-container:has(#tabelaEstoque) .produtos-table td
) {
    padding: .88rem 1rem !important;
    border-bottom: 1px solid rgba(163, 126, 48, .10) !important;
    background: transparent !important;
    color: #263b3f !important;
    vertical-align: middle !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container tbody tr:hover,
    .valores-receber-container .valores-table tbody tr:hover,
    .relatorios-container .data-table tbody tr:hover,
    .reports-hub .rh-table tbody tr:hover,
    .produtos-container:has(#tabelaEstoque) .produtos-table tbody tr:hover
) {
    background: rgba(229, 251, 251, .34) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container tbody tr:hover td,
    .valores-receber-container .valores-table tbody tr:hover td,
    .relatorios-container .data-table tbody tr:hover td,
    .reports-hub .rh-table tbody tr:hover td,
    .produtos-container:has(#tabelaEstoque) .produtos-table tbody tr:hover td
) {
    background: transparent !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .badge-status,
    .valores-receber-container .badge-vendas,
    .valores-receber-container .badge-detalhe,
    .produtos-container:has(#tabelaEstoque) .badge,
    .reports-hub .rh-status,
    .reports-hub .rh-status-cloud span
) {
    min-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .36rem !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    padding: .36rem .72rem !important;
    font-size: .72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.status-pago, .badge-pago) {
    background: var(--gc-green-soft) !important;
    color: var(--gc-green) !important;
    border-color: rgba(19, 150, 109, .24) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.status-pendente, .badge-pendente) {
    background: var(--gc-yellow-soft) !important;
    color: #8a6700 !important;
    border-color: rgba(227, 181, 28, .25) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(.status-vencido) {
    background: var(--gc-red-soft) !important;
    color: var(--gc-red) !important;
    border-color: rgba(201, 54, 66, .24) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .btn-acao,
    .valores-receber-container .btn-print,
    .produtos-container:has(#tabelaEstoque) .btn-confirmar-ajuste,
    .relatorios-container .btn-export,
    .cr-page .cr-conta-actions button,
    .cr-page .cr-btn-cancel
) {
    min-height: 34px !important;
    border-radius: 11px !important;
    border: 1px solid rgba(163, 126, 48, .16) !important;
    background: rgba(255, 253, 247, .78) !important;
    color: #3d4f54 !important;
    box-shadow: var(--gc-shell-inner) !important;
    font-weight: 850 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .btn-acao:hover,
    .valores-receber-container .btn-print:hover,
    .relatorios-container .btn-export:hover,
    .cr-page .cr-conta-actions button:hover
) {
    transform: translateY(-1px) !important;
    border-color: rgba(0, 167, 184, .25) !important;
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .btn-acao.pagar,
    .cr-page .btn-entrada,
    .produtos-container:has(#tabelaEstoque) button[title="Entrada de Estoque"]
) {
    background: var(--gc-green-soft) !important;
    border-color: rgba(19, 150, 109, .25) !important;
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .btn-acao.excluir,
    .cr-page .btn-saida,
    .produtos-container:has(#tabelaEstoque) button[title="Saida de Estoque"],
    .produtos-container:has(#tabelaEstoque) button[title="Saída de Estoque"]
) {
    background: var(--gc-red-soft) !important;
    border-color: rgba(201, 54, 66, .24) !important;
    color: var(--gc-red) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .valores-receber-container .avatar.orange {
    background: linear-gradient(135deg, var(--gc-yellow), var(--gc-magenta)) !important;
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(227, 181, 28, .16) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .valores-receber-container .icon-wrapper,
html.gc-erp-online-theme:not(.gc-dark-mode) .relatorios-container .card-header i,
html.gc-erp-online-theme:not(.gc-dark-mode) .cr-page .rc-icon,
html.gc-erp-online-theme:not(.gc-dark-mode) .cr-page .cr-conta-icone {
    border-radius: 14px !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .valores-receber-container .icon-wrapper {
    background: var(--gc-cyan-soft) !important;
    border: 1px solid rgba(0, 167, 184, .18) !important;
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .valores-receber-container .icon-wrapper.orange {
    background: var(--gc-yellow-soft) !important;
    border-color: rgba(227, 181, 28, .25) !important;
    color: #8a6700 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .valores-receber-container .icon-wrapper i,
html.gc-erp-online-theme:not(.gc-dark-mode) .valores-receber-container .icon-wrapper.orange i {
    color: inherit !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .cr-page .cr-conta-card:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(0, 167, 184, .22) !important;
    box-shadow: var(--gc-shell-inner), 0 20px 42px rgba(128, 93, 26, .10) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .modal-card,
    .cr-page .cr-modal,
    .valores-receber-container .modal-print-content
) {
    border-radius: 20px !important;
    border: 1px solid rgba(163, 126, 48, .18) !important;
    background: var(--gc-finance-surface) !important;
    box-shadow: 0 28px 72px rgba(47, 35, 16, .24) !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .modal-header,
    .valores-receber-container .modal-print-header
) {
    position: relative !important;
    min-height: 60px !important;
    padding: 1rem 1.18rem !important;
    background: rgba(255, 242, 190, .31) !important;
    border-bottom: 1px solid rgba(163, 126, 48, .13) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .modal-header,
    .valores-receber-container .modal-print-header
)::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 3px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .contas-container .modal-header h2,
    .valores-receber-container .modal-print-header h2,
    .cr-page .cr-modal h3
) {
    color: var(--gc-black) !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .reports-hub .rh-cmyk-top::before {
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .reports-hub .rh-finance-balance {
    background: linear-gradient(135deg, var(--gc-green-soft), rgba(255, 253, 247, .80)) !important;
    border-color: rgba(19, 150, 109, .22) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .reports-hub .rh-finance-balance.negative {
    background: linear-gradient(135deg, var(--gc-red-soft), rgba(255, 253, 247, .84)) !important;
    border-color: rgba(201, 54, 66, .22) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .reports-hub .rh-progress-track {
    background: rgba(163, 126, 48, .12) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .reports-hub .rh-progress-track span {
    background: linear-gradient(90deg, var(--gc-green), var(--gc-yellow), var(--gc-magenta)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .reports-hub .rh-alert {
    border-radius: 15px !important;
    border: 1px solid rgba(227, 181, 28, .24) !important;
    background: var(--gc-yellow-soft) !important;
    color: #6f5200 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .reports-hub .rh-alert-icon {
    background: rgba(255, 255, 255, .68) !important;
    color: #8a6700 !important;
}

@media print {
    html.gc-erp-online-theme :where(
        .gc-app-topbar,
        .gc-sidebar,
        .sidebar,
        .menu-lateral,
        .menu-toggle,
        .sidebar-overlay,
        .header-usuario,
        .usuario-logado,
        .avatar-dropdown,
        .gc-user-menu,
        .rh-nav,
        .rh-toolbar-actions,
        .rh-period-card,
        .no-print
    ) {
        display: none !important;
    }

    html.gc-erp-online-theme .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    html.gc-erp-online-theme :where(
        .report-card,
        .rh-section,
        .rh-hero,
        .rh-kpi,
        .rh-mini,
        .rh-panel,
        .card-resumo,
        .card-valores,
        .table-card
    ) {
        box-shadow: none !important;
        break-inside: avoid !important;
    }
}

/* Etapa 7 - ordem final da camada visual */
html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .card,
    body.xml-page-body .dock-panel,
    .pc-card,
    .produtos-selecionados,
    .configuracao-etiqueta,
    .area-impressao
)::before {
    display: block !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) {
    --gc-ops-surface: #fffaf0;
    --gc-ops-panel: rgba(255, 250, 240, .92);
    --gc-ops-border: rgba(168, 129, 40, .18);
    --gc-ops-shadow: 0 18px 44px rgba(94, 72, 24, .10);
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .main-content.fp,
    .xml-main,
    .pc-page,
    .main-content:has(.cp-pos-container),
    .main-content:has(.etiquetas-container)
) {
    background:
        radial-gradient(circle at 12% 0%, rgba(0, 167, 184, .055), transparent 30%),
        radial-gradient(circle at 86% 8%, rgba(227, 181, 28, .12), transparent 28%),
        linear-gradient(180deg, #fffdf7 0%, #fff9eb 38%, #f7faf6 100%) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .pg-hdr,
    body.xml-page-body .masthead-copy,
    .pc-hero,
    .cp-header,
    .etiquetas-container .produtos-header
) {
    position: relative !important;
    border: 1px solid var(--gc-ops-border) !important;
    border-radius: 22px !important;
    background: linear-gradient(135deg, rgba(255, 250, 240, .96), rgba(255, 255, 250, .86)) !important;
    box-shadow: var(--gc-ops-shadow) !important;
    color: var(--gc-ink) !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .pg-hdr,
    body.xml-page-body .masthead-copy,
    .pc-hero,
    .cp-header,
    .etiquetas-container .produtos-header
)::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 4px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .card,
    .fp .stat-card,
    .fp .cfg-nav-inner,
    .fp-modal .mbox,
    body.xml-page-body .dock-panel,
    body.xml-page-body .metric-card,
    body.xml-page-body .file-stage,
    body.xml-page-body .summary-box,
    body.xml-page-body .detail-block,
    .pc-card,
    .pc-stat-card,
    .cp-card,
    .produtos-selecionados,
    .configuracao-etiqueta,
    .area-impressao
) {
    border: 1px solid var(--gc-ops-border) !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, rgba(255, 253, 247, .96), rgba(255, 248, 232, .84)) !important;
    box-shadow: var(--gc-shell-inner), var(--gc-ops-shadow) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .card,
    body.xml-page-body .dock-panel,
    .pc-card,
    .cp-card,
    .produtos-selecionados,
    .configuracao-etiqueta,
    .area-impressao
) {
    position: relative !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .card,
    body.xml-page-body .dock-panel,
    .pc-card,
    .produtos-selecionados,
    .configuracao-etiqueta,
    .area-impressao
)::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 3px !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .tabs,
    .pc-tabs
) {
    border: 1px solid var(--gc-ops-border) !important;
    border-radius: 17px !important;
    background: rgba(255, 250, 240, .82) !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .tabs button.on,
    .pc-tabs button.is-active
) {
    background: linear-gradient(135deg, var(--gc-green-soft), rgba(241, 251, 255, .82)) !important;
    border-color: rgba(19, 150, 109, .24) !important;
    color: var(--gc-green) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .btn-p,
    body.xml-page-body .btn-primary,
    .pc-btn-primary,
    .cp-btn-primario,
    .cp-product-search-btn,
    .btn-imprimir,
    .btn-quantidade
) {
    border: 1px solid rgba(0, 131, 148, .18) !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--gc-cyan), #087e95) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 26px rgba(0, 167, 184, .18) !important;
    font-weight: 900 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .btn-o,
    body.xml-page-body .btn-secondary,
    .pc-btn-muted,
    .pc-btn-soft,
    .cp-btn-secundario
) {
    border: 1px solid rgba(163, 126, 48, .20) !important;
    border-radius: 12px !important;
    background: rgba(255, 253, 247, .82) !important;
    color: #41535b !important;
    font-weight: 900 !important;
    box-shadow: var(--gc-shell-inner) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp input,
    .fp select,
    .fp textarea,
    body.xml-page-body input,
    body.xml-page-body select,
    body.xml-page-body textarea,
    .pc-form-grid input,
    .pc-form-grid select,
    .pc-form-grid textarea,
    .pc-builder input,
    .pc-builder select,
    .cp-product-input,
    .cp-input-mini,
    .search-input,
    .configuracao-etiqueta select,
    .configuracao-etiqueta input,
    .quantidade-control input
) {
    border: 1px solid rgba(163, 126, 48, .20) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 250, .78) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp th,
    body.xml-page-body th,
    .pc-table th
) {
    background: rgba(255, 245, 220, .72) !important;
    color: #5a4a33 !important;
    border-color: rgba(163, 126, 48, .14) !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp td,
    body.xml-page-body td,
    .pc-table td
) {
    color: #2d3b43 !important;
    border-color: rgba(163, 126, 48, .10) !important;
    background: rgba(255, 253, 247, .52) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .b-aut,
    .badge-green,
    .amb-prod
) {
    background: var(--gc-green-soft) !important;
    color: var(--gc-green) !important;
    border-color: rgba(19, 150, 109, .24) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .b-rej,
    .amb-hom,
    .badge-gold
) {
    background: var(--gc-yellow-soft) !important;
    color: #8a6700 !important;
    border-color: rgba(227, 181, 28, .26) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .b-can,
    .fp .sefaz-st.off,
    .badge-red
) {
    background: var(--gc-red-soft) !important;
    color: var(--gc-red) !important;
    border-color: rgba(201, 54, 66, .24) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .b-nfe,
    .fp .b-nfce,
    .fp .b-sim,
    .badge-blue,
    .cp-card-header .badge-step,
    .cp-tag-preco-tipo
) {
    background: var(--gc-cyan-soft) !important;
    color: var(--gc-cyan) !important;
    border-color: rgba(0, 167, 184, .22) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .pg-hdr h1,
    .pc-hero-main h1,
    .cp-header h1,
    .etiquetas-container .produtos-header h1,
    .fp .sh h3,
    .pc-card-title h2,
    .configuracao-etiqueta-header h2,
    .produtos-selecionados h2,
    .cp-card-header h3,
    body.xml-page-body .dock-head h2,
    body.xml-page-body .block-head h3,
    body.xml-page-body .summary-box h3
) {
    color: var(--gc-black) !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .fp .st-val,
    body.xml-page-body .metric-value,
    .pc-stat-card strong,
    .cp-resumo-total,
    .preco-valor
) {
    color: var(--gc-black) !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
}
/* Ajustes finais - garantir precedencia real no fim do arquivo */
html.gc-erp-online-theme body:has(.assistant-page) {
    overflow: hidden !important;
}

html.gc-erp-online-theme .main-content.assistant-page,
html.gc-erp-online-theme:not(.gc-dark-mode) .main-content.assistant-page,
html.gc-erp-online-theme.gc-dark-mode .main-content.assistant-page {
    width: calc(100% - 250px) !important;
    height: 100vh !important;
    min-height: 100vh !important;
    margin: 0 0 0 250px !important;
    padding: 5.35rem 1.85rem 1.15rem !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    align-content: stretch !important;
    gap: 0 !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-bar,
html.gc-erp-online-theme .assistant-page .chat-container {
    width: min(100%, 1040px) !important;
    max-width: 1040px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-bar {
    min-height: 76px !important;
    padding: 1rem 1.15rem !important;
    border: 1px solid rgba(88, 75, 54, .15) !important;
    border-bottom: 0 !important;
    border-radius: 22px 22px 0 0 !important;
    background: radial-gradient(circle at 4% 10%, rgba(0, 152, 170, .09), transparent 14rem), linear-gradient(180deg, rgba(255, 253, 247, .98), rgba(250, 244, 232, .96)) !important;
    box-shadow: var(--gc-shell-inner), 0 16px 34px rgba(83, 66, 31, .08) !important;
    position: relative !important;
    z-index: 3 !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-bar::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 0 auto 0 !important;
    height: 4px !important;
    border-radius: 22px 22px 0 0 !important;
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme .assistant-page .chat-container {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border: 1px solid rgba(88, 75, 54, .15) !important;
    border-top: 0 !important;
    border-radius: 0 0 22px 22px !important;
    background: radial-gradient(circle at 8% 0, rgba(0, 152, 170, .06), transparent 16rem), radial-gradient(circle at 92% 12%, rgba(216, 170, 24, .10), transparent 18rem), linear-gradient(180deg, rgba(255, 250, 240, .90), rgba(255, 246, 226, .80)) !important;
    box-shadow: var(--gc-shell-inner), 0 24px 48px rgba(83, 66, 31, .09) !important;
}

html.gc-erp-online-theme .assistant-page .chat-messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 1.15rem 1.35rem !important;
    gap: 1rem !important;
    scrollbar-gutter: stable !important;
}

html.gc-erp-online-theme .assistant-page .chat-input-bar {
    flex: 0 0 auto !important;
    padding: .95rem 1.35rem 1.05rem !important;
    border-top: 1px solid rgba(88, 75, 54, .12) !important;
    background: linear-gradient(180deg, rgba(255, 250, 240, .70), rgba(255, 253, 247, .97)) !important;
}

html.gc-erp-online-theme .assistant-page .input-row {
    min-height: 58px !important;
    padding: .3rem .42rem .3rem 1rem !important;
    border: 1px solid rgba(88, 75, 54, .16) !important;
    border-radius: 17px !important;
    background: rgba(255, 255, 255, .96) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 12px 28px rgba(83, 66, 31, .08) !important;
}

html.gc-erp-online-theme .assistant-page .msg-content {
    max-width: min(74%, 720px) !important;
}

html.gc-erp-online-theme .assistant-page .msg.user .msg-content {
    max-width: min(68%, 660px) !important;
}

html.gc-erp-online-theme .assistant-page .msg-bubble {
    border-radius: 18px !important;
    padding: .82rem 1rem !important;
    font-size: .94rem !important;
    line-height: 1.58 !important;
    box-shadow: 0 12px 26px rgba(66, 52, 28, .07) !important;
}

html.gc-erp-online-theme .assistant-page .msg.bot .msg-bubble {
    border: 1px solid rgba(88, 75, 54, .13) !important;
    background: rgba(255, 253, 247, .98) !important;
    color: #415157 !important;
    border-bottom-left-radius: 7px !important;
}

html.gc-erp-online-theme .assistant-page .msg.user .msg-bubble {
    border: 1px solid rgba(0, 152, 170, .20) !important;
    background: linear-gradient(135deg, var(--gc-cyan), #087f8e) !important;
    color: #fff !important;
    border-bottom-right-radius: 7px !important;
}

html.gc-erp-online-theme .assistant-page .btn-send {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, var(--gc-black), var(--gc-cyan)) !important;
    box-shadow: 0 12px 24px rgba(0, 152, 170, .18) !important;
}

@media (max-width: 900px) {
    html.gc-erp-online-theme .main-content.assistant-page,
    html.gc-erp-online-theme:not(.gc-dark-mode) .main-content.assistant-page,
    html.gc-erp-online-theme.gc-dark-mode .main-content.assistant-page {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 4.55rem .85rem .85rem !important;
    }

    html.gc-erp-online-theme .assistant-page .chat-top-bar {
        flex-wrap: wrap !important;
        gap: .75rem !important;
    }

    html.gc-erp-online-theme .assistant-page .msg-content,
    html.gc-erp-online-theme .assistant-page .msg.user .msg-content {
        max-width: 86% !important;
    }
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-provider-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
    align-items: stretch !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-provider-card {
    min-height: 245px !important;
    padding: 1.15rem !important;
    gap: .7rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-provider-card > p:not(.storage-provider-status) {
    min-height: 3.65em !important;
    margin-top: 0 !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-provider-status {
    width: fit-content !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-provider-actions {
    justify-content: flex-start !important;
    align-items: center !important;
    gap: .52rem !important;
    flex-wrap: wrap !important;
    padding-top: .75rem !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-btn {
    flex: 0 0 auto !important;
    min-width: auto !important;
    min-height: 38px !important;
    padding: .58rem .78rem !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    border-radius: 12px !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-btn.primary[data-storage-provider] {
    min-width: 126px !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) .gc-storage-panel .storage-btn.link-danger {
    min-height: 38px !important;
    padding: .58rem .2rem !important;
}

#modalImpressaoCaixa.modal-overlay,
#modalImpressaoFechamentoCaixa.modal-overlay {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 24px 12px !important;
    overflow-y: auto !important;
}

#modalImpressaoCaixa .modal-content-comprovante-caixa,
#modalImpressaoFechamentoCaixa .modal-content-comprovante-caixa {
    width: min(600px, calc(100vw - 24px)) !important;
    max-height: calc(100dvh - 48px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#modalImpressaoCaixa .modal-content-comprovante-caixa .modal-header,
#modalImpressaoFechamentoCaixa .modal-content-comprovante-caixa .modal-header {
    flex: 0 0 auto !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    background: inherit !important;
}

#modalImpressaoCaixa .conteudo-impressao-caixa,
#modalImpressaoFechamentoCaixa .conteudo-impressao-caixa {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 1.5rem 1.65rem !important;
}

#modalImpressaoCaixa .modal-content-comprovante-caixa .form-actions,
#modalImpressaoFechamentoCaixa .modal-content-comprovante-caixa .form-actions {
    flex: 0 0 auto !important;
    position: sticky !important;
    bottom: 0 !important;
    z-index: 2 !important;
    margin-top: 0 !important;
    padding: 1rem 1.5rem !important;
    border-top: 1px solid rgba(88, 75, 54, .14) !important;
    background: linear-gradient(180deg, rgba(255, 250, 240, .96), rgba(255, 253, 247, .98)) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) main.main-content.cr-page {
    width: calc(100% - 250px) !important;
    max-width: none !important;
    margin: 0 0 0 250px !important;
    box-sizing: border-box !important;
    padding: 5.25rem 1.85rem 1.6rem !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) {
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    padding: 5.2rem 1.85rem 1rem !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) .chat-top-bar {
    flex: 0 0 auto !important;
    border-radius: 18px 18px 0 0 !important;
    box-shadow: var(--gc-shell-inner), 0 12px 28px rgba(128, 93, 26, .07) !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) .chat-container {
    flex: 1 1 auto !important;
    width: min(100%, 980px) !important;
    max-width: 980px !important;
    height: auto !important;
    min-height: 0 !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) .chat-messages {
    min-height: 0 !important;
    padding: 1rem 1rem .8rem !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) .chat-input-bar {
    flex: 0 0 auto !important;
    padding: .75rem 1rem 0 !important;
}

html.gc-erp-online-theme main.main-content:has(.chat-container) .input-row {
    min-height: 54px !important;
}

@media (max-width: 768px) {
    html.gc-erp-online-theme:not(.gc-dark-mode) main.main-content.cr-page {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 4.2rem 1rem 1rem !important;
    }

    html.gc-erp-online-theme main.main-content:has(.chat-container) {
        height: 100dvh !important;
        min-height: 100dvh !important;
        padding: 4.2rem .75rem .75rem !important;
    }

    html.gc-erp-online-theme main.main-content:has(.chat-container) .chat-top-bar {
        flex-wrap: wrap !important;
        gap: .65rem !important;
    }
}

@media print {
    html.gc-erp-online-theme,
    html.gc-erp-online-theme body,
    html.gc-erp-online-theme .main-content,
    html.gc-erp-online-theme .detalhes-container,
    html.gc-erp-online-theme .container,
    html.gc-erp-online-theme .card-section,
    html.gc-erp-online-theme .orcamento-header-card,
    html.gc-erp-online-theme .empresa,
    html.gc-erp-online-theme .cupom-container,
    html.gc-erp-online-theme .cupom,
    html.gc-erp-online-theme .comprovante-container,
    html.gc-erp-online-theme .conteudo-impressao-caixa,
    html.gc-erp-online-theme [class*="print"] {
        background: #fff !important;
        background-image: none !important;
    }

    html.gc-erp-online-theme .main-content,
    html.gc-erp-online-theme .detalhes-container,
    html.gc-erp-online-theme .container {
        box-shadow: none !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    html.gc-erp-online-theme :where(
        .gc-app-topbar,
        .gc-sidebar,
        .sidebar,
        .menu-lateral,
        .menu-toggle,
        .sidebar-overlay,
        .header-usuario,
        .usuario-logado,
        .avatar-dropdown,
        .gc-user-menu,
        .acoes-print,
        .acoes-buttons,
        .no-print
    ) {
        display: none !important;
        visibility: hidden !important;
    }
}
/* Assistente - acabamento final do cabecalho */
html.gc-erp-online-theme main.main-content.assistant-page:has(.chat-container) .chat-top-bar,
html.gc-erp-online-theme .assistant-page .chat-top-bar {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: .95rem !important;
    min-height: 88px !important;
    padding: 1.15rem 1.25rem 1rem !important;
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden !important;
    isolation: isolate !important;
}

html.gc-erp-online-theme main.main-content.assistant-page:has(.chat-container) .chat-top-bar::before,
html.gc-erp-online-theme .assistant-page .chat-top-bar::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    border-radius: inherit !important;
    background: var(--gc-cmyk-strip) !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

html.gc-erp-online-theme main.main-content.assistant-page:has(.chat-container) .chat-top-bar > *,
html.gc-erp-online-theme .assistant-page .chat-top-bar > * {
    position: relative !important;
    z-index: 1 !important;
}

html.gc-erp-online-theme main.main-content.assistant-page:has(.chat-container) .chat-top-left,
html.gc-erp-online-theme .assistant-page .chat-top-left {
    flex: 1 1 470px !important;
    min-width: 280px !important;
    display: flex !important;
    align-items: center !important;
    gap: .85rem !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-left > div:not(.avatar-sm) {
    min-width: 0 !important;
    display: grid !important;
    gap: .18rem !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-left .avatar-sm {
    width: 44px !important;
    height: 44px !important;
    flex: 0 0 44px !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, var(--gc-cyan), var(--gc-magenta)) !important;
    box-shadow: 0 12px 24px rgba(0, 152, 170, .18) !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-left h3 {
    margin: 0 !important;
    color: var(--gc-black) !important;
    font-size: 1.08rem !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
    line-height: 1.1 !important;
}

html.gc-erp-online-theme .assistant-page .chat-top-left small {
    color: #5f7073 !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

html.gc-erp-online-theme .assistant-page .ia-status-pill {
    margin-left: .25rem !important;
    min-height: 32px !important;
    padding: .42rem .72rem !important;
    border-radius: 999px !important;
    border: 1px solid rgba(19, 150, 109, .22) !important;
    background: linear-gradient(180deg, rgba(230, 255, 245, .98), rgba(215, 250, 235, .94)) !important;
    color: var(--gc-green) !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

html.gc-erp-online-theme main.main-content.assistant-page:has(.chat-container) .chat-top-right,
html.gc-erp-online-theme .assistant-page .chat-top-right {
    flex: 0 1 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: .5rem !important;
    flex-wrap: wrap !important;
}

html.gc-erp-online-theme .assistant-page .btn-top,
html.gc-erp-online-theme .assistant-page a.btn-top {
    min-height: 38px !important;
    border-radius: 13px !important;
    padding: .58rem .82rem !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

html.gc-erp-online-theme .assistant-page .btn-ai-premium {
    border: 0 !important;
    background: linear-gradient(135deg, #101820, #006f7d 58%, #c01881) !important;
    color: #fff !important;
    box-shadow: 0 14px 26px rgba(0, 111, 125, .18), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}

html.gc-erp-online-theme .assistant-page .btn-ai-premium i {
    color: var(--gc-yellow) !important;
}

html.gc-erp-online-theme .assistant-page .btn-ai-premium:hover {
    color: #fff !important;
    filter: saturate(1.04) brightness(1.02) !important;
    transform: translateY(-1px) !important;
}

html.gc-erp-online-theme .assistant-page .chat-admin-badge {
    display: inline-flex !important;
    min-width: 18px !important;
    height: 18px !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: .25rem !important;
    border-radius: 999px !important;
    background: #ef4444 !important;
    color: #fff !important;
    font-size: .68rem !important;
    font-weight: 950 !important;
}

html.gc-erp-online-theme.gc-dark-mode .assistant-page .chat-top-left h3 {
    color: #f8fbff !important;
}

html.gc-erp-online-theme.gc-dark-mode .assistant-page .chat-top-left small {
    color: #b7c5d8 !important;
}

@media (max-width: 900px) {
    html.gc-erp-online-theme .assistant-page .chat-top-bar {
        align-items: flex-start !important;
    }

    html.gc-erp-online-theme .assistant-page .chat-top-left {
        flex-basis: 100% !important;
    }

    html.gc-erp-online-theme .assistant-page .chat-top-right {
        width: 100% !important;
        justify-content: flex-start !important;
    }
}

/* Temas prontos: variações do mesmo padrão premium */
html.gc-erp-online-theme:not(.gc-dark-mode) {
    --gc-theme-glow: rgba(var(--gc-cyan-rgb, 11, 143, 179), .085);
    --gc-theme-glow-strong: rgba(var(--gc-cyan-rgb, 11, 143, 179), .14);
    --gc-theme-accent-glow: rgba(var(--gc-magenta-rgb, 183, 42, 134), .075);
    --gc-theme-yellow-glow: rgba(var(--gc-yellow-rgb, 217, 180, 33), .075);
    --gc-theme-ink-glow: rgba(var(--gc-black-rgb, 17, 24, 39), .09);
    --gc-theme-border: rgba(var(--gc-black-rgb, 17, 24, 39), .12);
    --gc-theme-border-strong: rgba(var(--gc-cyan-rgb, 11, 143, 179), .26);
    --gc-theme-shadow: 0 18px 42px rgba(var(--gc-black-rgb, 17, 24, 39), .075);
    --primary-color: var(--gc-cyan);
    --primary-hover: var(--gc-action-hover);
    --accent-color: var(--gc-magenta);
    --bg-color: var(--gc-page);
    --card-bg: var(--gc-panel);
    --border-color: var(--gc-line);
    --primary-gradient: linear-gradient(135deg, var(--gc-action), var(--gc-cyan) 58%, var(--gc-magenta));
}

html.gc-erp-online-theme:not(.gc-dark-mode) body,
html.gc-erp-online-theme:not(.gc-dark-mode) .main-content {
    background:
        radial-gradient(circle at 12% 7%, var(--gc-theme-glow), transparent 26rem),
        radial-gradient(circle at 88% 10%, var(--gc-theme-accent-glow), transparent 28rem),
        linear-gradient(135deg, var(--gc-theme-yellow-glow), transparent 46%),
        var(--gc-page) !important;
    color: var(--gc-ink) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .gc-app-topbar,
    .gc-sidebar,
    .sidebar.gc-sidebar,
    .gc-sidebar-header,
    .gc-sidebar-tools,
    .gc-sidebar-menu,
    .gc-sidebar-footer,
    .card,
    .card-form,
    .dashboard-card,
    .calendar-section,
    .page-header,
    .modal-content,
    .gc-user-dropdown,
    .gc-user-trigger,
    .table-container,
    .tabela-container,
    .form-container
) {
    border-color: var(--gc-theme-border) !important;
    box-shadow: var(--gc-theme-shadow) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .gc-app-topbar,
    .gc-sidebar,
    .sidebar.gc-sidebar,
    .gc-sidebar-header,
    .gc-sidebar-tools,
    .gc-sidebar-menu,
    .gc-sidebar-footer
) {
    background:
        linear-gradient(180deg, var(--gc-theme-glow), rgba(255, 255, 255, 0) 58%),
        var(--gc-panel) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .page-header,
    .dashboard-header,
    .card-form,
    .calendar-section,
    .modal-header,
    .assistant-page .chat-top-bar
)::before {
    background: var(--gc-cmyk-strip) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .btn-primary,
    .btn-salvar,
    .btn-salvar-visual,
    .btn-novo,
    .btn-adicionar,
    .btn-cadastrar,
    .btn-confirmar,
    .store-btn.primary,
    .action-button.primary,
    button.primary,
    button[type="submit"].primary
) {
    background: var(--primary-gradient) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(var(--gc-cyan-rgb, 11, 143, 179), .18) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .btn-primary,
    .btn-salvar,
    .btn-salvar-visual,
    .btn-novo,
    .btn-adicionar,
    .btn-cadastrar,
    .btn-confirmar,
    .action-button.primary,
    button.primary,
    button[type="submit"].primary
):hover {
    filter: saturate(1.06) brightness(1.02) !important;
    box-shadow: 0 16px 30px rgba(var(--gc-cyan-rgb, 11, 143, 179), .24) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .dashboard-card .card-icon,
    .icon-wrapper,
    .avatar-sm,
    .welcome-avatar,
    .stat-icon,
    .metric-icon,
    .gc-user-avatar,
    .config-icon,
    .visual-panel-header i
) {
    background: linear-gradient(135deg, var(--gc-cyan), var(--gc-magenta)) !important;
    color: #fff !important;
    border-color: rgba(var(--gc-cyan-rgb, 11, 143, 179), .24) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    .link,
    .page-header i,
    .dashboard-header i,
    .form-header i,
    .card-header i,
    .tab-button.active,
    .gc-sidebar-menu a.active,
    .gc-sidebar-menu a:hover
) {
    color: var(--gc-cyan) !important;
}

html.gc-erp-online-theme:not(.gc-dark-mode) :where(
    input,
    select,
    textarea
):focus {
    border-color: var(--gc-theme-border-strong) !important;
    box-shadow: 0 0 0 3px rgba(var(--gc-cyan-rgb, 11, 143, 179), .14) !important;
}

/* Dashboard: permite que o dropdown de periodo saia do header sem ser cortado pela faixa CMYK. */
html.gc-erp-online-theme .dashboard-header {
    overflow: visible !important;
    isolation: isolate !important;
    z-index: 40 !important;
}

html.gc-erp-online-theme .dashboard-header::before {
    pointer-events: none !important;
}

html.gc-erp-online-theme .dashboard-header > * {
    position: relative !important;
    z-index: 1 !important;
}

html.gc-erp-online-theme .dashboard-header .filtro-periodo-container-simple {
    z-index: 80 !important;
}

html.gc-erp-online-theme .dashboard-header .filtro-periodo-dropdown {
    z-index: 1200 !important;
}

/* Modo escuro final: esta camada fica por ultimo para vencer estilos claros tardios. */
@media screen {
    html.gc-erp-online-theme.gc-dark-mode {
        --gc-dark-surface: #111b2d;
        --gc-dark-surface-soft: #0f192a;
        --gc-dark-surface-strong: #0b1322;
        --gc-dark-warning: rgba(245, 158, 11, .14);
        --gc-dark-danger: rgba(244, 63, 94, .14);
        --gc-dark-info: rgba(36, 196, 231, .13);
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .dashboard-header,
        .page-header,
        .produtos-header,
        .clientes-header,
        .header-section,
        .fiscal-header,
        .pos-header,
        .ordens-header,
        .card,
        .table-card,
        .card-form,
        .report-card,
        .filtro-card,
        .caixa-card,
        .card-resumo,
        .resumo-card,
        .config-card,
        .info-card,
        .section-card,
        .stat-card,
        .metric-card,
        .dashboard-card,
        .content-card,
        .panel-card,
        .panel,
        .form-card,
        .summary-card,
        .summary,
        .detail-card,
        .grafico-card,
        .hero,
        .hero-card,
        .history,
        .history-row,
        .due-row,
        .empty,
        .modules-card,
        .module-card,
        .next-box,
        .status-card,
        .status-pill,
        .due-pill,
        .plan-card,
        .plan-note,
        .price-line,
        .modal-content,
        .modal,
        .modal-box,
        .modal-card,
        .pos-modal,
        .dropdown-menu,
        .dropdown-content,
        .gc-user-dropdown,
        .gc-dialog-card,
        .orcamento-card,
        .table-container,
        .table-wrapper,
        .table-responsive,
        .list-card,
        .filters-section,
        .filtros-container,
        .filtros-card,
        .search-section,
        .search-container,
        .calendario-wrapper,
        .entregas-wrapper,
        .calendario-container,
        .pos-search-section,
        .pos-carrinho-section,
        .pos-cliente-section,
        .pos-info-section,
        .pos-resumo-section,
        .cp-card,
        .pc-card,
        .storage-provider-card,
        .storage-usage-box,
        .storage-info-box,
        .storage-cleanup-box,
        .queue-head,
        .bulk-bar,
        .session,
        .pager,
        .chat-top,
        .messages,
        .composer,
        .msg.cliente,
        .msg.humano
    ) {
        background: rgba(17, 27, 45, .98) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .modal-header,
        .modal-footer,
        .card-header,
        .card-footer,
        .gc-group-modal-head,
        .gc-group-modal-foot,
        .menu-acoes,
        .combo-menu,
        .tab-switcher button,
        .radio-option,
        .radio-label,
        .btn-cancelar,
        .btn-secundario,
        .btn-limpar,
        .btn-voltar,
        .btn-filtro,
        .btn-outline,
        .btn-ver-detalhes-alertas,
        .btn-export,
        .btn-filtrar,
        .btn-exportar,
        .btn-imprimir,
        .btn-acoes,
        .btn-editar,
        .btn-acao,
        .btn-action:not(.btn-primary):not(.btn-danger):not(.btn-excluir),
        .paginacao-btn,
        .paginacao-numero,
        .pc-btn-soft,
        .cp-btn-secundario,
        .storage-btn:not(.primary),
        .btn.light,
        .sound-btn,
        .mini-btn
    ) {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        th,
        thead th,
        .table thead th,
        .usuarios-table th,
        .auditoria-table th,
        .meios-pagamento-table th
    ) {
        background: var(--gc-dark-surface-soft) !important;
        color: var(--gc-muted) !important;
        border-color: var(--gc-line) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        input[type="text"],
        input[type="email"],
        input[type="number"],
        input[type="password"],
        input[type="url"],
        input[type="date"],
        input[type="search"],
        input[type="tel"],
        input[type="file"],
        select,
        textarea
    ) {
        background: var(--gc-input) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body :where(
        [style*="background:white"],
        [style*="background: white"],
        [style*="background:#fff"],
        [style*="background: #fff"],
        [style*="background:#ffffff"],
        [style*="background: #ffffff"],
        [style*="background-color:white"],
        [style*="background-color: white"],
        [style*="background-color:#fff"],
        [style*="background-color: #fff"],
        [style*="background-color:#ffffff"],
        [style*="background-color: #ffffff"],
        [style*="background:#fffdf8"],
        [style*="background: #fffdf8"],
        [style*="background:#fffdf0"],
        [style*="background: #fffdf0"],
        [style*="background:#fffaf0"],
        [style*="background: #fffaf0"],
        [style*="background:#fffaf1"],
        [style*="background: #fffaf1"],
        [style*="background:#fffef9"],
        [style*="background: #fffef9"],
        [style*="background:#fffefb"],
        [style*="background: #fffefb"],
        [style*="background:#fffefa"],
        [style*="background: #fffefa"],
        [style*="background:#fffdfa"],
        [style*="background: #fffdfa"],
        [style*="background:#fffdf9"],
        [style*="background: #fffdf9"],
        [style*="background:#f1f5f9"],
        [style*="background: #f1f5f9"],
        [style*="background:#f7fafc"],
        [style*="background: #f7fafc"],
        [style*="background:#f8fafc"],
        [style*="background: #f8fafc"],
        [style*="background:#f8f9fa"],
        [style*="background: #f8f9fa"],
        [style*="background:#f9fafb"],
        [style*="background: #f9fafb"],
        [style*="background:rgba(255,255,255"],
        [style*="background: rgba(255,255,255"],
        [style*="background:rgba(255, 255, 255"],
        [style*="background: rgba(255, 255, 255"],
        [style*="background:rgba(255,253,247"],
        [style*="background: rgba(255,253,247"],
        [style*="background:rgba(255, 253, 247"],
        [style*="background: rgba(255, 253, 247"],
        [style*="background:rgba(255,253,248"],
        [style*="background: rgba(255,253,248"],
        [style*="background:rgba(255, 253, 248"],
        [style*="background: rgba(255, 253, 248"],
        [style*="background:rgba(255,254,250"],
        [style*="background: rgba(255,254,250"],
        [style*="background:rgba(255, 254, 250"],
        [style*="background: rgba(255, 254, 250"],
        [style*="background:rgba(255,255,250"],
        [style*="background: rgba(255,255,250"],
        [style*="background:rgba(255, 255, 250"],
        [style*="background: rgba(255, 255, 250"]
    ) {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body :where(
        [style*="background:#fffaeb"],
        [style*="background: #fffaeb"],
        [style*="background:#fffbeb"],
        [style*="background: #fffbeb"],
        [style*="background:#fff7ed"],
        [style*="background: #fff7ed"],
        [style*="background:#fff8e1"],
        [style*="background: #fff8e1"],
        [style*="background:#fff9d8"],
        [style*="background: #fff9d8"],
        [style*="background:#fff9df"],
        [style*="background: #fff9df"],
        [style*="background:#fff7d9"],
        [style*="background: #fff7d9"],
        [style*="background:#fffbe8"],
        [style*="background: #fffbe8"],
        [style*="background:#fff5d8"],
        [style*="background: #fff5d8"],
        [style*="background:#fff7df"],
        [style*="background: #fff7df"]
    ) {
        background: var(--gc-dark-warning) !important;
        border-color: rgba(245, 158, 11, .28) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body :where(
        [style*="background:#fff1f2"],
        [style*="background: #fff1f2"],
        [style*="background:#fff4f7"],
        [style*="background: #fff4f7"],
        [style*="background:#fff5f5"],
        [style*="background: #fff5f5"],
        [style*="background:#fff6f6"],
        [style*="background: #fff6f6"],
        [style*="background:#fff1f3"],
        [style*="background: #fff1f3"],
        [style*="background:#fff7f7"],
        [style*="background: #fff7f7"]
    ) {
        background: var(--gc-dark-danger) !important;
        border-color: rgba(244, 63, 94, .28) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .alert-warning,
        .badge-warning,
        .status-pendente,
        .status-aguardando,
        .status-em-andamento,
        .msg.bot,
        .msg.sistema,
        .badge.wait,
        .btn.warn,
        .sound-btn.off,
        .pos-alert-caixa,
        #alertasVencimentoWrapper > div:first-child
    ) {
        background: var(--gc-dark-warning) !important;
        border-color: rgba(245, 158, 11, .28) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .alert-danger,
        .badge-danger,
        .status-cancelada,
        .status-vencido,
        .status-pill.is-bad,
        .mini-btn.danger,
        .btn.danger,
        .btn-excluir,
        .btn-acao.desativar
    ) {
        background: var(--gc-dark-danger) !important;
        border-color: rgba(244, 63, 94, .28) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .assistant-page .chat-top-bar,
    html.gc-erp-online-theme.gc-dark-mode .assistant-page .chat-container,
    html.gc-erp-online-theme.gc-dark-mode .assistant-page .chat-input-bar {
        background:
            radial-gradient(circle at 8% 0, rgba(36, 196, 231, .10), transparent 16rem),
            linear-gradient(180deg, rgba(17, 27, 45, .98), rgba(11, 19, 34, .98)) !important;
        border-color: var(--gc-line) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .assistant-page :where(
        .btn-top,
        .welcome-chip,
        .msg.bot .msg-bubble,
        .input-row
    ) {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .assistant-page .ia-status-pill {
        background: rgba(16, 185, 129, .14) !important;
        border-color: rgba(16, 185, 129, .28) !important;
    }

    /* Desktop pages that still ship with page-local light styles. */
    html.gc-erp-online-theme.gc-dark-mode :where(
        .entrega-card,
        .vendas-container .filtro-card,
        .clientes-container .filtros-card,
        .main-content:has(#filtrosOrcamentos) #filtrosOrcamentos,
        .main-content:has(#filtrosOrcamentos) .tab-switcher,
        .main-content:has(#filtrosOrcamentos) .bulk-bar,
        .vendas-container .table-card,
        .os-page .content-card,
        .os-page .table-container,
        .main-content:has(#filtrosOrcamentos) .orcamento-card,
        .main-content:has(#filtrosOrcamentos) #orcamentosConvertidosTabela
    ) {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .entrega-grupo-header,
        .entrega-itens-container,
        .entrega-observacoes-container,
        .entrega-os-status-container,
        .main-content:has(#filtrosOrcamentos) .orcamento-total,
        .main-content:has(#filtrosOrcamentos) .orcamento-card .cb-label,
        .main-content:has(#filtrosOrcamentos) .tab-switcher button,
        .clientes-container #btnLimparFiltros,
        .vendas-container .radio-option,
        .nf-dropdown
    ) {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .entrega-cliente,
        .entrega-itens,
        .entrega-observacoes,
        .entrega-total-label,
        .entrega-valor,
        .entrega-valor-texto,
        .main-content:has(#filtrosOrcamentos) .orcamento-numero,
        .main-content:has(#filtrosOrcamentos) .orcamento-total
    ) {
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .entrega-itens-label,
        .entrega-observacoes-label,
        .entrega-valor-label,
        .entrega-venda,
        .entrega-os-label,
        .main-content:has(#filtrosOrcamentos) .info-row,
        .os-page .os-search-hint
    ) {
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .entrega-valor-item.valor-pago,
        .entrega-valor-item.valor-restante
    ) {
        background: rgba(16, 185, 129, .14) !important;
        border: 1px solid rgba(16, 185, 129, .24) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .entrega-os-status-container.pronto-entrega {
        background: var(--gc-dark-warning) !important;
        border-left-color: rgba(245, 158, 11, .72) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .vendas-container #buscarNumeroVenda,
        .main-content:has(#filtrosOrcamentos) #filtroBusca,
        .main-content:has(#filtrosOrcamentos) #filtroModelo,
        .clientes-container #filtroNome,
        .clientes-container #filtroStatus,
        .clientes-container #filtroTipo,
        .os-page #osSearchInput
    ) {
        background: var(--gc-input) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
        box-shadow: none !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .vendas-container #buscarNumeroVenda:focus,
        .main-content:has(#filtrosOrcamentos) #filtroBusca:focus,
        .main-content:has(#filtrosOrcamentos) #filtroModelo:focus,
        .clientes-container #filtroNome:focus,
        .clientes-container #filtroStatus:focus,
        .clientes-container #filtroTipo:focus,
        .os-page #osSearchInput:focus
    ) {
        border-color: rgba(36, 196, 231, .56) !important;
        box-shadow: 0 0 0 4px rgba(36, 196, 231, .12) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .vendas-container .radio-option:has(input:checked),
    html.gc-erp-online-theme.gc-dark-mode .main-content:has(#filtrosOrcamentos) .tab-switcher button.active {
        background: rgba(16, 185, 129, .16) !important;
        border-color: rgba(16, 185, 129, .32) !important;
        color: #a7f3d0 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .main-content:has(#filtrosOrcamentos) .tab-switcher button .badge-count {
        background: rgba(148, 163, 184, .16) !important;
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .main-content:has(#filtrosOrcamentos) .tab-switcher button.active .badge-count {
        background: rgba(16, 185, 129, .18) !important;
        color: #a7f3d0 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .main-content:has(#filtrosOrcamentos) .orcamento-card.selected {
        background: rgba(36, 196, 231, .08) !important;
        border-color: rgba(36, 196, 231, .28) !important;
        box-shadow: 0 0 0 2px rgba(36, 196, 231, .15) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .vendas-container .vendas-table thead,
        .os-page .data-table thead,
        .main-content:has(#filtrosOrcamentos) table thead,
        .clientes-table thead
    ) {
        background: var(--gc-dark-surface-soft) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .vendas-container .vendas-table th,
        .os-page .data-table th,
        .main-content:has(#filtrosOrcamentos) table th,
        .clientes-table th
    ) {
        background: transparent !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .vendas-container .vendas-table td,
        .os-page .data-table td,
        .main-content:has(#filtrosOrcamentos) table td,
        .clientes-table td
    ) {
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .vendas-container .vendas-table tbody tr:hover,
        .vendas-container .vendas-table tbody tr:hover td,
        .os-page .data-table tbody tr:hover,
        .os-page .data-table tbody tr:hover td,
        .main-content:has(#filtrosOrcamentos) table tbody tr:hover,
        .main-content:has(#filtrosOrcamentos) table tbody tr:hover td,
        .clientes-table tbody tr:hover,
        .clientes-table tbody tr:hover td
    ) {
        background: rgba(36, 196, 231, .08) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .os-page .os-search-box,
        .os-page .badge-venda,
        .os-page .badge-orcamento,
        .os-page .btn-copiar-numero,
        .os-page .status-select,
        .nf-opt:hover
    ) {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .os-page .os-search-box i {
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .main-content:has(#filtrosOrcamentos) .btn-excluir,
        .main-content:has(#filtrosOrcamentos) .btn-bulk-delete
    ) {
        background: var(--gc-dark-danger) !important;
        border-color: rgba(244, 63, 94, .28) !important;
        color: #fecdd3 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body.pos-body :where(
        .pos-search-section,
        .pos-carrinho-section,
        .pos-cliente-section,
        .pos-info-section,
        .pos-resumo-section
    ) {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body.pos-body :where(
        .pos-product-bar,
        .pos-carrinho-item,
        .pos-cliente-selecionado,
        .pos-resumo-desconto-card,
        .pos-pagamento-resumo,
        .pos-variante-item
    ) {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body.pos-body :where(
        .pos-category-filter,
        .pos-product-input,
        .pos-search-input,
        .pos-input,
        .pos-textarea,
        .pos-date-input,
        .pos-info-section input,
        .pos-info-section textarea,
        .pos-info-section select
    ) {
        background: var(--gc-input) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body.pos-body :where(
        .pos-btn-suspender,
        .pos-btn-cliente-rapido,
        .pos-btn-desconto,
        .pos-btn-limpar,
        .pos-btn-editar-variantes,
        .pos-qtd-btn,
        .pos-btn-remover-cliente
    ) {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body.pos-body .pos-resumo-total {
        background: rgba(36, 196, 231, .12) !important;
        border-color: rgba(36, 196, 231, .26) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body :where(
        [style*="background:#eff6ff"],
        [style*="background: #eff6ff"],
        [style*="background:#e0f2fe"],
        [style*="background: #e0f2fe"],
        [style*="background:#dbeafe"],
        [style*="background: #dbeafe"]
    ) {
        background: var(--gc-dark-info) !important;
        border-color: rgba(36, 196, 231, .24) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body :where(
        [style*="background:#fee2e2"],
        [style*="background: #fee2e2"]
    ) {
        background: var(--gc-dark-danger) !important;
        border-color: rgba(244, 63, 94, .28) !important;
    }

    /* Auditoria ampla das telas antigas: cobre familias inteiras, nao apenas paginas isoladas. */
    html.gc-erp-online-theme.gc-dark-mode :where(
        .filter-section,
        .filtros-panel,
        .controles-impressao,
        .empty-state,
        .produto-item,
        .sem-produtos,
        .autocomplete-list,
        .autocomplete-resultados,
        .modal-cliente,
        .modal-produto,
        .modal-categoria-produto,
        .item-card,
        .upload-area,
        .info-bar,
        .card-section,
        .descricao-texto,
        .totais-box,
        .relatorio-selecao,
        .tipo-card,
        .periodo-filtro,
        .relatorio-resultado,
        .caixa-lista,
        .caixa-lista-vazia,
        .caixa-item,
        .caixa-fechado,
        .caixa-footer,
        .grafico-card,
        .card-valores,
        .metric-box,
        .detalhes-wrapper,
        .meios-pagamento-page .content-card,
        .meios-pagamento-page .meio-pagamento-item,
        .reports-hub .rh-kpi,
        .reports-hub .rh-mini,
        .reports-hub .rh-panel,
        .reports-hub .rh-section,
        .reports-hub .rh-shortcuts,
        .reports-hub .rh-toolbar,
        .reports-hub .rh-nav,
        .reports-hub .rh-period-card,
        .fp .card,
        .fp .stat-card,
        .fp-modal,
        .cp-card,
        .cp-resultados-busca,
        .cp-resumo,
        .cp-item-footer,
        .cr-page .cr-resumo-card,
        .cr-page .cr-conta-card,
        .cr-page .cr-vinculos,
        .store-shell,
        .store-link-card,
        .store-card,
        .store-panel,
        .store-theme-option,
        .rp-card,
        .rp-list,
        .rp-table-wrap,
        .rp-body,
        .rp-row,
        .comissoes-header,
        .detail-toolbar,
        .detail-card,
        .agenda-modal,
        .agenda-sidebar,
        .agenda-mini-calendario,
        .proximo-item,
        .agenda-notas-section,
        .agenda-compromissos-section,
        .agenda-modal-pequeno,
        .agenda-notas-comp-wrap,
        .agenda-nota-comp-item
    ) {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .configuracoes-container :where(
        .tabs-container,
        .card-form,
        .card-list,
        .visual-panel,
        .backup-panel,
        .checkbox-wrapper,
        .permissao-item,
        .cor-opcao,
        .theme-card,
        .font-preview-sample,
        .auditoria-header,
        .usuarios-toolbar,
        .auditoria-toolbar,
        .stat-item,
        .backup-stat-card,
        .tabela-usuarios-container,
        .auditoria-table-container,
        .backup-saved-list,
        .meios-pagamento-container,
        .meio-pagamento-item,
        .brand-card,
        .licenca-info,
        .licenca-detalhes,
        .licenca-alterar-section,
        .licenca-card,
        .licenca-info-box,
        .cleanup-card,
        .progress-container
    ) {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .configuracoes-container :where(
        .tab-button,
        .font-scale-presets button,
        .btn-acao,
        .btn-cancelar,
        .btn-mini-acao,
        .btn-mini-perfil
    ),
    html.gc-erp-online-theme.gc-dark-mode :where(
        .pagination-btn,
        .pg-btn,
        .rh-link-btn,
        .rh-secondary-btn,
        .fp .btn-o,
        .fp .cn-item,
        .cp-btn-secundario,
        .btn-secondary,
        .item-action-btn,
        .btn-cancelar,
        .btn-limpar-filtros,
        .store-url,
        .store-btn:not(.primary):not(.success),
        .store-url button,
        .rp-btn:not(.rp-btn-main),
        .rp-link-btn,
        .rp-pill,
        .agenda-modo-select,
        .btn-nota-comp,
        .agenda-nota-comp-actions button,
        .agenda-footer .btn-cancelar
    ) {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .configuracoes-container input[type="file"]::file-selector-button {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .configuracoes-container :where(
        .logo-preview,
        .licenca-chave-display,
        .section-divider span,
        .backup-status-note,
        .status-box
    ),
    html.gc-erp-online-theme.gc-dark-mode :where(
        .etiqueta-layout-info,
        .cp-product-bar,
        .cp-tag-preco-tipo,
        .cp-carrinho-vazio,
        .rh-period-row,
        .rh-mini-grid,
        .rh-progress-track,
        .resumo-metrics,
        .tabela-toolbar,
        .detalhes-grid,
        .venda-detalhes,
        .venda-observacoes p
    ) {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .clientes-table tbody tr:hover td,
        .produtos-table tbody tr:hover td,
        .categorias-table tbody tr:hover td,
        .contas-container tbody tr:hover td,
        .valores-table tbody tr:hover td,
        .tabela-itens tbody tr:hover td,
        .tabela-vendas tbody tr:hover td,
        .reports-hub tbody tr:hover td,
        .fp tbody tr:hover td,
        .fp .tabs button:hover,
        .fp .cn-item:hover,
        .cp-resultados-busca .pos-resultado-item:hover,
        .autocomplete-item:hover,
        .pagination-btn:hover:not(:disabled),
        .pg-btn:hover:not(:disabled),
        .item-card:hover,
        .store-theme-option:hover,
        .rp-check:hover,
        .rp-row:hover,
        .busca-resultado-item:hover,
        .mini-cal-dia:hover
    ) {
        background: rgba(36, 196, 231, .08) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .clientes-table th,
        .produtos-table th,
        .categorias-table th,
        .contas-container th,
        .valores-table th,
        .tabela-itens th,
        .tabela-vendas th,
        .reports-hub th,
        .fp th
    ) {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-muted) !important;
    }

html.gc-erp-online-theme.gc-dark-mode :where(
    .clientes-table td,
    .produtos-table td,
        .categorias-table td,
        .contas-container td,
        .valores-table td,
        .tabela-itens td,
        .tabela-vendas td,
        .reports-hub td,
        .fp td
    ) {
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .store-field input,
        .store-field textarea,
        .rp-input,
        .agenda-notas-textarea
    ) {
        background: var(--gc-input) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .store-field input:focus,
        .store-field textarea:focus,
        .rp-input:focus,
        .agenda-notas-textarea:focus
    ) {
        background: #101c30 !important;
        border-color: rgba(36, 196, 231, .56) !important;
        box-shadow: 0 0 0 4px rgba(36, 196, 231, .12) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .comissoes-chip,
        .detail-summary-strip span,
        .rp-check,
        .store-theme-status,
        .store-theme-picker,
        .agenda-notas-comp-top,
        .agenda-notas-comp-lista,
        .agenda-footer
    ) {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .store-title,
        .store-field label,
        .rp-step,
        .rp-name strong,
        .mini-cal-header span,
        .proximo-item .titulo,
        .agenda-nota-comp-texto
    ) {
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .store-copy,
        .store-card span,
        .store-panel p,
        .rp-sidebar-copy,
        .rp-content-copy,
        .rp-note,
        .rp-name small,
        .proximo-item .hora,
        .agenda-nota-comp-meta
    ) {
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body:has(.store-page) {
        --store-ink: var(--gc-ink);
        --store-muted: var(--gc-muted);
        --store-soft: #0b1322;
        --store-card: rgba(17, 27, 45, .98);
        --store-card-strong: rgba(15, 25, 42, .98);
        --store-border: var(--gc-line);
        --store-shadow: 0 18px 36px rgba(0, 0, 0, .26);
    }

    html.gc-erp-online-theme.gc-dark-mode body:has(.store-page) .main-content {
        background:
            radial-gradient(circle at 12% 12%, rgba(36, 196, 231, .10), transparent 24rem),
            radial-gradient(circle at 82% 8%, rgba(245, 196, 0, .08), transparent 26rem),
            linear-gradient(135deg, #08111f 0%, #0b1322 100%) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body:has(.comissoes-page) {
        --cmk-ink: var(--gc-ink);
        --cmk-muted: var(--gc-muted);
        --cmk-line: var(--gc-line);
        --cmk-soft: #0b1322;
        --cmk-card: rgba(17, 27, 45, .96);
        background: linear-gradient(135deg, #08111f 0%, #0b1322 100%) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .rp-page {
        --rp-bg: #08111f;
        --rp-surface: rgba(17, 27, 45, .98);
        --rp-surface-muted: #0f192a;
        --rp-border: var(--gc-line);
        --rp-border-strong: rgba(148, 163, 184, .28);
        --rp-text: var(--gc-ink);
        --rp-muted: var(--gc-muted);
        --rp-primary: #dbeafe;
        --rp-primary-soft: rgba(36, 196, 231, .14);
        --rp-primary-soft-2: rgba(36, 196, 231, .10);
        background: var(--rp-bg) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body:has(.fp) {
        --fp-primary: #dbeafe;
        --fp-bg: #08111f;
        --fp-card: #111b2d;
        --fp-border: var(--gc-line);
        --fp-text: var(--gc-ink);
        --fp-muted: var(--gc-muted);
    }

    html.gc-erp-online-theme.gc-dark-mode body:has(.fp),
    html.gc-erp-online-theme.gc-dark-mode body:has(.fp) .main-content {
        background: var(--fp-bg) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body:has(.checkout-layout),
    html.gc-erp-online-theme.gc-dark-mode body:has(.payment-layout),
    html.gc-erp-online-theme.gc-dark-mode body:has(.modules-card),
    html.gc-erp-online-theme.gc-dark-mode body:has(.plans) {
        --page: #08111f;
        --panel: #111b2d;
        --ink: var(--gc-ink);
        --muted: var(--gc-muted);
        --line: var(--gc-line);
        --line-soft: rgba(148, 163, 184, .14);
        --cream: #0f192a;
        --cream-strong: #111b2d;
        --cyan-soft: rgba(36, 196, 231, .13);
        --green-soft: rgba(16, 185, 129, .14);
        --rose-soft: rgba(244, 63, 94, .14);
        --yellow-soft: rgba(245, 196, 0, .14);
        background:
            radial-gradient(circle at 12% 10%, rgba(36, 196, 231, .09), transparent 24rem),
            radial-gradient(circle at 86% 18%, rgba(245, 196, 0, .08), transparent 26rem),
            linear-gradient(180deg, #08111f 0%, #0b1322 100%) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .reports-hub .rh-alert,
        .fp .warning,
        .fp .alert-warning,
        .licenca-alert-info,
        .configuracoes-container .backup-status-note,
        .configuracoes-container .licenca-info-box
    ) {
        background: var(--gc-dark-info) !important;
        border-color: rgba(36, 196, 231, .24) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .badge-inativo,
        .badge-nenhum,
        .status-arquivado,
        .item-meta,
        .cp-carrinho-vazio,
        .pg-btn:disabled,
        .pagination-btn:disabled
    ) {
        background: rgba(148, 163, 184, .12) !important;
        border-color: rgba(148, 163, 184, .18) !important;
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .status-pendente,
        .entrega-status-os.badge-os-pedido,
        .status-select.status-pedido-recebido,
        .badge-pendente,
        .fp .badge.warn
    ) {
        background: var(--gc-dark-warning) !important;
        border-color: rgba(245, 158, 11, .28) !important;
        color: #fcd34d !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .status-aprovado,
        .status-convertido,
        .status-pago,
        .badge-ativo,
        .badge-pago,
        .entrega-status-os.badge-os-pronto
    ) {
        background: rgba(16, 185, 129, .14) !important;
        border-color: rgba(16, 185, 129, .24) !important;
        color: #a7f3d0 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode :where(
        .status-recusado,
        .badge-inativo.is-danger,
        .fp .badge.err
    ) {
        background: var(--gc-dark-danger) !important;
        border-color: rgba(244, 63, 94, .28) !important;
        color: #fecdd3 !important;
    }

    /* Endurecimento final: alguns templates antigos usam seletores proprios com !important.
       Estes seletores explicitos ficam no fim do arquivo para preservar o claro e fechar
       as sobras claras que escapavam da camada ampla baseada em :where(). */
    html.gc-erp-online-theme.gc-dark-mode .gc-topbar-tenant,
    html.gc-erp-online-theme.gc-dark-mode .header-date {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .main-content,
    html.gc-erp-online-theme.gc-dark-mode .clientes-container,
    html.gc-erp-online-theme.gc-dark-mode .produtos-container,
    html.gc-erp-online-theme.gc-dark-mode .contas-pagar-container,
    html.gc-erp-online-theme.gc-dark-mode .valores-receber-container,
    html.gc-erp-online-theme.gc-dark-mode .relatorios-container,
    html.gc-erp-online-theme.gc-dark-mode .etiquetas-container,
    html.gc-erp-online-theme.gc-dark-mode .cp-pos-container,
    html.gc-erp-online-theme.gc-dark-mode .pc-page,
    html.gc-erp-online-theme.gc-dark-mode .cr-page {
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .filtros-card,
    html.gc-erp-online-theme.gc-dark-mode .produtos-filters,
    html.gc-erp-online-theme.gc-dark-mode .filtros-toolbar,
    html.gc-erp-online-theme.gc-dark-mode .clientes-container .page-header,
    html.gc-erp-online-theme.gc-dark-mode .produtos-container .produtos-header,
    html.gc-erp-online-theme.gc-dark-mode .contas-pagar-container .page-header,
    html.gc-erp-online-theme.gc-dark-mode .valores-receber-container .page-header,
    html.gc-erp-online-theme.gc-dark-mode .configuracoes-container .page-header,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-hero,
    html.gc-erp-online-theme.gc-dark-mode .cp-header,
    html.gc-erp-online-theme.gc-dark-mode .pc-hero,
    html.gc-erp-online-theme.gc-dark-mode .produtos-selecionados,
    html.gc-erp-online-theme.gc-dark-mode .configuracao-etiqueta,
    html.gc-erp-online-theme.gc-dark-mode body.xml-page-body .masthead-copy,
    html.gc-erp-online-theme.gc-dark-mode body.xml-page-body .masthead-process,
    html.gc-erp-online-theme.gc-dark-mode body.xml-page-body .dock-panel,
    html.gc-erp-online-theme.gc-dark-mode body.xml-page-body .metric-card,
    html.gc-erp-online-theme.gc-dark-mode body.xml-page-body .file-stage,
    html.gc-erp-online-theme.gc-dark-mode body.xml-page-body .summary-box,
    html.gc-erp-online-theme.gc-dark-mode body.xml-page-body .detail-block,
    html.gc-erp-online-theme.gc-dark-mode .mobile-banner-admin-card,
    html.gc-erp-online-theme.gc-dark-mode .toggle-item,
    html.gc-erp-online-theme.gc-dark-mode .product-choice,
    html.gc-erp-online-theme.gc-dark-mode .store-shell,
    html.gc-erp-online-theme.gc-dark-mode .store-panel,
    html.gc-erp-online-theme.gc-dark-mode .store-card {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .reports-hub {
        --rh-ink: var(--gc-ink) !important;
        --rh-muted: var(--gc-muted) !important;
        --rh-line: var(--gc-line) !important;
        --rh-soft: var(--gc-dark-surface-soft) !important;
        --rh-card: var(--gc-dark-surface) !important;
        --rh-shadow: 0 16px 34px rgba(0, 0, 0, .24) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-period-card,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-kpi,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-mini,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-panel,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-section,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-shortcuts,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-toolbar,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-nav,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-empty,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-list > div,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-finance-balance {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-chip,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-secondary-btn,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-link-btn,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-nav a {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-period-row label,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-kpi span,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-mini span,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-hero p,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-muted {
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .pc-page {
        --pc-bg: var(--gc-dark-surface-strong) !important;
        --pc-card: var(--gc-dark-surface) !important;
        --pc-border: var(--gc-line) !important;
        --pc-text: var(--gc-ink) !important;
        --pc-muted: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .pc-hero-guide,
    html.gc-erp-online-theme.gc-dark-mode .pc-tabs,
    html.gc-erp-online-theme.gc-dark-mode .pc-stat-card,
    html.gc-erp-online-theme.gc-dark-mode .pc-card,
    html.gc-erp-online-theme.gc-dark-mode .pc-tabs button,
    html.gc-erp-online-theme.gc-dark-mode .pc-btn-muted,
    html.gc-erp-online-theme.gc-dark-mode .pc-btn-soft {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .pc-tabs button:not(.is-active),
    html.gc-erp-online-theme.gc-dark-mode .pc-btn-muted,
    html.gc-erp-online-theme.gc-dark-mode .pc-btn-soft {
        background: var(--gc-dark-surface-soft) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .pc-stat-highlight {
        background: linear-gradient(135deg, rgba(16, 185, 129, .14), rgba(36, 196, 231, .10)) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .pc-hero-main h1,
    html.gc-erp-online-theme.gc-dark-mode .pc-card-title h2,
    html.gc-erp-online-theme.gc-dark-mode .pc-stat-card strong,
    html.gc-erp-online-theme.gc-dark-mode .cp-header h1,
    html.gc-erp-online-theme.gc-dark-mode .configuracao-etiqueta-header h2,
    html.gc-erp-online-theme.gc-dark-mode .produtos-selecionados h2 {
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .pc-hero-main p,
    html.gc-erp-online-theme.gc-dark-mode .pc-quick-steps,
    html.gc-erp-online-theme.gc-dark-mode .pc-stat-card span,
    html.gc-erp-online-theme.gc-dark-mode .pc-stat-card small,
    html.gc-erp-online-theme.gc-dark-mode .cp-header p,
    html.gc-erp-online-theme.gc-dark-mode .configuracao-etiqueta-header p {
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .cp-card,
    html.gc-erp-online-theme.gc-dark-mode .cp-resultados-busca,
    html.gc-erp-online-theme.gc-dark-mode .cp-resumo,
    html.gc-erp-online-theme.gc-dark-mode .cp-item-footer,
    html.gc-erp-online-theme.gc-dark-mode .cp-carrinho-vazio {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .etiqueta-layout-info,
    html.gc-erp-online-theme.gc-dark-mode .cp-product-bar,
    html.gc-erp-online-theme.gc-dark-mode .cp-tag-preco-tipo,
    html.gc-erp-online-theme.gc-dark-mode .produto-item,
    html.gc-erp-online-theme.gc-dark-mode .sem-produtos {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .etiquetas-container .autocomplete-item {
        border-bottom-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .etiquetas-container :where(
        .produto-nome-autocomplete,
        .produto-nome
    ) {
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .etiquetas-container .produto-preco-autocomplete {
        color: #34d399 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .etiquetas-container .no-results {
        color: var(--gc-muted) !important;
    }

    @media screen {
        html.gc-erp-online-theme.gc-dark-mode body:not(.print-mode) #cupomContainer :where(
            .empresa,
            .info-box,
            .descricao,
            table,
            .totais,
            .footer,
            .total-row.destaque
        ) {
            background: var(--gc-dark-surface) !important;
            border-color: var(--gc-line) !important;
            color: var(--gc-ink) !important;
        }

        html.gc-erp-online-theme.gc-dark-mode body:not(.print-mode) #cupomContainer :where(
            .info-box,
            .descricao,
            .totais,
            thead,
            tbody tr:nth-child(even)
        ) {
            background: var(--gc-dark-surface-soft) !important;
        }

        html.gc-erp-online-theme.gc-dark-mode body:not(.print-mode) #cupomContainer :where(
            .header-left h1,
            .header-left .numero,
            .empresa h2,
            .info-box h3,
            .info-box p,
            .info-box strong,
            .descricao h4,
            .itens-section h3,
            th,
            td,
            .produto-nome,
            .total-row,
            .total-row.destaque,
            .footer strong
        ) {
            color: var(--gc-ink) !important;
        }

        html.gc-erp-online-theme.gc-dark-mode body:not(.print-mode) #cupomContainer :where(
            .empresa p,
            .descricao p,
            .produto-variantes,
            .footer p
        ) {
            color: var(--gc-muted) !important;
        }

        html.gc-erp-online-theme.gc-dark-mode body:not(.print-mode) #cupomContainer :where(
            .header,
            .empresa,
            .info-box,
            .descricao,
            table,
            th,
            td,
            .totais,
            .total-row,
            .footer
        ) {
            border-color: var(--gc-line) !important;
        }

        html.gc-erp-online-theme.gc-dark-mode body:not(.print-view) .itens-orcamento-section .itens-table th {
            background: var(--gc-dark-surface-soft) !important;
            border-color: var(--gc-line) !important;
            color: var(--gc-muted) !important;
        }

        html.gc-erp-online-theme.gc-dark-mode body:not(.print-view) .itens-orcamento-section .itens-table td {
            border-color: var(--gc-line) !important;
            color: var(--gc-ink) !important;
        }

        html.gc-erp-online-theme.gc-dark-mode body:not(.print-view) .itens-orcamento-section :where(
            .produto-nome,
            .valor-nowrap,
            .qtd-m2-cell
        ) {
            color: var(--gc-ink) !important;
        }

        html.gc-erp-online-theme.gc-dark-mode body:not(.print-view) .itens-orcamento-section :where(
            .variantes-info,
            .item-m2-meta
        ) {
            color: var(--gc-muted) !important;
        }
    }

    html.gc-erp-online-theme.gc-dark-mode .categoria-icon-preview,
    html.gc-erp-online-theme.gc-dark-mode .categoria-icon-option span,
    html.gc-erp-online-theme.gc-dark-mode .comissao-badge,
    html.gc-erp-online-theme.gc-dark-mode .comissao-config-box,
    html.gc-erp-online-theme.gc-dark-mode .badge-detalhe,
    html.gc-erp-online-theme.gc-dark-mode .cr-page .cr-conta-tipo,
    html.gc-erp-online-theme.gc-dark-mode .cr-page .cr-conta-actions button,
    html.gc-erp-online-theme.gc-dark-mode .upload-preview {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .comissao-badge.ativa,
    html.gc-erp-online-theme.gc-dark-mode .categoria-icon-preview {
        background: var(--gc-dark-info) !important;
        border-color: rgba(36, 196, 231, .24) !important;
        color: #7dd3fc !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .cr-page .btn-entrada,
    html.gc-erp-online-theme.gc-dark-mode .cr-page .cr-conta-actions button.btn-entrada {
        background: rgba(16, 185, 129, .14) !important;
        border-color: rgba(16, 185, 129, .24) !important;
        color: #a7f3d0 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .cr-page .btn-saida,
    html.gc-erp-online-theme.gc-dark-mode .cr-page .cr-conta-actions button.btn-saida {
        background: var(--gc-dark-danger) !important;
        border-color: rgba(244, 63, 94, .28) !important;
        color: #fecdd3 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
    html.gc-erp-online-theme.gc-dark-mode select,
    html.gc-erp-online-theme.gc-dark-mode textarea,
    html.gc-erp-online-theme.gc-dark-mode .cp-product-input,
    html.gc-erp-online-theme.gc-dark-mode .search-input,
    html.gc-erp-online-theme.gc-dark-mode .configuracao-etiqueta select,
    html.gc-erp-online-theme.gc-dark-mode .configuracao-etiqueta input,
    html.gc-erp-online-theme.gc-dark-mode .rh-period-row input {
        background: var(--gc-input) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .clientes-table thead,
    html.gc-erp-online-theme.gc-dark-mode .produtos-table thead,
    html.gc-erp-online-theme.gc-dark-mode .categorias-table thead,
    html.gc-erp-online-theme.gc-dark-mode .contas-table thead,
    html.gc-erp-online-theme.gc-dark-mode .valores-table thead,
    html.gc-erp-online-theme.gc-dark-mode .data-table thead,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-table thead,
    html.gc-erp-online-theme.gc-dark-mode body.xml-page-body thead {
        background: var(--gc-dark-surface-soft) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .clientes-table th,
    html.gc-erp-online-theme.gc-dark-mode .produtos-table th,
    html.gc-erp-online-theme.gc-dark-mode .categorias-table th,
    html.gc-erp-online-theme.gc-dark-mode .contas-table th,
    html.gc-erp-online-theme.gc-dark-mode .valores-table th,
    html.gc-erp-online-theme.gc-dark-mode .data-table th,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-table th,
    html.gc-erp-online-theme.gc-dark-mode body.xml-page-body th {
        background: transparent !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .clientes-table td,
    html.gc-erp-online-theme.gc-dark-mode .produtos-table td,
    html.gc-erp-online-theme.gc-dark-mode .categorias-table td,
    html.gc-erp-online-theme.gc-dark-mode .contas-table td,
    html.gc-erp-online-theme.gc-dark-mode .valores-table td,
    html.gc-erp-online-theme.gc-dark-mode .data-table td,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-table td,
    html.gc-erp-online-theme.gc-dark-mode body.xml-page-body td {
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .clientes-table tbody tr:hover td,
    html.gc-erp-online-theme.gc-dark-mode .produtos-table tbody tr:hover td,
    html.gc-erp-online-theme.gc-dark-mode .categorias-table tbody tr:hover td,
    html.gc-erp-online-theme.gc-dark-mode .contas-table tbody tr:hover td,
    html.gc-erp-online-theme.gc-dark-mode .valores-table tbody tr:hover td,
    html.gc-erp-online-theme.gc-dark-mode .data-table tbody tr:hover td,
    html.gc-erp-online-theme.gc-dark-mode .reports-hub .rh-table tbody tr:hover td,
    html.gc-erp-online-theme.gc-dark-mode body.xml-page-body tbody tr:hover td {
        background: rgba(36, 196, 231, .08) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .produtos-table .badge[style*="#e0e7ff"],
    html.gc-erp-online-theme.gc-dark-mode .produtos-table .badge[style*="#f3f4f6"],
    html.gc-erp-online-theme.gc-dark-mode .produtos-table .badge[style*="#fee2e2"],
    html.gc-erp-online-theme.gc-dark-mode .produtos-table .badge[style*="#fef3c7"],
    html.gc-erp-online-theme.gc-dark-mode .produtos-table .badge[style*="#dcfce7"] {
        border: 1px solid transparent !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .produtos-table .badge[style*="#e0e7ff"] {
        background: var(--gc-dark-info) !important;
        border-color: rgba(36, 196, 231, .24) !important;
        color: #7dd3fc !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .produtos-table .badge[style*="#f3f4f6"] {
        background: rgba(148, 163, 184, .12) !important;
        border-color: rgba(148, 163, 184, .18) !important;
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .produtos-table .badge[style*="#fee2e2"] {
        background: var(--gc-dark-danger) !important;
        border-color: rgba(244, 63, 94, .28) !important;
        color: #fecdd3 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .produtos-table .badge[style*="#fef3c7"] {
        background: var(--gc-dark-warning) !important;
        border-color: rgba(245, 158, 11, .28) !important;
        color: #fcd34d !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .produtos-table .badge[style*="#dcfce7"] {
        background: rgba(16, 185, 129, .14) !important;
        border-color: rgba(16, 185, 129, .24) !important;
        color: #a7f3d0 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo > div,
    html.gc-erp-online-theme.gc-dark-mode body.pos-body .pos-modal {
        background: var(--gc-dark-surface) !important;
        border: 1px solid var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo > div > div[style*="#fee2e2"],
    html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo > div > div[style*="#fecaca"] {
        background: var(--gc-dark-danger) !important;
        border-color: rgba(244, 63, 94, .28) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo h2,
    html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo h3,
    html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo h4 {
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo p,
    html.gc-erp-online-theme.gc-dark-mode #modalSelecaoTipo span {
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .assistant-page .chat-top-bar,
    html.gc-erp-online-theme.gc-dark-mode .assistant-page .chat-container,
    html.gc-erp-online-theme.gc-dark-mode .assistant-page .chat-input-bar,
    html.gc-erp-online-theme.gc-dark-mode .assistant-page .input-row,
    html.gc-erp-online-theme.gc-dark-mode .assistant-page .msg.bot .msg-bubble {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .assistant-page .chat-input-bar,
    html.gc-erp-online-theme.gc-dark-mode .assistant-page .input-row {
        background: var(--gc-dark-surface-soft) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .assistant-page .msg-meta,
    html.gc-erp-online-theme.gc-dark-mode .assistant-page .chat-top-bar p {
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body:has(.checkout-layout) .panel,
    html.gc-erp-online-theme.gc-dark-mode body:has(.payment-layout) .panel,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .panel,
    html.gc-erp-online-theme.gc-dark-mode body:has(.plans) .panel,
    html.gc-erp-online-theme.gc-dark-mode body:has(.checkout-layout) .summary,
    html.gc-erp-online-theme.gc-dark-mode body:has(.payment-layout) .summary,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .summary,
    html.gc-erp-online-theme.gc-dark-mode body:has(.plans) .summary,
    html.gc-erp-online-theme.gc-dark-mode body:has(.checkout-layout) .selected-card,
    html.gc-erp-online-theme.gc-dark-mode body:has(.payment-layout) .pay-head,
    html.gc-erp-online-theme.gc-dark-mode body:has(.payment-layout) .brick-card,
    html.gc-erp-online-theme.gc-dark-mode body:has(.payment-layout) .fallback,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .hero-card,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .section-card,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .modules-card,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .module-card,
    html.gc-erp-online-theme.gc-dark-mode body:has(.plans) .hero,
    html.gc-erp-online-theme.gc-dark-mode body:has(.plans) .plan-card,
    html.gc-erp-online-theme.gc-dark-mode body:has(.plans) .history {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body:has(.checkout-layout) .status-row,
    html.gc-erp-online-theme.gc-dark-mode body:has(.checkout-layout) .metric-card,
    html.gc-erp-online-theme.gc-dark-mode body:has(.checkout-layout) .safe-note,
    html.gc-erp-online-theme.gc-dark-mode body:has(.checkout-layout) .change-plan,
    html.gc-erp-online-theme.gc-dark-mode body:has(.checkout-layout) .option-row,
    html.gc-erp-online-theme.gc-dark-mode body:has(.payment-layout) .summary-row,
    html.gc-erp-online-theme.gc-dark-mode body:has(.payment-layout) .plan-switch,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .summary-card,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .history-row,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .due-row,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .price-line,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .next-box,
    html.gc-erp-online-theme.gc-dark-mode body:has(.plans) .history-row,
    html.gc-erp-online-theme.gc-dark-mode body:has(.plans) .plan-note {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body:has(.checkout-layout) .notice:not(.error),
    html.gc-erp-online-theme.gc-dark-mode body:has(.payment-layout) .trial-switch {
        background: var(--gc-dark-info) !important;
        border-color: rgba(36, 196, 231, .24) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body:has(.checkout-layout) .notice.error,
    html.gc-erp-online-theme.gc-dark-mode body:has(.payment-layout) .payment-status.error {
        background: var(--gc-dark-danger) !important;
        border-color: rgba(244, 63, 94, .28) !important;
        color: #fecdd3 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body:has(.checkout-layout) .status-pill,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .status-pill,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .due-pill,
    html.gc-erp-online-theme.gc-dark-mode body:has(.plans) .status-pill,
    html.gc-erp-online-theme.gc-dark-mode body:has(.plans) .plan-badge {
        background: var(--gc-dark-info) !important;
        border-color: rgba(36, 196, 231, .24) !important;
        color: #7dd3fc !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .status-pill.is-paid,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .due-pill.is-ok {
        background: rgba(16, 185, 129, .14) !important;
        border-color: rgba(16, 185, 129, .24) !important;
        color: #a7f3d0 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .status-pill.is-pending,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .due-pill.is-warning {
        background: var(--gc-dark-warning) !important;
        border-color: rgba(245, 158, 11, .28) !important;
        color: #fcd34d !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .status-pill.is-bad,
    html.gc-erp-online-theme.gc-dark-mode body:has(.checkout-layout) .status-pill.blocked {
        background: var(--gc-dark-danger) !important;
        border-color: rgba(244, 63, 94, .28) !important;
        color: #fecdd3 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body:has(.checkout-layout) .feature,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .benefits,
    html.gc-erp-online-theme.gc-dark-mode body:has(.plans) .features span,
    html.gc-erp-online-theme.gc-dark-mode body:has(.plans) .status-line,
    html.gc-erp-online-theme.gc-dark-mode body:has(.payment-layout) .muted,
    html.gc-erp-online-theme.gc-dark-mode body:has(.checkout-layout) .muted,
    html.gc-erp-online-theme.gc-dark-mode body:has(.layout) .muted,
    html.gc-erp-online-theme.gc-dark-mode body:has(.plans) .muted {
        color: var(--gc-muted) !important;
    }

    /* Fechamento do dark mode em componentes com CSS local mais especifico. */
    html.gc-erp-online-theme.gc-dark-mode .valores-receber-container .badge-vendas,
    html.gc-erp-online-theme.gc-dark-mode .valores-receber-container .badge-detalhe {
        background: var(--gc-dark-surface-soft) !important;
        border: 1px solid var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .modal-overlay-print .modal-print-content {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .modal-overlay-print .modal-print-header,
    html.gc-erp-online-theme.gc-dark-mode .modal-overlay-print .modal-print-body {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .modal-overlay-print .modal-print-header h2 {
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .modal-overlay-print .modal-print-body {
        padding: 1rem !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .modal-overlay-print .modal-print-body .relatorio-container {
        background: var(--gc-dark-surface-soft) !important;
        border: 1px solid var(--gc-line) !important;
        border-radius: 16px !important;
        color: var(--gc-ink) !important;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .28) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .modal-overlay-print .modal-print-body .relatorio-container :where(
        h1,
        h2,
        h3,
        p,
        span,
        strong,
        th,
        td,
        label
    ) {
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .modal-overlay-print .relatorio-container :where(
        .relatorio-header,
        .relatorio-resumo,
        .venda-container,
        .venda-header,
        .venda-detalhes,
        .venda-observacoes p,
        .resumo-total-item
    ) {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .modal-overlay-print .relatorio-container .tabela-itens thead {
        background: var(--gc-dark-surface) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .modal-overlay-print .relatorio-container .tabela-itens :where(th, td) {
        background: transparent !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .clientes-container .clientes-table :where(
        .badge-ativo,
        .badge[style*="dcfce7"]
    ),
    html.gc-erp-online-theme.gc-dark-mode .clientes-container .cliente-insights-modal .badge[style*="dcfce7"] {
        background: rgba(16, 185, 129, .14) !important;
        border: 1px solid rgba(16, 185, 129, .24) !important;
        color: #a7f3d0 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .clientes-container .clientes-table .badge-inativo,
    html.gc-erp-online-theme.gc-dark-mode .clientes-container .cliente-insights-modal .badge[style*="fee2e2"] {
        background: rgba(148, 163, 184, .12) !important;
        border: 1px solid rgba(148, 163, 184, .18) !important;
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .vendas-container #buscarNumeroVenda,
    html.gc-erp-online-theme.gc-dark-mode .vendas-container .btn-acoes,
    html.gc-erp-online-theme.gc-dark-mode .vendas-container .btn-nf-emitir,
    html.gc-erp-online-theme.gc-dark-mode .vendas-container .nf-dropdown,
    html.gc-erp-online-theme.gc-dark-mode .vendas-container .nf-opt {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .vendas-container .btn-acoes:hover,
    html.gc-erp-online-theme.gc-dark-mode .vendas-container .btn-nf-emitir:hover,
    html.gc-erp-online-theme.gc-dark-mode .vendas-container .nf-opt:hover {
        background: rgba(36, 196, 231, .10) !important;
        border-color: rgba(36, 196, 231, .28) !important;
        color: #7dd3fc !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .vendas-container .nf-badge-ok {
        background: rgba(16, 185, 129, .14) !important;
        border-color: rgba(16, 185, 129, .24) !important;
        color: #a7f3d0 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .vendas-container .status-chip--pago {
        background: rgba(16, 185, 129, .14) !important;
        border-color: rgba(16, 185, 129, .24) !important;
        color: #a7f3d0 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .vendas-container .status-chip--pendente {
        background: var(--gc-dark-warning) !important;
        border-color: rgba(245, 158, 11, .28) !important;
        color: #fcd34d !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .vendas-container .status-chip--cancelada {
        background: rgba(148, 163, 184, .12) !important;
        border-color: rgba(148, 163, 184, .18) !important;
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .vendas-container .pagamento-chip__icon {
        border: 1px solid transparent !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .vendas-container .pagamento-chip--pix .pagamento-chip__icon {
        background: rgba(16, 185, 129, .14) !important;
        border-color: rgba(16, 185, 129, .24) !important;
        color: #a7f3d0 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .vendas-container :where(
        .pagamento-chip--credito .pagamento-chip__icon,
        .pagamento-chip--debito .pagamento-chip__icon
    ) {
        background: var(--gc-dark-info) !important;
        border-color: rgba(36, 196, 231, .24) !important;
        color: #7dd3fc !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .vendas-container .pagamento-chip--dinheiro .pagamento-chip__icon {
        background: var(--gc-dark-warning) !important;
        border-color: rgba(245, 158, 11, .28) !important;
        color: #fcd34d !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .vendas-container .pagamento-chip--boleto .pagamento-chip__icon {
        background: rgba(167, 139, 250, .14) !important;
        border-color: rgba(167, 139, 250, .24) !important;
        color: #ddd6fe !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .vendas-container .pagamento-chip--outro .pagamento-chip__icon {
        background: rgba(148, 163, 184, .12) !important;
        border-color: rgba(148, 163, 184, .18) !important;
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body.xml-page-body :where(
        .btn-secondary,
        .btn-contrast,
        .btn-icon,
        .stage-chip
    ) {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body.xml-page-body :where(
        .btn-secondary:hover,
        .btn-contrast:hover,
        .btn-icon:hover
    ) {
        background: rgba(36, 196, 231, .10) !important;
        border-color: rgba(36, 196, 231, .28) !important;
        color: #7dd3fc !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .configuracoes-container :where(
        .theme-preset,
        .preview-card,
        .backup-card,
        .backup-info,
        .backup-history,
        .meios-pagamento-table,
        .modal-content,
        .modal-body,
        .modal-footer,
        .modal-permissoes .permissoes-section,
        .storage-default-option,
        .storage-cleanup-toolbar,
        .storage-cleanup-table,
        .licenca-valor,
        .usuario-tipo-badge
    ) {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .configuracoes-container :where(
        .meios-pagamento-table thead,
        .modal-header,
        .auditoria-table,
        .backup-history,
        .licenca-valor-vazio,
        .storage-default-option:hover:not(:disabled),
        .storage-default-option.is-active,
        .storage-empty,
        .btn-limpeza,
        .licenca-alert-info,
        .upload-section,
        .section-divider span
    ) {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .configuracoes-container :where(
        .meio-status.ativo,
        .usuario-status-chip.ativo,
        .status-ativo
    ) {
        background: rgba(16, 185, 129, .14) !important;
        border-color: rgba(16, 185, 129, .24) !important;
        color: #a7f3d0 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .configuracoes-container :where(
        .meio-status.inativo,
        .usuario-status-chip.inativo
    ) {
        background: var(--gc-dark-danger) !important;
        border-color: rgba(244, 63, 94, .28) !important;
        color: #fecdd3 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .configuracoes-container :where(
        .backup-card h3,
        .backup-history h3,
        .theme-preset strong,
        .licenca-valor,
        .usuario-tipo-badge
    ) {
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .configuracoes-container :where(
        .theme-preset small,
        .backup-card > p,
        .tips-list li,
        .section-description,
        .licenca-hint,
        .status-label,
        .preview-placeholder
    ) {
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .configuracoes-container :where(
        [style*="background:white"],
        [style*="background: white"],
        [style*="background:#fff"],
        [style*="background: #fff"],
        [style*="background:#ffffff"],
        [style*="background: #ffffff"]
    ) {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .gc-topbar-user-menu .gc-user-dropdown,
    html.gc-erp-online-theme.gc-dark-mode .gc-topbar-user-menu .gc-subscription-card,
    html.gc-erp-online-theme.gc-dark-mode .gc-topbar-user-menu .gc-storage-mini-card,
    html.gc-erp-online-theme.gc-dark-mode .gc-topbar-user-menu .gc-avatar-alerts-card {
        background: var(--gc-dark-surface) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .gc-topbar-user-menu :where(
        .gc-subscription-plan,
        .gc-storage-mini-head,
        .gc-storage-mini-row strong,
        .gc-avatar-alert-item strong
    ) {
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .gc-topbar-user-menu :where(
        .gc-subscription-meta,
        .gc-storage-mini-row,
        .gc-storage-mini-row span,
        .gc-storage-mini-foot,
        .gc-avatar-alert-item small
    ) {
        color: var(--gc-muted) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .gc-topbar-user-menu :where(
        .gc-subscription-action-outline,
        .gc-avatar-alert-read
    ) {
        background: var(--gc-dark-surface-soft) !important;
        border-color: var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .gc-topbar-user-menu .gc-avatar-alert-item {
        border-top-color: var(--gc-line) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .gc-topbar-user-menu .gc-avatar-alert-item:hover {
        background: rgba(36, 196, 231, .08) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .gc-topbar-user-menu .gc-avatar-alert-item > i {
        background: var(--gc-dark-info) !important;
        color: #7dd3fc !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .gc-topbar-user-menu .gc-avatar-alert-item.is-warning > i {
        background: var(--gc-dark-warning) !important;
        color: #fcd34d !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .gc-topbar-user-menu .gc-avatar-alert-item.is-danger > i {
        background: var(--gc-dark-danger) !important;
        color: #fecdd3 !important;
    }

    /* Previews e areas de impressao continuam papel branco de proposito. */
    html.gc-erp-online-theme.gc-dark-mode :where(
        .area-impressao,
        .area-print-only,
        .etiqueta,
        .etiqueta-shell,
        .etiqueta-inner,
        body.print-view
    ) {
        background: #fff !important;
        color: #101828 !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .etiquetas-container .area-impressao.area-preview {
        background: var(--gc-dark-surface) !important;
        border: 1px solid var(--gc-line) !important;
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .etiquetas-container .area-impressao.area-preview h2 {
        color: var(--gc-ink) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .etiquetas-container .area-impressao.area-preview #totalEtiquetas {
        color: var(--gc-muted) !important;
    }
}

/* Dashboard: cards de resumo organizados tambem no modo escuro. */
html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    min-height: 128px !important;
    padding: 0 !important;
    border-radius: 18px !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    background:
        radial-gradient(circle at 100% 100%, rgba(36, 196, 231, .07), transparent 7rem),
        linear-gradient(180deg, rgba(17, 27, 45, .98), rgba(13, 23, 40, .98)) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .24) !important;
    overflow: hidden !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card::before {
    display: none !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-heading {
    min-height: 38px !important;
    padding: .55rem .72rem .48rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(148, 163, 184, .14) !important;
    background: linear-gradient(135deg, rgba(245, 196, 0, .15), rgba(17, 27, 45, .58) 74%) !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:nth-child(2) .card-heading,
html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:nth-child(6) .card-heading {
    background: linear-gradient(135deg, rgba(16, 185, 129, .16), rgba(17, 27, 45, .58) 74%) !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:nth-child(3) .card-heading,
html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:nth-child(5) .card-heading {
    background: linear-gradient(135deg, rgba(34, 211, 238, .15), rgba(17, 27, 45, .58) 74%) !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:nth-child(4) .card-heading,
html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:nth-child(8) .card-heading {
    background: linear-gradient(135deg, rgba(216, 61, 150, .16), rgba(17, 27, 45, .58) 74%) !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:nth-child(7) .card-heading {
    background: linear-gradient(135deg, rgba(148, 163, 184, .13), rgba(245, 196, 0, .08) 72%) !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-heading h3,
html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card h3 {
    margin: 0 !important;
    max-width: 100% !important;
    color: #f8fafc !important;
    font-size: .72rem !important;
    font-weight: 950 !important;
    letter-spacing: .02em !important;
    line-height: 1.08 !important;
    text-transform: uppercase !important;
    overflow-wrap: anywhere !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-main {
    flex: 1 1 auto !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 50px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: .82rem !important;
    min-width: 0 !important;
    padding: .95rem 1rem 1rem !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    margin: 0 !important;
    border-radius: 17px !important;
    background: rgba(245, 196, 0, .13) !important;
    color: #fcd34d !important;
    border: 1px solid rgba(245, 196, 0, .24) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 22px rgba(0, 0, 0, .18) !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:nth-child(2) .card-icon,
html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:nth-child(6) .card-icon {
    background: rgba(16, 185, 129, .14) !important;
    color: #34d399 !important;
    border-color: rgba(16, 185, 129, .24) !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:nth-child(3) .card-icon,
html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:nth-child(5) .card-icon {
    background: rgba(34, 211, 238, .13) !important;
    color: #22d3ee !important;
    border-color: rgba(34, 211, 238, .24) !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:nth-child(4) .card-icon,
html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:nth-child(8) .card-icon {
    background: rgba(216, 61, 150, .14) !important;
    color: #f472b6 !important;
    border-color: rgba(216, 61, 150, .24) !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:nth-child(7) .card-icon {
    background: rgba(148, 163, 184, .13) !important;
    color: #cbd5e1 !important;
    border-color: rgba(148, 163, 184, .22) !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-icon i {
    font-size: 1.14rem !important;
    line-height: 1 !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-content {
    min-width: 0 !important;
    display: block !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-number {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    color: #f8fbff !important;
    font-size: 1.18rem !important;
    line-height: 1.04 !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    font-variant-numeric: tabular-nums !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-subtitle {
    display: block !important;
    max-width: 100% !important;
    margin: .18rem 0 0 !important;
    color: #b8c6d9 !important;
    font-size: .76rem !important;
    line-height: 1.16 !important;
    font-weight: 760 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(36, 196, 231, .32) !important;
    box-shadow: 0 22px 44px rgba(0, 0, 0, .30) !important;
}

@media (max-width: 1400px) {
    html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-main {
        grid-template-columns: 46px minmax(0, 1fr) !important;
        gap: .72rem !important;
        padding: .86rem .86rem .92rem !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-icon {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-number {
        font-size: 1.08rem !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-subtitle {
        font-size: .72rem !important;
    }
}

@media (max-width: 420px) {
    html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-main {
        grid-template-columns: 44px minmax(0, 1fr) !important;
    }

    html.gc-erp-online-theme.gc-dark-mode .dashboard-grid .card-icon {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }
}

/* Documentos impressos nunca herdam o modo escuro da interface. */
html.gc-erp-online-theme.gc-dark-mode body.print-view,
html.gc-erp-online-theme.gc-dark-mode body.print-view :where(
    .main-content,
    .detalhes-container,
    .container,
    .card-section,
    .orcamento-header-card,
    .descricao-texto,
    .totais-box,
    .print-section,
    .print-description,
    .print-total-panel,
    .print-item-card,
    .print-meta-panel
) {
    --gc-ink: #101828;
    --gc-muted: #667085;
    --gc-line: #d9e2ec;
    --gc-dark-surface: #ffffff;
    --gc-dark-surface-soft: #f8fafc;
    --gc-dark-surface-strong: #ffffff;
    --gc-input: #ffffff;
    --gc-dark-info: #eff6ff;
    --gc-dark-warning: #fef3c7;
    --gc-dark-danger: #fee2e2;
    color-scheme: light;
}

html.gc-erp-online-theme.gc-dark-mode body.print-view {
    background: #ffffff !important;
    background-image: none !important;
    color: #101828 !important;
}

html.gc-erp-online-theme.gc-dark-mode body.print-view::before,
html.gc-erp-online-theme.gc-dark-mode body.print-view::after,
html.gc-erp-online-theme.gc-dark-mode body.print-view .main-content::before,
html.gc-erp-online-theme.gc-dark-mode body.print-view .main-content::after {
    content: none !important;
    display: none !important;
}

@media print {
    html.gc-erp-online-theme.gc-dark-mode,
    html.gc-erp-online-theme.gc-print-light-mode {
        --gc-page: #ffffff;
        --gc-panel: #ffffff;
        --gc-ink: #101828;
        --gc-muted: #667085;
        --gc-line: #d9e2ec;
        --gc-input: #ffffff;
        --gc-dark-surface: #ffffff;
        --gc-dark-surface-soft: #f8fafc;
        --gc-dark-surface-strong: #ffffff;
        --gc-dark-info: #eff6ff;
        --gc-dark-warning: #fef3c7;
        --gc-dark-danger: #fee2e2;
        color-scheme: light !important;
    }

    html.gc-erp-online-theme.gc-dark-mode body,
    html.gc-erp-online-theme.gc-print-light-mode body {
        background: #ffffff !important;
        background-image: none !important;
        color: #101828 !important;
    }

    html.gc-erp-online-theme :where(
        body,
        .main-content,
        #cupomContainer,
        .container,
        footer,
        .footer
    ) {
        background: #ffffff !important;
        background-image: none !important;
        box-shadow: none !important;
    }

    html.gc-erp-online-theme body::before,
    html.gc-erp-online-theme body::after,
    html.gc-erp-online-theme .main-content::before,
    html.gc-erp-online-theme .main-content::after,
    html.gc-erp-online-theme #cupomContainer::before,
    html.gc-erp-online-theme #cupomContainer::after,
    html.gc-erp-online-theme .container::before,
    html.gc-erp-online-theme .container::after,
    html.gc-erp-online-theme footer::before,
    html.gc-erp-online-theme footer::after,
    html.gc-erp-online-theme .footer::before,
    html.gc-erp-online-theme .footer::after {
        content: none !important;
        display: none !important;
    }

    html.gc-erp-online-theme #cupomContainer .footer {
        background: #ffffff !important;
        background-image: none !important;
        border-top-color: #e2e8f0 !important;
        color: #64748b !important;
    }

    html.gc-erp-online-theme body.sale-receipt-page {
        display: block !important;
        width: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    html.gc-erp-online-theme body.sale-receipt-page .main-content {
        display: block !important;
        flex: none !important;
        width: auto !important;
        max-width: none !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    html.gc-erp-online-theme body.sale-receipt-page #cupomContainer {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }
}

@media screen {
    /* Final modal scroll guard: keep large edit forms usable on desktop and mobile. */
    html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: clamp(12px, 3vh, 28px) !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html.gc-erp-online-theme :where(
        .modal-overlay.active,
        .modal-overlay[style*="flex"],
        .modal-overlay[style*="block"],
        [class*="modal-overlay"].active,
        [class*="modal-overlay"][style*="flex"],
        [class*="modal-overlay"][style*="block"]
    ) {
        align-items: flex-start !important;
        justify-content: center !important;
    }

    html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(
        .modal,
        .modal-content,
        .modal-cliente,
        .modal-produto,
        .modal-categoria,
        .modal-conta,
        .modal-usuario,
        .modal-cupom,
        .modal-orcamento,
        .modal-venda,
        .modal-status-os,
        .modal-caixa,
        .modal-impressao,
        .modal-conta-recebimento,
        .pos-modal
    ) {
        display: flex !important;
        flex-direction: column !important;
        max-height: calc(100vh - 32px) !important;
        max-height: calc(100dvh - 32px) !important;
        min-height: 0 !important;
        overflow: hidden !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        top: auto !important;
        transform: none !important;
    }

    html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(.modal, .modal-cliente, .modal-venda, .modal-produto, .modal-content, .pos-modal) > form {
        display: flex !important;
        flex: 1 1 auto !important;
        flex-direction: column !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(.modal, .modal-cliente, .modal-venda, .modal-produto, .modal-content, .pos-modal) > :where(.modal-content, .modal-body, .pos-modal-body),
    html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(.modal, .modal-cliente, .modal-venda, .modal-produto, .modal-content, .pos-modal) > form > :where(.modal-content, .modal-body, .pos-modal-body),
    html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > .modal-cliente > form.modal-content {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-gutter: stable !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(.modal, .modal-cliente, .modal-venda, .modal-produto, .modal-content, .pos-modal) > :where(.modal-header, .pos-modal-header),
    html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(.modal, .modal-cliente, .modal-venda, .modal-produto, .modal-content, .pos-modal) > form > :where(.modal-header, .pos-modal-header),
    html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(.modal, .modal-cliente, .modal-venda, .modal-produto, .modal-content, .pos-modal) :where(.modal-footer, .form-actions, .pos-modal-footer),
    html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(.modal, .modal-cliente, .modal-venda, .modal-produto, .modal-content, .pos-modal) > form > :where(.modal-footer, .form-actions, .pos-modal-footer) {
        flex: 0 0 auto !important;
    }

    html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > .modal-content:not(:has(> .modal-content, > .modal-body, > .pos-modal-body)),
    html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > .modal > form:not(:has(> .modal-content, > .modal-body, > .pos-modal-body)),
    html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > .modal-content > form:not(:has(> .modal-content, > .modal-body, > .pos-modal-body)) {
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    @media (max-width: 768px) {
        html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) {
            padding: 0 !important;
            align-items: flex-end !important;
        }

        html.gc-erp-online-theme :where(.modal-overlay, [class*="modal-overlay"]) > :where(
            .modal,
            .modal-content,
            .modal-cliente,
            .modal-produto,
            .modal-categoria,
            .modal-conta,
            .modal-usuario,
            .modal-cupom,
            .modal-orcamento,
            .modal-venda,
            .modal-status-os,
            .modal-caixa,
            .modal-impressao,
            .modal-conta-recebimento,
            .pos-modal
        ) {
            width: 100% !important;
            max-width: 100% !important;
            max-height: 94vh !important;
            max-height: 94dvh !important;
            border-radius: 18px 18px 0 0 !important;
        }
    }

    /* Edit sale/budget/customer modals use a form wrapper; make the inner body scroll. */
    html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay {
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        padding: 16px !important;
    }

    html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay > .modal {
        display: grid !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        width: min(95vw, 1120px) !important;
        max-width: min(95vw, 1120px) !important;
        height: min(860px, calc(100vh - 32px)) !important;
        height: min(860px, calc(100dvh - 32px)) !important;
        max-height: calc(100vh - 32px) !important;
        max-height: calc(100dvh - 32px) !important;
        min-height: 0 !important;
        overflow: hidden !important;
        top: auto !important;
        transform: none !important;
    }

    html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay > .modal > form {
        display: grid !important;
        grid-template-rows: minmax(0, 1fr) auto !important;
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay > .modal > form > .modal-content {
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding-right: 1.25rem !important;
        scrollbar-gutter: stable !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay > .modal > form > .modal-footer {
        flex: none !important;
        min-height: 86px !important;
    }

    html.gc-erp-online-theme #modalCliente.modal-overlay {
        overflow: hidden !important;
        padding: 16px !important;
    }

    html.gc-erp-online-theme #modalCliente.modal-overlay > .modal-cliente {
        display: grid !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        height: min(780px, calc(100vh - 32px)) !important;
        height: min(780px, calc(100dvh - 32px)) !important;
        max-height: calc(100vh - 32px) !important;
        max-height: calc(100dvh - 32px) !important;
        margin: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        top: auto !important;
        transform: none !important;
    }

    html.gc-erp-online-theme #modalCliente.modal-overlay > .modal-cliente > form.modal-content {
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        scrollbar-gutter: stable !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    @media (max-width: 768px) {
        html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay,
        html.gc-erp-online-theme #modalCliente.modal-overlay {
            align-items: flex-end !important;
            padding: 0 !important;
        }

        html.gc-erp-online-theme :where(#modalEditarVenda, #modalEditarOrcamento).modal-overlay > .modal,
        html.gc-erp-online-theme #modalCliente.modal-overlay > .modal-cliente {
            width: 100% !important;
            max-width: 100% !important;
            height: 94vh !important;
            height: 94dvh !important;
            max-height: 94vh !important;
            max-height: 94dvh !important;
            border-radius: 18px 18px 0 0 !important;
        }
    }
}
