.cash-page > .panel,
.cash-page > .cash-blind-note {
  margin-bottom: 16px;
}
.cash-page .page-heading {
  align-items: center;
}
.cash-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#pdv-cash {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cash-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 17px 0;
}
.cash-summary > div {
  min-width: 0;
  padding: 0 18px;
}
.cash-summary > div + div {
  border-left: 1px solid var(--border);
}
.cash-summary-other {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cash-summary > div > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 7px;
}
.cash-summary strong {
  font-size: 14px;
  font-weight: 600;
}
.cash-financial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 17px 0;
}
.cash-financial-grid > div {
  min-width: 0;
  padding: 0 18px;
}
.cash-financial-grid > div + div {
  border-left: 1px solid var(--border);
}
.cash-financial-grid span,
.cash-financial-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.cash-financial-grid strong {
  display: block;
  margin: 7px 0 5px;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cash-financial-grid small {
  font-size: 11px;
}
.cash-financial-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface-raised);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.cash-status {
  border-radius: 5px;
  white-space: nowrap;
}
.cash-status-open {
  color: var(--success);
  background: var(--success-surface);
}
.cash-status-closed {
  color: var(--muted);
  background: var(--surface-raised);
}
.cash-empty {
  padding: 24px 18px;
  color: var(--muted);
  font-size: 13px;
}
.cash-page .panel-head h3 {
  margin: 0;
  font-size: 14px;
}
.cash-page td,
.cash-page th {
  padding: 12px 18px;
}
.cash-reconciliation tfoot td,
.cash-reconciliation tfoot th,
.cash-account-receipts tfoot td,
.cash-account-receipts tfoot th {
  border-top: 1px solid var(--border);
  font-weight: 600;
  background: var(--surface-raised);
}
.cash-difference {
  color: var(--warning);
  font-weight: 600;
}
.cash-blind-note {
  color: var(--muted);
  font-size: 13px;
  padding: 2px 0;
}
.cash-back {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}
.cash-notes {
  padding: 16px 18px;
  font-size: 13px;
}
.cash-notes p {
  white-space: pre-wrap;
  color: var(--muted);
  margin: 7px 0 0;
}
.cash-settings > summary {
  padding: 14px 18px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.cash-settings form {
  padding: 4px 18px 16px;
}
.cash-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
}
.cash-check input {
  margin: 0;
  accent-color: var(--accent);
}
.cash-access {
  padding: 22px;
}
.cash-access h2 {
  font-size: 17px;
  margin: 0;
}
.cash-link-button {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 600;
}
.cash-operator {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
}
.cash-form {
  min-width: min(390px, 65vw);
}
.cash-count-grid {
  margin-bottom: 18px;
}
.cash-count-heading,
.cash-count-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(95px, 0.85fr) minmax(
      120px,
      1fr
    );
  align-items: center;
  gap: 12px;
}
.cash-count-heading {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 7px;
}
.cash-count-heading > span:not(:first-child) {
  text-align: right;
}
.cash-count-row {
  padding: 6px 0;
}
.cash-count-row label {
  font-size: 13px;
  font-weight: 600;
}
.cash-count-row input {
  width: 100%;
  padding: 10px;
  height: 40px;
  text-align: right;
  color: var(--text);
  background: var(--surface-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}
.cash-count-blind .cash-count-heading,
.cash-count-blind .cash-count-row {
  grid-template-columns: minmax(110px, 1fr) minmax(120px, 1fr);
}
.cash-form textarea {
  min-height: 64px;
}
.cash-receipt h4 {
  font-size: 12px;
  text-align: center;
  margin: 10px 0 16px;
}
.cash-receipt p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  line-height: 1.6;
}
.cash-receipt-id {
  font-size: 10px;
}
.cash-receipt .cash-receipt-table {
  font-family: inherit;
  font-size: 9px;
}
.cash-receipt .cash-receipt-table th,
.cash-receipt .cash-receipt-table td {
  padding: 6px 2px;
  border: 0;
  color: #000;
  background: #fff;
  font-size: 9px;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: right;
}
.cash-receipt .cash-receipt-table th:first-child,
.cash-receipt .cash-receipt-table td:first-child {
  text-align: left;
}
.cash-signature {
  margin-top: 30px;
  font-size: 10px;
}
@media (max-width: 1050px) {
  .cash-summary,
  .cash-financial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }
  .cash-summary > div:nth-child(3),
  .cash-financial-grid > div:nth-child(3) {
    border-left: 0;
  }
}
@media (max-width: 600px) {
  .cash-page .page-heading {
    align-items: flex-start;
  }
  .cash-summary > div,
  .cash-financial-grid > div {
    padding: 0 12px;
  }
  .cash-form {
    min-width: 0;
  }
  .cash-count-heading,
  .cash-count-row {
    grid-template-columns: minmax(70px, 1fr) minmax(75px, 1fr) minmax(90px, 1fr);
    gap: 6px;
  }
  .cash-count-row input {
    padding: 8px 5px;
  }
}
@media print {
  .cash-receipt .cash-receipt-table {
    width: 100%;
  }
  .cash-receipt .cash-receipt-table th,
  .cash-receipt .cash-receipt-table td {
    font-size: 8px;
  }
}
