/* ============ Modo escuro — cores fixas convertidas (gerado por tools/gen_dark.py a partir de assets/css/*.css e dos <style> das páginas).
   Não edite à mão: ajustes manuais ficam em app.css (tokens) e no fim de dark-fixes.css. ============ */

/* --- assets/css/app.css --- */
html[data-theme="dark"] ::-webkit-scrollbar-thumb{background:#494c50}
html[data-theme="dark"] .btn-danger:hover{background:#301717}
html[data-theme="dark"] .kcard:hover{border-color:#3e4146}
html[data-theme="dark"] .kcard.rotting{background:#332515}
html[data-theme="dark"] .k-next.overdue{background:#301717}
html[data-theme="dark"] .k-next.soon{background:#152733}
html[data-theme="dark"] .note-item{background:#342e15}
html[data-theme="dark"] .note-item .note-text{color:#e5b79c}
html[data-theme="dark"] .cu-list:hover{border-color:#3e4146}
html[data-theme="dark"] .flash-ok{background:#183126;color:#b4f0df}
html[data-theme="dark"] .flash-err{background:#301717;color:#db8a8a}
html[data-theme="dark"] .camp-card:hover{border-color:#3e4146}
html[data-theme="dark"] .st-pending{background:#172a36;color:#7bc3ea}
html[data-theme="dark"] .st-overdue{background:#351717;color:#dd8888}
html[data-theme="dark"] .st-done{background:#1a3623;color:#94dfb0}
html[data-theme="dark"] .fb-x:hover{background:#351717}
html[data-theme="dark"] .fb-on{color:#94dfb0}
html[data-theme="dark"] .fb-add:hover{background:#152233}
html[data-theme="dark"] .fb-pill:hover{border-color:#3a414a}
html[data-theme="dark"] .fb-box{border:1.5px solid #3a414a}
html[data-theme="dark"] .fb-chip{background:#152233;color:#879ede;border:1px solid #1f324c}
html[data-theme="dark"] .fb-chip .fbc-x{color:#879ede}
html[data-theme="dark"] .seg-n.warn{background:#351717;color:#dd8888}
html[data-theme="dark"] .tlx-item:hover{border-color:#393d42}
html[data-theme="dark"] .tlx-tile.t-whatsapp{background:#1d2f24}
html[data-theme="dark"] .tlx-tile.t-note{background:#3d361a;color:#e6ac7f}
html[data-theme="dark"] .tlx-tile.t-call{background:#212429;color:#a8afbd}
html[data-theme="dark"] .tlx-tile.t-call.ok{background:#183123;color:#a0edcc}
html[data-theme="dark"] .tlx-tile.t-email{background:#151c33}
html[data-theme="dark"] .tlx-tile.t-warn{background:#351717;color:#dd8888}
html[data-theme="dark"] .tlx-err{color:#dd8888}
html[data-theme="dark"] .tlx-state.s-sched{background:#152233;color:#879ede}
html[data-theme="dark"] .tlx-state.s-ok{background:#183123;color:#a0edcc}
html[data-theme="dark"] .tlx-state.s-fail{background:#301917;color:#de8d87}
html[data-theme="dark"] .tlx-state.s-me{background:#342c15;color:#e7a47e}
html[data-theme="dark"] .camp-live{border:1px solid color-mix(in srgb,var(--fc) 35%,#2b2b2b);background:color-mix(in srgb,var(--fc) 8%,#171717)}
html[data-theme="dark"] .tlx-item.k-note{background:#322c14}
html[data-theme="dark"] .is-overdue .tlx-when{color:#de8d87}
html[data-theme="dark"] .tlx-item.is-failed{background:#301914}
html[data-theme="dark"] .tlx-flow > summary:hover{background:#1f1f25}
html[data-theme="dark"] .tlx-row:hover{background:#1f1f25}
html[data-theme="dark"] .tlx-row.is-failed{background:#301914}
html[data-theme="dark"] .tlx-event .ev-dot{background:#484b51}
html[data-theme="dark"] .tlx-today::before, html[data-theme="dark"] .tlx-today::after{background:#172238}
html[data-theme="dark"] .ic-wa{color:#8adba8}
html[data-theme="dark"] .orig-chip.cad{background:#152233;color:#879ede}
html[data-theme="dark"] .wa-top-pill{background:#342c15;color:#e7a47e}
html[data-theme="dark"] .wa-top-pill .ic-wa{color:#e7a47e}

/* --- assets/css/phone.css --- */
html[data-theme="dark"] .ph-callbtn{color:#a0edcc!important}
html[data-theme="dark"] .ph-callbtn:hover{background:#183123!important}
html[data-theme="dark"] .ph-mini{background:#172f20;color:#a0edcc}
html[data-theme="dark"] .ph-mini:hover{background:#1c3524}
html[data-theme="dark"] .ph-dstatus.s-on{color:#a0edcc}
html[data-theme="dark"] .ph-pad button:hover{background:#252629}
html[data-theme="dark"] .ph-pad button:active{background:#484b51}
html[data-theme="dark"] .ph-btn:hover:not(:disabled){border-color:#3e4146}
html[data-theme="dark"] .ph-saved{color:#a0edcc}

/* --- assets/css/ui.css --- */
html[data-theme="dark"] .ui-select-btn:hover{border-color:#3e4146}
html[data-theme="dark"] .ui-color-btn:hover{border-color:#3e4146}
html[data-theme="dark"] .ui-multi-btn:hover{border-color:#3e4146}
html[data-theme="dark"] .ui-date-disp:hover{border-color:#3e4146}
html[data-theme="dark"] .gs-item .gs-status.st-won{background:#1a3623;color:#94dfb0}
html[data-theme="dark"] .gs-item .gs-status.st-lost{background:#351717;color:#dd8888}
html[data-theme="dark"] .chip:hover{border-color:#3e4146}
html[data-theme="dark"] .chip.sel{background:#151e33;color:#879ede}
html[data-theme="dark"] input[type=checkbox]:not(.switch input):hover, html[data-theme="dark"] input[type=radio]:not(.switch input):hover{border-color:#585b61}

/* --- assets/css/workflow.css --- */
html[data-theme="dark"] .wfx-icbtn.danger:hover{background:#301917}
html[data-theme="dark"] .wf-switch{background:#484b51}
html[data-theme="dark"] .wfx-canvas{background-color:#202227;background-image:radial-gradient(#313438 1px,transparent 1px)}
html[data-theme="dark"] .fl-ghost{background:#152233;color:#879ede}
html[data-theme="dark"] .fl-node{border:1px solid #363a3f}
html[data-theme="dark"] .fl-node:hover{border-color:#474c53}
html[data-theme="dark"] .fl-num{border:1px solid #3e4147}
html[data-theme="dark"] .fl-tag{background:#212429;border:1px solid #34373c}
html[data-theme="dark"] .k-trigger .fl-tag{background:#151e33;color:#879ede}
html[data-theme="dark"] .k-cond .fl-tag{background:#342c15;color:#e7a47e}
html[data-theme="dark"] .k-action .fl-tag{background:#183123;color:#a0edcc}
html[data-theme="dark"] .k-wait .fl-tag{background:#171432;color:#a189dc;border-color:#231f4e}
html[data-theme="dark"] .k-flow .fl-tag{background:#212429;color:#b5bdcb;border-color:#34373c}
html[data-theme="dark"] .k-end .fl-tag{background:#301917;color:#de8d87}
html[data-theme="dark"] .fl-icb{background:#212429}
html[data-theme="dark"] .k-trigger .fl-icb{background:#151e33}
html[data-theme="dark"] .k-action .fl-icb{background:#183123}
html[data-theme="dark"] .k-flow .fl-icb{background:#212429}
html[data-theme="dark"] .fl-kv{border-top:1px solid #2e3137;background:#1f1f25}
html[data-theme="dark"] .fl-var{background:#21262b;border:1px solid #343a41;color:#b5bdcb}
html[data-theme="dark"] .fl-warn{background:#342c15;color:#e7a47e}
html[data-theme="dark"] .fl-condbox{background:#202227;border:1px solid #2f3339}
html[data-theme="dark"] .fl-condbox b{color:#e7a47e}
html[data-theme="dark"] .fl-empty{color:#e7a47e}
html[data-theme="dark"] .fl-node.k-wait{border-color:#231f4e;background:#191430}
html[data-theme="dark"] .fl-node.k-end{background:#301914}
html[data-theme="dark"] .fl-tools button[data-act=del]:hover{background:#301917}
html[data-theme="dark"] .fl-brl{border:1px solid #34373c;color:#a8afbd}
html[data-theme="dark"] .fl-br.yes .fl-brl{color:#a0edcc;background:#172f20}
html[data-theme="dark"] .pn-hic{background:#212429}
html[data-theme="dark"] .pn-hic.k-trigger{background:#151e33}
html[data-theme="dark"] .pn-hic.k-cond{background:#342c15}
html[data-theme="dark"] .pn-hic.k-action{background:#183123}
html[data-theme="dark"] .pn-hic.k-wait{background:#171432}
html[data-theme="dark"] .pn-hic.k-end{background:#301917}
html[data-theme="dark"] .pn-hic.k-next{background:#152233}
html[data-theme="dark"] .pn-tag.k-trigger{color:#879ede}
html[data-theme="dark"] .pn-tag.k-cond{color:#e7a47e}
html[data-theme="dark"] .pn-tag.k-action{color:#a0edcc}
html[data-theme="dark"] .pn-tag.k-wait{color:#a189dc}
html[data-theme="dark"] .pn-tag.k-end{color:#de8d87}
html[data-theme="dark"] .pn-del:hover{background:#301917}
html[data-theme="dark"] .pn-varbtn:hover{background:#152233}
html[data-theme="dark"] .pn-tog .sw{background:#484b51}
html[data-theme="dark"] .pn-kind:hover{border-color:#474c53}
html[data-theme="dark"] .pn-kind.on{background:#141d32}
html[data-theme="dark"] .pn-kic{background:#212429}
html[data-theme="dark"] .pn-ev:hover{border-color:#474c53}
html[data-theme="dark"] .pn-ev.on{background:#141d32;color:#879ede}
html[data-theme="dark"] .pn-pick:hover{border-color:#474c53}
html[data-theme="dark"] .pn-cond{background:#1f1f25}
html[data-theme="dark"] .pn-join span{color:#e7a47e;background:#342c15}
html[data-theme="dark"] .pn-x:hover{background:#301917}
html[data-theme="dark"] .pn-addrow{border:1.5px dashed #3e4147}
html[data-theme="dark"] .pn-addrow:hover{background:#141d32}
html[data-theme="dark"] .pn-ms-btn:hover{border-color:#3e4146}
html[data-theme="dark"] .pn-chip{background:#151e33;color:#879ede}
html[data-theme="dark"] .pn-chip i:hover{background:#1a243d}
html[data-theme="dark"] .pn-dres button:hover{background:#141d32}
html[data-theme="dark"] .pn-res.ok{background:#183123;color:#a0edcc}
html[data-theme="dark"] .pn-res.err{background:#301917;color:#de8d87}
html[data-theme="dark"] .pn-lg.ok > .ico{color:#86dfb6}
html[data-theme="dark"] .wf-st.s-done{background:#183123;color:#a0edcc}
html[data-theme="dark"] .wf-st.s-failed{background:#301917;color:#de8d87}
html[data-theme="dark"] .wf-st.s-waiting, html[data-theme="dark"] .wf-st.s-queued, html[data-theme="dark"] .wf-st.s-running{background:#152633;color:#84a6e1}

/* --- api_docs.php --- */
html[data-theme="dark"] .doc-tip{background:#152333;border:1px solid #1e344f}
html[data-theme="dark"] .doc-warn{background:#342c15}
html[data-theme="dark"] .doc-type.t-cf{background:#171432;color:#a189dc}
html[data-theme="dark"] .doc-opt.won{background:#172f20}
html[data-theme="dark"] .doc-opt.lost{background:#301914}
html[data-theme="dark"] .doc-switch i{background:#484b51}

/* --- calls.php --- */
html[data-theme="dark"] .cl-u .bar i{background:#1a243d}
html[data-theme="dark"] .cl-dir{background:#151e33;color:#879ede}
html[data-theme="dark"] .cl-dir.in{background:#183123;color:#a0edcc}
html[data-theme="dark"] .cl-st.s-ok{background:#183123;color:#a0edcc}
html[data-theme="dark"] .cl-st.s-err{background:#301917;color:#de8d87}
html[data-theme="dark"] .cl-st.s-warn{background:#342c15;color:#e7a47e}
html[data-theme="dark"] .cl-st.s-live{background:#152633;color:#84a6e1}

/* --- contact.php --- */
html[data-theme="dark"] .cl-pill.ok{background:#183123;color:#a0edcc}

/* --- includes/chatwoot_app.php --- */
html[data-theme="dark"] #boot{background:#202326}
html[data-theme="dark"] #boot i{border:2.5px solid #35373b}
html[data-theme="dark"] #boot span{color:#acb0b9}

/* --- install.php --- */
html[data-theme="dark"] body{background:#1b1c1e;color:#ededed}
html[data-theme="dark"] .row{background:#171717;border:1px solid #35373b}
html[data-theme="dark"] .ok{color:#82e3c3}
html[data-theme="dark"] code{background:#202020}

/* --- phone_settings.php --- */
html[data-theme="dark"] .ph-intro-ic{background:#183123;color:#84e9ca}
html[data-theme="dark"] .ph-def{background:#151e33;color:#879ede}
html[data-theme="dark"] .ph-tog .sw{background:#484b51}
html[data-theme="dark"] .ph-reg.ok{color:#a0edcc}

/* --- playbooks.php --- */
html[data-theme="dark"] .pb-task:hover{border-color:#3e4146}
html[data-theme="dark"] .pb-warn{color:#dd8888}

/* --- settings.php --- */
html[data-theme="dark"] .settings-card:hover{border-color:#3e4146}

/* --- whatsapp_settings.php --- */
html[data-theme="dark"] .lk-chip.on{background:#301917;color:#de8d87}
html[data-theme="dark"] .wa-mode.m-off{border-left-color:#565b63}
html[data-theme="dark"] .wa-mode-pill{background:#342c15;color:#e7a47e}
html[data-theme="dark"] .m-live .wa-mode-pill{background:#183123;color:#a0edcc}
html[data-theme="dark"] .wa-check.ok{background:#172f20}
html[data-theme="dark"] .wa-check.ok span{color:#a0edcc}
html[data-theme="dark"] .wa-check.warn{background:#322914}
html[data-theme="dark"] .wa-check.warn span{color:#e7a47e}
html[data-theme="dark"] .wa-check.err{background:#301914}
html[data-theme="dark"] .wa-check.err span{color:#de8d87}

/* --- workflows.php --- */
html[data-theme="dark"] .wf-health{background:#172f20}
html[data-theme="dark"] .wf-health.bad{background:#342c15}
html[data-theme="dark"] .wf-card:hover{border-color:#3a414a}
html[data-theme="dark"] .wf-ic{background:#183126;color:#84e3db}
html[data-theme="dark"] .wf-switch{background:#484b51}

/* --- estilos inline nas páginas/scripts --- */
html[data-theme="dark"] [style*="background:#dcfce7" i]{background:#1a3623 !important}
html[data-theme="dark"] [style*="background: #dcfce7" i]{background:#1a3623 !important}
html[data-theme="dark"] [style*="background:#e0f2fe" i]{background:#172a36 !important}
html[data-theme="dark"] [style*="background: #e0f2fe" i]{background:#172a36 !important}
html[data-theme="dark"] [style*="background:#f6fef9" i]{background:#172f20 !important}
html[data-theme="dark"] [style*="background: #f6fef9" i]{background:#172f20 !important}
html[data-theme="dark"] [style*="background:#fee2e2" i]{background:#351717 !important}
html[data-theme="dark"] [style*="background: #fee2e2" i]{background:#351717 !important}
html[data-theme="dark"] [style*="background:#fef2f2" i]{background:#301717 !important}
html[data-theme="dark"] [style*="background: #fef2f2" i]{background:#301717 !important}
html[data-theme="dark"] [style*="background:#fff" i]{background:#171717 !important}
html[data-theme="dark"] [style*="background: #fff" i]{background:#171717 !important}
html[data-theme="dark"] [style*="background:#fffaeb" i]{background:#342c15 !important}
html[data-theme="dark"] [style*="background: #fffaeb" i]{background:#342c15 !important}
html[data-theme="dark"] [style*="background:#fffbeb" i]{background:#342e15 !important}
html[data-theme="dark"] [style*="background: #fffbeb" i]{background:#342e15 !important}
html[data-theme="dark"] [style*="color:#0369a1" i]{color:#7bc3ea !important}
html[data-theme="dark"] [style*="color: #0369a1" i]{color:#7bc3ea !important}
html[data-theme="dark"] [style*="color:#111" i]{color:#ededed !important}
html[data-theme="dark"] [style*="color: #111" i]{color:#ededed !important}
html[data-theme="dark"] [style*="color:#128c4a" i]{color:#8ae0b2 !important}
html[data-theme="dark"] [style*="color: #128c4a" i]{color:#8ae0b2 !important}
html[data-theme="dark"] [style*="color:#15803d" i]{color:#94dfb0 !important}
html[data-theme="dark"] [style*="color: #15803d" i]{color:#94dfb0 !important}
html[data-theme="dark"] [style*="color:#374151" i]{color:#b4bdcc !important}
html[data-theme="dark"] [style*="color: #374151" i]{color:#b4bdcc !important}
html[data-theme="dark"] [style*="color:#6b7280" i]{color:#acb0b9 !important}
html[data-theme="dark"] [style*="color: #6b7280" i]{color:#acb0b9 !important}
html[data-theme="dark"] [style*="color:#92400e" i]{color:#e2a986 !important}
html[data-theme="dark"] [style*="color: #92400e" i]{color:#e2a986 !important}
html[data-theme="dark"] [style*="color:#b54708" i]{color:#e7a47e !important}
html[data-theme="dark"] [style*="color: #b54708" i]{color:#e7a47e !important}
html[data-theme="dark"] [style*="color:#b91c1c" i]{color:#dd8888 !important}
html[data-theme="dark"] [style*="color: #b91c1c" i]{color:#dd8888 !important}
