:root {
  --fc-night: #070e1f;
  --fc-lime: #c8f31d;
  --fc-navy-600: #22335e;
  --fc-slate-200: #a9b5cf;
  --fc-bg: #f2f5f9;
  --fc-surface: #ffffff;
  --fc-border: #e1e7f0;
  --fc-text: #0b1a3a;
  --fc-text-strong: #070e1f;
  --fc-text-muted: #5b6b8f;
  --fc-pos: #0b6b47;
  --fc-neg: #b4410c;
  --fc-warn: #713f12;
  --fc-info: #22335e;
  --fc-r-md: 12px;
  --fc-r-xl: 22px;
  --fc-r-pill: 999px;
  --fc-touch: 44px;
  --fc-sidebar-w: 264px;
  --fc-shadow-sm: 0 1px 3px rgba(7, 14, 31, 0.06);
  --fc-shadow-lg: 0 24px 60px rgba(7, 14, 31, 0.2);
}

body.fincore-ui :is(.contas-page, .faturas-page) {
  color: var(--fc-text);
}

body.fincore-ui #content .fincore-report {
  color: var(--fc-text);
}

body.fincore-ui #content .fincore-report-heading {
  margin-bottom: 20px;
}

body.fincore-ui #content .fincore-report-heading h1,
body.fincore-ui #content .fincore-report > .fincore-report-title {
  margin: 0 0 6px;
  color: var(--fc-text-strong);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

body.fincore-ui #content .fincore-report :is(.hero, .fincore-report-hero) {
  margin-bottom: 18px;
  padding: clamp(20px, 3vw, 30px);
  color: #f4f7fb;
  background: linear-gradient(125deg, var(--fc-night), #16264a);
  border: 1px solid var(--fc-navy-600);
  border-bottom: 3px solid var(--fc-lime);
  border-radius: var(--fc-r-xl);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .fincore-report :is(.hero, .fincore-report-hero) :is(h1, h2, h3, h4, p) {
  color: #f4f7fb;
}

body.fincore-ui #content .fincore-report :is(.hero, .fincore-report-hero) .btn {
  color: #f4f7fb;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .38);
}

body.fincore-ui #content .fincore-report :is(.hero, .fincore-report-hero) .btn:hover {
  color: var(--fc-night);
  background: var(--fc-lime);
  border-color: var(--fc-lime);
}

body.fincore-ui #content .fincore-report :is(.panel, .filters, .fincore-report-panel) {
  padding: 18px;
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-md);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .fincore-report .kpi-card,
body.fincore-ui #content .fincore-report .kpi {
  min-height: 100%;
  padding: 16px;
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-top: 3px solid var(--fc-lime);
  border-radius: var(--fc-r-md);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .fincore-report :is(.kpi-title, .small-muted, .small.text-muted) {
  color: var(--fc-text-muted);
}

body.fincore-ui #content .fincore-report :is(.kpi-value, .kpi-card .kpi-value, .kpi .kpi-value) {
  color: var(--fc-text-strong);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.fincore-ui #content .fincore-report :is(.form-label, label) {
  color: var(--fc-text-strong);
  font-size: .85rem;
  font-weight: 700;
}

body.fincore-ui #content .fincore-report :is(.form-control, .form-select) {
  min-height: var(--fc-touch);
  color: var(--fc-text);
  background-color: var(--fc-surface);
  border-color: var(--fc-border);
  border-radius: var(--fc-r-md);
}

body.fincore-ui #content .fincore-report .form-control::placeholder {
  color: var(--fc-text-muted);
  opacity: .8;
}

body.fincore-ui #content .fincore-report .table {
  margin-bottom: 0;
  color: var(--fc-text);
  border-color: var(--fc-border);
}

body.fincore-ui #content .fincore-report .table thead th {
  color: var(--fc-text-muted);
  background: var(--fc-bg);
  border-color: var(--fc-border);
}

body.fincore-ui #content .fincore-report .table tbody tr:hover > * {
  color: var(--fc-text);
  background: var(--theme-accent-soft);
}

body.fincore-ui #content .fincore-report :is(.table-wrap, .table-responsive, .dre-table-wrap) {
  max-width: 100%;
  overflow: auto;
  border-radius: var(--fc-r-md);
  -webkit-overflow-scrolling: touch;
}

body.fincore-ui #content .fincore-report canvas {
  max-width: 100%;
}

body.fincore-ui #content .fincore-report-results {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.fincore-ui #content .fincore-report :is(.highlight-positive, .valor-receber) {
  color: var(--fc-pos);
}

body.fincore-ui #content .fincore-report :is(.highlight-negative, .valor-pagar) {
  color: var(--fc-neg);
}

body.fincore-ui #content .fincore-report :is(.tree-link, .tree-toggle, .tree-badge) {
  color: var(--fc-text);
}

body.fincore-ui #content .fincore-report .line-detail {
  color: var(--fc-text-muted);
}

body.fincore-ui #content .fincore-report :is(.hero-inad, .benef-report-header) {
  padding: clamp(20px, 3vw, 30px);
  color: #f4f7fb;
  background: linear-gradient(125deg, var(--fc-night), #16264a);
  border: 1px solid var(--fc-navy-600);
  border-bottom: 3px solid var(--fc-lime);
  border-radius: var(--fc-r-xl);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .fincore-report :is(.hero-inad, .benef-report-header) :is(h1, h2, h3, h4, p) {
  color: #f4f7fb;
}

body.fincore-ui #content .fincore-report :is(.card-metric, .benef-report-card, .fc-kpi) {
  min-height: 100%;
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-top: 3px solid var(--fc-lime);
  border-radius: var(--fc-r-md);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .fincore-report :is(.metric-label, .metric-sub, .benef-report-card span, .fc-muted, .fc-kpi .label) {
  color: var(--fc-text-muted);
}

body.fincore-ui #content .fincore-report :is(.metric-value, .insight-value, .benef-report-card strong, .fc-kpi .value) {
  color: var(--fc-text-strong);
}

body.fincore-ui #content .fincore-report .metric-value {
  font-size: clamp(1.2rem, 2.2vw, 1.85rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.fincore-ui #content .fincore-report :is(.fc-filter, .fc-panel, .benef-report-section, .chart-box, .insight-card, .filters-card) {
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-md);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .fincore-report :is(.fc-insight, .insight-item) {
  color: var(--fc-text);
  background: var(--fc-bg);
  border-color: var(--fc-border);
}

body.fincore-ui #content .fincore-report :is(.fc-table, .benef-report-table .table) {
  color: var(--fc-text);
  border-color: var(--fc-border);
}

body.fincore-ui #content .fincore-report :is(.fc-table, .benef-report-table .table) thead th {
  color: var(--fc-text-muted);
  background: var(--fc-bg);
  border-color: var(--fc-border);
}

body.fincore-ui #content .fincore-vertical-report .sticky-col {
  background: var(--fc-surface);
}

body.fincore-ui #content .fincore-vertical-report .group-row {
  color: var(--fc-text-strong);
  background: var(--fc-bg);
  font-weight: 700;
}

body.fincore-ui #content .fincore-vertical-report .positive {
  color: var(--fc-pos);
}

body.fincore-ui #content .fincore-vertical-report .negative {
  color: var(--fc-neg);
}

body.fincore-ui #content .fincore-cashflow-report {
  padding: clamp(14px, 2.4vw, 24px);
  background: var(--fc-bg);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-xl);
}

body.fincore-ui #content .fincore-cashflow-report .fc-head h3 {
  color: var(--fc-text-strong);
}

body.fincore-ui #content .fincore-cashflow-report .fc-table .fc-total,
body.fincore-ui #content .fincore-cashflow-report .fc-table tfoot {
  color: var(--fc-text-strong);
  background: var(--fc-bg);
}

body.fincore-ui #content .fincore-beneficiary-report {
  max-width: 100%;
  margin: 0;
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-xl);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .fincore-beneficiary-report .benef-report-section {
  padding: clamp(14px, 2.4vw, 24px);
  background: var(--fc-surface);
  border: 0;
  box-shadow: none;
}

body.fincore-ui #content .fincore-report :is(.benef-report-footer .page-info, .rank-item) {
  color: var(--fc-text-muted);
  border-color: var(--fc-border);
}

body.fincore-ui #content .fincore-custom-dre-report {
  --dre-bg: var(--fc-bg);
  --dre-surface: var(--fc-surface);
  --dre-border: var(--fc-border);
  --dre-text: var(--fc-text);
  --dre-muted: var(--fc-text-muted);
  padding: clamp(14px, 2.4vw, 24px);
  background: var(--fc-bg);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-xl);
}

body.fincore-ui #content .fincore-custom-dre-report .dre-novo-hero {
  color: #f4f7fb;
  background: linear-gradient(125deg, var(--fc-night), #16264a);
  border: 1px solid var(--fc-navy-600);
  border-bottom: 3px solid var(--fc-lime);
}

body.fincore-ui #content .fincore-custom-dre-report .dre-novo-hero h2 {
  color: #f4f7fb;
}

body.fincore-ui #content .fincore-custom-dre-report :is(.dre-novo-panel, .dre-kpi) {
  color: var(--fc-text);
  background: var(--fc-surface);
  border-color: var(--fc-border);
  border-radius: var(--fc-r-md);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .fincore-custom-dre-report .dre-kpi strong {
  color: var(--fc-text-strong);
}

body.fincore-ui #content .fincore-custom-dre-report :is(.dre-kpi small, .formula-help) {
  color: var(--fc-text-muted);
}

body.fincore-ui #content .fincore-custom-dre-report .dre-table-wrap thead th {
  color: var(--fc-text-muted);
  background: var(--fc-bg);
}

body.fincore-ui #content .fincore-custom-dre-report .dre-tree-row:hover {
  background: var(--theme-accent-soft);
}

body.fincore-ui #content .fincore-operations-page {
  color: var(--fc-text);
}

body.fincore-ui #content .fincore-operations-card {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-xl);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .fincore-operations-header {
  padding: clamp(18px, 2.5vw, 26px);
  color: #f4f7fb;
  background: linear-gradient(125deg, var(--fc-night), #16264a);
  border-bottom: 3px solid var(--fc-lime);
}

body.fincore-ui #content .fincore-operations-header h1 {
  color: #f4f7fb;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

body.fincore-ui #content .fincore-operations-header p {
  color: var(--fc-slate-200);
}

body.fincore-ui #content .fincore-settlement-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

body.fincore-ui #content .fincore-settlement-filters > div:first-child {
  width: min(100%, 210px);
}

body.fincore-ui #content .fincore-settlement-filters > div:nth-child(2) {
  width: min(100%, 320px);
}

body.fincore-ui #content .fincore-settlement-card .table {
  min-width: 900px;
}

body.fincore-ui #content .fincore-budget-card .card-metric {
  padding: clamp(14px, 2vw, 22px);
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-md);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .fincore-budget-card .card-metric h5 {
  color: var(--fc-text-strong);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
}

body.fincore-ui #content .fincore-budget-card .card-metric h6,
body.fincore-ui #content .fincore-budget-card .card-metric .small {
  color: var(--fc-text-muted);
}

body.fincore-ui #content .fincore-budget-card .badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-pill);
  font-size: .72rem;
  font-weight: 700;
}

body.fincore-ui #content .fincore-budget-card .badge-dentro,
body.fincore-ui #content .fincore-budget-card .badge-receita {
  color: var(--fc-pos);
  background: color-mix(in srgb, var(--fc-pos) 9%, var(--fc-surface));
}

body.fincore-ui #content .fincore-budget-card .badge-fora,
body.fincore-ui #content .fincore-budget-card .badge-despesa {
  color: var(--fc-neg);
  background: color-mix(in srgb, var(--fc-neg) 9%, var(--fc-surface));
}

body.fincore-ui #content .fincore-budget-card .table-responsive {
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-md);
}

body.fincore-ui #content .fincore-operations-card .panel-body {
  padding: clamp(14px, 2vw, 22px);
}

body.fincore-ui #content .fincore-operation-callout,
body.fincore-ui #content .fincore-operation-filters {
  margin-bottom: 16px;
  padding: 16px;
  color: var(--fc-text);
  background: var(--fc-bg);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-md);
}

body.fincore-ui #content .fincore-operation-search {
  width: min(100%, 420px);
}

body.fincore-ui #content .fincore-operations-page .form-label {
  color: var(--fc-text-strong);
  font-size: .84rem;
  font-weight: 700;
}

body.fincore-ui #content .fincore-operations-page .form-control,
body.fincore-ui #content .fincore-operations-page .form-select {
  min-height: var(--fc-touch);
  color: var(--fc-text);
  background-color: var(--fc-surface);
  border-color: var(--fc-border);
  border-radius: var(--fc-r-md);
}

body.fincore-ui #content .fincore-operations-page .table {
  margin: 0;
  color: var(--fc-text);
}

body.fincore-ui #content .fincore-operations-page .table thead th {
  color: var(--fc-text-muted);
  background: var(--fc-bg);
  border-color: var(--fc-border);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.fincore-ui #content .fincore-operations-page .table td,
body.fincore-ui #content .fincore-operations-page .table th {
  padding: 12px 14px;
  vertical-align: middle;
  border-color: var(--fc-border);
}

body.fincore-ui #content .fincore-operations-page .table tbody tr:hover > * {
  color: var(--fc-text);
  background: var(--theme-accent-soft);
}

body.fincore-ui #content .fincore-operations-page .table .badge {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-pill);
  font-size: .72rem;
  font-weight: 700;
}

body.fincore-ui #content .fincore-operations-page :is(.badge-pendente, .badge-nao) {
  color: var(--fc-warn);
  background: color-mix(in srgb, var(--fc-lime) 14%, var(--fc-surface));
}

body.fincore-ui #content .fincore-operations-page :is(.badge-aprovada, .badge-pago, .badge-sim) {
  color: var(--fc-pos);
  background: color-mix(in srgb, var(--fc-pos) 9%, var(--fc-surface));
}

body.fincore-ui #content .fincore-operations-page .badge-reprovada {
  color: var(--fc-neg);
  background: color-mix(in srgb, var(--fc-neg) 9%, var(--fc-surface));
}

body.fincore-ui #content .fincore-operations-modal-content {
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-xl);
}

body.fincore-ui #content .fincore-operations-modal-content .modal-header,
body.fincore-ui #content .fincore-operations-modal-content .modal-footer {
  border-color: var(--fc-border);
}

body.fincore-ui #content .fincore-modal-fields .form-control,
body.fincore-ui #content .fincore-modal-fields .form-select {
  min-height: var(--fc-touch);
  color: var(--fc-text);
  background: var(--fc-surface);
  border-color: var(--fc-border);
}

body.fincore-ui .fincore-finance-hero {
  padding: clamp(20px, 3vw, 32px);
  color: #f4f7fb;
  background: linear-gradient(125deg, var(--fc-night), #16264a);
  border: 1px solid var(--fc-navy-600);
  border-bottom: 3px solid var(--fc-lime);
  border-radius: var(--fc-r-xl);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui .fincore-finance-hero h1 {
  margin: 0 0 6px;
  color: #f4f7fb !important;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
}

body.fincore-ui .fincore-finance-hero p {
  margin: 0;
  color: var(--fc-slate-200);
}

body.fincore-ui :is(.contas-filters, .contas-table, .contas-kpi, .faturas-card, .fatura-kpi) {
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-md);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui .contas-filters {
  padding: 18px;
}

body.fincore-ui .filtros-bar {
  padding: 18px;
  background: var(--fc-bg);
  border-bottom: 1px solid var(--fc-border);
}

body.fincore-ui :is(.contas-page, .faturas-page) .btn-primary {
  color: #f4f7fb;
  background: var(--fc-night);
  border-color: var(--fc-night);
}

body.fincore-ui :is(.contas-page, .faturas-page) .btn-primary:hover {
  background: var(--fc-navy-600);
  border-color: var(--fc-navy-600);
}

body.fincore-ui .fincore-finance-hero .btn-light {
  color: var(--fc-night);
  background: var(--fc-lime);
  border-color: var(--fc-lime);
  font-weight: 700;
}

body.fincore-ui .fincore-finance-hero .btn-light:hover {
  background: color-mix(in srgb, var(--fc-lime) 86%, white);
}

body.fincore-ui #content .fincore-records,
body.fincore-ui #content .fincore-form-card {
  padding: 20px;
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-xl);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .fincore-records .table {
  margin: 0;
  color: var(--fc-text);
}

body.fincore-ui #content .fincore-records .table th {
  color: var(--fc-text-muted);
  background: var(--fc-bg);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.fincore-ui #content .fincore-records .table td,
body.fincore-ui #content .fincore-records .table th {
  padding: 14px 16px;
  vertical-align: middle;
  border-color: var(--fc-border);
}

body.fincore-ui #content .fincore-records .table tbody tr:hover > * {
  color: var(--fc-text);
  background: var(--theme-accent-soft);
}

body.fincore-ui #content .fincore-bank-form-page .form-label {
  color: var(--fc-text-strong);
  font-size: .88rem;
  font-weight: 700;
}

body.fincore-ui #content .fincore-bank-form-page .form-control {
  min-height: var(--fc-touch);
  color: var(--fc-text);
  background: var(--fc-surface);
  border-color: var(--fc-border);
  border-radius: var(--fc-r-md);
}

body.fincore-ui #content .fincore-bank-form-page textarea.form-control {
  min-height: 112px;
}

body.fincore-ui #content .fincore-bank-form-page .form-control::placeholder {
  color: var(--fc-text-muted);
  opacity: .8;
}

body.fincore-ui #content .fincore-record-filters {
  padding: 18px;
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-md);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .fincore-record-filters .form-label,
body.fincore-ui #content .fincore-classification-form-card .form-label {
  color: var(--fc-text-strong);
  font-size: .85rem;
  font-weight: 700;
}

body.fincore-ui #content .fincore-record-filters .form-control,
body.fincore-ui #content .fincore-record-filters .form-select,
body.fincore-ui #content .fincore-classification-form-card .form-control,
body.fincore-ui #content .fincore-classification-form-card .form-select {
  min-height: var(--fc-touch);
  color: var(--fc-text);
  background-color: var(--fc-surface);
  border-color: var(--fc-border);
  border-radius: var(--fc-r-md);
}

body.fincore-ui #content .fincore-record-filters .form-control::placeholder,
body.fincore-ui #content .fincore-classification-form-card .form-control::placeholder {
  color: var(--fc-text-muted);
  opacity: .8;
}

body.fincore-ui #content .fincore-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

body.fincore-ui #content .fincore-pagination .btn {
  min-width: var(--fc-touch);
  min-height: var(--fc-touch);
}

body.fincore-ui #content .fincore-cash-flow {
  padding: clamp(14px, 2.4vw, 24px);
  color: var(--fc-text);
  background: var(--fc-bg);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-xl);
}

body.fincore-ui #content .fincore-cash-flow .fluxo-card {
  height: 100%;
  padding: 18px;
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-md);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .fincore-cash-flow :is(.fluxo-horizon-card, .fluxo-investment-card) {
  padding: 12px;
  background: var(--fc-bg);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-md);
}

body.fincore-ui #content .fincore-cash-flow .fluxo-kpi {
  color: var(--fc-text-strong);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

body.fincore-ui #content .fincore-cash-flow .fluxo-small {
  color: var(--fc-text-muted);
  font-size: .875rem;
}

body.fincore-ui #content .fincore-cash-flow .fluxo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: var(--fc-r-pill);
  font-size: .8rem;
  font-weight: 700;
}

body.fincore-ui #content .fincore-cash-flow .fluxo-badge-ok {
  color: var(--fc-pos);
  background: color-mix(in srgb, var(--fc-pos) 10%, var(--fc-surface));
  border-color: color-mix(in srgb, var(--fc-pos) 18%, var(--fc-border));
}

body.fincore-ui #content .fincore-cash-flow .fluxo-badge-risk {
  color: var(--fc-neg);
  background: color-mix(in srgb, var(--fc-neg) 10%, var(--fc-surface));
  border-color: color-mix(in srgb, var(--fc-neg) 18%, var(--fc-border));
}

body.fincore-ui #content .fincore-cash-flow .table {
  color: var(--fc-text);
  border-color: var(--fc-border);
}

body.fincore-ui #content .fincore-cash-flow .table thead th {
  color: var(--fc-text-muted);
  background: var(--fc-bg);
  border-color: var(--fc-border);
}

body.fincore-ui #content .fincore-cash-flow .alert-secondary {
  color: var(--fc-text-muted);
  background: var(--fc-bg);
  border-color: var(--fc-border);
}

body.fincore-ui .contas-kpi,
body.fincore-ui .fatura-kpi {
  height: 100%;
  padding: 17px 18px;
  border-top: 3px solid var(--fc-lime);
}

body.fincore-ui :is(.contas-kpi small, .fatura-kpi-label) {
  color: var(--fc-text-muted);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.fincore-ui :is(.contas-kpi h3, .fatura-kpi-value) {
  margin: 6px 0 0;
  color: var(--fc-text-strong);
  font-size: 1.4rem;
  font-weight: 700;
}

body.fincore-ui :is(.contas-table, .faturas-card) {
  overflow: hidden;
}

body.fincore-ui :is(.contas-table .table, .table-faturas) {
  margin: 0;
  color: var(--fc-text);
}

body.fincore-ui :is(.contas-table th, .table-faturas th) {
  color: var(--fc-text-muted);
  background: var(--fc-bg);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

body.fincore-ui :is(.contas-table td, .contas-table th, .table-faturas td, .table-faturas th) {
  padding: 14px 16px;
  vertical-align: middle;
  border-color: var(--fc-border);
}

body.fincore-ui :is(.contas-table tbody tr:hover, .table-faturas tbody tr:hover) > * {
  color: var(--fc-text);
  background: var(--theme-accent-soft);
}

body.fincore-ui :is(.contas-origin, .fatura-number) {
  color: var(--fc-text);
  font-weight: 700;
  text-decoration: none;
}

body.fincore-ui :is(.contas-status, .fatura-status) {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  color: var(--fc-text);
  background: var(--theme-accent-soft);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-pill);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

body.fincore-ui :is(.contas-status.paga, .fatura-status.paga) {
  color: var(--fc-pos);
  background: color-mix(in srgb, var(--fc-pos) 10%, var(--fc-surface));
}

body.fincore-ui :is(.contas-status.vencida, .fatura-status.vencida) {
  color: var(--fc-neg);
  background: color-mix(in srgb, var(--fc-neg) 10%, var(--fc-surface));
}

body.fincore-ui :is(.contas-status.aberta, .contas-status.parcial, .fatura-status.emitida, .fatura-status.parcialmente_paga) {
  color: var(--fc-warn);
  background: color-mix(in srgb, var(--fc-lime) 16%, var(--fc-surface));
}

body.fincore-ui :is(.contas-empty, .empty-faturas) {
  padding: 40px 20px;
  color: var(--fc-text-muted);
  text-align: center;
}

body.fincore-ui :is(.contas-empty i, .empty-faturas i) {
  display: block;
  margin-bottom: 8px;
  font-size: 2rem;
}

body.fincore-ui {
  --theme-surface: var(--fc-surface);
  --theme-background: var(--fc-bg);
  --theme-border: var(--fc-border);
  --theme-text: var(--fc-text);
  --theme-muted: var(--fc-text-muted);
  --theme-accent: var(--fc-night);
  --theme-accent-hover: var(--fc-navy-600);
  --theme-accent-soft: #edf1f8;
  --theme-positive: var(--fc-pos);
  --theme-positive-hover: #075438;
  --theme-nav: var(--fc-night);
  --theme-nav-hover: #162342;
  --theme-nav-text: #f4f7fb;
  --theme-nav-muted: var(--fc-slate-200);
  --theme-nav-active: #1a2947;
  --theme-nav-active-text: var(--fc-lime);
  --theme-shadow: var(--fc-shadow-sm);
  min-height: 100%;
  color: var(--fc-text);
  background: var(--fc-bg);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

body.fincore-ui.theme-dark {
  --fc-bg: #070e1f;
  --fc-surface: #0e1a36;
  --fc-border: #22335e;
  --fc-text: #e6ecf7;
  --fc-text-strong: #f4f7fb;
  --fc-text-muted: #a9b5cf;
  --fc-info: #a9b5cf;
  --theme-accent-soft: #172541;
  --theme-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  color-scheme: dark;
}

body.theme-modern.fincore-ui {
  --theme-surface: var(--fc-surface);
  --theme-background: var(--fc-bg);
  --theme-border: var(--fc-border);
  --theme-text: var(--fc-text);
  --theme-muted: var(--fc-text-muted);
  --theme-accent: var(--fc-night);
  --theme-accent-hover: var(--fc-navy-600);
  --theme-accent-soft: #edf1f8;
  --theme-positive: var(--fc-pos);
  --theme-positive-hover: #075438;
  --theme-nav: var(--fc-night);
  --theme-nav-hover: #162342;
  --theme-nav-text: #f4f7fb;
  --theme-nav-muted: var(--fc-slate-200);
  --theme-nav-active: #1a2947;
  --theme-nav-active-text: var(--fc-lime);
}

body.theme-modern.theme-dark.fincore-ui {
  --theme-background: var(--fc-bg);
  --theme-surface: var(--fc-surface);
  --theme-border: var(--fc-border);
  --theme-text: var(--fc-text);
  --theme-muted: var(--fc-text-muted);
  --theme-accent: var(--fc-night);
  --theme-accent-hover: var(--fc-navy-600);
  --theme-accent-soft: #172541;
  --theme-positive: var(--fc-pos);
  --theme-positive-hover: #075438;
  --theme-nav: var(--fc-night);
  --theme-nav-hover: #162342;
  --theme-nav-text: #f4f7fb;
  --theme-nav-muted: var(--fc-slate-200);
  --theme-nav-active: #1a2947;
  --theme-nav-active-text: var(--fc-lime);
}

body.fincore-ui :is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
  color: var(--fc-text-strong);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

body.fincore-ui :is(button, input, select, textarea, .btn) {
  font: inherit;
}

body.fincore-ui :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--fc-lime) 70%, transparent);
  outline-offset: 2px;
}

body.fincore-ui .text-muted,
body.fincore-ui .form-text,
body.fincore-ui .subtle {
  color: var(--fc-text-muted) !important;
}

body.fincore-ui .navbar.menuSuperior {
  position: fixed !important;
  left: var(--fc-sidebar-w);
  width: calc(100% - var(--fc-sidebar-w));
  height: 64px;
  min-height: 64px;
  padding: 8px 24px;
  background: var(--fc-surface) !important;
  border-bottom: 1px solid var(--fc-border);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content {
  min-width: 0;
  width: calc(100% - var(--fc-sidebar-w));
  max-width: calc(100% - var(--fc-sidebar-w));
  margin-left: var(--fc-sidebar-w);
  padding-top: 64px;
  color: var(--fc-text);
  background: var(--fc-bg) !important;
}

body.fincore-ui .container-site {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 64px);
  padding: 24px !important;
  overflow-x: hidden;
  color: var(--fc-text);
  background: transparent !important;
}

body.fincore-ui .container-site > .container {
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

body.fincore-ui #sidebar {
  z-index: 1040;
  width: var(--fc-sidebar-w);
  min-width: var(--fc-sidebar-w);
  max-width: var(--fc-sidebar-w);
  background: var(--fc-night) !important;
  border-right: 1px solid rgba(169, 181, 207, 0.12);
  box-shadow: 4px 0 24px rgba(7, 14, 31, 0.12);
}

body.fincore-ui #sidebar::before {
  display: none;
}

body.fincore-ui #sidebar .sidebar-header {
  min-height: 104px;
  margin: 0 16px 12px;
  padding: 18px 8px 14px !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(169, 181, 207, 0.16);
  box-shadow: none;
}

body.fincore-ui #sidebar-logo-placeholder {
  min-height: 0 !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 0 !important;
}

body.fincore-ui #sidebar-logo-placeholder h4 {
  color: #f4f7fb;
  font-family: "Space Grotesk", sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

body.fincore-ui #sidebar-logo-placeholder h4::after {
  display: block;
  margin-top: 5px;
  color: var(--fc-slate-200);
  content: "GESTÃO FINANCEIRA";
  font-family: "DM Sans", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

body.fincore-ui #sidebar-company-logo-label {
  display: block;
  margin: 10px 0 4px;
  color: var(--fc-slate-200);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

body.fincore-ui #sidebar-logo-image {
  width: auto !important;
  max-width: 148px !important;
  max-height: 34px !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

body.fincore-ui #sidebar > ul {
  padding: 8px 12px 20px;
}

body.fincore-ui #sidebar > ul > li {
  margin: 2px 0 5px;
}

body.fincore-ui #sidebar .menu-item {
  min-height: var(--fc-touch);
  margin: 2px 0;
  padding: 10px 12px !important;
  border-radius: var(--fc-r-md);
  color: var(--fc-slate-200) !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  transition: background-color 150ms ease, color 150ms ease;
}

body.fincore-ui #sidebar .menu-item::before {
  display: none;
}

body.fincore-ui #sidebar .menu-item:hover {
  transform: none;
  color: #ffffff !important;
  background: var(--theme-nav-hover);
  box-shadow: none;
}

body.fincore-ui #sidebar .menu-item.active,
body.fincore-ui #sidebar .menu-item[aria-current="page"] {
  color: var(--fc-lime) !important;
  background: var(--theme-nav-active);
  box-shadow: inset 3px 0 var(--fc-lime);
  font-weight: 700;
}

body.fincore-ui #sidebar .menu-icon,
body.fincore-ui #sidebar .menu-arrow {
  width: 20px;
  margin-right: 10px;
  color: var(--fc-slate-200);
  font-size: 16px;
}

body.fincore-ui #sidebar .menu-item:hover .menu-icon,
body.fincore-ui #sidebar .menu-item.active .menu-icon {
  color: var(--fc-lime);
  transform: none;
}

body.fincore-ui #sidebar .submenu {
  margin: 2px 0 8px 12px;
  padding-inline: 4px;
  background: rgba(255, 255, 255, 0.035);
  border-left: 1px solid rgba(169, 181, 207, 0.2);
  border-radius: 0;
}

body.fincore-ui #sidebar .submenu .menu-item {
  min-height: 40px;
  padding: 8px 10px !important;
  font-size: 13px;
}

body.fincore-ui #sidebar .submenu .submenu-item {
  margin: 1px 0 !important;
  padding-left: 12px !important;
}

body.fincore-ui #sidebarCollapse,
body.fincore-ui .module-btn {
  min-height: var(--fc-touch);
  border-radius: var(--fc-r-pill);
  border: 1px solid var(--fc-border);
  color: var(--fc-text);
  background: var(--fc-surface);
  box-shadow: none;
}

body.fincore-ui #sidebarCollapse {
  width: var(--fc-touch);
  padding: 0;
  color: #ffffff;
  background: var(--fc-night);
}

body.fincore-ui .module-btn:hover,
body.fincore-ui #sidebarCollapse:hover {
  transform: none;
  color: var(--fc-text-strong);
  background: var(--fc-lime);
  border-color: var(--fc-lime);
  box-shadow: none;
}

body.fincore-ui .module-card {
  min-height: 112px;
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: 16px;
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui .module-card.active {
  border-color: var(--fc-lime);
  box-shadow: 0 0 0 2px rgba(200, 243, 29, 0.28);
}

body.fincore-ui .module-card.active .module-name {
  color: var(--fc-text-strong);
}

body.fincore-ui #icon_user {
  width: 36px;
  height: 36px;
  border: 2px solid var(--fc-border);
  border-radius: 50%;
  object-fit: cover;
}

body.fincore-ui .menu_user {
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: 16px;
  box-shadow: var(--fc-shadow-lg);
}

body.fincore-ui .menus-dropdown {
  min-height: var(--fc-touch);
  color: var(--fc-text);
  border-color: var(--fc-border);
}

body.fincore-ui .menus-dropdown:hover {
  color: var(--fc-text-strong);
  background: var(--fc-bg);
}

body.fincore-ui .nome_user {
  color: var(--fc-text-strong);
  background: var(--fc-bg);
}

body.fincore-ui .onoff {
  right: 20px;
  bottom: 20px;
}

body.fincore-ui .onoff .labelOnOf {
  border-color: var(--fc-border);
  box-shadow: 0 8px 24px rgba(7, 14, 31, 0.16);
}

body.fincore-ui .card,
body.fincore-ui .modal-content,
body.fincore-ui .dropdown-menu,
body.fincore-ui .list-group-item,
body.fincore-ui #content :is(.panel, .panel-soft, .panel-wrap, .filters-card, .filters-panel, .filter-card, .filter-panel, .table-wrapper, .table-wrap) {
  color: var(--fc-text);
  background-color: var(--fc-surface);
  border-color: var(--fc-border);
  border-radius: var(--fc-r-xl);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui .card:hover {
  border-color: var(--fc-border);
  box-shadow: 0 8px 24px rgba(7, 14, 31, 0.09);
}

body.fincore-ui #content :is(.btn, button, .form-control, .form-select, .input-group-text) {
  min-height: var(--fc-touch);
  border-radius: var(--fc-r-md);
}

body.fincore-ui #content .btn-primary {
  color: #ffffff;
  background: var(--fc-night);
  border-color: var(--fc-night);
  font-weight: 700;
}

body.fincore-ui #content .btn-primary:hover:not(:disabled) {
  color: var(--fc-night);
  background: var(--fc-lime);
  border-color: var(--fc-lime);
}

body.fincore-ui.theme-dark #content .btn-primary {
  color: var(--fc-night);
  background: var(--fc-lime);
  border-color: var(--fc-lime);
}

body.fincore-ui.theme-dark #content .btn-primary:hover:not(:disabled) {
  color: var(--fc-night);
  background: #dcff5a;
  border-color: #dcff5a;
}

body.fincore-ui #content .btn-success {
  color: #ffffff;
  background: var(--fc-pos);
  border-color: var(--fc-pos);
}

body.fincore-ui #content :is(.form-control, .form-select, textarea, input, select) {
  color: var(--fc-text);
  background-color: var(--fc-surface);
  border-color: var(--fc-border);
}

body.fincore-ui #content :is(.form-control, .form-select, textarea, input, select):focus {
  border-color: var(--fc-navy-600);
  box-shadow: 0 0 0 3px rgba(34, 51, 94, 0.12);
}

body.fincore-ui #content .table {
  --bs-table-color: var(--fc-text);
  --bs-table-bg: var(--fc-surface);
  --bs-table-border-color: var(--fc-border);
  --bs-table-striped-color: var(--fc-text);
  --bs-table-striped-bg: rgba(34, 51, 94, 0.025);
  --bs-table-hover-color: var(--fc-text);
  --bs-table-hover-bg: rgba(200, 243, 29, 0.12);
  font-variant-numeric: tabular-nums;
}

body.fincore-ui #content .table thead th {
  color: var(--fc-text-muted) !important;
  background: var(--fc-bg) !important;
  border-color: var(--fc-border) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.fincore-ui #content .table td {
  border-color: var(--fc-border);
}

body.fincore-ui .valor-receber,
body.fincore-ui #content .text-success {
  color: var(--fc-pos) !important;
  font-variant-numeric: tabular-nums;
}

body.fincore-ui .valor-pagar {
  color: var(--fc-neg) !important;
  font-variant-numeric: tabular-nums;
}

body.fincore-ui.theme-dark #content :is(.card, .modal-content, .dropdown-menu, .list-group-item, .panel, .panel-soft, .panel-wrap, .filters-card, .filters-panel, .filter-card, .filter-panel, .table-wrap) {
  color: var(--fc-text);
  background-color: var(--fc-surface) !important;
  border-color: var(--fc-border) !important;
}

body.fincore-ui.theme-dark #content :is(.form-control, .form-select, textarea, input, select) {
  color: var(--fc-text);
  background-color: var(--fc-surface) !important;
  border-color: var(--fc-border) !important;
}

body.fincore-ui.theme-dark #content .table {
  --bs-table-color: var(--fc-text);
  --bs-table-bg: var(--fc-surface);
  --bs-table-border-color: var(--fc-border);
  --bs-table-striped-color: var(--fc-text);
  --bs-table-striped-bg: rgba(255, 255, 255, 0.025);
  --bs-table-hover-color: var(--fc-text);
  --bs-table-hover-bg: rgba(200, 243, 29, 0.09);
}

body.fincore-ui .fc-mobile-bar {
  display: none;
}

body.fincore-ui #content .dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  overflow: visible;
  color: var(--fc-text);
  background: transparent;
}

body.fincore-ui #content .dashboard-page > * {
  width: 100%;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.fincore-ui #content .dashboard-page > .hero {
  order: 0;
  padding: 4px 0;
  color: var(--fc-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.fincore-ui #content .dashboard-page > .hero h4 {
  margin: 0;
  color: var(--fc-text-strong);
  font-size: clamp(28px, 3vw, 38px);
}

body.fincore-ui #content .dashboard-page > .hero p {
  color: var(--fc-text-muted);
  opacity: 1 !important;
}

body.fincore-ui #content .dashboard-page > .alert {
  order: 1;
}

body.fincore-ui #content .dashboard-primary-kpis {
  order: 2;
}

body.fincore-ui #content .dashboard-due-kpis {
  order: 3;
}

body.fincore-ui #content .dashboard-filter-panel {
  order: 4;
}

body.fincore-ui #content .dashboard-quick-actions-panel {
  order: 5;
}

body.fincore-ui #content .dashboard-onboarding {
  order: 6;
}

body.fincore-ui #content .dashboard-page > :not(.hero):not(.alert):not(.dashboard-primary-kpis):not(.dashboard-due-kpis):not(.dashboard-filter-panel):not(.dashboard-quick-actions-panel):not(.dashboard-onboarding) {
  order: 10;
}

body.fincore-ui #content .dashboard-filter-panel {
  padding: 0;
  overflow: hidden;
}

body.fincore-ui #content .dashboard-filter-panel summary {
  min-height: var(--fc-touch);
  padding: 12px 18px;
  color: var(--fc-text);
  cursor: pointer;
  font-weight: 700;
  list-style-position: inside;
}

body.fincore-ui #content .dashboard-filter-panel[open] summary {
  border-bottom: 1px solid var(--fc-border);
}

body.fincore-ui #content .dashboard-filter-panel form {
  padding: 18px;
}

body.fincore-ui #content .dashboard-page .panel,
body.fincore-ui #content .dashboard-page .kpi-card {
  height: 100%;
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-xl);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .dashboard-page .panel {
  padding: 20px;
}

body.fincore-ui #content .dashboard-page .kpi-card {
  min-height: 126px;
  padding: 18px;
}

body.fincore-ui #content .dashboard-page .kpi-title {
  color: var(--fc-text-muted);
  font-size: 13px;
  font-weight: 600;
}

body.fincore-ui #content .dashboard-page .kpi-value {
  color: var(--fc-text-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
}

body.fincore-ui #content .dashboard-page .quick-action {
  min-height: 72px;
  border-color: var(--fc-border);
  border-radius: var(--fc-r-md);
  color: var(--fc-text);
  background: var(--fc-surface);
}

body.fincore-ui #content .dashboard-page .quick-action:hover {
  color: var(--fc-text-strong);
  border-color: var(--fc-navy-600);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .dashboard-page .quick-action-icon,
body.fincore-ui #content .dashboard-page .step-number {
  color: var(--fc-night);
  background: var(--fc-lime);
  border-radius: var(--fc-r-md);
}

body.fincore-ui #content .dashboard-page .onboarding-card {
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-xl);
}

body.fincore-ui #content .dashboard-page .onboarding-card h6,
body.fincore-ui #content .dashboard-page .panel h6 {
  color: var(--fc-text-strong);
  font-size: 18px;
}

body.fincore-ui #content .fincore-transactions-page {
  max-width: none;
  padding: 4px 0 0;
  color: var(--fc-text);
}

body.fincore-ui #content .fincore-page-heading {
  margin-bottom: 20px;
  padding: 4px 0;
  color: var(--fc-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.fincore-ui #content .fincore-page-heading h2 {
  color: var(--fc-text-strong);
  font-size: clamp(28px, 3vw, 38px);
}

body.fincore-ui #content .fincore-page-heading p {
  color: var(--fc-text-muted);
  opacity: 1 !important;
}

body.fincore-ui #content .fincore-transaction-filters {
  padding: 20px;
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-xl);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .fincore-advanced-filters {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--fc-border);
}

body.fincore-ui #content .fincore-advanced-filters summary {
  width: fit-content;
  min-height: var(--fc-touch);
  padding: 10px 2px;
  color: var(--fc-text-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

body.fincore-ui #content .fincore-advanced-filters[open] summary {
  color: var(--fc-text-strong);
}

body.fincore-ui #content .fincore-active-filters:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

body.fincore-ui #content .fincore-active-filters[hidden] {
  display: none;
}

body.fincore-ui #content .fincore-filter-chip {
  display: inline-flex;
  min-height: var(--fc-touch);
  align-items: center;
  padding: 6px 12px;
  color: var(--fc-text);
  background: var(--fc-bg);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-pill);
  font-size: 13px;
  font-weight: 600;
}

body.fincore-ui #content .fincore-filter-chip:hover {
  background: var(--theme-accent-soft);
}

body.fincore-ui #content .fincore-transactions-page .kpi-card,
body.fincore-ui #content .fincore-transactions-page .chart-card {
  height: 100%;
  padding: 18px;
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-xl);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui #content .fincore-transactions-page .kpi-value {
  color: var(--fc-text-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  font-variant-numeric: tabular-nums;
}

body.fincore-ui #content .fincore-transactions-page .panel {
  padding: 20px;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-xl);
}

body.fincore-ui #content .fincore-transactions-page .status-pago {
  color: var(--fc-pos);
  background: color-mix(in srgb, var(--fc-pos) 12%, var(--fc-surface));
}

body.fincore-ui #content .fincore-transactions-page .status-pendente {
  color: var(--fc-warn);
  background: color-mix(in srgb, #c8f31d 18%, var(--fc-surface));
}

body.fincore-ui #content .page-lancamento {
  color: var(--fc-text);
}

body.fincore-ui #content .hero-lancamento h1 {
  color: var(--fc-text-strong);
  font-size: clamp(28px, 3vw, 38px);
}

body.fincore-ui #content .hero-lancamento p {
  color: var(--fc-text-muted);
  opacity: 1 !important;
}

body.fincore-ui #content .launch-more-options,
body.fincore-ui #content .launch-xml-options {
  padding: 0;
  overflow: hidden;
}

body.fincore-ui #content .launch-more-options summary,
body.fincore-ui #content .launch-xml-options summary {
  min-height: var(--fc-touch);
  margin: 0;
  padding: 14px 20px;
  color: var(--fc-text-strong);
  cursor: pointer;
  list-style-position: inside;
}

body.fincore-ui #content .launch-more-options[open] summary,
body.fincore-ui #content .launch-xml-options[open] summary {
  margin-bottom: 16px;
  border-bottom: 1px solid var(--fc-border);
}

body.fincore-ui #content .launch-more-options > :not(summary),
body.fincore-ui #content .launch-xml-options > :not(summary) {
  margin-right: 20px;
  margin-left: 20px;
}

body.fincore-ui #content .launch-more-options > .row,
body.fincore-ui #content .launch-xml-options > .row {
  padding-bottom: 20px;
}

body.fincore-ui #content .launch-xml-options > :last-child {
  margin-bottom: 20px;
}

body.fincore-ui #content .launch-more-options .panel-title {
  margin-bottom: 0;
}

body.fincore-ui #content .page-lancamento .preview-value {
  color: var(--fc-text-strong);
  font-variant-numeric: tabular-nums;
}

body.fincore-ui #content :is(.panel-title, .form-label, .form-check-label, label) {
  color: var(--fc-text);
}

body.fincore-ui #content .page-lancamento .required-label::after {
  color: var(--fc-neg);
}

body.fincore-ui #content .page-lancamento .is-invalid-soft {
  border-color: var(--fc-neg) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc-neg) 14%, transparent);
}

body.fincore-ui #content .page-lancamento #formLancamentoFeedback,
body.fincore-ui #content .page-lancamento #confirmacaoErro {
  color: var(--fc-neg);
}

body.fincore-ui.theme-dark #content .fincore-transactions-page .status-pendente {
  color: #f4d58b;
}

body.fincore-ui.theme-dark #content .dashboard-page .panel,
body.fincore-ui.theme-dark #content .dashboard-page .kpi-card,
body.fincore-ui.theme-dark #content .dashboard-page .quick-action,
body.fincore-ui.theme-dark #content .dashboard-page .onboarding-card {
  color: var(--fc-text);
  background: var(--fc-surface);
  border-color: var(--fc-border);
}

body.fincore-ui .marketing-page {
  min-height: 100vh;
  color: var(--fc-text);
  background: var(--fc-bg);
  font-family: "DM Sans", sans-serif;
}

body.fincore-ui .marketing-page .hero {
  color: #f4f7fb;
  background: var(--fc-night);
  border: 1px solid var(--fc-navy-600);
  border-radius: var(--fc-r-xl);
  box-shadow: var(--fc-shadow-lg);
}

body.fincore-ui .marketing-page .hero :is(h1, h2, h3) {
  color: #f4f7fb;
}

body.fincore-ui .marketing-page .hero p {
  color: var(--fc-slate-200);
}

body.fincore-ui .marketing-page :is(.panel, .login-card, .feature-card) {
  color: var(--fc-text);
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-r-xl);
  box-shadow: var(--fc-shadow-sm);
}

body.fincore-ui .marketing-page .feature-icon {
  color: var(--fc-night);
  background: var(--fc-lime);
  border-radius: var(--fc-r-md);
}

body.fincore-ui .marketing-page .plan-card-price,
body.fincore-ui .marketing-page .forgot-link {
  color: var(--fc-navy-600);
}

body.fincore-ui .marketing-page .plan-cta,
body.fincore-ui .marketing-page .login-card .btn {
  min-height: var(--fc-touch);
  color: #ffffff;
  background: var(--fc-night);
  border: 1px solid var(--fc-night);
  border-radius: var(--fc-r-pill);
  font-weight: 700;
}

body.fincore-ui .marketing-page :is(.plan-cta, .login-card .btn):hover {
  color: var(--fc-night);
  background: var(--fc-lime);
  border-color: var(--fc-lime);
}

body.fincore-ui .marketing-page .login-card .form-control {
  min-height: var(--fc-touch);
  color: var(--fc-text);
  background: var(--fc-surface);
  border-color: var(--fc-border);
  border-radius: var(--fc-r-md);
}

@media (max-width: 800px) {
  body.fincore-ui #content {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding-top: 56px;
  }

  body.fincore-ui .navbar.menuSuperior {
    left: 0;
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 6px 12px;
  }

  body.fincore-ui .container-site {
    min-height: calc(100vh - 56px);
    padding: 16px 12px 92px !important;
  }

  body.fincore-ui #content .dashboard-page {
    gap: 12px;
  }

  body.fincore-ui #content .dashboard-page .panel {
    padding: 16px;
  }

  body.fincore-ui #content .page-lancamento .panel-soft {
    padding: 16px;
  }

  body.fincore-ui #sidebar {
    top: 56px;
    width: min(85vw, var(--fc-sidebar-w));
    min-width: min(85vw, var(--fc-sidebar-w));
    max-width: min(85vw, var(--fc-sidebar-w));
    height: calc(100vh - 56px);
  }

  body.fincore-ui #sidebar .sidebar-header {
    min-height: 92px;
  }

  body.fincore-ui .onoff {
    right: 12px;
    bottom: 78px;
  }

  body.fincore-ui .fc-mobile-bar {
    position: fixed;
    z-index: 1035;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-height: 64px;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
    background: var(--fc-surface);
    border-top: 1px solid var(--fc-border);
    box-shadow: 0 -6px 20px rgba(7, 14, 31, 0.08);
  }

  body.fincore-ui .fc-mobile-bar a {
    display: inline-flex;
    min-width: 64px;
    min-height: var(--fc-touch);
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: var(--fc-r-pill);
    color: var(--fc-text-muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }

  body.fincore-ui .fc-mobile-bar a:hover {
    color: var(--fc-text);
    background: var(--fc-bg);
  }

  body.fincore-ui .fc-mobile-bar .fc-mobile-add {
    width: 48px;
    min-width: 48px;
    height: 48px;
    color: var(--fc-night);
    background: var(--fc-lime);
    font-size: 20px;
  }

  body.fincore-ui .fc-mobile-bar .fc-mobile-add span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-width: 575px) {
  body.fincore-ui #content .fincore-cashflow-report {
    padding: 12px;
  }

  body.fincore-ui #content .fincore-beneficiary-report .benef-report-header {
    border-radius: var(--fc-r-xl);
  }

  body.fincore-ui #content .fincore-beneficiary-report .benef-report-section {
    padding: 12px;
  }

  body.fincore-ui .container-site {
    padding-inline: 10px !important;
  }

  body.fincore-ui #content :is(.table-responsive, .table-wrap, .table-wrapper) {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.fincore-ui #content .table {
    min-width: 600px;
  }

  body.fincore-ui #content .fincore-transactions {
    display: block;
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  body.fincore-ui #content .fincore-transactions thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  body.fincore-ui #content .fincore-transactions tbody {
    display: grid;
    gap: 12px;
  }

  body.fincore-ui #content .fincore-transactions tbody tr {
    display: grid;
    padding: 8px 14px;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-r-xl);
    box-shadow: var(--fc-shadow-sm);
  }

  body.fincore-ui #content .fincore-transactions tbody tr > td {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    color: var(--fc-text);
    background: transparent !important;
    border: 0;
    border-bottom: 1px solid var(--fc-border);
    text-align: right;
    overflow-wrap: anywhere;
  }

  body.fincore-ui #content .fincore-transactions tbody tr > td::before {
    flex: 0 0 34%;
    color: var(--fc-text-muted);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
    text-align: left;
  }

  body.fincore-ui #content .fincore-transactions tbody tr > td:last-child {
    align-items: center;
    border-bottom: 0;
  }

  body.fincore-ui #content .fincore-transactions tbody tr > td[colspan] {
    display: block;
    border-bottom: 0;
    text-align: center;
  }

  body.fincore-ui #content .fincore-transactions tbody tr > td[colspan]::before {
    content: none;
  }
}

@media (max-width: 767.98px) {
  body.fincore-ui #content :is(.contas-table .table-responsive, .faturas-card .table-responsive) {
    overflow: visible;
  }

  body.fincore-ui #content :is(.contas-table .table, .table-faturas) {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
  }

  body.fincore-ui :is(.contas-table thead, .table-faturas thead) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  body.fincore-ui :is(.contas-table tbody tr, .table-faturas tbody tr) {
    display: grid;
    margin: 0 12px 12px;
    padding: 8px 14px;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-r-md);
    box-shadow: var(--fc-shadow-sm);
  }

  body.fincore-ui :is(.contas-table tbody td, .table-faturas tbody td) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    text-align: right !important;
    border: 0;
    border-bottom: 1px solid var(--fc-border);
  }

  body.fincore-ui :is(.contas-table tbody td[colspan], .table-faturas tbody td[colspan]) {
    display: block;
    text-align: center !important;
    border-bottom: 0;
  }

  body.fincore-ui :is(.contas-table tbody td, .table-faturas tbody td)[data-label]::before {
    flex: 0 0 auto;
    color: var(--fc-text-muted);
    content: attr(data-label);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
  }

  body.fincore-ui :is(.contas-table tbody td, .table-faturas tbody td):last-child {
    border-bottom: 0;
  }

  body.fincore-ui :is(.contas-table tbody td[data-label="Ações"], .table-faturas tbody td[data-label="Ações"]) {
    justify-content: flex-end;
    min-height: var(--fc-touch);
  }

  body.fincore-ui :is(.contas-table tbody td[data-label="Ações"], .table-faturas tbody td[data-label="Ações"])::before {
    margin-right: auto;
  }
}

@media (max-width: 575px) {
  body.fincore-ui #content .fincore-page-heading {
    align-items: flex-start !important;
    flex-direction: column;
  }

  body.fincore-ui #content .fincore-page-heading .btn {
    width: 100%;
  }

  body.fincore-ui #content .fincore-records,
  body.fincore-ui #content .fincore-form-card,
  body.fincore-ui #content .fincore-record-filters {
    padding: 14px;
    border-radius: var(--fc-r-md);
  }

  body.fincore-ui #content .fincore-records .table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  body.fincore-ui #content .fincore-records thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body.fincore-ui #content .fincore-records tbody tr {
    display: grid;
    margin: 0 8px 10px;
    padding: 6px 12px;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-r-md);
  }

  body.fincore-ui #content .fincore-records tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    text-align: right;
    border: 0;
    border-bottom: 1px solid var(--fc-border);
  }

  body.fincore-ui #content .fincore-records tbody td[data-label]::before {
    color: var(--fc-text-muted);
    content: attr(data-label);
    font-size: .72rem;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
  }

  body.fincore-ui #content .fincore-records tbody td[data-label="Ações"] {
    min-height: var(--fc-touch);
    border-bottom: 0;
  }

  body.fincore-ui #content .fincore-records tbody td[colspan] {
    display: block;
    text-align: center;
  }
}

@media (max-width: 575px) {
  body.fincore-ui #content .fincore-operations-card .panel-body {
    padding: 12px;
  }

  body.fincore-ui #content .fincore-operation-callout,
  body.fincore-ui #content .fincore-operation-filters {
    padding: 12px;
  }

  body.fincore-ui #content .fincore-operation-search {
    width: 100%;
  }

  body.fincore-ui #content .fincore-settlement-filters,
  body.fincore-ui #content .fincore-settlement-filters > div {
    width: 100%;
  }

  body.fincore-ui #content .fincore-settlement-toolbar > .d-flex {
    width: 100%;
  }

  body.fincore-ui #content .fincore-settlement-toolbar > .d-flex .btn {
    flex: 1 1 auto;
  }

  body.fincore-ui #content .fincore-operations-card .panel-body > .d-flex > .d-flex {
    width: 100%;
  }

  body.fincore-ui #content .fincore-operations-card .panel-body > .d-flex > .d-flex .btn {
    flex: 1 1 auto;
  }

  body.fincore-ui #content .fincore-operations-page .table-responsive {
    overflow: visible;
  }

  body.fincore-ui #content .fincore-budget-card .table-responsive {
    border: 0;
  }

  body.fincore-ui #content .fincore-operations-page .table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  body.fincore-ui #content .fincore-operations-page .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body.fincore-ui #content .fincore-operations-page .table tbody tr {
    display: grid;
    margin: 0 4px 10px;
    padding: 6px 12px;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-r-md);
    box-shadow: var(--fc-shadow-sm);
  }

  body.fincore-ui #content .fincore-operations-page .table tbody tr[hidden] {
    display: none !important;
  }

  body.fincore-ui #content .fincore-operations-page .table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 9px 0;
    text-align: right;
    overflow-wrap: anywhere;
    border: 0;
    border-bottom: 1px solid var(--fc-border);
  }

  body.fincore-ui #content .fincore-operations-page .table tbody td[data-label]::before {
    flex: 0 0 auto;
    color: var(--fc-text-muted);
    content: attr(data-label);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
  }

  body.fincore-ui #content .fincore-operations-page .table tbody td[data-label="Ação"] {
    min-height: var(--fc-touch);
    border-bottom: 0;
  }

  body.fincore-ui #content .fincore-operations-page .table tbody td[colspan] {
    display: block;
    text-align: center;
    border-bottom: 0;
  }

  body.fincore-ui #content .fincore-operations-page .table tbody td[data-label="Selecionar"] {
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.fincore-ui *,
  body.fincore-ui *::before,
  body.fincore-ui *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
