/* Page rhythm shared by the existing financial views. Home keeps its approved layout. */
.np-tax-page,
.np-projection-page,
body[data-page="resumo"] #view,
body[data-page="guardado"] #view {
  display:grid;
  gap:var(--np-page-gap,24px);
  min-width:0;
}
.np-tax-page > .kpis,
.np-projection-page > .kpis,
.np-projection-page > .filters,
.np-projection-page > .banner,
.np-projection-page > .note,
body[data-page="resumo"] #view > .kpis,
body[data-page="resumo"] #view > .rcols,
body[data-page="guardado"] #view > * { margin-block:0; }

.np-tax-page .card,
.np-projection-page .card,
body[data-page="resumo"] #view .card {
  padding:var(--np-surface-padding,24px);
  border-radius:var(--np-card-radius,24px);
}
.np-tax-section,
.np-projection-page .mm { display:grid;gap:var(--np-card-gap,16px);min-width:0; }
.np-tax-section > .sec-title,
.np-projection-page .sec-title { display:grid;gap:8px;margin:0; }
.np-tax-section > .sec-title h2,
.np-tax-section > .sec-title p,
.np-projection-page .sec-title h2,
.np-projection-page .sec-title p { margin:0; }
.np-tax-section > .sec-title p,
.np-projection-page .sec-title p { max-width:90ch;line-height:1.6; }
.np-tax-section > .sal-grid { gap:var(--np-card-gap,16px);margin:0;align-items:stretch; }
.np-tax-section > .sal-grid:has(> .card:only-child) { grid-template-columns:minmax(0,1fr); }
.np-tax-page .yrhead { flex-wrap:wrap;gap:10px;margin-bottom:16px; }
.np-tax-page .irres { flex-wrap:wrap;gap:12px;margin-bottom:16px; }
.np-tax-page .irres b { overflow-wrap:anywhere; }

/* The projection option is one labelled control, followed by its own explanation. */
.np-tax-projection-option { display:grid;gap:16px; }
.np-tax-option {
  display:grid;
  grid-template-columns:minmax(0,1fr) 20px;
  align-items:center;
  gap:24px;
  min-height:44px;
  cursor:pointer;
}
.np-tax-option > span { display:grid;gap:6px;min-width:0; }
.np-tax-option b { font-size:16px;line-height:1.4;font-weight:600; }
.np-tax-option small { font-size:13px;line-height:1.5;color:var(--muted); }
.np-tax-option > input { width:20px;height:20px;margin:0;accent-color:var(--ink); }
.np-tax-option > input:focus-visible { outline:2px solid var(--ink);outline-offset:4px; }
.np-tax-projection-option > .note { margin:0;padding-top:16px;border-top:1px solid var(--line);line-height:1.6; }
.np-tax-inputs { display:grid;gap:24px; }
.np-tax-inputs .adj { grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:24px; }
.np-tax-inputs .adj > label { gap:8px;font-size:13px;line-height:1.5; }
.np-tax-inputs .adj > label small { font-size:12px;line-height:1.5; }
.np-tax-inputs .adj .field { width:100%;min-width:0;min-height:46px;margin-top:auto; }
.np-tax-inputs .toggle-box { margin:0;gap:12px;padding:16px;align-items:flex-start;background:var(--sunk); }
.np-tax-inputs .toggle-box > input { flex:none;width:18px;height:18px;margin-top:2px;accent-color:var(--ink); }
.np-tax-inputs .toggle-box > span { display:grid;gap:6px;min-width:0; }
.np-tax-inputs .toggle-box small { margin:0;line-height:1.6; }
.np-tax-inputs > .note { margin:0;line-height:1.6; }
.np-tax-calendar .calgrid { grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:var(--np-card-gap,16px); }
.np-tax-calendar .mcard { min-width:0;padding:16px; }
.np-tax-page .meibox { gap:12px; }
.np-tax-page .meibox > div { padding:14px;min-width:0; }
.np-tax-page .meibox span { line-height:1.5;margin-bottom:6px; }
.np-tax-page .meibox b { overflow-wrap:anywhere; }
.np-tax-page .meibox ~ .btn { margin-top:16px; }
.np-tax-page .dl { gap:16px;padding-block:16px; }

.np-projection-page .projtop { gap:16px; }
.np-projection-page .projtop .check { gap:10px;min-height:44px; }
.np-projection-page .mdetail { gap:var(--np-card-gap,16px);margin:0; }
.np-projection-page .mstrip { margin:0; }
.np-projection-page .np-projection-table { padding:0;overflow:hidden; }
.np-projection-table > .ch { padding:var(--np-surface-padding,24px);margin:0;border-bottom:1px solid var(--line); }
.np-projection-table .tablewrap { margin:0; }
.np-projection-goals .np-pot-home-row { min-height:72px; }
.np-projection-goals .row .t small { white-space:normal;line-height:1.5; }
body[data-page="resumo"] #view .rcols,
body[data-page="resumo"] #view .rcol { gap:var(--np-card-gap,16px);min-width:0; }
body[data-page="guardado"] #view .np-asset-columns { gap:var(--np-card-gap,16px); }
body[data-page="guardado"] #view .np-asset-column { margin-bottom:0; }
body[data-page="guardado"] #view .np-wallet-accounts { padding-top:var(--np-page-gap,24px); }
body[data-page="guardado"] #view .np-bank-grid { gap:var(--np-card-gap,16px); }
body[data-page="guardado"] #view .np-asset-column .np-wallet-group { padding:var(--np-surface-padding,24px); }

@media(max-width:600px) {
  .np-tax-page .card,
  .np-projection-page .card,
  body[data-page="resumo"] #view .card,
  body[data-page="guardado"] #view .np-asset-column .np-wallet-group { padding:var(--np-surface-padding,16px); }
  .np-tax-option { gap:16px;align-items:start; }
  .np-tax-option > input { margin-top:2px; }
  .np-tax-inputs .adj { gap:20px; }
  .np-tax-page .meibox { grid-template-columns:minmax(0,1fr); }
  .np-tax-page .meibox > div:last-child { grid-column:auto; }
  .np-projection-page .np-projection-table { padding:0; }
  .np-projection-table > .ch { padding:var(--np-surface-padding,16px); }
  .np-projection-goals .row { grid-template-columns:auto minmax(0,1fr); }
  .np-projection-goals .row .a { grid-column:2;align-items:flex-start;text-align:left; }
}

.np-tax-table-notice{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;margin:16px 0;border-radius:12px;background:var(--tax-soft);color:var(--ink);font-size:12px;line-height:1.6}.np-tax-table-notice svg{width:18px;height:18px;flex:none;margin-top:2px}.np-tax-table-notice b{display:block;margin-bottom:3px}
