/* Financeiro Nicolas 5.1.0 — acabamento visual e legibilidade */

/* A preferência "Sem sombra" é soberana inclusive sobre CSS mobile/legado. */
body.shadow-none .topbar,
body.shadow-none .topbar-search input:focus,
body.shadow-none .notification-popover,
body.shadow-none .notification-popover[data-notification-portal="1"],
body.shadow-none .mobile-bottom-nav,
body.shadow-none .mobile-fab,
body.shadow-none .quick-create,
body.shadow-none .btn,
body.shadow-none .panel,
body.shadow-none .kpi,
body.shadow-none .account-card,
body.shadow-none .finance-bank-card,
body.shadow-none .finance-credit-card,
body.shadow-none .finance-summary-item,
body.shadow-none .finance-management-row,
body.shadow-none .finance-empty-state,
body.shadow-none .card-limit-item,
body.shadow-none .forecast-cards>div,
body.shadow-none .goal-grid article,
body.shadow-none .attention-item,
body.shadow-none .intelligence-tabs>details,
body.shadow-none .sidebar,
body.shadow-none .sidebar-collapse-toggle{
  box-shadow:none!important;filter:none!important;text-shadow:none!important;
}

/* Botões de ação do topo nunca ganham sombra decorativa, independentemente do tema. */
.topbar-actions .quick-create,
.topbar-actions .quick-create:hover,
.topbar-actions .quick-create:focus,
.topbar-actions .quick-create:active{box-shadow:none!important;filter:none!important;text-shadow:none!important}

/* Piso de legibilidade: mantém interface compacta sem microtexto. */
.finance500-kpis span,.finance500-kpis small,
.forecast-cards span,.forecast-cards small,
.account-detail-main span,.account-detail-list article>div>span,
.card-future-list span,.compact-list span,.card-limit-head span,
.debt-list>article>div:first-child span,.debt-facts span,
.finance500-timeline .timeline-event small,.candidate-grid span,
.rule-list code,.duplicate-review a,.goal-grid small{font-size:max(12px,.75rem)!important;line-height:1.4!important}
.card-limit-facts span,.candidate-grid em{font-size:max(11px,.6875rem)!important;line-height:1.35!important}
.card-limit-facts b,.rule-list span{font-size:max(12px,.75rem)!important}

/* Contas e cartões: hierarquia mais clara, linhas compactas e áreas clicáveis confortáveis. */
.account-detail-list article{min-height:52px!important;padding:9px 4px!important}
.account-detail-main strong,.account-detail-list article>div>strong{font-size:13px!important;line-height:1.35!important}
.finance-bank-card,.finance-credit-card{overflow:hidden!important}
.finance-management-row{min-height:46px!important}

/* Notificações: camada confiável e texto realmente legível. */
.notification-backdrop{position:fixed!important;inset:0!important;z-index:2147483640!important}
.notification-popover[data-notification-portal="1"]{position:fixed!important;z-index:2147483646!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important}
.notification-popover[hidden]{display:none!important}
.notification-popover:not([hidden]){display:block!important}
.notification-popover .notification-item-copy strong{font-size:12px!important;line-height:1.35!important}
.notification-popover .notification-item-copy span{font-size:11.5px!important;line-height:1.4!important}
.notification-popover .notification-item-copy small{font-size:11px!important;line-height:1.35!important}
.notification-close{min-width:32px!important;min-height:32px!important}

@media(max-width:780px){
  .topbar{box-shadow:var(--ui-shadow-panel)!important}
  body.shadow-none .topbar{box-shadow:none!important}
  .notification-popover[data-notification-portal="1"]{left:0!important;right:0!important;top:auto!important;bottom:0!important;width:100%!important;max-width:none!important;max-height:min(78dvh,680px)!important;border-radius:18px 18px 0 0!important}
  .notification-list{max-height:calc(min(78dvh,680px) - 112px)!important}
  .notification-item{padding:10px 11px!important;gap:9px!important}
  .notification-popover .notification-item-copy strong{font-size:12.5px!important}
  .notification-popover .notification-item-copy span{font-size:12px!important}
  .notification-popover .notification-item-copy small{font-size:11px!important}
  .account-detail-list article{grid-template-columns:32px minmax(0,1fr) auto!important;gap:9px!important}
  .account-detail-list article>div:last-child{grid-column:2/-1!important;align-items:flex-start!important}
}

@media(max-width:520px){
  .topbar-actions .btn,.topbar-actions button{min-height:36px!important}
  .finance500-kpis span,.finance500-kpis small,.forecast-cards span,.forecast-cards small{font-size:12px!important}
  .card-future-list,.card-limit-grid{grid-template-columns:1fr!important}
}
