
/* EVON — temas. Aplicado depois de evon.css. */
:root { color-scheme:light; }
html[data-evon-theme="light"] {
 --blue:#0B1F3B; --aqua:#00C2A8; --ink:#0B1F3B; --paper:#fff;
 --canvas:#F5F7FA; --line:#E5EAF0; --muted:#566476; --wash:#E7F7F4;
}
html[data-evon-theme="dark"] {
 color-scheme:dark;
 --blue:#0B1F3B; --aqua:#00C2A8; --ink:#EAF2FA; --paper:#172A43;
 --canvas:#081629; --line:#31465E; --muted:#B4C4D6; --wash:#173C43;
}
html[data-evon-theme="dark"] body { background:#081629; color:#EAF2FA; }
html[data-evon-theme="dark"] main,
html[data-evon-theme="dark"] #conteudo {background:#081629;color:#EAF2FA;}
html[data-evon-theme="dark"] :is(.card,.panel,.box,.filters,.filter-bar,.table-wrap,.login-card,.modal-content,.form-card,.metric,.stats-card,.bulk-collapse,form) {
 background-color:#172A43; color:#EAF2FA; border-color:#31465E;
}
html[data-evon-theme="dark"] :is(table,thead,tbody,tr,td,th) {border-color:#31465E;color:#EAF2FA;}
html[data-evon-theme="dark"] th {background:#203650;color:#F2F7FD;}
html[data-evon-theme="dark"] tbody tr {background:#172A43;}
html[data-evon-theme="dark"] tbody tr:nth-child(even) {background:#1B304B;}
html[data-evon-theme="dark"] tbody tr:hover {background:#244760;}
html[data-evon-theme="dark"] :is(input,select,textarea) {
 background:#0D2038 !important; color:#F2F7FD !important; border-color:#45617D !important;
}
html[data-evon-theme="dark"] :is(input,textarea)::placeholder {color:#A9BACB;}
html[data-evon-theme="dark"] :is(h1,h2,h3,h4,h5,h6,label,strong,summary) {color:#F2F7FD;}
html[data-evon-theme="dark"] :is(p,small,td,li) {color:inherit;}
html[data-evon-theme="dark"] a:not(.site-header a):not(.site-sidebar a):not(.primary):not(.btn) {color:#5CE4D3;}
html[data-evon-theme="dark"] :is(.secondary,button.secondary) {background:#203650;color:#F2F7FD;border-color:#45617D;}
html[data-evon-theme="dark"] :is(.secondary,button.secondary):hover {background:#2B4864;}
html[data-evon-theme="dark"] .site-footer {background:#0B1F3B;color:#C4D1DF;border-top-color:#31465E;}
html[data-evon-theme="light"] .site-header {background:#FFFFFF;border-bottom:3px solid #00C2A8;}
html[data-evon-theme="light"] .site-header :is(.identity,.brand,.brand:hover,.evon-product,.identity strong) {color:#0B1F3B;}
html[data-evon-theme="light"] .site-header .identity small {color:#566476;}
html[data-evon-theme="light"] .site-header nav a,
html[data-evon-theme="light"] .site-header nav a:hover {color:#0B1F3B;}
html[data-evon-theme="light"] .site-header nav a:hover {background:#E7F7F4;}
html[data-evon-theme="light"] .site-header .menu-control {color:#0B1F3B;border-color:#BAC8D5;}
html[data-evon-theme="light"] .site-header .menu-control:hover {color:#0B1F3B;background:#E7F7F4;}
html[data-evon-theme="light"] .evon-brand .evon-product {color:#0B1F3B;border-left-color:#C6D0DA;}
html[data-evon-theme="light"] .site-sidebar,
html[data-evon-theme="light"] .site-sidebar::before,
html[data-evon-theme="light"] .site-sidebar .sidebar-content {background:#F1F5F9 !important;color:#0B1F3B;border-color:#D4DEE8;}
html[data-evon-theme="light"] .site-sidebar :is(.sidebar-caption,.sidebar-group>summary,.sidebar-links a) {color:#0B1F3B;}
html[data-evon-theme="light"] .site-sidebar :is(.sidebar-group>summary:hover,.sidebar-links a:hover) {background:#E0EAF0;color:#0B1F3B;}
html[data-evon-theme="light"] .site-sidebar .sidebar-links a[aria-current="page"] {background:#D5F4ED;color:#064E47;}
html[data-evon-theme="light"] .operation-count {background:#DCE7EF;color:#0B1F3B;}
.evon-theme-picker {display:inline-flex;align-items:center;gap:6px;margin:0 8px;}
.evon-theme-picker label {color:inherit;font-size:12px;white-space:nowrap;font-weight:600;}
.evon-theme-picker select {min-width:125px;padding:8px 9px;border:1px solid #66819A;border-radius:8px;background:#112D4A;color:#FFFFFF;font-size:13px;cursor:pointer;}
html[data-evon-theme="light"] .evon-theme-picker select {background:#FFFFFF;color:#0B1F3B;border-color:#BAC8D5;}
.evon-theme-picker select:focus-visible {outline:3px solid #00C2A8;outline-offset:2px;}
@media(max-width:700px) {.evon-theme-picker {margin:5px 0}.evon-theme-picker label {display:none}.evon-theme-picker select {min-width:110px;}}
@media print {.evon-theme-picker {display:none!important;}}

/* EVON DARK FIX V2: only dark, never light/hybrid. */
html[data-evon-theme="dark"] {
 --evon-dark-surface:#172A43;
 --evon-dark-input:#10233D;
 --evon-dark-border:#37516D;
 --evon-dark-text:#F1F6FC;
 --evon-dark-muted:#B9CADD;
}
html[data-evon-theme="dark"] :is(details,details>summary,.cw-wizard,.croqui-wizard,.cw-hero,.cw-step,.cw-meta,.cw-reference,.cw-section-note,.cw-status,.cw-actions,.cw-stephead,.cw-tabs,.cw-field,.pre-panel,.pre-info,.pre-form-card,.vp-head,.vp-grid,.vp-item,.vp-foot,.vp-note,.pre-fields,.pre-actions,.pre-heading,.pre-field,.bulk-collapse,.section,.card,.toolbar,.pre-table,.point-select) {
 background-color:var(--evon-dark-surface)!important;
 color:var(--evon-dark-text)!important;
 border-color:var(--evon-dark-border)!important;
}
html[data-evon-theme="dark"] :is(details>summary,details>summary *, .cw-hero *, .cw-stephead *, .cw-reference *, .cw-section-note *, .cw-meta *, .pre-panel *, .pre-info *, .pre-heading *, .vp-head *, .vp-note *, .cw-field label,.pre-field label) {
 color:var(--evon-dark-text)!important;
}
html[data-evon-theme="dark"] :is(.muted,.cw-muted,.cw-small,.planning-subtext,.pre-field small,.cw-field small) {color:var(--evon-dark-muted)!important;}
html[data-evon-theme="dark"] :is(.cw-tab,.cw-secondary,.vp-btn.secondary,button.secondary,.cw-actions button:not(.primary)) {
 background:#233C59!important;color:#F1F6FC!important;border-color:#486580!important;
}
html[data-evon-theme="dark"] :is(.cw-tab.active,.cw-tab[aria-selected="true"],.cw-tab.is-active) {background:#087F91!important;color:white!important;}
html[data-evon-theme="dark"] :is(.cw-grid,.cw-field,.cw-area,.cw-wide,.cw-obs-list,.cw-obs-head,.pre-fields,.pre-field,.vp-grid,.vp-item) {border-color:var(--evon-dark-border)!important;}
html[data-evon-theme="dark"] :is(input,textarea,select) {background:#10233D!important;color:#F1F6FC!important;border:1px solid #486580!important;}
html[data-evon-theme="dark"] :is(input,textarea)::placeholder {color:#B8C8D8!important;opacity:1;}
html[data-evon-theme="dark"] :is(details>summary,summary) {background:#233C59!important;color:#F1F6FC!important;cursor:pointer;}
html[data-evon-theme="dark"] :is(.cw-section-note,.cw-reference,.vp-note,.pre-info,.pre-panel) :is(p,small,span,strong,label,h2,h3,h4) {color:#F1F6FC!important;}
html[data-evon-theme="dark"] :is(.cw-section-note,.cw-reference,.vp-note) {background:#213B55!important;}
html[data-evon-theme="dark"] :is(.vp-badge,.cw-status) {color:#F1F6FC!important;}
html[data-evon-theme="dark"] :is(.cw-step,.cw-hero,.pre-panel) :is(a) {color:#5CE4D3!important;}
html[data-evon-theme="dark"] :is(button:disabled,[aria-disabled="true"]) {opacity:.6;cursor:not-allowed;}

/* EVON DARK FIX V3 — área calculada e campos de resultado do croqui */
html[data-evon-theme="dark"] .cw-area,
html[data-evon-theme="dark"] .cw-hero .cw-area,
html[data-evon-theme="dark"] .cw-step .cw-area {
  background-color:#233C59 !important;
  color:#F1F6FC !important;
  border:1px solid #486580 !important;
}
html[data-evon-theme="dark"] .cw-area *,
html[data-evon-theme="dark"] .cw-area span,
html[data-evon-theme="dark"] .cw-area output {
  color:#F1F6FC !important;
  background-color:transparent !important;
}
html[data-evon-theme="dark"] .cw-area output {
  font-weight:700;
}

/* EVON DARK ALERTS V4: corrigir alertas do croqui sem ocultar avisos */
html[data-evon-theme="dark"] .croqui-wizard .cw-error,
html[data-evon-theme="dark"] .croqui-wizard .cw-error[role="alert"],
html[data-evon-theme="dark"] .croqui-wizard [data-croqui-live-warning],
html[data-evon-theme="dark"] .croqui-wizard [data-croqui-version-warning] {
  background-color:#42252E !important;
  color:#FFE3E3 !important;
  border:1px solid #D77883 !important;
  border-left:4px solid #F18A92 !important;
  border-radius:10px !important;
}
html[data-evon-theme="dark"] .croqui-wizard .cw-error :is(strong,b,span,li,p,div,small),
html[data-evon-theme="dark"] .croqui-wizard [data-croqui-live-warning] *,
html[data-evon-theme="dark"] .croqui-wizard [data-croqui-version-warning] * {
  color:#FFE3E3 !important;
}
html[data-evon-theme="dark"] .croqui-wizard .cw-error[hidden],
html[data-evon-theme="dark"] .croqui-wizard [data-croqui-live-warning][hidden],
html[data-evon-theme="dark"] .croqui-wizard [data-croqui-version-warning][hidden] {
  display:none !important;
}
