[hidden]{display:none!important}
:root{color-scheme:dark;--bg:#07090b;--panel:#101517;--panel2:#151d1d;--line:#293536;--txt:#e7f0ea;--muted:#9daea6;--green:#b7d5c4;--gold:#bda981;--warn:#f0c879;--danger:#eab0a8}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font:14px/1.48 system-ui,-apple-system,'Segoe UI',sans-serif;background:var(--bg);color:var(--txt)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}header{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:13px;padding:14px max(18px,calc((100vw - 1240px)/2));background:#080c0eec;border-bottom:1px solid #293536;backdrop-filter:blur(10px)}.brand{display:flex;gap:11px;align-items:center;cursor:pointer}.brand span:nth-child(2){display:grid}.brand strong{font-size:18px;letter-spacing:.15em}.brand small{font-size:10px;color:var(--muted);letter-spacing:.02em}.eagle{display:grid;place-items:center;width:41px;height:41px;border:1px solid #647c70;border-radius:11px;font:bold 23px Georgia;color:var(--green)}.spacer{flex:1}.env{border:1px solid #756b42;background:#252317;color:#d7c28b;border-radius:99px;padding:5px 9px;font-size:10px;font-weight:750;letter-spacing:.08em}.nav,.secondary,.iconbtn{border:1px solid var(--line);background:#151d1c;color:var(--txt);border-radius:9px;padding:9px 13px}.nav:hover,.secondary:hover,.iconbtn:hover{background:#26312e}.primary{border:1px solid #5c826b;background:#284639;color:#e5f5eb;padding:11px 16px;border-radius:10px;font-weight:600}.primary:hover{background:#355845}.container{max-width:1240px;margin:auto;padding:28px 22px 65px;min-height:76vh}.auth-page{display:grid;place-items:center;min-height:66vh}.auth-card{width:min(100%,460px);background:var(--panel);border:1px solid var(--line);padding:28px;border-radius:18px;box-shadow:0 22px 60px #0005}h1{font-size:clamp(24px,3vw,34px);letter-spacing:-.04em;line-height:1.2;margin:8px 0}h2{font-size:20px;font-weight:640;margin:0 0 8px}h3{font-size:16px;margin:0 0 8px}p{color:var(--muted);margin:5px 0 15px}.overline{font-size:11px;color:var(--gold);letter-spacing:.14em;font-weight:750}.stack{display:grid;gap:14px;margin-top:20px}.stack label,.form-grid label,.datebox{display:grid;gap:5px;color:#c9dad0;font-size:12px}input,select{background:#0a1012;color:var(--txt);border:1px solid #354746;padding:11px;border-radius:9px;width:100%;min-width:0}input:focus,select:focus{outline:1px solid #78ad92;border-color:#78ad92}.notice{padding:12px 14px;border:1px solid #3b483f;background:#18201c;border-radius:10px;color:#bed0c5;font-size:12px;margin-top:15px}.alert{margin-top:12px;padding:11px 14px;border:1px solid #7b4d52;background:#302024;color:#f3c8cb;border-radius:9px}.page-top,.section-title{display:flex;justify-content:space-between;align-items:center;gap:13px;flex-wrap:wrap}.top-actions,.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.tabs{display:flex;overflow:auto;gap:6px;border-bottom:1px solid var(--line);margin:22px 0 24px;padding-bottom:8px;scrollbar-color:#364b42 transparent}.tabs button{white-space:nowrap;background:transparent;color:var(--muted);border:1px solid transparent;border-radius:9px;padding:9px 15px}.tabs button.active{background:#17251e;color:#c6e0d0;border-color:#4d725b}.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}.card,.info-card{background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:18px}.tile{text-align:left;width:100%;min-height:128px;display:block}.tile:hover{border-color:#789784;background:#18211e}.tile strong{display:block;font-size:16px;margin:7px 0}.tile span{color:var(--muted);font-size:12px}.stats{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.stat{background:#121a1b;border:1px solid var(--line);border-radius:12px;min-width:160px;flex:1;padding:15px}.stat b{font-size:26px;display:block;font-weight:680}.stat span{color:var(--muted);font-size:12px}.info-card{margin-top:18px}.list{display:grid;gap:8px;margin:14px 0}.item{padding:12px 15px;border:1px solid #2a3534;background:#111718;border-radius:10px;display:flex;align-items:center;justify-content:space-between;gap:12px}.item strong{display:block}.item small{color:var(--muted)}.item .actions{justify-content:flex-end}.muted{font-size:13px;color:var(--muted)}.section-title input[type=search]{max-width:360px}.hscroll{overflow:auto;border:1px solid var(--line);border-radius:12px;margin-top:13px;background:#101819}table{border-collapse:collapse;font-size:12px;white-space:nowrap;width:100%}td,th{border:1px solid #354143;padding:10px 11px;text-align:center}th{background:#1b2525;color:#d7e8dd}thead th:first-child,tbody td:first-child{position:sticky;left:0;z-index:1;background:#192323;text-align:left;min-width:175px}td.code-D{background:#183a2b;color:#bcead0;font-weight:700}td.code-N{background:#1b2e46;color:#a9cdf1;font-weight:700}td.code-FT{background:#493f1c;color:#f4da75;font-weight:700}td.code-F{color:#d7aaa8;background:#252727}td[data-editable]{cursor:pointer}td[data-editable]:hover{outline:2px solid #91c5a7;outline-offset:-2px}.datebox{max-width:200px}dialog{background:#11181a;color:var(--txt);border:1px solid #4e6157;border-radius:15px;padding:22px;width:min(94vw,570px);max-height:90vh;overflow:auto}dialog::backdrop{background:#000c}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-grid .primary{align-self:end}.card.form-grid{margin-top:16px}.pill{display:inline-flex;border-radius:99px;background:#26382d;color:#bce1c8;padding:3px 9px;font-size:11px}.pill.warn{background:#463b26;color:#f3d48c}.pill.negative{background:#492b2d;color:#f3c4c0}footer{padding:20px 24px 30px;max-width:1240px;margin:auto;border-top:1px solid #202929;font-size:11px;color:#8b9b91;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}code{color:var(--gold)}.env-hidden{display:none!important}@media(max-width:660px){.container{padding:19px 12px 50px}.auth-card{padding:20px}header{padding:12px}.env{font-size:9px}.brand small{display:none}.brand strong{font-size:14px}.eagle{width:36px;height:36px}.card-grid{grid-template-columns:1fr}.stats .stat{min-width:140px}.item{align-items:flex-start;flex-direction:column}.item .actions{width:100%;justify-content:flex-start}.tabs button{padding:8px 11px}.form-grid{grid-template-columns:1fr}}

.brand-shield{height:62px;width:57px;object-fit:contain;display:block;margin:7px 0}

/* FORENSE Cloud v24 | official shield + private tenant visual identity */
.header-logo{width:46px;height:54px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 2px 6px #0006)}
.auth-brand{display:flex;align-items:center;gap:17px;margin-bottom:18px;padding-bottom:17px;border-bottom:1px solid var(--line)}
.auth-brand img{height:112px;width:94px;object-fit:contain}
.auth-brand span{font-weight:760;font-size:22px;letter-spacing:.16em;display:block;color:#d9d0b6}
.auth-brand small{font-size:12px;color:var(--muted);display:block}
.setup-logo{width:105px;height:125px;object-fit:contain;display:block;margin:0 auto 18px}
.profile-meta{display:flex;align-items:center;gap:12px;margin-top:8px}
.profile-meta img{width:36px;height:42px;object-fit:contain}
.profile-meta p{margin:0}
.branding-card{padding:22px;background:var(--panel);border:1px solid var(--line);border-radius:15px;max-width:800px;margin:14px 0}
.branding-preview{display:flex;align-items:center;gap:22px;padding:10px 0 20px}
.branding-preview img{width:105px;height:120px;object-fit:contain;background:transparent}
.branding-preview strong{font-size:17px}
.branding-preview p{max-width:380px}
.branding-controls{display:grid;gap:13px;border-top:1px solid var(--line);padding-top:17px}
.branding-controls label{display:grid;gap:8px;font-size:13px;color:var(--muted)}
.report-download-card{border-color:#5c7050;background:#132019}
#companyPdfTop{white-space:nowrap}
@media(max-width:660px){.auth-brand img{width:74px;height:96px}.auth-brand span{font-size:18px}.branding-preview{gap:12px}.branding-preview img{width:80px;height:98px}.profile-meta img{width:28px;height:35px}.header-logo{width:34px;height:41px}.top-actions{width:100%}}

/* FORENSE Cloud v25 - indicadores e identificação da empresa */
.profile-meta #profileCompanyLogo{width:66px;height:50px;object-fit:contain;border:1px solid #31433c;border-radius:9px;padding:3px;background:#101714}.profile-meta small{display:block;color:#9dac9e;font-size:12px}.company-wordmark{width:152px;max-width:100%;height:46px;object-fit:contain}.operation-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:19px 20px;border:1px solid #33473b;background:#101715;border-radius:14px;margin-bottom:14px}.operation-identity{display:flex;align-items:center;gap:18px}.operation-identity img{width:155px;max-height:86px;object-fit:contain;background:#f8f8f5;border-radius:12px;padding:9px}.operation-identity h2{margin:4px 0}.operation-identity p{margin:0}.operation-period{display:flex;gap:9px;align-items:end;flex-wrap:wrap}.operation-period label{display:grid;gap:4px;font-size:12px;color:var(--muted)}.operation-period input{width:169px}.indicator-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.indicator-card{display:grid;gap:7px;min-height:135px;background:#101a17;border:1px solid #34463d;border-radius:13px;padding:17px}.indicator-card small{font-size:12px;color:#b6c9be}.indicator-card strong{font-size:30px;line-height:1;color:#edf8ed}.indicator-card span{font-size:11px;color:#96ab9e}.indicator-card.attention{border-color:#776237}.indicator-detail-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:12px;margin-bottom:18px}.indicator-bars{display:grid;gap:10px}.indicator-week{display:grid;grid-template-columns:116px 1fr 155px;gap:10px;align-items:center}.indicator-week small{color:#a4b8ac;font-size:11px}.indicator-week b{font-weight:500;font-size:11px;color:#d9e5d9;text-align:right}.indicator-rail{height:10px;background:#28342e;border-radius:999px;overflow:hidden}.indicator-fill{height:100%;background:linear-gradient(90deg,#39664d,#80b795);border-radius:999px}.operation-alerts{margin:8px 0 22px}.operation-alerts p{padding:9px 12px;border-left:3px solid #bb9c63;background:#22221d;color:#decba5;margin:6px 0;font-size:12px}.operation-alerts p:last-child{margin-bottom:0}@media(max-width:900px){.indicator-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.indicator-detail-grid{grid-template-columns:1fr}.operation-head{align-items:flex-start}}@media(max-width:540px){.indicator-grid{grid-template-columns:1fr 1fr;gap:7px}.indicator-card{padding:12px;min-height:112px}.indicator-card strong{font-size:25px}.operation-identity{align-items:flex-start;gap:9px}.operation-identity img{width:105px;max-height:70px}.indicator-week{grid-template-columns:1fr;gap:5px}.indicator-week b{text-align:left}.operation-period input{width:140px}}

/* V26 · Equipes Movida e logo original */
#dashboardCompanyLogo[src$="movida-logo.png"],#profileCompanyLogo[src$="movida-logo.png"],#clientLogoPreview[src$="movida-logo.png"]{background:#f7f7f7;object-fit:contain;padding:5px;border-radius:9px}
.movida-fields{padding:15px;background:#151d1b;border:1px solid #435e4e;border-radius:12px;display:grid;gap:12px}
.movida-fields .muted{margin:0}.check-inline{display:flex!important;align-items:center;gap:12px}.check-inline input{width:18px;flex-shrink:0}
.ab-times{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:18px 0}.ab-team{display:grid;gap:5px;border:1px solid #486c54;background:#16231d;border-radius:15px;padding:21px}.ab-team.b{border-color:#72582d;background:#261e14}.ab-team span{font-size:12px;color:#b1cabb;font-weight:700}.ab-team strong{font-size:clamp(22px,3vw,32px)}.ab-team small{color:#b5c3b9;font-size:12px}
@media(max-width:620px){.ab-times{grid-template-columns:1fr}.movida-fields .form-grid{grid-template-columns:1fr}}

/* V27 Master usage and time-bound support */
.master-usage{border:1px solid #3c5547;border-radius:14px;padding:19px;margin:23px 0;background:#101b17}
.master-usage .section-title{margin-bottom:13px}.master-usage .hscroll{max-height:350px}
.master-usage td,.master-usage th{text-align:left;white-space:normal;min-width:108px}
.master-usage tbody td:first-child{font-weight:700;min-width:190px}
#supportPanel .list{margin-bottom:20px}#supportPanel .item{align-items:flex-start}
#supportRequestForm{max-width:720px;margin:15px 0}#supportRequestForm label{display:grid;gap:6px;color:var(--muted)}
#supportRequestForm select{max-width:410px}#supportReadTitle{margin:25px 0 12px}
@media(max-width:700px){.master-usage{padding:12px}.master-usage .section-title{align-items:start}}

/* FORENSE Cloud 28 — Operação Movida com laranja institucional, apenas no painel do cliente */
body.movida-indicators #clientOverview .overline,body.movida-indicators .operation-identity h2{color:#ff762d}
body.movida-indicators .operation-head{border-color:#9f4817;background:linear-gradient(100deg,#201912,#111514)}
body.movida-indicators .indicator-card{background:linear-gradient(145deg,#241a12,#1a1510);border-color:#88451e}
body.movida-indicators .indicator-card small{color:#ffb681}
body.movida-indicators .indicator-card strong{color:#fff4e7}
body.movida-indicators .indicator-card span{color:#dfb79d}
body.movida-indicators .indicator-card.attention{border-color:#da6630;background:#352013}
body.movida-indicators .indicator-week small{color:#f8b47f}
body.movida-indicators .indicator-rail{background:#3b281b}
body.movida-indicators .indicator-fill{background:linear-gradient(90deg,#d34f16,#ff8a34)}
body.movida-indicators #clientOverview .primary{background:#bd4a13;border-color:#f67834;color:#fff}
body.movida-indicators #clientOverview .primary:hover{background:#e65c19}
body.movida-indicators #clientOverview .operation-alerts p{border-left-color:#f87931;background:#302017;color:#ffd2a4}
body.movida-indicators #clientOverview .indicator-detail-grid .card{border-color:#71472c}
.shift-legend{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}
.shift-legend span{display:inline-flex;align-items:center;font-size:12px;font-weight:600;padding:6px 9px;border-radius:7px;background:#1c2324;border:1px solid #344344;color:#cbd6cf}
.shift-legend .period-diurno{background:#17392b;border-color:#296849;color:#aff4cf}
.shift-legend .period-noturno{background:#172d48;border-color:#38669b;color:#c3dcff}
#scheduleGrid .period-column{position:sticky;left:170px;z-index:1;background:#202928;min-width:115px;font-weight:600;color:#d9e6de}
#scheduleGrid th:nth-child(2){position:sticky;left:170px;z-index:2;min-width:115px}
@media(max-width:680px){#scheduleGrid .period-column,#scheduleGrid th:nth-child(2){position:static}}

/* Cloud 29: full, responsive, clickable module tabs + executive dashboard */
.module-bar{margin-top:18px;padding:14px 17px 11px;border:1px solid #35443e;border-radius:17px;background:linear-gradient(115deg,#111b1a,#0d1116);box-shadow:0 14px 35px #0003}
.module-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;color:#cdbb91;font-size:11px;letter-spacing:.15em;font-weight:800}
.module-heading small{color:#95a99e;font-size:11px;letter-spacing:0;font-weight:500}
.tabs-v29{display:flex;flex-wrap:wrap;overflow:visible;gap:7px;border:0;margin:12px 0 3px;padding:0}
.tabs-v29 button{background:#17201e;border:1px solid #34443f;border-radius:10px;padding:11px 14px;font-weight:650;color:#c6d6ce;transition:background .15s,border .15s,transform .15s}
.tabs-v29 button:hover{background:#25332e;border-color:#68907a;transform:translateY(-1px)}
.tabs-v29 button.active{background:linear-gradient(125deg,#294a38,#1b3029);border-color:#87af8d;color:#f3fff2;box-shadow:inset 0 0 0 1px #486b4e}
.tabs-v29 button:focus-visible{outline:2px solid #e2c981;outline-offset:3px}
.module-hint{margin:9px 0 0;font-size:11px;color:#88a299}
.master-hero{padding:26px;border:1px solid #776340;border-radius:20px;background:radial-gradient(circle at 100% 0%,#253a35 0%,transparent 52%),linear-gradient(125deg,#141c20,#0d1115);box-shadow:0 22px 60px #0004;margin-bottom:18px}
.master-hero h2{font-size:clamp(24px,3vw,35px);letter-spacing:-.035em;margin:9px 0}
.master-hero p{max-width:700px;font-size:13px}.master-hero .overline{color:#d1b681}
.executive-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin:22px 0}
.exec-metric{padding:18px 16px;min-height:112px;background:#142021;border:1px solid #425c57;border-top:3px solid #587fb9;border-radius:12px;display:grid;gap:7px}
.exec-metric small{font-size:12px;color:#b5c4c0}.exec-metric strong{font-size:31px;color:#f5faf6}
.exec-metric.tone-indigo{border-top-color:#638be1}.exec-metric.tone-emerald{border-top-color:#4ecf98}.exec-metric.tone-amber{border-top-color:#e1ac58}.exec-metric.tone-violet{border-top-color:#a68fe6}
.master-hero-actions{display:flex;gap:9px;flex-wrap:wrap}
.master-clients-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.executive-client{background:linear-gradient(115deg,#111a1d,#151e1b);border:1px solid #465852;border-radius:15px;padding:23px;min-height:245px}
.executive-client img{max-width:148px;width:auto;height:65px;object-fit:contain;margin-bottom:10px}.executive-client h3{font-size:20px}.executive-client p{min-height:46px;font-size:12px}
.download-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.download-actions .card{display:flex;flex-direction:column;align-items:flex-start;gap:9px}.download-actions .card p{flex:1}
.download-icon{font-size:12px;font-weight:900;letter-spacing:.15em;background:#273b33;color:#d2e1d8;border-radius:9px;padding:10px}
.download-private-card{margin-top:16px}.download-file-upload{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:13px 0}
.download-file-upload label{display:grid;gap:6px;flex:1;max-width:520px;color:#cbd9d1}
.kpi-first{margin:0 0 15px}.kpi-first .overline{margin:0 0 11px}.indicator-first-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
/* Every KPI has a distinct hue; Movida keeps its orange identity in header and accents. */
#clientIndicators .indicator-card{position:relative;overflow:hidden}
#clientIndicators .indicator-card::before{content:'';position:absolute;top:0;left:0;bottom:0;width:4px;background:var(--accent-kpi,#6499d7)}
#clientIndicators .indicator-card:nth-child(1){--accent-kpi:#44bfb3}#clientIndicators .indicator-card:nth-child(2){--accent-kpi:#58c986}
#clientIndicators .indicator-card:nth-child(3){--accent-kpi:#638bef}#clientIndicators .indicator-card:nth-child(4){--accent-kpi:#f0943b}
#clientIndicators .indicator-card:nth-child(5){--accent-kpi:#37b6c2}#clientIndicators .indicator-card:nth-child(6){--accent-kpi:#aa84e7}
#clientIndicators .indicator-card:nth-child(7){--accent-kpi:#e9c358}#clientIndicators .indicator-card:nth-child(8){--accent-kpi:#d06c8b}
body.movida-indicators #clientIndicators .indicator-card:nth-child(1){--accent-kpi:#ff7a32}body.movida-indicators #clientIndicators .indicator-card:nth-child(2){--accent-kpi:#ffb44a}
body.movida-indicators #clientIndicators .indicator-card:nth-child(3){--accent-kpi:#f45d29}body.movida-indicators #clientIndicators .indicator-card:nth-child(4){--accent-kpi:#cf4f23}
body.movida-indicators #clientIndicators .indicator-card:nth-child(5){--accent-kpi:#f1aa5d}body.movida-indicators #clientIndicators .indicator-card:nth-child(6){--accent-kpi:#ce7550}
body.movida-indicators #clientIndicators .indicator-card:nth-child(7){--accent-kpi:#ffa03b}body.movida-indicators #clientIndicators .indicator-card:nth-child(8){--accent-kpi:#9e4729}
@media(max-width:930px){.executive-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.download-actions{grid-template-columns:1fr 1fr}.tabs-v29{overflow-x:auto;flex-wrap:nowrap;scroll-snap-type:x proximity;padding-bottom:8px}.tabs-v29 button{scroll-snap-align:start}}
@media(max-width:620px){.module-bar{padding:12px}.master-hero{padding:17px}.master-clients-grid,.download-actions{grid-template-columns:1fr}.indicator-first-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tabs-v29 button{padding:9px 12px}}

/* Higher fidelity executive client directory */
.master-hero:not([hidden]) ~ #cards{grid-template-columns:repeat(2,minmax(0,1fr));margin:19px 0}
.master-hero:not([hidden]) ~ #cards .tile{padding:19px 22px;min-height:182px;background:linear-gradient(115deg,#121c20,#17221d);border-color:#40514a}
.master-hero:not([hidden]) ~ #cards .tile:hover{background:linear-gradient(115deg,#18252a,#213126);border-color:#bbac82}
.master-hero:not([hidden]) ~ #cards .tile .brand-shield{width:auto;height:57px;max-width:135px;margin:10px 0 5px}
.master-hero:not([hidden]) ~ #cards .tile strong{font-size:18px;margin:7px 0}
.master-hero:not([hidden]) ~ #cards .tile span{display:block;margin-top:7px;line-height:1.5}
@media(max-width:660px){.master-hero:not([hidden]) ~ #cards{grid-template-columns:1fr}}

/* FORENSE 30 — Executive dashboard, accessible navigation and client identity */
:root{--v30-blue:#1479ff;--v30-orange:#ff7400;--v30-white:#f4f8ff}
#sideMenuBtn.hamburger{border:1px solid #34506a;background:#0e1d31;color:#e8f1ff;border-radius:11px;font-size:25px;width:48px;height:46px;cursor:pointer;display:block}
#sideMenuBtn[hidden]{display:none!important}
.side-drawer{position:fixed;z-index:101;top:0;bottom:0;left:0;width:min(308px,88vw);background:linear-gradient(155deg,#0b1625,#09121c 73%,#0a1629);border-right:1px solid #29527c;box-shadow:25px 0 80px #000a;overflow:auto;padding:19px 12px;scrollbar-width:thin}
.side-drawer[hidden],.sidebar-backdrop[hidden]{display:none!important}
.sidebar-backdrop{position:fixed;z-index:100;inset:0;background:#0009;backdrop-filter:blur(3px)}
.drawer-top{display:flex;align-items:center;gap:12px;padding:9px 12px 22px;border-bottom:1px solid #273b52}
.drawer-top img{width:55px;height:55px;object-fit:contain}.drawer-top b{display:block;letter-spacing:4px;font-size:19px;color:#fff}.drawer-top small{font-size:10px;color:#9eb0c6;letter-spacing:1px}
.drawer-top .iconbtn{margin-left:auto}.drawer-caption{margin:20px 14px 10px;color:#90b1de;font-size:11px;font-weight:800;letter-spacing:2px}
.side-nav{display:grid;gap:4px}.side-nav button{text-align:left;border:1px solid transparent;background:transparent;color:#c4d5ed;border-radius:10px;display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 15px;font-size:14px;cursor:pointer}
.side-nav button:hover,.side-nav button.active{background:#102b54;color:white;border-color:#286bbf}.side-nav button.active{box-shadow:inset 4px 0 #338cfe}
.drawer-foot{margin:28px 12px;font-size:12px;color:#b8cdec;line-height:1.9}
#appView:has(#masterHero:not([hidden])){--master-blue:#247fff}
body.theme-master .master-hero,body.theme-master .exec-metric{border-color:#1d5285!important;background:linear-gradient(128deg,#0b182c,#101f38)!important}
body.theme-master .overline,body.theme-master .master-hero h2{color:#8cbdff!important}
body.theme-master button.primary{background:#1659c7;color:white;border-color:#327cff}
body.theme-berbel .primary{background:#1a58bd;color:white}
body.theme-movida{--accent:#ff760a!important;--primary:#ff760a!important;--link:#ffaa54!important}
body.theme-movida .primary,body.theme-movida button.primary{background:#f9760d!important;border-color:#fb971d!important;color:#160d05!important}
body.theme-movida .active,body.theme-movida .tabs .active,body.theme-movida .side-nav button.active{color:#fff3e5!important;border-color:#fd8516!important;box-shadow:inset 0 -2px #ff8b12!important;background:#45220e!important}
body.theme-movida .side-drawer{background:linear-gradient(148deg,#1b130b,#100e0c);border-color:#864513}
body.theme-movida .sidebar-backdrop{background:#1c0e078f}
body.theme-movida .side-nav button.active{box-shadow:inset 4px 0 #ff7600!important}
body.theme-movida .overline,body.theme-movida .module-heading,body.theme-movida .drawer-caption{color:#ffa552!important}
body.theme-movida .indicator-card,body.theme-movida .card,body.theme-movida .insight-card{border-color:#734722}
body.theme-movida .exec-metric,body.theme-movida .indicator-card{background:linear-gradient(145deg,#1e160f,#28180d)!important}
body.theme-movida .indicator-card strong{color:#ffc287!important}
body.theme-movida .indicator-fill,body.theme-movida .bar-value{background:#f77610!important}
body.theme-movida a{color:#ffaa60!important}
body.theme-movida .donut{--donut-a:#ff6908;--donut-b:#fdad52;--donut-c:#a64a0b}
body.theme-movida .dot-legend{background:#fda03d!important}
body.theme-movida .smart-alert.critical{color:#ff9c49;border-color:#bf4e00;background:#341608}
.insights{display:grid;grid-template-columns:1fr 1fr 1fr;gap:13px;margin:17px 0 24px}
.insight-card{padding:17px;border:1px solid #284662;border-radius:15px;background:linear-gradient(160deg,#0d1722,#111d2a);min-height:222px;overflow:hidden}
.insight-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:15px}.insight-head h3{font-size:16px;margin:0}.insight-head small{color:#8ba5bf;font-size:11px;max-width:145px;text-align:right}
.visual-bars{display:flex;flex-direction:column;gap:11px;padding:6px 0}.visual-bar{display:grid;grid-template-columns:110px 1fr 42px;gap:7px;align-items:center;font-size:11px;color:#bdcce0}
.visual-bar-track{background:#24334a;border-radius:8px;height:11px;overflow:hidden}.visual-bar-fill{height:100%;background:#2483f4;border-radius:8px}.visual-bar strong{text-align:right;font-size:12px}
body.theme-movida .visual-bar-fill{background:#ff8a18}
.donut-area{display:flex;align-items:center;gap:15px;margin:10px 0}.donut{position:relative;flex:0 0 118px;height:118px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;background:conic-gradient(var(--donut-a,#188aff) 0 48%,var(--donut-b,#773fee) 48% 75%,var(--donut-c,#f4a12d) 75% 100%)}
.donut::before{content:'';position:absolute;inset:23px;border-radius:50%;background:#111a27}.donut>*{z-index:1}.donut strong{font-size:26px;line-height:1}.donut small{color:#afbfce;font-size:11px}
.donut-legend{display:grid;gap:7px;font-size:11px;min-width:0}.donut-legend div{display:flex;align-items:center;gap:6px}.donut-legend i{width:8px;height:8px;border-radius:100%;flex-shrink:0}
.mini-map,.operational-map{border:1px solid #375474;border-radius:12px;min-height:155px;padding:12px;background:linear-gradient(145deg,#112135,#08152a);color:#a8bdd4;font-size:12px}
#masterMapBtn{margin-top:10px;width:100%}.smart-alerts{display:grid;gap:10px}.smart-alert{background:#142438;border:1px solid #314b6c;border-radius:10px;padding:10px 12px;color:#bdcfdf;font-size:12px}
.smart-alert.critical{background:#371217;border-color:#bd2537;color:#ffa0a0}
.v30-form{max-width:930px;border-color:#295e94}.feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.feature-grid label{border:1px solid #354d66;border-radius:9px;padding:9px 13px;display:flex;gap:9px;align-items:center}
.v30-range{margin:15px 0 25px}.range-controls{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:17px 0}.range-controls label{display:grid;gap:6px}
#operationalMap{min-height:320px}.account-selector{display:flex;align-items:center;gap:9px}
@media(max-width:1120px){.insights{grid-template-columns:1fr 1fr}.insights .insight-card:last-child{grid-column:1/-1}}
@media(max-width:700px){.insights{grid-template-columns:1fr}.insights .insight-card:last-child{grid-column:auto}.feature-grid{grid-template-columns:1fr}.visual-bar{grid-template-columns:82px 1fr 35px}.donut{flex-basis:104px;height:104px}.side-drawer{width:min(300px,90vw)}}

/* STRICT MOVIDA: palette only oranges, black, white and neutral greys. */
body.theme-movida{--bg:#0c0a08;--panel:#18120e;--panel2:#201610;--line:#634027;--txt:#fff0e3;--muted:#bea794;--gold:#ffa648;--green:#ffc390;--warn:#ffc58c;--danger:#ff9a52}
body.theme-movida header{background:#0e0a07f7;border-bottom-color:#513019}
body.theme-movida #sideMenuBtn,body.theme-movida .nav,body.theme-movida .secondary,body.theme-movida .iconbtn{background:#20150d;border-color:#68452c;color:#fce7d2}
body.theme-movida .notice,body.theme-movida .info-card,body.theme-movida .smart-alert{background:#25190e;border-color:#634026;color:#ffd5ab}
body.theme-movida .insight-card,body.theme-movida #clientOverview .insight-card{background:linear-gradient(153deg,#23170f,#150f0a)!important;border-color:#79451f!important}
body.theme-movida .insight-head small,body.theme-movida .donut small,body.theme-movida .donut-legend,body.theme-movida .visual-bar{color:#e9bb93}
body.theme-movida .donut::before{background:#21160d}
body.theme-movida .visual-bar-track{background:#59331b}
body.theme-movida .indicator-week,body.theme-movida .operation-head{background:#24170c!important;border-color:#793f15!important}
body.theme-movida #moduleBar,body.theme-movida .module-bar{background:linear-gradient(122deg,#20150e,#100e0b)!important;border-color:#6f411f!important}
body.theme-movida #clientOverview .card,body.theme-movida .item{background:#20170f;border-color:#634326}
body.theme-movida input,body.theme-movida select,body.theme-movida textarea{background:#120e0a;color:#ffefdf;border-color:#71401c}
body.theme-movida input:focus,body.theme-movida select:focus,body.theme-movida textarea:focus{outline-color:#ff8213;border-color:#ff8213}
body.theme-movida td.code-D{background:#4a2709;color:#ffd6a9}body.theme-movida td.code-N{background:#754010;color:#fff0db}body.theme-movida td.code-FT{background:#a24e0d;color:#ffe0ba}
body.theme-movida .period-diurno,body.theme-movida .period-noturno{color:#ffc280;background:#45250c;border-color:#8e501c}
body.theme-movida .hscroll,body.theme-movida th,body.theme-movida td{background-color:#1f160e;border-color:#63412a;color:#f7e2cf}
body.theme-movida .tabs button:not(.active){color:#e5b994}
body.theme-movida .side-nav button{color:#f3d4b5}
body.theme-movida .side-nav button.active{background:#5b2b0b!important;border-color:#fb8d32!important}
body.theme-movida .env{background:#332313;border-color:#a5793b;color:#f9c98a}
body.theme-master .card.tile,body.theme-master .info-card,body.theme-master .notice{background:#0d1a2b!important;border-color:#224c80!important;color:#bfdcff}
body.theme-master .tabs button.active{background:#103a70!important;border-color:#227dea!important;color:#fff!important}
body.theme-master .module-bar{border-color:#2660a4!important;background:linear-gradient(112deg,#0f1a2b,#0a1526)!important}
body.theme-master .feature-grid input[type=checkbox]{accent-color:#298dff}
.feature-grid input[type=checkbox]{width:18px;height:18px;flex:0 0 18px;margin:0 12px 0 0;accent-color:#1685ff}
.feature-grid label{justify-content:flex-start;text-align:left;font-weight:550;font-size:13px;min-height:48px}
.v30-form .feature-grid{max-width:100%}
@media(max-width:680px){header{padding:10px 12px}.page-top{align-items:flex-start}.insight-card{min-height:190px}}
body.theme-movida #appTabs.tabs button:not(.active){background:#24180f!important;border-color:#583720!important;color:#edbd91!important}
body.theme-movida #appTabs.tabs button:hover{background:#45240e!important;border-color:#e87720!important}
body.theme-movida .side-nav button:not(.active):hover{background:#45240e!important}
body.theme-movida .pill{background:#4a270d;color:#ffbe86}

/* REV31 TURBO: densidade executiva e identidade isolada por cliente */
#appView .page-top{padding-top:12px;padding-bottom:10px;gap:12px}
#appView .page-top h1{font-size:clamp(1.45rem,2.4vw,2.2rem);margin:3px 0}
#appView .profile-meta{margin-top:6px}
#appView #masterInfo{padding:9px 14px;margin:8px 0}
#appView #moduleBar{padding:12px 16px;margin-top:10px}
#appView #moduleBar .module-hint{display:none}
#appView .master-hero{padding:18px 22px}
#appView .master-hero h2{font-size:clamp(1.5rem,2.5vw,2.25rem);margin:8px 0}
#appView .master-hero-main p{margin:5px 0}
#appView .insights{margin-top:14px}
body.theme-movida{--accent:#ff7900;--primary:#ff7900;--brand:#ff7900}
body.theme-movida button.primary,body.theme-movida .tabs button.active,body.theme-movida .side-nav button.active{background:#ed6b00!important;border-color:#ff9c42!important;color:#fff!important}
body.theme-movida .overline,body.theme-movida .indicator-grid strong,body.theme-movida .insight-card h3,body.theme-movida a{color:#ff9b42}
body.theme-movida .donut{background:conic-gradient(#ff7900 var(--donut-progress,0%),#3a3027 0)!important}
body.theme-movida .visual-bars .bar-fill{background:#ff7900!important}
.rev31-nps{margin:12px 0;padding:18px;border:1px solid #754619;border-radius:15px;background:#17130e}
.rev31-nps .section-title{display:flex;align-items:center;justify-content:space-between}
.rev31-tag{font-size:11px;letter-spacing:1px;color:#ff9b42}
.rev31-nps-results{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px}
.rev31-metric{min-width:110px;padding:13px;border:1px solid #734519;border-radius:12px;background:#211a12;display:flex;flex-direction:column}
.rev31-metric strong{font-size:1.65rem;color:#ff9b42}
.rev31-metric small{color:#d7c6b3}
@media(max-width:700px){#appView .page-top{padding-top:8px}#appView .master-hero{padding:12px}}

/* FORENSE REV31 EXECUTIVE */
#appView .panel-page{padding-top:8px!important}
#appView .page-top{padding-top:5px!important;padding-bottom:4px!important}
#appView .master-hero{padding:14px 20px!important}
#appView .master-hero-main h2{font-size:clamp(1.4rem,2vw,2rem)!important}
#appView .insights{gap:12px!important;margin-top:10px!important}
#appView .insight-card{min-height:215px!important;padding:16px!important}
#appView .insight-card .insight-head{margin-bottom:12px!important}
#appView #moduleBar{padding:9px 14px!important;margin-bottom:8px!important}
#appView #clientOverview .kpi-first{margin-top:8px!important}
#appView #clientOverview .indicator-grid{gap:10px!important}
.executive-ribbon{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;border-bottom:1px solid #584524;padding:8px 2px 14px;margin-bottom:10px}
.executive-ribbon span{font-size:10px;letter-spacing:2px;color:#bba47c}.executive-ribbon strong{font-size:clamp(1.1rem,1.8vw,1.6rem)}.executive-ribbon small{color:#9d9d9d}
body.theme-movida .executive-ribbon{border-color:#77400d}
body.theme-movida .executive-ribbon span,body.theme-movida .executive-ribbon strong{color:#ff8b27}
body.theme-movida #appView{--accent:#ff7900;--brand:#ff7900;--primary:#ff7900;--link:#ff7900}
body.theme-movida #appView .insight-card,body.theme-movida #appView .card,body.theme-movida #appView .kpi-first{border-color:#79410f!important}
body.theme-movida #appView .donut{background:conic-gradient(#ff7900 0 75%,#403124 75% 100%)!important}
body.theme-movida #appView .indicator-fill,body.theme-movida #appView .visual-bars .bar-fill{background:#ff7900!important}
.movida-hours-panel,.location-reference{border:1px solid #804414;border-radius:15px;background:#16110e;padding:18px;margin:14px 0}
.movida-hours-panel h2{color:#ff8b27}.location-reference a{color:#ff9b42}
.hours-preview-grid{color:#cbb7a5;font-size:13px}
@media(min-width:1050px){#appView #clientOverview .client-visuals{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* REV31 — calendário legível e equipes ordenadas */
#scheduleGrid thead th{white-space:nowrap;min-width:72px;font-variant-numeric:tabular-nums}
#scheduleGrid thead th.day-sunday{background:#30251c;color:#f1b781}
#scheduleGrid tbody tr:hover td{filter:brightness(1.12)}
#scheduleGrid .period-column{white-space:nowrap}

/* Premium grid statuses */
.code-FE{background:#e6c6a1!important;color:#302010!important;font-weight:700}.code-VA{background:#f1a79b!important;color:#38140e!important;font-weight:700}body.theme-movida .code-FE{background:#ffcf9a!important}body.theme-movida .code-VA{background:#f4ad98!important}

/* REV36 — navegação global minimalista e consistente em todos os perfis */
#appView #moduleBar{
  margin: 0 0 18px !important;
  padding: 7px 0 9px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #273137 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
#appView #moduleBar .module-heading,
#appView #moduleBar .module-hint{display:none !important}
#appView #appTabs.tabs-v29{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:5px !important;
  margin:0 !important;
  padding:0 !important;
  overflow:visible !important;
  border:0 !important;
}
#appView #appTabs.tabs-v29 button{
  min-height:30px !important;
  padding:5px 9px !important;
  border-radius:6px !important;
  border:1px solid #29333a !important;
  background:#101519 !important;
  color:#bdc6cd !important;
  font-size:11px !important;
  line-height:1.3 !important;
  font-weight:500 !important;
  box-shadow:none !important;
  transform:none !important;
  transition:background .15s,border-color .15s !important;
}
#appView #appTabs.tabs-v29 button:hover{
  background:#1b242b !important;
  border-color:#65717c !important;
  color:#f5f7f8 !important;
}
#appView #appTabs.tabs-v29 button.active{
  background:#1d2931 !important;
  border-color:#c1a36b !important;
  color:#f2d9a6 !important;
  box-shadow:inset 0 -2px #c1a36b !important;
}
body.theme-movida #appView #appTabs.tabs-v29 button.active{
  background:#39200e !important;
  border-color:#f28a30 !important;
  color:#ffd9b6 !important;
  box-shadow:inset 0 -2px #f28a30 !important;
}
body.theme-movida #appView #appTabs.tabs-v29 button:not(.active){
  background:#1c1510 !important;
  border-color:#453225 !important;
  color:#e9c5a7 !important;
}
#appView #appTabs.tabs-v29 button:focus-visible{
  outline:2px solid #d7b87b !important;
  outline-offset:2px !important;
}
@media(max-width:700px){
  #appView #appTabs.tabs-v29{flex-wrap:nowrap !important;overflow-x:auto !important;padding-bottom:5px !important}
  #appView #appTabs.tabs-v29 button{flex:0 0 auto !important}
}

/* REV39 — grade de treinamento inspirada no modelo enviado */
.training-grid-scroll{overflow-x:auto;margin:12px 0;max-width:100%}
.training-sheet{border-collapse:collapse;min-width:640px;width:max-content;font-size:12px;background:#161b1f;color:#e9eef1}
.training-sheet caption{background:#bd1414;color:white;font-weight:800;padding:8px;letter-spacing:.08em}
.training-sheet th,.training-sheet td{border:1px solid #56616a;padding:6px 8px;text-align:center;min-width:42px;white-space:nowrap}
.training-sheet tr:first-of-type th{background:#83c93e;color:#13210c}
.training-sheet th:first-child{position:sticky;left:0;background:#202930;min-width:160px;z-index:1;text-align:left}
.training-sheet .training-f{background:#04a9e8;color:#07141e;font-weight:800}
.training-sheet .training-work{background:#202930;color:#fff}

/* REV42 — cores de escala sem vermelho; Movida exclusivamente laranja/preto */
.training-sheet caption{background:#ac7c29!important;color:#10100e!important}
.training-sheet tr:first-of-type th{background:#b6a05d!important;color:#16130b!important}
.training-sheet .training-f{background:#a5aab0!important;color:#14191d!important}
.training-sheet .training-work{background:#314b3a!important;color:#f2f7ee!important}
#scheduleGrid td.code-FT,.code-FT{background:#ba9444!important;color:#16120a!important;font-weight:700}
#scheduleGrid td.code-F,.code-F{background:#8d9a9b!important;color:#10191c!important}
#scheduleGrid td.code-D,.code-D{background:#314d3d!important;color:#f1f6ed!important}
#scheduleGrid td.code-N,.code-N{background:#514d75!important;color:#f3f0ff!important}
#scheduleGrid td.code-VA,.code-VA{background:#b3a68a!important;color:#221e17!important}
body.theme-movida .training-sheet caption{background:#ed780e!important;color:#160b02!important}
body.theme-movida .training-sheet tr:first-of-type th{background:#f0a34c!important;color:#1b0f04!important}
body.theme-movida .training-sheet .training-f{background:#483020!important;color:#ffe1c4!important}
body.theme-movida .training-sheet .training-work{background:#8a4916!important;color:#fff0df!important}
body.theme-movida #scheduleGrid td.code-FT,body.theme-movida .code-FT{background:#b75b0b!important;color:#fff0dc!important}
body.theme-movida #scheduleGrid td.code-F,body.theme-movida .code-F{background:#36271d!important;color:#ffe5cd!important}
body.theme-movida #scheduleGrid td.code-D,body.theme-movida .code-D{background:#6a3b16!important;color:#ffe4c4!important}
body.theme-movida #scheduleGrid td.code-N,body.theme-movida .code-N{background:#945115!important;color:#fff0d7!important}
body.theme-movida #scheduleGrid td.code-VA,body.theme-movida .code-VA{background:#c78a4d!important;color:#1b1007!important}

/* REV54: visual-only 12x36 continuation, distinct from stored training shifts */
.training-sheet td.training-preview{background:#e1eefb;color:#173c65;font-weight:600;border-color:#a8c2dd}
