.finance-badge { display: inline-flex; align-items: center; padding: var(--ds-space-4) var(--ds-space-8); border-radius: var(--ds-radius-12); background: #EEF2F5; color: #0B2D4D; font: 600 var(--ds-font-size-12)/1.3 Montserrat,sans-serif; white-space: nowrap; }
.finance-badge.finance-success { background: var(--ds-sucesso-surface); color: var(--ds-sucesso-ink); }
.finance-badge.finance-attention { background: var(--ds-warning-surface); color: var(--ds-warning-ink); }
.finance-money, .finance-indicator .ui-indicator-value, .cash-operation-values b, .fo-goal-values strong { white-space: nowrap; word-break: normal; overflow-wrap: normal; }
.finance-account-metrics, .finance-cash-metrics, .financial-overview .fo-kpis { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: var(--ds-space-20); margin-bottom: var(--ds-space-20); }
.financial-overview .fo-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
#page-root .finance-indicator .ui-indicator-value { white-space: nowrap; }
#page-root .finance-indicator.has-overdue .ui-indicator-value { color: var(--ds-warning-ink); }
#page-root .finance-negative .ui-indicator-value, .financial-overview .fo-flow.finance-negative strong { color: var(--ds-critical-ink); }
.finance-sales .panel, .finance-account-panel { min-width: 0; overflow: hidden; }
.finance-list-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--ds-space-16); padding: var(--ds-space-20); }
.finance-search { display: flex; align-items: center; gap: var(--ds-space-8); min-width: 0; height: 40px; padding: 0 var(--ds-space-12); border: 1px solid #DFE7EC; border-radius: var(--ds-radius-8); background: #fff; }
.finance-search input { width: 100%; height: 100%; min-width: 0; min-height: 0; padding: 0; border: 0; background: transparent; color: #0B2D4D; font: 400 var(--ds-font-size-13) Montserrat,sans-serif; outline: none; }
.finance-list-toolbar > .finance-search { flex: 0 1 360px; }
.finance-filter-notice { margin: 0; padding: var(--ds-space-12) var(--ds-space-20); color: #60758A; background: #EEF2F5; font-size: var(--ds-font-size-13); }
.finance-filter-bar { display: flex; align-items: end; gap: var(--ds-space-12); min-width: 0; padding: var(--ds-space-20); }
.finance-filter-bar > .finance-search { flex: 1; }
.finance-filter-bar > label:not(.finance-search), .finance-filter-bar .cash-period label, .finance-advanced-filters label { display: grid; gap: var(--ds-space-4); min-width: 0; color: #60758A; font-size: var(--ds-font-size-12); font-weight: 600; }
.finance-filter-bar :is(input,select), .finance-advanced-filters :is(input,select), .finance-account-form :is(input:not([type=checkbox]),select), .record-timeline-search select { height: 40px; min-height: 40px; min-width: 0; color: #0B2D4D; font-size: var(--ds-font-size-13); font-weight: 400; }
.finance-filter-bar .finance-search input { height: 100%; min-height: 0; }
.finance-filter-bar select { max-width: 220px; width: 100%; }
.finance-advanced-filters { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: var(--ds-space-16); margin: 0 var(--ds-space-20) var(--ds-space-20); padding: var(--ds-space-16); border: 1px solid #DFE7EC; border-radius: var(--ds-radius-12); }
.finance-custom-period { display: flex; gap: var(--ds-space-8); min-width: 0; }
.finance-custom-period label { display: grid; min-width: 0; }
.finance-custom-period input { max-width: 160px; }
.finance-account-panel > .app-text-tabs { padding: var(--ds-space-12) var(--ds-space-20) 0; }
.finance-table-wrap { width: 100%; min-width: 0; overflow: hidden; }
.finance-table-wrap table { min-width: 0; width: 100%; table-layout: fixed; }
.finance-table-wrap th { padding: var(--ds-space-12); font-size: var(--ds-font-size-11); font-weight: 500; white-space: nowrap; }
.finance-table-wrap td { height: 56px; padding: var(--ds-space-8) var(--ds-space-12); vertical-align: middle; overflow: hidden; font-size: var(--ds-font-size-13); white-space: nowrap; text-overflow: ellipsis; }
.finance-table-wrap td strong { display: block; overflow: hidden; color: #0B2D4D; font-size: var(--ds-font-size-14); font-weight: 600; text-overflow: ellipsis; }
.finance-table-wrap td small { display: block; overflow: hidden; color: #60758A; font-size: var(--ds-font-size-12); text-overflow: ellipsis; }
.finance-table-wrap tr[tabindex] { cursor: pointer; }
.finance-table-wrap tr[tabindex]:hover { background: #F8FBFC; }
.finance-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: var(--ds-space-8); }
.finance-row-actions .icon-button { width: 36px; height: 36px; border: 1px solid #DFE7EC; border-radius: var(--ds-radius-10); }
.finance-sort { display: inline-flex; align-items: center; gap: var(--ds-space-4); padding: 0; border: 0; background: transparent; color: #60758A; font: inherit; cursor: pointer; }
.finance-sort .ui-icon { width: 16px !important; height: 16px !important; }
.finance-description { display: block; width: 100%; overflow: hidden; padding: 0; border: 0; background: transparent; color: #0B2D4D; font: 600 var(--ds-font-size-14) Montserrat,sans-serif; text-align: left; white-space: nowrap; text-overflow: ellipsis; cursor: pointer; }
.finance-accounts .button, .finance-sales .button, .pdv-register .button { height: 40px; min-height: 40px; padding-block: 0; white-space: nowrap; }
.finance-accounts .button-compact, .finance-sales .button-compact { height: 32px; min-height: 32px; padding: 0 var(--ds-space-12); font-size: var(--ds-font-size-13); }
.finance-danger-text { padding: var(--ds-space-8) 0; border: 0; color: var(--ds-critical-ink); background: transparent; font: 600 var(--ds-font-size-13) Montserrat,sans-serif; cursor: pointer; }
.finance-danger-button { background: #B3363B; color: #fff; border: 1px solid #B3363B; }
.finance-danger-button:hover { background: color-mix(in srgb,#B3363B 90%,#0B2D4D); }
.finance-installment { white-space: nowrap; overflow: visible !important; text-overflow: clip !important; }
.finance-account-form footer > .finance-danger-text { margin-right: auto; }
.finance-delete-options { display: grid; gap: var(--ds-space-12); border: 0; margin: var(--ds-space-20) 0; padding: 0; }
.finance-delete-options label { display: flex; align-items: center; gap: var(--ds-space-8); }
.finance-delete-options input { width: 16px; height: 16px; min-height: 16px; margin: 0; }
.finance-sale-header { display: grid; gap: var(--ds-space-16); padding: var(--ds-space-24); border-bottom: 1px solid #DFE7EC; }
.finance-sale-back { display: inline-flex; align-items: center; justify-self: start; gap: var(--ds-space-8); height: 32px; padding: 0; border: 0; background: transparent; color: #0D7A6E; font: 600 var(--ds-font-size-13) Montserrat,sans-serif; cursor: pointer; }
.finance-sale-back .ui-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.finance-sale-title { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-16); }
.finance-sale-title h1 { margin: 0; color: #0B2D4D; font-size: var(--ds-font-size-22); font-weight: 600; }
.finance-sale-identity { display: flex; align-items: center; flex-wrap: wrap; gap: var(--ds-space-12); color: #60758A; font-size: var(--ds-font-size-13); }
.finance-receipt-due { margin: 0; color: #60758A; font-size: var(--ds-font-size-13); }
.finance-sale-header .finance-steps { margin: 0; }
.finance-steps .finance-step-number { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; color: #60758A; background: #EEF2F5; font-weight: 600; }
.finance-steps .is-current .finance-step-number { color: #fff; background: #0D7A6E; }
.finance-steps .is-complete { color: #60758A; }
.finance-steps .is-complete .finance-step-number { color: #0D7A6E; background: #E5F2E9; }
.finance-step-number .ui-icon { width: 16px !important; height: 16px !important; color: inherit !important; }
.finance-receipt .pdv-payment-columns { grid-template-columns: minmax(0,1fr); }
.finance-receipt .pdv-pay-footer { justify-content: flex-end; }
.finance-catalog-box { position: relative; z-index: 3; margin-bottom: var(--ds-space-20); }
.finance-catalog-box .pdv-catalog-results { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 10; margin: 0; background: #fff; box-shadow: var(--shadow); border-radius: var(--ds-radius-12); }
.finance-catalog-box .pdv-catalog-results:not(:empty) { border: 1px solid #DFE7EC; }
.finance-catalog-box .pdv-client-option { width: 100%; text-align: left; }
.pdv-cart-search .pdv-search, .pdv-customer-search .pdv-search { display: flex; align-items: center; height: 40px; min-height: 40px; padding: 0 var(--ds-space-12); }
.pdv-cart-search .pdv-search input, .pdv-customer-search .pdv-search input { height: 100%; min-height: 0; padding: 0; border: 0 !important; background: transparent; box-shadow: none !important; outline: none !important; font-size: var(--ds-font-size-13); }
.pdv-search:focus-within { outline: 2px solid #0D7A6E; outline-offset: 2px; }
.pdv-selection .button, .pdv-payment .button, .pdv-customer-search .button { height: 40px; min-height: 40px; padding-block: 0; white-space: nowrap; }
.pdv-register .pdv-cart-table th { font-size: var(--ds-font-size-11); font-weight: 500; }
.pdv-register .pdv-cart-table th:nth-child(4) { width: 112px; }
.pdv-register .pdv-cart-table th:nth-child(5) { width: 136px; }
.pdv-register .pdv-cart-item-name { min-width: 0; }
.pdv-register .pdv-cart-table .pdv-empty { border: 0; border-radius: 0; }
.pdv-register .pdv-discount-control { align-items: flex-end; justify-content: flex-end; }
.pdv-discount-control > label { display: grid; gap: var(--ds-space-4); min-width: 0; color: #60758A; font-size: var(--ds-font-size-12); }
.pdv-register .pdv-discount-control select { width: 88px; min-width: 88px; height: 40px; }
.pdv-register .pdv-discount-control input { height: 40px; }
.pdv-pay-method .ui-icon { color: #2D7A49 !important; }
.finance-account-options { justify-content: flex-start; }
.finance-account-options > label, .finance-split-option, .finance-split-option > label { display: inline-flex; align-items: center; gap: var(--ds-space-8); white-space: nowrap; color: #0B2D4D; font-size: var(--ds-font-size-13); }
.finance-account-options input[type=checkbox], label[data-stock-payable] input[type=checkbox] { width: 16px; min-height: 16px; height: 16px; flex: 0 0 16px; margin: 0; }
.finance-account-form .finance-split-option input[type=number] { width: 72px; min-width: 72px; }
.finance-installment-preview { margin: 0 0 var(--ds-space-20); color: #60758A; font-size: var(--ds-font-size-13); }
label[data-stock-payable] { display: flex !important; align-items: center; justify-content: flex-start; gap: var(--ds-space-8); }
#cash-entry-form { min-height: 0; height: auto; display: grid; align-content: start; gap: var(--ds-space-16); }
#cash-entry-form .modal-actions { margin-top: 0; }
#cash-entry-form [data-cash-error]:empty { display: none; }
#cash-entry-form > label { margin-bottom: 0; }
.modal-card:has(#cash-entry-form) { height: auto; min-height: 0; }
.finance-sale-details header { display: flex; align-items: center; justify-content: space-between; gap: var(--ds-space-12); }
.finance-sale-items { display: grid; gap: var(--ds-space-12); margin: var(--ds-space-20) 0; padding: 0; list-style: none; }
.finance-sale-items li { min-width: 0; padding-block: var(--ds-space-12); border-bottom: 1px solid #DFE7EC; }
.finance-sale-items li strong { font-size: var(--ds-font-size-14); }
.finance-sale-items li small { display: inline; margin-left: var(--ds-space-8); color: #60758A; font-size: var(--ds-font-size-12); }
.finance-sale-items p { margin: var(--ds-space-8) 0 0; color: #60758A; font-size: var(--ds-font-size-13); }
.finance-sale-payments { margin-top: var(--ds-space-20); padding-top: var(--ds-space-16); border-top: 1px solid #DFE7EC; }
.finance-detail-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--ds-space-16); }
.finance-detail-facts dd { margin: var(--ds-space-4) 0 0; font-weight: 600; }
.modal-card:has(.finance-account-form) { width: min(820px,calc(100vw - 32px)); max-height: 90dvh; overflow: hidden; }
.finance-account-form { display: grid; grid-template-rows: auto minmax(0,1fr) auto; height: min(760px,calc(90dvh - 80px)); min-height: 0; }
.finance-account-form header h2 { margin-top: 0; }
.finance-form-scroll { min-height: 0; overflow-y: auto; padding-right: var(--ds-space-8); }
.finance-account-form h3 { margin: var(--ds-space-20) 0 var(--ds-space-16); font-size: var(--ds-font-size-16); font-weight: 600; }
.finance-account-form footer { position: relative; margin-bottom: 0; padding-top: var(--ds-space-16); border-top: 1px solid #DFE7EC; background: #fff; }
.finance-account-options { display: flex; align-items: center; flex-wrap: wrap; gap: var(--ds-space-20); margin-block: var(--ds-space-20); }
.finance-account-options > label { display: flex; align-items: center; gap: var(--ds-space-8); }
.finance-steps { display: flex; align-items: center; flex-wrap: wrap; gap: var(--ds-space-20); margin: var(--ds-space-16) 0; padding: 0; list-style: none; color: #60758A; font-size: var(--ds-font-size-13); }
.finance-steps li { display: flex; align-items: center; gap: var(--ds-space-8); }
.finance-steps .is-current { color: #0D7A6E; font-weight: 600; }
.pdv-register #pdv-cart-context { display: none; }
.pdv-register .pdv-cart-footer { align-items: center; }
.pdv-register .pdv-selection-header { flex-wrap: wrap; }
.pdv-register .pdv-selection-header .finance-steps { flex: 1 0 100%; }
.pdv-register .pdv-cart-search { grid-template-columns: minmax(0,1fr) 40px auto; }
.pdv-register .pdv-cart-summary .text-button { font-size: var(--ds-font-size-13); }
.pdv-register .pdv-cart-table { min-width: 0; width: 100%; table-layout: fixed; }
.pdv-register .pdv-cart-table th, .pdv-register .pdv-cart-table td { padding: var(--ds-space-8); overflow-wrap: anywhere; }
.pdv-register .pdv-cart-table th:first-child { width: 27%; }
.pdv-register .pdv-cart-table th:nth-child(3) { width: 15%; }
.pdv-register .pdv-cart-table th:nth-child(4) { width: 112px; }
.pdv-register .pdv-cart-table th:nth-child(5) { width: 136px; }
.pdv-register .pdv-cart-table th:nth-child(6) { width: 110px; }
.pdv-register .pdv-cart-table th:last-child { width: 64px; }
.pdv-register .pdv-cart-table select { width: 100%; min-width: 0; }
.finance-cash-neutral { border-color: #DFE7EC; background: #fff; }
.cash-status.finance-cash-attention { border-color: var(--ds-warning-ink); background: var(--ds-warning-surface); color: var(--ds-warning-ink); }
.cash-status.finance-cash-critical { border-color: var(--ds-critical-ink); background: var(--ds-critical-surface); color: var(--ds-critical-ink); }
.finance-filter-bar .cash-period { display: flex; align-items: end; flex-wrap: wrap; margin: 0; padding: 0; border: 0; background: transparent; }
.cash-operation-values b { font-size: var(--ds-font-size-22); }
.financial-overview .fo-flow { background: #F8FBFC; color: #0B2D4D; }
.financial-overview .fo-flow strong { color: #0B2D4D; white-space: nowrap; }
.financial-overview .fo-ranking-table { width: 100%; min-width: 0; table-layout: fixed; }
.financial-overview .fo-ranking-table th:first-child { width: 40px; }
.financial-overview .fo-ranking-table th:nth-child(3) { width: 60px; }
.financial-overview .fo-ranking-table th:last-child { width: 150px; }
.financial-overview .fo-ranking-table :is(th,td) { padding: var(--ds-space-8); }
.finance-ranking-value { white-space: nowrap; }
.finance-ranking-value small { display: block; margin-top: var(--ds-space-4); color: #60758A; font-size: var(--ds-font-size-12); white-space: normal; }
.finance-health-empty { margin: 0; padding: var(--ds-space-16); border-radius: var(--ds-radius-12); color: #60758A; background: #EEF2F5; font-size: var(--ds-font-size-13); }
.financial-overview .fo-bottom-row:has(.finance-health-empty) { grid-template-columns: minmax(0,1fr); }
.finance-health-values { display: flex; gap: var(--ds-space-20); padding: var(--ds-space-20); }
.finance-health-values strong { display: block; margin-top: var(--ds-space-8); }
@media (max-width:1279px) {
  .pdv-register .pdv-cart-table :is(th,td):nth-child(2) { display: none; }
  .pdv-register .pdv-cart-table th:first-child { width: auto; }
  .pdv-register .pdv-cart-table th:nth-child(3) { width: 120px; }
  .finance-table-wrap .finance-secondary { display: none; }
  .finance-filter-bar { flex-wrap: wrap; }
  .finance-filter-bar > .finance-search { flex: 1 1 230px; }
  .finance-table-wrap .finance-sales-table th:first-child { width: 18%; }
  .finance-table-wrap .finance-sales-table th:nth-child(2) { width: 25%; }
  .finance-table-wrap .finance-sales-table th:nth-child(3) { width: 23%; }
  .finance-table-wrap .finance-sales-table th:nth-child(4) { width: 18%; }
  .finance-table-wrap .finance-sales-table th:last-child { width: 16%; }
}
@media (max-width:1023px) {
  #page-root .finance-table-wrap table.responsive-table { display: table; width: 100%; min-width: 0; table-layout: fixed; }
  #page-root .finance-table-wrap table.responsive-table thead { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  #page-root .finance-table-wrap table.responsive-table tbody { display: table-row-group; }
  #page-root .finance-table-wrap table.responsive-table tr { display: table-row; padding: 0; border: 0; }
  #page-root .finance-table-wrap table.responsive-table td { display: table-cell; position: static; width: auto; min-width: 0; height: 56px; padding: var(--ds-space-8); white-space: nowrap; }
  #page-root .finance-table-wrap table.responsive-table td::before { display: none; }
  #page-root .finance-table-wrap table.responsive-table .finance-secondary { display: none; }
  .finance-advanced-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .finance-account-panel .app-text-tabs { flex-wrap: wrap; }
}
