/* centralpb_dashboard_unidade_v40_clean - layout limpo: menu, tema e tabelas */
:root{
  --sidebar:260px; --radius:14px;
  --bg:#061c17; --panel:#102f28; --panel2:#173b33; --text:#f4fff9; --muted:#b8d3c8; --line:rgba(197,234,217,.18); --shadow:0 14px 34px rgba(0,0,0,.25);
  --green:#21c142; --orange:#ff8617; --yellow:#d6c300; --teal:#19b9c3; --blue:#2b74dd; --purple:#8440d8; --red:#ff4a4a;
}
html[data-theme="claro"], body[data-theme="claro"]{
  --bg:#f7faf8; --panel:#ffffff; --panel2:#f1f7f3; --text:#061b15; --muted:#385248; --line:#d7e7dd; --shadow:0 10px 26px rgba(0,0,0,.10);
}
*{box-sizing:border-box} html,body{margin:0;min-height:100%;font-family:Arial,Helvetica,sans-serif;background:var(--bg)!important;color:var(--text)!important} a{text-decoration:none;color:inherit}.app{min-height:100vh;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr);background:var(--bg)!important}.sidebar{position:sticky;top:0;height:100vh;background:var(--panel)!important;border-right:1px solid var(--line);padding:16px 14px;display:flex;flex-direction:column;gap:12px;overflow:hidden;color:var(--text)!important}.brandBox{height:112px;display:flex;align-items:center;justify-content:center;overflow:hidden}.brandSymbol{display:block;max-width:92px;max-height:92px;width:auto;height:auto;object-fit:contain}.logoLight{display:none}html[data-theme="claro"] .logoDark{display:none!important}html[data-theme="claro"] .logoLight{display:block!important}html[data-theme="escuro"] .logoDark{display:block!important}html[data-theme="escuro"] .logoLight{display:none!important}.collapseBtn{height:44px;border:1px solid var(--line);border-radius:12px;background:var(--panel2);color:var(--text);display:flex;align-items:center;justify-content:center;gap:10px;font-weight:900;cursor:pointer}.collapseBtn:hover{filter:brightness(1.05)}.nav{flex:1;overflow-y:auto;overflow-x:hidden;padding-right:4px;scrollbar-width:thin;scrollbar-color:#87b59d transparent}.nav::-webkit-scrollbar{width:9px}.nav::-webkit-scrollbar-track{background:transparent}.nav::-webkit-scrollbar-thumb{background:#87b59d;border-radius:999px}.nav a{display:flex;align-items:center;gap:12px;border-radius:12px;margin:5px 0;padding:10px 12px;color:var(--text)!important;min-width:0}.nav a:hover{background:rgba(33,193,66,.14)!important;color:var(--text)!important}.nav a.active{background:#078346!important;color:#fff!important;box-shadow:inset 4px 0 0 #26df68}.navIcon{width:38px;height:38px;min-width:38px;display:grid;place-items:center;border-radius:12px;background:rgba(255,255,255,.08);border:1px solid var(--line)}html[data-theme="claro"] .navIcon{background:#eef8f1;color:#08723c;border-color:#cfe7d8}.navIcon svg{width:22px;height:22px}.navText{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.userbox{border-top:1px solid var(--line);padding-top:12px;display:flex;gap:10px;align-items:center;min-height:58px}.avatar{width:42px;height:42px;min-width:42px;border-radius:999px;background:#078346;color:#fff;display:grid;place-items:center;font-weight:900}.uinfo{min-width:0}.uinfo small{color:var(--muted);word-break:break-all}body.menu-collapsed{--sidebar:86px}body.menu-collapsed .brandBox{height:78px}body.menu-collapsed .brandSymbol{max-width:54px;max-height:54px}body.menu-collapsed .collapseText,body.menu-collapsed .navText,body.menu-collapsed .uinfo{display:none!important}body.menu-collapsed .sidebar{padding:12px 10px}body.menu-collapsed .nav a{justify-content:center;padding:11px 4px}body.menu-collapsed .userbox{justify-content:center}.content{min-width:0;padding:28px;background:var(--bg)!important;color:var(--text)!important}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}.topbar h1{margin:0;font-size:28px;line-height:1.15}.filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}.filters label{font-size:12px;color:var(--muted)}.input{height:44px;border:1px solid var(--line);border-radius:10px;background:var(--panel);padding:0 12px;display:flex;align-items:center;gap:8px;margin-top:6px}.input input{background:transparent;border:0;color:var(--text);font-size:15px;outline:0;color-scheme:dark;min-width:140px}html[data-theme="claro"] .input input{color:#061b15;color-scheme:light}.themeControl{height:44px;border:1px solid var(--line);background:var(--panel);border-radius:10px;display:flex;align-items:center;padding:3px}.themeControl button,.refresh{border:0;border-radius:8px;background:transparent;color:var(--text);height:36px;min-width:42px;cursor:pointer;font-size:18px}.themeControl button.active,.refresh{background:#078346!important;color:#fff!important}.refresh{height:44px}.card{background:var(--panel)!important;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;color:var(--text)!important;min-width:0}.kpiGrid,.salesCards{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:14px;margin-bottom:16px}.metric{min-height:145px}.ico{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;color:#fff;font-size:23px;margin-bottom:16px}.green{background:var(--green)}.orange{background:var(--orange)}.yellow{background:var(--yellow)}.teal{background:var(--teal)}.blue{background:var(--blue)}.purple{background:var(--purple)}.metricLabel{text-transform:uppercase;font-size:12px;line-height:1.2;color:var(--muted);font-weight:900}.metricValue{font-size:22px;margin:12px 0 8px;white-space:nowrap}.metricSub{color:var(--muted);font-size:13px;font-weight:700}.nowrap{white-space:nowrap}.up{color:#36de5f}.twoCols{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr);gap:16px;margin-bottom:16px}.threeCols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.summaryRows>div{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid var(--line)}.summaryRows .strong b{font-weight:900}.cmvGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:12px}.cmvGrid>div{border-left:1px solid var(--line);padding-left:14px}.cmvGrid>div:first-child{border-left:0}.cmvGrid span,.cmvGrid small{display:block;color:var(--muted)}.cmvGrid b{display:block;font-size:20px;margin:5px 0}.cmvGrid em{font-style:normal;color:#e1c400;font-weight:900}.donutBox{display:flex;align-items:center;justify-content:center;gap:28px}.donut{width:210px;height:210px;border-radius:50%;background:conic-gradient(var(--orange) 0 var(--p), var(--purple) var(--p) 100%);box-shadow:0 0 42px rgba(255,134,23,.20)}.legend i{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:8px}.orangeDot{background:var(--orange)}.purpleDot{background:var(--purple)}.smallCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.smallCards>div{border:1px solid var(--line);border-radius:12px;padding:16px}.smallCards b{display:block;font-size:20px}.tableWrap{max-width:100%;overflow:auto;display:block}.dataTable{border-collapse:collapse;table-layout:auto;width:max-content;min-width:min(100%,420px);max-width:100%}.dataTable th,.dataTable td{padding:8px 10px;border-bottom:1px solid var(--line);vertical-align:middle;text-align:left;white-space:nowrap}.dataTable th{color:var(--muted);font-size:13px;font-weight:900}.dataTable .num{text-align:right}.autoTable .dataTable{width:auto;max-width:100%}.autoTable .dataTable th:nth-child(1),.autoTable .dataTable td:nth-child(1){white-space:normal;min-width:160px;max-width:320px}.autoTable .dataTable th:not(:first-child),.autoTable .dataTable td:not(:first-child){width:1%;white-space:nowrap}.estornosTable .dataTable{min-width:720px;width:100%;table-layout:auto}.estornosTable .dataTable th:nth-child(1),.estornosTable .dataTable td:nth-child(1){width:105px;min-width:105px}.estornosTable .dataTable th:nth-child(2),.estornosTable .dataTable td:nth-child(2){width:145px;min-width:145px}.estornosTable .dataTable th:nth-child(3),.estornosTable .dataTable td:nth-child(3){width:160px;min-width:160px}.estornosTable .dataTable th:nth-child(4),.estornosTable .dataTable td:nth-child(4){white-space:normal;min-width:260px;width:auto}.estornosTable .dataTable th:nth-child(5),.estornosTable .dataTable td:nth-child(5){width:60px}.estornosTable .dataTable th:nth-child(6),.estornosTable .dataTable td:nth-child(6){width:100px}.payTable .dataTable{width:360px!important;min-width:360px!important;max-width:360px!important}.payTable .dataTable th:nth-child(1),.payTable .dataTable td:nth-child(1){width:120px}.payTable .dataTable th:nth-child(2),.payTable .dataTable td:nth-child(2){width:160px}.monthCurrent .dataTable,.monthAuto .dataTable{min-width:460px;width:max-content}.monthCurrent .dataTable th:first-child,.monthCurrent .dataTable td:first-child,.monthAuto .dataTable th:first-child,.monthAuto .dataTable td:first-child{position:sticky;left:0;background:var(--panel)!important;z-index:2;width:64px;min-width:64px;max-width:64px;text-align:center}.monthCurrent .dataTable th:not(:first-child),.monthCurrent .dataTable td:not(:first-child),.monthAuto .dataTable th:not(:first-child),.monthAuto .dataTable td:not(:first-child){min-width:130px}.formGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.formGrid input,.formGrid select,.configTable input{width:100%;height:38px;border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:8px;padding:0 10px}.saveBtn{margin:16px 0;border:0;background:#078346;color:#fff;border-radius:10px;height:42px;padding:0 18px;font-weight:900}.pill{border:1px solid #078346;border-radius:8px;padding:5px 10px;background:rgba(11,141,72,.15)}.statusBadge{display:inline-flex;align-items:center;justify-content:center;min-width:78px;border-radius:999px;padding:5px 10px;font-weight:900}.statusBadge.ok{background:#d5f6df;color:#075f2f}.statusBadge.bad{background:#ffe1df;color:#bd1c18}.linePlaceholder{height:240px;display:grid;place-items:center;color:var(--muted);border:1px dashed var(--line);border-radius:12px}
@media(max-width:900px){:root{--sidebar:132px}.app{grid-template-columns:var(--sidebar) minmax(0,1fr)}.sidebar{padding:12px 8px}.brandBox{height:88px}.brandSymbol{max-width:76px;max-height:76px}.collapseBtn{height:40px}.content{padding:18px 12px}.topbar{display:block}.topbar h1{font-size:30px}.filters{display:grid;grid-template-columns:1fr;gap:10px}.input,.themeControl,.refresh{width:100%}.themeControl{display:grid;grid-template-columns:1fr 1fr}.nav a{flex-direction:column;justify-content:center;text-align:center;min-height:68px;padding:8px 4px}.navText{font-size:11px;font-weight:800}.navIcon{width:42px;height:42px}.navIcon svg{width:24px;height:24px}.userbox{display:none}.kpiGrid,.salesCards,.twoCols,.threeCols{grid-template-columns:1fr}.metric{min-height:132px}.metricValue{font-size:25px}.donutBox{flex-direction:column}.donut{width:180px;height:180px}.cmvGrid{grid-template-columns:1fr}.cmvGrid>div{border-left:0;border-top:1px solid var(--line);padding:10px 0 0}.cmvGrid>div:first-child{border-top:0}.smallCards{grid-template-columns:1fr}.autoTable .dataTable th:nth-child(1),.autoTable .dataTable td:nth-child(1){min-width:130px;max-width:180px}.payTable .dataTable{width:300px!important;min-width:300px!important;max-width:300px!important}.estornosTable .dataTable{min-width:640px}.estornosTable .dataTable th:nth-child(4),.estornosTable .dataTable td:nth-child(4){min-width:220px}.monthCurrent .dataTable th:first-child,.monthCurrent .dataTable td:first-child,.monthAuto .dataTable th:first-child,.monthAuto .dataTable td:first-child{width:56px;min-width:56px;max-width:56px}body.menu-collapsed{--sidebar:74px}body.menu-collapsed .brandSymbol{max-width:48px;max-height:48px}body.menu-collapsed .collapseText,body.menu-collapsed .navText{display:none!important}}
@media(min-width:901px){body.menu-collapsed .nav a{position:relative}body.menu-collapsed .nav a:hover::after{content:attr(title);position:absolute;left:70px;background:var(--panel);border:1px solid var(--line);padding:7px 10px;border-radius:8px;box-shadow:var(--shadow);white-space:nowrap;color:var(--text);z-index:20}.sidebar{position:sticky}.nav a{position:relative}}


/* centralpb_dashboard_unidade_v40_clean - alinhamento de títulos/colunas e gráfico real */
.dataTable th{ text-align:center!important; vertical-align:middle!important; }
.dataTable td{ vertical-align:middle!important; }
.dataTable th.num, .dataTable td.num{ text-align:right!important; }
.dataTable th:first-child, .dataTable td:first-child{ text-align:left!important; }
.monthCurrent .dataTable th:first-child, .monthCurrent .dataTable td:first-child,
.monthAuto .dataTable th:first-child, .monthAuto .dataTable td:first-child{ text-align:center!important; }
.autoTable .dataTable th, .autoTable .dataTable td{ vertical-align:middle!important; }
.autoTable .dataTable th:nth-child(2), .autoTable .dataTable td:nth-child(2){ text-align:center!important; }
.autoTable .dataTable th:nth-child(n+3), .autoTable .dataTable td:nth-child(n+3){ text-align:right!important; }
.estornosTable .dataTable th:nth-child(5), .estornosTable .dataTable td:nth-child(5){ text-align:center!important; }
.payTable .dataTable th:nth-child(2), .payTable .dataTable td:nth-child(2){ text-align:right!important; }
.chartWrap{width:100%; overflow:hidden; min-height:260px; display:flex; align-items:center; justify-content:center;}
.lineChart{width:100%; max-width:680px; height:auto; color:var(--green);}
.chartGrid line{stroke:var(--line); stroke-width:1;}
.chartArea{fill:rgba(33,193,66,.18);}
.chartLine{fill:none; stroke:var(--green); stroke-width:4; stroke-linecap:round; stroke-linejoin:round;}
.chartDots circle{fill:var(--green); stroke:var(--panel); stroke-width:2;}
.chartLabels text{fill:var(--muted); font-size:12px; font-weight:800;}
html[data-theme="claro"] .chartDots circle{stroke:#fff;}
@media(max-width:900px){
  .chartWrap{min-height:210px;}
  .lineChart{min-width:520px;}
  .card .chartWrap{overflow-x:auto; justify-content:flex-start;}
}

/* centralpb_dashboard_unidade_v40_clean - tabelas compactas, gráficos e alinhamentos */
.dataTable{width:auto;max-width:100%;}
.dataTable th,.dataTable td{padding:7px 10px;}
.dataTable th.num,.dataTable td.num{text-align:right;}
.dataTable th.center,.dataTable td.center{text-align:center;}
.compactData .dataTable{width:auto!important;min-width:0!important;max-width:100%;}
.compactData .dataTable th,.compactData .dataTable td{padding:7px 12px;}
.compactData .dataTable th:nth-child(1),.compactData .dataTable td:nth-child(1){width:auto;min-width:0;max-width:none;}
.compactData .dataTable th:not(:first-child),.compactData .dataTable td:not(:first-child){width:auto;min-width:0;}

.groupsLayout{grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);align-items:start;}
.groupsLayout .dataTable th:nth-child(1),.groupsLayout .dataTable td:nth-child(1){min-width:180px;max-width:340px;white-space:normal;}
.groupsLayout .dataTable th:nth-child(2),.groupsLayout .dataTable td:nth-child(2){width:78px;text-align:right;}
.groupsLayout .dataTable th:nth-child(3),.groupsLayout .dataTable td:nth-child(3){width:130px;text-align:right;}
.groupsLayout .dataTable th:nth-child(4),.groupsLayout .dataTable td:nth-child(4){width:70px;text-align:right;}

.miniDonutBox{display:flex;gap:22px;align-items:center;justify-content:center;min-height:260px;}
.miniDonut{width:190px;height:190px;border-radius:50%;box-shadow:0 16px 36px rgba(0,0,0,.15);flex:0 0 auto;}
.miniLegend{min-width:160px;font-size:14px;}
.miniLegend p{margin:8px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:6px;}
.miniLegend i{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:8px;flex:0 0 auto;}

.payMonthLayout{grid-template-columns:max-content minmax(320px,1fr);align-items:start;}
.payTable .dataTable{width:330px!important;min-width:330px!important;max-width:330px!important;}
.payTable .dataTable th:nth-child(1),.payTable .dataTable td:nth-child(1){width:95px!important;min-width:95px!important;}
.payTable .dataTable th:nth-child(2),.payTable .dataTable td:nth-child(2){width:150px!important;min-width:150px!important;text-align:right;}
.barChart{display:grid;gap:9px;padding:4px 2px;max-width:680px;}
.barRow{display:grid;grid-template-columns:72px minmax(160px,1fr) 120px;gap:12px;align-items:center;font-size:14px;}
.barRow>span{font-weight:700;color:var(--muted);}
.barRow>div{height:12px;background:var(--panel2);border:1px solid var(--line);border-radius:999px;overflow:hidden;}
.barRow>div>b{display:block;height:100%;background:linear-gradient(90deg,var(--green),var(--teal));border-radius:999px;}
.barRow>strong{text-align:right;white-space:nowrap;}

.cmvLayout{grid-template-columns:minmax(0,1.3fr) minmax(320px,.7fr);align-items:start;}
.cmvTable .dataTable th:nth-child(1),.cmvTable .dataTable td:nth-child(1){width:110px;min-width:110px;}
.cmvTable .dataTable th:not(:first-child),.cmvTable .dataTable td:not(:first-child){width:auto;text-align:right;}
.cmvLayout .chartWrap{height:280px;display:grid;place-items:center;}
.cmvLayout .lineChart{max-height:260px;}

.dreTable .dataTable th:nth-child(1),.dreTable .dataTable td:nth-child(1){width:auto;min-width:140px;max-width:300px;}
.dreTable .dataTable th:not(:first-child),.dreTable .dataTable td:not(:first-child){width:auto;min-width:0;}
.dreTable .dataTable th:last-child,.dreTable .dataTable td:last-child{text-align:center;}

.configTable .dataTable th:nth-child(3),.configTable .dataTable td:nth-child(3),
.configTable .dataTable th:nth-child(4),.configTable .dataTable td:nth-child(4){text-align:center;}
.configTable .dataTable th:nth-child(5),.configTable .dataTable td:nth-child(5),
.configTable .dataTable th:nth-child(6),.configTable .dataTable td:nth-child(6),
.configTable .dataTable th:nth-child(7),.configTable .dataTable td:nth-child(7){text-align:right;}
.centerInput{text-align:center!important;}
.moneyInput{text-align:right!important;}
.diffPos{color:#0b8d48!important;font-weight:900;}
.diffNeg{color:#d83333!important;font-weight:900;}

.chartWrap{width:100%;min-height:250px;display:grid;place-items:center;}
.lineChart{width:100%;max-width:720px;height:auto;overflow:visible;}
.chartGrid line{stroke:var(--line);stroke-width:1;}
.chartArea{fill:rgba(33,193,66,.15);}
.chartLine{fill:none;stroke:var(--green);stroke-width:4;stroke-linecap:round;stroke-linejoin:round;}
.chartDots circle{fill:var(--green);stroke:var(--panel);stroke-width:2;}
.chartLabels text{font-size:12px;fill:var(--muted);font-weight:700;}

@media(max-width:900px){
  .groupsLayout,.payMonthLayout,.cmvLayout{grid-template-columns:1fr;}
  .miniDonutBox{flex-direction:column;align-items:center;}
  .barRow{grid-template-columns:62px minmax(120px,1fr) 112px;}
  .payTable .dataTable{width:300px!important;min-width:300px!important;}
  .compactData .dataTable{min-width:max-content!important;}
}


/* centralpb_dashboard_unidade_v40_clean - gráficos maiores, pagamentos e metas */
.chartWrap{min-height:360px!important; align-items:stretch!important; justify-content:center!important;}
.lineChart{max-width:1000px!important; width:100%!important; min-height:330px!important;}
.cmvLayout .chartWrap{min-height:360px!important; height:auto!important;}
.cmvLayout .lineChart{max-height:none!important;}
.payMonthLayout{grid-template-columns:minmax(280px,360px) minmax(520px,1fr)!important; column-gap:34px!important; align-items:start!important;}
.payChartPanel{min-width:0!important;}
.payChartPanel .barChart{max-width:900px!important; width:100%!important; gap:12px!important; padding-top:10px!important;}
.payChartPanel .barRow{grid-template-columns:78px minmax(280px,1fr) 140px!important; font-size:16px!important;}
.payChartPanel .barRow>div{height:16px!important;}
.payTablePanel{width:max-content!important; max-width:100%!important;}
.payTable .dataTable{width:320px!important; min-width:320px!important; max-width:320px!important;}
.configTable th.center,.configTable td.center{text-align:center!important;}
.configTable .centerInput{text-align:center!important; margin:auto!important; display:block!important;}
.configTable .moneyInput{text-align:right!important; margin:auto!important; display:block!important;}
.configTable th:nth-child(3),.configTable td:nth-child(3),.configTable th:nth-child(4),.configTable td:nth-child(4){text-align:center!important;}
.configTable th:nth-child(7),.configTable td:nth-child(7){text-align:right!important;}
.configTable td.num:empty::after{content:'—'; color:var(--muted); font-weight:700;}
@media(max-width:900px){
  .chartWrap{min-height:280px!important; overflow-x:auto!important; justify-content:flex-start!important;}
  .lineChart{min-width:720px!important; min-height:280px!important;}
  .payMonthLayout{grid-template-columns:1fr!important;}
  .payChartPanel .barChart{min-width:620px!important;}
  .payChartPanel{overflow-x:auto!important;}
}


/* centralpb_dashboard_unidade_v40_clean - logos arredondadas e pagamentos futuros */
.brandBox{height:118px!important; padding:8px!important; overflow:hidden!important;}
.brandSymbol{max-width:92px!important; max-height:92px!important; object-fit:contain!important; object-position:center!important;}
body.menu-collapsed .brandBox{height:74px!important; padding:6px!important;}
body.menu-collapsed .brandSymbol{max-width:48px!important; max-height:48px!important;}
.payMonthLayout{grid-template-columns:max-content minmax(520px,1fr)!important;}
.payChartPanel .barChart{max-width:860px!important;}
.payChartPanel .barRow{grid-template-columns:78px minmax(280px,1fr) 140px!important;}
@media(max-width:900px){
  .brandBox{height:86px!important;}
  .brandSymbol{max-width:60px!important;max-height:60px!important;}
  .payMonthLayout{grid-template-columns:1fr!important;}
  .payChartPanel{overflow-x:auto!important;}
  .payChartPanel .barChart{min-width:620px!important;}
}

.ico.red{background:#ef4444;color:white;}
body[data-theme="claro"] .ico.red{background:#ef4444;color:white;}

/* centralpb_dashboard_unidade_v46_clean - metas em gauge e cards diários */
.dailyCards{grid-template-columns:repeat(4,minmax(180px,1fr))!important;}
.annualGoalLayout{display:grid;grid-template-columns:minmax(320px,0.95fr) minmax(320px,1.05fr);gap:22px;align-items:center;}
.goalPanel{display:grid;grid-template-columns:repeat(2,minmax(190px,1fr));gap:18px;align-items:center;justify-items:center;min-height:260px;}
.goalGauge{width:100%;max-width:290px;text-align:center;color:var(--text);}
.goalGauge .gTitle{font-weight:900;font-size:18px;margin-bottom:8px;}
.gaugeArc{--p:0;width:100%;aspect-ratio:2/1;position:relative;overflow:hidden;border-radius:999px 999px 0 0;background:conic-gradient(from 270deg at 50% 100%, var(--green) 0 calc(var(--p)*1%), var(--panel2) calc(var(--p)*1%) 100%);box-shadow:inset 0 0 0 1px var(--line);}
.gaugeArc:after{content:"";position:absolute;left:17%;right:17%;bottom:0;height:66%;background:var(--panel);border-radius:999px 999px 0 0;box-shadow:0 -1px 0 var(--line) inset;}
.gCenter{position:absolute;z-index:2;left:0;right:0;bottom:13%;display:grid;place-items:center;gap:2px;}
.gCenter strong{font-size:clamp(24px,3.2vw,42px);line-height:1;font-weight:500;white-space:nowrap;}
.gCenter small{font-weight:900;color:var(--green);}
.gScale{display:flex;justify-content:space-between;margin-top:6px;font-weight:900;font-size:13px;color:var(--muted);}
.gSub{font-size:12px;color:var(--muted);margin-top:8px;}
html[data-theme="claro"] .gaugeArc:after, body[data-theme="claro"] .gaugeArc:after{background:#fff;}
@media(max-width:1100px){.annualGoalLayout{grid-template-columns:1fr}.goalPanel{min-height:auto}.dailyCards{grid-template-columns:repeat(2,minmax(160px,1fr))!important;}}
@media(max-width:620px){.dailyCards{grid-template-columns:1fr!important}.goalPanel{grid-template-columns:1fr}.goalGauge{max-width:260px}.annualGoalLayout{gap:12px}}

/* centralpb_dashboard_unidade_v47_clean - gauges reposicionados, tickets e percentuais coloridos */
.dailyCards{grid-template-columns:repeat(5,minmax(170px,1fr))!important;}
.oneGauge{grid-template-columns:1fr!important;min-height:220px!important;}
.monthGoalLayout{grid-template-columns:minmax(320px,.8fr) minmax(300px,.5fr)!important;align-items:center!important;}
.pctGood{color:#20d65a!important;font-weight:900;}
.pctWarn{color:#ffd400!important;font-weight:900;}
.pctBad{color:#ff5252!important;font-weight:900;}
.metricSub .pctGood,.metricSub .pctWarn,.metricSub .pctBad{font-weight:900;}
.chartValues text,.pointValue{font-size:13px;fill:var(--text);font-weight:900;paint-order:stroke;stroke:var(--panel);stroke-width:3px;stroke-linejoin:round;}
.dreChartLayout{grid-template-columns:minmax(420px,.9fr) minmax(460px,1.1fr)!important;align-items:start!important;}
.dreChartLayout .chartWrap{min-height:380px!important;}
.dreChartLayout .lineChart{max-width:980px!important;min-height:340px!important;}
.cmvTable .pctGood,.cmvTable .pctWarn,.cmvTable .pctBad{display:inline-block;min-width:54px;text-align:right;}
@media(max-width:1200px){.dailyCards{grid-template-columns:repeat(3,minmax(170px,1fr))!important}.monthGoalLayout,.dreChartLayout{grid-template-columns:1fr!important}}
@media(max-width:700px){.dailyCards{grid-template-columns:1fr!important}.oneGauge{min-height:auto!important}.monthGoalLayout{gap:12px!important}}


/* centralpb_dashboard_unidade_v48_clean - gauges proporcionais, layout mais compacto e correções finais */
.gaugeArc{
  background:conic-gradient(from 270deg at 50% 100%, var(--green) 0 calc(var(--p) * .5%), var(--panel2) calc(var(--p) * .5%) 50%, transparent 50% 100%) !important;
}
.goalPanel{align-items:center;justify-content:center;gap:16px;min-width:0;overflow:hidden;}
.goalGauge{max-width:245px!important;min-width:0;}
.oneGauge .goalGauge{max-width:300px!important;}
.annualGoalLayout{grid-template-columns:minmax(320px,1fr) minmax(260px,.75fr)!important;gap:16px!important;overflow:hidden;}
.monthGoalLayout{grid-template-columns:minmax(320px,.7fr) minmax(260px,.55fr)!important;}
.vendasMetaLayout{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)!important;}
.dailyCards{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;}
.cmvTable .pctGood,.cmvTable .pctWarn,.cmvTable .pctBad,.dataTable .pctGood,.dataTable .pctWarn,.dataTable .pctBad{font-weight:900;}
@media(max-width:1100px){
  .annualGoalLayout,.monthGoalLayout,.vendasMetaLayout{grid-template-columns:1fr!important;}
  .goalGauge{max-width:260px!important;}
}
@media(max-width:620px){
  .goalGauge{max-width:220px!important;}
  .oneGauge .goalGauge{max-width:240px!important;}
  .gTitle{font-size:15px!important;}
  .gCenter strong{font-size:28px!important;}
}

/* centralpb_dashboard_unidade_v50_clean */
.splitMetric{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start;min-width:0}
.splitMetric>div{min-width:0;border-left:1px solid var(--border);padding-left:10px}
.splitMetric>div:first-child{border-left:0;padding-left:0}
.splitMetric span{display:block;font-size:.78rem;font-weight:800;text-transform:uppercase;color:var(--muted);margin-bottom:3px}
.splitMetric b{display:block;font-size:1.3rem;line-height:1.15;white-space:nowrap}
.splitMetric small{display:block;margin-top:3px;font-size:.78rem;color:var(--muted);font-weight:700}
@media (max-width: 720px){.splitMetric{grid-template-columns:1fr}.splitMetric>div{border-left:0;padding-left:0;border-top:1px solid var(--border);padding-top:8px}.splitMetric>div:first-child{border-top:0;padding-top:0}.splitMetric b{font-size:1.1rem}}


/* centralpb_dashboard_unidade_v50_clean - ajustes finais de layout/mobile/metas */
.dashboardKpis{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))!important;}
.dashboardGoalBox{margin-top:18px;display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:16px;align-items:center;justify-items:center;}
.dashboardGoalBox .goalGauge{max-width:230px!important;}
.dashboardGoalBox .gCenter strong{font-size:clamp(22px,2.1vw,34px)!important;}
.dashboardGoalBox .gTitle{font-size:16px!important;}
/* Gauges proporcionais: apenas parte realizada preenchida, restante sem destaque */
.gaugeArc{background:conic-gradient(from 270deg at 50% 100%, var(--green) 0 calc(var(--p) * .5%), rgba(255,255,255,.08) calc(var(--p) * .5%) 50%, transparent 50% 100%)!important;}
html[data-theme="claro"] .gaugeArc{background:conic-gradient(from 270deg at 50% 100%, var(--green) 0 calc(var(--p) * .5%), #e8eee9 calc(var(--p) * .5%) 50%, transparent 50% 100%)!important;}
.goalPanel,.dashboardGoalBox{overflow:visible!important;}
.goalGauge{overflow:hidden!important;}
/* Mobile: gráficos de meta sempre abaixo das tabelas e sem rolagem horizontal da área */
@media(max-width:720px){
  .annualGoalLayout,.monthGoalLayout,.vendasMetaLayout{display:flex!important;flex-direction:column!important;grid-template-columns:1fr!important;gap:14px!important;overflow:visible!important;}
  .annualGoalLayout>div,.monthGoalLayout>div{width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important;}
  .goalPanel,.oneGauge,.dashboardGoalBox{width:100%!important;min-width:0!important;max-width:100%!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:12px!important;min-height:auto!important;}
  .goalGauge,.oneGauge .goalGauge,.dashboardGoalBox .goalGauge{max-width:210px!important;width:100%!important;}
  .gCenter strong{font-size:24px!important;max-width:160px;overflow:hidden;text-overflow:ellipsis;}
  .gSub{font-size:11px!important;white-space:normal!important;}
  .tableWrap{overflow-x:hidden!important;}
  .monthAuto .dataTable,.monthCurrent .dataTable{width:100%!important;min-width:0!important;max-width:100%!important;font-size:13px!important;table-layout:auto!important;}
  .monthAuto .dataTable th,.monthAuto .dataTable td,.monthCurrent .dataTable th,.monthCurrent .dataTable td{padding:6px 4px!important;white-space:nowrap!important;}
  .monthAuto .dataTable th:first-child,.monthAuto .dataTable td:first-child,.monthCurrent .dataTable th:first-child,.monthCurrent .dataTable td:first-child{position:static!important;width:44px!important;min-width:44px!important;max-width:44px!important;background:transparent!important;}
  .monthAuto .dataTable th:not(:first-child),.monthAuto .dataTable td:not(:first-child),.monthCurrent .dataTable th:not(:first-child),.monthCurrent .dataTable td:not(:first-child){min-width:0!important;width:auto!important;}
  .dashboardGoalBox{grid-template-columns:1fr!important;}
}

/* V69 - visão gerencial consolidada, mantendo o menu existente */
.managerialCard{margin-bottom:14px!important;}
.gerencialMatrix{overflow:auto;max-height:520px;border:1px solid var(--line);border-radius:10px;}
.gerencialMatrix .dataTable{width:max-content;min-width:100%;font-size:11px;white-space:nowrap;}
.gerencialMatrix .dataTable th,.gerencialMatrix .dataTable td{padding:5px 7px!important;min-width:92px;text-align:right;}
.gerencialMatrix .dataTable th:first-child,.gerencialMatrix .dataTable td:first-child{position:sticky;left:0;z-index:2;min-width:72px;text-align:center;background:var(--panel2);font-weight:900;}
.gerencialMatrix .dataTable thead th{position:sticky;top:0;z-index:3;background:var(--panel2);}
.gerencialMatrix .dataTable thead th:first-child{z-index:4;}
.gerencialMatrix .dataTable tbody tr:first-child td{font-weight:900;color:var(--accent);}
.managerialBottom{align-items:stretch;margin-bottom:18px;}
.managerialBottom>.card{min-width:0;}
@media(max-width:900px){.managerialBottom{grid-template-columns:1fr!important;}.gerencialMatrix .dataTable{font-size:10px;}}

/* centralpb_dashboard_unidade_v51_clean - ajustes solicitados: sem Total duplicado, gauges compactos e mobile com rolagem horizontal local */
/* Card Fechadas/Abertas: reduzir fonte para caber melhor no desktop */
.splitMetric{gap:8px!important;}
.splitMetric>div{padding-left:8px!important;}
.splitMetric span{font-size:.68rem!important;line-height:1.1!important;letter-spacing:.02em!important;}
.splitMetric b{font-size:clamp(1.02rem,1.25vw,1.18rem)!important;line-height:1.08!important;white-space:nowrap!important;}
.splitMetric small{font-size:.68rem!important;line-height:1.15!important;}
.metric:has(.splitMetric){min-height:138px!important;}
.metric:has(.splitMetric) .ico{width:46px!important;height:46px!important;font-size:20px!important;margin-bottom:12px!important;}

/* Mês atual agora possui somente Dia + Loja, sem coluna Total repetida */
.monthCurrent .dataTable{min-width:360px!important;width:max-content!important;}
.monthCurrent .dataTable th:first-child,.monthCurrent .dataTable td:first-child{width:58px!important;min-width:58px!important;max-width:58px!important;text-align:center!important;}
.monthCurrent .dataTable th:nth-child(2),.monthCurrent .dataTable td:nth-child(2){min-width:170px!important;width:1%!important;text-align:right!important;}

/* Gauges menores para evitar barra horizontal no desktop */
.annualGoalLayout{grid-template-columns:minmax(320px,1fr) minmax(230px,0.58fr)!important;gap:12px!important;align-items:center!important;}
.monthGoalLayout{grid-template-columns:minmax(320px,0.8fr) minmax(230px,0.48fr)!important;}
.goalPanel{min-height:190px!important;gap:10px!important;}
.oneGauge{min-height:180px!important;}
.goalGauge{max-width:220px!important;}
.oneGauge .goalGauge{max-width:235px!important;}
.goalGauge .gTitle{font-size:15px!important;margin-bottom:4px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.gCenter strong{font-size:clamp(20px,2.1vw,31px)!important;max-width:170px!important;overflow:hidden!important;text-overflow:ellipsis!important;}
.gCenter small{font-size:12px!important;}
.gScale{font-size:11px!important;margin-top:3px!important;}
.gSub{font-size:10.5px!important;margin-top:4px!important;}
.card .goalPanel{overflow:hidden!important;}

/* Reduzir risco de scroll horizontal no desktop dos blocos Ano Atual */
.vendasMetaLayout>.card{overflow:hidden!important;}
.vendasMetaLayout .tableWrap{max-width:100%!important;}
.monthAuto .dataTable{min-width:0!important;width:max-content!important;max-width:100%!important;}
.monthAuto .dataTable th,.monthAuto .dataTable td{padding:7px 8px!important;}
.monthAuto .dataTable th:first-child,.monthAuto .dataTable td:first-child{width:78px!important;min-width:78px!important;max-width:78px!important;}
.monthAuto .dataTable th:not(:first-child),.monthAuto .dataTable td:not(:first-child){min-width:115px!important;}

/* Mobile: manter rolagem horizontal local para ver metas ao lado da tabela */
@media(max-width:720px){
  .card{overflow:hidden!important;}
  .annualGoalLayout,.monthGoalLayout{display:grid!important;grid-template-columns:minmax(420px,1fr) minmax(220px,260px)!important;gap:12px!important;align-items:center!important;overflow-x:auto!important;overflow-y:hidden!important;padding-bottom:6px!important;}
  .annualGoalLayout>div,.monthGoalLayout>div{min-width:0!important;width:auto!important;max-width:none!important;overflow:visible!important;}
  .annualGoalLayout .tableWrap,.monthGoalLayout .tableWrap{overflow:visible!important;}
  .monthAuto .dataTable,.monthCurrent .dataTable{font-size:14px!important;min-width:360px!important;width:max-content!important;max-width:none!important;}
  .monthAuto .dataTable th,.monthAuto .dataTable td,.monthCurrent .dataTable th,.monthCurrent .dataTable td{padding:7px 8px!important;white-space:nowrap!important;}
  .monthAuto .dataTable th:first-child,.monthAuto .dataTable td:first-child,.monthCurrent .dataTable th:first-child,.monthCurrent .dataTable td:first-child{position:sticky!important;left:0!important;background:var(--panel)!important;width:64px!important;min-width:64px!important;max-width:64px!important;z-index:3!important;}
  .goalPanel,.oneGauge{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;min-width:220px!important;width:220px!important;max-width:220px!important;min-height:170px!important;}
  .goalGauge,.oneGauge .goalGauge{max-width:200px!important;width:200px!important;}
  .gCenter strong{font-size:24px!important;max-width:145px!important;}
  .splitMetric{grid-template-columns:1fr 1fr!important;gap:6px!important;}
  .splitMetric>div{border-left:1px solid var(--line)!important;border-top:0!important;padding-top:0!important;padding-left:7px!important;}
  .splitMetric>div:first-child{border-left:0!important;padding-left:0!important;}
  .splitMetric b{font-size:1rem!important;}
}


/* V52 - Login e acesso por usuario */
.loginPage{min-height:100vh;display:grid;place-items:center;background:#06271f;color:#fff;padding:24px}
.loginCard{width:min(420px,100%);background:#103b31;border:1px solid rgba(255,255,255,.14);border-radius:22px;padding:32px;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.loginLogo{width:88px;height:88px;object-fit:contain;margin-bottom:12px}.loginCard h1{font-size:34px;margin:0 0 6px}.loginCard p{opacity:.82;margin:0 0 22px}.loginCard label{display:block;font-weight:800;margin:14px 0 6px}.loginCard input{width:100%;font-size:18px;padding:14px;border-radius:12px;border:1px solid rgba(255,255,255,.18);background:#0c2f27;color:#fff}.loginCard button{width:100%;margin-top:20px;padding:15px;border:0;border-radius:12px;background:#08934b;color:#fff;font-weight:900;font-size:18px}.loginErro{color:#ffb7b7;font-weight:800;margin-top:14px;min-height:22px}.logoutLink{color:inherit;opacity:.8;text-decoration:none;font-size:12px}.logoutLink:hover{opacity:1;text-decoration:underline}
body[data-theme="claro"] .loginPage{background:#f5faf7;color:#001f19}body[data-theme="claro"] .loginCard{background:#fff;border-color:#d6eadf}body[data-theme="claro"] .loginCard input{background:#fff;color:#001f19;border-color:#cfe4d8}

/* centralpb_dashboard_unidade_v53_clean - ajustes finos solicitados */
body{font-size:14px!important;}
.content{padding:24px!important;}
.card{padding:16px!important;}
.card h2{font-size:24px!important;line-height:1.1!important;}
.metricValue{font-size:20px!important;}
.dataTable th,.dataTable td{font-size:13.5px!important;padding:7px 8px!important;}

/* Card Fechadas/Abertas: quebrar linha para não embolar */
.metric:has(.splitMetric){min-height:150px!important;}
.splitMetric{grid-template-columns:1fr 1fr!important;gap:12px!important;}
.splitMetric>div{border-left:1px solid var(--line)!important;padding-left:12px!important;min-width:0!important;}
.splitMetric>div:first-child{border-left:0!important;padding-left:0!important;}
.splitMetric span{font-size:.67rem!important;line-height:1.05!important;}
.splitMetric b{display:block!important;font-size:.98rem!important;line-height:1.05!important;white-space:normal!important;word-break:keep-all!important;}
.splitMetric small{font-size:.67rem!important;line-height:1.1!important;}

/* Menos barras horizontais em Top Grupos/Produtos */
.threeCols{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)!important;}
.autoTable .dataTable{width:100%!important;min-width:0!important;table-layout:auto!important;}
.autoTable .dataTable th:nth-child(1),.autoTable .dataTable td:nth-child(1){min-width:120px!important;max-width:220px!important;white-space:normal!important;}
.autoTable .dataTable th:not(:first-child),.autoTable .dataTable td:not(:first-child){min-width:70px!important;width:auto!important;}

/* Pagamentos: tabela e gráfico alinhados mês a mês */
.payAligned{width:100%;overflow-x:auto;padding-bottom:4px;}
.payHead,.payMonthRow{display:grid;grid-template-columns:90px 145px minmax(260px,1fr);gap:14px;align-items:center;min-width:560px;}
.payHead{color:var(--muted);font-weight:900;border-bottom:1px solid var(--line);padding:8px 0;}
.payMonthRow{border-bottom:1px solid var(--line);padding:8px 0;}
.payMonthRow strong{text-align:right;white-space:nowrap;}
.payMonthBar{height:18px;border:1px solid var(--line);border-radius:999px;overflow:hidden;background:rgba(255,255,255,.05);}
.payMonthBar b{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--green),var(--teal));}

/* Gráfico de recebimentos abaixo das metas */
.recebBox{margin-top:18px;border-top:1px solid var(--line);padding-top:16px;}
.recebBox h3{margin:0 0 10px;font-size:18px;}
.miniDonutBox{display:flex;align-items:center;justify-content:center;gap:18px;min-height:170px;}
.miniDonut{width:150px;height:150px;border-radius:50%;box-shadow:0 0 24px rgba(0,0,0,.18);}
.miniLegend{display:grid;gap:6px;max-width:220px;}
.miniLegend p{margin:0;color:var(--muted);font-size:13px;font-weight:800;}
.miniLegend i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;}
.miniLegend b{color:var(--text);}

@media(max-width:1180px){
  .threeCols{grid-template-columns:1fr!important;}
  .autoTable .dataTable{min-width:520px!important;}
}
@media(max-width:720px){
  body{font-size:13px!important;}
  .content{padding:18px!important;}
  .card h2{font-size:22px!important;}
  .splitMetric{grid-template-columns:1fr!important;gap:7px!important;}
  .splitMetric>div{border-left:0!important;border-top:1px solid var(--line)!important;padding-left:0!important;padding-top:7px!important;}
  .splitMetric>div:first-child{border-top:0!important;padding-top:0!important;}
  .splitMetric b{font-size:1rem!important;}
  .miniDonutBox{flex-direction:column;align-items:center;}
  .payHead,.payMonthRow{grid-template-columns:78px 125px minmax(220px,1fr);min-width:470px;font-size:13px;}
}

/* centralpb_dashboard_unidade_v54_clean - correção 500 e compactação final */
body{font-size:13px!important;}
.content{padding:20px!important;}
.topbar{margin-bottom:16px!important;gap:12px!important;}
.topbar h1{font-size:26px!important;}
.card{padding:14px!important;border-radius:12px!important;}
.card h2{font-size:22px!important;margin-top:0!important;margin-bottom:14px!important;}
.kpiGrid,.salesCards{gap:12px!important;margin-bottom:14px!important;}
.metric{min-height:132px!important;}
.ico{width:46px!important;height:46px!important;font-size:20px!important;margin-bottom:12px!important;}
.metricLabel{font-size:11px!important;line-height:1.15!important;}
.metricValue{font-size:18px!important;margin:9px 0 6px!important;}
.metricSub{font-size:12px!important;}

/* Fechadas/Abertas com quebra real e sem embolar */
.metric:has(.splitMetric){min-height:146px!important;}
.splitMetric{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;}
.splitMetric>div{border-left:0!important;border-top:1px solid var(--line)!important;padding-left:0!important;padding-top:7px!important;}
.splitMetric>div:first-child{border-top:0!important;padding-top:0!important;}
.splitMetric span{font-size:.66rem!important;line-height:1.05!important;}
.splitMetric b{font-size:.98rem!important;line-height:1.05!important;white-space:normal!important;}
.splitMetric small{font-size:.66rem!important;line-height:1.05!important;}

/* Ano atual: reduzir espaços, tabela e gauge para matar barra horizontal no desktop */
.vendasMetaLayout{grid-template-columns:minmax(0,1fr) minmax(0,.82fr)!important;gap:12px!important;}
.annualGoalLayout{grid-template-columns:minmax(0,1fr) 230px!important;gap:8px!important;align-items:center!important;overflow:hidden!important;}
.monthGoalLayout{grid-template-columns:minmax(0,1fr) 230px!important;gap:8px!important;}
.goalPanel{min-height:158px!important;gap:6px!important;padding:0!important;}
.oneGauge{width:230px!important;min-width:230px!important;max-width:230px!important;min-height:155px!important;}
.goalGauge,.oneGauge .goalGauge{max-width:205px!important;width:205px!important;}
.goalGauge .gTitle{font-size:14px!important;margin-bottom:2px!important;}
.gCenter strong{font-size:clamp(18px,1.8vw,27px)!important;max-width:150px!important;}
.gCenter small{font-size:11px!important;}
.gScale{font-size:10px!important;margin-top:2px!important;}
.gSub{font-size:10px!important;margin-top:3px!important;}
.monthAuto .dataTable{font-size:12.5px!important;min-width:0!important;width:100%!important;table-layout:auto!important;}
.monthAuto .dataTable th,.monthAuto .dataTable td{font-size:12.5px!important;padding:6px 6px!important;}
.monthAuto .dataTable th:first-child,.monthAuto .dataTable td:first-child{width:62px!important;min-width:62px!important;max-width:62px!important;}
.monthAuto .dataTable th:not(:first-child),.monthAuto .dataTable td:not(:first-child){min-width:88px!important;width:auto!important;}
.monthCurrent .dataTable{font-size:12.5px!important;min-width:300px!important;}
.monthCurrent .dataTable th,.monthCurrent .dataTable td{font-size:12.5px!important;padding:6px 6px!important;}

/* Pagamentos: mês, valor e barra sempre na mesma linha */
.payAligned{overflow-x:hidden!important;}
.payHead,.payMonthRow{display:grid!important;grid-template-columns:86px 128px minmax(260px,1fr)!important;gap:12px!important;min-width:0!important;}
.payMonthRow{padding:7px 0!important;}
.payMonthBar{height:15px!important;}

/* Dashboard/Resumo: reduzir largura das tabelas para evitar rolagens desnecessárias */
.threeCols{gap:12px!important;}
.autoTable .dataTable th,.autoTable .dataTable td{font-size:12.5px!important;padding:6px 7px!important;}
.autoTable .dataTable th:nth-child(1),.autoTable .dataTable td:nth-child(1){min-width:95px!important;max-width:180px!important;}
.autoTable .dataTable th:not(:first-child),.autoTable .dataTable td:not(:first-child){min-width:58px!important;}
.dashboardGoalBox{gap:8px!important;margin-top:12px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
.dashboardGoalBox .goalGauge{max-width:190px!important;width:190px!important;}
.recebBox{margin-top:12px!important;padding-top:12px!important;}
.miniDonutBox{min-height:140px!important;gap:12px!important;}
.miniDonut{width:122px!important;height:122px!important;}
.miniLegend p{font-size:12px!important;}

/* Estornos: manter todos os cancelados, mas compactar a tabela */
.estornosTable .dataTable{min-width:640px!important;}
.estornosTable .dataTable th,.estornosTable .dataTable td{font-size:12.5px!important;padding:6px 7px!important;}
.estornosTable .dataTable th:nth-child(4),.estornosTable .dataTable td:nth-child(4){min-width:210px!important;}

@media(max-width:1180px){
  .vendasMetaLayout{grid-template-columns:1fr!important;}
  .annualGoalLayout,.monthGoalLayout{grid-template-columns:minmax(420px,1fr) 220px!important;overflow-x:auto!important;}
  .oneGauge{width:220px!important;min-width:220px!important;max-width:220px!important;}
}
@media(max-width:720px){
  .content{padding:16px!important;}
  .topbar h1{font-size:24px!important;}
  .card h2{font-size:21px!important;}
  .annualGoalLayout,.monthGoalLayout{grid-template-columns:minmax(420px,1fr) minmax(210px,220px)!important;overflow-x:auto!important;}
  .monthAuto .dataTable,.monthCurrent .dataTable{font-size:13px!important;min-width:360px!important;width:max-content!important;max-width:none!important;}
  .monthAuto .dataTable th,.monthAuto .dataTable td,.monthCurrent .dataTable th,.monthCurrent .dataTable td{font-size:13px!important;padding:6px 7px!important;}
  .payAligned{overflow-x:auto!important;}
  .payHead,.payMonthRow{grid-template-columns:78px 116px minmax(220px,1fr)!important;min-width:440px!important;gap:8px!important;}
  .dashboardGoalBox{grid-template-columns:1fr!important;}
}


/* centralpb_dashboard_unidade_v56_clean - seletor, usuarios e layout compacto */
.input select{
  appearance:none;-webkit-appearance:none;background:transparent;border:0;color:var(--text);font-size:14px;outline:0;width:100%;min-width:170px;padding-right:24px;font-weight:700;
}
html[data-theme="claro"] .input select{color:#061b15;background:transparent;}
.selectInput{position:relative;min-width:210px;background:var(--panel2)!important;border-color:rgba(184,211,200,.32)!important;}
.selectInput:after{content:"⌄";position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--muted);font-weight:900;pointer-events:none;font-size:16px;}
.filters .selectInput{height:44px;}
.itemFilters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:0 0 14px;}
.itemFilters label{font-size:12px;color:var(--muted);font-weight:800;}
.itemFilters .input input{min-width:220px;}
.hint{font-size:12px;color:var(--muted);margin:8px 0 12px;}
.estornosTable .dataTable{min-width:760px!important;}
.estornosTable .dataTable th:nth-child(4),.estornosTable .dataTable td:nth-child(4){min-width:190px!important;max-width:380px!important;white-space:normal!important;}
.estornosTable .dataTable th:nth-child(6),.estornosTable .dataTable td:nth-child(6),.estornosTable .dataTable th:nth-child(7),.estornosTable .dataTable td:nth-child(7){min-width:82px!important;text-align:right!important;}
@media(max-width:720px){
  .selectInput{min-width:0;width:100%;}
  .input select{min-width:0;font-size:15px;}
  .itemFilters{display:grid;grid-template-columns:1fr;gap:10px;}
  .itemFilters .input input{min-width:0;width:100%;}
}


/* V56 - select legível e vínculo usuário x loja */
.input select option,.formGrid select option{background:#0d3329!important;color:#f7fff9!important;}
html[data-theme="claro"] .input select option,html[data-theme="claro"] .formGrid select option{background:#ffffff!important;color:#061b15!important;}
.formGrid select{width:100%;height:38px;border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:8px;padding:0 10px;}
.checksGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin:10px 0 6px}.checkLine{border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--panel2);font-weight:800}.miniBtn{border:0;border-radius:8px;padding:7px 10px;background:#8b1d1d;color:#fff;font-weight:900}.secondaryBtn{display:inline-flex;align-items:center;margin-left:8px;background:#0c6940!important}.usersTable .dataTable{min-width:680px;table-layout:auto}.usersTable th:nth-child(4),.usersTable td:nth-child(4){width:150px;max-width:190px;white-space:normal}.usersTable th:nth-child(5),.usersTable td:nth-child(5){width:64px}.usersTable th:nth-child(6),.usersTable td:nth-child(6){width:128px}.userForm h3{margin-top:18px}

.rowActions{display:flex;gap:6px;align-items:center;flex-wrap:nowrap}.rowActions form{margin:0}.iconAction{display:inline-grid;place-items:center;width:34px;height:34px;padding:0;font-size:19px;line-height:1;cursor:pointer}.dangerBtn{background:#7a1b1b!important;color:#fff!important}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 16px}.tab{padding:8px 12px;border:1px solid var(--border,#2d3b34);border-radius:10px;text-decoration:none}.tab.active{font-weight:700}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
@media print{.sidebar,.filters,.actions,.tabs{display:none!important}.content{margin:0!important}.card{box-shadow:none!important;border:0!important}}

/* V70 - itens de vendas com filtros múltiplos e ordenação */
.itemKpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
.itemCascade{display:grid!important;grid-template-columns:repeat(4,minmax(180px,1fr)) repeat(2,minmax(120px,.55fr)) auto;align-items:end!important;gap:10px!important;}
.filterField>span,.itemCascade>label{display:block;font-size:12px;color:var(--muted);font-weight:800;}
.multiSelect{position:relative;margin-top:5px;}
.multiSelect summary{list-style:none;display:flex;align-items:center;justify-content:space-between;height:44px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--text);font-weight:800;cursor:pointer;white-space:nowrap;}
.multiSelect summary::-webkit-details-marker{display:none}.multiSelect summary:after{content:'⌄';margin-left:10px;color:var(--muted)}
.multiSelect[open] summary{border-color:var(--accent);border-radius:10px 10px 0 0;}
.multiOptions{position:absolute;z-index:20;left:0;right:0;top:44px;max-height:260px;overflow:auto;padding:7px;background:var(--panel2);border:1px solid var(--accent);border-top:0;border-radius:0 0 10px 10px;box-shadow:0 12px 28px rgba(0,0,0,.35);}
.multiOptions label{display:flex;align-items:flex-start;gap:7px;padding:7px;border-radius:7px;color:var(--text);font-size:12px;font-weight:700;cursor:pointer;line-height:1.25;}
.multiOptions label:hover{background:rgba(21,192,95,.13)}.multiOptions input{margin-top:1px;accent-color:var(--accent);}
.multiOptions em{display:block;padding:8px;color:var(--muted);}
.filterActions{display:flex;gap:7px;align-items:center}.clearFilters{display:inline-grid;place-items:center;height:44px;padding:0 13px;border:1px solid var(--line);border-radius:10px;color:var(--text);text-decoration:none;font-weight:800;}
.itemsReport{max-height:640px;overflow:auto;border:1px solid var(--line);border-radius:10px;}
.itemsReport .dataTable{min-width:1080px;width:100%;}
.itemsReport .dataTable thead th{position:sticky;top:0;z-index:3;background:var(--panel2);}
.itemsReport .dataTable th a{display:block;color:var(--text);text-decoration:none;white-space:nowrap;}
.itemsReport .dataTable th a:hover{color:var(--accent);}
.itemsReport .dataTable th:nth-child(1),.itemsReport .dataTable td:nth-child(1){min-width:125px;}
.itemsReport .dataTable th:nth-child(2),.itemsReport .dataTable td:nth-child(2){min-width:115px;}
.itemsReport .dataTable th:nth-child(3),.itemsReport .dataTable td:nth-child(3){min-width:145px;}
.itemsReport .dataTable th:nth-child(4),.itemsReport .dataTable td:nth-child(4){min-width:230px;}
.itemsReport .dataTable tbody tr:first-child td{font-weight:900;color:var(--accent);background:var(--panel2);position:sticky;top:34px;z-index:2;}
@media(max-width:1500px){.itemCascade{grid-template-columns:repeat(4,minmax(170px,1fr));}.filterActions{grid-column:span 2}.itemKpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:900px){.itemCascade{grid-template-columns:repeat(2,minmax(0,1fr))!important;}.filterActions{grid-column:span 2}.itemKpis{grid-template-columns:1fr 1fr!important;}}
@media(max-width:560px){.itemCascade{grid-template-columns:1fr!important;}.filterActions{grid-column:auto}.itemKpis{grid-template-columns:1fr!important;}.multiOptions{position:relative;top:0;}}

/* V70.1 - metas consolidadas */
.configSummaryKpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
.consolidatedGoals .dataTable{min-width:820px;}
@media(max-width:900px){.configSummaryKpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:560px){.configSummaryKpis{grid-template-columns:1fr!important;}}

/* TUDHO V1 - navegação por macroáreas e impressão contextual */
.productName{font-size:12px;font-weight:900;letter-spacing:.22em;text-align:center;color:var(--muted);margin:-8px 0 10px}
.navGroup{border-top:1px solid var(--line);padding-top:7px;margin-top:4px}
.navGroup:first-child{border-top:0;margin-top:0}
.navGroup>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;padding:8px 7px 5px;color:var(--muted);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;user-select:none}
.navGroup>summary::-webkit-details-marker{display:none}
.navGroup[open] .navChevron{transform:rotate(180deg)}
.navChevron{transition:transform .18s ease;font-size:14px}
.navGroupLinks{display:grid;gap:4px;padding-bottom:5px}
.printBtn{height:44px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--text);padding:0 14px;font-weight:900;cursor:pointer;white-space:nowrap}
.printBtn:hover{border-color:#078346;background:rgba(7,131,70,.12)}
.screenActions{display:flex;justify-content:flex-end}
.printContext{display:none}
body.menu-collapsed .productName,body.menu-collapsed .navGroup>summary{display:none!important}
body.menu-collapsed .navGroup{border-top:0;padding-top:0;margin-top:0}
body.menu-collapsed .navGroup:not([open]) .navGroupLinks{display:grid}
@media(max-width:900px){.productName{font-size:10px}.navGroup>summary{justify-content:center}.navChevron{display:none}.navGroupTitle{font-size:9px;text-align:center}.printBtn{width:100%}}
@media print{
  @page{size:auto;margin:10mm}
  html,body{background:#fff!important;color:#111!important}
  .sidebar,.filters,.screenActions,.printBtn,.themeControl,.refresh,.actions,.tabs{display:none!important}
  .app{display:block!important}.content{padding:0!important;margin:0!important;background:#fff!important;color:#111!important}
  .topbar{margin-bottom:8px!important}.topbar h1{display:none!important}
  .printContext{display:block!important;border-bottom:1px solid #999;padding:0 0 8px;margin:0 0 12px;color:#111!important}
  .printContext>b{font-size:18px}.printFilterSummary{font-size:11px;margin-top:5px;color:#444!important}
  .card{box-shadow:none!important;background:#fff!important;color:#111!important;border:1px solid #bbb!important;break-inside:avoid}
  .dataTable th,.dataTable td{color:#111!important;border-color:#ccc!important}
}
