/* =========================================================
   REGION: FINANCEIRO
   ========================================================= */
.financeiro-clientes-page {
  padding-bottom: 2rem;
}

.financeiro-clientes-page .vendas-clientes-table-wrapper { margin-top: 0; }
.financeiro-clientes-active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.financeiro-clientes-active-filters:empty { display: none; }
.financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao tbody td {
  font-weight: 400;
}
.financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao .fat-tree-name,
.financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao .fat-tree-share-volume {
  font-weight: 700;
}
.financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao tbody {
  gap: 8px;
}
.financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao tbody tr:not(.d-none) {
  padding: 12px 14px;
  border-color: #dbe3ea !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.financeiro-cliente-fantasia-desktop { display: none; }

@media (min-width: 993px) {
  .financeiro-clientes-page .vendas-clientes-table-wrapper:has(.vendas-clientes-table) {
    overflow-x: auto;
  }
  .financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao {
    display: table;
    width: 100% !important;
    min-width: 1080px;
    table-layout: fixed;
  }
  .financeiro-clientes-col-codigo { width: 9%; }
  .financeiro-clientes-col-documento { width: 12%; }
  .financeiro-clientes-col-razao { width: 29%; }
  .financeiro-clientes-col-cidade { width: 14%; }
  .financeiro-clientes-col-vendedor { width: 12%; }
  .financeiro-clientes-col-contato { width: 15%; }
  .financeiro-clientes-col-telefone { width: 9%; }
  .financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao thead {
    display: table-header-group;
  }
  .financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao tbody {
    display: table-row-group;
  }
  .financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao tr,
  .financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao tbody tr:not(.d-none) {
    display: table-row !important;
    width: auto !important;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
  }
  .financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao tbody tr:not(.d-none)::before {
    display: none;
  }
  .financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao th,
  .financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao td {
    display: table-cell !important;
    width: auto !important;
    padding: .65rem .75rem !important;
    border: 1px solid #dee2e6;
    vertical-align: middle;
    white-space: nowrap;
  }
  .financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao td > .scroll-col {
    width: 100%;
    max-width: 100%;
  }
  .financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao th { position: relative; }
  .financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao .faturamento-grid-filter-trigger {
    display: none;
  }
  .financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao .financeiro-cliente-fantasia-mobile {
    display: none !important;
  }
  .financeiro-clientes-page .vendas-clientes-table.table--faturamento-participacao .fat-tree-share-volume {
    font-weight: 600;
  }
  .financeiro-cliente-fantasia-desktop {
    display: block;
    margin-top: .2rem;
    color: #64748b;
    font-size: .76rem;
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
  }
}

.pedidos-dis-titulos-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 20px 14px;
}
.pedidos-dis-titulos-summary.d-none { display: none; }
.pedidos-dis-titulos-summary > div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #f8fafc;
}
.pedidos-dis-titulos-summary span { color: #64748b; font-size: .75rem; font-weight: 600; }
.pedidos-dis-titulos-summary strong { color: #172033; font-size: 1rem; font-weight: 700; }
.pedidos-dis-titulos-summary [data-pedido-titulos-total-atrasado].is-overdue { color: #dc3545; }
.pedidos-dis-titulos-summary [data-pedido-titulos-total-atrasado].is-zero { color: #172033; }
.pedidos-dis-titulos-summary [data-pedido-titulos-saldo].contas-receber-saldo-credor { color: #198754; }
.pedidos-dis-titulos-summary [data-pedido-titulos-saldo].contas-receber-saldo-devedor { color: #dc3545; }
.pedidos-dis-titulos-summary [data-pedido-titulos-saldo].contas-receber-saldo-zero { color: #172033; }

@media (max-width: 576px) {
  .pedidos-dis-titulos-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 12px 12px; gap: 7px; }
}

.financeiro-page {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

.financeiro-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.financeiro-header h1 {
  margin: 0;
  text-align: left;
}

.financeiro-header p {
  margin: .25rem 0 0;
  color: #64748b;
  font-weight: 700;
}

.financeiro-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 180px)) auto auto;
  gap: .65rem;
  align-items: end;
  margin-bottom: 0;
}

.financeiro-filter-step {
  display: flex;
}

.financeiro-filter-action {
  display: flex;
  align-items: end;
}

.financeiro-panel-grid {
  display: grid;
  grid-template-columns: minmax(240px, .65fr) minmax(540px, 1.65fr);
  gap: 1rem;
  align-items: stretch;
}

.financeiro-summary,
.financeiro-report-config {
  border: 1px solid #e8ebef;
  border-radius: 8px;
  background: #fff;
}

.financeiro-report-config {
  padding: 1rem;
}

.financeiro-report-form {
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: flex-start;
  margin: .65rem 0 .75rem;
}

.financeiro-report-action {
  display: flex;
  align-items: end;
}

.financeiro-report-action .btn-primary:disabled {
  color: #000;
  background-color: var(--button-bc);
  border-color: transparent;
  opacity: .65;
}

.financeiro-month-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .9rem;
}

.financeiro-report-months-navigator {
  align-items: center;
  margin-left: auto;
}

.financeiro-report-months-navigator .period-navigator__button {
  padding: 0;
  border: 0;
  background: transparent;
}

.financeiro-report-months-navigator button.period-navigator__button:not(.is-disabled) {
  cursor: pointer;
}

.financeiro-month-card {
  display: grid;
  gap: .15rem;
  padding: .65rem .75rem;
  border: 1px solid #e3e8ef;
  border-radius: 8px;
  background: #f8fafc;
  text-align: left;
  cursor: pointer;
}

.financeiro-month-card[hidden] {
  display: none;
}

.financeiro-month-card:hover,
.financeiro-month-card:focus {
  border-color: #cbd5e1;
  background: #f1f5f9;
  outline: 0;
}

.financeiro-month-card span {
  color: #475569;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0;
}

.financeiro-month-card strong {
  color: #0f172a;
  font-size: .95rem;
  line-height: 1.15;
  white-space: nowrap;
}

.financeiro-month-card small {
  color: #64748b;
  font-size: .72rem;
}

.financeiro-report-target-toggle {
  margin: 0;
}

.financeiro-report-target-toggle button[value="alvo"].is-active {
  color: #146c43;
  background: #eaf7ef;
}

.financeiro-report-target-toggle button[value="referencia"].is-active {
  color: #8a5a00;
  background: #fff3cd;
}

.financeiro-month-card.is-report-target {
  border-color: #8fd3a8;
  background: #eaf7ef;
}

.financeiro-month-card.is-report-reference {
  border-color: #ffd966;
  background: #fff3cd;
}

.financeiro-report-page {
  background: #f4f4f4;
  font-family: Arial, Helvetica, sans-serif;
}

.financeiro-report-document {
  align-items: stretch;
}

.financeiro-report-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid #e8ebef;
  padding-bottom: 1rem;
}

.financeiro-report-toolbar h1 {
  margin: 0;
  text-align: left;
  font-size: 1.65rem;
}

.financeiro-report-toolbar p {
  margin: .35rem 0 0;
  color: #64748b;
  font-weight: 600;
}

.financeiro-report-toolbar-actions {
  display: flex;
  gap: .5rem;
}

.financeiro-report-section {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid #e8ebef;
  border-radius: 8px;
  background: #fff;
}

.financeiro-report-section h2 {
  margin: 0 0 .75rem;
  font-size: 1rem;
  text-align: left;
}

.financeiro-report-table {
  margin-bottom: 0;
}

.financeiro-report-table th,
.financeiro-report-table td {
  font-size: .85rem;
  padding: .25rem .4rem;
  line-height: 1.15;
}

.financeiro-report-table tfoot th {
  background: #f8fafc;
}

.financeiro-report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .5rem;
  margin-bottom: 1rem;
}

.financeiro-report-summary-item {
  min-width: 0;
  padding: .4rem .55rem;
  border: 1px solid #d9dee5;
  background: #fff;
}

.financeiro-report-summary-item span {
  display: block;
  color: #64748b;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.1;
}

.financeiro-report-summary-item strong {
  display: block;
  margin-top: .15rem;
  color: #000;
  font-size: .95rem;
  line-height: 1.1;
  white-space: nowrap;
}

.financeiro-pivot-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 1rem;
  align-items: start;
}

.financeiro-pivot-panel {
  min-width: 0;
}

.financeiro-pivot-title {
  margin-bottom: .25rem;
  color: #0f172a;
  font-size: .9rem;
  font-weight: 700;
}

.financeiro-pivot-table {
  table-layout: fixed;
}

.financeiro-pivot-table th:first-child,
.financeiro-pivot-table td:first-child {
  width: 72%;
}

.financeiro-pivot-table th:last-child,
.financeiro-pivot-table td:last-child {
  width: 28%;
  white-space: nowrap;
}

.financeiro-pivot-category td {
  background: #d9d9d9 !important;
  color: #000;
  font-weight: 800;
}

.financeiro-pivot-subcategory td:first-child {
  padding-left: 1.65rem;
}

.financeiro-pivot-table tfoot th {
  background: #fff !important;
  color: #000;
  font-weight: 800;
}

.financeiro-weekly-table {
  min-width: 760px;
}

.financeiro-weekly-table thead th {
  background: #d9d9d9 !important;
  color: #000;
  font-weight: 800;
}

.financeiro-weekly-table td:first-child,
.financeiro-weekly-table th:first-child {
  min-width: 260px;
}

.financeiro-weekly-table td:not(:first-child),
.financeiro-weekly-table th:not(:first-child) {
  white-space: nowrap;
}

.financeiro-weekly-table tfoot th {
  background: #d9d9d9 !important;
  color: #000;
  font-weight: 800;
}

.financeiro-summary-table thead th {
  background: #d9d9d9 !important;
  color: #000;
  font-weight: 800;
}

.financeiro-summary-table th,
.financeiro-summary-table td {
  padding: .25rem .4rem;
  font-size: .8rem;
  line-height: 1.15;
}

.financeiro-summary-table th:first-child,
.financeiro-summary-table td:first-child {
  width: 64%;
}

.financeiro-summary-table td:last-child,
.financeiro-summary-table th:last-child {
  width: 36%;
  white-space: nowrap;
}

.financeiro-summary-table tfoot th {
  background: #d9d9d9 !important;
  color: #000;
  font-weight: 800;
}

.financeiro-report-detail-trigger {
  cursor: pointer;
}

.financeiro-report-detail-trigger:hover > td,
td.financeiro-report-detail-trigger:hover {
  background: #f3f3f3 !important;
}

.financeiro-report-detail-trigger:focus-visible {
  outline: 2px solid rgba(108, 117, 125, .45);
  outline-offset: -2px;
}

body.financeiro-report-detail-open {
  overflow: hidden;
}

.financeiro-report-detail-modal {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.financeiro-report-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .36);
}

.financeiro-report-detail-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(680px, calc(100vh - 36px));
  display: flex;
  flex-direction: column;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
  overflow: hidden;
}

.financeiro-report-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e6ebf1;
}

.financeiro-report-detail-header h5 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.financeiro-report-detail-count,
.financeiro-report-detail-compare {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.1;
}

.financeiro-report-detail-compare {
  color: #334155;
}

.financeiro-report-detail-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #475569;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.financeiro-report-detail-close:hover {
  background: #eee;
  color: #000;
}

.financeiro-report-detail-body {
  min-height: 0;
  padding: 12px;
  overflow: auto;
}

.financeiro-report-detail-table {
  margin-bottom: 0;
}

.financeiro-report-detail-table th,
.financeiro-report-detail-table td {
  font-size: .86rem;
}

.financeiro-report-detail-table thead th,
.financeiro-report-detail-table tfoot th {
  background: #d9d9d9 !important;
  color: #000;
  font-weight: 800;
}

.financeiro-report-detail-table tfoot th {
  border-top-color: #c9c9c9;
}

.financeiro-mini-report-table {
  table-layout: fixed;
  width: 100%;
}

.financeiro-mini-report-table .financeiro-mini-item-col {
  width: 62%;
}

.financeiro-mini-report-table .financeiro-mini-total-col {
  width: 38%;
}

.financeiro-mini-report-table th:nth-child(2),
.financeiro-mini-report-table td:nth-child(2) {
  text-align: right !important;
  white-space: nowrap;
}

.financeiro-mini-report-table th:first-child,
.financeiro-mini-report-table td:first-child {
  overflow-wrap: anywhere;
}

.financeiro-detail-table thead th {
  background: #d9d9d9 !important;
  color: #000;
  font-weight: 800;
}

.financeiro-detail-table th,
.financeiro-detail-table td {
  vertical-align: top;
}

.financeiro-detail-table th:nth-child(1),
.financeiro-detail-table td:nth-child(1),
.financeiro-detail-table th:nth-child(2),
.financeiro-detail-table td:nth-child(2) {
  white-space: nowrap;
}

.financeiro-detail-table td:nth-child(7) {
  min-width: 220px;
}

.financeiro-report-two-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.financeiro-report-two-cols > .financeiro-report-section {
  min-width: 0;
}

.financeiro-report-positive {
  color: #146c43 !important;
}

.financeiro-report-negative {
  color: #b42318 !important;
}

.financeiro-report-share {
  position: relative;
  min-width: 160px;
  height: 24px;
  overflow: hidden;
  border-radius: 6px;
  background: #eef2f7;
}

.financeiro-report-share span {
  position: absolute;
  inset: 0 auto 0 0;
  background: #bde5c8;
}

.financeiro-report-share strong {
  position: relative;
  z-index: 1;
  display: block;
  padding: 3px 8px;
  color: #0f172a;
  font-size: .78rem;
  text-align: right;
}

.table--financeiro {
  min-width: 1480px;
}

.table--financeiro th,
.table--financeiro td {
  font-size: .9rem;
  text-align: center;
}

.table--financeiro .financeiro-filterable-head {
  position: relative;
  cursor: pointer;
  user-select: none;
  padding-right: 1.65rem;
}

.table--financeiro .financeiro-filterable-head > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.financeiro-head-filter {
  position: absolute;
  top: 50%;
  right: .35rem;
  width: 1.1rem;
  height: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #6c757d;
  font-size: .85rem;
  line-height: 1;
  transform: translateY(-50%);
}

.table--financeiro .financeiro-filterable-head:hover .financeiro-head-filter,
.table--financeiro .financeiro-filterable-head.is-open .financeiro-head-filter,
.table--financeiro .financeiro-filterable-head.is-filtered .financeiro-head-filter,
.table--financeiro .financeiro-filterable-head.is-sorted .financeiro-head-filter {
  background: rgba(13, 110, 253, .1);
  color: #0d6efd;
}

.table--financeiro .financeiro-filterable-head.is-filtered,
.table--financeiro .financeiro-filterable-head.is-sorted {
  box-shadow: inset 0 -2px 0 rgba(13, 110, 253, .45);
}

.table--financeiro .financeiro-data {
  width: 122px;
}

.table--financeiro .financeiro-select {
  min-width: 155px;
}

.table--financeiro .financeiro-short {
  width: 112px;
}

.table--financeiro .financeiro-check,
.table--financeiro .financeiro-info {
  width: 76px;
}

.table--financeiro .financeiro-valor {
  width: 130px;
}

.table--financeiro .financeiro-action-head,
.table--financeiro .financeiro-delete-cell {
  width: 46px;
  min-width: 46px;
  max-width: 46px;
  text-align: center;
}

.table--financeiro .financeiro-action-head,
.table--financeiro td.financeiro-delete-cell {
  border-left: 1px solid #dee2e6 !important;
  border-top: hidden !important;
  border-right: hidden !important;
  border-bottom: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}

.table--financeiro.table-bordered > :not(caption) > * > .financeiro-action-head,
.table--financeiro.table-bordered > :not(caption) > * > td.financeiro-delete-cell {
  border-left: 1px solid #dee2e6 !important;
  border-top: hidden !important;
  border-right: hidden !important;
  border-bottom: hidden !important;
  background: transparent !important;
  box-shadow: none !important;
}

.table--financeiro .financeiro-action-head {
  padding: 0 !important;
}

.table--financeiro td.financeiro-delete-cell {
  position: relative;
  padding: 0 6px !important;
  text-align: center !important;
  vertical-align: middle;
}

.table--financeiro .financeiro-row-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-btn-size);
  height: var(--icon-btn-size);
  padding: 0;
  border: 1px solid #198754 !important;
  border-radius: var(--icon-btn-radius);
  color: #198754;
  background: transparent;
  font-size: 0;
  line-height: 1;
  text-decoration: none !important;
}

.table--financeiro .financeiro-row-import-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-btn-size);
  height: var(--icon-btn-size);
  padding: 0;
  border: 1px solid #f0b429 !important;
  border-radius: var(--icon-btn-radius);
  color: #8a5a00 !important;
  background: transparent;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
}

.table--financeiro .financeiro-row-import-pending:hover,
.table--financeiro .financeiro-row-import-pending:focus {
  border-color: #d99a00 !important;
  background: transparent;
  color: #6b4500 !important;
}

.table--financeiro .financeiro-row-save::before {
  content: "\2713";
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.table--financeiro .financeiro-check .form-check-input {
  width: 1.3em;
  height: 1.3em;
}

.table--financeiro .financeiro-observacao {
  min-width: 180px;
}

.table--financeiro .financeiro-inline-control {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0 !important;
  border-radius: 0;
  color: inherit;
  background: transparent !important;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: center;
  outline: none !important;
  box-shadow: none !important;
}

.table--financeiro select.financeiro-inline-control {
  padding-right: 1.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.financeiro-page .form-select,
.financeiro-config-modal .form-select {
  padding-right: 2rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table--financeiro .financeiro-inline-control:focus {
  box-shadow: inset 0 -2px 0 rgba(13, 110, 253, .25) !important;
}

.financeiro-draft-row td {
  vertical-align: middle;
}

.financeiro-draft-row .financeiro-inline-control {
  min-width: 95px;
}

.financeiro-row-actions {
  display: flex;
  gap: .35rem;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.financeiro-load-more {
  margin: 1rem 0 0;
}

.financeiro-column-filter {
  position: fixed;
  z-index: 1090;
  width: min(320px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  padding: .75rem;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
  overflow: hidden;
}

body.financeiro-filter-open {
  overflow: hidden;
}

body.financeiro-filter-open:has(.financeiro-column-filter.is-responsive-modal)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1089;
  background: rgba(15, 23, 42, .35);
}

.financeiro-column-filter-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .5rem;
}

.financeiro-column-filter-title {
  font-weight: 600;
  line-height: 1.2;
  color: #212529;
}

.financeiro-column-filter-back {
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
}

.financeiro-column-filter-back::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: -.1rem;
  border-top: .34rem solid transparent;
  border-bottom: .34rem solid transparent;
  border-right: .48rem solid currentColor;
}

.financeiro-column-filter.is-responsive-modal {
  left: 50% !important;
  top: 50% !important;
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  transform: translate(-50%, -50%);
}

.financeiro-column-filter-list {
  max-height: 220px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  margin: .5rem 0;
  padding-right: .15rem;
}

.financeiro-column-filter-option {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 28px;
  padding: .2rem .1rem;
  cursor: pointer;
}

.financeiro-column-filter-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.financeiro-column-filter-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: .3rem;
  margin-top: .65rem;
}

.financeiro-column-filter-actions .btn {
  padding-inline: .5rem;
  font-size: .8125rem;
  white-space: nowrap;
}

.financeiro-column-sort-row {
  display: flex;
  justify-content: flex-start;
  gap: .5rem;
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px solid #edf1f5;
}

.financeiro-column-clear-all-row {
  display: flex;
  justify-content: flex-end;
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px solid #edf1f5;
}

.financeiro-grid-filters {
  display: none;
}

.financeiro-cell-filter-trigger {
  display: none;
}

@media (max-width: 1700px) {
  .financeiro-grid-filters {
    display: none;
  }

  .financeiro-grid-filter-open,
  .financeiro-grid-filter-trigger {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: .35rem;
    padding: .38rem .5rem;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
    background: #fff;
    color: #495057;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    cursor: pointer;
  }

  .financeiro-grid-filter-open {
    width: auto;
  }

  .financeiro-grid-filter-body .financeiro-grid-filter-trigger {
    width: 100%;
  }

  .financeiro-grid-filter-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .financeiro-grid-filter-open span:first-child,
  .financeiro-grid-filter-trigger span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .financeiro-grid-filter-icon {
    flex: 0 0 auto;
    color: #6c757d;
    font-size: .82rem;
  }

  .financeiro-grid-filter-open:hover,
  .financeiro-grid-filter-open:focus-visible,
  .financeiro-grid-filter-open.is-filtered,
  .financeiro-grid-filter-trigger:hover,
  .financeiro-grid-filter-trigger:focus-visible,
  .financeiro-grid-filter-trigger.is-filtered,
  .financeiro-grid-filter-trigger.is-sorted {
    border-color: rgba(13, 110, 253, .35);
    background: rgba(13, 110, 253, .06);
    color: #0d6efd;
    outline: none;
  }

  .financeiro-grid-filter-open.is-filtered,
  .financeiro-grid-filter-trigger.is-filtered,
  .financeiro-grid-filter-trigger.is-sorted {
    box-shadow: inset 0 -2px 0 rgba(13, 110, 253, .4);
  }
}

.financeiro-grid-filter-modal {
  position: fixed;
  inset: 0;
  z-index: 1085;
}

.financeiro-grid-filter-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .35);
}

.financeiro-grid-filter-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .22);
  overflow: hidden;
}

.financeiro-grid-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid #edf1f5;
}

.financeiro-grid-filter-header h5 {
  margin: 0;
  font-size: 1rem;
}

.financeiro-grid-filter-close {
  border: 0;
  background: transparent;
  color: #6c757d;
  font-size: 1.35rem;
  line-height: 1;
}

.financeiro-grid-filter-body {
  padding: 1rem;
  overflow: auto;
}

.financeiro-grid-filter-footer {
  display: flex;
  justify-content: flex-end;
  padding: .75rem 1rem;
  border-top: 1px solid #edf1f5;
}

body.financeiro-grid-filter-modal-open {
  overflow: hidden;
}

@media (max-width: 1700px) {
  .table--financeiro {
    min-width: 0 !important;
    margin-bottom: 0;
  }

  .table--financeiro thead {
    display: none;
  }

  .table--financeiro,
  .table--financeiro tbody,
  .table--financeiro tr,
  .table--financeiro td {
    display: block;
    width: 100% !important;
  }

  .table--financeiro tbody {
    display: grid;
    gap: 12px;
    padding: 0;
    border-top: 0;
  }

  .table--financeiro tbody tr {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(14, minmax(0, 1fr));
    gap: 8px 10px;
    padding: 14px;
    border: 1px solid #dee2e6 !important;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
    overflow: hidden;
  }

  .table--financeiro tbody tr::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: transparent;
    transition: background-color .15s ease;
  }

  .table--financeiro tbody tr:hover::before {
    background: rgba(248, 250, 252, .55);
  }

  .table--financeiro.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: transparent;
    background-color: transparent !important;
  }

  .table--financeiro tbody td {
    position: relative;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
    text-align: left !important;
  }

  .table--financeiro #despesasEmptyRow td {
    grid-column: 1 / -1;
    text-align: center !important;
  }

  .table--financeiro td[data-label]:not(.financeiro-delete-cell) {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    color: #212529;
    font-size: .84rem;
    font-weight: 400;
    line-height: 1.2;
  }

  .table--financeiro td[data-label]:not(.financeiro-delete-cell)::before {
    content: attr(data-label);
    display: block;
    color: #64748b;
    font-size: .78rem;
    font-weight: 400;
    line-height: 1.1;
  }

  .table--financeiro td.has-grid-filter::before {
    content: none !important;
  }

  .table--financeiro .financeiro-cell-filter-trigger {
    display: flex;
    width: max-content;
    max-width: 100%;
    align-items: center;
    gap: .25rem;
    margin: 0 0 2px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6c757d;
    font-size: .7rem;
    font-weight: 400;
    line-height: 1.1;
    text-align: left;
  }

  .table--financeiro .financeiro-cell-filter-trigger span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .table--financeiro .financeiro-cell-filter-caret {
    flex: 0 0 auto;
    font-size: .76rem;
    line-height: 1;
  }

  .table--financeiro .financeiro-cell-filter-trigger:hover,
  .table--financeiro .financeiro-cell-filter-trigger:focus-visible,
  .table--financeiro .financeiro-cell-filter-trigger.is-filtered,
  .table--financeiro .financeiro-cell-filter-trigger.is-sorted {
    color: #0d6efd;
    outline: none;
  }

  .table--financeiro .financeiro-inline-control {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 31px;
    padding: 4px 7px;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px;
    background: #fff !important;
    font-weight: 400;
    text-align: left;
  }

  .table--financeiro .financeiro-valor .financeiro-inline-control,
  .table--financeiro .financeiro-data .financeiro-inline-control,
  .table--financeiro td[data-label="Categoria"] .financeiro-inline-control {
    font-weight: 700;
  }

  .table--financeiro input[type="date"].financeiro-inline-control {
    appearance: none;
    -webkit-appearance: none;
  }

  .table--financeiro select.financeiro-inline-control {
    padding-left: 6px;
  }

  .table--financeiro .financeiro-valor { grid-column: span 2; order: 1; }
  .table--financeiro .financeiro-data { grid-column: span 2; order: 2; }
  .table--financeiro td[data-label="Categoria"] { grid-column: span 3; order: 3; }
  .table--financeiro td[data-label="Subcategoria"] { grid-column: span 3; order: 4; }
  .table--financeiro td[data-label="Responsavel"] { grid-column: span 3; order: 5; }
  .table--financeiro td[data-label="Centro de Custo"] { grid-column: span 4; order: 7; }
  .table--financeiro td[data-label="Natureza"] { grid-column: span 2; order: 8; }
  .table--financeiro td[data-label="Comp."] { grid-column: span 2; order: 9; }
  .table--financeiro td[data-label="Rec."] { grid-column: span 1; order: 10; }
  .table--financeiro .financeiro-observacao {
    grid-column: span 5;
    order: 11;
  }

  .table--financeiro td[data-label="Rec."] {
    align-items: flex-start;
  }

  .table--financeiro td[data-label="Rec."] .form-check-input {
    width: 28px;
    height: 28px;
    margin: 0;
    border: 1px solid #e6ebf1;
    border-radius: 6px;
    background-size: 16px 16px;
  }

  .table--financeiro td.financeiro-delete-cell {
    display: flex;
    grid-column: span 1;
    align-items: flex-start;
    justify-content: flex-end;
    align-self: start;
    order: 6;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    border: 0 !important;
  }

  .table--financeiro.table-bordered > :not(caption) > * > td.financeiro-delete-cell {
    border-left: 0 !important;
  }
}

@media (max-width: 767.98px) {
  .table-wrapper:has(.table--financeiro) {
    padding-right: 0;
    padding-left: 0;
    overflow: visible;
  }

  .table--financeiro tbody tr {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .table--financeiro .financeiro-valor { grid-column: span 5; order: 1; }
  .table--financeiro .financeiro-data { grid-column: span 5; order: 2; }
  .table--financeiro td.financeiro-delete-cell {
    grid-column: span 2;
    align-items: flex-start;
    align-self: start;
    order: 3;
  }
  .table--financeiro td[data-label="Categoria"] { grid-column: 1 / -1; order: 4; }
  .table--financeiro td[data-label="Subcategoria"] { grid-column: 1 / -1; order: 5; }
  .table--financeiro td[data-label="Responsavel"] { grid-column: 1 / -1; order: 6; }
  .table--financeiro td[data-label="Centro de Custo"] { grid-column: 1 / -1; order: 7; }
  .table--financeiro td[data-label="Natureza"] { grid-column: span 4; order: 8; }
  .table--financeiro td[data-label="Comp."] { grid-column: span 4; order: 9; }
  .table--financeiro td[data-label="Rec."] { grid-column: span 4; order: 10; }
  .table--financeiro .financeiro-observacao { grid-column: 1 / -1; order: 11; }
}

@media (max-width: 430px) {
  .table--financeiro tbody tr {
    gap: 12px;
  }

  .table--financeiro .financeiro-valor {
    grid-column: span 10;
    order: 1;
  }

  .table--financeiro td.financeiro-delete-cell {
    grid-column: span 2;
    order: 2;
  }

  .table--financeiro .financeiro-data {
    grid-column: span 12;
    order: 3;
  }
}

body.financeiro-config-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.financeiro-table-toolbar {
  display: flex;
  justify-content: center;
  margin: .35rem 0 .75rem;
}

.financeiro-period-title {
  justify-content: flex-start;
  margin: 1rem 0 .35rem;
}

.financeiro-period-title strong {
  flex: 0 1 auto;
}

.financeiro-table-toolbar .search-wrap {
  width: min(100%, 560px);
  max-width: 560px;
  flex: 1 1 560px;
}

.financeiro-table-toolbar .form-control {
  width: 100%;
  border-color: #dbe2ea;
  border-radius: 8px;
}

.financeiro-config-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overscroll-behavior: contain;
  padding: 1rem;
}

.financeiro-config-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .42);
}

.financeiro-config-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 96vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .2);
  overscroll-behavior: contain;
}

.financeiro-import-a7-dialog {
  width: min(1280px, calc(100vw - 28px));
}

.financeiro-import-a7-dialog [type="submit"] {
  justify-self: center;
  width: auto;
}

.financeiro-import-a7-body {
  grid-template-columns: minmax(420px, .9fr) minmax(560px, 1.1fr);
}

.financeiro-config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid #edf0f3;
}

.financeiro-config-header h5 {
  margin: 0;
}

.financeiro-config-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.financeiro-config-close {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.financeiro-config-body {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(360px, 1.3fr);
  gap: 1rem;
  min-height: 0;
  padding: 1rem;
}

.financeiro-config-body--single {
  grid-template-columns: 1fr;
}

.financeiro-config-status:empty {
  display: none;
}

.financeiro-config-search {
  border-color: #dbe2ea;
  border-radius: 8px;
}

.financeiro-config-search-wrap {
  max-width: none;
  width: 100%;
  flex: 0 0 auto;
}

.financeiro-config-empty {
  padding: .8rem;
  color: #667085;
}

.financeiro-config-form {
  display: grid;
  gap: .6rem;
  align-content: start;
}

.financeiro-config-list-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: .6rem;
  min-height: 0;
}

.financeiro-config-check {
  display: flex;
  gap: .45rem;
  align-items: center;
  margin: .25rem 0;
}

.financeiro-config-list {
  min-height: 0;
  max-height: 62vh;
  overflow: auto;
  border: 1px solid #edf0f3;
  border-radius: 8px;
}

.financeiro-config-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .75rem;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
  text-align: left;
}

.financeiro-config-row:hover,
.financeiro-config-row:focus {
  background: #f6f8fb;
  outline: 0;
}

.financeiro-config-row span {
  display: grid;
  gap: .1rem;
}

.financeiro-config-row small {
  color: #212529;
}

.financeiro-config-row strong {
  color: #667085;
  font-size: .78rem;
}

.financeiro-config-row .financeiro-config-code {
  color: #5680a7;
  font-size: .86rem;
  font-weight: 700;
}

.financeiro-import-result-list {
  display: grid;
  gap: .45rem;
  max-height: 320px;
  overflow: auto;
}

.financeiro-import-result-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .65rem;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  background: #fff;
}

.financeiro-import-result-row span {
  display: grid;
  gap: .12rem;
  min-width: 0;
}

.financeiro-import-result-row strong,
.financeiro-import-result-row small {
  overflow-wrap: anywhere;
}

.financeiro-import-result-row strong {
  color: #0f172a;
  font-size: .9rem;
}

.financeiro-import-result-row small {
  color: #667085;
  font-size: .76rem;
}

.financeiro-import-result-row em {
  flex: 0 0 auto;
  padding: .18rem .42rem;
  border-radius: 999px;
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.financeiro-import-result-row em.is-ok {
  color: #146c43;
  background: #eaf7ef;
}

.financeiro-import-result-row em.is-skip {
  color: #495057;
  background: #eef2f7;
}

.financeiro-import-result-row em.is-error {
  color: #b42318;
  background: #fff1f2;
}

.financeiro-import-history {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: .5rem;
  min-height: 0;
}

.financeiro-import-history-title {
  color: #0f172a;
  font-size: .9rem;
  font-weight: 800;
}

.financeiro-import-history-list {
  display: grid;
  align-content: start;
  gap: .45rem;
  max-height: 430px;
  overflow: auto;
  padding-right: .15rem;
}

.financeiro-import-history-row,
.financeiro-import-history-empty {
  padding: .55rem .65rem;
  border: 1px solid #edf0f3;
  border-radius: 8px;
  background: #fff;
}

.financeiro-import-history-row span {
  display: grid;
  gap: .12rem;
}

.financeiro-import-history-row strong {
  color: #0f172a;
  font-size: .88rem;
}

.financeiro-import-history-row small,
.financeiro-import-history-empty {
  color: #667085;
  font-size: .76rem;
  overflow-wrap: anywhere;
}

.financeiro-import-history-more {
  justify-self: center;
}

.financeiro-bulk-dialog {
  width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
}

.financeiro-bulk-body {
  display: grid;
  gap: .85rem;
  min-height: 0;
  padding: 1rem;
}

.financeiro-bulk-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
}

.financeiro-bulk-toolbar input[type="number"] {
  width: 88px;
}

.financeiro-bulk-table-wrap {
  max-height: calc(100vh - 160px);
  overflow: auto;
  border: 1px solid #edf0f3;
  border-radius: 8px;
}

.financeiro-bulk-table {
  min-width: 1480px;
  margin: 0;
}

.financeiro-bulk-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bs-table-bg, #fff);
  white-space: nowrap;
}

.financeiro-bulk-head {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
}

.financeiro-bulk-table th button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: .1rem .35rem;
  border: 1px solid #d7dde5;
  border-radius: 4px;
  background: #fff;
  color: #475569;
  font-size: .72rem;
}

.financeiro-bulk-table th,
.financeiro-bulk-table td {
  vertical-align: middle;
}

.financeiro-bulk-table td:first-child,
.financeiro-bulk-table th:first-child {
  width: 42px;
  text-align: center;
}

.financeiro-bulk-table .financeiro-bulk-value {
  min-width: 0;
}

.financeiro-bulk-table .financeiro-bulk-date {
  min-width: 0;
}

.financeiro-bulk-table .financeiro-bulk-check {
  min-width: 48px;
  text-align: center;
}

.financeiro-bulk-table .financeiro-bulk-observacao {
  min-width: 0;
}

.financeiro-bulk-row-ok {
  background: #f0fdf4;
}

.financeiro-bulk-row-err {
  background: #fff1f2;
}

.financeiro-bulk-status {
  min-height: 1.2rem;
}

@media (max-width: 1700px) {
  .financeiro-bulk-dialog {
    width: min(1180px, calc(100vw - 24px));
  }

  .financeiro-bulk-body {
    padding: .85rem;
  }

  .financeiro-bulk-table-wrap {
    max-height: calc(100vh - 172px);
    border: 0;
    border-radius: 0;
  }

  .financeiro-bulk-table tbody {
    display: grid;
    gap: 10px;
    border-top: 0;
  }

  .financeiro-bulk-table tbody tr {
    padding: 10px;
    border: 1px solid #d5dce5 !important;
    border-radius: 8px;
    background: #f8fafc;
  }

  .financeiro-bulk-table tbody tr::before,
  .financeiro-bulk-table tbody tr:hover::before {
    background: transparent;
  }

  .financeiro-bulk-table tbody td {
    padding: 6px 7px;
  }

  .financeiro-bulk-table .financeiro-bulk-index {
    display: flex;
    grid-column: span 1;
    align-items: center;
    justify-content: center;
    order: 0;
    color: #667085;
    font-size: .78rem;
    font-weight: 800;
  }

  .financeiro-bulk-table .financeiro-bulk-index::before {
    content: none !important;
  }

  .financeiro-bulk-table td[data-label="Centro de Custo"] {
    grid-column: span 4;
    order: 7;
  }
}

@media (max-width: 992px) {
  .financeiro-bulk-dialog {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 18px);
  }

  .financeiro-bulk-toolbar {
    display: grid;
    grid-template-columns: auto 90px minmax(0, 1fr) minmax(0, 1fr);
    gap: .5rem;
  }

  .financeiro-bulk-toolbar label {
    align-self: center;
  }

  .financeiro-bulk-toolbar input[type="number"] {
    width: 100%;
  }

  .financeiro-bulk-toolbar .btn {
    min-width: 0;
    white-space: nowrap;
  }
}

@media (max-width: 992px) {
  .financeiro-header {
    display: grid;
    width: 100%;
    justify-content: stretch;
  }

  .financeiro-panel-grid {
    grid-template-columns: 1fr;
  }

  .financeiro-month-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .financeiro-filter {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto;
  }

  .financeiro-filter > div:nth-child(3) {
    grid-column: 1 / span 2;
  }

  .financeiro-config-body,
  .financeiro-import-a7-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #financeiroBlocoModal {
    align-items: stretch;
    padding: 8px;
  }

  .financeiro-bulk-dialog {
    width: 100%;
    max-height: calc(100vh - 16px);
  }

  .financeiro-bulk-body {
    padding: .65rem;
  }

  .financeiro-bulk-toolbar {
    grid-template-columns: auto minmax(70px, 86px) minmax(0, 1fr);
  }

  .financeiro-bulk-toolbar #btnSalvarDespesasBloco {
    grid-column: 1 / -1;
  }

  .financeiro-bulk-table-wrap {
    max-height: calc(100vh - 206px);
  }

  .financeiro-bulk-table tbody {
    gap: 8px;
  }

  .financeiro-bulk-table tbody tr {
    padding: 9px;
  }

  .financeiro-bulk-table .financeiro-bulk-index {
    grid-column: span 2;
    order: 1;
  }

  .financeiro-bulk-table td[data-label="Centro de Custo"] {
    grid-column: 1 / -1;
    order: 7;
  }

  body.financeiro-report-page {
    padding: 12px;
  }

  .financeiro-report-document {
    width: 100%;
    max-width: 100%;
    padding: 14px;
    border-radius: 8px;
  }

  .financeiro-report-toolbar {
    flex-direction: column;
  }

  .financeiro-report-toolbar {
    gap: .75rem;
    margin-bottom: .85rem;
    padding-bottom: .75rem;
  }

  .financeiro-report-toolbar h1 {
    font-size: 1.25rem;
  }

  .financeiro-report-toolbar p {
    font-size: .84rem;
    line-height: 1.25;
  }

  .financeiro-report-toolbar-actions {
    width: 100%;
    gap: .45rem;
  }

  .financeiro-report-toolbar-actions .btn {
    flex: 1 1 0;
  }

  .financeiro-report-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    margin-bottom: .75rem;
  }

  .financeiro-report-summary-item {
    padding: .45rem .5rem;
  }

  .financeiro-report-summary-item strong {
    font-size: .88rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .financeiro-report-section {
    margin-bottom: .75rem;
    padding: .75rem;
  }

  .financeiro-report-section h2 {
    margin-bottom: .5rem;
    font-size: .95rem;
  }

  .financeiro-report-page .table-wrapper {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .financeiro-report-page .table-wrapper > .table {
    margin-bottom: 0;
  }

  .financeiro-report-two-cols {
    grid-template-columns: 1fr;
  }

  .financeiro-pivot-compare {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .financeiro-pivot-title {
    font-size: .86rem;
  }

  .financeiro-pivot-table {
    min-width: 0;
  }

  .financeiro-pivot-table th:first-child,
  .financeiro-pivot-table td:first-child {
    width: 64%;
  }

  .financeiro-pivot-table th:last-child,
  .financeiro-pivot-table td:last-child {
    width: 36%;
  }

  .financeiro-pivot-subcategory td:first-child {
    padding-left: .9rem;
  }

  .financeiro-weekly-table {
    min-width: 680px;
  }

  .financeiro-weekly-table td:first-child,
  .financeiro-weekly-table th:first-child {
    min-width: 180px;
  }

  .financeiro-mini-report-table th,
  .financeiro-mini-report-table td,
  .financeiro-report-table th,
  .financeiro-report-table td {
    font-size: .8rem;
  }

  .financeiro-detail-table {
    min-width: 760px;
  }

  .financeiro-detail-table td:nth-child(7) {
    min-width: 180px;
  }

  .financeiro-report-detail-modal {
    align-items: stretch;
    padding: 10px;
  }

  .financeiro-report-detail-dialog {
    width: 100%;
    max-height: calc(100vh - 20px);
  }

  .financeiro-report-detail-header {
    align-items: flex-start;
    padding: 10px 12px;
  }

  .financeiro-report-detail-header > div {
    min-width: 0;
  }

  .financeiro-report-detail-header h5,
  .financeiro-report-detail-count,
  .financeiro-report-detail-compare {
    overflow-wrap: anywhere;
  }

  .financeiro-report-detail-close {
    flex: 0 0 32px;
  }

  .financeiro-report-detail-body {
    padding: 10px;
  }

  .financeiro-report-detail-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  .financeiro-report-detail-table th,
  .financeiro-report-detail-table td {
    padding: .35rem .4rem;
    font-size: .78rem;
    line-height: 1.2;
  }

  .financeiro-report-detail-table th:first-child,
  .financeiro-report-detail-table td:first-child {
    width: 24%;
    white-space: nowrap;
  }

  .financeiro-report-detail-table th:nth-child(2),
  .financeiro-report-detail-table td:nth-child(2) {
    width: 42%;
    overflow-wrap: anywhere;
  }

  .financeiro-report-detail-table th:last-child,
  .financeiro-report-detail-table td:last-child {
    width: 34%;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .financeiro-month-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .financeiro-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "inicio fim"
      "mes ."
      "consultar stepper";
    gap: .65rem;
  }

  .financeiro-filter > div {
    min-width: 0;
  }

  .financeiro-filter > div:nth-child(1) {
    grid-area: inicio;
  }

  .financeiro-filter > div:nth-child(2) {
    grid-area: fim;
  }

  .financeiro-filter > div:nth-child(3) {
    grid-area: mes;
    grid-column: auto;
  }

  .financeiro-filter .form-control,
  .financeiro-filter .form-select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    font-size: 16px !important;
  }

  .financeiro-filter .form-label {
    margin-bottom: .32rem;
    font-size: .86rem;
    line-height: 1.15;
  }

  .financeiro-filter input[type="date"].form-control {
    min-width: 0;
  }

  .financeiro-filter > .period-range-submit {
    grid-area: consultar;
    grid-column: auto;
  }

  .financeiro-filter-step {
    grid-area: stepper;
    grid-column: auto;
  }

  .financeiro-filter > .period-range-submit,
  .financeiro-filter-step .screen-action-btn {
    box-sizing: border-box;
    width: 100%;
    padding-left: .45rem;
    padding-right: .45rem;
    font-size: .92rem;
    line-height: 1;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .financeiro-report-document {
    padding: 12px;
  }

  .financeiro-report-section {
    padding: .65rem;
  }

  .financeiro-pivot-table th,
  .financeiro-pivot-table td {
    padding: .25rem .32rem;
  }

  .financeiro-report-detail-table {
    table-layout: auto;
  }

  .financeiro-report-detail-table th:first-child,
  .financeiro-report-detail-table td:first-child {
    width: 1%;
  }

  .financeiro-report-detail-table th:nth-child(2),
  .financeiro-report-detail-table td:nth-child(2) {
    width: auto;
  }

  .financeiro-report-detail-table th:last-child,
  .financeiro-report-detail-table td:last-child {
    width: 1%;
  }
}

@media print {
  .side-menu-button,
  .side-menu-overlay,
  .side-menu {
    display: none !important;
  }

  .financeiro-report-toolbar-actions,
  .financeiro-report-detail-modal,
  .financeiro-report-page .bot-chat-widget,
  .financeiro-report-page .side-menu-button,
  .financeiro-report-page .side-menu-overlay,
  .financeiro-report-page .side-menu {
    display: none !important;
  }

  html,
  body.financeiro-report-page {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  body.financeiro-report-page {
    display: block !important;
    position: static !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body.financeiro-report-page > .financeiro-report-document {
    display: block !important;
    position: static !important;
    visibility: visible !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .financeiro-report-toolbar {
    display: block;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid #999;
  }

  .financeiro-report-toolbar h1 {
    font-size: 14pt;
    line-height: 1.1;
  }

  .financeiro-report-toolbar p {
    margin-top: 2px;
    color: #000 !important;
    font-size: 8pt;
    line-height: 1.1;
  }

  .financeiro-report-section {
    margin-bottom: 6px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff !important;
    break-inside: auto;
    page-break-inside: auto;
  }

  .financeiro-report-section h2 {
    margin: 0 0 2px;
    color: #000 !important;
    font-size: 11pt;
    line-height: 1.1;
    break-after: avoid;
    page-break-after: avoid;
  }

  .financeiro-report-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    margin-bottom: 5px;
  }

  .financeiro-report-summary-item {
    padding: 2px 3px;
    border-color: #cfcfcf;
  }

  .financeiro-report-summary-item span {
    color: #000 !important;
    font-size: 5.7pt;
    line-height: 1;
  }

  .financeiro-report-summary-item strong {
    margin-top: 1px;
    font-size: 7pt;
    line-height: 1;
  }

  .financeiro-report-page .table-wrapper {
    overflow: visible !important;
  }

  .financeiro-report-table {
    width: 100% !important;
    border-collapse: collapse !important;
  }

  .financeiro-report-table th,
  .financeiro-report-table td {
    padding: 1px 2px !important;
    border-color: #cfcfcf !important;
    color: #000 !important;
    font-size: 6.4pt !important;
    line-height: 1.05;
  }

  .financeiro-report-table thead th,
  .financeiro-report-table tfoot th,
  .financeiro-pivot-category td {
    background: #d9d9d9 !important;
  }

  .financeiro-report-two-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8mm;
    row-gap: 4mm;
  }

  .financeiro-report-summary-cols {
    column-gap: 10mm;
  }

  .financeiro-report-two-cols > .financeiro-report-section {
    min-width: 0;
    overflow: visible;
  }

  .financeiro-pivot-compare {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    break-inside: auto;
    page-break-inside: auto;
  }

  .financeiro-pivot-title {
    margin-bottom: 1px;
    color: #000 !important;
    font-size: 7pt;
    line-height: 1.05;
  }

  .financeiro-pivot-table,
  .financeiro-weekly-table {
    min-width: 0 !important;
    table-layout: fixed;
  }

  .financeiro-pivot-table th:first-child,
  .financeiro-pivot-table td:first-child {
    width: 68%;
  }

  .financeiro-pivot-table th:last-child,
  .financeiro-pivot-table td:last-child {
    width: 32%;
  }

  .financeiro-weekly-table td:first-child,
  .financeiro-weekly-table th:first-child {
    min-width: 0;
  }

  .financeiro-mini-report-table {
    width: 100% !important;
    table-layout: fixed !important;
  }

  .financeiro-mini-report-table .financeiro-mini-item-col {
    width: 60% !important;
  }

  .financeiro-mini-report-table .financeiro-mini-total-col {
    width: 40% !important;
  }

  .financeiro-mini-report-table th,
  .financeiro-mini-report-table td {
    padding: 1px 2px !important;
    font-size: 6.4pt !important;
    line-height: 1;
    overflow: visible !important;
  }

  .financeiro-mini-report-table th:nth-child(2),
  .financeiro-mini-report-table td:nth-child(2) {
    text-align: right !important;
    white-space: nowrap !important;
  }

  .financeiro-mini-report-table th:first-child,
  .financeiro-mini-report-table td:first-child {
    overflow-wrap: anywhere;
  }

  .financeiro-detail-table th,
  .financeiro-detail-table td {
    padding: 1px 2px !important;
    font-size: 5.8pt !important;
    line-height: 1;
  }

  .financeiro-detail-table th:nth-child(1),
  .financeiro-detail-table td:nth-child(1) {
    width: 9%;
  }

  .financeiro-detail-table th:nth-child(2),
  .financeiro-detail-table td:nth-child(2) {
    width: 12%;
  }

  .financeiro-detail-table th:nth-child(3),
  .financeiro-detail-table td:nth-child(3),
  .financeiro-detail-table th:nth-child(4),
  .financeiro-detail-table td:nth-child(4),
  .financeiro-detail-table th:nth-child(5),
  .financeiro-detail-table td:nth-child(5),
  .financeiro-detail-table th:nth-child(6),
  .financeiro-detail-table td:nth-child(6) {
    width: 13%;
  }

  .financeiro-detail-table th:nth-child(7),
  .financeiro-detail-table td:nth-child(7) {
    width: 27%;
    min-width: 0;
  }

  #print-area {
    width: 100%;
  }

  #print-area table {
    width: 100%;
    border-collapse: collapse;
  }

  #print-area th,
  #print-area td {
    padding: 6px 8px;
  }
}
