/* Página de gastos da cota parlamentar: complementa emendas.css */
.pill--emendas { border-color: #3e63dd; color: #9cb4ff; }
.pill--emendas:hover { background: rgba(62, 99, 221, .15); }
.ga-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.ga-coluna { display: grid; gap: 14px; min-width: 0; }
.ga-pos { font-size: 12px; font-weight: 700; color: var(--muted); min-width: 30px; text-align: right; }
.em-lista--autores .em-autor { grid-template-columns: auto minmax(0, 1fr) 34px 90px auto; }
.ga-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.ga-check input { accent-color: #3e63dd; }
.ga-mais { display: block; width: 100%; margin-top: 10px; padding: 9px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; cursor: pointer; }
.ga-mais:hover { background: var(--panel-3); }
.ga-ico { font-style: normal; margin-right: 6px; }
.ga-cats li span small { color: var(--muted); font-size: 11px; }
.ga-cats--clic li { cursor: pointer; border-radius: 8px; padding: 5px 4px; }
.ga-cats--clic li:hover, .ga-cats--clic li:focus-visible { background: var(--panel-2); outline: none; }
.ga-forn > li { padding: 0; }
.ga-forn__item { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; grid-template-areas: "nome barra valor" "sub barra valor"; align-items: center; column-gap: 10px; padding: 7px 4px; border-radius: 8px; }
.ga-forn__item .em-nome { grid-area: nome; }
.ga-forn__item small { grid-area: sub; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ga-forn__item .em-barra { grid-area: barra; }
.ga-forn__item b { grid-area: valor; font-size: 13.5px; min-width: 80px; text-align: right; }
.ga-forn--clic .ga-forn__item { cursor: pointer; }
.ga-forn--clic .ga-forn__item:hover, .ga-forn--clic .ga-forn__item:focus-visible { background: var(--panel-2); outline: none; }
.ga-meses { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 132px; align-items: end; padding-top: 6px; }
.ga-mes { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; text-decoration: none; color: inherit; border-radius: 6px; }
a.ga-mes:hover b, .ga-mes.sel b { background: linear-gradient(180deg, #ff8a8e, #e5484d); }
.ga-mes.sel span { color: var(--text); font-weight: 700; }
.ga-mes small { font-size: 9px; color: var(--muted); white-space: nowrap; }
.ga-mes b { display: block; width: 100%; max-width: 28px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #7c9cff, #3e63dd); min-height: 2px; }
.ga-mes span { font-size: 10px; color: var(--muted); text-transform: uppercase; }
.ga-acoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ga-botao { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-2); color: var(--text); text-decoration: none; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ga-botao:hover { background: var(--panel-2); }
.ga-botao--zap { background: #25d366; border-color: #25d366; color: #052e16; }
.ga-botao--zap:hover { background: #1fb959; }
.ga-input { flex: 1 1 220px; min-width: 0; height: 32px; }
.ga-tabela-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ga-tabela { min-width: 600px; }
.ga-tabela td:first-child { white-space: nowrap; color: var(--muted); }
.ga-tabela td:nth-child(2), .ga-tabela td:nth-child(3) { max-width: 320px; }
.ga-tabela .sub { white-space: normal; }
@media (max-width: 1080px) { .ga-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .em-lista--autores .em-autor { grid-template-columns: auto minmax(0, 1fr) auto; }
  .em-lista--autores .em-autor .ga-pos { display: none; }
  .ga-forn__item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nome valor" "sub valor"; }
  .ga-forn__item .em-barra { display: none; }
  .ga-tabela { min-width: 0; font-size: 12.5px; }
  .ga-tabela thead { display: none; }
  .ga-tabela tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
  .ga-tabela td { display: block; border: 0; padding: 0; }
  .ga-tabela td:nth-child(1) { grid-column: 1; grid-row: 1; font-size: 11.5px; text-align: left; }
  .ga-tabela td:nth-child(4) { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
  .ga-tabela td:nth-child(2) { grid-column: 1; }
  .ga-tabela td:nth-child(3) { grid-column: 1 / -1; }
  .ga-tabela td:nth-child(5) { grid-column: 1 / -1; margin-top: 4px; }
  .pagina-gastos .em-tabela th:nth-child(3), .pagina-gastos .em-tabela td:nth-child(3) { display: table-cell; }
}
/* recortes clicáveis (categoria, fornecedor, mês) */
.ga-cats--clic li.sel, .ga-forn__item.sel { background: var(--panel-2); outline: 1px solid var(--border-2); }
.ga-cats--clic li.sel span, .ga-forn__item.sel .em-nome { color: #9cb4ff; }
a.ga-forn__item { color: inherit; text-decoration: none; }
.ga-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 10px; }
.ga-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(62, 99, 221, .18); border: 1px solid #3e63dd; font-size: 12.5px; }
.ga-chip a { color: var(--text); text-decoration: none; font-weight: 700; padding: 0 2px; }
.ga-chip a:hover { color: #ff8a8e; }
@media (max-width: 760px) { .ga-mes small { display: none; } .ga-meses { height: 110px; } }
