/* =====================================================================
   MODO NOITE — ligado por <html class="noite"> (ver index.php e app.js)
   Sobrescreve as classes Tailwind usadas no sistema. Só na tela:
   a impressão sai sempre no modo dia. As folhas de relatório (.folha)
   continuam brancas, como papel.
   ===================================================================== */
@media screen {
html.noite { color-scheme: dark; }
html.noite body { background:#17191B; color:#E4E7E8; }
html.noite .folha { color:#1E293B; }

/* fundos e bordas neutros */
html.noite .bg-marca-50:not(.folha):not(.folha *), html.noite .hover\:bg-marca-50:not(.folha):not(.folha *):hover { background-color:#17191B; }
html.noite .bg-white:not(.folha):not(.folha *) { background-color:#212427; }
html.noite .bg-slate-50:not(.folha):not(.folha *), html.noite .hover\:bg-slate-50:not(.folha):not(.folha *):hover { background-color:#1C1F21; }
html.noite .bg-slate-100:not(.folha):not(.folha *) { background-color:#2A2E31; }
html.noite .bg-slate-200:not(.folha):not(.folha *) { background-color:#33373B; }
html.noite .border-slate-100:not(.folha):not(.folha *), html.noite .divide-slate-100:not(.folha):not(.folha *) > * + * { border-color:#2A2E31; }
html.noite .border-slate-200:not(.folha):not(.folha *) { border-color:#33373B; }
html.noite .border-slate-300:not(.folha):not(.folha *) { border-color:#454A4F; }
/* bordas coloridas (vêm depois das neutras pra valerem mais) */
html.noite .border-marca-600:not(.folha):not(.folha *) { border-color:#E3B04B; }
html.noite .border-sky-600:not(.folha):not(.folha *) { border-color:#0284C7; }
html.noite .border-violet-500:not(.folha):not(.folha *) { border-color:#8B5CF6; }
html.noite .border-rose-600:not(.folha):not(.folha *) { border-color:#E11D48; }
html.noite .border-amber-500:not(.folha):not(.folha *) { border-color:#F59E0B; }
html.noite .border-sky-500:not(.folha):not(.folha *) { border-color:#0EA5E9; }
html.noite .border-rose-500:not(.folha):not(.folha *) { border-color:#F43F5E; }
html.noite .border-emerald-500:not(.folha):not(.folha *) { border-color:#10B981; }

/* textos */
html.noite .text-slate-800:not(.folha):not(.folha *) { color:#E4E7E8; }
html.noite .text-slate-700:not(.folha):not(.folha *) { color:#D3D7D9; }
html.noite .text-slate-600:not(.folha):not(.folha *) { color:#B9BFC2; }
html.noite .text-slate-500:not(.folha):not(.folha *) { color:#9CA4A8; }
html.noite .text-slate-400:not(.folha):not(.folha *) { color:#7F878C; }

/* marca */
html.noite .text-marca-900:not(.folha):not(.folha *) { color:#F0F2F3; }
html.noite .text-marca-800:not(.folha):not(.folha *), html.noite .hover\:text-marca-800:not(.folha):not(.folha *):hover { color:#C7CDD0; }
html.noite .bg-marca-800:not(.folha):not(.folha *) { background-color:#50575C; }
html.noite .hover\:bg-marca-900:not(.folha):not(.folha *):hover { background-color:#5E666B; }
html.noite .bg-marca-100:not(.folha):not(.folha *) { background-color:#2C3134; }
html.noite .bg-marca-600.text-marca-900:not(.folha):not(.folha *) { color:#1B2433; }   /* botão dourado: letra escura */

/* campos */
html.noite input:not([type=checkbox]):not([type=radio]):not([type=file]), html.noite select, html.noite textarea {
  background-color:#1A1D1F; color:#E4E7E8; }
html.noite input::placeholder, html.noite textarea::placeholder { color:#7F878C; }

/* cores de alerta: fundo translúcido, texto mais claro */
html.noite .bg-rose-50:not(.folha):not(.folha *), html.noite .hover\:bg-rose-50:not(.folha):not(.folha *):hover { background-color:rgba(244,63,94,.13); }
html.noite .bg-rose-50\/40:not(.folha):not(.folha *) { background-color:rgba(244,63,94,.07); }
html.noite .bg-rose-100:not(.folha):not(.folha *) { background-color:rgba(244,63,94,.22); }
html.noite .text-rose-700:not(.folha):not(.folha *) { color:#FB7185; }
html.noite .text-rose-800:not(.folha):not(.folha *) { color:#FDA4AF; }
html.noite .border-rose-200:not(.folha):not(.folha *) { border-color:rgba(251,113,133,.35); }
html.noite .bg-amber-50:not(.folha):not(.folha *) { background-color:rgba(245,158,11,.13); }
html.noite .text-amber-700:not(.folha):not(.folha *) { color:#FBBF24; }
html.noite .text-amber-900:not(.folha):not(.folha *) { color:#FDE68A; }
html.noite .border-amber-200:not(.folha):not(.folha *) { border-color:rgba(251,191,36,.35); }
html.noite .bg-emerald-50:not(.folha):not(.folha *) { background-color:rgba(16,185,129,.13); }
html.noite .bg-emerald-100:not(.folha):not(.folha *) { background-color:rgba(16,185,129,.22); }
html.noite .text-emerald-700:not(.folha):not(.folha *) { color:#34D399; }
html.noite .text-emerald-800:not(.folha):not(.folha *) { color:#6EE7B7; }
html.noite .border-emerald-200:not(.folha):not(.folha *) { border-color:rgba(52,211,153,.35); }
html.noite .bg-sky-50:not(.folha):not(.folha *) { background-color:rgba(14,165,233,.13); }
html.noite .text-sky-700:not(.folha):not(.folha *) { color:#38BDF8; }
html.noite .text-sky-800:not(.folha):not(.folha *) { color:#7DD3FC; }
html.noite .border-sky-200:not(.folha):not(.folha *) { border-color:rgba(56,189,248,.35); }
html.noite .bg-violet-50:not(.folha):not(.folha *) { background-color:rgba(139,92,246,.15); }
html.noite .text-violet-700:not(.folha):not(.folha *) { color:#A78BFA; }
html.noite .bg-orange-50:not(.folha):not(.folha *) { background-color:rgba(249,115,22,.13); }
html.noite .text-orange-700:not(.folha):not(.folha *) { color:#FB923C; }

/* cliente e parte contrária */
html.noite .text-blue-800:not(.folha):not(.folha *) { color:#8FB2FF; }
html.noite .text-\[\#7B1E2E\]:not(.folha):not(.folha *) { color:#E8909F; }

/* topo: azul-tinta escuro com faixa dourada */
html.noite .topo { background-color:#141C28; border-bottom:4px solid #E3B04B; }
html.noite .topo .text-marca-900 { color:#F4EFE3; }
html.noite .topo [class*="text-marca-900/"] { color:rgba(244,239,227,.82); }
html.noite .topo [class*="border-marca-900/"] { border-color:#3A4660; }
html.noite .topo .sec-on { background-color:#E3B04B; border-color:#E3B04B; color:#1B2433; }
html.noite .topo input { background-color:#0E141E; border-color:#3A4660; color:#FFFFFF; }
html.noite .topo input::placeholder { color:rgba(226,220,205,.6); }
}
