/* FinanceiroVF — ajustes do app real sobre o design system (21/09/2026).
   O bundle desenha as telas dentro de molduras de apresentação; aqui elas
   viram página de verdade: barra inferior fixa só no celular, gaveta em
   <dialog>, tela de entrada, avisos. */
html, body { margin: 0; background: var(--bg); }
.fv-tabbar { display: none; }
@media (max-width: 760px) {
  .fv-tabbar { display: grid; position: fixed; left: 0; right: 0; bottom: 0; height: 64px; padding: 6px 8px 8px; }
  .fv-top .fv-scope__k { display: none; }
  .fv-top .fv-scope > *:not(.fv-scope__month) { display: none; }
  .fv-page-head { flex-wrap: wrap; }
  .fv-page-head .fv-actions { margin-left: 0; flex-wrap: wrap; }
  .fv-dl { grid-template-columns: 1fr; }
}
.fv-scope a { color: inherit; text-decoration: none !important; }
.fv-scope .fv-scope__static { cursor: default; }
.fv-scope .fv-scope__static .fv-scope__v { color: var(--ink-muted); }
.fv-launch > summary { list-style: none; }
.fv-launch > summary::-webkit-details-marker { display: none; }
.fv-launch .fv-menu { display: block; }
.fv-launch:not([open]) .fv-menu { display: none; }
.fv-menu a { text-decoration: none !important; }
.fv-flash { margin-bottom: 12px; }
.fv-flash .fv-alert { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.fv-page-head .fv-sub { font-size: 13px; }
.fv-tabs a { color: var(--ink-muted); }
.fv-tabs a.is-active { color: var(--ink); }
.fv-seg a { text-decoration: none !important; }
.fv-btn { text-decoration: none !important; cursor: pointer; font: 500 13px var(--font-sans); color: var(--ink); }
.fv-btn--primary { color: var(--on-primary); }
.fv-filtros { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.fv-filtros .fv-field { min-width: 160px; }
.fv-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; max-width: 720px; }
.fv-form .fv-col-12 { grid-column: 1 / -1; }
.fv-select { appearance: auto; }
.fv-kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.fv-muted-note { font-size: 12px; color: var(--ink-muted); }
.fv-entrar { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.fv-entrar form { width: 360px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.fv-entrar .fv-brand { width: auto; font-size: 18px; }
.fv-empty .fv-row { justify-content: center; }
details.fv-more > summary { cursor: pointer; color: var(--ink-muted); font-size: 12px; }
.fv-table td .fv-btn--sm { white-space: nowrap; }
.fv-table a { text-decoration: none; }
.fv-table a:hover { text-decoration: underline; }
a.fv-btn--primary, a.fv-btn--primary:visited { color: var(--on-primary) !important; }
.fv-table tr.is-muted td { opacity: .55; }
@media (max-width: 760px) {
  .fv-app { grid-template-columns: minmax(0, 1fr); }
  .fv-grid { grid-template-columns: minmax(0, 1fr); }
  .fv-top { gap: 6px; padding: 0 10px; }
  .fv-top .fv-search { min-width: 0; flex: 0 1 auto; }
  .fv-top .fv-search .fv-kbd { display: none; }
  .fv-table-wrap, .t-heat-wrap { overflow-x: auto; }
  .t-agenda .t-row, .t-agenda .t-cols { grid-template-columns: minmax(0,1fr) 84px minmax(0,1fr); }
  .t-agenda .t-it { grid-template-columns: minmax(0,1fr) auto; }
  .t-agenda .t-it__ic { display: none; }
  .t-contas .t-tot { flex-direction: column; }
  .t-contas .t-accs { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .fv-capital { flex-wrap: wrap; }
  .fv-page-head .fv-actions { max-width: 100%; flex-wrap: wrap; }
  .fv-page-head > div { min-width: 0; }
  .t-contas .t-tot__pair { flex-wrap: wrap; }
  .t-agenda .t-cols > div { flex-wrap: wrap; padding: 6px 8px; }
  .fv-card-head { flex-wrap: wrap; }
  .fv-filtros .fv-field { min-width: 0; flex: 1 1 140px; }
}
@media (max-width: 760px) {
  .t-contas .t-tot__c { min-width: 0; max-width: 100%; }
  .t-contas .fv-stat__label { flex-wrap: wrap; }
  .fv-tabs { overflow-x: auto; }
  .t-agenda .t-day { padding: 7px 4px; }
}
@media (max-width: 760px) { .fv-main { overflow-x: hidden; } }
/* Recorte do topo (Esfera › Negócio) — menus <details>, sem JavaScript */
.fv-scope { overflow: visible; }
.fv-pick { position: relative; padding: 0 !important; }
.fv-pick > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 10px; cursor: pointer; }
.fv-pick > summary::-webkit-details-marker { display: none; }
.fv-pick > summary svg { width: 14px; height: 14px; color: var(--scope); }
.fv-pick .fv-menu { position: absolute; top: calc(100% + 6px); left: -1px; right: auto; min-width: 240px; z-index: 50; display: block; }
.fv-pick:not([open]) .fv-menu { display: none; }
.fv-pick .fv-menu a { display: flex; align-items: center; gap: 8px; }
.fv-pick .fv-menu a.is-on { background: var(--scope-soft); color: var(--ink); font-weight: 600; }
.fv-scope.is-scoped { box-shadow: 0 0 0 1px var(--scope); }
.fv-scope.is-scoped .fv-scope__v { color: var(--ink); font-weight: 600; }
.fv-recorte-banner { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; padding: 8px 12px; border: 1px solid var(--scope); background: var(--scope-soft); border-radius: var(--radius-md); font-size: 13px; }
.fv-recorte-banner svg { width: 16px; height: 16px; color: var(--scope); flex: none; }
.fv-recorte-banner a { margin-left: auto; white-space: nowrap; }
.fv-inline-form { display: flex; gap: 6px; align-items: center; margin: 0; }
.fv-inline-form .fv-input { height: 30px; font-size: 12px; }
.fv-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.fv-check input { accent-color: var(--ink); }
@media (max-width: 760px) {
  .fv-top .fv-scope > .fv-pick:nth-child(2) { display: inline-flex; }
  .fv-pick .fv-menu { left: auto; right: -1px; }
}
