/* Ajustes do controle de gastos por cima do tema. */
.brand__mark--img img, .dock__brand img { display: block; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid21 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 1100px) { .grid2, .grid3, .grid21 { grid-template-columns: 1fr; } }

/* login */
.sem-casca .dock, .sem-casca .top, .sem-casca .arco { display: none !important; }
.sem-casca .app { padding: 0; }
.entrar { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.entrar .card { width: min(400px, 100%); display: grid; gap: 14px; }
.entrar__marca { display: flex; align-items: center; gap: 10px; }
.entrar__marca b { font-size: var(--fs-lg); }

/* navegação de mês */
.mesnav { display: inline-flex; align-items: center; gap: 6px; }
.mesnav b { min-width: 170px; text-align: center; font-size: var(--fs-lg); }

/* bolinha de categoria (a cor vem do cadastro) */
.cat { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 4px 10px 4px 8px; border-radius: 999px; background: hsl(var(--h) 70% 50% / .13);
  color: inherit; font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 3px; background: hsl(var(--h) 65% 50%); }
button.cat { cursor: pointer; border: 1px dashed transparent; justify-self: start; }
button.cat:hover { border-color: hsl(var(--h) 65% 50% / .6); }
.cat--fraca { opacity: .6; }

.valor { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.valor--entrada { color: var(--ok, #16a34a); }
.valor--risco { text-decoration: line-through; opacity: .55; }
.sub { color: var(--muted); font-size: var(--fs-sm); }
.mov-local { display: grid; gap: 2px; min-width: 0; }
.mov-local b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mov-local small { color: var(--muted); font-size: var(--fs-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table tbody tr[data-id] { cursor: pointer; }

/* blocos da planilha: categoria e valor, como "Tabela de gastos fixos" */
.blocos { display: grid; gap: 2px; }
.blocos li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.blocos li:last-child { border-bottom: 0; }
.blocos__total { display: flex; justify-content: space-between; padding: 12px 4px 2px; font-weight: 700; }
.blocos .meter { grid-column: 1 / -1; height: 5px; }

/* orçamento */
.orc { display: grid; gap: 10px; }
.orc__linha { display: grid; grid-template-columns: minmax(140px, 1.2fr) minmax(0, 2fr) 150px; align-items: center; gap: 16px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.orc__linha:last-child { border-bottom: 0; }
.orc__barra { display: grid; gap: 6px; }
.orc__barra .meter { height: 9px; }
.meter__fill--alerta { background: #f59e0b; }
.meter__fill--estouro { background: #e11d2e; }
.orc__lim .input { text-align: right; }
@media (max-width: 720px) { .orc__linha { grid-template-columns: 1fr; gap: 8px; } }

/* rosca de categorias */
.rosca { display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: center; gap: 22px; }
@media (max-width: 520px) { .rosca { grid-template-columns: 1fr; justify-items: center; } .rosca .legend { width: 100%; } }

/* grade anual */
.grade { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.grade th, .grade td { padding: 8px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.grade th:first-child, .grade td:first-child { text-align: left; position: sticky; left: 0; background: var(--card, var(--bg)); }
.grade thead th { color: var(--muted); font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .03em; }
.grade td.calor { background: hsl(var(--h) 70% 50% / calc(var(--a) * .35)); }
.grade tfoot td { font-weight: 700; }
.rxg { display: grid; gap: 8px; }
.rxg__m { display: grid; grid-template-columns: 38px minmax(0, 1fr) 110px; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.rxg__b { display: grid; gap: 3px; }
.rxg__b i { display: block; height: 7px; border-radius: 99px; transform-origin: 0; }
.rxg__b .e { background: #16a34a; } .rxg__b .s { background: #e11d2e; }

.aviso-cat { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.opcoes { display: grid; gap: 12px; }
.linha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vazio-mini { padding: 18px; text-align: center; color: var(--muted); }

/* eixo do gráfico de colunas: o valor não quebra linha */
.gl span { white-space: nowrap; }
