/* ===== 20261117-contraste-global · VIPSYS =====
   Carregado POR ÚLTIMO em todas as páginas. Regra única por SUPERFÍCIE:
   fundo escuro => tinta clara; fundo claro => tinta escura.
   A especificidade html:not(#cgN)x6 vence as guardas antigas (task-682 / 775, que usam até 3 IDs).
   O contrast-enforcer.js marca automaticamente qualquer texto que ainda fique < 4.5:1. */
:root{--cg-ink-dark:#071827;--cg-ink-dark-muted:#3f4d5c;--cg-ink-light:#f7f9fb;--cg-ink-light-muted:#d4dee7;--cg-ph-dark-field:#b8c7d6;--cg-ph-light-field:#5b6878}

/* 1) Rede de segurança automática (contrast-enforcer.js). */
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6):not(#cg7) .cg-on-dark{color:var(--cg-ink-light)!important;-webkit-text-fill-color:var(--cg-ink-light)!important;opacity:1!important;text-shadow:none!important}
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6):not(#cg7) .cg-on-light{color:var(--cg-ink-dark)!important;-webkit-text-fill-color:var(--cg-ink-dark)!important;opacity:1!important;text-shadow:none!important}
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6):not(#cg7) .cg-field-dark::placeholder{color:var(--cg-ph-dark-field)!important;-webkit-text-fill-color:var(--cg-ph-dark-field)!important;opacity:1!important}

/* 2) Causa raiz do modal "Trocar veículo": cartões AZUIS dentro do #form-fields creme.
   admin-modern.css pinta estes cartões de navy, mas contrast-guard.css (task-682, linha ~480)
   força #1a1a1a!important em TODO label/p/small/span/b/strong do #form-fields. */
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) dialog :is(.vehicle-change-panel,.reservation-payment-panel,.checklist-photos,.confirm-box,.maintenance-referral,.fuel-level-field,.extension-notify,.maintenance-estimate-total){color:var(--cg-ink-light)!important;-webkit-text-fill-color:var(--cg-ink-light)!important}
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) dialog :is(.vehicle-change-panel,.reservation-payment-panel,.checklist-photos,.confirm-box,.maintenance-referral,.fuel-level-field,.extension-notify,.maintenance-estimate-total) :is(label,legend,p,span:not(.badge):not(.status),b,strong,h3,h4,div:not(.vehicle-typeahead-list):not(.vehicle-typeahead-option)){color:var(--cg-ink-light)!important;-webkit-text-fill-color:var(--cg-ink-light)!important;opacity:1!important}
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) dialog :is(.vehicle-change-panel,.reservation-payment-panel,.checklist-photos,.confirm-box,.maintenance-referral,.fuel-level-field,.extension-notify,.maintenance-estimate-total) small,
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) dialog :is(.vehicle-change-panel,.reservation-payment-panel) .easy-when :is(.easy-date,.easy-clock)>span{color:var(--cg-ink-light-muted)!important;-webkit-text-fill-color:var(--cg-ink-light-muted)!important;opacity:1!important}
/* Campos brancos dentro desses cartões continuam com tinta escura. */
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) dialog :is(.vehicle-change-panel,.reservation-payment-panel,.checklist-photos,.maintenance-referral,.fuel-level-field,.extension-notify) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){color:#0b2e4f!important;-webkit-text-fill-color:#0b2e4f!important}
/* Botões de foto: fundo navy fixo (antes texto branco sobre botão branco = 1:1). */
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) dialog #form-fields :is(.upload-button,.camera-button){background:#123653!important;background-image:none!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#c9a45c!important}

/* 3) Overflow do input de data (Safari/iPhone dá largura mínima intrínseca ao type=date). */
.easy-when input[type=date],.easy-when input[type=time],input[type=date],input[type=datetime-local]{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;-webkit-appearance:none;appearance:none;display:block}
.easy-when input[type=date]::-webkit-date-and-time-value{text-align:left;min-width:0}
.vehicle-change-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto!important}
.vehicle-change-panel>label,.easy-when,.easy-date,.easy-clock,label:has(.easy-when){min-width:0!important}
@media(max-width:760px){.vehicle-change-panel{grid-template-columns:minmax(0,1fr)!important}}

/* 4) Ocorrências pontuais encontradas na varredura (também cobertas pela rede automática). */
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) #content .rpt-hero h2{color:var(--cg-ink-light)!important;-webkit-text-fill-color:var(--cg-ink-light)!important}
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) #content .empty h3{color:var(--cg-ink-dark)!important;-webkit-text-fill-color:var(--cg-ink-dark)!important}
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) #content .fleet-hscroll-label{color:#4f5d6c!important;-webkit-text-fill-color:#4f5d6c!important}
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) #content .mobile-card-table td :is(small,.reservation-vehicle-details small,.fleet-vehicle-cell span,.fleet-vehicle-cell small){color:#3f4d5c!important;-webkit-text-fill-color:#3f4d5c!important}
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) #content .extension-metrics .metric-card :is(small,span){color:var(--cg-ink-light-muted)!important;-webkit-text-fill-color:var(--cg-ink-light-muted)!important}
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) #content .email-brand small{color:var(--cg-ink-light-muted)!important;-webkit-text-fill-color:var(--cg-ink-light-muted)!important}
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) #content .customer-finance-summary .received small{color:#fff3cf!important;-webkit-text-fill-color:#fff3cf!important}
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) .checklist-row-actions button.primary.mini{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#a8323b!important;background-image:none!important}
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) dialog #form-fields .promo-categories p{color:#4f5d6c!important;-webkit-text-fill-color:#4f5d6c!important}
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) :is(#content,dialog) :is(input,textarea)::placeholder{opacity:1!important}
/* Páginas públicas. */
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) .trip-day.is-range{color:#071827!important;-webkit-text-fill-color:#071827!important}
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) #apply-promo{color:#071827!important;-webkit-text-fill-color:#071827!important}
html:has(link[href*="book.css"]) body>footer{color:#aab6c3!important}
.screen-actions{flex-wrap:wrap;min-width:0}.screen-actions>button{min-width:0;max-width:100%}
/* Verde Oasis/mecânico: #298b46 com branco = 4.31 → #23793d = 5.4. */
html:has(link[href*="maintenance-test.css"]) :is(.lang button.on,.actions button),
html:has(link[href*="maintenance-order.css"]) #complete,
html:has(link[href*="oasis-autofix.css"]) #login-form button{background:#23793d!important;background-image:none!important;color:#fff!important}
/* Ouro pequeno sobre claro (portal/investidor/pedágio). */
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) :is(.auth-copy>span,body>header small,#login>small){color:#7d5d1f!important;-webkit-text-fill-color:#7d5d1f!important}
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) .payment-shell>footer{color:#b9c7d3!important}
html:not(#cg1):not(#cg2):not(#cg3):not(#cg4):not(#cg5):not(#cg6) .payment-shell>header.brand>span{color:#e7c47a!important}
/* ===== fim 20261117-contraste-global ===== */
