body{--theme-bg:#f3f6f8;--theme-surface:#fff;--theme-text:#17202a;--theme-muted:#566;--theme-line:#dce7e4;--theme-primary:#087f6f;--theme-primary-dark:#064c45;--theme-header-a:#064c45;--theme-header-b:#087568;--theme-soft:#e5f4f1;--theme-shadow:#102a4314;background:var(--theme-bg);color:var(--theme-text)}
.theme-claro{--theme-bg:#f3f6f8;--theme-surface:#fff;--theme-primary:#087f6f;--theme-primary-dark:#064c45;--theme-header-a:#064c45;--theme-header-b:#087568;--theme-soft:#e5f4f1}
.theme-escuro{--theme-bg:#111816;--theme-surface:#1c2724;--theme-text:#edf5f2;--theme-muted:#b5c7c1;--theme-line:#3c514b;--theme-primary:#35b9a2;--theme-primary-dark:#65d8c4;--theme-header-a:#0b2520;--theme-header-b:#17483f;--theme-soft:#263b36;--theme-shadow:#0007;color-scheme:dark}
.theme-janeiro{--theme-bg:#f7f7fb;--theme-surface:#fff;--theme-text:#302d42;--theme-muted:#68647a;--theme-line:#dedbea;--theme-primary:#7569a6;--theme-primary-dark:#4f4777;--theme-header-a:#504878;--theme-header-b:#8175ae;--theme-soft:#eeecf7}
.theme-fevereiro{--theme-bg:#f8f3fb;--theme-surface:#fff;--theme-text:#302239;--theme-muted:#715f79;--theme-line:#e5d6ea;--theme-primary:#7b3f98;--theme-primary-dark:#522469;--theme-header-a:#54266c;--theme-header-b:#b05d24;--theme-soft:#f2e6f5}
.theme-marco{--theme-bg:#f7f2fa;--theme-surface:#fff;--theme-text:#30253b;--theme-muted:#6d6277;--theme-line:#e4d5eb;--theme-primary:#8655a2;--theme-primary-dark:#56366f;--theme-header-a:#56366f;--theme-header-b:#397aa3;--theme-soft:#f0e7f5}
.theme-abril{--theme-bg:#f0f7f8;--theme-surface:#fff;--theme-text:#17333b;--theme-muted:#587077;--theme-line:#cfe3e5;--theme-primary:#167b85;--theme-primary-dark:#13566b;--theme-header-a:#155b72;--theme-header-b:#258267;--theme-soft:#dff0ef}
.theme-maio{--theme-bg:#f6f1f8;--theme-surface:#fff;--theme-text:#33243a;--theme-muted:#706078;--theme-line:#e1d5e6;--theme-primary:#74408a;--theme-primary-dark:#4e2b60;--theme-header-a:#4e2b60;--theme-header-b:#85539a;--theme-soft:#eee3f2}
.theme-junho{--theme-bg:#fff8ec;--theme-surface:#fff;--theme-text:#392721;--theme-muted:#756354;--theme-line:#f0d8bf;--theme-primary:#b52f3b;--theme-primary-dark:#7e2028;--theme-header-a:#86232b;--theme-header-b:#c45c1a;--theme-soft:#ffedd0}
.theme-julho{--theme-bg:#fbf8e9;--theme-surface:#fff;--theme-text:#332e1c;--theme-muted:#6e684c;--theme-line:#e4ddb5;--theme-primary:#9b7010;--theme-primary-dark:#66500f;--theme-header-a:#805b0d;--theme-header-b:#58633b;--theme-soft:#f3edca}
.theme-agosto{--theme-bg:#fbf7ea;--theme-surface:#fff;--theme-text:#382f1d;--theme-muted:#73684e;--theme-line:#e5d7ab;--theme-primary:#987015;--theme-primary-dark:#644a0d;--theme-header-a:#654a0d;--theme-header-b:#b58b2e;--theme-soft:#f8edc8}
.theme-setembro{--theme-bg:#fffbea;--theme-surface:#fff;--theme-text:#302f20;--theme-muted:#6e6b50;--theme-line:#e9dfa7;--theme-primary:#a67900;--theme-primary-dark:#705100;--theme-header-a:#886400;--theme-header-b:#15566b;--theme-soft:#fff1bf}
.theme-outubro{--theme-bg:#fff4f8;--theme-surface:#fff;--theme-text:#3b202d;--theme-muted:#7a5d6b;--theme-line:#edd3df;--theme-primary:#b13c70;--theme-primary-dark:#78234b;--theme-header-a:#762249;--theme-header-b:#c54e80;--theme-soft:#fae2ec}
.theme-novembro{--theme-bg:#f0f6fb;--theme-surface:#fff;--theme-text:#1c3041;--theme-muted:#5b6d7c;--theme-line:#d1e0ec;--theme-primary:#2775a9;--theme-primary-dark:#194d73;--theme-header-a:#194c72;--theme-header-b:#3184b8;--theme-soft:#dfedf7}
.theme-dezembro{--theme-bg:#fbf1f3;--theme-surface:#fff;--theme-text:#3a1d27;--theme-muted:#765d64;--theme-line:#ead2d8;--theme-primary:#b52d3d;--theme-primary-dark:#761d32;--theme-header-a:#571d2c;--theme-header-b:#a82b40;--theme-soft:#f5e0e5}
body>header{background:linear-gradient(120deg,var(--theme-header-a),var(--theme-header-b))}.card,.row,table,.traveler-cloud-wrap,.feedback-card{background-color:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-line);box-shadow:0 2px 10px var(--theme-shadow)}input,select,textarea{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-line)}.primary{background:var(--theme-primary);color:#fff}.button:not(.primary),button:not(.primary):not(.danger-button){background:var(--theme-soft);color:var(--theme-text)}a:not(.brand):not(nav a){color:var(--theme-primary-dark)}.site-footer{background:var(--theme-soft);color:var(--theme-muted);border-color:var(--theme-line)}.site-footer strong{color:var(--theme-primary-dark)}.title p,.row span,.muted,.section-note,.themes-heading p{color:var(--theme-muted)}
.theme-escuro th{background:#263631;color:#d9ebe5}.theme-escuro td{border-color:#344b44}.theme-escuro .status{background:#34443f;color:#e8f3ef}.theme-escuro .flash.success{background:#174c3d;color:#d9faef}.theme-escuro .flash.danger{background:#5b2529;color:#ffe3e4}.theme-escuro .fuel-paper,.theme-escuro .report-letterhead{color:#111}.theme-escuro canvas{background:#fff;border-radius:8px}
.theme-escuro :is(input,select,textarea){background:#16211e;color:#f4faf8;border-color:#587068}.theme-escuro :is(input,select,textarea)::placeholder{color:#9fb3ad;opacity:1}.theme-escuro :is(input,select,textarea):disabled,.theme-escuro :is(input,select,textarea)[readonly]{background:#26332f;color:#d4e1dd;opacity:1}.theme-escuro select option{background:#16211e;color:#f4faf8}.theme-escuro :is(a,details summary):not(.brand):not(nav a){color:#79dfcd}.theme-escuro :is(.moderator-kpis div,.travel-summary div,.operational-kpis div,.merge-summary div,.flow-step,.month-links a,.day,.suggestions button,.quick-pickup-edit input){background:#1c2724;color:#edf5f2;border-color:#3c514b}.theme-escuro :is(.moderator-kpis span,.travel-summary span,.operational-kpis span,.merge-guidance span,.merge-summary span,.merge-groups>p,.flow-step small,.month-links span,.calendar-legend,.fuel-item-head,.fuel-history small,.quick-pickup-edit label span,.news-heading p,.feedback-card footer,.boarding-reminder-list span,.boarding-reminder-help){color:#b5c7c1}.theme-escuro :is(.appointment-summary,.appointment-summary h3){color:#edf5f2!important}.theme-escuro .appointment-card[open]>.appointment-summary{background:#263b36}.theme-escuro :is(.appointment-card-body,.appointment-main-data,.record-actions,.agenda-search-results,.feedback-card footer){border-color:#3c514b}.theme-escuro :is(.quick-pickup-edit,.patient-search-highlight,.traveler-cloud-wrap){background:#20332e;border-color:#41655d}.theme-escuro :is(.patient-search-heading,.patient-search-heading h2,.patient-search-heading p,.patient-search-highlight .search label,.agenda-search-results h3,.traveler-cloud-heading,.traveler-cloud-heading span,.traveler-cloud-heading small){color:#c8ddd7}.theme-escuro .patient-search-highlight .search{background:#172b26;border-color:#41655d}.theme-escuro :is(.empty-search,.group-totals span,.separate-trip-form,.boarding-reminder-help){background:#26332f;color:#d4e1dd}.theme-escuro :is(.wall-card,.filter-title){background:linear-gradient(135deg,#203a34,#1c2724)}.theme-escuro :is(.filter-title p,.filter-grid label,.active-filters,.report-period,.section-note,table small,td small){color:#b5c7c1}.theme-escuro :is(.filter-panel fieldset,.filter-actions){border-color:#3c514b}.theme-escuro .filter-actions{background:#17211f}.theme-escuro :is(.filter-help,.quality-grid div){background:#243a35;color:#dceae6}.theme-escuro :is(.period-presets span,.active-filters span){background:#263b36;color:#d7e9e4;border-color:#587068}.theme-escuro :is(.updates-dialog,.boarding-reminder-dialog){background:#1c2724;color:#edf5f2}.theme-escuro :is(.updates-dialog>p,.updates-close,.boarding-reminder-close){color:#b5c7c1}.theme-escuro .boarding-reminder-list a{background:#302a20;color:#fff0d6;border-color:#8d642b}.theme-escuro .boarding-reminder-list a:hover{background:#3a3021}.theme-escuro .flow-arrow{color:#a8bbb5}.theme-escuro .day.empty{background:#17211f}.theme-escuro fieldset{border-color:#4a605a}.theme-escuro hr{border-color:#3c514b}.theme-escuro .site-footer strong{color:#65d8c4}
.themes-heading{margin-bottom:18px}.themes-heading h1{margin:.55rem 0 .15rem}.theme-grid{display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:14px}.theme-option{margin:0}.theme-option button{position:relative;width:100%;height:100%;padding:0;overflow:hidden;text-align:left;background:var(--theme-surface)!important;color:var(--theme-text)!important;border:2px solid var(--theme-line);border-radius:14px;box-shadow:0 3px 14px var(--theme-shadow)}.theme-option button:hover{transform:translateY(-2px);box-shadow:0 8px 22px var(--theme-shadow)}.theme-option.selected button{border-color:var(--theme-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-primary) 22%,transparent)}.theme-preview{height:82px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:24px 1fr;gap:7px;padding:12px;background:#f3f6f8}.theme-preview i{display:block;border-radius:6px;background:#fff}.theme-preview i:first-child{grid-column:1/-1;background:#087568}.theme-preview i:nth-child(2){background:#fff}.theme-preview i:nth-child(3){background:#dce7e4}.theme-preview i:nth-child(4){display:none}.theme-copy{display:flex;min-height:94px;flex-direction:column;padding:14px 16px}.theme-copy b{font-size:1rem}.theme-copy small{margin-top:4px;color:var(--theme-muted);font-weight:500}.theme-copy em{margin-top:auto;padding-top:7px;color:var(--theme-primary);font-size:.75rem;font-style:normal;font-weight:800}.theme-active{position:absolute;right:10px;top:10px;padding:3px 8px;border-radius:99px;background:#fff;color:#075e54;font-size:.7rem;font-weight:850}.theme-note{margin-top:18px}.theme-note h2{margin-top:0;font-size:1.05rem}.theme-note p{margin-bottom:0}
.preview-automatico{background:linear-gradient(135deg,#f8f8fa,#fff4f8)}.preview-automatico i:first-child{background:linear-gradient(90deg,#087568,#c54e80)}.preview-claro i:first-child{background:#087568}.preview-escuro{background:#111816}.preview-escuro i:first-child{background:#17483f}.preview-escuro i:nth-child(2){background:#1c2724}.preview-escuro i:nth-child(3){background:#35b9a2}.preview-janeiro{background:#f7f7fb}.preview-janeiro i:first-child{background:#7569a6}.preview-fevereiro{background:#f8f3fb}.preview-fevereiro i:first-child{background:linear-gradient(90deg,#7b3f98,#d8752e)}.preview-marco{background:#f7f2fa}.preview-marco i:first-child{background:linear-gradient(90deg,#8655a2,#397aa3)}.preview-abril{background:#f0f7f8}.preview-abril i:first-child{background:linear-gradient(90deg,#247ca3,#258267)}.preview-maio{background:#f6f1f8}.preview-maio i:first-child{background:#74408a}.preview-junho{background:#fff8ec}.preview-junho i:first-child{background:linear-gradient(90deg,#a92332 0 58%,#c78318 100%)}.preview-junho i:nth-child(2){background:#fff0d3}.preview-junho i:nth-child(3){background:#f4d9bd}.preview-julho{background:#fbf8e9}.preview-julho i:first-child{background:linear-gradient(90deg,#805b0d 0 58%,#58633b 100%)}.preview-julho i:nth-child(2){background:#f3edca}.preview-julho i:nth-child(3){background:#d9dfc2}.preview-agosto{background:#fbf7ea}.preview-agosto i:first-child{background:#b58b2e}.preview-setembro{background:#fffbea}.preview-setembro i:first-child{background:linear-gradient(90deg,#c09109 0 58%,#15566b 100%)}.preview-setembro i:nth-child(2){background:#fff1bf}.preview-setembro i:nth-child(3){background:#c9e1e5}.preview-outubro{background:#fff4f8}.preview-outubro i:first-child{background:#c54e80}.preview-novembro{background:#f0f6fb}.preview-novembro i:first-child{background:#3184b8}.preview-dezembro{background:#fbf1f3}.preview-dezembro i:first-child{background:linear-gradient(90deg,#571d2c 0 58%,#b52d3d 100%)}.preview-dezembro i:nth-child(2){background:#f5e0e5}.preview-dezembro i:nth-child(3){background:#d9aeb8}
@media(max-width:900px){.theme-grid{grid-template-columns:repeat(2,minmax(220px,1fr))}}@media(max-width:560px){.theme-grid{grid-template-columns:1fr}.theme-preview{height:68px}}
/* Componentes com cores explícitas precisam respeitar o tema ativo. */
.theme-claro :is(.moderator-kpis>div,.travel-summary>div,.operational-kpis>div,.merge-summary>div,.flow-step){background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-line)}
.theme-claro :is(.moderator-kpis span,.travel-summary span,.operational-kpis span,.merge-summary span,.flow-step small){color:var(--theme-muted)}
.theme-claro .moderator-kpis b{color:var(--theme-primary-dark)}
body[class*="theme-"] main .moderator-portals a,body[class*="theme-"] main .moderator-portals a:visited,body[class*="theme-"] main .moderator-portals a *{color:#fff!important}
body[class*="theme-"] main .moderator-portals a{background:linear-gradient(135deg,var(--theme-header-a),var(--theme-header-b))!important}
body[class*="theme-"] main .moderator-portals a:nth-child(2){background:linear-gradient(135deg,#185a80,#268caf)!important}
body[class*="theme-"] main .moderator-portals a:nth-child(3){background:linear-gradient(135deg,#704600,#c17a09)!important}
body[class*="theme-"] main .moderator-kpis>div,body[class*="theme-"] main .travel-summary>div,body[class*="theme-"] main .operational-kpis>div,body[class*="theme-"] main .merge-summary>div,body[class*="theme-"] main .flow-step{background:var(--theme-surface);color:var(--theme-text);border-color:var(--theme-line)}
body[class*="theme-"] main .moderator-kpis b{color:var(--theme-primary-dark)}
body[class*="theme-"] main .moderator-kpis span,body[class*="theme-"] main .travel-summary span,body[class*="theme-"] main .operational-kpis span,body[class*="theme-"] main .merge-summary span,body[class*="theme-"] main .flow-step small{color:var(--theme-muted)}
body[class*="theme-"] main .flow-step strong{color:var(--theme-text)}
@media print{body{background:#fff!important;color:#111!important}}
@media screen{.theme-escuro{--theme-bg:#0b1110;--theme-surface:#18221f;--theme-text:#fff;--theme-muted:#d1ddd9;--theme-line:#60756e;--theme-soft:#293b36}.theme-escuro main{color:#fff!important}.theme-escuro main :is(h1,h2,h3,h4,h5,h6,label,legend,dt,dd){color:#fff!important}.theme-escuro main :is(p,small){color:#d1ddd9!important}.theme-escuro main :is(.card,.row,table,.table,.moderator-kpis div,.travel-summary div,.operational-kpis div,.merge-summary div,.flow-step,.month-links a,.day,.suggestions button,.fixed-trip-card,.feedback-card){background-color:#18221f!important;color:#fff!important;border-color:#60756e!important}.theme-escuro main :is(input,select,textarea){background:#070c0b!important;color:#fff!important;border:2px solid #789087!important}.theme-escuro main :is(input,select,textarea):focus{border-color:#68e0c9!important;outline:3px solid #35b9a244!important}.theme-escuro main :is(input,select,textarea):disabled,.theme-escuro main :is(input,select,textarea)[readonly]{background:#2b3733!important;color:#fff!important;border-color:#789087!important}.theme-escuro main :is(.filter-title,.filter-actions,.wall-card,.separate-trip-form,.quick-pickup-edit,.patient-search-highlight,.patient-search-highlight .search,.traveler-cloud-wrap,.group-totals span,.empty-search,.quality-grid div,.filter-help){background:#22302c!important;color:#fff!important;border-color:#60756e!important}.theme-escuro main :is(.title p,.row span,.muted,.section-note,.themes-heading p,.moderator-kpis span,.travel-summary span,.operational-kpis span,.flow-step small,.fuel-item-head,.fuel-history small,.filter-title p,.filter-grid label,.active-filters,.report-period,table small,td small){color:#d1ddd9!important}.theme-escuro main th{background:#293b36!important;color:#fff!important;border-color:#60756e!important}.theme-escuro main td{color:#fff!important;border-color:#60756e!important}.theme-escuro main a:not(.button):not(.primary):not(.status){color:#7ff0db!important;text-decoration-color:#7ff0db}.theme-escuro main .button:not(.primary),.theme-escuro main button:not(.primary):not(.danger-button){background:#344b44!important;color:#fff!important;border:1px solid #789087!important}.theme-escuro main .primary{background:#168b78!important;color:#fff!important}.theme-escuro main .fuel-paper,.theme-escuro main .fuel-paper *{color:#111!important}.theme-escuro main .fuel-paper{background:#fff!important}.theme-escuro main canvas{background:#fff!important}.theme-escuro main .moderator-portals a,.theme-escuro main .moderator-portals a *{color:#fff!important}.theme-escuro main .moderator-portals a{background:linear-gradient(135deg,#075e54,#0a8f7d)!important}.theme-escuro main .moderator-portals a:nth-child(2){background:linear-gradient(135deg,#164967,#176480)!important}.theme-escuro main .moderator-portals a:nth-child(3){background:linear-gradient(135deg,#624000,#885600)!important}.theme-escuro main .moderator-portals a:nth-child(n+4){background:linear-gradient(135deg,#075e54,#0a7468)!important}.theme-escuro main .moderator-kpis div{background:#18221f!important}.theme-escuro main .schedule-bubble{background:#183831!important;color:#fff!important;border-color:#4f8f81!important}.theme-escuro main .schedule-bubble.medium{background:#493c14!important;color:#fff!important;border-color:#b59a37!important}.theme-escuro main .schedule-bubble.high{background:#542e17!important;color:#fff!important;border-color:#bd7541!important}.theme-escuro main .schedule-bubble.critical{background:#542323!important;color:#fff!important;border-color:#b56363!important}.theme-escuro main .schedule-bubble :is(strong,span,b,small){color:#fff!important}.theme-escuro main .flow-step strong,.theme-escuro main .flow-step small{color:#fff!important}.theme-escuro main .merge-head{color:#d1ddd9!important}.theme-escuro main .merge-row{color:#fff!important;border-color:#60756e!important}}
