/* Dashboard isolado: não altera os estilos dos relatórios tradicionais. */
.cgt-dash-launch{margin:0 0 12px;display:flex;justify-content:flex-start}.cgt-dash-launch button{background:#2356bb;color:#fff;border:1px solid #5e89e6;border-radius:9px;padding:11px 18px;font-weight:700;cursor:pointer}
#cgtDashboardOverlay{position:fixed;inset:0;z-index:2147482000;background:rgba(0,0,0,.72);display:none;overflow:auto;padding:20px;box-sizing:border-box}#cgtDashboardOverlay.visible{display:block}
#cgtDashboardOverlay .cgt-dash-window{max-width:1280px;margin:auto;background:#f3f6fc;color:#1b2a42;border-radius:15px;padding:18px;box-shadow:0 20px 70px #0008;font:14px system-ui,sans-serif}
#cgtDashboardOverlay header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-bottom:1px solid #cad4e4;margin-bottom:12px}#cgtDashboardOverlay h2{font-size:20px;color:inherit;margin:0 0 10px}#cgtDashboardOverlay button{cursor:pointer;border:1px solid #9cacc4;background:#fff;color:#1b2a42;border-radius:7px;padding:8px 11px;font:inherit}#cgtDashboardOverlay button:hover{border-color:#3e77d3}#cgtDashboardOverlay nav{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}#cgtDashboardOverlay nav button.active{background:#2356bb;color:#fff;border-color:#2356bb}
#cgtDashboardOverlay .cgt-dash-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px;padding:12px;background:#e4eaf4;border-radius:9px}#cgtDashboardOverlay label{font-size:12px;font-weight:600;display:flex;flex-direction:column;gap:5px}#cgtDashboardOverlay label.cgt-dash-check{flex-direction:row;align-items:center;gap:7px}#cgtDashboardOverlay input,#cgtDashboardOverlay select{font:inherit;min-width:0;padding:7px;border-radius:6px;border:1px solid #a9b9d0;background:#fff;color:#172a48}#cgtDashboardOverlay .cgt-dash-actions{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}#cgtDashboardOverlay #dashLoading{font-size:12px;color:#456184}#cgtDashboardOverlay #dashMetrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px;margin:12px 0}#cgtDashboardOverlay .cgt-dash-metric{background:#fff;border:1px solid #d0dcec;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:5px}#cgtDashboardOverlay .cgt-dash-metric small{font-size:12px;color:#516782}#cgtDashboardOverlay .cgt-dash-metric strong{font-size:23px;color:#2459b3}
#cgtDashboardOverlay #dashCharts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:10px}#cgtDashboardOverlay .cgt-dash-chart{background:#fff;border:1px solid #d0dcec;border-radius:10px;padding:12px;min-width:0}#cgtDashboardOverlay .cgt-dash-chart h3{margin:0 0 10px;font-size:14px}#cgtDashboardOverlay .cgt-dash-bar{width:100%;display:grid;grid-template-columns:minmax(75px,1fr) 2fr 58px;gap:8px;align-items:center;margin:4px 0;padding:4px;background:transparent;border:0;text-align:left;font-size:12px}#cgtDashboardOverlay .cgt-dash-bar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#cgtDashboardOverlay .cgt-dash-bar i{height:12px;border-radius:6px;background:#dbe5f2;overflow:hidden}#cgtDashboardOverlay .cgt-dash-bar b{display:block;height:100%;background:#3d7ee5;border-radius:6px}#cgtDashboardOverlay .cgt-dash-bar strong{text-align:right}
#cgtDashboardOverlay .cgt-dash-table{overflow:auto;max-height:330px;background:#fff;border-radius:8px}#cgtDashboardOverlay table{width:100%;border-collapse:collapse;font-size:12px}#cgtDashboardOverlay td,#cgtDashboardOverlay th{border-bottom:1px solid #d7e1ef;padding:8px;text-align:left}#cgtDashboardOverlay .cgt-dash-note{font-size:12px;color:#526982}
html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-dash-window{background:#172337;color:#f0f5ff}html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-dash-filters{background:#283a52}html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-dash-metric,html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-dash-chart,html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-dash-table{background:#26374f;border-color:#4b6382}html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-dash-metric strong{color:#a9caff}html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-dash-metric small,html[data-cgt-theme="dark"] #cgtDashboardOverlay #dashLoading,html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-dash-note{color:#c2d5ed}html[data-cgt-theme="dark"] #cgtDashboardOverlay button{background:#344b69;color:#f0f5ff;border-color:#59779c}html[data-cgt-theme="dark"] #cgtDashboardOverlay nav button.active{background:#2459bd}html[data-cgt-theme="dark"] #cgtDashboardOverlay input,html[data-cgt-theme="dark"] #cgtDashboardOverlay select{background:#1b2a3f;color:#f4f8ff;border-color:#5b7596}html[data-cgt-theme="dark"] #cgtDashboardOverlay td,html[data-cgt-theme="dark"] #cgtDashboardOverlay th{border-color:#435b79}
@media print{body>*:not(#cgtDashboardOverlay){display:none!important}#cgtDashboardOverlay{display:block!important;position:static;padding:0;background:#fff}#cgtDashboardOverlay .cgt-dash-window{box-shadow:none;background:#fff;color:#000}#cgtDashboardOverlay header button,#cgtDashboardOverlay nav,#cgtDashboardOverlay .cgt-dash-filters,#cgtDashboardOverlay .cgt-dash-actions{display:none!important}#cgtDashboardOverlay .cgt-dash-table{max-height:none}}

/* Layout horizontal exclusivo do novo Dashboard GERAL. */
#cgtDashboardOverlay .cgt-dash-window{max-width:1680px;width:min(100%,1680px)}
#cgtDashboardOverlay .cgt-dash-general{display:grid;grid-template-columns:1fr;gap:12px;width:100%}
#cgtDashboardOverlay .cgt-dash-general .cgt-dash-chart{min-width:0}
#cgtDashboardOverlay .cgt-dash-general-summary{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 14px}
#cgtDashboardOverlay .cgt-dash-general-summary>div{flex:1 1 130px;border:1px solid #d4e0ef;background:#edf3fb;border-radius:9px;padding:10px;display:flex;flex-direction:column;gap:5px}
#cgtDashboardOverlay .cgt-dash-general-summary small{font-size:11px;color:#4b6484}
#cgtDashboardOverlay .cgt-dash-general-summary strong{font-size:21px;color:#2459b3}
#cgtDashboardOverlay .cgt-dash-matrix{overflow-x:auto}
#cgtDashboardOverlay .cgt-dash-matrix table{min-width:1000px;width:100%;text-align:center;font-variant-numeric:tabular-nums}
#cgtDashboardOverlay .cgt-dash-matrix td,#cgtDashboardOverlay .cgt-dash-matrix th{text-align:center;padding:8px 4px}
#cgtDashboardOverlay .cgt-dash-matrix thead,#cgtDashboardOverlay .cgt-dash-matrix tfoot{background:#e6eef9}
#cgtDashboardOverlay button.cgt-dash-month{padding:4px 6px;border:0;background:transparent;min-width:26px}
#cgtDashboardOverlay .cgt-dash-month-chart{height:240px;display:grid;grid-template-columns:repeat(12,minmax(42px,1fr));gap:8px;align-items:end;padding:15px 4px 0;border-bottom:1px solid #b8c9de;overflow-x:auto}
#cgtDashboardOverlay .cgt-dash-month-group{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:end;gap:7px;font-size:11px}
#cgtDashboardOverlay .cgt-dash-columns{height:calc(100% - 25px);width:100%;display:flex;align-items:end;justify-content:center;gap:2px}
#cgtDashboardOverlay button.cgt-dash-column{flex:1;max-width:17px;min-width:3px;padding:0;border:0;border-radius:3px 3px 0 0}
#cgtDashboardOverlay .cgt-dash-year-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px}
#cgtDashboardOverlay .cgt-dash-year-legend span{display:flex;align-items:center;gap:5px}
#cgtDashboardOverlay .cgt-dash-year-legend i,#cgtDashboardOverlay .cgt-dash-donut-legend i{display:inline-block;width:10px;height:10px;border-radius:2px}
#cgtDashboardOverlay .cgt-dash-help{font-size:11px;color:#526982}
#cgtDashboardOverlay .cgt-dash-compact{max-width:540px}
#cgtDashboardOverlay .cgt-dash-donut-row{display:flex;align-items:center;gap:22px}
#cgtDashboardOverlay .cgt-dash-donut-legend{flex:1;display:grid;gap:8px}
#cgtDashboardOverlay .cgt-dash-donut-legend>div{display:flex;align-items:center;gap:8px;font-size:12px}
#cgtDashboardOverlay .cgt-dash-donut-legend b{margin-left:auto}
html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-dash-general-summary>div{background:#304661;border-color:#506a8c}
html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-dash-general-summary small,html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-dash-help{color:#c4d7ef}
html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-dash-general-summary strong{color:#b4d0ff}
html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-dash-matrix thead,html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-dash-matrix tfoot{background:#304661}
@media print{@page{size:A4 landscape;margin:9mm}#cgtDashboardOverlay .cgt-dash-general .cgt-dash-chart{break-inside:avoid}#cgtDashboardOverlay .cgt-dash-matrix table{min-width:0;font-size:9px}#cgtDashboardOverlay .cgt-dash-month-chart{height:155px}}

/* Quantidades sempre visíveis nas barras e porcentagens na legenda da rosca do Geral. */
#cgtDashboardOverlay button.cgt-dash-column{position:relative;overflow:visible}
#cgtDashboardOverlay .cgt-dash-column-label{position:absolute;left:50%;bottom:calc(100% + 3px);transform:translateX(-50%);font-size:10px;font-weight:700;color:#1d304b;white-space:nowrap;pointer-events:none}
html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-dash-column-label{color:#f4f8ff}
#cgtDashboardOverlay .cgt-dash-month-chart{padding-top:26px}
#cgtDashboardOverlay .cgt-personal-tools{grid-column:1/-1;background:#e6eef9;border-radius:9px;padding:12px}
#cgtDashboardOverlay .cgt-personal-tools h3{margin:0 0 6px}#cgtDashboardOverlay .cgt-personal-tools p{margin:4px 0 10px}#cgtDashboardOverlay .cgt-personal-tools small{display:block;margin-top:8px}
#cgtDashboardOverlay .cgt-personal-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
#cgtDashboardOverlay .cgt-personal-card{min-height:95px}#cgtDashboardOverlay .cgt-personal-heading{display:flex;justify-content:space-between;align-items:start;gap:6px;flex-wrap:wrap}
#cgtDashboardOverlay .cgt-personal-buttons{display:flex;gap:3px}#cgtDashboardOverlay .cgt-personal-buttons button{padding:3px 6px;font-size:11px}
#cgtDashboardOverlay .cgt-personal-value{font-size:27px;color:#2459b3}
#cgtDashboardOverlay .cgt-personal-bar{display:grid;grid-template-columns:minmax(85px,1fr) 2fr 60px;gap:8px;align-items:center;margin:6px 0;font-size:12px}
#cgtDashboardOverlay .cgt-personal-bar span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#cgtDashboardOverlay .cgt-personal-bar i{height:11px;border-radius:8px;background:#dbe5f2;overflow:hidden}#cgtDashboardOverlay .cgt-personal-bar b{display:block;background:#3d7ee5;height:100%;border-radius:8px}#cgtDashboardOverlay .cgt-personal-bar strong{text-align:right}
html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-personal-tools{background:#304661}html[data-cgt-theme="dark"] #cgtDashboardOverlay .cgt-personal-value{color:#b4d0ff}
@media(max-width:850px){#cgtDashboardOverlay .cgt-personal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#cgtDashboardOverlay .cgt-personal-card[style*="span 3"]{grid-column:span 2!important}}
@media(max-width:550px){#cgtDashboardOverlay .cgt-personal-grid{grid-template-columns:1fr}#cgtDashboardOverlay .cgt-personal-card{grid-column:span 1!important}}
@media print{#cgtDashboardOverlay .cgt-personal-tools button,#cgtDashboardOverlay .cgt-personal-tools select,#cgtDashboardOverlay .cgt-personal-buttons{display:none!important}}
/* Arrastar e soltar: exclusivo do Meu Dashboard */
#cgtDashboardOverlay .cgt-personal-grip{display:inline-flex;align-items:center;cursor:grab;user-select:none;touch-action:none;font-size:11px;font-weight:600;border:1px dashed #7895b6;border-radius:5px;padding:3px 7px;color:inherit}
#cgtDashboardOverlay .cgt-personal-grip:active{cursor:grabbing}
#cgtDashboardOverlay .cgt-personal-dragging{opacity:.45}
#cgtDashboardOverlay .cgt-personal-drop-target{outline:2px dashed #4e9dff;outline-offset:2px}

/* Galeria de graficos: somente Meu Dashboard */
#cgtDashboardOverlay .cgt-chart-editor{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:8px 0 12px;font-size:12px}
#cgtDashboardOverlay .cgt-chart-editor select{max-width:190px;padding:5px;border-radius:5px}
#cgtDashboardOverlay .cgt-chart-editor label{display:flex;gap:5px;align-items:center}
#cgtDashboardOverlay .cgt-chart-visual{max-width:320px;margin:auto}
#cgtDashboardOverlay .cgt-chart-visual svg{display:block;width:100%;max-height:230px}
#cgtDashboardOverlay .cgt-chart-legend{display:flex;gap:6px 12px;flex-wrap:wrap;margin-top:8px;font-size:11px}
#cgtDashboardOverlay .cgt-chart-legend span{display:flex;align-items:center;gap:5px}
#cgtDashboardOverlay .cgt-chart-legend i{display:inline-block;width:9px;height:9px;border-radius:2px}
#cgtDashboardOverlay .cgt-chart-columns{height:190px;display:flex;gap:7px;align-items:end;overflow-x:auto;padding:12px 2px 28px}
#cgtDashboardOverlay .cgt-chart-columns>div{height:100%;min-width:36px;flex:1;display:flex;flex-direction:column;justify-content:end;align-items:center;gap:4px;font-size:10px}
#cgtDashboardOverlay .cgt-chart-columns i{display:block;width:75%;min-height:2px;border-radius:3px 3px 0 0}
#cgtDashboardOverlay .cgt-chart-columns small{max-width:75px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#cgtDashboardOverlay .cgt-chart-tree{display:flex;min-height:120px;gap:3px;overflow:hidden}
#cgtDashboardOverlay .cgt-chart-tree>div{min-width:20px;display:grid;place-items:center;padding:5px;color:white;font-size:10px;overflow:hidden}
#cgtDashboardOverlay .cgt-chart-heat{display:grid;grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:4px}
#cgtDashboardOverlay .cgt-chart-heat>div{padding:12px 5px;display:grid;text-align:center;font-size:10px;border-radius:4px;color:#10243a}
#cgtDashboardOverlay .cgt-chart-bubbles{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:135px}
#cgtDashboardOverlay .cgt-chart-bubbles span{border-radius:50%;display:grid;place-items:center;color:white;font-weight:bold}
#cgtDashboardOverlay .cgt-chart-table{overflow-x:auto}
#cgtDashboardOverlay .cgt-chart-table table{width:100%;font-size:11px}
@media print{#cgtDashboardOverlay .cgt-chart-editor{display:none!important}}

/* Biblioteca ampliada Meu Dashboard */
.cgt-dash-add-personal{margin:8px 0 12px;padding:7px 12px;border:1px solid #58789d;background:#314c70;color:#fff;border-radius:7px;cursor:pointer;font:inherit}.cgt-dash-add-personal:hover{background:#41638c}.cgt-personal-tools #cgtPersonalGroup{max-width:220px}.cgt-personal-tools #cgtPersonalAdd{max-width:360px}.cgt-personal-card .cgt-dash-matrix{overflow-x:auto}.cgt-personal-card .cgt-dash-month-chart{min-height:235px}
/* Meu Dashboard: conversão individual e impressão configurável */
#cgtDashboardOverlay .cgt-personal-print-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}
#cgtDashboardOverlay #cgtPrintSettings{flex-basis:100%;display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px;border:1px solid #4d6888;border-radius:8px}
#cgtDashboardOverlay #cgtPrintSettings[hidden]{display:none!important}
#cgtDashboardOverlay #cgtPrintSettings label{display:flex;align-items:center;gap:5px;font-size:12px}
#cgtDashboardOverlay #cgtPrintSettings select{max-width:130px;padding:5px}
#cgtDashboardOverlay .cgt-print-card-select{font-size:11px;white-space:nowrap;display:flex;gap:3px;align-items:center}
#cgtDashboardOverlay .cgt-personal-print-header{display:none}
@media print{
 #cgtDashboardOverlay.cgt-print-personal .cgt-personal-tools,
 #cgtDashboardOverlay.cgt-print-personal .cgt-personal-grip,
 #cgtDashboardOverlay.cgt-print-personal .cgt-personal-buttons,
 #cgtDashboardOverlay.cgt-print-personal .cgt-chart-editor,
 #cgtDashboardOverlay.cgt-print-personal .cgt-dash-table,
 #cgtDashboardOverlay.cgt-print-personal .cgt-dash-note,
 #cgtDashboardOverlay.cgt-print-personal #dashCount,
 #cgtDashboardOverlay.cgt-print-personal .cgt-dash-window>h3{display:none!important}
 #cgtDashboardOverlay.cgt-print-personal .cgt-personal-print-header{display:block;color:#111;margin-bottom:10px}
 #cgtDashboardOverlay.cgt-print-personal .cgt-personal-print-header h2{font-size:17px;margin:0 0 5px}
 #cgtDashboardOverlay.cgt-print-personal .cgt-personal-print-header p{font-size:10px;margin:0 0 10px}
 #cgtDashboardOverlay.cgt-print-personal .cgt-print-skip{display:none!important}
 #cgtDashboardOverlay.cgt-print-personal .cgt-personal-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
 #cgtDashboardOverlay.cgt-print-personal .cgt-personal-card{break-inside:avoid;page-break-inside:avoid;min-width:0;overflow:visible}
 #cgtDashboardOverlay.cgt-print-personal .cgt-dash-window{width:100%;max-width:none;overflow:visible}
 #cgtDashboardOverlay.cgt-print-personal:not(.cgt-print-dark) .cgt-personal-card{background:#fff!important;color:#111!important;border:1px solid #bbb!important}
 #cgtDashboardOverlay.cgt-print-personal:not(.cgt-print-dark) .cgt-personal-card *{color:#111}
 #cgtDashboardOverlay.cgt-print-personal .cgt-chart-table{overflow:visible}
 #cgtDashboardOverlay.cgt-print-personal .cgt-chart-table thead{display:table-header-group}
}

/* Controles patrimoniais compactos: não alterar o checkbox de sucata dos relatórios legados. */
#cgtDashboardOverlay .cgt-dash-balance-toggles{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin:10px 0 0;padding:0 2px}
#cgtDashboardOverlay .cgt-dash-balance-toggles[hidden]{display:none!important}
#cgtDashboardOverlay .cgt-dash-balance-toggles label{display:inline-flex;flex-direction:row;align-items:center;gap:7px;font-size:13px;cursor:pointer;width:auto}
#cgtDashboardOverlay .cgt-dash-balance-toggles input{width:16px;height:16px;min-width:16px;margin:0;padding:0;accent-color:#2c66c6}
@media print{#cgtDashboardOverlay .cgt-dash-balance-toggles{display:none!important}}
