.report-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  margin-bottom: 0;
}

.report-tab {
  min-height: 58px;
  border: 1px solid var(--line);
  border-bottom: 0;
  color: #344054;
  background: #fff;
  font-weight: 800;
  text-transform: uppercase;
}

.report-tab.active {
  color: #3b16a3;
  border-top: 3px solid #3b16a3;
  box-shadow: var(--shadow);
}

.report-panel {
  margin-bottom: 18px;
}

.report-filters {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  margin-bottom: 18px;
}

.reports-table {
  min-width: 1660px;
}

.reports-table.receivable-risk-table {
  min-width: 1180px;
}

.receivable-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.receivable-risk-table td,
.receivable-risk-table th {
  white-space: nowrap;
}

.receivable-client-title td {
  padding-top: 18px;
  color: var(--navy);
  background: #fff;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.receivable-client-header td {
  color: #fff;
  background: var(--navy);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.risk-pill.low {
  color: var(--green);
  background: var(--soft-green);
}

.risk-pill.medium {
  color: #a16207;
  background: #fff6df;
}

.risk-pill.high {
  color: var(--orange);
  background: #fff4e8;
}

.risk-pill.critical {
  color: var(--red);
  background: var(--soft-red);
}

.reports-table td:first-child {
  font-weight: 800;
}

.reports-table tr.report-row-negative td {
  background: var(--soft-red);
}

.reports-table tr.report-row-synthetic td {
  background: #f7f9fc;
  font-weight: 900;
}

.reports-table tr.report-row-synthetic td.report-positive {
  color: var(--navy);
  background: #f7f9fc;
}

.reports-table tr.report-row-calculation td {
  background: #fff8e6;
  color: #8a5b00;
  font-weight: 900;
}

.reports-table .report-indent-1 {
  padding-left: 26px;
}

.reports-table .report-indent-2 {
  padding-left: 42px;
}

.reports-table .report-indent-3 {
  padding-left: 58px;
}

.report-positive {
  color: var(--green);
  background: var(--soft-green);
  font-weight: 800;
}

.report-negative {
  color: var(--red);
  background: var(--soft-red);
  font-weight: 800;
}

.account-group {
  display: inline-flex;
  border-radius: 6px;
  padding: 5px 9px;
  color: var(--blue);
  background: var(--soft-blue);
  font-size: 12px;
  font-weight: 800;
}

.account-nature,
.account-status {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 6px;
  padding: 5px 9px;
  color: var(--green);
  background: var(--soft-green);
  font-size: 12px;
  font-weight: 800;
}

.account-nature.expense {
  color: var(--red);
  background: var(--soft-red);
}

.account-nature.synthetic {
  color: #1d2b3a;
  background: #eef2f7;
}

.fixed-account-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 6px;
  padding: 5px 10px;
  color: #9a6a00;
  background: #fff8df;
  font-size: 12px;
  font-weight: 800;
}

.accounts-table tr.synthetic-row td {
  background: #f7f9fc;
  font-weight: 800;
}

.accounts-table tr.analytic-row td:first-child {
  padding-left: 28px;
}

.account-status.inactive {
  color: var(--red);
  background: var(--soft-red);
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.small-action {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--navy);
  background: #fff;
  font-weight: 800;
}

.other-panel {
  display: none;
}

.other-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.other-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.other-card-header {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: 42px;
  color: #fff;
  background: #6d36b4;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.other-card-header input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 0;
  color: #fff;
  background: transparent;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.other-card-header input::placeholder {
  color: rgba(255, 255, 255, 0.75);
}

.other-list {
  display: grid;
}

.other-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  min-height: 38px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  text-align: center;
}

.other-actions {
  justify-content: center;
}

.other-row strong {
  font-size: 13px;
  padding: 0 10px;
}

.other-row span {
  color: #344054;
}

.inline-add-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
}


.bank-card {
  min-height: 98px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bank-card small,
.bank-card span {
  display: block;
}

.bank-card small {
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.bank-card strong {
  color: var(--navy-2);
  font-size: 18px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  text-transform: none;
}

.table-heading {
  align-items: flex-end;
}

.legend {
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 999px;
}

.income-dot {
  background: var(--green);
}

.expense-dot {
  background: var(--red);
}

.table-wrap {
  overflow-x: auto;
}

/* Scrollbar espelhada no topo da tabela */
.table-scroll-top {
  overflow-x: auto;
  overflow-y: hidden;
  height: 12px;
  margin-bottom: 2px;
}

.table-scroll-top > div {
  height: 1px;
}

.table-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 14px 0 0;
}

.table-pagination.hidden {
  display: none;
}

.table-pagination span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.table-pagination button {
  min-height: 38px;
}

.table-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

table {
  width: 100%;
  min-width: 1800px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #fff;
  background: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
}

td.number,
th.number {
  text-align: right;
}

.tag,
.status {
  display: inline-flex;
  align-items: center;
  min-width: 78px;
  justify-content: center;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.tag.receita {
  color: var(--green);
  background: var(--soft-green);
}

.tag.despesa {
  color: var(--red);
  background: var(--soft-red);
}

.tag.transferencia {
  color: var(--blue);
  background: var(--soft-blue);
}

.status.pago {
  color: var(--green);
  background: var(--soft-green);
}

.status.pendente {
  color: var(--orange);
  background: #fff4e8;
}

.status.vencido {
  color: var(--red);
  background: var(--soft-red);
}

.status.parcial {
  color: #7c3aed;
  background: #ede9fe;
}

.status-select {
  min-height: 30px;
  min-width: 110px;
  border: 0;
  border-radius: 6px;
  padding: 5px 28px 5px 9px;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

.status-select.pago {
  color: var(--green);
  background: var(--soft-green);
}

.status-select.pendente {
  color: var(--orange);
  background: #fff4e8;
}

.status-select.vencido {
  color: var(--red);
  background: var(--soft-red);
}

.status-select.parcial {
  color: #7c3aed;
  background: #ede9fe;
}

.entry-dialog {
