/* GestorAppMI - FINANCEIRO > FLUXO DE CAIXA (12/10/2026): filtros, cards centralizados, tabela com a 1ª coluna fixa
   (a rolagem para o lado fica só dentro da tabela) e a janela dos lançamentos. */
#gfc-host .gfc-corpo { background: #fff; border: 1px solid var(--p-borda, #e3e9f3); border-radius: 16px; padding: 12px 14px; min-width: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.06); display: flex; flex-direction: column; gap: 10px; }
#gfc-host .gfc-filtros { display: flex; flex-direction: column; gap: 8px; }
#gfc-host .gfc-linha { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 8px 10px; min-width: 0; }
#gfc-host .gfc-linha label { display: flex; flex-direction: column; gap: 3px; font-size: 11px; font-weight: 900; color: #33415c; }
#gfc-host .gfc-linha input[type=date] { height: 36px; width: 150px; border-radius: 10px; }
#gfc-host .gfc-linha button { height: 36px; border-radius: 999px !important; padding: 0 14px !important; font-weight: 900 !important; font-size: 12px; white-space: nowrap; }
#gfc-host #gfc-buscar { padding: 0 22px !important; }
#gfc-host .gfc-atalhos, #gfc-host .gfc-seg, #gfc-host .gfc-saida { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
#gfc-host .gfc-seg > span, #gfc-host .gfc-chips > span { font-size: 11px; font-weight: 900; color: #33415c; margin-right: 2px; }
#gfc-host :is(.gfc-seg, .gfc-chips) button.ativo { background: var(--p-700, #0d3a80) !important; color: #fff !important; border-color: transparent !important; }
#gfc-host .gfc-chips { align-items: center; }
#gfc-host .gfc-chips button { height: 32px; font-size: 11.5px; }
#gfc-host .gfc-chips button small { font-size: 10px; opacity: .75; }
#gfc-host .gfc-chips button.gfc-virtual { border-style: dashed !important; }

/* CARDS (centralizados) */
#gfc-host .gfc-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#gfc-host .gfc-card { flex: 0 0 168px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 7px 10px; border-radius: 14px;
  border: 1.5px solid #d5ddea; background: #f7faff; text-align: center; min-width: 0; }
#gfc-host .gfc-card .gfc-ico { font-size: 18px; line-height: 1; }
#gfc-host .gfc-card small { font-size: 10px; font-weight: 900; color: #33415c; letter-spacing: .3px; }
#gfc-host .gfc-card b { font-size: 16px; font-weight: 900; color: var(--p-texto, #16233d); font-variant-numeric: tabular-nums; white-space: nowrap; }
#gfc-host .gfc-card i { font-style: normal; font-size: 9.5px; font-weight: 700; color: var(--p-texto2, #4d5d7a); }
#gfc-host .gfc-card.pos > b { color: #1b7a34; }
#gfc-host .gfc-card .neg, #gfc-host .gfc-card.neg > b { color: #b4233f; }
#gfc-host .gfc-card.gfc-saldo { flex-basis: 250px; }
#gfc-host .gfc-saldo ul { list-style: none; margin: 2px 0 0; padding: 0; width: 100%; max-height: 64px; overflow-y: auto; }
#gfc-host .gfc-saldo li { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 700; padding: 2px 0; border-bottom: 1px dashed #dde5f2; }
#gfc-host .gfc-saldo li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
#gfc-host .gfc-saldo li em { font-style: normal; font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
#gfc-host .gfc-saldo .gfc-tot { display: flex; justify-content: space-between; align-items: baseline; width: 100%; margin-top: 4px; }
#gfc-host .gfc-saldo .gfc-tot span { font-size: 11px; font-weight: 900; color: #33415c; }
#gfc-host .gfc-card.gfc-atr { flex-basis: 230px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
#gfc-host .gfc-atr > .gfc-ico, #gfc-host .gfc-atr > small { grid-column: 1 / -1; }
#gfc-host .gfc-atr .gfc-par { display: flex; flex-direction: column; align-items: center; min-width: 0; }
#gfc-host .gfc-atr .gfc-par span { font-size: 9.5px; font-weight: 900; color: var(--p-texto2, #4d5d7a); }
#gfc-host .gfc-atr .gfc-par b { font-size: 14px; }

/* TABELA: 1ª coluna e cabeçalho fixos; rola para o lado (e para baixo) só aqui dentro */
#gfc-host .gfc-tab { overflow: auto; border: 1.5px solid #d5ddea; border-radius: 12px; background: #fff; max-height: max(300px, calc(calc(100 * var(--vh, 1vh)) - 330px)); max-width: 100%; }
#gfc-host .gfc-tab table { border-collapse: separate; border-spacing: 0; font-size: 12.5px; min-width: 100%; }
#gfc-host .gfc-tab th { position: sticky; top: 0; z-index: 2; background: #eef3fb; color: #33415c; font-size: 10.5px; padding: 7px 8px; white-space: nowrap; letter-spacing: .4px; text-align: right; }
#gfc-host .gfc-tab th small { display: block; font-size: 8.5px; font-weight: 800; opacity: .7; }
#gfc-host .gfc-tab th.gfc-q-hoje { background: #dbe8fb; }
#gfc-host .gfc-tab td { padding: 5px 8px; border-top: 1px solid #edf1f7; color: #111; white-space: nowrap; background: #fff; }
#gfc-host .gfc-tab .n { text-align: right; font-variant-numeric: tabular-nums; }
#gfc-host .gfc-tab .gfc-fixa { position: sticky; left: 0; z-index: 1; text-align: left; min-width: 230px; max-width: 340px; white-space: normal;
  box-shadow: 1px 0 0 #d5ddea; }
#gfc-host .gfc-tab th.gfc-fixa { z-index: 3; }
#gfc-host .gfc-tab td.gfc-fixa span { vertical-align: middle; }
#gfc-host .gfc-tab .gfc-totc { font-weight: 900; background: #f6f9fe; }
#gfc-host .gfc-tab td.neg { color: #b4233f; }
#gfc-host .gfc-tab tr.gfc-secao td { background: var(--p-texto, #16233d) !important; color: #fff !important; font-weight: 900; letter-spacing: 1px; font-size: 12px; }
#gfc-host .gfc-tab tr.gfc-saldo td { background: #f2f6fd; font-weight: 900; }
#gfc-host .gfc-tab tr.gfc-grupo td { font-weight: 800; background: #fafcff; }
#gfc-host .gfc-tab tr.gfc-conta td.gfc-fixa { padding-left: 38px; font-weight: 600; }
#gfc-host .gfc-tab tr.gfc-total td { background: #eef3fb; font-weight: 900; border-top: 1.5px solid #c9d6ea; }
#gfc-host .gfc-tab tr.gfc-resultado td { background: #e6f0ff; font-weight: 900; border-top: 2px solid var(--p-700, #0d3a80); }
#gfc-host .gfc-tab tr.gfc-esp-atr td.gfc-fixa { color: #b4233f; }
#gfc-host .gfc-tab td.gfc-clic { cursor: pointer; }
#gfc-host .gfc-tab tr[data-l]:not(.gfc-saldo):hover td { background: #eaf2ff; }
#gfc-host .gfc-tab tr[data-l]:not(.gfc-saldo) td.gfc-fixa { cursor: pointer; }
#gfc-host .gfc-tg, #gfc-host .gfc-tg-v { display: inline-block; width: 24px; height: 22px; margin-right: 4px; vertical-align: middle; }
#gfc-host .gfc-tg { padding: 0 !important; border-radius: 6px !important; font-size: 12px; line-height: 20px; }
#gfc-host .gfc-nada { margin: 18px 0; font-weight: 800; color: var(--p-texto2, #4d5d7a); text-align: center; }
#gfc-host .gfc-ajuda { margin: 0; font-size: 10.5px; font-weight: 700; color: var(--p-texto2, #4d5d7a); text-align: center; }

/* LANÇAMENTOS de uma linha / célula */
#gfc-host .gfc-det { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(8,20,45,.45); }
#gfc-host .gfc-det[hidden] { display: none; }
#gfc-host .gfc-det-jan { width: min(1200px, 100%); max-height: 100%; display: flex; flex-direction: column; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.35); }
#gfc-host .gfc-det-cab { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(180deg, var(--p-500, #1668e3), var(--p-700, #0d3a80)); color: #fff; }
#gfc-host .gfc-det-cab > div { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
#gfc-host .gfc-det-cab b { font-size: 14px; letter-spacing: 1px; }
#gfc-host .gfc-det-cab small { font-size: 11px; font-weight: 700; }
#gfc-host .gfc-det-cab em { font-style: normal; font-weight: 900; }
#gfc-host .gfc-det-x { width: 34px; height: 34px; padding: 0 !important; border-radius: 9px !important; background: rgba(255,255,255,.18) !important; color: #fff !important; border: 0 !important; font-size: 16px; }
#gfc-host .gfc-det-lista { overflow: auto; min-height: 0; flex: 1 1 auto; padding: 8px 10px; }
#gfc-host .gfc-det-lista table { width: 100%; border-collapse: collapse; font-size: 12px; }
#gfc-host .gfc-det-lista th { position: sticky; top: 0; background: #eef3fb; color: #33415c; font-size: 10px; padding: 6px; text-align: left; white-space: nowrap; }
#gfc-host .gfc-det-lista td { padding: 5px 6px; border-top: 1px solid #edf1f7; color: #111; vertical-align: top; }
#gfc-host .gfc-det-lista .n { text-align: right; white-space: nowrap; }
#gfc-host .gfc-det-lista .neg { color: #b4233f; }
#gfc-host .gfc-t-previsto { color: var(--p-800, var(--gam-1, #0d3a80)); font-weight: 800; } #gfc-host .gfc-t-atrasado { color: #b4233f; font-weight: 800; } #gfc-host .gfc-t-realizado { color: #1b7a34; font-weight: 800; }
#gfc-host .gfc-det-rod { display: flex; justify-content: center; padding: 8px; border-top: 1px solid var(--p-borda, #e3e9f3); }
#gfc-host .gfc-det-rod button { min-width: 140px; height: 38px; border-radius: 999px !important; font-weight: 900 !important; }

/* CELULAR / TABLET: botões só com o ícone, cards em 2 por linha, lançamentos em cards */
@media (max-width: 760px) {
  #gfc-host .gfc-corpo { padding: 10px 8px; border-radius: 12px; }
  #gfc-host .gfc-linha input[type=date] { width: 140px; }
  #gfc-host .gfc-saida b { display: none; }
  #gfc-host .gfc-card { flex: 1 1 calc(50% - 10px); padding: 8px; }
  #gfc-host .gfc-card.gfc-saldo { flex-basis: 100%; }
  #gfc-host .gfc-card b { font-size: 15px; }
  #gfc-host .gfc-tab { max-height: calc(70 * var(--vh, 1vh)); }
  #gfc-host .gfc-tab .gfc-fixa { min-width: 150px; max-width: 190px; }
  #gfc-host .gfc-tab table { font-size: 11.5px; }
  #gfc-host .gfc-det-lista thead { display: none; }
  #gfc-host .gfc-det-lista tr { display: block; border: 1.5px solid #d5ddea; border-radius: 12px; margin-bottom: 8px; padding: 6px 8px; }
  #gfc-host .gfc-det-lista td { display: flex; justify-content: space-between; gap: 10px; border: 0; padding: 2px 0; text-align: right; }
  #gfc-host .gfc-det-lista td::before { content: attr(data-r); font-size: 10px; font-weight: 900; color: var(--p-texto2, #4d5d7a); text-align: left; }
}
