/* ══════════════════════════════════════════════════════════════════════════════════
   F&A SEGUROS — THEME LIGHT ENGINE (v5.2.0)
   Motor Moderno de Tema Claro: Elevação em Camadas, Respiro Visual & Alta Nitidez
   ══════════════════════════════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS — MODO CLARO
   ─────────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"],
body.theme-light {
    /* Cores de Fundo e Superfície */
    --bg-base: #f8fafc;
    --bg-subtle: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-surface-inset: #f8fafc;
    --bg-surface-hover: #f1f5f9;
    --bg-surface-active: #e2e8f0;

    /* Variáveis Globais de Compatibilidade */
    --bg: #f8fafc !important;
    --bg-color: #f8fafc !important;
    --card: #ffffff !important;
    --card-bg: #ffffff !important;
    --card-glass: rgba(255, 255, 255, 0.95) !important;
    --input-bg: #ffffff !important;
    --hover-bg: #f1f5f9 !important;
    --table-header-bg: #f1f5f9 !important;
    --table-row-border: #f1f5f9 !important;

    /* Tipografia e Contraste de Texto (WCAG AA & AAA) */
    --text: #0f172a !important;
    --text-color: #0f172a !important;
    --text-primary: #0f172a;
    --text-secondary: #1e293b;            /* Escurecido para Slate 800 */
    --text-muted: #475569 !important;      /* Escurecido para Slate 600 (+28% contraste) */
    --muted: #475569 !important;           /* Escurecido para Slate 600 */
    --text-tertiary: #475569;             /* Escurecido para Slate 500 */

    /* Bordas e Divisores Nítidos */
    --border: #cbd5e1 !important;          /* Escurecido para Slate 300 (1.55:1) */
    --border-color: #cbd5e1 !important;    /* Escurecido para Slate 300 */
    --border-strong: #94a3b8;             /* Slate 400 */
    --border-subtle: #e2e8f0;             /* Slate 200 */
    --border-focus: #2563eb;

    /* Cores de Destaque / Ação */
    --primary: #2563eb !important;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-border: #bfdbfe;
    --blue: #2563eb !important;
    --accent: #10b981 !important;

    /* Status Semânticos (Modo Claro de Alto Contraste) */
    --status-success-bg: #ecfdf5;
    --status-success-text: #065f46;
    --status-success-border: #a7f3d0;

    --status-warning-bg: #fffbeb;
    --status-warning-text: #92400e;
    --status-warning-border: #fde68a;

    --status-danger-bg: #fef2f2;
    --status-danger-text: #991b1b;
    --status-danger-border: #fecaca;

    --status-info-bg: #eff6ff;
    --status-info-text: #1e40af;
    --status-info-border: #bfdbfe;

    --status-purple-bg: #faf5ff;
    --status-purple-text: #6b21a8;
    --status-purple-border: #e9d5ff;

    --status-neutral-bg: #f1f5f9;
    --status-neutral-text: #334155;
    --status-neutral-border: #cbd5e1;

    /* ── SISTEMA DE ELEVAÇÃO E SOMBRAS EM CAMADAS ── */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    --shadow-card-hover: 0 10px 20px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -2px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.04);
    --shadow-elevated: 0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.04);
    --shadow-dropdown: 0 12px 28px -4px rgba(0, 0, 0, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.05);
    --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.18), 0 10px 20px -5px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06);

    /* Raios de Arredondamento */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-2xl: 24px;
}

/* ───────────────────────────────────────────────────────────────────────────────
   2. ESTRUTURA GERAL DA PÁGINA & RESPIRO VISUAL
   ─────────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] body,
body.theme-light {
    background-color: var(--bg-base) !important;
    color: var(--text-primary) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[data-theme="light"] .main-content,
body.theme-light .main-content {
    background-color: var(--bg-base) !important;
    color: var(--text-primary) !important;
    padding: 24px 32px 48px 32px !important;
    box-sizing: border-box;
}

/* ───────────────────────────────────────────────────────────────────────────────
   3. BARRA SUPERIOR (SECURITY / TASK BAR) & MENU LATERAL
   ─────────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] .security-bar,
body.theme-light .security-bar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.06), 0 1px 3px 0 rgba(0, 0, 0, 0.04) !important;
    color: var(--text-primary) !important;
}

html[data-theme="light"] #sidebar,
body.theme-light #sidebar {
    background: #ffffff !important;
    border-right: 1px solid var(--border) !important;
    box-shadow: 2px 0 12px 0 rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="light"] .sidebar .nav-category,
body.theme-light .sidebar .nav-category {
    color: #334155 !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em !important;
}

html[data-theme="light"] .sidebar .nav-item,
body.theme-light .sidebar .nav-item {
    color: #1e293b !important;
    font-weight: 600 !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 3px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

html[data-theme="light"] .sidebar .nav-item:hover,
body.theme-light .sidebar .nav-item:hover {
    background: var(--bg-subtle) !important;
    color: var(--primary) !important;
    transform: translateX(3px);
}

html[data-theme="light"] .sidebar .nav-item.active,
body.theme-light .sidebar .nav-item.active {
    background: #eff6ff !important;
    color: var(--primary) !important;
    font-weight: 800 !important;
    box-shadow: inset 3px 0 0 var(--primary), 0 2px 6px rgba(37, 99, 235, 0.08) !important;
}

/* ───────────────────────────────────────────────────────────────────────────────
   4. SISTEMA UNIVERSAL DE CARDS & ELEVAÇÃO COM SOMBRAS
   ─────────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] .card-glass,
html[data-theme="light"] .dashboard-card,
html[data-theme="light"] .portal-card,
html[data-theme="light"] .app-card,
html[data-theme="light"] .bento-card,
html[data-theme="light"] .isabel-hub-card,
html[data-theme="light"] .kpi-card,
html[data-theme="light"] .kpi-box,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .audit-table-wrapper,
html[data-theme="light"] .fin-card,
html[data-theme="light"] .agro-card,
html[data-theme="light"] .tr-card,
html[data-theme="light"] .doc-card,
body.theme-light .card-glass,
body.theme-light .dashboard-card,
body.theme-light .portal-card,
body.theme-light .app-card,
body.theme-light .bento-card,
body.theme-light .isabel-hub-card,
body.theme-light .kpi-card,
body.theme-light .kpi-box,
body.theme-light .stat-card,
body.theme-light .audit-table-wrapper,
body.theme-light .fin-card,
body.theme-light .agro-card,
body.theme-light .tr-card,
body.theme-light .doc-card {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-card) !important;
    color: var(--text-primary) !important;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease !important;
}

/* Hover Suave com Elevação */
html[data-theme="light"] .dashboard-card:hover,
html[data-theme="light"] .portal-card:hover,
html[data-theme="light"] .app-card:hover,
html[data-theme="light"] .bento-card:hover,
html[data-theme="light"] .stat-card:hover,
body.theme-light .dashboard-card:hover,
body.theme-light .portal-card:hover,
body.theme-light .app-card:hover,
body.theme-light .bento-card:hover,
body.theme-light .stat-card:hover {
    box-shadow: var(--shadow-card-hover) !important;
    border-color: #93c5fd !important;
    transform: translateY(-2px);
}

/* Grids de Cards com Respiro Confortável */
html[data-theme="light"] .dashboard-grid,
html[data-theme="light"] .bento-grid,
html[data-theme="light"] .kpi-grid,
body.theme-light .dashboard-grid,
body.theme-light .bento-grid,
body.theme-light .kpi-grid {
    gap: 20px !important;
    margin-bottom: 24px !important;
}

/* ───────────────────────────────────────────────────────────────────────────────
   5. KANBAN DO SUPER CRM — HIERARQUIA VISUAL E PROFUNDIDADE
   ─────────────────────────────────────────────────────────────────────────────── */
/* Colunas de Pipeline: Fundo contrastante cinza-claro com bordas nítidas */
html[data-theme="light"] .scrm-kanban-col,
html[data-theme="light"] .kanban-col,
html[data-theme="light"] .kanban-column,
body.theme-light .scrm-kanban-col,
body.theme-light .kanban-col,
body.theme-light .kanban-column {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--radius-xl) !important;
    padding: 16px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

html[data-theme="light"] .scrm-kanban-header,
body.theme-light .scrm-kanban-header {
    padding-bottom: 12px !important;
    margin-bottom: 14px !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

/* Cards de Negociação no Kanban: Fundo Branco Puro com Sombra e Margem Confortável */
html[data-theme="light"] .scrm-card,
html[data-theme="light"] .kanban-card,
body.theme-light .scrm-card,
body.theme-light .kanban-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--radius-md) !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

html[data-theme="light"] .scrm-card:hover,
html[data-theme="light"] .kanban-card:hover,
body.theme-light .scrm-card:hover,
body.theme-light .kanban-card:hover {
    background: #ffffff !important;
    border-color: #93c5fd !important;
    box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.04) !important;
    transform: translateY(-2px) !important;
}

html[data-theme="light"] .scrm-card-title,
body.theme-light .scrm-card-title {
    color: #0f172a !important;
    font-weight: 800 !important;
}

html[data-theme="light"] .scrm-card-client,
body.theme-light .scrm-card-client {
    color: #475569 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .scrm-card-metrics,
body.theme-light .scrm-card-metrics {
    border-top: 1px solid #f1f5f9 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: #f8fafc !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 10px !important;
    margin: 10px 0 !important;
}

html[data-theme="light"] .scrm-card-val,
body.theme-light .scrm-card-val {
    color: #047857 !important;
    font-weight: 800 !important;
}

html[data-theme="light"] .scrm-pill-warning,
body.theme-light .scrm-pill-warning {
    background: var(--status-warning-bg) !important;
    color: var(--status-warning-text) !important;
    border: 1px solid var(--status-warning-border) !important;
}

html[data-theme="light"] .scrm-pill-danger,
body.theme-light .scrm-pill-danger {
    background: var(--status-danger-bg) !important;
    color: var(--status-danger-text) !important;
    border: 1px solid var(--status-danger-border) !important;
}

html[data-theme="light"] .scrm-pill-success,
body.theme-light .scrm-pill-success {
    background: var(--status-success-bg) !important;
    color: var(--status-success-text) !important;
    border: 1px solid var(--status-success-border) !important;
}

html[data-theme="light"] .scrm-pill-info,
body.theme-light .scrm-pill-info {
    background: var(--status-info-bg) !important;
    color: var(--status-info-text) !important;
    border: 1px solid var(--status-info-border) !important;
}

/* Header Bar e Filtros do Super CRM */
html[data-theme="light"] .scrm-header-bar,
html[data-theme="light"] .scrm-filter-bar,
body.theme-light .scrm-header-bar,
body.theme-light .scrm-filter-bar {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-card) !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
}

/* ───────────────────────────────────────────────────────────────────────────────
   6. TABELAS OPERACIONAIS — RESPIRO, ZEBRA STRIPING & NITIDEZ
   ─────────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] table,
html[data-theme="light"] .audit-table,
html[data-theme="light"] .table-modern,
body.theme-light table,
body.theme-light .audit-table,
body.theme-light .table-modern {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
}

/* Theme defaults must not resize compact tables or embedded spreadsheet grids. */
:where(html[data-theme="light"], body.theme-light) :where(table) {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}
:where(html[data-theme="light"], body.theme-light) :where(th) {
    padding: 14px 18px;
    font-size: .82rem;
    font-weight: 600;
}
:where(html[data-theme="light"], body.theme-light) :where(td) {
    padding: 13px 18px;
    font-size: .88rem;
}

html[data-theme="light"] th,
html[data-theme="light"] .audit-table th,
body.theme-light th,
body.theme-light .audit-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

html[data-theme="light"] td,
html[data-theme="light"] .audit-table td,
body.theme-light td,
body.theme-light .audit-table td {
    color: #1e293b !important;
    border-bottom: 1px solid #e2e8f0 !important;
    transition: background 0.15s ease !important;
}

/* Zebra Striping Suave */
html[data-theme="light"] tbody tr:nth-child(even),
body.theme-light tbody tr:nth-child(even) {
    background-color: #fafafa !important;
}

/* Hover de Linha */
html[data-theme="light"] tbody tr:hover,
body.theme-light tbody tr:hover {
    background-color: #eff6ff !important;
}

/* ───────────────────────────────────────────────────────────────────────────────
   7. FORMULÁRIOS, INPUTS, SELECTS E BOTÕES
   ─────────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
html[data-theme="light"] select,
html[data-theme="light"] textarea,
html[data-theme="light"] .input-dark,
body.theme-light input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
body.theme-light select,
body.theme-light textarea,
body.theme-light .input-dark {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--radius-md) !important;
    /* Geometry belongs to the component: preserve icon gutters, compact
       controls, clear buttons and inline dimensions in both themes. */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s ease !important;
}

html[data-theme="light"] input:focus,
html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] .input-dark:focus,
body.theme-light input:focus,
body.theme-light select:focus,
body.theme-light textarea:focus,
body.theme-light .input-dark:focus {
    border-color: #2563eb !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15), 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

/* Low-specificity defaults never override a component or inline layout. */
:where(html[data-theme="light"], body.theme-light) :where(
    input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="hidden"]),
    select, textarea
) {
    padding: 10px 14px;
    font-size: .90rem;
}

/* Rótulos e Labels de Alta Legibilidade */
html[data-theme="light"] label,
html[data-theme="light"] .form-label,
html[data-theme="light"] .scrm-form-group label,
body.theme-light label,
body.theme-light .form-label,
body.theme-light .scrm-form-group label {
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.02em !important;
}

/* Botões Padrão com Elevação */
html[data-theme="light"] .btn-act,
body.theme-light .btn-act {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--radius-md) !important;
    padding: 9px 16px;
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

html[data-theme="light"] .btn-act:hover,
body.theme-light .btn-act:hover {
    background: #f1f5f9 !important;
    color: #2563eb !important;
    border-color: #93c5fd !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px);
}

/* Botões Primários */
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .btn-new,
body.theme-light .btn-primary,
body.theme-light .btn-new {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border: 1px solid #1d4ed8 !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.25), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .btn-primary:hover,
html[data-theme="light"] .btn-new:hover,
body.theme-light .btn-primary:hover,
body.theme-light .btn-new:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
    transform: translateY(-1px);
}

/* ───────────────────────────────────────────────────────────────────────────────
   8. MODAIS, DIALOGS E POPOVERS (PROFUNDIDADE MÁXIMA)
   ─────────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] dialog,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .modal-box,
html[data-theme="light"] .modal-container,
html[data-theme="light"] .swal2-popup,
body.theme-light dialog,
body.theme-light .modal-content,
body.theme-light .modal-box,
body.theme-light .modal-container,
body.theme-light .swal2-popup {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-modal) !important;
    color: #0f172a !important;
    /* Dialog headers/footers and compact editors define their own padding. */
}

html[data-theme="light"] dialog > div[style*="background:#0f172a"],
html[data-theme="light"] dialog > div[style*="background: #0f172a"],
html[data-theme="light"] dialog > div[style*="background:#1e293b"],
html[data-theme="light"] dialog > div[style*="background: #1e293b"],
body.theme-light dialog > div[style*="background:#0f172a"],
body.theme-light dialog > div[style*="background: #0f172a"],
body.theme-light dialog > div[style*="background:#1e293b"],
body.theme-light dialog > div[style*="background: #1e293b"] {
    background: #ffffff !important;
    color: #0f172a !important;
}

html[data-theme="light"] #modal-crop-avatar,
body.theme-light #modal-crop-avatar {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2) !important;
}

html[data-theme="light"] #modal-crop-avatar h3,
body.theme-light #modal-crop-avatar h3 {
    color: #0f172a !important;
}

html[data-theme="light"] #modal-crop-avatar .crop-bar,
body.theme-light #modal-crop-avatar .crop-bar {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

html[data-theme="light"] #modal-crop-avatar .crop-bar div[style*="color:#f1f5f9"],
body.theme-light #modal-crop-avatar .crop-bar div[style*="color:#f1f5f9"] {
    color: #0f172a !important;
}

html[data-theme="light"] dialog::backdrop,
html[data-theme="light"] .modal-backdrop,
body.theme-light dialog::backdrop,
body.theme-light .modal-backdrop {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(6px) !important;
}

html[data-theme="light"] .modal-header,
body.theme-light .modal-header {
    border-bottom: 2px solid #f1f5f9 !important;
    padding-bottom: 16px !important;
    margin-bottom: 20px !important;
}

html[data-theme="light"] .modal-footer,
body.theme-light .modal-footer {
    border-top: 2px solid #f1f5f9 !important;
    padding-top: 16px !important;
    margin-top: 24px !important;
}

/* SweetAlert2 no Modo Claro */
html[data-theme="light"] .swal2-title,
body.theme-light .swal2-title {
    color: #0f172a !important;
}
html[data-theme="light"] .swal2-html-container,
body.theme-light .swal2-html-container {
    color: #475569 !important;
}

/* ───────────────────────────────────────────────────────────────────────────────
   9. BADGES E STATUS PILLS DE ALTO CONTRASTE (WCAG AA)
   ─────────────────────────────────────────────────────────────────────────────── */
/* Sucesso (Vigente, Ativo, Concluído, Pago) */
html[data-theme="light"] .badge-success,
html[data-theme="light"] span[style*="rgba(16,185,129"],
html[data-theme="light"] span[style*="rgba(16, 185, 129"],
body.theme-light .badge-success,
body.theme-light span[style*="rgba(16,185,129"],
body.theme-light span[style*="rgba(16, 185, 129"] {
    background: var(--status-success-bg) !important;
    color: var(--status-success-text) !important;
    border: 1px solid var(--status-success-border) !important;
    font-weight: 700 !important;
}

/* Alerta / Atenção (Pendente, Em Aberto, Vencendo) */
html[data-theme="light"] .badge-warning,
html[data-theme="light"] span[style*="rgba(245,158,11"],
html[data-theme="light"] span[style*="rgba(245, 158, 11"],
body.theme-light .badge-warning,
body.theme-light span[style*="rgba(245,158,11"],
body.theme-light span[style*="rgba(245, 158, 11"] {
    background: var(--status-warning-bg) !important;
    color: var(--status-warning-text) !important;
    border: 1px solid var(--status-warning-border) !important;
    font-weight: 700 !important;
}

/* Perigo / Erro (Cancelado, Sinistro, Demitido) */
html[data-theme="light"] .badge-danger,
html[data-theme="light"] span[style*="rgba(239,68,68"],
html[data-theme="light"] span[style*="rgba(239, 68, 68"],
body.theme-light .badge-danger,
body.theme-light span[style*="rgba(239,68,68"],
body.theme-light span[style*="rgba(239, 68, 68"] {
    background: var(--status-danger-bg) !important;
    color: var(--status-danger-text) !important;
    border: 1px solid var(--status-danger-border) !important;
    font-weight: 700 !important;
}

/* Informativo / Proposta (Azul) */
html[data-theme="light"] .badge-info,
html[data-theme="light"] span[style*="rgba(59,130,246"],
html[data-theme="light"] span[style*="rgba(59, 130, 246"],
body.theme-light .badge-info,
body.theme-light span[style*="rgba(59,130,246"],
body.theme-light span[style*="rgba(59, 130, 246"] {
    background: var(--status-info-bg) !important;
    color: var(--status-info-text) !important;
    border: 1px solid var(--status-info-border) !important;
    font-weight: 700 !important;
}

/* Roxo / Renovada / Prospecção */
html[data-theme="light"] span[style*="rgba(168,85,247"],
html[data-theme="light"] span[style*="rgba(168, 85, 247"],
html[data-theme="light"] span[style*="rgba(99,102,241"],
html[data-theme="light"] span[style*="rgba(99, 102, 241"],
body.theme-light span[style*="rgba(168,85,247"],
body.theme-light span[style*="rgba(168, 85, 247"],
body.theme-light span[style*="rgba(99,102,241"],
body.theme-light span[style*="rgba(99, 102, 241"] {
    background: var(--status-purple-bg) !important;
    color: var(--status-purple-text) !important;
    border: 1px solid var(--status-purple-border) !important;
    font-weight: 700 !important;
}

/* ───────────────────────────────────────────────────────────────────────────────
   10. ABAS E NAVEGAÇÕES INTERNAS
   ─────────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] .tab-btn,
html[data-theme="light"] .subnav-btn,
html[data-theme="light"] .cfg-tab-btn,
html[data-theme="light"] .db-subtab-btn,
html[data-theme="light"] .sys-email-tab-btn,
html[data-theme="light"] .gov-tab-btn,
html[data-theme="light"] .frotas-tab-btn,
html[data-theme="light"] .abast-tab-btn,
html[data-theme="light"] .qualidade-tab-btn,
html[data-theme="light"] .rom-tab-btn,
html[data-theme="light"] .agro-vendas-tab-btn,
html[data-theme="light"] .agro-tab-btn,
html[data-theme="light"] .scrm-tab-btn,
html[data-theme="light"] .prosp-tab,
body.theme-light .tab-btn,
body.theme-light .subnav-btn,
body.theme-light .cfg-tab-btn,
body.theme-light .db-subtab-btn,
body.theme-light .sys-email-tab-btn,
body.theme-light .gov-tab-btn,
body.theme-light .frotas-tab-btn,
body.theme-light .abast-tab-btn,
body.theme-light .qualidade-tab-btn,
body.theme-light .rom-tab-btn,
body.theme-light .agro-vendas-tab-btn,
body.theme-light .agro-tab-btn,
body.theme-light .scrm-tab-btn,
body.theme-light .prosp-tab {
    color: #334155 !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
    border-bottom: 3px solid transparent !important;
}

html[data-theme="light"] .tab-btn:hover,
html[data-theme="light"] .subnav-btn:hover,
html[data-theme="light"] .cfg-tab-btn:hover,
html[data-theme="light"] .db-subtab-btn:hover,
html[data-theme="light"] .sys-email-tab-btn:hover,
html[data-theme="light"] .gov-tab-btn:hover,
html[data-theme="light"] .frotas-tab-btn:hover,
html[data-theme="light"] .abast-tab-btn:hover,
html[data-theme="light"] .qualidade-tab-btn:hover,
html[data-theme="light"] .rom-tab-btn:hover,
html[data-theme="light"] .agro-vendas-tab-btn:hover,
html[data-theme="light"] .agro-tab-btn:hover,
html[data-theme="light"] .scrm-tab-btn:hover,
html[data-theme="light"] .prosp-tab:hover,
body.theme-light .tab-btn:hover,
body.theme-light .subnav-btn:hover,
body.theme-light .cfg-tab-btn:hover,
body.theme-light .db-subtab-btn:hover,
body.theme-light .sys-email-tab-btn:hover,
body.theme-light .gov-tab-btn:hover,
body.theme-light .frotas-tab-btn:hover,
body.theme-light .abast-tab-btn:hover,
body.theme-light .qualidade-tab-btn:hover,
body.theme-light .rom-tab-btn:hover,
body.theme-light .agro-vendas-tab-btn:hover,
body.theme-light .agro-tab-btn:hover,
body.theme-light .scrm-tab-btn:hover,
body.theme-light .prosp-tab:hover {
    color: #1d4ed8 !important;
    background: #f1f5f9 !important;
}

html[data-theme="light"] .tab-btn.active,
html[data-theme="light"] .subnav-btn.active,
html[data-theme="light"] .cfg-tab-btn.active,
html[data-theme="light"] .db-subtab-btn.active,
html[data-theme="light"] .sys-email-tab-btn.active,
html[data-theme="light"] .gov-tab-btn.active,
html[data-theme="light"] .frotas-tab-btn.active,
html[data-theme="light"] .abast-tab-btn.active,
html[data-theme="light"] .qualidade-tab-btn.active,
html[data-theme="light"] .rom-tab-btn.active,
html[data-theme="light"] .agro-vendas-tab-btn.active,
html[data-theme="light"] .agro-tab-btn.active,
html[data-theme="light"] .scrm-tab-btn.active,
html[data-theme="light"] .prosp-tab.active,
body.theme-light .tab-btn.active,
body.theme-light .subnav-btn.active,
body.theme-light .cfg-tab-btn.active,
body.theme-light .db-subtab-btn.active,
body.theme-light .sys-email-tab-btn.active,
body.theme-light .gov-tab-btn.active,
body.theme-light .frotas-tab-btn.active,
body.theme-light .abast-tab-btn.active,
body.theme-light .qualidade-tab-btn.active,
body.theme-light .rom-tab-btn.active,
body.theme-light .agro-vendas-tab-btn.active,
body.theme-light .agro-tab-btn.active,
body.theme-light .scrm-tab-btn.active,
body.theme-light .prosp-tab.active {
    color: #1d4ed8 !important;
    border-bottom: 3px solid #2563eb !important;
    background: #eff6ff !important;
    font-weight: 800 !important;
}

/* Pills de Filtro e Abas em Formato de Cápsula (Bento Pills, Usuários Pills, Margem Pills) */
html[data-theme="light"] .bento-pill,
html[data-theme="light"] .users-tab-pill-btn,
html[data-theme="light"] .btn-margem-pill,
body.theme-light .bento-pill,
body.theme-light .users-tab-pill-btn,
body.theme-light .btn-margem-pill {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

html[data-theme="light"] .bento-pill:hover,
html[data-theme="light"] .users-tab-pill-btn:hover,
html[data-theme="light"] .btn-margem-pill:hover,
body.theme-light .bento-pill:hover,
body.theme-light .users-tab-pill-btn:hover,
body.theme-light .btn-margem-pill:hover {
    background: #f8fafc !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
    transform: translateY(-1px);
}

html[data-theme="light"] .bento-pill.active,
html[data-theme="light"] .users-tab-pill-btn.active,
html[data-theme="light"] .btn-margem-pill.active,
body.theme-light .bento-pill.active,
body.theme-light .users-tab-pill-btn.active,
body.theme-light .btn-margem-pill.active {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    color: #1d4ed8 !important;
    font-weight: 800 !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.15) !important;
}

/* ───────────────────────────────────────────────────────────────────────────────
   11. APEXCHARTS NO MODO CLARO
   ─────────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] .apexcharts-tooltip,
body.theme-light .apexcharts-tooltip {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
    border-radius: var(--radius-md) !important;
}

html[data-theme="light"] .apexcharts-tooltip-title,
body.theme-light .apexcharts-tooltip-title {
    background: #f8fafc !important;
    border-bottom: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .apexcharts-text,
body.theme-light .apexcharts-text {
    fill: #475569 !important;
}

html[data-theme="light"] .apexcharts-gridline,
body.theme-light .apexcharts-gridline {
    stroke: #f1f5f9 !important;
}

/* ───────────────────────────────────────────────────────────────────────────────
   12. NEUTRALIZAÇÃO DE ESTILOS INLINE ESCUROS RESIDUAIS EM MÓDULOS ESPECÍFICOS
   ─────────────────────────────────────────────────────────────────────────────── */

/* 12.1 Contratos Agro, Vendas & Silagem */
html[data-theme="light"] #view-contratos-agro .dashboard-card,
html[data-theme="light"] #view-contratos-agro [style*="background:#1e293b"],
html[data-theme="light"] #view-contratos-agro [style*="background: #1e293b"],
html[data-theme="light"] #view-contratos-agro [style*="background:#0f172a"],
html[data-theme="light"] #view-contratos-agro [style*="background: #0f172a"],
html[data-theme="light"] #view-silagem .dashboard-card,
html[data-theme="light"] #view-silagem [style*="background:#1e293b"],
html[data-theme="light"] #view-silagem [style*="background:#0f172a"],
html[data-theme="light"] #view-agro-vendas .dashboard-card,
html[data-theme="light"] #view-agro-vendas [style*="background:#1e293b"],
html[data-theme="light"] #view-agro-vendas [style*="background:#0f172a"],
body.theme-light #view-contratos-agro .dashboard-card,
body.theme-light #view-contratos-agro [style*="background:#1e293b"],
body.theme-light #view-contratos-agro [style*="background: #1e293b"],
body.theme-light #view-contratos-agro [style*="background:#0f172a"],
body.theme-light #view-contratos-agro [style*="background: #0f172a"],
body.theme-light #view-silagem .dashboard-card,
body.theme-light #view-silagem [style*="background:#1e293b"],
body.theme-light #view-silagem [style*="background:#0f172a"],
body.theme-light #view-agro-vendas .dashboard-card,
body.theme-light #view-agro-vendas [style*="background:#1e293b"],
body.theme-light #view-agro-vendas [style*="background:#0f172a"] {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: var(--shadow-card) !important;
}

html[data-theme="light"] #view-contratos-agro [style*="color:#fff"],
html[data-theme="light"] #view-contratos-agro [style*="color: #fff"],
html[data-theme="light"] #view-contratos-agro [style*="color:#cbd5e1"],
html[data-theme="light"] #view-contratos-agro [style*="color: #cbd5e1"],
body.theme-light #view-contratos-agro [style*="color:#fff"],
body.theme-light #view-contratos-agro [style*="color: #fff"],
body.theme-light #view-contratos-agro [style*="color:#cbd5e1"],
body.theme-light #view-contratos-agro [style*="color: #cbd5e1"] {
    color: #1e293b !important;
}

/* 12.2 Abastecimento, Bombas & Postos */
html[data-theme="light"] #view-abastecimento .dashboard-card,
html[data-theme="light"] #view-abastecimento [style*="background:#0b132b"],
html[data-theme="light"] #view-abastecimento [style*="background: #0b132b"],
html[data-theme="light"] #view-abastecimento [style*="background:#1e293b"],
html[data-theme="light"] #view-abastecimento [style*="background: #1e293b"],
body.theme-light #view-abastecimento .dashboard-card,
body.theme-light #view-abastecimento [style*="background:#0b132b"],
body.theme-light #view-abastecimento [style*="background: #0b132b"],
body.theme-light #view-abastecimento [style*="background:#1e293b"],
body.theme-light #view-abastecimento [style*="background: #1e293b"] {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: var(--shadow-card) !important;
}

/* 12.3 Isabel I.A & Chat */
html[data-theme="light"] #view-ai .dashboard-card,
html[data-theme="light"] #view-ai [style*="background:#0f172a"],
html[data-theme="light"] #view-ai [style*="background: #0f172a"],
html[data-theme="light"] #view-ai [style*="background:#1e293b"],
html[data-theme="light"] #view-ai [style*="background: #1e293b"],
body.theme-light #view-ai .dashboard-card,
body.theme-light #view-ai [style*="background:#0f172a"],
body.theme-light #view-ai [style*="background: #0f172a"],
body.theme-light #view-ai [style*="background:#1e293b"],
body.theme-light #view-ai [style*="background: #1e293b"] {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: var(--shadow-card) !important;
}

html[data-theme="light"] #view-ai .ai-msg-assistant,
body.theme-light #view-ai .ai-msg-assistant {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: var(--shadow-xs) !important;
}

html[data-theme="light"] #view-ai .ai-msg-user,
body.theme-light #view-ai .ai-msg-user {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    color: #1e3a8a !important;
}

/* 12.4 Configurações do Sistema & Gestão de Usuários */
html[data-theme="light"] #view-apps-config .dashboard-card,
html[data-theme="light"] #view-apps-config [style*="background:#1e293b"],
html[data-theme="light"] #view-apps-config [style*="background: #1e293b"],
html[data-theme="light"] #view-apps-config [style*="background:#0f172a"],
html[data-theme="light"] #view-apps-config [style*="background: #0f172a"],
body.theme-light #view-apps-config .dashboard-card,
body.theme-light #view-apps-config [style*="background:#1e293b"],
body.theme-light #view-apps-config [style*="background: #1e293b"],
body.theme-light #view-apps-config [style*="background:#0f172a"],
body.theme-light #view-apps-config [style*="background: #0f172a"] {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: var(--shadow-card) !important;
}

/* 12.5 Operacional de Seguros (Código SUSEP e Badges) */
html[data-theme="light"] #view-op-apolices span[style*="background:#1e293b"],
body.theme-light #view-op-apolices span[style*="background:#1e293b"] {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}

/* 12.6 Ponto Eletrônico & Holerites */
html[data-theme="light"] #view-ponto .dashboard-card,
html[data-theme="light"] #view-ponto-admin .dashboard-card,
html[data-theme="light"] #view-holerites-user .dashboard-card,
html[data-theme="light"] #view-holerites-admin .dashboard-card,
body.theme-light #view-ponto .dashboard-card,
body.theme-light #view-ponto-admin .dashboard-card,
body.theme-light #view-holerites-user .dashboard-card,
body.theme-light #view-holerites-admin .dashboard-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: var(--shadow-card) !important;
}

/* ───────────────────────────────────────────────────────────────────────────────
   13. SCROLLBARS ELEGANTES NO MODO CLARO
   ─────────────────────────────────────────────────────────────────────────────── */
html[data-theme="light"] ::-webkit-scrollbar,
body.theme-light ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

html[data-theme="light"] ::-webkit-scrollbar-track,
body.theme-light ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb,
body.theme-light ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover,
body.theme-light ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ───────────────────────────────────────────────────────────────────────────────
   14. SELETOR DE AMBIENTES (WORKSPACE SELECTOR), LOGIN BOOT & TRANSIÇÃO NO MODO CLARO
   ─────────────────────────────────────────────────────────────────────────────── */
#boot-overlay,
#welcome-overlay,
html[data-theme="light"] #boot-overlay,
html[data-theme="light"] #welcome-overlay,
body.theme-light #boot-overlay,
body.theme-light #welcome-overlay {
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.10) 0%, transparent 48%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.09) 0%, transparent 48%),
        radial-gradient(ellipse at center, #ffffff 0%, #f8fafc 65%, #e2e8f0 100%) !important;
    color: #0f172a !important;
}

#boot-overlay .boot-content,
#welcome-overlay .welcome-content,
html[data-theme="light"] #boot-overlay .boot-content,
html[data-theme="light"] #welcome-overlay .welcome-content,
body.theme-light #boot-overlay .boot-content,
body.theme-light #welcome-overlay .welcome-content {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1.5px solid rgba(203, 213, 225, 0.95) !important;
    box-shadow: 0 28px 65px -15px rgba(15, 23, 42, 0.13), 0 10px 25px -10px rgba(37, 99, 235, 0.08) !important;
}

#boot-overlay .boot-title,
#welcome-overlay .welcome-name,
#welcome-overlay #welcome-user-target {
    color: #0f172a !important;
}

#boot-overlay .boot-log,
#welcome-overlay .welcome-sub {
    color: #475569 !important;
}

#workspace-selector-overlay,
html[data-theme="light"] #workspace-selector-overlay,
body.theme-light #workspace-selector-overlay {
    background:
        radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 82% 82%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
        rgba(241, 245, 249, 0.84) !important;
    backdrop-filter: blur(22px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
}

#workspace-selector-title,
#workspace-selector-overlay h2,
html[data-theme="light"] #workspace-selector-title,
html[data-theme="light"] #workspace-selector-overlay h2,
body.theme-light #workspace-selector-title,
body.theme-light #workspace-selector-overlay h2 {
    color: #0f172a !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9) !important;
    font-weight: 800 !important;
}

#workspace-selector-footer-text,
#workspace-selector-overlay > div > p,
html[data-theme="light"] #workspace-selector-overlay > div > p,
body.theme-light #workspace-selector-overlay > div > p {
    color: #475569 !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8) !important;
    font-weight: 600 !important;
}

#btn-close-workspace-selector,
html[data-theme="light"] #btn-close-workspace-selector,
body.theme-light #btn-close-workspace-selector {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
}

#btn-close-workspace-selector:hover,
html[data-theme="light"] #btn-close-workspace-selector:hover,
body.theme-light #btn-close-workspace-selector:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
}

#unit-transition-overlay,
html[data-theme="light"] #unit-transition-overlay,
body.theme-light #unit-transition-overlay {
    background:
        radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 45%),
        rgba(248, 250, 252, 0.88) !important;
    backdrop-filter: blur(26px) saturate(170%) !important;
    -webkit-backdrop-filter: blur(26px) saturate(170%) !important;
}

.unit-transition-card,
html[data-theme="light"] .unit-transition-card,
body.theme-light .unit-transition-card {
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1.5px solid rgba(203, 213, 225, 0.95) !important;
    box-shadow: 0 28px 65px -15px rgba(15, 23, 42, 0.14), 0 10px 25px -10px rgba(37, 99, 235, 0.09) !important;
}

#unit-transition-title,
html[data-theme="light"] #unit-transition-title,
body.theme-light #unit-transition-title {
    color: #0f172a !important;
}

#unit-transition-sub,
html[data-theme="light"] #unit-transition-sub,
body.theme-light #unit-transition-sub {
    color: #475569 !important;
}

/* ───────────────────────────────────────────────────────────────────────────────
   15. VENDAS FRENTE (AGRO), ALERTAS OPERACIONAIS E DIALOGS DE PREÇOS (ALTO CONTRASTE)
   ─────────────────────────────────────────────────────────────────────────────── */

/* 15.1 Alertas Universais do Sistema (Warning, Danger, Success, Info) */
html[data-theme="light"] .agro-warning-alert,
html[data-theme="light"] #mconf-alerta-bloqueio,
html[data-theme="light"] div[style*="rgba(234,179,8"],
html[data-theme="light"] div[style*="rgba(234, 179, 8"],
body.theme-light .agro-warning-alert,
body.theme-light #mconf-alerta-bloqueio,
body.theme-light div[style*="rgba(234,179,8"],
body.theme-light div[style*="rgba(234, 179, 8"] {
    background: #fefce8 !important;
    border: 1.5px solid #facc15 !important;
    color: #713f12 !important;
}
html[data-theme="light"] .agro-warning-alert *,
html[data-theme="light"] #mconf-alerta-bloqueio *,
html[data-theme="light"] div[style*="rgba(234,179,8"] *,
html[data-theme="light"] div[style*="rgba(234, 179, 8"] *,
body.theme-light .agro-warning-alert *,
body.theme-light #mconf-alerta-bloqueio *,
body.theme-light div[style*="rgba(234,179,8"] *,
body.theme-light div[style*="rgba(234, 179, 8"] * {
    color: #713f12 !important;
}
html[data-theme="light"] .agro-warning-alert i,
html[data-theme="light"] #mconf-alerta-bloqueio i,
html[data-theme="light"] div[style*="rgba(234,179,8"] i,
html[data-theme="light"] div[style*="rgba(234, 179, 8"] i,
body.theme-light .agro-warning-alert i,
body.theme-light #mconf-alerta-bloqueio i,
body.theme-light div[style*="rgba(234,179,8"] i,
body.theme-light div[style*="rgba(234, 179, 8"] i {
    color: #d97706 !important;
    margin-right: 6px !important;
}
html[data-theme="light"] .agro-warning-alert b,
html[data-theme="light"] .agro-warning-alert strong,
html[data-theme="light"] #mconf-alerta-bloqueio b,
html[data-theme="light"] #mconf-alerta-bloqueio strong,
body.theme-light .agro-warning-alert b,
body.theme-light .agro-warning-alert strong,
body.theme-light #mconf-alerta-bloqueio b,
body.theme-light #mconf-alerta-bloqueio strong {
    color: #713f12 !important;
    font-weight: 800 !important;
}

/* Alertas Danger / Vermelhos */
html[data-theme="light"] div[style*="rgba(239,68,68"],
html[data-theme="light"] div[style*="rgba(239, 68, 68"],
body.theme-light div[style*="rgba(239,68,68"],
body.theme-light div[style*="rgba(239, 68, 68"] {
    background: #fef2f2 !important;
    border: 1.5px solid #fca5a5 !important;
    color: #991b1b !important;
}
html[data-theme="light"] div[style*="rgba(239,68,68"] *,
html[data-theme="light"] div[style*="rgba(239, 68, 68"] *,
body.theme-light div[style*="rgba(239,68,68"] *,
body.theme-light div[style*="rgba(239, 68, 68"] * {
    color: #991b1b !important;
}
html[data-theme="light"] div[style*="rgba(239,68,68"] b,
html[data-theme="light"] div[style*="rgba(239,68,68"] strong,
body.theme-light div[style*="rgba(239,68,68"] b,
body.theme-light div[style*="rgba(239,68,68"] strong {
    color: #7f1d1d !important;
    font-weight: 800 !important;
}

/* Alertas Info / Azuis e Aviso RH (#modal-confirmar-dados-cadastrais) */
html[data-theme="light"] .rh-conf-info-alert,
html[data-theme="light"] div[style*="rgba(59,130,246"],
html[data-theme="light"] div[style*="rgba(59, 130, 246"],
body.theme-light .rh-conf-info-alert,
body.theme-light div[style*="rgba(59,130,246"],
body.theme-light div[style*="rgba(59, 130, 246"] {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    color: #0f172a !important;
    font-weight: 500 !important;
}
html[data-theme="light"] .rh-conf-info-alert strong,
html[data-theme="light"] div[style*="rgba(59,130,246"] strong,
html[data-theme="light"] div[style*="rgba(59, 130, 246"] strong,
body.theme-light .rh-conf-info-alert strong,
body.theme-light div[style*="rgba(59,130,246"] strong,
body.theme-light div[style*="rgba(59, 130, 246"] strong {
    color: #1e3a8a !important;
    font-weight: 700 !important;
}

/* 15.2 Barra de Confirmação Diária de Preços (#bar-status-confirmacao-dia) */
html[data-theme="light"] #bar-status-confirmacao-dia.status-dia-confirmado,
body.theme-light #bar-status-confirmacao-dia.status-dia-confirmado {
    background: #ecfdf5 !important;
    border: 1.5px solid #a7f3d0 !important;
}
html[data-theme="light"] #bar-status-confirmacao-dia.status-dia-confirmado #lbl-status-confirmado-texto,
body.theme-light #bar-status-confirmacao-dia.status-dia-confirmado #lbl-status-confirmado-texto {
    color: #065f46 !important;
    font-weight: 600 !important;
}
html[data-theme="light"] #bar-status-confirmacao-dia.status-dia-confirmado #lbl-status-confirmado-texto b,
body.theme-light #bar-status-confirmacao-dia.status-dia-confirmado #lbl-status-confirmado-texto b {
    color: #042f2e !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #bar-status-confirmacao-dia.status-dia-confirmado #badge-status-confirmado-pill,
body.theme-light #bar-status-confirmacao-dia.status-dia-confirmado #badge-status-confirmado-pill {
    background: #d1fae5 !important;
    color: #065f46 !important;
    border: 1px solid #6ee7b7 !important;
    font-weight: 800 !important;
}

html[data-theme="light"] #bar-status-confirmacao-dia.status-dia-bloqueado,
body.theme-light #bar-status-confirmacao-dia.status-dia-bloqueado {
    background: #fef2f2 !important;
    border: 1.5px solid #fecaca !important;
}
html[data-theme="light"] #bar-status-confirmacao-dia.status-dia-bloqueado #lbl-status-confirmado-texto,
body.theme-light #bar-status-confirmacao-dia.status-dia-bloqueado #lbl-status-confirmado-texto {
    color: #991b1b !important;
    font-weight: 600 !important;
}
html[data-theme="light"] #bar-status-confirmacao-dia.status-dia-bloqueado #lbl-status-confirmado-texto b,
body.theme-light #bar-status-confirmacao-dia.status-dia-bloqueado #lbl-status-confirmado-texto b {
    color: #7f1d1d !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #bar-status-confirmacao-dia.status-dia-bloqueado #badge-status-confirmado-pill,
body.theme-light #bar-status-confirmacao-dia.status-dia-bloqueado #badge-status-confirmado-pill {
    background: #fee2e2 !important;
    color: #991b1b !important;
    border: 1px solid #fca5a5 !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #btn-historico-precos-dia,
body.theme-light #btn-historico-precos-dia {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 700 !important;
}
html[data-theme="light"] #btn-historico-precos-dia:hover,
body.theme-light #btn-historico-precos-dia:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* 15.3 Modal de Confirmação Diária de Preços (#modal-confirmar-precos-dia) */
html[data-theme="light"] .mconf-dialog-card,
html[data-theme="light"] #modal-confirmar-precos-dia > div,
body.theme-light .mconf-dialog-card,
body.theme-light #modal-confirmar-precos-dia > div {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: var(--shadow-modal) !important;
}
html[data-theme="light"] .mconf-header-sub,
body.theme-light .mconf-header-sub {
    color: #854d0e !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .mconf-header-title,
body.theme-light .mconf-header-title {
    color: #0f172a !important;
    font-weight: 900 !important;
}
html[data-theme="light"] .mconf-btn-close,
body.theme-light .mconf-btn-close {
    color: #475569 !important;
}
html[data-theme="light"] .mconf-btn-close:hover,
body.theme-light .mconf-btn-close:hover {
    color: #0f172a !important;
}

/* Preço do Diesel */
html[data-theme="light"] .mconf-diesel-box,
body.theme-light .mconf-diesel-box {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
}
html[data-theme="light"] .mconf-diesel-label,
body.theme-light .mconf-diesel-label {
    color: #0369a1 !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .mconf-diesel-help,
body.theme-light .mconf-diesel-help {
    color: #475569 !important;
    font-weight: 500 !important;
}
html[data-theme="light"] .mconf-diesel-prefix,
body.theme-light .mconf-diesel-prefix {
    color: #1e293b !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #mconf-diesel,
html[data-theme="light"] .mconf-diesel-input,
body.theme-light #mconf-diesel,
body.theme-light .mconf-diesel-input {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0369a1 !important;
    font-weight: 900 !important;
}

/* Catálogo de Produtos */
html[data-theme="light"] .mconf-prods-label,
body.theme-light .mconf-prods-label {
    color: #15803d !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .mconf-prods-help,
body.theme-light .mconf-prods-help {
    color: #475569 !important;
    font-weight: 500 !important;
}
html[data-theme="light"] .mconf-prod-row,
html[data-theme="light"] #mconf-produtos-container > div,
body.theme-light .mconf-prod-row,
body.theme-light #mconf-produtos-container > div {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] .mconf-prod-nome,
body.theme-light .mconf-prod-nome {
    color: #0f172a !important;
    font-weight: 700 !important;
}
html[data-theme="light"] .mconf-prod-unit,
body.theme-light .mconf-prod-unit {
    color: #475569 !important;
    font-weight: 600 !important;
}
html[data-theme="light"] .mconf-prod-moeda,
body.theme-light .mconf-prod-moeda {
    color: #1e293b !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .mconf-prod-sufixo,
body.theme-light .mconf-prod-sufixo {
    color: #475569 !important;
    font-weight: 600 !important;
}
html[data-theme="light"] input.mconf-prod-preco,
body.theme-light input.mconf-prod-preco {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #166534 !important;
    font-weight: 900 !important;
}

/* Botões do Modal */
html[data-theme="light"] .mconf-btn-cancelar,
body.theme-light .mconf-btn-cancelar {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 700 !important;
}
html[data-theme="light"] .mconf-btn-manter,
html[data-theme="light"] #btn-mconf-manter,
body.theme-light .mconf-btn-manter,
body.theme-light #btn-mconf-manter {
    background: #ecfdf5 !important;
    border: 1.5px solid #86efac !important;
    color: #166534 !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .mconf-btn-manter:hover,
html[data-theme="light"] #btn-mconf-manter:hover,
body.theme-light .mconf-btn-manter:hover,
body.theme-light #btn-mconf-manter:hover {
    background: #d1fae5 !important;
    color: #065f46 !important;
}

/* 15.4 Histórico de Auditoria de Preços (#modal-historico-precos) */
html[data-theme="light"] #modal-historico-precos > div,
body.theme-light #modal-historico-precos > div {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: var(--shadow-modal) !important;
}
html[data-theme="light"] #modal-historico-precos thead tr,
html[data-theme="light"] #cfg-tabela-historico-precos-body + thead tr,
body.theme-light #modal-historico-precos thead tr {
    background: #f1f5f9 !important;
}
html[data-theme="light"] #modal-historico-precos thead th,
body.theme-light #modal-historico-precos thead th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    border-bottom: 2px solid #cbd5e1 !important;
}
html[data-theme="light"] .hist-preco-tr,
body.theme-light .hist-preco-tr {
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .hist-preco-data,
body.theme-light .hist-preco-data {
    color: #0f172a !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .hist-preco-criado,
body.theme-light .hist-preco-criado {
    color: #475569 !important;
    font-weight: 500 !important;
}
html[data-theme="light"] .hist-preco-user-nome,
body.theme-light .hist-preco-user-nome {
    color: #0f172a !important;
    font-weight: 700 !important;
}
html[data-theme="light"] .hist-preco-user-cpf,
body.theme-light .hist-preco-user-cpf {
    color: #475569 !important;
}
html[data-theme="light"] .hist-preco-diesel,
body.theme-light .hist-preco-diesel {
    color: #0369a1 !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .hist-preco-prod-pill,
body.theme-light .hist-preco-prod-pill {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 600 !important;
}
html[data-theme="light"] .hist-preco-prod-val,
body.theme-light .hist-preco-prod-val {
    color: #166534 !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .hist-preco-resumo-texto,
html[data-theme="light"] .hist-preco-resumo-detalhe,
body.theme-light .hist-preco-resumo-texto,
body.theme-light .hist-preco-resumo-detalhe {
    color: #475569 !important;
}

/* 15.5 Vendas Frente — Hero, Stepper, Cards e Totais Financeiros */
html[data-theme="light"] .agro-vendas-hero,
body.theme-light .agro-vendas-hero {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: var(--shadow-card) !important;
}
html[data-theme="light"] .agro-vendas-hero h1,
body.theme-light .agro-vendas-hero h1 {
    color: #0f172a !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .agro-vendas-hero p,
body.theme-light .agro-vendas-hero p {
    color: #475569 !important;
    font-weight: 500 !important;
}
html[data-theme="light"] .agro-vendas-hero .agro-pill,
body.theme-light .agro-vendas-hero .agro-pill {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
html[data-theme="light"] .agro-vendas-hero .agro-pill span,
body.theme-light .agro-vendas-hero .agro-pill span {
    color: #475569 !important;
    font-weight: 600 !important;
}
html[data-theme="light"] #badge-agro-diesel,
body.theme-light #badge-agro-diesel {
    color: #0369a1 !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #badge-agro-palha,
body.theme-light #badge-agro-palha {
    color: #854d0e !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #badge-agro-silagem,
body.theme-light #badge-agro-silagem {
    color: #15803d !important;
    font-weight: 800 !important;
}

/* Stepper */
html[data-theme="light"] .agro-stepper-bar,
body.theme-light .agro-stepper-bar {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
}
html[data-theme="light"] .agro-step-circle,
body.theme-light .agro-step-circle {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .agro-step-title,
body.theme-light .agro-step-title {
    color: #1e293b !important;
    font-weight: 700 !important;
}
html[data-theme="light"] .agro-step-desc,
body.theme-light .agro-step-desc {
    color: #475569 !important;
    font-weight: 500 !important;
}
html[data-theme="light"] .agro-step-item.active .agro-step-circle,
body.theme-light .agro-step-item.active .agro-step-circle {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}
html[data-theme="light"] .agro-step-item.active .agro-step-title,
body.theme-light .agro-step-item.active .agro-step-title {
    color: #1d4ed8 !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .agro-step-item.completed .agro-step-circle,
body.theme-light .agro-step-item.completed .agro-step-circle {
    background: #16a34a !important;
    color: #ffffff !important;
    border-color: #16a34a !important;
}
html[data-theme="light"] .agro-step-item.completed .agro-step-title,
body.theme-light .agro-step-item.completed .agro-step-title {
    color: #15803d !important;
    font-weight: 800 !important;
}

/* Cards Selecionáveis de Origem e Produto */
html[data-theme="light"] .btn-origem-card,
body.theme-light .btn-origem-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
}
html[data-theme="light"] .btn-origem-card .origem-title,
body.theme-light .btn-origem-card .origem-title {
    color: #0f172a !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .btn-origem-card .origem-sub,
body.theme-light .btn-origem-card .origem-sub {
    color: #475569 !important;
    font-weight: 500 !important;
}
html[data-theme="light"] .btn-origem-card:hover,
body.theme-light .btn-origem-card:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
}
html[data-theme="light"] .btn-origem-card.active,
body.theme-light .btn-origem-card.active {
    background: #eff6ff !important;
    border-color: #2563eb !important;
}
html[data-theme="light"] .btn-origem-card.active .origem-title,
body.theme-light .btn-origem-card.active .origem-title {
    color: #1d4ed8 !important;
}

html[data-theme="light"] .btn-produto-card,
body.theme-light .btn-produto-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
}
html[data-theme="light"] .btn-produto-card .prod-name,
body.theme-light .btn-produto-card .prod-name {
    color: #0f172a !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .btn-produto-card .prod-price,
body.theme-light .btn-produto-card .prod-price {
    color: #166534 !important;
    font-weight: 900 !important;
}
html[data-theme="light"] .btn-produto-card .prod-unit,
body.theme-light .btn-produto-card .prod-unit {
    color: #475569 !important;
    font-weight: 500 !important;
}
html[data-theme="light"] .btn-produto-card:hover,
body.theme-light .btn-produto-card:hover {
    background: #fefce8 !important;
    border-color: #facc15 !important;
}
html[data-theme="light"] .btn-produto-card.active,
body.theme-light .btn-produto-card.active {
    background: #fefce8 !important;
    border-color: #ca8a04 !important;
}
html[data-theme="light"] .btn-produto-card.active .prod-name,
body.theme-light .btn-produto-card.active .prod-name {
    color: #713f12 !important;
}

/* Atalhos de Quantidade */
html[data-theme="light"] .btn-qtd-shortcut,
body.theme-light .btn-qtd-shortcut {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
    font-weight: 700 !important;
}
html[data-theme="light"] .btn-qtd-shortcut:hover,
body.theme-light .btn-qtd-shortcut:hover {
    background: #fef9c3 !important;
    border-color: #eab308 !important;
    color: #713f12 !important;
}

/* 15.6 Resumo Financeiro & Fechamento de Vendas (Passo 3 & Passo 4) */
html[data-theme="light"] #resumo-total-card-box,
body.theme-light #resumo-total-card-box {
    background: #fefce8 !important;
    border: 1.5px solid #facc15 !important;
}
html[data-theme="light"] #resumo-titulo-total,
body.theme-light #resumo-titulo-total {
    color: #854d0e !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #resumo-total-avista,
body.theme-light #resumo-total-avista {
    color: #713f12 !important;
    font-weight: 900 !important;
}
html[data-theme="light"] #resumo-total-entregue-ton,
body.theme-light #resumo-total-entregue-ton {
    color: #854d0e !important;
    font-weight: 800 !important;
    border-top: 1px solid #fde047 !important;
}
html[data-theme="light"] #resumo-condicao-ativa-box,
body.theme-light #resumo-condicao-ativa-box {
    background: #ffffff !important;
    border: 1.5px dashed #ca8a04 !important;
}
html[data-theme="light"] #resumo-condicao-ativa-nome,
body.theme-light #resumo-condicao-ativa-nome {
    color: #0f172a !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #resumo-condicao-detalhe-parcelas,
body.theme-light #resumo-condicao-detalhe-parcelas {
    color: #475569 !important;
    font-weight: 600 !important;
}
html[data-theme="light"] #resumo-condicao-ativa-total,
body.theme-light #resumo-condicao-ativa-total {
    color: #713f12 !important;
    font-weight: 900 !important;
}
html[data-theme="light"] #resumo-custo-produto,
body.theme-light #resumo-custo-produto {
    color: #0f172a !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #resumo-custo-frete,
body.theme-light #resumo-custo-frete {
    color: #0369a1 !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #resumo-frete-por-ton,
body.theme-light #resumo-frete-por-ton {
    color: #15803d !important;
    font-weight: 800 !important;
}

/* Passo 4 — Conferência Final */
html[data-theme="light"] #rev4-total-valor,
body.theme-light #rev4-total-valor {
    color: #713f12 !important;
    font-weight: 900 !important;
}
html[data-theme="light"] #rev4-total-ton,
body.theme-light #rev4-total-ton {
    color: #854d0e !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #rev4-condicao-nome,
body.theme-light #rev4-condicao-nome {
    color: #0f172a !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #rev4-condicao-detalhe,
body.theme-light #rev4-condicao-detalhe {
    color: #475569 !important;
    font-weight: 600 !important;
}
html[data-theme="light"] #rev4-transporte-nome,
html[data-theme="light"] #rev4-comprador-nome,
body.theme-light #rev4-transporte-nome,
body.theme-light #rev4-comprador-nome {
    color: #0f172a !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #rev4-motorista-info,
html[data-theme="light"] #rev4-comprador-tel,
html[data-theme="light"] #rev4-distancia-info,
body.theme-light #rev4-motorista-info,
body.theme-light #rev4-comprador-tel,
body.theme-light #rev4-distancia-info {
    color: #475569 !important;
    font-weight: 500 !important;
}
html[data-theme="light"] #rev4-veiculo-nome,
body.theme-light #rev4-veiculo-nome {
    color: #0369a1 !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #rev4-carga-info,
body.theme-light #rev4-carga-info {
    color: #15803d !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #rev4-trajeto-info,
body.theme-light #rev4-trajeto-info {
    color: #854d0e !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #rev4-forma-pagamento-info,
body.theme-light #rev4-forma-pagamento-info {
    color: #0369a1 !important;
    font-weight: 700 !important;
}

/* Labels e Caixas de Apoio no Módulo Agro Vendas */
html[data-theme="light"] #view-agro-vendas label,
body.theme-light #view-agro-vendas label {
    color: #0f172a !important;
    font-weight: 700 !important;
}
html[data-theme="light"] #view-agro-vendas .agro-card-dark,
body.theme-light #view-agro-vendas .agro-card-dark {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: var(--shadow-card) !important;
}
html[data-theme="light"] #view-agro-vendas .agro-card-dark h3,
body.theme-light #view-agro-vendas .agro-card-dark h3 {
    color: #0f172a !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #view-agro-vendas [style*="background:rgba(255,255,255,0.03)"],
html[data-theme="light"] #view-agro-vendas [style*="background:rgba(255,255,255,0.04)"],
html[data-theme="light"] #view-agro-vendas [style*="background:rgba(255,255,255,0.025)"],
body.theme-light #view-agro-vendas [style*="background:rgba(255,255,255,0.03)"],
body.theme-light #view-agro-vendas [style*="background:rgba(255,255,255,0.04)"],
body.theme-light #view-agro-vendas [style*="background:rgba(255,255,255,0.025)"] {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] #view-agro-vendas [style*="color:#94a3b8"],
body.theme-light #view-agro-vendas [style*="color:#94a3b8"] {
    color: #475569 !important;
}
html[data-theme="light"] #view-agro-vendas [style*="color:#cbd5e1"],
body.theme-light #view-agro-vendas [style*="color:#cbd5e1"] {
    color: #334155 !important;
}
html[data-theme="light"] #view-agro-vendas [style*="color:#f8fafc"],
body.theme-light #view-agro-vendas [style*="color:#f8fafc"] {
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   16. COMPRAS & PAGAMENTOS (NUTRIÇÃO ANIMAL / AGRO) — TEMA CLARO (v5.2.0)
   ══════════════════════════════════════════════════════════════════════════════ */

/* 16.1 Cabeçalho e Seletores de Modo */
html[data-theme="light"] #view-agro-compras .page-head p,
body.theme-light #view-agro-compras .page-head p {
    color: #475569 !important;
}
html[data-theme="light"] #seletor-modo-visualizacao-compras,
body.theme-light #seletor-modo-visualizacao-compras,
html[data-theme="light"] .scrm-modo-selector,
body.theme-light .scrm-modo-selector {
    background: #e2e8f0 !important;
    border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] #seletor-modo-visualizacao-compras button:not([style*="background:#0284c7"]):not([style*="background: #0284c7"]),
body.theme-light #seletor-modo-visualizacao-compras button:not([style*="background:#0284c7"]):not([style*="background: #0284c7"]),
html[data-theme="light"] .scrm-modo-btn:not(.active),
body.theme-light .scrm-modo-btn:not(.active) {
    color: #475569 !important;
    background: transparent !important;
}
html[data-theme="light"] #view-agro-compras .page-head button[title="Atualizar dados"],
body.theme-light #view-agro-compras .page-head button[title="Atualizar dados"] {
    border-color: #cbd5e1 !important;
    color: #475569 !important;
    background: #ffffff !important;
}
html[data-theme="light"] #view-agro-compras .page-head button[title="Atualizar dados"]:hover,
body.theme-light #view-agro-compras .page-head button[title="Atualizar dados"]:hover {
    background: #f1f5f9 !important;
    color: #0369a1 !important;
}
html[data-theme="light"] #btn-menu-compras-usuarios,
body.theme-light #btn-menu-compras-usuarios {
    background: rgba(168, 85, 247, 0.12) !important;
    border-color: rgba(168, 85, 247, 0.35) !important;
    color: #7e22ce !important;
}

/* 16.2 Abas Estilo Gmail */
html[data-theme="light"] .compras-gmail-tabs-container,
body.theme-light .compras-gmail-tabs-container,
html[data-theme="light"] .scrm-gmail-tabs-container,
body.theme-light .scrm-gmail-tabs-container {
    background: #ffffff !important;
    border-bottom: 1px solid #cbd5e1 !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: var(--shadow-xs) !important;
}
html[data-theme="light"] .gmail-tab-item,
body.theme-light .gmail-tab-item,
html[data-theme="light"] .scrm-gmail-tab-item,
body.theme-light .scrm-gmail-tab-item {
    border-bottom: 3px solid transparent;
}
html[data-theme="light"] .gmail-tab-item:hover,
body.theme-light .gmail-tab-item:hover,
html[data-theme="light"] .scrm-gmail-tab-item:hover,
body.theme-light .scrm-gmail-tab-item:hover {
    background: #f1f5f9 !important;
}
html[data-theme="light"] .gmail-tab-item.gmail-tab-active,
body.theme-light .gmail-tab-item.gmail-tab-active,
html[data-theme="light"] .scrm-gmail-tab-item.active,
body.theme-light .scrm-gmail-tab-item.active {
    border-bottom: 3px solid #0284c7 !important;
    background: #f0f9ff !important;
}
html[data-theme="light"] .gmail-tab-title,
body.theme-light .gmail-tab-title,
html[data-theme="light"] .scrm-gmail-tab-title,
body.theme-light .scrm-gmail-tab-title {
    color: #475569 !important;
}
html[data-theme="light"] .gmail-tab-active .gmail-tab-title,
body.theme-light .gmail-tab-active .gmail-tab-title,
html[data-theme="light"] .scrm-gmail-tab-item.active .scrm-gmail-tab-title,
body.theme-light .scrm-gmail-tab-item.active .scrm-gmail-tab-title {
    color: #0369a1 !important;
    font-weight: 800 !important;
}
html[data-theme="light"] .gmail-tab-subtitle,
body.theme-light .gmail-tab-subtitle {
    color: #475569 !important;
}
html[data-theme="light"] .scrm-gmail-tab-subtitle,
body.theme-light .scrm-gmail-tab-subtitle {
    display: none !important;
}
html[data-theme="light"] .gmail-badge-amber,
body.theme-light .gmail-badge-amber {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}
html[data-theme="light"] .gmail-badge-purple,
body.theme-light .gmail-badge-purple {
    background: #f3e8ff !important;
    color: #7e22ce !important;
    border: 1px solid #d8b4fe !important;
}

/* CRM Gmail Tabs Específicas */
html[data-theme="light"] .scrm-gmail-tab-item.todas.active,
body.theme-light .scrm-gmail-tab-item.todas.active {
    border-bottom-color: #0284c7 !important;
    background: #f0f9ff !important;
}
html[data-theme="light"] .scrm-gmail-tab-item.minhas.active,
body.theme-light .scrm-gmail-tab-item.minhas.active {
    border-bottom-color: #16a34a !important;
    background: #f0fdf4 !important;
}
html[data-theme="light"] .scrm-gmail-tab-item.recebidas.active,
body.theme-light .scrm-gmail-tab-item.recebidas.active {
    border-bottom-color: #0284c7 !important;
    background: #f0f9ff !important;
}
html[data-theme="light"] .scrm-gmail-tab-item.enviadas.active,
body.theme-light .scrm-gmail-tab-item.enviadas.active {
    border-bottom-color: #ea580c !important;
    background: #fff7ed !important;
}
html[data-theme="light"] .scrm-gmail-tab-item.oficial.active,
body.theme-light .scrm-gmail-tab-item.oficial.active {
    border-bottom-color: #d97706 !important;
    background: #fffbeb !important;
}
html[data-theme="light"] .scrm-gmail-tab-item.campanhas.active,
body.theme-light .scrm-gmail-tab-item.campanhas.active {
    border-bottom-color: #9333ea !important;
    background: #faf5ff !important;
}
html[data-theme="light"] .scrm-gmail-badge-blue,
body.theme-light .scrm-gmail-badge-blue {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}
html[data-theme="light"] .scrm-gmail-badge-green,
body.theme-light .scrm-gmail-badge-green {
    background: #dcfce7 !important;
    color: #15803d !important;
    border: 1px solid #bbf7d0 !important;
}
html[data-theme="light"] .scrm-gmail-badge-cyan,
body.theme-light .scrm-gmail-badge-cyan {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd !important;
}
html[data-theme="light"] .scrm-gmail-badge-orange,
body.theme-light .scrm-gmail-badge-orange {
    background: #ffedd5 !important;
    color: #c2410c !important;
    border: 1px solid #fed7aa !important;
}
html[data-theme="light"] .scrm-gmail-badge-amber,
body.theme-light .scrm-gmail-badge-amber {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border: 1px solid #fde68a !important;
}
html[data-theme="light"] .scrm-gmail-badge-purple,
body.theme-light .scrm-gmail-badge-purple {
    background: #f3e8ff !important;
    color: #7e22ce !important;
    border: 1px solid #e9d5ff !important;
}

/* 16.3 Estrutura Outlook 3 Colunas */
html[data-theme="light"] #compras-container-outlook,
body.theme-light #compras-container-outlook {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: var(--shadow-card) !important;
}

/* Coluna 1: Sidebar de Pastas */
html[data-theme="light"] #compras-outlook-sidebar,
body.theme-light #compras-outlook-sidebar {
    background: #f8fafc !important;
    border-right: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #compras-outlook-sidebar > div:first-child,
body.theme-light #compras-outlook-sidebar > div:first-child {
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .outlook-folder-item,
body.theme-light .outlook-folder-item {
    color: #475569 !important;
}
html[data-theme="light"] .outlook-folder-item:hover,
body.theme-light .outlook-folder-item:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
html[data-theme="light"] .outlook-folder-item.outlook-folder-active,
body.theme-light .outlook-folder-item.outlook-folder-active {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border-color: #7dd3fc !important;
}
html[data-theme="light"] #badge-pasta-enviadas,
body.theme-light #badge-pasta-enviadas {
    background: #e2e8f0 !important;
    color: #475569 !important;
}
html[data-theme="light"] #badge-pasta-devolvidas,
body.theme-light #badge-pasta-devolvidas {
    background: #fef3c7 !important;
    color: #b45309 !important;
}
html[data-theme="light"] #badge-pasta-aprovadas,
body.theme-light #badge-pasta-aprovadas {
    background: #dcfce7 !important;
    color: #15803d !important;
}
html[data-theme="light"] #badge-pasta-todas,
body.theme-light #badge-pasta-todas {
    background: #f3e8ff !important;
    color: #7e22ce !important;
}
html[data-theme="light"] #badge-pasta-canceladas,
body.theme-light #badge-pasta-canceladas {
    background: #f1f5f9 !important;
    color: #475569 !important;
}

/* Coluna 2: Lista de Solicitações */
html[data-theme="light"] #compras-outlook-list-col,
body.theme-light #compras-outlook-list-col {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #compras-outlook-list-col > div:first-child,
body.theme-light #compras-outlook-list-col > div:first-child {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #outlook-pasta-titulo,
body.theme-light #outlook-pasta-titulo {
    color: #0f172a !important;
}
html[data-theme="light"] #contador-outlook-fila,
body.theme-light #contador-outlook-fila {
    color: #475569 !important;
}
html[data-theme="light"] #tab-outlook-todas,
html[data-theme="light"] #tab-outlook-urgentes,
html[data-theme="light"] #tab-outlook-reenviadas,
body.theme-light #tab-outlook-todas,
body.theme-light #tab-outlook-urgentes,
body.theme-light #tab-outlook-reenviadas {
    color: #475569;
}
html[data-theme="light"] #busca-outlook-lista,
body.theme-light #busca-outlook-lista {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
html[data-theme="light"] #busca-outlook-lista::placeholder,
body.theme-light #busca-outlook-lista::placeholder {
    color: #475569 !important;
}

/* Cards na Lista */
html[data-theme="light"] .outlook-solic-card,
body.theme-light .outlook-solic-card {
    border-bottom: 1px solid #f1f5f9 !important;
    background: transparent;
}
html[data-theme="light"] .outlook-solic-card:hover,
body.theme-light .outlook-solic-card:hover {
    background: #f8fafc !important;
}
html[data-theme="light"] .outlook-solic-card.outlook-card-active,
body.theme-light .outlook-solic-card.outlook-card-active {
    background: #f0f9ff !important;
    border-left: 4px solid #0284c7 !important;
}
html[data-theme="light"] .outlook-solic-card [style*="color:#f8fafc"],
html[data-theme="light"] .outlook-solic-card [style*="color: #f8fafc"],
body.theme-light .outlook-solic-card [style*="color:#f8fafc"],
body.theme-light .outlook-solic-card [style*="color: #f8fafc"] {
    color: #0f172a !important;
}
html[data-theme="light"] .outlook-solic-card [style*="color:#e2e8f0"],
html[data-theme="light"] .outlook-solic-card [style*="color: #e2e8f0"],
body.theme-light .outlook-solic-card [style*="color:#e2e8f0"],
body.theme-light .outlook-solic-card [style*="color: #e2e8f0"] {
    color: #0f172a !important;
}
html[data-theme="light"] .outlook-solic-card [style*="color:#94a3b8"],
html[data-theme="light"] .outlook-solic-card [style*="color: #94a3b8"],
body.theme-light .outlook-solic-card [style*="color:#94a3b8"],
body.theme-light .outlook-solic-card [style*="color: #94a3b8"] {
    color: #475569 !important;
}

/* Coluna 3: Painel de Leitura */
html[data-theme="light"] #compras-outlook-reading-pane,
body.theme-light #compras-outlook-reading-pane {
    background: #ffffff !important;
}
html[data-theme="light"] #compras-outlook-empty-state,
body.theme-light #compras-outlook-empty-state {
    color: #475569 !important;
}
html[data-theme="light"] #compras-outlook-empty-state div[style*="border-radius: 50%"],
body.theme-light #compras-outlook-empty-state div[style*="border-radius: 50%"] {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    box-shadow: var(--shadow-xs) !important;
}
html[data-theme="light"] #compras-outlook-empty-state h3,
body.theme-light #compras-outlook-empty-state h3 {
    color: #1e293b !important;
}
html[data-theme="light"] #compras-outlook-empty-state p,
body.theme-light #compras-outlook-empty-state p {
    color: #475569 !important;
}

/* Cabeçalho do Painel de Leitura */
html[data-theme="light"] #compras-outlook-active-state > div:first-child,
body.theme-light #compras-outlook-active-state > div:first-child {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #compras-outlook-active-state h2,
body.theme-light #compras-outlook-active-state h2 {
    color: #0f172a !important;
}
html[data-theme="light"] #compras-outlook-active-state [style*="color:#f8fafc"],
html[data-theme="light"] #compras-outlook-active-state [style*="color: #f8fafc"],
body.theme-light #compras-outlook-active-state [style*="color:#f8fafc"],
body.theme-light #compras-outlook-active-state [style*="color: #f8fafc"] {
    color: #0f172a !important;
}
html[data-theme="light"] #compras-outlook-active-state [style*="color:#cbd5e1"],
html[data-theme="light"] #compras-outlook-active-state [style*="color: #cbd5e1"],
body.theme-light #compras-outlook-active-state [style*="color:#cbd5e1"],
body.theme-light #compras-outlook-active-state [style*="color: #cbd5e1"] {
    color: #1e293b !important;
}
html[data-theme="light"] #compras-outlook-active-state [style*="color:#94a3b8"],
html[data-theme="light"] #compras-outlook-active-state [style*="color: #94a3b8"],
body.theme-light #compras-outlook-active-state [style*="color:#94a3b8"],
body.theme-light #compras-outlook-active-state [style*="color: #94a3b8"] {
    color: #475569 !important;
}
html[data-theme="light"] #compras-outlook-active-state button[onclick*="abrirDetalhesSolicitacaoCompras"],
body.theme-light #compras-outlook-active-state button[onclick*="abrirDetalhesSolicitacaoCompras"] {
    background: #ffffff !important;
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] #compras-outlook-active-state button[onclick*="abrirDetalhesSolicitacaoCompras"]:hover,
body.theme-light #compras-outlook-active-state button[onclick*="abrirDetalhesSolicitacaoCompras"]:hover {
    background: #f1f5f9 !important;
    color: #0369a1 !important;
}
html[data-theme="light"] div[id^="dropdown-opcoes-responder-"],
body.theme-light div[id^="dropdown-opcoes-responder-"] {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: var(--shadow-dropdown) !important;
}
html[data-theme="light"] div[id^="dropdown-opcoes-responder-"] > div:first-child,
body.theme-light div[id^="dropdown-opcoes-responder-"] > div:first-child {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

/* Caixa de Resposta / Despacho Inline */
html[data-theme="light"] div[id^="compras-reply-box-"],
body.theme-light div[id^="compras-reply-box-"] {
    background: #f8fafc !important;
    border-bottom: 2px solid #0284c7 !important;
    box-shadow: var(--shadow-card) !important;
}
html[data-theme="light"] div[id^="compras-reply-box-"] > div:first-child,
body.theme-light div[id^="compras-reply-box-"] > div:first-child {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] div[id^="compras-reply-box-"] div[style*="background:rgba(0,0,0,0.4)"],
body.theme-light div[id^="compras-reply-box-"] div[style*="background:rgba(0,0,0,0.4)"] {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] div[id^="compras-reply-box-"] button[id^="btn-marca-"]:not([style*="background:#16a34a"]):not([style*="background: #16a34a"]),
body.theme-light div[id^="compras-reply-box-"] button[id^="btn-marca-"]:not([style*="background:#16a34a"]):not([style*="background: #16a34a"]) {
    color: #475569 !important;
}
html[data-theme="light"] div[id^="compras-reply-box-"] input[id^="input-valor-aprovado-"],
body.theme-light div[id^="compras-reply-box-"] input[id^="input-valor-aprovado-"] {
    background: #ffffff !important;
    border: 1px solid #0284c7 !important;
    color: #0369a1 !important;
}
html[data-theme="light"] div[id^="compras-reply-box-"] button[onclick*="fecharCaixaRespostaOutlook"],
body.theme-light div[id^="compras-reply-box-"] button[onclick*="fecharCaixaRespostaOutlook"] {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}
html[data-theme="light"] div[id^="compras-reply-box-"] div[style*="background:rgba(0,0,0,0.15)"],
body.theme-light div[id^="compras-reply-box-"] div[style*="background:rgba(0,0,0,0.15)"] {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] div[id^="compras-reply-box-"] span[style*="min-width:32px"],
body.theme-light div[id^="compras-reply-box-"] span[style*="min-width:32px"] {
    background: #e2e8f0 !important;
    color: #475569 !important;
}
html[data-theme="light"] div[id^="compras-reply-box-"] div[style*="background:rgba(15,23,42,0.7)"],
body.theme-light div[id^="compras-reply-box-"] div[style*="background:rgba(15,23,42,0.7)"] {
    background: #ffffff !important;
}
html[data-theme="light"] div[id^="compras-reply-box-"] textarea[id^="textarea-resposta-parecer-"],
body.theme-light div[id^="compras-reply-box-"] textarea[id^="textarea-resposta-parecer-"] {
    color: #0f172a !important;
}
html[data-theme="light"] div[id^="compras-reply-box-"] div[style*="border-top:1px dashed"],
body.theme-light div[id^="compras-reply-box-"] div[style*="border-top:1px dashed"] {
    border-top: 1px dashed #cbd5e1 !important;
    background: #f8fafc !important;
    color: #475569 !important;
}

/* Corpo do Painel de Leitura */
html[data-theme="light"] #compras-outlook-content-body,
body.theme-light #compras-outlook-content-body {
    background: #ffffff !important;
}
html[data-theme="light"] #compras-outlook-content-body > div[style*="border:1px solid"],
html[data-theme="light"] #compras-outlook-content-body > div[style*="border: 1px solid"],
body.theme-light #compras-outlook-content-body > div[style*="border:1px solid"],
body.theme-light #compras-outlook-content-body > div[style*="border: 1px solid"] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #compras-outlook-content-body h4,
body.theme-light #compras-outlook-content-body h4 {
    color: #0f172a !important;
}
html[data-theme="light"] #compras-outlook-content-body [style*="color:#fff"],
html[data-theme="light"] #compras-outlook-content-body [style*="color: #fff"],
body.theme-light #compras-outlook-content-body [style*="color:#fff"],
body.theme-light #compras-outlook-content-body [style*="color: #fff"] {
    color: #0f172a !important;
}
html[data-theme="light"] #compras-outlook-content-body [style*="color:#cbd5e1"],
html[data-theme="light"] #compras-outlook-content-body [style*="color: #cbd5e1"],
body.theme-light #compras-outlook-content-body [style*="color:#cbd5e1"],
body.theme-light #compras-outlook-content-body [style*="color: #cbd5e1"] {
    color: #334155 !important;
}
html[data-theme="light"] #compras-outlook-content-body [style*="color:#e2e8f0"],
html[data-theme="light"] #compras-outlook-content-body [style*="color: #e2e8f0"],
body.theme-light #compras-outlook-content-body [style*="color:#e2e8f0"],
body.theme-light #compras-outlook-content-body [style*="color: #e2e8f0"] {
    color: #1e293b !important;
}
html[data-theme="light"] #compras-outlook-content-body [style*="color:#94a3b8"],
html[data-theme="light"] #compras-outlook-content-body [style*="color: #94a3b8"],
body.theme-light #compras-outlook-content-body [style*="color:#94a3b8"],
body.theme-light #compras-outlook-content-body [style*="color: #94a3b8"] {
    color: #475569 !important;
}
html[data-theme="light"] #compras-outlook-content-body table thead tr,
body.theme-light #compras-outlook-content-body table thead tr {
    border-bottom: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}
html[data-theme="light"] #compras-outlook-content-body table tbody tr,
body.theme-light #compras-outlook-content-body table tbody tr {
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #compras-outlook-content-body div[style*="background:rgba(255,255,255,0.04)"],
body.theme-light #compras-outlook-content-body div[style*="background:rgba(255,255,255,0.04)"] {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
}

/* Scrollbars Modo Claro */
html[data-theme="light"] #compras-outlook-sidebar-scroll::-webkit-scrollbar-track,
html[data-theme="light"] #compras-outlook-items-scroll::-webkit-scrollbar-track,
html[data-theme="light"] #compras-outlook-content-body::-webkit-scrollbar-track,
body.theme-light #compras-outlook-sidebar-scroll::-webkit-scrollbar-track,
body.theme-light #compras-outlook-items-scroll::-webkit-scrollbar-track,
body.theme-light #compras-outlook-content-body::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
}
html[data-theme="light"] #compras-outlook-sidebar-scroll::-webkit-scrollbar-thumb,
html[data-theme="light"] #compras-outlook-items-scroll::-webkit-scrollbar-thumb,
html[data-theme="light"] #compras-outlook-content-body::-webkit-scrollbar-thumb,
body.theme-light #compras-outlook-sidebar-scroll::-webkit-scrollbar-thumb,
body.theme-light #compras-outlook-items-scroll::-webkit-scrollbar-thumb,
body.theme-light #compras-outlook-content-body::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
}

/* 16.4 Tabela Clássica com Menus Laterais */
html[data-theme="light"] #compras-container-tabela,
body.theme-light #compras-container-tabela {
    background: #ffffff !important;
}
html[data-theme="light"] #tabela-topo-header,
body.theme-light #tabela-topo-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #tabela-pasta-titulo,
body.theme-light #tabela-pasta-titulo {
    color: #0f172a !important;
}
html[data-theme="light"] #tabela-pasta-subtitulo,
body.theme-light #tabela-pasta-subtitulo {
    color: #475569 !important;
}
html[data-theme="light"] #contador-tabela-fila,
body.theme-light #contador-tabela-fila {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #7dd3fc !important;
}
html[data-theme="light"] #busca-tabela-lista,
body.theme-light #busca-tabela-lista {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
html[data-theme="light"] #busca-tabela-lista::placeholder,
body.theme-light #busca-tabela-lista::placeholder {
    color: #475569 !important;
}
html[data-theme="light"] #tabela-agro-compras thead,
body.theme-light #tabela-agro-compras thead {
    background: #f1f5f9 !important;
}
html[data-theme="light"] #tabela-agro-compras thead tr,
body.theme-light #tabela-agro-compras thead tr {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}
html[data-theme="light"] #tbody-agro-compras tr,
body.theme-light #tbody-agro-compras tr {
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #tbody-agro-compras tr:hover,
body.theme-light #tbody-agro-compras tr:hover {
    background: #f8fafc !important;
}
html[data-theme="light"] #tbody-agro-compras [style*="color:#f8fafc"],
html[data-theme="light"] #tbody-agro-compras [style*="color: #f8fafc"],
body.theme-light #tbody-agro-compras [style*="color:#f8fafc"],
body.theme-light #tbody-agro-compras [style*="color: #f8fafc"] {
    color: #0f172a !important;
}
html[data-theme="light"] #tbody-agro-compras [style*="color:#cbd5e1"],
html[data-theme="light"] #tbody-agro-compras [style*="color: #cbd5e1"],
body.theme-light #tbody-agro-compras [style*="color:#cbd5e1"],
body.theme-light #tbody-agro-compras [style*="color: #cbd5e1"] {
    color: #334155 !important;
}
html[data-theme="light"] .tabela-grupo-row,
body.theme-light .tabela-grupo-row {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .tabela-grupo-row:hover,
body.theme-light .tabela-grupo-row:hover {
    background: #f8fafc !important;
}
html[data-theme="light"] .outlook-divider-grupo,
body.theme-light .outlook-divider-grupo {
    border-top-color: #e2e8f0 !important;
}
html[data-theme="light"] .outlook-capsula-data,
body.theme-light .outlook-capsula-data {
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* 16.5 Dashboard BI */
html[data-theme="light"] #compras-container-dashboard div[style*="background:rgba(0,0,0,0.4)"],
html[data-theme="light"] #compras-container-dashboard div[style*="background:rgba(0,0,0,0.35)"],
body.theme-light #compras-container-dashboard div[style*="background:rgba(0,0,0,0.4)"],
body.theme-light #compras-container-dashboard div[style*="background:rgba(0,0,0,0.35)"] {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] #dash-compras-data-inicio,
html[data-theme="light"] #dash-compras-data-fim,
body.theme-light #dash-compras-data-inicio,
body.theme-light #dash-compras-data-fim {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
html[data-theme="light"] .btn-periodo-dash:not([style*="background:#0284c7"]):not([style*="background: #0284c7"]),
body.theme-light .btn-periodo-dash:not([style*="background:#0284c7"]):not([style*="background: #0284c7"]) {
    color: #475569 !important;
}
html[data-theme="light"] .btn-periodo-dash:hover,
body.theme-light .btn-periodo-dash:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}
html[data-theme="light"] #btn-evolucao-visao-mes:not([style*="background:#0284c7"]),
html[data-theme="light"] #btn-evolucao-visao-semana:not([style*="background:#0284c7"]),
body.theme-light #btn-evolucao-visao-mes:not([style*="background:#0284c7"]),
body.theme-light #btn-evolucao-visao-semana:not([style*="background:#0284c7"]) {
    color: #475569 !important;
}
html[data-theme="light"] #tbody-compras-top-ativos tr,
html[data-theme="light"] #tbody-compras-top-fornecedores tr,
body.theme-light #tbody-compras-top-ativos tr,
body.theme-light #tbody-compras-top-fornecedores tr {
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #tbody-compras-top-ativos tr:hover,
html[data-theme="light"] #tbody-compras-top-fornecedores tr:hover,
body.theme-light #tbody-compras-top-ativos tr:hover,
body.theme-light #tbody-compras-top-fornecedores tr:hover {
    background: #f8fafc !important;
}
html[data-theme="light"] #tbody-compras-top-ativos [style*="color:#f8fafc"],
html[data-theme="light"] #tbody-compras-top-fornecedores [style*="color:#f8fafc"],
body.theme-light #tbody-compras-top-ativos [style*="color:#f8fafc"],
body.theme-light #tbody-compras-top-fornecedores [style*="color:#f8fafc"] {
    color: #0f172a !important;
}
html[data-theme="light"] #tbody-compras-top-ativos [style*="color:#cbd5e1"],
html[data-theme="light"] #tbody-compras-top-fornecedores [style*="color:#cbd5e1"],
body.theme-light #tbody-compras-top-ativos [style*="color:#cbd5e1"],
body.theme-light #tbody-compras-top-fornecedores [style*="color:#cbd5e1"] {
    color: #334155 !important;
}

/* 16.6 Administração de Permissões */
html[data-theme="light"] #tabela-usuarios-permissoes thead tr,
body.theme-light #tabela-usuarios-permissoes thead tr {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}
html[data-theme="light"] #tbody-usuarios-permissoes tr,
body.theme-light #tbody-usuarios-permissoes tr {
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #tbody-usuarios-permissoes tr:hover,
body.theme-light #tbody-usuarios-permissoes tr:hover {
    background: #f8fafc !important;
}
html[data-theme="light"] #tbody-usuarios-permissoes [style*="color:#f8fafc"],
body.theme-light #tbody-usuarios-permissoes [style*="color:#f8fafc"] {
    color: #0f172a !important;
}

/* 16.7 Modais de Compras & Pagamentos */
html[data-theme="light"] #comprasNovaSolicitacaoModal,
html[data-theme="light"] #comprasDetalhesModal,
html[data-theme="light"] #comprasDespachoModal,
html[data-theme="light"] #comprasGerarFinanceiroModal,
html[data-theme="light"] #comprasBaixaEstoqueModal,
html[data-theme="light"] #comprasAnexarPagamentoModal,
html[data-theme="light"] #comprasEnviarFinanceiroModal,
html[data-theme="light"] #comprasDefinirTratativaModal,
html[data-theme="light"] #comprasConcluirTratativaModal,
html[data-theme="light"] #comprasConfirmarReembolsoModal,
html[data-theme="light"] #comprasProblemasModal,
html[data-theme="light"] #comprasRespostaOrientacaoModal,
body.theme-light #comprasNovaSolicitacaoModal,
body.theme-light #comprasDetalhesModal,
body.theme-light #comprasDespachoModal,
body.theme-light #comprasGerarFinanceiroModal,
body.theme-light #comprasBaixaEstoqueModal,
body.theme-light #comprasAnexarPagamentoModal,
body.theme-light #comprasEnviarFinanceiroModal,
body.theme-light #comprasDefinirTratativaModal,
body.theme-light #comprasConcluirTratativaModal,
body.theme-light #comprasConfirmarReembolsoModal,
body.theme-light #comprasProblemasModal,
body.theme-light #comprasRespostaOrientacaoModal {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: var(--shadow-modal) !important;
    color: #0f172a !important;
    padding: 0 !important;
}
html[data-theme="light"] #comprasNovaSolicitacaoModal > div:first-child,
html[data-theme="light"] #comprasDetalhesModal > div:first-child,
html[data-theme="light"] #comprasDespachoModal > div:first-child,
html[data-theme="light"] #comprasGerarFinanceiroModal > div:first-child,
html[data-theme="light"] #comprasBaixaEstoqueModal > div:first-child,
html[data-theme="light"] #comprasAnexarPagamentoModal > div:first-child,
html[data-theme="light"] #comprasEnviarFinanceiroModal > div:first-child,
html[data-theme="light"] #comprasDefinirTratativaModal > div:first-child,
html[data-theme="light"] #comprasConcluirTratativaModal > div:first-child,
html[data-theme="light"] #comprasConfirmarReembolsoModal > div:first-child,
html[data-theme="light"] #comprasProblemasModal > div:first-child,
html[data-theme="light"] #comprasRespostaOrientacaoModal > div:first-child,
body.theme-light #comprasNovaSolicitacaoModal > div:first-child,
body.theme-light #comprasDetalhesModal > div:first-child,
body.theme-light #comprasDespachoModal > div:first-child,
body.theme-light #comprasGerarFinanceiroModal > div:first-child,
body.theme-light #comprasBaixaEstoqueModal > div:first-child,
body.theme-light #comprasAnexarPagamentoModal > div:first-child,
body.theme-light #comprasEnviarFinanceiroModal > div:first-child,
body.theme-light #comprasDefinirTratativaModal > div:first-child,
body.theme-light #comprasConcluirTratativaModal > div:first-child,
body.theme-light #comprasConfirmarReembolsoModal > div:first-child,
body.theme-light #comprasProblemasModal > div:first-child,
body.theme-light #comprasRespostaOrientacaoModal > div:first-child {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #comprasNovaSolicitacaoModal button[onclick*="closeNovaSolicitacaoComprasModal"],
html[data-theme="light"] #comprasDetalhesModal button[onclick*="closeDetalhesSolicitacaoComprasModal"],
html[data-theme="light"] #comprasDespachoModal button[onclick*="closeDespachoComprasModal"],
html[data-theme="light"] #comprasGerarFinanceiroModal button[onclick*="closeGerarFinanceiroComprasModal"],
html[data-theme="light"] #comprasBaixaEstoqueModal button[onclick*="closeBaixaEstoqueComprasModal"],
html[data-theme="light"] #comprasAnexarPagamentoModal button[onclick*="closeAnexarPagamentoComprasModal"],
html[data-theme="light"] #comprasEnviarFinanceiroModal button[onclick*="closeEnviarFinanceiroComprasModal"],
html[data-theme="light"] #comprasDefinirTratativaModal button[onclick*="closeDefinirTratativaComprasModal"],
html[data-theme="light"] #comprasConcluirTratativaModal button[onclick*="closeConcluirTratativaComprasModal"],
html[data-theme="light"] #comprasConfirmarReembolsoModal button[onclick*="closeConfirmarReembolsoComprasModal"],
html[data-theme="light"] #comprasProblemasModal button[onclick*="closeProblemasComprasModal"],
html[data-theme="light"] #comprasRespostaOrientacaoModal button[onclick*="closeRespostaOrientacaoComprasModal"],
body.theme-light #comprasNovaSolicitacaoModal button[onclick*="closeNovaSolicitacaoComprasModal"],
body.theme-light #comprasDetalhesModal button[onclick*="closeDetalhesSolicitacaoComprasModal"],
body.theme-light #comprasDespachoModal button[onclick*="closeDespachoComprasModal"],
body.theme-light #comprasGerarFinanceiroModal button[onclick*="closeGerarFinanceiroComprasModal"],
body.theme-light #comprasBaixaEstoqueModal button[onclick*="closeBaixaEstoqueComprasModal"],
body.theme-light #comprasAnexarPagamentoModal button[onclick*="closeAnexarPagamentoComprasModal"],
body.theme-light #comprasEnviarFinanceiroModal button[onclick*="closeEnviarFinanceiroComprasModal"],
body.theme-light #comprasDefinirTratativaModal button[onclick*="closeDefinirTratativaComprasModal"],
body.theme-light #comprasConcluirTratativaModal button[onclick*="closeConcluirTratativaComprasModal"],
body.theme-light #comprasConfirmarReembolsoModal button[onclick*="closeConfirmarReembolsoComprasModal"],
body.theme-light #comprasProblemasModal button[onclick*="closeProblemasComprasModal"],
body.theme-light #comprasRespostaOrientacaoModal button[onclick*="closeRespostaOrientacaoComprasModal"] {
    color: #475569 !important;
}

/* Modal Anexar Pagamento - Tema Claro */
html[data-theme="light"] #pgto_resumo_box,
body.theme-light #pgto_resumo_box {
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
}
html[data-theme="light"] #pgto_resumo_box [style*="color:#cbd5e1"],
body.theme-light #pgto_resumo_box [style*="color:#cbd5e1"] {
    color: #334155 !important;
}
html[data-theme="light"] #comprasAnexarPagamentoModal label,
body.theme-light #comprasAnexarPagamentoModal label {
    color: #1e293b !important;
}
html[data-theme="light"] #comprasAnexarPagamentoModal div[style*="background:rgba(16,185,129,0.08)"],
body.theme-light #comprasAnexarPagamentoModal div[style*="background:rgba(16,185,129,0.08)"] {
    background: #ecfdf5 !important;
    border: 1px dashed #6ee7b7 !important;
    color: #065f46 !important;
}

/* Modal Enviar ao Financeiro - Tema Claro (v5.7.19) */
html[data-theme="light"] #env_fin_resumo_box,
body.theme-light #env_fin_resumo_box {
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
}
html[data-theme="light"] #env_fin_resumo_box [style*="color:#cbd5e1"],
body.theme-light #env_fin_resumo_box [style*="color:#cbd5e1"] {
    color: #334155 !important;
}
html[data-theme="light"] #comprasEnviarFinanceiroModal label,
body.theme-light #comprasEnviarFinanceiroModal label {
    color: #1e293b !important;
}
html[data-theme="light"] #comprasEnviarFinanceiroModal div[style*="background:rgba(2,132,199,0.08)"],
body.theme-light #comprasEnviarFinanceiroModal div[style*="background:rgba(2,132,199,0.08)"] {
    background: #f0f9ff !important;
    border: 1px dashed #7dd3fc !important;
    color: #0369a1 !important;
}

/* Modal Problemas com a Compra - Tema Claro */
html[data-theme="light"] #comprasProblemasModal,
body.theme-light #comprasProblemasModal {
    background: #ffffff !important;
    border: 1px solid #fca5a5 !important;
    color: #0f172a !important;
}
html[data-theme="light"] #comprasProblemasModal > div:first-child,
body.theme-light #comprasProblemasModal > div:first-child {
    background: #fef2f2 !important;
    border-bottom: 1px solid #fee2e2 !important;
}
html[data-theme="light"] #comprasProblemasModal label,
body.theme-light #comprasProblemasModal label {
    color: #1e293b !important;
}
html[data-theme="light"] #comprasProblemasModal div[style*="background:rgba(255,255,255,0.03)"],
body.theme-light #comprasProblemasModal div[style*="background:rgba(255,255,255,0.03)"] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #comprasProblemasModal div[style*="background:rgba(255,255,255,0.03)"] [style*="color:#94a3b8"],
body.theme-light #comprasProblemasModal div[style*="background:rgba(255,255,255,0.03)"] [style*="color:#94a3b8"] {
    color: #475569 !important;
}
html[data-theme="light"] #comprasProblemasModal div[style*="background:rgba(255,255,255,0.03)"] [style*="color:#cbd5e1"],
body.theme-light #comprasProblemasModal div[style*="background:rgba(255,255,255,0.03)"] [style*="color:#cbd5e1"] {
    color: #334155 !important;
}
html[data-theme="light"] #comprasProblemasModal div[style*="background:rgba(239,68,68,0.06)"],
body.theme-light #comprasProblemasModal div[style*="background:rgba(239,68,68,0.06)"] {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
}
html[data-theme="light"] #comprasProblemasModal div[style*="background:rgba(239,68,68,0.06)"] p,
body.theme-light #comprasProblemasModal div[style*="background:rgba(239,68,68,0.06)"] p {
    color: #334155 !important;
}
html[data-theme="light"] #comprasProblemasModal div[style*="background:rgba(2,132,199,0.08)"],
body.theme-light #comprasProblemasModal div[style*="background:rgba(2,132,199,0.08)"] {
    background: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
}
html[data-theme="light"] #comprasProblemasModal div[style*="background:rgba(2,132,199,0.08)"] p,
body.theme-light #comprasProblemasModal div[style*="background:rgba(2,132,199,0.08)"] p {
    color: #334155 !important;
}
html[data-theme="light"] #comprasProblemasModal div[style*="background:rgba(245,158,11,0.08)"],
body.theme-light #comprasProblemasModal div[style*="background:rgba(245,158,11,0.08)"] {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    color: #92400e !important;
}

html[data-theme="light"] #despacho_modal_titulo,
body.theme-light #despacho_modal_titulo {
    color: #0f172a !important;
}
html[data-theme="light"] #comprasNovaSolicitacaoModal div[style*="background:rgba(0,0,0,0.2)"],
body.theme-light #comprasNovaSolicitacaoModal div[style*="background:rgba(0,0,0,0.2)"] {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] button[id^="wizard-tab-indicator-"]:not([style*="background:#0284c7"]):not([style*="background: #0284c7"]):not([style*="background:#16a34a"]):not([style*="background: #16a34a"]),
body.theme-light button[id^="wizard-tab-indicator-"]:not([style*="background:#0284c7"]):not([style*="background: #0284c7"]):not([style*="background:#16a34a"]):not([style*="background: #16a34a"]) {
    background: #e2e8f0 !important;
    color: #475569 !important;
}
html[data-theme="light"] #comprasNovaSolicitacaoModal div[style*="border:1px solid rgba(255,255,255,0.08)"],
html[data-theme="light"] #comprasNovaSolicitacaoModal div[style*="border: 1px solid rgba(255,255,255,0.08)"],
body.theme-light #comprasNovaSolicitacaoModal div[style*="border:1px solid rgba(255,255,255,0.08)"],
body.theme-light #comprasNovaSolicitacaoModal div[style*="border: 1px solid rgba(255,255,255,0.08)"] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] .card-item-wizard,
body.theme-light .card-item-wizard {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: var(--shadow-xs) !important;
}
html[data-theme="light"] #comprasNovaSolicitacaoModal div[style*="border:1px dashed rgba(255,255,255,0.15)"],
html[data-theme="light"] #comprasNovaSolicitacaoModal div[style*="border: 1px dashed rgba(255,255,255,0.15)"],
body.theme-light #comprasNovaSolicitacaoModal div[style*="border:1px dashed rgba(255,255,255,0.15)"],
body.theme-light #comprasNovaSolicitacaoModal div[style*="border: 1px dashed rgba(255,255,255,0.15)"] {
    background: #f8fafc !important;
    border: 1.5px dashed #94a3b8 !important;
}
html[data-theme="light"] #comprasNovaSolicitacaoModal div[style*="border:1px dashed rgba(255,255,255,0.15)"] div[style*="color:#f8fafc"],
body.theme-light #comprasNovaSolicitacaoModal div[style*="border:1px dashed rgba(255,255,255,0.15)"] div[style*="color:#f8fafc"] {
    color: #0f172a !important;
}
html[data-theme="light"] #comprasNovaSolicitacaoModal div[style*="border:1px dashed rgba(255,255,255,0.15)"] div[style*="color:#94a3b8"],
body.theme-light #comprasNovaSolicitacaoModal div[style*="border:1px dashed rgba(255,255,255,0.15)"] div[style*="color:#94a3b8"] {
    color: #475569 !important;
}
html[data-theme="light"] #comprasNovaSolicitacaoModal div[style*="background:rgba(2,132,199,0.08)"],
body.theme-light #comprasNovaSolicitacaoModal div[style*="background:rgba(2,132,199,0.08)"] {
    background: #e0f2fe !important;
    border: 1px solid #7dd3fc !important;
}
html[data-theme="light"] #comprasNovaSolicitacaoModal span[style*="color:#e2e8f0"],
body.theme-light #comprasNovaSolicitacaoModal span[style*="color:#e2e8f0"] {
    color: #0f172a !important;
}

/* 16.8 Dossiê 360° da Solicitação de Compras (Refinamento Executivo Tema Claro) */
html[data-theme="light"] #comprasDetalhesModal,
body.theme-light #comprasDetalhesModal {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.25) !important;
    color: #0f172a !important;
}
html[data-theme="light"] #header-detalhes-solicitacao-compras,
body.theme-light #header-detalhes-solicitacao-compras {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #header-detalhes-solicitacao-compras h3,
body.theme-light #header-detalhes-solicitacao-compras h3 {
    color: #0369a1 !important;
}
html[data-theme="light"] #btn-toggle-maximizar-compras-360,
body.theme-light #btn-toggle-maximizar-compras-360 {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
html[data-theme="light"] #btn-toggle-maximizar-compras-360:hover,
body.theme-light #btn-toggle-maximizar-compras-360:hover {
    background: #f1f5f9 !important;
    color: #0369a1 !important;
    border-color: #0284c7 !important;
}
html[data-theme="light"] #header-detalhes-solicitacao-compras button[onclick*="closeDetalhesSolicitacaoComprasModal"],
body.theme-light #header-detalhes-solicitacao-compras button[onclick*="closeDetalhesSolicitacaoComprasModal"] {
    color: #475569 !important;
}
html[data-theme="light"] #corpo-detalhes-solicitacao-compras,
body.theme-light #corpo-detalhes-solicitacao-compras {
    background: #ffffff !important;
    color: #0f172a !important;
}
html[data-theme="light"] #corpo-detalhes-solicitacao-compras h2,
html[data-theme="light"] #corpo-detalhes-solicitacao-compras h4,
body.theme-light #corpo-detalhes-solicitacao-compras h2,
body.theme-light #corpo-detalhes-solicitacao-compras h4 {
    color: #0f172a !important;
}
html[data-theme="light"] #corpo-detalhes-solicitacao-compras [style*="color:#cbd5e1"],
body.theme-light #corpo-detalhes-solicitacao-compras [style*="color:#cbd5e1"] {
    color: #334155 !important;
}
html[data-theme="light"] #corpo-detalhes-solicitacao-compras [style*="color:#e2e8f0"],
body.theme-light #corpo-detalhes-solicitacao-compras [style*="color:#e2e8f0"] {
    color: #1e293b !important;
}
html[data-theme="light"] #corpo-detalhes-solicitacao-compras [style*="background:rgba(255,255,255,0.03)"],
html[data-theme="light"] #corpo-detalhes-solicitacao-compras [style*="background:rgba(255,255,255,0.02)"],
body.theme-light #corpo-detalhes-solicitacao-compras [style*="background:rgba(255,255,255,0.03)"],
body.theme-light #corpo-detalhes-solicitacao-compras [style*="background:rgba(255,255,255,0.02)"] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #corpo-detalhes-solicitacao-compras table thead tr,
body.theme-light #corpo-detalhes-solicitacao-compras table thead tr {
    border-bottom: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}
html[data-theme="light"] #corpo-detalhes-solicitacao-compras table tbody tr,
body.theme-light #corpo-detalhes-solicitacao-compras table tbody tr {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

/* Proteção inteligente de contraste em botões primários com cores vibrantes */
html[data-theme="light"] #compras-outlook-content-body button[style*="background:#0284c7"],
html[data-theme="light"] #compras-outlook-content-body button[style*="background:#16a34a"],
html[data-theme="light"] #compras-outlook-content-body button[style*="background:#dc2626"],
html[data-theme="light"] #compras-outlook-content-body button[style*="background:#9333ea"],
html[data-theme="light"] #compras-outlook-content-body button[style*="background:#d97706"],
html[data-theme="light"] #compras-outlook-content-body button[style*="background:#6366f1"],
html[data-theme="light"] #compras-outlook-content-body button[style*="background:linear-gradient"],
body.theme-light #compras-outlook-content-body button[style*="background:#0284c7"],
body.theme-light #compras-outlook-content-body button[style*="background:#16a34a"],
body.theme-light #compras-outlook-content-body button[style*="background:#dc2626"],
body.theme-light #compras-outlook-content-body button[style*="background:#9333ea"],
body.theme-light #compras-outlook-content-body button[style*="background:#d97706"],
body.theme-light #compras-outlook-content-body button[style*="background:#6366f1"],
body.theme-light #compras-outlook-content-body button[style*="background:linear-gradient"],
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:#0284c7"],
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:#16a34a"],
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:#dc2626"],
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:#9333ea"],
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:#d97706"],
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:#6366f1"],
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:#f59e0b"],
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:linear-gradient"],
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:#0284c7"],
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:#16a34a"],
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:#dc2626"],
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:#9333ea"],
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:#d97706"],
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:#6366f1"],
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:#f59e0b"],
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:linear-gradient"] {
    color: #ffffff !important;
}
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:#0284c7"] i,
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:#16a34a"] i,
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:#dc2626"] i,
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:#9333ea"] i,
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:linear-gradient"] i,
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:#0284c7"] i,
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:#16a34a"] i,
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:#dc2626"] i,
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:#9333ea"] i,
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:linear-gradient"] i {
    color: #ffffff !important;
}

/* Botões claros dentro do Dossiê 360 (ex: Copiar Link, Editar Dados, Ajustar Dados) */
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:#ffffff"],
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background: #ffffff"],
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:#f1f5f9"],
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:#e2e8f0"],
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:#ffffff"],
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background: #ffffff"],
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:#f1f5f9"],
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:#e2e8f0"] {
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:#ffffff"]:hover,
html[data-theme="light"] #corpo-detalhes-solicitacao-compras button[style*="background:#f1f5f9"]:hover,
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:#ffffff"]:hover,
body.theme-light #corpo-detalhes-solicitacao-compras button[style*="background:#f1f5f9"]:hover {
    background: #f1f5f9 !important;
    color: #0369a1 !important;
}

/* 16.9 Cabeçalho Superior do Módulo Compras no Tema Claro */
html[data-theme="light"] #seletor-modo-visualizacao-compras,
body.theme-light #seletor-modo-visualizacao-compras {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] #btn-compras-modo-outlook:not([style*="background:#0284c7"]),
html[data-theme="light"] #btn-compras-modo-tabela:not([style*="background:#0284c7"]),
html[data-theme="light"] #btn-compras-modo-dashboard:not([style*="background:#0284c7"]),
body.theme-light #btn-compras-modo-outlook:not([style*="background:#0284c7"]),
body.theme-light #btn-compras-modo-tabela:not([style*="background:#0284c7"]),
body.theme-light #btn-compras-modo-dashboard:not([style*="background:#0284c7"]) {
    color: #475569 !important;
}
html[data-theme="light"] #btn-menu-compras-solicitacoes-nav,
body.theme-light #btn-menu-compras-solicitacoes-nav {
    background: #e0f2fe !important;
    border-color: #7dd3fc !important;
    color: #0369a1 !important;
}
html[data-theme="light"] #btn-menu-compras-faturas,
body.theme-light #btn-menu-compras-faturas {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}
html[data-theme="light"] #btn-menu-compras-faturas:hover,
body.theme-light #btn-menu-compras-faturas:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
}
html[data-theme="light"] #btn-menu-compras-usuarios,
body.theme-light #btn-menu-compras-usuarios {
    background: #f3e8ff !important;
    border-color: #d8b4fe !important;
    color: #7e22ce !important;
}

/* 16.10 Visualizador de Documentos/PDFs (Modal Visualizador Compras) */
html[data-theme="light"] #modalVisualizadorPdfCompras,
body.theme-light #modalVisualizadorPdfCompras {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.3) !important;
}
html[data-theme="light"] #modalVisualizadorPdfCompras > div:first-child,
body.theme-light #modalVisualizadorPdfCompras > div:first-child {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #titulo-visualizador-pdf-compras,
body.theme-light #titulo-visualizador-pdf-compras {
    color: #0f172a !important;
}
html[data-theme="light"] #toolbar-imagem-compras,
body.theme-light #toolbar-imagem-compras {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06) !important;
}
html[data-theme="light"] .btn-img-tool-fa,
body.theme-light .btn-img-tool-fa {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
html[data-theme="light"] .btn-img-tool-fa:hover,
body.theme-light .btn-img-tool-fa:hover {
    background: #e0f2fe !important;
    border-color: #7dd3fc !important;
    color: #0369a1 !important;
}
html[data-theme="light"] #lbl-zoom-imagem-compras,
body.theme-light #lbl-zoom-imagem-compras {
    color: #0369a1 !important;
}

/* 16.11 Modais Financeiros, Despacho, Tratativa e Resposta */
html[data-theme="light"] #comprasGerarFinanceiroModal p,
html[data-theme="light"] #comprasBaixaEstoqueModal p,
body.theme-light #comprasGerarFinanceiroModal p,
body.theme-light #comprasBaixaEstoqueModal p {
    color: #334155 !important;
}

/* Modal Despacho */
html[data-theme="light"] #despacho-resumo-solicitacao,
body.theme-light #despacho-resumo-solicitacao {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}
html[data-theme="light"] #aviso-despacho-email-financeiro,
body.theme-light #aviso-despacho-email-financeiro {
    background: #ecfdf5 !important;
    border: 1px solid #6ee7b7 !important;
    color: #065f46 !important;
}

/* Modal Baixa Estoque */
html[data-theme="light"] #baixa_aviso_finalizacao,
body.theme-light #baixa_aviso_finalizacao {
    background: #ecfdf5 !important;
    border: 1px dashed #6ee7b7 !important;
    color: #065f46 !important;
}
html[data-theme="light"] #baixa_solic_resumo_box,
body.theme-light #baixa_solic_resumo_box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #baixa_solic_resumo_box span[style*="color:#cbd5e1"],
body.theme-light #baixa_solic_resumo_box span[style*="color:#cbd5e1"] {
    color: #334155 !important;
}
html[data-theme="light"] #comprasBaixaEstoqueModal label,
body.theme-light #comprasBaixaEstoqueModal label {
    color: #1e293b !important;
}

/* Modal Definir Tratativa */
html[data-theme="light"] #comprasDefinirTratativaModal div[style*="background:rgba(245,158,11,0.08)"],
body.theme-light #comprasDefinirTratativaModal div[style*="background:rgba(245,158,11,0.08)"] {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    color: #92400e !important;
}
html[data-theme="light"] #comprasDefinirTratativaModal div[style*="background:rgba(245,158,11,0.08)"] span[style*="color:#cbd5e1"],
body.theme-light #comprasDefinirTratativaModal div[style*="background:rgba(245,158,11,0.08)"] span[style*="color:#cbd5e1"] {
    color: #451a03 !important;
}
html[data-theme="light"] #comprasDefinirTratativaModal div[style*="background:rgba(245,158,11,0.08)"] span[style*="color:#fde68a"],
body.theme-light #comprasDefinirTratativaModal div[style*="background:rgba(245,158,11,0.08)"] span[style*="color:#fde68a"] {
    color: #78350f !important;
}
html[data-theme="light"] #comprasDefinirTratativaModal label:has(input[name="tratativa_tipo_escolha"]),
body.theme-light #comprasDefinirTratativaModal label:has(input[name="tratativa_tipo_escolha"]) {
    background: #f8fafc !important;
}
html[data-theme="light"] #comprasDefinirTratativaModal label:has(input[value="TROCA"]),
body.theme-light #comprasDefinirTratativaModal label:has(input[value="TROCA"]) {
    background: #faf5ff !important;
    border-color: #d8b4fe !important;
}
html[data-theme="light"] #comprasDefinirTratativaModal label:has(input[value="DEVOLUCAO"]),
body.theme-light #comprasDefinirTratativaModal label:has(input[value="DEVOLUCAO"]) {
    background: #fff7ed !important;
    border-color: #fed7aa !important;
}
html[data-theme="light"] #comprasDefinirTratativaModal label:has(input[value="CANCELAMENTO"]),
body.theme-light #comprasDefinirTratativaModal label:has(input[value="CANCELAMENTO"]) {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
}
html[data-theme="light"] #comprasDefinirTratativaModal label,
body.theme-light #comprasDefinirTratativaModal label {
    color: #1e293b !important;
}

/* Modal Concluir Tratativa */
html[data-theme="light"] #comprasConcluirTratativaModal div[style*="background:rgba(255,255,255,0.03)"],
body.theme-light #comprasConcluirTratativaModal div[style*="background:rgba(255,255,255,0.03)"] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}
html[data-theme="light"] #comprasConcluirTratativaModal div[style*="background:rgba(255,255,255,0.03)"] span[style*="color:#cbd5e1"],
body.theme-light #comprasConcluirTratativaModal div[style*="background:rgba(255,255,255,0.03)"] span[style*="color:#cbd5e1"] {
    color: #334155 !important;
}
html[data-theme="light"] #concluir_reembolso_box,
body.theme-light #concluir_reembolso_box {
    background: #fffbeb !important;
    border: 1.5px solid #fde68a !important;
}
html[data-theme="light"] #comprasConcluirTratativaModal label,
body.theme-light #comprasConcluirTratativaModal label {
    color: #1e293b !important;
}

/* Modal Confirmar Reembolso */
html[data-theme="light"] #comprasConfirmarReembolsoModal div[style*="background:rgba(16,185,129,0.06)"],
body.theme-light #comprasConfirmarReembolsoModal div[style*="background:rgba(16,185,129,0.06)"] {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
}
html[data-theme="light"] #comprasConfirmarReembolsoModal div[style*="background:rgba(16,185,129,0.06)"] span[style*="color:#cbd5e1"],
body.theme-light #comprasConfirmarReembolsoModal div[style*="background:rgba(16,185,129,0.06)"] span[style*="color:#cbd5e1"] {
    color: #15803d !important;
}
html[data-theme="light"] #comprasConfirmarReembolsoModal div[style*="background:rgba(16,185,129,0.08)"],
body.theme-light #comprasConfirmarReembolsoModal div[style*="background:rgba(16,185,129,0.08)"] {
    background: #ecfdf5 !important;
    border: 1px dashed #6ee7b7 !important;
    color: #065f46 !important;
}
html[data-theme="light"] #comprasConfirmarReembolsoModal label,
body.theme-light #comprasConfirmarReembolsoModal label {
    color: #1e293b !important;
}

/* Modal Resposta Orientação */
html[data-theme="light"] #comprasRespostaOrientacaoModal div[style*="background:rgba(255,255,255,0.03)"],
body.theme-light #comprasRespostaOrientacaoModal div[style*="background:rgba(255,255,255,0.03)"] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}
html[data-theme="light"] #resp_orientacao_texto_gestor,
body.theme-light #resp_orientacao_texto_gestor {
    background: #eef2ff !important;
    border-left: 3px solid #6366f1 !important;
    color: #312e81 !important;
}
html[data-theme="light"] #comprasRespostaOrientacaoModal label,
body.theme-light #comprasRespostaOrientacaoModal label {
    color: #1e293b !important;
}

/* =========================================================================
   TRANSIÇÕES ULTRA-FLUIDAS & GRADATIVAS: CABEÇALHO & BARRA DE RESPOSTA (AGRO)
   ========================================================================= */
.compras-header-collapsible {
    overflow: hidden;
    max-height: 280px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 0.52s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.52s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
                border-bottom-color 0.42s ease;
    box-sizing: border-box;
    will-change: max-height, opacity, transform;
}

.compras-header-collapsible.collapsed {
    max-height: 0 !important;
    opacity: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    transform: translateY(-14px) !important;
    border-bottom-color: transparent !important;
    pointer-events: none !important;
}

.compras-reply-box-collapsible {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
    border-bottom-width: 0 !important;
    transition: max-height 0.52s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
                border-bottom-width 0.42s ease;
    box-sizing: border-box;
    will-change: max-height, opacity, transform;
}

.compras-reply-box-collapsible.expanded {
    max-height: 520px !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    border-bottom-width: 2px !important;
}

/* =========================================================================
   16.9 CENTRAL DE SELEÇÃO DE PARCEIROS & CLASSIFICAÇÃO DE PENDENTES (AGRO)
   ========================================================================= */
html[data-theme="light"] #modalCentralParceirosUnificado,
html[data-theme="light"] #modalEscolherAcaoClassificarPendente,
html[data-theme="light"] #modalVisualizarCadastroParceiro,
html[data-theme="light"] #modalEditarCadastroPendenteBase,
html[data-theme="light"] #modalEscolherTipoNovoCadastro,
html[data-theme="light"] #modalClienteAgro,
html[data-theme="light"] #modalFornecedorAgro,
body.theme-light #modalCentralParceirosUnificado,
body.theme-light #modalEscolherAcaoClassificarPendente,
body.theme-light #modalVisualizarCadastroParceiro,
body.theme-light #modalEditarCadastroPendenteBase,
body.theme-light #modalEscolherTipoNovoCadastro,
body.theme-light #modalClienteAgro,
body.theme-light #modalFornecedorAgro {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 25px 70px rgba(15, 23, 42, 0.22) !important;
    color: #0f172a !important;
    padding: 0 !important;
}

html[data-theme="light"] #modalCentralParceirosUnificado[open],
html[data-theme="light"] #modalEscolherAcaoClassificarPendente[open],
html[data-theme="light"] #modalVisualizarCadastroParceiro[open],
html[data-theme="light"] #modalEditarCadastroPendenteBase[open],
html[data-theme="light"] #modalEscolherTipoNovoCadastro[open],
html[data-theme="light"] #modalClienteAgro[open],
html[data-theme="light"] #modalFornecedorAgro[open],
body.theme-light #modalCentralParceirosUnificado[open],
body.theme-light #modalEscolherAcaoClassificarPendente[open],
body.theme-light #modalVisualizarCadastroParceiro[open],
body.theme-light #modalEditarCadastroPendenteBase[open],
body.theme-light #modalEscolherTipoNovoCadastro[open],
body.theme-light #modalClienteAgro[open],
body.theme-light #modalFornecedorAgro[open] {
    display: flex !important;
    flex-direction: column !important;
}

html[data-theme="light"] #modalCentralParceirosUnificado::backdrop,
html[data-theme="light"] #modalEscolherAcaoClassificarPendente::backdrop,
html[data-theme="light"] #modalVisualizarCadastroParceiro::backdrop,
html[data-theme="light"] #modalEditarCadastroPendenteBase::backdrop,
html[data-theme="light"] #modalEscolherTipoNovoCadastro::backdrop,
html[data-theme="light"] #modalClienteAgro::backdrop,
html[data-theme="light"] #modalFornecedorAgro::backdrop,
body.theme-light #modalCentralParceirosUnificado::backdrop,
body.theme-light #modalEscolherAcaoClassificarPendente::backdrop,
body.theme-light #modalVisualizarCadastroParceiro::backdrop,
body.theme-light #modalEditarCadastroPendenteBase::backdrop,
body.theme-light #modalEscolherTipoNovoCadastro::backdrop,
body.theme-light #modalClienteAgro::backdrop,
body.theme-light #modalFornecedorAgro::backdrop {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(5px) !important;
}

/* Modal Central: Cabeçalho & Abas */
html[data-theme="light"] #header-central-parceiros,
body.theme-light #header-central-parceiros {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #header-central-parceiros h3,
body.theme-light #header-central-parceiros h3 {
    color: #0f172a !important;
}
html[data-theme="light"] #subtitulo-central-parceiros,
body.theme-light #subtitulo-central-parceiros {
    color: #475569 !important;
}
html[data-theme="light"] #tabs-central-parceiros,
body.theme-light #tabs-central-parceiros {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #cbd5e1 !important;
}
html[data-theme="light"] #bar-busca-central-parceiros,
body.theme-light #bar-busca-central-parceiros {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #thead-central-parceiros th,
body.theme-light #thead-central-parceiros th {
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-weight: 800 !important;
}
html[data-theme="light"] #footer-central-parceiros,
body.theme-light #footer-central-parceiros {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #txt-dica-rodape-parceiros,
body.theme-light #txt-dica-rodape-parceiros {
    color: #475569 !important;
}

/* Modal Conferência & Classificação */
html[data-theme="light"] #header-classificar-pendente,
body.theme-light #header-classificar-pendente {
    background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
    border-bottom: 1px solid #fed7aa !important;
}
html[data-theme="light"] #header-classificar-pendente h3,
body.theme-light #header-classificar-pendente h3 {
    color: #78350f !important;
}
html[data-theme="light"] #header-classificar-pendente p,
body.theme-light #header-classificar-pendente p {
    color: #92400e !important;
}
html[data-theme="light"] #corpo-classificar-pendente,
body.theme-light #corpo-classificar-pendente {
    background: #ffffff !important;
}
html[data-theme="light"] #corpo-classificar-pendente .modal-classif-card,
body.theme-light #corpo-classificar-pendente .modal-classif-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #corpo-classificar-pendente .modal-classif-card h4,
body.theme-light #corpo-classificar-pendente .modal-classif-card h4 {
    color: #0369a1 !important;
}
html[data-theme="light"] #corpo-classificar-pendente label,
body.theme-light #corpo-classificar-pendente label {
    color: #334155 !important;
}
html[data-theme="light"] #corpo-classificar-pendente input.input-dark,
html[data-theme="light"] #corpo-classificar-pendente select.input-dark,
html[data-theme="light"] #corpo-classificar-pendente textarea.input-dark,
body.theme-light #corpo-classificar-pendente input.input-dark,
body.theme-light #corpo-classificar-pendente select.input-dark,
body.theme-light #corpo-classificar-pendente textarea.input-dark {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
html[data-theme="light"] #corpo-classificar-pendente input.input-dark:focus,
html[data-theme="light"] #corpo-classificar-pendente select.input-dark:focus,
html[data-theme="light"] #corpo-classificar-pendente textarea.input-dark:focus,
body.theme-light #corpo-classificar-pendente input.input-dark:focus,
body.theme-light #corpo-classificar-pendente select.input-dark:focus,
body.theme-light #corpo-classificar-pendente textarea.input-dark:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}
html[data-theme="light"] #footer-classificar-pendente,
body.theme-light #footer-classificar-pendente {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* Modal Visualizar Parceiro */
html[data-theme="light"] #header-visualizar-parceiro,
body.theme-light #header-visualizar-parceiro {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #header-visualizar-parceiro h3,
body.theme-light #header-visualizar-parceiro h3 {
    color: #0f172a !important;
}
html[data-theme="light"] #corpo-visualizar-parceiro,
body.theme-light #corpo-visualizar-parceiro {
    background: #ffffff !important;
}
html[data-theme="light"] #corpo-visualizar-parceiro .modal-view-card,
body.theme-light #corpo-visualizar-parceiro .modal-view-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}
html[data-theme="light"] #corpo-visualizar-parceiro .modal-view-card h4,
body.theme-light #corpo-visualizar-parceiro .modal-view-card h4 {
    color: #0369a1 !important;
}
html[data-theme="light"] #corpo-visualizar-parceiro .modal-view-card span,
body.theme-light #corpo-visualizar-parceiro .modal-view-card span {
    color: #475569 !important;
}
html[data-theme="light"] #corpo-visualizar-parceiro .modal-view-card strong,
body.theme-light #corpo-visualizar-parceiro .modal-view-card strong {
    color: #0f172a !important;
}
html[data-theme="light"] #footer-visualizar-parceiro,
body.theme-light #footer-visualizar-parceiro {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

/* Modal Editar Pendente Base */
html[data-theme="light"] #header-editar-pendente,
body.theme-light #header-editar-pendente {
    background: #fffbeb !important;
    border-bottom: 1px solid #fef3c7 !important;
}
html[data-theme="light"] #header-editar-pendente h4,
body.theme-light #header-editar-pendente h4 {
    color: #b45309 !important;
}
html[data-theme="light"] #formEditarCadastroPendenteBase,
body.theme-light #formEditarCadastroPendenteBase {
    background: #ffffff !important;
}
html[data-theme="light"] #formEditarCadastroPendenteBase label,
body.theme-light #formEditarCadastroPendenteBase label {
    color: #334155 !important;
}
html[data-theme="light"] #formEditarCadastroPendenteBase input.input-dark,
html[data-theme="light"] #formEditarCadastroPendenteBase select.input-dark,
html[data-theme="light"] #formEditarCadastroPendenteBase textarea.input-dark,
body.theme-light #formEditarCadastroPendenteBase input.input-dark,
body.theme-light #formEditarCadastroPendenteBase select.input-dark,
body.theme-light #formEditarCadastroPendenteBase textarea.input-dark {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

/* Modais de Cadastro de Cliente e Fornecedor */
html[data-theme="light"] #modalClienteAgro > div,
body.theme-light #modalClienteAgro > div,
html[data-theme="light"] #modalFornecedorAgro > div,
body.theme-light #modalFornecedorAgro > div {
    background: #ffffff !important;
    color: #0f172a !important;
}
html[data-theme="light"] #modalClienteAgro h3#modalClienteAgroTitulo,
body.theme-light #modalClienteAgro h3#modalClienteAgroTitulo,
html[data-theme="light"] #tituloModalFornecedorAgro,
body.theme-light #tituloModalFornecedorAgro {
    color: #0f172a !important;
}
html[data-theme="light"] #modalClienteAgro label,
body.theme-light #modalClienteAgro label,
html[data-theme="light"] #modalFornecedorAgro label,
body.theme-light #modalFornecedorAgro label {
    color: #334155 !important;
}
html[data-theme="light"] #formClienteAgro,
body.theme-light #formClienteAgro,
html[data-theme="light"] #formFornecedorAgro,
body.theme-light #formFornecedorAgro {
    background: #ffffff !important;
}
html[data-theme="light"] #modalClienteAgro div[style*="border-top:1px solid rgba(255,255,255,0.1)"],
body.theme-light #modalClienteAgro div[style*="border-top:1px solid rgba(255,255,255,0.1)"] {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}





