/* Painéis Gerenciais — visual escuro no padrão dos painéis de diretoria (tabs no topo, filtros, cards e gráficos). */
#gerSection { --g-bg: #13213f; --g-top: #0f1b35; --g-panel: #4d5d7a; --g-panel2: #44536e; --g-line: rgba(255,255,255,.14); --g-text: #ffffff; --g-muted: #c9d3e3; --g-accent: #7ac943; --g-input: #ffffff; --g-input-text: #111827; --g-bar-track: rgba(255,255,255,.08); }
#gerSection[data-theme="teal"] { --g-bg: #23465c; --g-top: #1c3a4e; --g-panel: #5a7789; --g-panel2: #4f6b7d; }
#gerSection[data-theme="green"] { --g-bg: #2b594d; --g-top: #234b40; --g-panel: #4a776b; --g-panel2: #426b60; }

#gerSection { margin: 0; }
.ger-board { background: var(--g-bg); color: var(--g-text); border-radius: 18px; overflow: hidden; min-height: calc(100vh - 140px); box-shadow: 0 10px 30px rgba(15,23,42,.18); font-family: "Segoe UI", system-ui, sans-serif; }
.ger-top { display: flex; align-items: center; gap: 22px; background: var(--g-top); padding: 12px 22px; box-shadow: 0 2px 10px rgba(0,0,0,.25); flex-wrap: wrap; }
.ger-title { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.ger-title strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.ger-title small { color: var(--g-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.ger-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #f2c94c 0 45%, #7ac943 45% 100%); box-shadow: inset 0 0 0 3px rgba(255,255,255,.15); }
.ger-tabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.ger-tabs button { background: none; border: 0; color: #d8e0ee; font-size: 15px; padding: 10px 14px 8px; border-bottom: 3px solid transparent; cursor: pointer; }
.ger-tabs button:hover { color: #fff; }
.ger-tabs button.active { color: #fff; font-weight: 700; border-bottom-color: var(--g-accent); }
.ger-actions { display: flex; gap: 8px; margin-left: auto; }

.ger-btn { background: var(--g-accent); color: #0f1b35; border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.ger-btn:hover { filter: brightness(1.06); }
.ger-btn:disabled { opacity: .6; cursor: wait; }
.ger-btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.ger-btn.mini { padding: 4px 9px; font-size: 12px; }
.ger-btn.file { display: inline-flex; align-items: center; }

.ger-message { margin: 12px 22px 0; padding: 10px 14px; border-radius: 10px; font-size: 14px; background: #fde8e8; color: #7f1d1d; }
.ger-message.success { background: #dcfce7; color: #14532d; }
.ger-message.info { background: #e0f2fe; color: #0c4a6e; }
.ger-warn { background: rgba(242,201,76,.16); border: 1px solid rgba(242,201,76,.5); color: #fff; border-radius: 10px; padding: 9px 14px; margin-bottom: 14px; font-size: 13px; }
.ger-warn a, .ger-empty a { color: #f2c94c; }

.ger-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; padding: 16px 22px 4px; }
.ger-filters:empty { display: none; }
.ger-field { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.ger-field > span { font-size: 15px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #fff; text-align: center; }
.ger-field select, .ger-multi-button { height: 40px; border-radius: 2px; border: 0; background: var(--g-input); color: var(--g-input-text); font-size: 15px; padding: 0 34px 0 10px; min-width: 170px; text-align: left; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%23111827' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.ger-multi { position: relative; }
.ger-multi-menu { position: absolute; top: 72px; left: 0; z-index: 40; background: #fff; color: #111827; border-radius: 8px; box-shadow: 0 12px 30px rgba(0,0,0,.3); padding: 8px; min-width: 200px; max-height: 320px; overflow: auto; }
.ger-multi-menu label { display: flex; gap: 8px; align-items: center; padding: 5px 6px; font-size: 14px; text-transform: none; font-weight: 400; cursor: pointer; }
.ger-multi-menu label:hover { background: #f1f5f9; border-radius: 6px; }
.ger-multi-foot { display: flex; justify-content: space-between; border-top: 1px solid #e5e7eb; margin-top: 6px; padding-top: 6px; }
.ger-multi-foot button { border: 0; background: #13213f; color: #fff; border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.ger-multi-foot button[data-multi-clear] { background: #e5e7eb; color: #111827; }
.ger-toggle { display: flex; }
.ger-toggle button { height: 40px; min-width: 190px; border: 1px solid #c7cfdc; background: #fff; color: #111827; font-size: 15px; letter-spacing: .02em; cursor: pointer; }
.ger-toggle button + button { border-left: 0; }
.ger-toggle button.active { background: #2b3a63; color: #fff; border-color: #2b3a63; }
.ger-hint { font-size: 12px; color: var(--g-muted); align-self: center; border: 1px dashed rgba(255,255,255,.35); border-radius: 999px; padding: 4px 10px; }

.ger-body { padding: 16px 22px 26px; }
.ger-loading, .ger-nodata { color: var(--g-muted); text-align: center; padding: 28px 10px; font-size: 14px; }
.ger-empty { background: var(--g-panel); border-radius: 14px; padding: 28px; text-align: center; }
.ger-empty strong { font-size: 18px; display: block; margin-bottom: 6px; }
.ger-note { color: var(--g-muted); font-size: 12px; margin: 12px 2px 0; }
.ger-muted { color: var(--g-muted); font-size: 13px; }
.ger-pending { font-style: normal; font-size: 11px; background: #f2c94c; color: #111827; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }

.ger-grid { display: grid; gap: 18px; margin-bottom: 18px; }
.ger-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ger-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ger-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ger-grid-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ger-grid-carteira { grid-template-columns: 1fr 1fr 1.6fr; grid-template-rows: auto auto; }
.ger-grid-carteira .ger-span-rows { grid-column: 3; grid-row: 1 / span 2; }
.ger-grid-unidade { grid-template-columns: repeat(3, minmax(0, 1fr)) 1.25fr; }
.ger-grid-unidade .ger-sim { grid-column: 4; grid-row: 1 / span 2; }
.ger-grid-custos { grid-template-columns: .8fr 1.1fr 1.7fr; }
.ger-grid-distratos { grid-template-columns: 1.1fr 1fr; }
.ger-grid.inner { margin: 0; }
.ger-span-3 { grid-column: 1 / -1; }
.ger-stack { display: grid; gap: 18px; align-content: start; }

.ger-kpi, .ger-panel { background: var(--g-panel); border-radius: 14px; padding: 16px 18px; position: relative; min-width: 0; }
.ger-kpi { text-align: center; }
.ger-kpi.accent { border-left: 7px solid var(--g-accent); text-align: left; }
.ger-kpi.clickable, .ger-kpi-section.clickable, .clickable { cursor: pointer; }
.ger-kpi.clickable:hover, .ger-kpi-section.clickable:hover { box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); border-radius: 10px; }
.ger-kpi h4, .ger-kpi-section h4 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #fff; }
.ger-kpi strong, .ger-kpi-section strong { display: block; font-size: 24px; font-weight: 700; color: #fff; line-height: 1.25; word-break: break-word; }
.ger-kpi small { display: block; color: var(--g-muted); font-size: 12px; margin-top: 2px; }
.ger-kpi.tall { display: grid; gap: 4px; text-align: left; border-left: 7px solid var(--g-accent); }
.ger-kpi-section { padding: 6px 6px 8px; border-bottom: 1px solid var(--g-line); }
.ger-kpi-section:last-child { border-bottom: 0; }
.ger-kpi-section h4 { font-size: 16px; margin-bottom: 2px; }
.ger-kpi-section strong { font-size: 21px; }
.ger-kpi-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 14px; text-align: left; color: var(--g-muted); }
.ger-kpi-row b { color: #fff; font-weight: 700; white-space: nowrap; }
.ger-kpi-row.big b { font-size: 18px; }
.ger-tip { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); color: #fff; font-size: 11px; font-weight: 700; font-style: italic; font-family: Georgia, serif; vertical-align: middle; cursor: help; margin-left: 4px; }

.ger-panel h3 { text-align: center; margin: 0 0 12px; font-size: 19px; font-weight: 700; color: #fff; }
.ger-panel.tall { align-self: stretch; }
.ger-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: -4px 0 10px; font-size: 14px; color: #fff; }
.ger-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ger-legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }

.ger-chips { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 14px; justify-content: center; align-items: center; color: var(--g-muted); font-size: 13px; }
.ger-chips.right { justify-content: flex-end; }
.ger-chips button { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.85); padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; margin: 0 -1.5px 0 0; min-width: 120px; }
.ger-chips.wide { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--g-panel); border-radius: 14px; padding: 16px 18px; }
.ger-chips.wide button { padding: 13px 10px; font-size: 15px; font-weight: 500; }
.ger-chips button.active { background: #3a3a3a; }
.ger-chips button + button { margin-left: 0; }

/* gráficos */
.ger-chart-scroll { overflow-x: auto; }
.ger-svg { display: block; max-width: none; }
.ger-svg .grid { stroke: rgba(255,255,255,.18); stroke-dasharray: 2 4; }
.ger-svg .axis { stroke: rgba(255,255,255,.35); }
.ger-svg .sep { stroke: rgba(255,255,255,.25); stroke-dasharray: 2 4; }
.ger-svg text { fill: #fff; font-size: 13px; text-anchor: middle; font-family: "Segoe UI", system-ui, sans-serif; }
.ger-svg text.val { font-weight: 700; font-size: 12.5px; }
.ger-svg text.val.sm { font-size: 10.5px; }
.ger-svg text.in { font-size: 11px; font-weight: 700; fill: #0f1b35; }
.ger-svg text.cat { font-size: 13px; fill: #e8edf6; }
.ger-svg text.grp { font-weight: 700; }
.ger-svg rect.clickable:hover { opacity: .85; }

.ger-hbars { display: grid; gap: 12px; padding: 4px 4px 4px 0; }
.ger-hbar { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; align-items: center; gap: 12px; }
.ger-hbar.clickable:hover .ger-hbar-label { text-decoration: underline; }
.ger-hbar-label { text-align: right; font-size: 14px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ger-hbar-track { position: relative; display: flex; align-items: center; gap: 8px; min-height: 30px; }
.ger-hbar-track i { display: block; height: 30px; border-radius: 1px; flex: none; max-width: calc(100% - 92px); }
.ger-hbar-track em { font-style: normal; font-weight: 700; font-size: 13px; color: #fff; white-space: nowrap; }
.ger-hbars.grouped .ger-hbar-stack { display: grid; gap: 2px; }
.ger-hbars.grouped .ger-hbar-track, .ger-hbars.grouped .ger-hbar-track i { min-height: 22px; height: 22px; }
.ger-total-label { text-align: center; margin-top: 18px; }
.ger-total-label b { display: block; font-size: 24px; }
.ger-total-label span { font-size: 17px; font-weight: 700; }

.ger-donut { display: flex; align-items: center; gap: 18px; justify-content: center; flex-wrap: wrap; }
.ger-donut svg { width: 210px; height: 210px; flex: none; }
.ger-donut circle.dim { opacity: .3; }
.ger-donut circle.clickable:hover { opacity: .85; }
.ger-donut text.big { fill: #fff; font-size: 26px; font-weight: 700; text-anchor: middle; }
.ger-donut text.small { fill: var(--g-muted); font-size: 12px; text-anchor: middle; }
.ger-donut ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; min-width: 210px; }
.ger-donut li { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; font-size: 14px; padding: 3px 6px; border-radius: 6px; }
.ger-donut li.clickable:hover, .ger-donut li.active { background: rgba(255,255,255,.12); }
.ger-donut li i { width: 12px; height: 12px; border-radius: 50%; }
.ger-donut li em { font-style: normal; color: var(--g-muted); font-size: 12px; min-width: 46px; text-align: right; }

/* tabelas */
.ger-table-wrap { overflow: auto; max-height: 560px; border-radius: 8px; }
.ger-table { width: 100%; border-collapse: collapse; font-size: 14px; color: #fff; }
.ger-table th { position: sticky; top: 0; background: var(--g-panel); font-weight: 700; padding: 10px 10px; text-align: left; border-bottom: 3px solid rgba(0,0,0,.25); z-index: 1; font-size: 15px; }
.ger-table th.n, .ger-table td.n { text-align: right; white-space: nowrap; }
.ger-table th.sortable { cursor: pointer; }
.ger-table th.sortable.desc::after { content: " ▼"; font-size: 10px; }
.ger-table th.sortable.asc::after { content: " ▲"; font-size: 10px; }
.ger-table td { padding: 7px 10px; border-bottom: 1px solid var(--g-line); vertical-align: middle; }
.ger-table td small { color: var(--g-muted); font-weight: 400; margin-left: 4px; }
.ger-table tfoot td { background: var(--g-accent); color: #0f1b35; font-weight: 800; position: sticky; bottom: 0; }
.ger-table tr.lvl0 td:first-child { font-weight: 800; text-transform: uppercase; }
.ger-table tr.lvl1 td:first-child { padding-left: 28px; }
.ger-table tr.lvl2 td:first-child { padding-left: 50px; }
.ger-table tr.lvl3 > td { background: rgba(0,0,0,.14); padding: 8px 10px 10px 50px; }
.ger-table tr.xp, .ger-table tr.toggler, .ger-table tr[data-unit-bill] { cursor: pointer; }
.ger-table tr.xp:hover td, .ger-table tr.toggler:hover td, .ger-table tr[data-unit-bill]:hover td { background: rgba(255,255,255,.06); }
.ger-table tr.selected td { background: rgba(122,201,67,.16); }
.ger-table tr.hidden { display: none; }
.ger-table tr.changed td { background: rgba(242,201,76,.15); }
.ger-exp { background: none; border: 0; color: #fff; font-size: 14px; cursor: pointer; padding: 0 4px 0 0; }
.ger-table.mini { font-size: 12.5px; }
.ger-table.mini th { position: static; background: rgba(0,0,0,.2); font-size: 12.5px; padding: 6px 8px; }
.ger-table.mini td { padding: 5px 8px; }
.ger-table.mini tr.late td { color: #ffd6d6; }
.ger-table.light input, .ger-table.light select { background: #fff; color: #111827; border: 0; border-radius: 6px; padding: 5px 8px; font-size: 13px; max-width: 100%; }
.ger-table.light input[type="checkbox"] { width: 18px; height: 18px; }
.ger-row-actions { white-space: nowrap; }
.ger-row-actions button { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: 6px; padding: 3px 8px; font-size: 12px; margin-right: 4px; cursor: pointer; }
.ger-inline-panel { margin-top: 8px; background: rgba(0,0,0,.18); border-radius: 8px; padding: 10px 12px; font-size: 13px; }
.ger-inline-panel h5 { margin: 0 0 6px; font-size: 13px; }
.ger-inline-panel ul { margin: 0; padding-left: 18px; }
.ger-status { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 8px; margin-left: 6px; color: #0f1b35; text-transform: none; }
.ger-status.s-QUITADO { background: #9cc0ff; }
.ger-status.s-ADIMPLENTE { background: #9fe08a; }
.ger-status.s-EM_ATRASO { background: #f6dc7c; }
.ger-status.s-INADIMPLENTE { background: #f5a3a3; }

/* simulador */
.ger-sim h3 { text-align: left; font-size: 18px; margin-bottom: 8px; }
.ger-sim-bill { width: 100%; height: 36px; border-radius: 6px; border: 0; margin-bottom: 8px; padding: 0 8px; }
.ger-sim-row { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.ger-sim-row input[type="number"] { width: 92px; height: 40px; font-size: 18px; font-weight: 700; border: 1px solid #fff; background: transparent; color: #fff; text-align: center; border-radius: 4px; }
.ger-sim-row input[type="range"] { flex: 1; accent-color: var(--g-accent); }
.ger-sim-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* árvore de decomposição */
.ger-tree-wrap { position: relative; overflow-x: auto; padding-bottom: 6px; }
.ger-tree-lines { position: absolute; left: 0; top: 0; pointer-events: none; }
.ger-tree-lines path { fill: none; stroke: rgba(255,255,255,.75); stroke-width: 1.2; }
.ger-tree-lines path.on { stroke: #5b8ff9; stroke-width: 2; }
.ger-tree { display: flex; gap: 70px; align-items: flex-start; min-width: max-content; position: relative; }
.ger-tree-col { display: grid; gap: 22px; width: 210px; align-content: start; }
.ger-tree-col.root { align-self: center; }
.ger-tree-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #5b8ff9; font-size: 16px; font-weight: 600; padding-bottom: 3px; }
.ger-tree-head button { background: none; border: 0; color: #fff; font-size: 18px; cursor: pointer; }
.ger-node { display: grid; gap: 3px; text-align: left; background: none; border: 0; color: #fff; padding: 0; cursor: pointer; font: inherit; }
.ger-node .bar { display: block; height: 12px; background: #e9edf3; }
.ger-node .bar i { display: block; height: 100%; background: #5b8ff9; }
.ger-node b { font-size: 14px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ger-node.selected b { font-weight: 800; }
.ger-node em { font-style: normal; font-weight: 700; font-size: 13px; color: #fff; background: rgba(0,0,0,.18); padding: 1px 6px; justify-self: start; border-radius: 3px; }
.ger-more { color: var(--g-muted); font-size: 12px; }

/* relatórios e cadastros */
.ger-reports { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ger-report { background: var(--g-panel); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.ger-report h4 { margin: 0; font-size: 17px; }
.ger-report p { margin: 0; color: var(--g-muted); font-size: 13px; flex: 1; }
.ger-report-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ger-form { display: grid; gap: 16px; }
.ger-form fieldset { border: 1px solid var(--g-line); border-radius: 12px; padding: 12px 16px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px 18px; background: var(--g-panel2); }
.ger-form legend { font-weight: 700; padding: 0 6px; font-size: 15px; }
.ger-form.inline { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 16px; align-items: end; }
.ger-form-field { display: grid; gap: 5px; font-size: 13px; color: var(--g-muted); }
.ger-form-field > span { color: #fff; font-weight: 600; }
.ger-form-field input:not([type="checkbox"]), .ger-form-field select, .ger-form-field textarea, .ger-toolbar input, .ger-details textarea, .ger-form-row select, .ger-form-row input { background: #fff; color: #111827; border: 0; border-radius: 6px; padding: 8px 10px; font-size: 14px; width: 100%; box-sizing: border-box; }
.ger-form-field input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--g-accent); }
.ger-form-field small { font-size: 11px; }
.ger-form-actions { display: flex; gap: 10px; flex-wrap: wrap; grid-column: 1 / -1; }
.ger-form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.ger-form-row label { display: grid; gap: 4px; font-size: 12px; }
.ger-form-row label.grow { flex: 1; min-width: 200px; }
.ger-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.ger-toolbar input[type="search"] { max-width: 320px; }
.ger-toolbar label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.ger-toolbar label input { width: 110px; }
.ger-details { margin-top: 12px; }
.ger-details summary { cursor: pointer; font-weight: 600; }
.ger-details textarea { margin: 8px 0; font-family: Consolas, monospace; }
.ger-mirror { display: flex; gap: 14px; margin: 12px 0; flex-wrap: wrap; }
.ger-mirror div { background: rgba(0,0,0,.18); border-radius: 10px; padding: 10px 16px; min-width: 150px; }
.ger-mirror b { display: block; font-size: 22px; }
.ger-mirror span { font-size: 12px; color: var(--g-muted); }
.ger-run { border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; color: #0f1b35; background: #c7d2fe; }
.ger-run.success { background: #9fe08a; }
.ger-run.partial { background: #f6dc7c; }
.ger-run.error { background: #f5a3a3; }
.ger-link { cursor: pointer; text-decoration: underline; }

@media (max-width: 1280px) {
  .ger-grid-7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ger-grid-unidade { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ger-grid-unidade .ger-sim { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 1100px) {
  .ger-grid-4, .ger-grid-custos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ger-grid-2, .ger-grid-distratos { grid-template-columns: 1fr; }
  .ger-grid-carteira { grid-template-columns: 1fr 1fr; }
  .ger-grid-carteira .ger-span-rows { grid-column: 1 / -1; grid-row: auto; }
  .ger-chips.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ger-grid-4, .ger-grid-3, .ger-grid-7, .ger-grid-custos, .ger-grid-unidade, .ger-grid-carteira { grid-template-columns: 1fr; }
  .ger-top { padding: 10px 14px; }
  .ger-body, .ger-filters { padding-left: 14px; padding-right: 14px; }
  .ger-field, .ger-field select, .ger-multi-button, .ger-toggle button { min-width: 0; width: 100%; }
  .ger-hbar { grid-template-columns: 1fr; }
  .ger-hbar-label { text-align: left; }
}
.ger-board .hidden, #gerSection.hidden { display: none !important; }
.ger-tree-col.root .ger-tree-head { border-bottom-color: transparent; }
.ger-field select { max-width: 340px; }
.ger-grid-7 .ger-kpi strong { font-size: 19px; white-space: nowrap; }
.ger-grid-7 .ger-kpi h4 { font-size: 15px; }
.ger-grid-7 .ger-kpi { padding: 14px 10px; }
.ger-form fieldset, .ger-form.inline { align-items: start; }
.ger-form-field input:not([type="checkbox"]):not([type="file"]), .ger-form-field select { height: 40px; }

/* ---- interatividade / detalhamento ---- */
#gerSection .clickable { cursor: pointer; }
#gerSection [data-act]:focus-visible, .ger-drawer [data-act]:focus-visible { outline: 2px solid var(--g-accent); outline-offset: 2px; }
.ger-kpi.clickable:hover { box-shadow: inset 0 0 0 2px rgba(122,201,67,.55); }
.ger-kpi-row.clickable { border-radius: 6px; padding: 4px 6px; margin: 0 -6px; }
.ger-kpi-row.clickable:hover, .ger-kpi-section.clickable:hover { background: rgba(255,255,255,.08); }
.ger-kpi-row.clickable b { text-decoration: underline dotted rgba(255,255,255,.5); text-underline-offset: 3px; }
.ger-link { cursor: pointer; text-decoration: underline dotted rgba(255,255,255,.5); text-underline-offset: 4px; }
.ger-more-hint { display: block; margin-top: 6px; font-size: 11px; color: var(--g-accent); opacity: .85; text-align: right; }
.ger-kpi-section .ger-more-hint { margin-top: 2px; }
.ger-table td.clickable:hover { background: rgba(122,201,67,.18); text-decoration: underline; }
.ger-table tr.clickable:hover td { background: rgba(255,255,255,.07); }
.ger-hbar.clickable:hover .ger-hbar-track i, .ger-hbar-track.clickable:hover i { filter: brightness(1.15); }
.ger-svg rect.clickable { cursor: pointer; }
.ger-svg rect.hit { cursor: pointer; }
.ger-svg rect.hit:hover { fill: rgba(255,255,255,.07); }
.ger-donut path.clickable:hover { opacity: .85; }
.ger-total-label.clickable:hover b { text-decoration: underline; }
.ger-note.top { margin: -4px 2px 12px; }
.ger-note.center { text-align: center; }
.ger-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 10px 0 4px; font-size: 13px; color: var(--g-muted); }
.ger-panel-actions b { color: #fff; }

.ger-drawer-backdrop { position: fixed; inset: 0; background: rgba(5,10,25,.55); z-index: 9000; display: flex; justify-content: flex-end; animation: gerFade .15s ease-out; }
.ger-drawer { width: min(1180px, 94vw); height: 100%; background: #13213f; color: #fff; box-shadow: -18px 0 40px rgba(0,0,0,.35); display: flex; flex-direction: column; animation: gerSlide .2s ease-out; font-family: "Segoe UI", system-ui, sans-serif; }
@keyframes gerSlide { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes gerFade { from { opacity: 0; } to { opacity: 1; } }
.ger-drawer header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 18px 24px 12px; background: #0f1b35; border-bottom: 3px solid #7ac943; }
.ger-drawer header small { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: #c9d3e3; }
.ger-drawer header h3 { margin: 2px 0 2px; font-size: 20px; }
.ger-drawer header p { margin: 0; color: #c9d3e3; font-size: 13px; }
.ger-drawer-close { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ger-explain { margin: 14px 24px 0; background: rgba(122,201,67,.12); border-left: 4px solid #7ac943; border-radius: 8px; padding: 10px 14px; font-size: 13px; }
.ger-explain p { margin: 3px 0 0; color: #dfe7f3; }
.ger-drawer-body { padding: 14px 24px 22px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.ger-drawer-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.ger-drawer-summary div { background: #4d5d7a; border-radius: 10px; padding: 10px 12px; }
.ger-drawer-summary span { display: block; font-size: 12px; color: #c9d3e3; }
.ger-drawer-summary b { font-size: 18px; }
.ger-drawer-tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ger-drawer-tools input { flex: 1; min-width: 220px; height: 36px; border: 0; border-radius: 8px; padding: 0 12px; font-size: 14px; }
.ger-drawer .ger-table th { background: #2b3a5c; }
.ger-drawer .ger-table-wrap.drawer { max-height: none; overflow-x: auto; }
.ger-drawer .ger-table td.n, .ger-drawer .ger-table th.n { white-space: nowrap; }
.ger-drawer .ger-table td { font-size: 13px; }
.ger-drawer .ger-btn.ghost { color: #fff; }
.ger-drawer .ger-note { color: #c9d3e3; margin: 0; }
@media (max-width: 700px) {
  .ger-drawer { width: 100vw; }
  .ger-drawer header, .ger-drawer-body { padding-left: 14px; padding-right: 14px; }
  .ger-explain { margin-left: 14px; margin-right: 14px; }
}
.ger-drawer { box-sizing: border-box; overflow-x: hidden; max-width: 100vw; }
.ger-drawer *, .ger-drawer *::before, .ger-drawer *::after { box-sizing: border-box; }
.ger-drawer-body { min-width: 0; }

.ger-syncinfo { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 8px 22px 0; font-size: 12px; color: rgba(255,255,255,.72); }
.ger-syncinfo b { color: #fff; font-weight: 600; }
.ger-syncinfo:empty { display: none; }
.ger-syncbtn { border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.ger-syncbtn:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.ger-syncbtn:disabled { opacity: .6; cursor: wait; }
@media (max-width: 720px) { .ger-syncinfo { justify-content: flex-start; padding: 8px 14px 0; flex-wrap: wrap; } }

/* Evolução da inadimplência */
.ger-field input[type="month"] { height: 40px; border-radius: 2px; border: 0; background: var(--g-input); color: var(--g-input-text); font-size: 15px; padding: 0 10px; min-width: 170px; font-family: inherit; }
.ger-field-check .ger-check { height: 40px; display: flex; align-items: center; gap: 8px; color: var(--g-text); font-size: 14px; white-space: nowrap; cursor: pointer; }
.ger-field-check input { width: 18px; height: 18px; accent-color: var(--g-accent); }
.ger-up-bad { color: #ff8a80; font-weight: 700; }
.ger-down-good { color: #9be37a; font-weight: 700; }
.ger-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.ger-table.compact { font-size: 13px; }
.ger-table.compact th { font-size: 12.5px; padding: 8px; }
.ger-table.compact td { padding: 7px 8px; border-bottom: 1px solid var(--g-line); }
.ger-table td.ger-link { cursor: pointer; text-decoration: underline dotted; }
.ger-inad-rule { margin: 0 2px 14px; }

/* ==================================================================================================
   Padrão visual do Cockpit da Incorporação (somente cores e tipografia; layout inalterado).
   Fundo claro azulado, cartões brancos com borda #dbeafe, texto #061a44, rótulos #355071/#476184,
   destaque azul #075fd6 / #1a73e8 e fonte Inter com títulos em peso 900.
   ================================================================================================== */
#gerSection, #gerSection[data-theme="teal"], #gerSection[data-theme="green"], #gerSection[data-theme="navy"] {
  --g-bg: #f3f8ff; --g-top: #ffffff; --g-panel: #ffffff; --g-panel2: #f8fbff; --g-line: #e8f1ff;
  --g-text: #061a44; --g-muted: #476184; --g-accent: #075fd6; --g-input: #ffffff; --g-input-text: #061a44; --g-bar-track: #eef4fc;
}
.ger-board, .ger-drawer { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.ger-board { background: linear-gradient(135deg, #f7fbff 0%, #edf6ff 100%); color: #061a44; box-shadow: none; border: 1px solid #dbeafe; }
.ger-top { background: #fff; border-bottom: 1px solid #dbeafe; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05); }
.ger-title strong { font-size: 22px; font-weight: 900; letter-spacing: -0.04em; color: #061a44; }
.ger-title small { color: #476184; letter-spacing: .08em; font-weight: 700; }
.ger-tabs button { color: #355071; font-size: 14px; font-weight: 700; }
.ger-tabs button:hover { color: #075fd6; }
.ger-tabs button.active { color: #075fd6; font-weight: 900; border-bottom-color: #075fd6; }

.ger-btn { background: linear-gradient(135deg, #1a73e8, #075fd6); color: #fff; font-weight: 800; box-shadow: 0 8px 18px rgba(26, 115, 232, 0.18); }
.ger-btn.ghost { background: #f8fbff; color: #075fd6; border: 1px solid #9ac4ff; box-shadow: none; }
.ger-message { font-size: 12px; border: 1px solid #fecaca; background: #fef2f2; color: #b91c1c; }
.ger-message.success { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
.ger-message.info { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.ger-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.ger-warn a, .ger-empty a { color: #075fd6; }

.ger-field > span { font-size: 11px; font-weight: 800; letter-spacing: .02em; color: #355071; text-align: left; }
.ger-field select, .ger-multi-button, .ger-field input[type="month"] { border: 1px solid #c8d9ef; border-radius: 7px; color: #061a44; font-size: 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%23355071' stroke-width='1.6'/%3E%3C/svg%3E"); }
.ger-field input[type="month"] { background-image: none; }
.ger-multi-menu { color: #061a44; border: 1px solid #dbeafe; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12); }
.ger-multi-menu label:hover { background: #f3f8ff; }
.ger-multi-foot button { background: #075fd6; }
.ger-multi-foot button[data-multi-clear] { background: #f3f8ff; color: #355071; }
.ger-toggle button { border-color: #c8d9ef; color: #355071; font-size: 13px; font-weight: 700; }
.ger-toggle button.active { background: #075fd6; border-color: #075fd6; color: #fff; }
.ger-hint { color: #476184; border-color: #c8d9ef; }

.ger-loading, .ger-nodata { color: #476184; }
.ger-empty, .ger-kpi, .ger-panel, .ger-report, .ger-chips.wide { background: #fff; border: 1px solid #dbeafe; box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05); color: #061a44; }
.ger-empty strong { color: #061a44; font-weight: 900; }
.ger-note, .ger-muted, .ger-more { color: #476184; }
.ger-pending { background: #fef3c7; color: #92400e; }

.ger-kpi h4, .ger-kpi-section h4 { color: #355071; font-weight: 800; font-size: 13px; }
.ger-grid-7 .ger-kpi h4 { font-size: 12px; }
.ger-kpi strong, .ger-kpi-section strong { color: #061a44; font-weight: 900; letter-spacing: -0.03em; }
.ger-kpi small { color: #476184; }
.ger-kpi.accent, .ger-kpi.tall { border-left-color: #075fd6; }
.ger-kpi-row { color: #476184; }
.ger-kpi-row b { color: #061a44; font-weight: 800; }
.ger-tip { border-color: #9ac4ff; color: #075fd6; }
.ger-panel h3 { color: #061a44; font-size: 14px; font-weight: 900; }
.ger-legend { color: #355071; font-size: 12px; }
.ger-chips { color: #476184; }
.ger-chips button { color: #355071; border-color: #c8d9ef; background: #fff; font-weight: 700; font-size: 13px; }
.ger-chips button.active { background: #075fd6; border-color: #075fd6; color: #fff; }

/* gráficos */
.ger-svg .grid { stroke: #dbeafe; }
.ger-svg .axis { stroke: #c8d9ef; }
.ger-svg .sep { stroke: #c8d9ef; }
.ger-svg text { fill: #355071; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.ger-svg text.val { fill: #061a44; font-weight: 800; }
.ger-svg text.cat { fill: #476184; }
.ger-svg text.grp { fill: #061a44; font-weight: 800; }
.ger-svg text.in { fill: #061a44; }
.ger-svg rect.hit:hover { fill: rgba(7, 95, 214, .06); }
.ger-hbar-label { color: #355071; font-size: 13px; }
.ger-hbar-track em { color: #061a44; font-weight: 800; }
.ger-total-label b { color: #061a44; font-weight: 900; }
.ger-total-label span { color: #355071; }
.ger-donut text.big { fill: #061a44; font-weight: 900; }
.ger-donut text.small { fill: #476184; }
.ger-donut li { color: #061a44; font-size: 13px; }
.ger-donut li.clickable:hover, .ger-donut li.active { background: #f3f8ff; }
.ger-donut li em { color: #476184; }

/* tabelas (padrão inc-table) */
.ger-table { color: #061a44; font-size: 12.5px; }
.ger-table th { background: #f3f8ff; color: #355071; font-size: 12px; font-weight: 800; border-bottom: 1px solid #dbeafe; }
.ger-table td { border-bottom-color: #edf5ff; }
.ger-table td small { color: #476184; }
.ger-table tfoot td { background: #eaf3ff; color: #061a44; font-weight: 900; }
.ger-table tr.lvl3 > td { background: #f8fbff; }
.ger-table tr.xp:hover td, .ger-table tr.toggler:hover td, .ger-table tr[data-unit-bill]:hover td, .ger-table tr.clickable:hover td { background: #f3f8ff; }
.ger-table tr.selected td { background: #eaf3ff; }
.ger-table tr.changed td { background: #fffbeb; }
.ger-table td.clickable:hover { background: #eaf3ff; }
.ger-exp { color: #075fd6; }
.ger-table.mini th { background: #f3f8ff; }
.ger-table.mini tr.late td { color: #b91c1c; }
.ger-table.light input, .ger-table.light select { border: 1px solid #c8d9ef; color: #061a44; }
.ger-row-actions button { background: #f8fbff; border-color: #9ac4ff; color: #075fd6; font-weight: 700; }
.ger-inline-panel, .ger-mirror div { background: #f8fbff; border: 1px solid #dbeafe; color: #061a44; }
.ger-mirror span { color: #476184; }

/* simulador, árvore, formulários */
.ger-sim-bill { border: 1px solid #c8d9ef; color: #061a44; }
.ger-sim-row input[type="number"] { border-color: #c8d9ef; color: #061a44; }
.ger-tree-lines path { stroke: #9ac4ff; }
.ger-tree-lines path.on { stroke: #075fd6; }
.ger-tree-head { border-bottom-color: #075fd6; color: #061a44; font-weight: 800; }
.ger-tree-head button { color: #075fd6; }
.ger-node { color: #061a44; }
.ger-node .bar { background: #eef4fc; }
.ger-node .bar i { background: #1a73e8; }
.ger-node em { color: #061a44; background: #eaf3ff; }
.ger-report h4 { color: #061a44; font-weight: 900; font-size: 14px; }
.ger-report p { color: #476184; }
.ger-form fieldset { background: #f8fbff; border-color: #dbeafe; }
.ger-form legend { color: #061a44; font-weight: 900; }
.ger-form-field { color: #476184; }
.ger-form-field > span { color: #355071; font-weight: 800; }
.ger-form-field input:not([type="checkbox"]), .ger-form-field select, .ger-form-field textarea, .ger-toolbar input, .ger-details textarea, .ger-form-row select, .ger-form-row input { border: 1px solid #c8d9ef; color: #061a44; }
.ger-toolbar label, .ger-form-row label { color: #355071; }
.ger-details summary { color: #061a44; }

/* interatividade */
.ger-kpi.clickable:hover, .ger-kpi-section.clickable:hover { box-shadow: inset 0 0 0 2px #9ac4ff; }
.ger-kpi-row.clickable:hover { background: #f3f8ff; }
.ger-kpi-row.clickable b, .ger-link, .ger-table td.ger-link { text-decoration-color: #9ac4ff; }
.ger-more-hint { color: #075fd6; }
.ger-panel-actions { color: #476184; }
.ger-panel-actions b { color: #061a44; }
.ger-syncinfo { color: #476184; }
.ger-syncinfo b { color: #061a44; }
.ger-syncbtn { border-color: #9ac4ff; color: #075fd6; background: #f8fbff; font-weight: 700; }
.ger-syncbtn:hover:not(:disabled) { background: #eaf3ff; }
.ger-field-check .ger-check { color: #355071; }
.ger-up-bad { color: #dc2626; }
.ger-down-good { color: #16a34a; }

/* detalhamento (gaveta) */
.ger-drawer-backdrop { background: rgba(6, 26, 68, .35); }
.ger-drawer { background: #f7fbff; color: #061a44; box-shadow: -18px 0 40px rgba(15, 23, 42, .18); }
.ger-drawer header { background: #fff; border-bottom: 1px solid #dbeafe; }
.ger-drawer header small { color: #476184; font-weight: 700; }
.ger-drawer header h3 { color: #061a44; font-weight: 900; letter-spacing: -0.03em; }
.ger-drawer header p { color: #476184; }
.ger-drawer-close { color: #355071; }
.ger-explain { background: #eff6ff; border-left-color: #075fd6; color: #061a44; }
.ger-explain p { color: #355071; }
.ger-drawer-summary div { background: #fff; border: 1px solid #dbeafe; }
.ger-drawer-summary span { color: #476184; }
.ger-drawer-summary b { color: #061a44; font-weight: 900; }
.ger-drawer-tools input { border: 1px solid #c8d9ef; color: #061a44; }
.ger-drawer .ger-table th { background: #f3f8ff; }
.ger-drawer .ger-btn.ghost { color: #075fd6; }
.ger-drawer .ger-note { color: #476184; }

/* Tela cheia do painel */
.ger-full-btn { margin-left: 8px; }
#gerSection:fullscreen { background: #f3f8ff; overflow: auto; padding: 0; }
#gerSection:fullscreen .ger-board { min-height: 100vh; border-radius: 0; border: 0; }
#gerSection::backdrop { background: #f3f8ff; }
/* expansão sem a API de tela cheia (quando o navegador bloqueia) */
#gerSection.ger-expanded { position: fixed; inset: 0; z-index: 8000; overflow: auto; background: #f3f8ff; margin: 0; }
#gerSection.ger-expanded .ger-board { min-height: 100vh; border-radius: 0; border: 0; }
html.ger-expanded-page, html.ger-expanded-page body { overflow: hidden; }
