.cash-page {
  display: grid;
  gap: 1rem;
  scrollbar-gutter: stable;
  padding-bottom: 76px;
}
.cash-refreshing {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  padding: 8px 13px;
  border: 1px solid #ead3d5;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(46 22 24 / 16%);
  color: #8f141c;
  font-size: 0.76rem;
  font-weight: 850;
}
.cash-context {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}
.cash-context > div {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e4e7ec);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.2rem;
}
.cash-context span,
.cash-queue header span,
.cash-item small {
  color: var(--text-muted, #667085);
  font-size: 0.78rem;
}
.cash-context strong {
  font-size: 1rem;
}
.cash-context select {
  width: 100%;
  min-height: 34px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text, #1f2937);
  font-weight: 800;
}
.cash-operation-lock {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #f2c7ca;
  border-left: 4px solid #a71119;
  border-radius: 12px;
  background: #fff7f7;
}
.cash-operation-lock span {
  flex: 1;
  color: #6b4548;
  font-size: 0.84rem;
}
.cash-opening-pending {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border: 1px solid #f2b8bd;
  border-radius: 12px;
  background: #fff1f2;
  color: #981b24;
}
.cash-opening-pending span {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}
.cash-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) repeat(4, minmax(135px, 0.65fr));
  gap: 0.75rem;
  align-items: end;
}
.cash-toolbar label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #62595a;
  font-size: 0.74rem;
  font-weight: 800;
}
.cash-toolbar label input,
.cash-toolbar label select {
  width: 100%;
}
.cash-origin-tabs {
  display: flex;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 4px;
}
.cash-origin-tabs button {
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  color: #667085;
}
.cash-origin-tabs button.is-active {
  background: #fff;
  color: #991b1b;
  box-shadow: 0 1px 4px #0002;
}
.cash-workspace {
  display: grid;
  grid-template-columns: minmax(310px, 38%) minmax(0, 62%);
  min-height: 560px;
  height: min(680px, calc(100vh - 300px));
  max-height: 680px;
  border: 1px solid var(--border, #e4e7ec);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.cash-loading-panel {
  display: grid;
  place-items: center;
  min-height: 0;
}
.cash-workspace-loading .cash-detail {
  justify-content: center;
}
.cash-queue {
  border-right: 1px solid var(--border, #e4e7ec);
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.cash-queue-list {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.cash-queue > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border, #e4e7ec);
}
.cash-queue-card {
  position: relative;
  display: grid;
  gap: 0.25rem;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
  padding: 1rem 6.5rem 1rem 1rem;
  min-height: 100px;
}
.cash-queue-card:hover,
.cash-queue-card.is-active {
  background: #fff7f7;
}
.cash-queue-card.is-active {
  box-shadow: inset 4px 0 #b91c1c;
}
.cash-queue-card b {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.05rem;
}
.cash-origin {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.cash-origin-venda {
  background: #dcfce7;
  color: #166534;
}
.cash-origin-locacao {
  background: #fee2e2;
  color: #991b1b;
}
.cash-origin-carteira_cliente {
  background: #e8e7ff;
  color: #47399a;
}
.cash-credit-notice span {
  display: block;
  margin-top: 0.55rem;
  color: #47399a;
  font-size: 0.82rem;
}
.cash-detail {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.cash-detail > header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  border-bottom: 1px solid #edf0f3;
  padding-bottom: 1rem;
}
.cash-detail h2 {
  margin: 0.4rem 0 0.15rem;
}
.cash-detail p {
  margin: 0;
  color: #667085;
}
.cash-detail > header > strong {
  font-size: 1.5rem;
  color: #991b1b;
}
.cash-detail section {
  margin-top: 1.15rem;
}
.cash-detail h3 {
  font-size: 0.9rem;
  margin: 0 0 0.65rem;
}
.cash-rental-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}
.cash-sale-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.cash-sale-context > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  border: 1px solid #eee5e5;
  border-radius: 10px;
  background: #fffafa;
}
.cash-sale-context span,
.cash-sale-totals span {
  color: #667085;
  font-size: 0.74rem;
}
.cash-sale-totals {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.8rem;
  border: 1px solid #eee4e4;
  border-radius: 12px;
  background: #fcfafa;
}
.cash-sale-totals > div {
  display: grid;
  gap: 0.2rem;
}
.cash-sale-totals .is-total {
  padding-left: 0.65rem;
  border-left: 2px solid #a71119;
  color: #8f141c;
}
.cash-rental-dates > div,
.cash-payment > div {
  display: grid;
  gap: 0.2rem;
  background: #f8fafc;
  border-radius: 10px;
  padding: 0.75rem;
}
.cash-rental-dates span,
.cash-payment span {
  font-size: 0.74rem;
  color: #667085;
}
.cash-item {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.cash-item:hover,
.cash-item.is-active {
  background: #fff5f5;
}
.cash-item.is-active {
  box-shadow: inset 3px 0 0 #a71119;
  padding-left: 0.65rem;
}
.cash-item span {
  display: grid;
  gap: 0.2rem;
}
.cash-items-table-wrap {
  overflow-x: auto;
  border: 1px solid #e8e6e6;
  border-radius: 11px;
}
.cash-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.cash-items-table th,
.cash-items-table td {
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  white-space: nowrap;
}
.cash-items-table th {
  background: #f8f6f6;
  color: #6b5557;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cash-items-table th:nth-last-child(-n + 3),
.cash-items-table td:nth-last-child(-n + 3) {
  text-align: right;
}
.cash-locked-notice {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}
.cash-locked-notice p {
  margin: 0.35rem 0 0.75rem;
  color: #9a3412;
}
.cash-payment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.cash-payment h3 {
  grid-column: 1/-1;
}
.cash-payment label {
  display: grid;
  gap: 0.35rem;
}
.cash-payment-guidance {
  grid-column: 1/-1;
  padding: 0.7rem 0.8rem;
  border-left: 3px solid #b4232c;
  background: #fff8f8;
  font-size: 0.8rem;
}
.cash-receive-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.65fr);
  gap: 0.85rem;
}
.cash-receive-overview > section {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid #eadfe0;
  border-radius: 14px;
  background: #fff;
}
.cash-receive-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}
.cash-receive-section-title > small {
  color: #667085;
}
.cash-receive-items {
  display: grid;
  gap: 0.45rem;
}
.cash-receive-items > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid #f0e9e9;
}
.cash-receive-items > div > span:first-child {
  display: grid;
  min-width: 0;
}
.cash-receive-items small {
  color: #667085;
}
.cash-receive-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid #e7dcdc;
}
.cash-receive-totals > span {
  display: grid;
}
.cash-receive-totals .is-total {
  margin-left: auto;
  padding-left: 0.8rem;
  border-left: 3px solid #b4232c;
  color: #8c111a;
}
.cash-receive-plan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0;
}
.cash-receive-plan > div {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem;
  border-radius: 10px;
  background: #faf7f7;
}
.cash-receive-plan dt {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.cash-receive-plan dd {
  margin: 0;
  font-weight: 800;
}
.cash-composition-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid #eee7e7;
  border-bottom: 1px solid #eee7e7;
}
.cash-composition-heading > div {
  display: grid;
  gap: 0.15rem;
}
.cash-composition-heading small {
  color: #667085;
}
.cash-payment-composition {
  display: grid;
  gap: 0.65rem;
}
.cash-payment-part {
  display: grid;
  grid-template-columns:
    34px minmax(165px, 1.4fr) minmax(110px, 0.65fr) repeat(
      4,
      minmax(125px, 0.75fr)
    )
    36px;
  gap: 0.6rem;
  align-items: end;
  padding: 0.75rem;
  border: 1px solid #eadfe0;
  border-radius: 12px;
  background: #fcfafa;
}
.cash-payment-part > label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}
.cash-payment-part > label select,
.cash-payment-part > label input {
  width: 100%;
  min-width: 0;
}
.cash-payment-part-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 7px;
  border-radius: 50%;
  background: #981b24;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}
.cash-payment-part .row-action {
  margin-bottom: 7px;
}
.cash-payment-composition-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 0.65rem;
  border-radius: 10px;
  background: #f7f4f4;
}
.cash-payment-composition-footer button {
  margin-right: auto;
}
.cash-payment-composition-footer .is-balanced {
  color: #167144;
}
.cash-payment-composition-footer .is-different {
  color: #a71119;
}
.cash-add-product-action {
  width: max-content;
  margin-top: 0.75rem;
}
.cash-confirm {
  position: sticky;
  bottom: -1.25rem;
  z-index: 2;
  width: 100%;
  margin-top: 1.25rem;
  padding-bottom: 12px;
  box-shadow: 0 -10px 18px #fff;
  min-height: 48px;
}
.cash-empty {
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.35rem;
  min-height: 220px;
  color: #667085;
}
.cash-empty-detail {
  height: 100%;
}
.cash-action-bar {
  position: fixed;
  z-index: 45;
  right: 18px;
  bottom: 14px;
  left: calc(var(--sidebar-width, 260px) + 18px);
  display: flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid #e6d4d5;
  border-radius: 14px;
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 12px 34px rgb(48 19 21 / 18%);
  backdrop-filter: blur(10px);
  overflow-x: auto;
  scrollbar-width: thin;
}
.cash-action-bar button {
  min-height: 46px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.cash-action-spacer {
  flex: 1;
}
.cash-modal-summary {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1.3fr);
  gap: 0.55rem 1rem;
  padding: 0.9rem;
  border: 1px solid #eadfe0;
  border-radius: 12px;
  background: #fcf9f9;
}
.cash-modal-summary span {
  color: #667085;
  font-size: 0.78rem;
}
.cash-count-section {
  display: grid;
  gap: 0.8rem;
}
.cash-denomination-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}
.cash-denomination-row {
  display: grid;
  grid-template-columns: 84px minmax(105px, 0.75fr) minmax(72px, 1fr);
  gap: 0.45rem;
  align-items: center;
  padding: 0.45rem;
  border: 1px solid #e8e4e4;
  border-radius: 10px;
  background: #fff;
}
.cash-denomination-row input,
.cash-denomination-row select {
  min-width: 0;
}
.cash-count-total {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #f6eeee;
  color: #84131a;
}
.cash-closing-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
}
.cash-closing-steps span {
  padding: 0.5rem 0.35rem;
  border-bottom: 3px solid #e5e7eb;
  color: #667085;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
}
.cash-closing-steps span.is-active {
  border-color: #a71119;
  color: #8b141b;
}
.cash-reconcile-head,
.cash-reconcile-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(95px, 0.42fr));
  gap: 0.65rem;
  align-items: center;
}
.cash-reconcile-head {
  padding: 0.45rem 0.65rem;
  background: #f6f3f3;
  color: #6b5557;
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
}
.cash-reconcile-row {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid #ece8e8;
  font-size: 0.8rem;
}
.cash-reconcile-row > :not(:first-child) {
  text-align: right;
}
.cash-closing-divergences {
  display: grid;
  gap: 0.3rem;
  padding: 0.85rem;
  border: 1px solid #f1c6c9;
  border-radius: 12px;
  background: #fff7f7;
}
.cash-closing-divergences h3 {
  margin: 0 0 0.25rem;
  color: #941a22;
}
.cash-closing-divergences > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #f0dddd;
}
.cash-situation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}
.cash-situation-grid article {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid #e8e3e3;
  border-radius: 12px;
}
.cash-situation-grid span,
.cash-history-list span {
  color: #667085;
  font-size: 0.76rem;
}
.cash-history-list {
  display: grid;
  gap: 0.4rem;
}
.cash-history-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #eee;
}
@media (max-width: 900px) {
  .cash-action-bar {
    left: 12px;
    right: 12px;
    overflow-x: auto;
  }
  .cash-context {
    grid-template-columns: 1fr 1fr;
  }
  .cash-toolbar {
    grid-template-columns: 1fr;
  }
  .cash-workspace {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: auto;
  }
  .cash-queue {
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
    max-height: 430px;
    overflow: auto;
  }
  .cash-detail {
    min-height: 420px;
  }
  .cash-situation-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cash-payment-part {
    grid-template-columns: 34px repeat(2, minmax(0, 1fr));
  }
  .cash-payment-part .row-action {
    grid-column: 3;
    justify-self: end;
  }
}
@media (max-width: 680px) {
  .cash-context {
    grid-template-columns: 1fr 1fr;
  }
  .cash-origin-tabs {
    width: 100%;
  }
  .cash-origin-tabs button {
    flex: 1;
  }
  .cash-workspace {
    border-radius: 12px;
  }
  .cash-detail {
    padding: 1rem;
  }
  .cash-detail > header {
    display: grid;
  }
  .cash-detail > header > strong {
    font-size: 1.25rem;
  }
  .cash-rental-dates,
  .cash-sale-context,
  .cash-sale-totals,
  .cash-payment,
  .quick-sale-settings {
    grid-template-columns: 1fr;
  }
  .cash-queue-card {
    padding-right: 5.5rem;
  }
  .cash-operation-lock {
    align-items: stretch;
    flex-direction: column;
  }
  .cash-opening-pending,
  .cash-opening-pending span {
    align-items: stretch;
    flex-direction: column;
  }
  .cash-denomination-grid {
    grid-template-columns: 1fr;
  }
  .cash-denomination-row {
    grid-template-columns: 78px minmax(90px, 0.8fr) minmax(66px, 1fr);
  }
  .cash-closing-steps {
    grid-template-columns: 1fr;
  }
  .cash-reconcile-head {
    display: none;
  }
  .cash-reconcile-row {
    grid-template-columns: 1fr 1fr;
  }
  .cash-reconcile-row > span:first-child {
    grid-column: 1/-1;
  }
  .cash-situation-grid {
    grid-template-columns: 1fr;
  }
  .cash-receive-overview,
  .cash-receive-plan {
    grid-template-columns: 1fr;
  }
  .cash-receive-items > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .cash-receive-items > div > strong {
    grid-column: 2;
  }
  .cash-composition-heading,
  .cash-payment-composition-footer {
    align-items: stretch;
    flex-direction: column;
  }
  .cash-payment-composition-footer button {
    margin-right: 0;
  }
  .cash-payment-part {
    grid-template-columns: 30px minmax(0, 1fr);
  }
  .cash-payment-part > label,
  .cash-payment-part .row-action {
    grid-column: 2;
  }
}
body small,
body kbd,
.ec-status,
.ec-data-grid th,
.product-tabs button,
.side-nav-title,
.side-navigation summary small,
.side-favorites > small,
.top-context > label,
.top-user small,
.cash-context span,
.cash-origin,
.product-search-photo {
  font-size: 0.75rem;
}
