.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
}

body.register-clipped-shell #checkout.view.active {
  align-items: start;
  justify-items: start;
}

.register-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  width: 1440px;
  height: 980px;
  padding: 14px;
  background: #dfe6eb;
  overflow: hidden;
  transform: scale(var(--register-scale, 1));
  transform-origin: center center;
}

body.register-clipped-shell .register-shell {
  transform-origin: top left;
}

.register-alert {
  padding: 10px 14px;
  border-radius: 8px;
  background: #c62828;
  color: #ffffff;
  font-weight: 800;
}

.register-login {
  align-self: center;
  justify-self: center;
  display: grid;
  gap: 20px;
  width: min(520px, 92vw);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.register-login h3,
.register-top h3,
.register-history h4 {
  margin: 0;
}

.register-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #15212a;
  color: #ffffff;
}

.register-top h3 {
  margin-bottom: 3px;
  font-size: 24px;
}

.register-top h3 span {
  color: #9eb0ba;
  font-size: 14px;
}

.register-kicker {
  display: block;
  color: #6c7b85;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.register-top .register-kicker {
  color: #9eb0ba;
}

.register-customer-header {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: default;
}

.register-customer-header.is-changeable {
  cursor: pointer;
}

.register-customer-header.is-changeable:hover h3,
.register-customer-header.is-changeable:focus h3 {
  text-decoration: underline;
}

.register-customer-header:focus {
  outline: 2px solid #d9e7ee;
  outline-offset: 4px;
}

.register-customer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: #d9e7ee;
  font-size: 14px;
  font-weight: 800;
}

.register-customer-line span {
  overflow: hidden;
  max-width: min(660px, 58vw);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.register-customer-line span + span {
  color: #ffffff;
}
.customer-balance-chip {
  max-width: none !important;
  padding: 3px 9px;
  border-radius: 999px;
  color: #06131b !important;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.customer-balance-chip.owes {
  background: #ffe1e4;
  color: #84212b !important;
}

.customer-balance-chip.credit {
  background: #d8f8e6;
  color: #07522a !important;
}

.customer-balance-chip.zero {
  background: #e6eef3;
  color: #253944 !important;
}

.register-operator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.register-operator div {
  display: grid;
  gap: 2px;
  min-width: 130px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.register-operator span {
  color: #9eb0ba;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.register-operator strong {
  color: #ffffff;
  font-size: 16px;
}

.register-return-start {
  min-width: 138px;
  border-color: #ffda7a;
  background: #fff2c8;
  color: #3d2900;
}

.register-return-status {
  border-color: rgba(255, 218, 122, 0.5);
  background: rgba(255, 218, 122, 0.14);
}

.register-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}

.register-main,
.register-side,
.register-history {
  border: 2px solid #9badb8;
  border-radius: 8px;
  background: #ffffff;
}

.register-main {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  padding: 12px;
}

.register-side {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 0;
  padding: 12px;
  overflow: auto;
}

.customer-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  padding: 10px;
  border: 3px solid #8fa2ad;
  border-radius: 8px;
  background: #f8fbfc;
}

.customer-step.complete {
  border-color: #087a4c;
  background: #e2f8ed;
}

.customer-step label,
.scan-zone label,
.scale-wait label {
  display: block;
  margin-bottom: 6px;
  color: #263944;
  font-size: 14px;
  font-weight: 800;
}

.return-mode-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 3px solid #8b1e2d;
  border-radius: 8px;
  background: #fff5f6;
}

.return-original-list {
  display: grid;
  gap: 6px;
  max-height: 150px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #d6b6bc;
  border-radius: 8px;
  background: #ffffff;
}

.return-original-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 6px;
  border-bottom: 1px solid #edf0f2;
}

.return-original-list span,
.return-selected-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.return-settings-table input[type="number"] {
  width: 90px;
  min-height: 36px;
  font-weight: 900;
}

.register-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.qty-scan-row {
  grid-template-columns: 90px minmax(0, 1fr) auto;
}

.qty-input {
  text-align: center;
}

.register-input-row input,
.pin-pad input,
.tender-panel input {
  min-height: 54px;
  border: 2px solid #738894;
  color: #06131b;
  font-size: 22px;
  font-weight: 800;
}

.register-input-row input:focus,
.pin-pad input:focus,
.tender-panel input:focus {
  border-color: #004f98;
  box-shadow: 0 0 0 4px rgba(0, 79, 152, 0.18);
  outline: 0;
}

.customer-chip {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #9badb8;
  border-radius: 8px;
  background: #d9e7ee;
}

.customer-chip strong {
  color: #07131a;
  font-size: 18px;
}

.customer-chip span,
.scan-status {
  color: #2f414c;
  font-size: 13px;
  font-weight: 800;
}

.customer-choice-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customer-choice {
  display: grid;
  gap: 4px;
  min-height: 72px;
  text-align: left;
}

.customer-choice span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.guest-choice {
  justify-content: center;
  font-size: 18px;
}

.scan-zone {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 3px solid #8fa2ad;
  border-radius: 8px;
  background: #f4f8fa;
}

.scan-zone.ready {
  border-color: #005fcc;
  background: #eaf3ff;
  box-shadow: 0 0 0 4px rgba(0, 95, 204, 0.18);
}

.scan-zone.weighing {
  border-color: #b36b00;
  background: #fff0c2;
}

.register-lines {
  min-height: 0;
  overflow: auto;
  border: 2px solid #8fa2ad;
  border-radius: 8px;
}

.register-lines table {
  min-width: 680px;
}

.register-lines th,
.register-lines td {
  padding: 10px 12px;
  color: #06131b;
  font-size: 20px;
  white-space: nowrap;
}

.register-lines .register-item-name {
  max-width: 430px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.register-lines th {
  background: #dce6ec;
  color: #102532;
  font-weight: 900;
}

.register-lines td strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 20px;
  font-weight: 900;
}

.register-total {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 8px;
  background: #07131b;
  color: #ffffff;
}

.register-total span {
  color: #d7e7ef;
  font-weight: 800;
}

.register-total strong {
  font-size: 42px;
  font-variant-numeric: tabular-nums;
}

.register-total-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.register-total em {
  color: #d7e7ef;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
  text-align: right;
}

.register-tax-breakdown {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 2px solid #8fa2ad;
  border-radius: 8px;
  background: #f7fafc;
}

.register-tax-breakdown div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #263944;
  font-size: 15px;
  font-weight: 900;
}

.register-tax-breakdown strong {
  color: #06131b;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.register-tax-breakdown small {
  display: block;
  color: #61727d;
  font-size: 11px;
  font-weight: 900;
}

.register-tax-breakdown .tax-row {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid #c9d5dc;
}

.register-tax-breakdown.tax-exempt .tax-row {
  color: #0d6846;
}
.tender-buckets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.tender-buckets div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 54px;
  padding: 10px 12px;
  border: 2px solid #8fa2ad;
  border-radius: 8px;
  background: #ffffff;
}

.tender-buckets span {
  color: #263944;
  font-weight: 800;
}

.tender-buckets strong {
  color: #06131b;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.register-history,
.mini-list {
  display: grid;
  gap: 8px;
}

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

.register-actions .tender-action {
  grid-column: 1 / -1;
  min-height: 76px;
  font-size: 24px;
}

.register-touch {
  min-height: 52px;
  padding: 12px;
  border-width: 2px;
  font-size: 17px;
  font-weight: 900;
}

.register-touch.primary,
body.register-mode .primary {
  background: var(--accent);
  color: #ffffff;
}

.register-touch.primary:hover,
body.register-mode .primary:hover {
  background: var(--accent-dark);
}

.register-touch.secondary,
body.register-mode .secondary {
  border-color: #5d7481;
  background: #e1eaf0;
  color: #07131b;
}

.register-touch.danger,
body.register-mode .danger {
  border-color: #8f1218;
  background: #b21f2d;
  color: #ffffff;
}

.register-touch:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pin-pad {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 10px;
}

.login-status {
  display: block;
  min-height: 20px;
  color: var(--red);
}

.scale-wait {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
  align-items: center;
}

.scale-wait .register-input-row {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.scale-display {
  display: grid;
  place-items: center;
  min-height: 86px;
  border-radius: 8px;
  background: #16232b;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  animation: scalePulse 900ms infinite alternate;
}

@keyframes scalePulse {
  from {
    box-shadow: 0 0 0 0 rgba(241, 180, 52, 0.2);
  }
  to {
    box-shadow: 0 0 0 7px rgba(241, 180, 52, 0.34);
  }
}

.tender-panel {
  display: grid;
  gap: 14px;
  min-height: 0;
}


.account-payment-banner {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.account-payment-banner strong {
  font-size: 22px;
  font-weight: 950;
}

.account-payment-banner span {
  font-size: 15px;
  font-weight: 850;
}
.tender-due-card {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 3px solid #e0b13b;
  border-radius: 8px;
  background: #fff1c7;
  color: #513902;
  text-align: right;
}

.tender-due-card span {
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.tender-due-card strong {
  color: #101820;
  font-size: 44px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.tender-amount-field {
  display: grid;
  gap: 6px;
  color: #263944;
  font-size: 15px;
  font-weight: 950;
}

.tender-amount-field input {
  width: 100%;
  min-height: 64px;
  border-width: 3px;
  font-size: 32px;
  font-weight: 950;
  text-align: right;
}

.tender-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
}

.tender-buttons .register-touch {
  display: grid;
  place-items: center;
  min-height: 104px;
  padding: 14px 12px;
  border-radius: 8px;
  line-height: 1.15;
  text-align: center;
}

.tender-choice {
  gap: 7px;
}

.tender-choice strong {
  color: #06131b;
  font-size: 24px;
  font-weight: 950;
}

.tender-choice span {
  color: #334653;
  font-size: 13px;
  font-weight: 850;
}

.tender-choice:disabled {
  border-color: #c3ccd1;
  background: #edf1f3;
  opacity: 0.68;
}

.tender-choice:disabled strong,
.tender-choice:disabled span {
  color: #647480;
}

.tender-applied-list {
  min-height: 44px;
  padding: 10px;
  border: 1px solid #bccbd3;
  border-radius: 8px;
  background: #f6f9fb;
  font-size: 15px;
  font-weight: 850;
}

.remaining-due {
  padding: 12px;
  border-radius: 8px;
  background: #fff4d9;
  color: #5d4510;
  font-size: 28px;
  font-weight: 900;
  text-align: right;
}

.cash-tender-panel {
  display: grid;
  gap: 14px;
}

.tender-detail-panel {
  display: grid;
  gap: 14px;
}

.tender-detail-field {
  display: grid;
  gap: 6px;
  color: #334653;
  font-size: 15px;
  font-weight: 900;
}

.tender-detail-field input,
.tender-detail-field select {
  width: 100%;
  border: 3px solid #5e7887;
  border-radius: 8px;
  color: #06131b;
  font-size: 24px;
  font-weight: 900;
  padding: 12px;
}

.alert-text {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffe1e4;
  color: #84212b;
  font-weight: 900;
}
.cash-tender-field {
  display: grid;
  gap: 6px;
  color: #334653;
  font-size: 14px;
  font-weight: 900;
}

.cash-tender-field input {
  width: 100%;
  border: 3px solid #5e7887;
  border-radius: 8px;
  color: #06131b;
  font-size: 36px;
  font-weight: 950;
  padding: 14px;
  text-align: right;
}

.cash-tender-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px) 210px;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 2px solid #8fa2ad;
  border-radius: 8px;
  background: #f6fbff;
}

.cash-tender-account div {
  display: grid;
  gap: 4px;
}

.cash-tender-account span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.cash-tender-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  padding: 12px;
  border: 2px solid #8fa2ad;
  border-radius: 8px;
  background: #fff4d9;
  color: #5d4510;
  font-weight: 900;
}

.cash-tender-summary strong {
  color: #101820;
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}

.cash-tender-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

.cash-tender-actions .register-touch,
.cash-tender-account .register-touch {
  min-height: 68px;
  font-size: 19px;
  font-weight: 950;
}

.register-history {
  grid-template-columns: 1fr 1fr;
  min-height: 78px;
  padding: 10px 12px;
  overflow: hidden;
}

.register-history .section-title-row {
  align-items: center;
  margin-bottom: 8px;
}

.register-history .section-title-row .secondary {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
}

.mini-list {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  max-height: 38px;
  overflow: auto;
}

.mini-list button,
.mini-list span {
  min-height: 34px;
  font-size: 13px;
}

.scan-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.total-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #172027;
  color: #ffffff;
  border-radius: 8px;
}

.total-box strong {
  font-size: 38px;
  font-variant-numeric: tabular-nums;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  transform: translateY(120%);
  transition: transform 180ms ease;
  background: #172027;
  color: #fff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  z-index: 20;
}

.toast.show {
  transform: translateY(0);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 28, 35, 0.55);
  z-index: 50;
}

.modal-overlay.show {
  display: flex;
}

.stacked-modal {
  background: rgba(18, 28, 35, 0.35);
  z-index: 70;
}

.modal-overlay.modal-top {
  z-index: 90;
}

.modal-overlay.modal-over-item {
  z-index: 110;
}

.modal-panel {
  display: flex;
  flex-direction: column;
  width: min(980px, 96vw);
  max-height: 90vh;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(12, 20, 26, 0.28);
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.item-modal {
  width: min(620px, 92vw);
}

.item-modal .detail-box {
  gap: 12px;
}

.checkout-modal {
  width: min(900px, 94vw);
}

.app-dialog {
  width: min(520px, 92vw);
}

.app-dialog:has(.number-pad:not(.hidden)) {
  width: min(560px, 92vw);
}

.app-dialog-body {
  display: grid;
  gap: 12px;
}

.dialog-message {
  margin: 0;
  color: #1b2b35;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.dialog-input-label {
  color: #263944;
  font-size: 13px;
  font-weight: 900;
}

.dialog-choice-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dialog-choice-buttons button {
  min-height: 44px;
  border: 2px solid #5d7481;
  border-radius: 8px;
  background: #eef4f7;
  color: #17242d;
  font-weight: 900;
}

.dialog-choice-buttons button:hover,
.dialog-choice-buttons button:focus,
.dialog-choice-buttons button.selected {
  border-color: #004f98;
  background: #e2f0ff;
  color: #003d78;
  outline: 0;
}

.dialog-input {
  min-height: 54px;
  border: 2px solid #738894;
  border-radius: 8px;
  color: #06131b;
  font-size: 22px;
  font-weight: 900;
  padding: 10px 12px;
}

.dialog-input:focus {
  border-color: #004f98;
  box-shadow: 0 0 0 4px rgba(0, 79, 152, 0.18);
  outline: 0;
}

.dialog-computed {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  padding: 12px;
  border: 2px solid #8fa2ad;
  border-radius: 8px;
  background: #fff4d9;
  color: #5d4510;
  font-weight: 900;
}

.dialog-computed span {
  font-size: 15px;
}

.dialog-computed strong {
  color: #101820;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.number-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.number-pad button {
  min-height: 66px;
  border: 2px solid #5d7481;
  border-radius: 8px;
  background: #eef4f7;
  color: #06131b;
  font-size: 26px;
  font-weight: 900;
}

.number-pad button:hover,
.number-pad button:focus {
  border-color: #004f98;
  background: #e2f0ff;
  outline: 0;
}

.number-pad button[data-numpad="clear"],
.number-pad button[data-numpad="back"] {
  background: #fff2d7;
  color: #5d4510;
  font-size: 20px;
}

.number-pad button[data-numpad="decimal"] {
  grid-column: 2;
}

.hidden {
  display: none !important;
}

.checkout-search-modal {
  display: grid;
  gap: 12px;
}

.lookup-search-bar {
  display: grid;
  gap: 6px;
}

.lookup-search-bar label {
  color: #263944;
  font-size: 14px;
  font-weight: 900;
}

.lookup-search-bar input {
  min-height: 56px;
  border: 2px solid #738894;
  border-radius: 8px;
  color: #06131b;
  font-size: 22px;
  font-weight: 900;
  padding: 10px 12px;
}

.lookup-search-bar input:focus {
  border-color: #004f98;
  box-shadow: 0 0 0 4px rgba(0, 79, 152, 0.18);
  outline: 0;
}

.search-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.search-summary span {
  color: var(--muted);
  font-weight: 800;
}

.customer-change-warning {
  padding: 10px 12px;
  border: 1px solid #f1c96d;
  border-radius: 8px;
  background: #fff8e3;
  color: #5f4712;
  font-weight: 800;
}

.checkout-result-list {
  display: grid;
  gap: 8px;
  max-height: min(58vh, 520px);
  overflow: auto;
}

.checkout-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.item-lookup-row {
  grid-template-columns: minmax(0, 1fr) 96px 104px;
}

.checkout-result-row:hover {
  border-color: var(--accent);
  background: #f2fbf9;
}

.checkout-result-row span {
  display: grid;
  gap: 3px;
}

.checkout-result-row small {
  color: var(--muted);
  font-size: 12px;
}

.checkout-result-row b {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.customer-confirm-modal .customer-confirm-summary {
  white-space: nowrap;
}

.customer-confirm-modal .customer-confirm-summary strong,
.customer-confirm-modal .customer-confirm-summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 18px;
  line-height: 1.2;
}

.customer-confirm-list {
  overflow-x: hidden;
}

.customer-result-row {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 11px 12px;
}

.customer-result-row .customer-result-text {
  display: flex;
  align-items: baseline;
  gap: 18px;
  min-width: 0;
  white-space: nowrap;
}

.customer-result-row strong,
.customer-result-row .customer-result-detail,
.customer-result-row b {
  font-size: 18px;
  line-height: 1.2;
}

.customer-result-row strong {
  flex: 0 0 auto;
}

.customer-result-row .customer-result-detail {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-weight: 800;
}

.customer-result-row b {
  font-weight: 950;
}

.empty-lookup {
  display: grid;
  place-items: center;
  min-height: 110px;
  border: 2px dashed #8fa2ad;
  border-radius: 8px;
  color: #263944;
  font-size: 18px;
  font-weight: 900;
}

.delivery-prompt {
  display: grid;
  gap: 14px;
}

.delivery-address-preview {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fafb;
}

.delivery-address-preview span {
  color: var(--muted);
}

.field-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.delivery-box-input {
  min-height: 54px;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.delivery-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.delivery-edit-grid label {
  display: grid;
  gap: 5px;
}

.delivery-edit-grid label.wide {
  grid-column: 1 / -1;
}

.delivery-edit-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.delivery-edit-grid input {
  min-height: 42px;
  font-weight: 700;
}

.delivery-label-screen {
  display: grid;
  gap: 14px;
}

.delivery-labels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  max-height: min(62vh, 560px);
  overflow: auto;
}

.delivery-label {
  display: grid;
  gap: 8px;
  min-height: 220px;
  padding: 18px;
  border: 2px solid #172027;
  border-radius: 8px;
  background: #ffffff;
  color: #101820;
}

.delivery-label-number {
  font-size: 28px;
  font-weight: 950;
  letter-spacing: 0;
}

.delivery-barcode {
  display: block;
  min-height: 76px;
  padding: 4px 8px;
  border: 1px solid #172027;
  background: #ffffff;
}

.delivery-barcode svg {
  display: block;
  width: 100%;
  height: 76px;
}

.delivery-barcode text {
  fill: #101820;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 2px;
}

.delivery-label-name {
  font-size: 22px;
  font-weight: 900;
}

.delivery-label-address,
.delivery-label-apt,
.delivery-label-notes {
  font-size: 18px;
  font-weight: 750;
}

.delivery-label-notes {
  padding: 8px;
  border: 1px dashed #172027;
}

.delivery-label-box {
  align-self: end;
  padding-top: 10px;
  border-top: 2px solid #172027;
  font-size: 24px;
  font-weight: 950;
  text-align: right;
}

.recent-sales-panel {
  display: grid;
  gap: 12px;
}

.recent-sales-list {
  display: grid;
  gap: 8px;
  max-height: min(58vh, 520px);
  overflow: auto;
}

.recent-sale-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(260px, auto);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.recent-sale-row div {
  display: grid;
  gap: 3px;
}

.recent-sale-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.recent-sale-actions button {
  min-height: 42px;
  padding: 8px 10px;
  white-space: normal;
}

.recent-sale-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.recent-sale-row b {
  text-align: right;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
