/* Presentation parity with the clothing register; accounting stays in pos.mjs. */
@media screen { body.cash-workspace.clothing-interface { background:#fff; } }
body.cash-workspace .register-layout {
  --register-text:#263d35;
  --register-muted:#64786b;
  --register-line:#e2e8df;
  --register-border:#cfdcca;
  --register-accent:#244e41;
  display:grid;
  grid-template-columns:minmax(0,1fr) clamp(240px,25%,320px);
  grid-template-rows:minmax(0,1fr);
  gap:20px;
  padding:18px 20px;
  min-height:0;
  overflow:hidden;
  color:var(--register-text);
}

body.cash-workspace .register-receipt {height:100%;min-height:0;container:receipt / inline-size;overflow:hidden}
body.cash-workspace .register-layout button {font-family:inherit;font-size:13px;font-weight:600;box-shadow:none}
body.cash-workspace .register-layout input {font-family:inherit;font-size:13px;border-radius:7px}
body.cash-workspace .register-heading {min-height:30px;margin-bottom:12px}
body.cash-workspace .register-heading h1 {font-size:22px;font-weight:750;letter-spacing:-.5px;line-height:1.4}
body.cash-workspace .register-heading .mini {font-size:11px;color:var(--register-muted)}
body.cash-workspace .register-catalog-count {display:flex;align-items:center;gap:9px;min-height:28px}
body.cash-workspace .register-catalog-count svg {width:17px;height:17px}
body.cash-workspace .register-section-title h2 {font-size:16px;font-weight:700}
body.cash-workspace .register-section-title>span {font-size:11px}
body.cash-workspace .register-scan {grid-template-columns:minmax(150px,1fr) 48px 48px 90px;gap:10px;padding-bottom:17px}
body.cash-workspace .register-scan label {font-size:12px;font-weight:600;line-height:1.5}
body.cash-workspace .register-scan input {min-height:48px;padding:10px 12px}
body.cash-workspace .register-scan .register-square {height:48px;min-height:48px}
body.cash-workspace .register-search-input {gap:12px;padding:0 12px}
body.cash-workspace .register-search-input #cash-search {padding:10px 0;min-height:46px}
body.cash-workspace .register-search-results {top:calc(100% - 12px);background:#f6f8f4;border-radius:7px;box-shadow:0 12px 30px #193c2d24}
body.cash-workspace .register-result-list {max-height:min(300px,calc(100dvh - 250px))}
body.cash-workspace .register-result-product {grid-template-columns:20px minmax(0,1fr) auto 18px;border:0;border-bottom:1px solid var(--register-line);border-radius:0;min-height:64px}
body.cash-workspace .register-result-product:last-child {border-bottom:0}
body.cash-workspace .register-items-title {padding:18px 0 12px}
body.cash-workspace .register-lines {width:100%;min-width:0;border-collapse:collapse;table-layout:fixed}
body.cash-workspace .register-lines th {padding:12px 8px 14px;font-weight:500;white-space:nowrap;border-bottom:1px solid var(--register-line)}
body.cash-workspace .register-lines th:first-child,
body.cash-workspace .register-lines td:first-child {padding-left:0}
body.cash-workspace .register-lines th:nth-child(2) {width:144px}
body.cash-workspace .register-lines th:nth-child(3),
body.cash-workspace .register-lines th:nth-child(4) {width:105px}
body.cash-workspace .register-lines th:last-child {width:48px}
body.cash-workspace .register-lines td {padding:12px 8px;font-size:13px;vertical-align:middle}
body.cash-workspace .register-lines td strong {font-size:13px;font-weight:650;line-height:1.45}
body.cash-workspace .register-lines td:nth-child(4) strong {white-space:nowrap}
body.cash-workspace .register-lines td input.price {font-size:13px;max-width:96px;min-height:40px;padding:6px 4px}
body.cash-workspace .register-stepper {width:126px;border-radius:6px;overflow:hidden}
body.cash-workspace .register-stepper button {width:33px;min-width:33px;height:40px;min-height:40px}
body.cash-workspace .register-stepper input {width:56px;min-height:40px;height:40px;border-radius:0;background:transparent}
body.cash-workspace .register-remove {width:32px;min-width:32px;min-height:40px}
body.cash-workspace .register-empty {min-height:120px;padding:20px 12px;gap:12px}
body.cash-workspace .register-empty>.ui-icon {width:44px;height:44px;opacity:1;stroke-width:1.3}
body.cash-workspace .register-empty strong {font-size:14px;font-weight:500}
body.cash-workspace .register-empty .secondary {padding:5px 16px;border:1px solid #cfdcca;border-radius:6px;min-height:38px;background:transparent;color:#244e41}
body.cash-workspace .register-receipt-footer {min-height:36px;padding-top:12px;color:var(--register-muted);font-size:12px}
body.cash-workspace .register-receipt-footer strong {color:var(--register-text);font-size:14px}
body.cash-workspace .register-shortcuts {margin:0;padding-top:8px;font-size:10px}
body.cash-workspace .register-summary {height:100%;min-height:0;padding-left:20px;overflow:hidden}
body.cash-workspace .register-summary h2 {font-size:17px}
body.cash-workspace .register-grand-total {font-size:40px;letter-spacing:-1.3px;font-weight:750;line-height:1.2;margin:20px 0}
body.cash-workspace .register-discount {flex-direction:row;justify-content:space-between;gap:8px;min-height:36px;padding:6px 0;margin:0 0 8px;border:0;border-radius:0;background:transparent!important;font-size:12px!important}
body.cash-workspace .register-discount strong {font-size:11px}
body.cash-workspace .register-stock-hint {font-size:11px;line-height:1.6;margin:0 0 16px;align-items:flex-start}
body.cash-workspace .register-stock-hint svg {flex:none;width:18px;height:18px;margin-top:1px}
body.cash-workspace .register-summary>.register-pay {min-height:52px;font-size:14px!important;font-weight:750!important}
body.cash-workspace .register-summary-actions {min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;margin-top:0}
body.cash-workspace .register-summary-action {min-height:44px;flex:none;margin-top:8px;padding:5px 0;font-size:13px}
body.cash-workspace .register-summary-action.register-cancel {margin-top:12px}
body.cash-workspace .register-summary-action span {font-size:11px;border-radius:5px}
body.cash-workspace .register-fiscal-hint {margin-top:auto;padding-top:12px;font-size:10px;line-height:1.6}
body.cash-workspace #cash-customer {flex:none;min-width:0}
body.cash-workspace #cash-customer .customer-picker {padding:9px 12px;margin-bottom:14px;border-radius:7px;background:#f6f8f4;gap:10px;min-height:54px}
body.cash-workspace #cash-customer .customer-picker-current strong {font-size:12px;font-weight:650;line-height:1.4}
body.cash-workspace #cash-customer .customer-picker-current small {font-size:10px;margin-top:3px;line-height:1.4}
body.cash-workspace #cash-customer .customer-picker-actions {gap:4px}
body.cash-workspace #cash-customer .customer-picker-actions button {min-height:32px;padding:5px 8px;font-size:11px;border-radius:5px}
body.cash-workspace .register-commerce {flex:none;min-width:0;margin:8px 0 18px}
body.cash-workspace .register-commerce>.commerce-offers-button {list-style:none;display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;padding:10px 12px;border:1px dashed #cad8be;border-radius:7px;background:#f9fbf6;color:#537043;text-align:left;cursor:pointer;overflow-wrap:anywhere;font-size:13px;line-height:1.5}
body.cash-workspace .register-commerce>.commerce-offers-button::-webkit-details-marker {display:none}
body.cash-workspace .register-commerce>.commerce-offers-button>b {font-size:11px;font-weight:500;line-height:1.5}
body.cash-workspace .register-commerce>.commerce-offers-button>small {font-size:10px;font-weight:400;line-height:1.5}
body.cash-workspace .register-commerce>.commerce-offers-button:hover {background:#edf4e7;border-color:#789b67}
body.cash-workspace .register-commerce>.commerce-offers-button:focus-visible {outline:2px solid #789b67;outline-offset:3px}
body.cash-workspace .register-commerce-controls {max-height:min(220px,30dvh);overflow:auto;overscroll-behavior:contain;padding:10px 0 0;scrollbar-width:thin}
body.cash-workspace .register-commerce-controls #cash-customer .customer-picker {margin:0;padding:0;border:0;background:transparent;min-height:0}
body.cash-workspace .register-commerce-controls #cash-customer .customer-picker-current {display:none}
body.cash-workspace .register-commerce-controls #cash-customer .customer-picker-actions {justify-content:flex-start}
body.cash-workspace .register-commerce-controls .register-discount {margin:8px 0 0;padding:6px 0;min-height:32px}

/* The payment action stays visible while the content scrolls on short screens. */
.register-dialog.register-dialog-payment,
.register-dialog.register-quick-dialog {padding:0;border-radius:14px;max-height:calc(100dvh - 32px);overflow:hidden;color:#263d35;background:#fff;font-family:inherit}
.register-dialog.register-dialog-payment {width:min(560px,calc(100vw - 32px))}
.register-dialog.register-dialog-payment[open],
.register-dialog.register-quick-dialog[open] {display:flex;flex-direction:column}
.register-dialog.register-dialog-payment::backdrop,
.register-dialog.register-quick-dialog::backdrop,
.register-dialog.sale-result-dialog::backdrop {background:#193c2d59;backdrop-filter:blur(3px)}
.register-dialog-payment .register-dialog-heading,
.register-quick-dialog .register-dialog-heading {position:relative;flex:none;padding:24px 62px 16px 24px;margin:0;min-height:70px}
.register-dialog-payment .register-dialog-heading h2,
.register-quick-dialog .register-dialog-heading h2 {font-size:22px;font-weight:750;letter-spacing:-.4px;line-height:1.45}
.register-dialog-payment .register-dialog-heading,
.register-quick-dialog .register-dialog-heading {align-items:flex-start;justify-content:flex-start;gap:14px}
.register-dialog-payment .register-dialog-heading>svg,
.register-quick-dialog .register-dialog-heading>svg {color:#244e41;flex:none;margin-top:2px}
.register-dialog-payment .register-dialog-heading>div,
.register-quick-dialog .register-dialog-heading>div {min-width:0}
.register-dialog-payment .register-dialog-heading p {font-size:11px;line-height:1.5;font-weight:500;color:#64786b;margin:9px 0 0}
.register-dialog-payment .register-dialog-heading .icon-button,
.register-quick-dialog .register-dialog-heading .icon-button {position:absolute;right:14px;top:14px;width:40px;height:40px;min-height:40px;padding:8px;border:0;border-radius:7px}
.register-payment-content {flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;padding:0 24px 12px}
.register-dialog-payment .register-payment-total {align-items:baseline;gap:18px;margin:0;padding-bottom:21px;border-bottom:1px solid #e2e8df}
.register-dialog-payment .register-payment-total span {font-size:13px;color:#64786b}
.register-dialog-payment .register-payment-total strong {font-size:32px;font-weight:750;letter-spacing:-1px;line-height:1.4}
.register-dialog-payment .register-test-note {font-size:11px;line-height:1.6;margin:12px 0 16px;padding:0;background:transparent;color:#856c35;border:0;border-radius:0}
.register-dialog-payment .register-fiscal-choice {display:flex;align-items:center;gap:12px;min-height:44px;margin:12px 0;font-weight:600;cursor:pointer}
.register-dialog-payment .register-fiscal-choice>span {font-size:12px;line-height:1.5}
.register-dialog-payment .register-payment-label {display:block;margin:0 0 9px;font-size:12px;line-height:1.5}
.register-dialog-payment .register-payment-methods {gap:9px;margin-bottom:16px}
.register-dialog-payment .register-payment-methods button {min-height:68px;padding:8px 6px;gap:7px;border-radius:8px;font-size:12px;line-height:1.35;word-break:normal}
.register-dialog-payment .register-payment-methods button svg {width:22px;height:22px;flex:none}
.register-dialog-payment .register-payment-methods button.selected {box-shadow:none}
.register-dialog-payment .register-payment-fields {gap:12px;margin-bottom:0}
.register-dialog-payment label {font-size:12px;font-weight:600;gap:7px;color:#64786b}
.register-dialog-payment .register-payment-fields input {font-size:18px;min-height:52px;padding:10px 12px;border-radius:7px}
.register-dialog-payment .register-payment-options {grid-template-columns:140px minmax(0,1fr);gap:18px;margin:0 0 10px}
.register-dialog-payment .register-payment-options input:not([type=checkbox]) {font-size:16px;min-height:46px;padding:9px 12px;border-radius:7px}
.register-dialog-payment .register-payment-options .check {gap:10px;font-size:12px;font-weight:600;line-height:1.5;align-items:center}
.register-dialog-payment #sale-fiscal {width:22px;height:22px;min-height:22px;flex:0 0 22px;margin:0;accent-color:#244e41}
.register-dialog-payment .register-change {display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0 16px;font-size:12px;line-height:1.5;color:#64786b}
.register-dialog-payment .register-change strong {font-size:12px;font-weight:700;color:#263d35;line-height:1.5}
.register-dialog-payment .register-change>button {min-height:38px;padding:0;font-size:12px;background:transparent;color:#244e41;text-decoration:underline;text-underline-offset:4px}
.register-dialog-payment .register-payment-discount {margin:0 0 10px;font-size:11px;line-height:1.5;color:#64786b}
.register-dialog-payment .register-payment-discount>summary {padding:5px 0;cursor:pointer;font-size:11px}
.register-dialog-payment .register-payment-discount[open]>summary {margin-bottom:7px}
.register-dialog-payment .register-payment-discount input {width:100%;min-height:46px;font-size:16px;padding:9px 12px}
.register-dialog-payment #payment-status {font-size:11px;line-height:1.6;color:#64786b;margin:0;min-height:18px}
.register-payment-footer {padding:12px 24px 20px;border-top:1px solid #e2e8df;background:#fff;flex:none}
.register-payment-footer .register-confirm {margin:0;min-height:48px;font-size:13px!important}
.register-payment-footer .register-back {margin-top:7px;min-height:48px;font-size:12px;gap:8px}
.register-dialog.register-quick-dialog {width:min(1024px,calc(100vw - 48px));max-height:min(720px,calc(100dvh - 48px))}
.register-quick-dialog .register-dialog-heading {padding:24px 62px 24px 26px;border-bottom:1px solid #e2e8df}
.register-quick-body {padding:22px 26px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.register-quick-body>input {width:100%;margin:0 0 18px;min-height:46px;border-radius:7px}
.register-quick-dialog .register-quick-grid {grid-template-columns:repeat(auto-fill,minmax(185px,1fr));gap:12px;max-height:none;overflow:visible}
.register-quick-dialog .register-quick-product {min-height:116px;padding:16px;gap:14px;border-color:#cfdcca;border-radius:8px}
.register-quick-dialog .register-quick-product:hover:not(:disabled) {border-color:#789b67;background:#edf4e7!important}
.register-quick-dialog .register-product-copy strong {font-size:13px;line-height:1.45}
.register-quick-dialog .register-product-copy small {font-size:11px;line-height:1.4}
.register-quick-dialog .register-quick-product>b {font-size:16px}
.register-quick-dialog .register-quick-footer {display:block;flex:none;padding:18px 26px;border-top:1px solid #e2e8df;background:#fff}
.register-quick-check,.register-quick-actions {display:flex;align-items:center;justify-content:space-between;gap:16px}
.register-quick-check {font-size:13px;color:#64786b;margin-bottom:16px}
.register-quick-check strong {font-size:17px;color:#263d35}
.register-quick-dialog .register-quick-footer .register-pay {width:150px;min-height:46px;font-size:13px!important}
.register-dialog.register-dialog-held,
.register-dialog.register-dialog-clear {width:min(480px,calc(100vw - 32px));padding:24px;border-radius:14px}
.register-dialog-held .register-dialog-heading h2,
.register-dialog-clear .register-dialog-heading h2 {font-size:21px;line-height:1.4;font-weight:750}
.register-dialog-clear>p,
.register-dialog-held>p {font-size:13px;color:#64786b;line-height:1.7;margin:0 0 18px}
.register-dialog-held select {width:100%;min-height:46px}
.register-dialog-clear .register-clear-actions button {min-height:46px}

/* Confirmation mirrors the centered clothing sale-complete dialog. */
.register-dialog.sale-result-dialog {position:relative;width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:auto;border-radius:18px;font-family:inherit;font-size:16px;font-weight:500;line-height:normal;color:#304637}
.sale-result-dialog>.register-dialog-close {position:absolute;right:14px;top:14px;display:flex;align-items:center;justify-content:center;width:40px;min-height:40px;height:40px;padding:8px;border:0;border-radius:7px;background:transparent;color:#64786b}
.sale-result-dialog>.register-dialog-close:hover {background:#f6f8f4}
.sale-result-dialog .sale-complete-body {padding:32px 32px 24px;text-align:center}
.sale-result-dialog .sale-complete-body>svg {display:inline-block;width:42px;height:42px;margin:0;color:#245747}
.sale-result-dialog h2 {font-size:23px;line-height:normal;letter-spacing:-.6px;margin:0;padding:0 28px;font-weight:700}
.sale-result-dialog .sale-result-number {font-size:16px;line-height:1.65;color:inherit;margin:0;overflow-wrap:anywhere}
.sale-result-dialog .sale-result-change,.sale-result-dialog .sale-result-question {font-size:16px;line-height:1.65;color:inherit;margin:0}
.sale-result-dialog .sale-result-total {display:block;font-size:32px;line-height:normal;letter-spacing:normal;margin:16px 0;font-weight:700;color:inherit}
.sale-result-dialog .sale-result-status {font-size:11px;line-height:1.5;background:transparent;border:0;border-radius:0;padding:0;margin:0;color:#67756d}
.sale-result-dialog .sale-result-status p {margin:6px 0 0}
.sale-result-dialog .sale-result-actions {display:flex;flex-wrap:wrap;gap:12px;padding:20px 28px;margin:0;border-top:1px solid #e0e6de;background:#fff}
.sale-result-dialog .sale-result-actions button {flex:1;min-width:120px;width:auto;min-height:48px;padding:0 20px;font-size:14px;font-weight:650;line-height:normal;display:flex;align-items:center;justify-content:center;gap:9px;border-radius:9px}
.sale-result-dialog .sale-result-actions button svg {width:18px;height:18px;flex:none}
.sale-result-dialog #sale-result-check {width:100%;margin-top:14px;min-height:42px;font-size:12px}
.sale-result-dialog #sale-result-next {background:#244e41;color:#fff;border-color:#244e41;min-height:48px;font-size:14px!important}

@container receipt (max-width:760px) {
  body.cash-workspace .register-scan {grid-template-columns:minmax(0,1fr) 44px 44px 76px;gap:8px;padding-bottom:12px}
  body.cash-workspace .register-scan input {min-height:44px}
  body.cash-workspace .register-search-input #cash-search {min-height:42px}
  body.cash-workspace .register-scan .register-square {height:44px;min-height:44px}
  body.cash-workspace .register-items-title {padding:12px 0 8px}
}
@container receipt (max-width:650px) {
  body.cash-workspace .register-lines th {padding:10px 4px}
  body.cash-workspace .register-lines td {padding:12px 4px}
  body.cash-workspace .register-lines th:nth-child(2) {width:112px}
  body.cash-workspace .register-lines th:nth-child(3),
  body.cash-workspace .register-lines th:nth-child(4) {width:82px}
  body.cash-workspace .register-lines th:last-child {width:36px}
  body.cash-workspace .register-stepper {width:104px}
  body.cash-workspace .register-stepper button {width:30px;min-width:30px}
  body.cash-workspace .register-stepper input {width:40px}
  body.cash-workspace .register-remove {width:26px;min-width:26px}
  body.cash-workspace #cash-customer .customer-picker {align-items:flex-start;flex-direction:column;gap:7px}
  body.cash-workspace #cash-customer .customer-picker-actions {justify-content:flex-start}
}
@media (min-width:801px) and (max-width:1200px) {
  body.cash-workspace .register-layout {grid-template-columns:minmax(0,1fr) 240px;gap:16px;padding:16px}
  body.cash-workspace .register-summary {padding-left:16px}
  body.cash-workspace .register-grand-total {font-size:34px}
}
@media (max-height:700px) {
  body.cash-workspace .register-layout {padding-top:12px;padding-bottom:12px}
  body.cash-workspace .register-grand-total {margin:12px 0;font-size:32px}
  body.cash-workspace .register-stock-hint {margin-bottom:12px}
  body.cash-workspace .register-summary-action {min-height:40px;margin-top:6px}
  .register-dialog-payment .register-dialog-heading {padding:16px 60px 12px 16px;min-height:60px}
  .register-payment-content {padding:0 16px 12px}
  .register-payment-footer {padding:12px 16px 16px}
  .register-dialog-payment .register-payment-total {padding-bottom:16px}
  .register-dialog-payment .register-test-note {margin:10px 0 12px}
  .register-dialog-payment .register-payment-methods button {min-height:64px}
}
@media (max-width:800px) {
  body.cash-workspace .register-layout {grid-template-columns:1fr;grid-template-rows:auto auto;gap:18px;padding:18px 16px;overflow:visible}
  body.cash-workspace .register-receipt {height:auto;min-height:420px;overflow:visible}
  body.cash-workspace .register-lines-scroll {min-height:200px;max-height:52dvh}
  body.cash-workspace .register-summary {height:auto;overflow:visible;border-left:0;border-top:1px solid #e2e8df;padding:18px 0 0}
  body.cash-workspace .register-summary-actions {flex:none;overflow:visible}
  body.cash-workspace .register-grand-total {font-size:36px;margin:15px 0}
  body.cash-workspace .register-fiscal-hint {margin-top:16px}
}
@media (max-width:540px) {
  body.cash-workspace .register-layout {padding:16px}
  body.cash-workspace .register-heading h1 {font-size:20px}
  body.cash-workspace .register-scan {grid-template-columns:minmax(0,1fr) 44px 44px;gap:8px}
  body.cash-workspace .register-scan .register-name {grid-column:1 / -1}
  body.cash-workspace .register-add-quantity {grid-column:1;grid-row:2}
  body.cash-workspace .register-scan>.register-square {grid-row:2}
  body.cash-workspace .register-lines {min-width:0}
  body.cash-workspace .register-lines thead {display:none}
  body.cash-workspace .register-lines tbody {display:block}
  body.cash-workspace .register-lines tr {display:grid;grid-template-columns:104px minmax(0,1fr) minmax(0,1fr) 28px;gap:8px;align-items:end;padding:14px 0;border-bottom:1px solid #e2e8df}
  body.cash-workspace .register-lines td {display:block;padding:0!important;border:0;min-width:0}
  body.cash-workspace .register-lines td:first-child {grid-column:1 / -1}
  body.cash-workspace .register-lines td:nth-child(2)::before,
  body.cash-workspace .register-lines td:nth-child(3)::before,
  body.cash-workspace .register-lines td:nth-child(4)::before {display:block;font-size:10px;line-height:1.4;color:#64786b;margin:2px 0 6px;white-space:nowrap}
  body.cash-workspace .register-lines td:nth-child(2)::before {content:'Количество';text-align:left}
  body.cash-workspace .register-lines td:nth-child(3)::before {content:'Цена, ₸'}
  body.cash-workspace .register-lines td:nth-child(4)::before {content:'Сумма'}
  body.cash-workspace .register-lines td:nth-child(4) strong {height:40px;display:flex;align-items:center;justify-content:flex-end;font-size:12px}
  body.cash-workspace .register-lines td input.price {max-width:100%;font-size:12px;padding:6px 0}
  body.cash-workspace .register-stepper {margin:0}
  body.cash-workspace .register-lines td small {margin-top:3px}
  .register-dialog-payment .register-dialog-heading {padding-left:18px}
  .register-payment-content {padding-left:18px;padding-right:18px}
  .register-payment-footer {padding:12px 18px 16px}
  .register-dialog-payment .register-payment-options {grid-template-columns:1fr;gap:10px}
  .register-dialog-payment .register-payment-options .check {min-height:38px}
  .register-dialog-payment .register-payment-methods button {font-size:11px;min-height:72px}
  .register-dialog.register-quick-dialog {width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}
  .register-quick-dialog .register-dialog-heading {padding:20px 56px 20px 18px}
  .register-quick-body {padding:18px}
  .register-quick-dialog .register-quick-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .register-quick-dialog .register-quick-product {padding:12px;min-height:120px;gap:12px}
  .register-quick-dialog .register-product-copy strong {font-size:12px}
  .register-quick-dialog .register-quick-footer {padding:16px 18px;flex-wrap:wrap}
  .register-quick-dialog .register-quick-footer .mini {width:100%}
  .sale-result-dialog .sale-complete-body {padding:28px 20px 24px}
  .sale-result-dialog h2 {font-size:22px;padding:0 20px}
  .sale-result-dialog .sale-result-actions {flex-direction:column;padding:16px}
}


/* Final rendered-reference spacing and responsive controls. */
@media screen {
  .sale-result-dialog .sale-result-actions #sale-result-next { flex:0 0 100%; width:100%; }
  @media (max-width:520px) {
    .sale-result-dialog .sale-result-actions { flex-direction:column; }
    .sale-result-dialog .sale-result-actions button { flex:none; width:100%; }
    .sale-result-dialog .sale-result-actions #sale-result-next { flex:none; }
  }
}

/* Whole-receipt price tier and the real, configured quick panels. */
body.cash-workspace .register-heading-controls {display:flex;align-items:center;gap:14px;min-width:0}
body.cash-workspace .register-price-modes {display:inline-flex;flex:none;border:1px solid #cfdcca;border-radius:7px;padding:3px;background:#f6f8f4;gap:3px}
body.cash-workspace .register-price-modes button {min-height:28px;padding:4px 10px;border:0;border-radius:5px;font-size:11px;background:transparent;color:#64786b}
body.cash-workspace .register-price-modes button[aria-pressed=true] {background:#e3eedc;color:#244e41}
body.cash-workspace .register-scan {grid-template-columns:minmax(150px,1fr) 48px 48px 90px 160px}
body.cash-workspace .register-scan select {width:100%;min-width:0;min-height:48px;padding:10px 12px;font:inherit;font-size:13px;border:1px solid #cfdcca;border-radius:7px;background:#fff;color:#263d35}
body.cash-workspace .register-quick-trigger {position:relative}
body.cash-workspace .register-quick-count {position:absolute;right:3px;top:3px;min-width:15px;height:15px;display:grid;place-items:center;border-radius:50%;background:#244e41;color:#fff;font-size:9px;line-height:1}
.register-product-price {display:flex;flex-direction:column;gap:4px;margin-top:auto;color:#244e41}
.register-product-price>b {font-size:16px;white-space:nowrap;color:#244e41}
.register-product-price>small {font-size:10px;font-weight:400;color:#64786b}
.register-result-product .register-product-price {margin-top:0;text-align:right}
.register-result-product .register-product-price>b {font-size:13px}
.register-dialog .register-quick-tabs {display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.register-dialog .register-quick-tabs button {font-size:13px;border:1px solid #cfdcca;color:#244e41;border-radius:7px;padding:10px 16px;min-height:44px;background:#fff;overflow-wrap:anywhere}
.register-dialog .register-quick-tabs button[aria-selected=true] {border-color:#789b67;background:#edf4e7}
.register-dialog .register-quick-empty {grid-column:1 / -1;display:flex;align-items:center;gap:14px;padding:20px;border:1px dashed #cfdcca;border-radius:8px;font-size:13px;line-height:1.6;color:#64786b}
.register-dialog .register-quick-empty svg {flex:none}
.register-dialog .register-quick-empty p {margin:0}
.register-dialog .register-quick-manage {padding:8px 0;min-height:44px;display:flex;align-items:center;gap:8px;background:transparent;color:#64786b;font-size:13px}
.register-dialog .register-quick-actions {flex-wrap:wrap;gap:12px}
.register-dialog .register-quick-actions .register-quick-manage {margin-right:auto}
.register-dialog.register-quick-settings-dialog,.register-dialog.register-quick-editor-dialog {width:min(1190px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 48px);padding:0;overflow:hidden;border:1px solid #dfe6db;border-radius:17px;background:#fff;color:#263d35;box-shadow:0 24px 100px #163b2b35}
.register-dialog.register-quick-settings-dialog {width:min(1000px,calc(100vw - 48px))}
.register-dialog.register-quick-editor-dialog {height:min(780px,calc(100dvh - 48px))}
.register-dialog.register-quick-settings-dialog[open],.register-dialog.register-quick-editor-dialog[open] {display:flex;flex-direction:column}
.register-quick-settings-dialog::backdrop,.register-quick-editor-dialog::backdrop {background:#263d354f;backdrop-filter:blur(3px)}
.register-quick-settings-dialog>.register-dialog-heading,.register-quick-editor-dialog>.register-dialog-heading {position:relative;display:flex;align-items:flex-start;justify-content:flex-start;gap:14px;margin:0;padding:22px 62px 20px 24px;border-bottom:1px solid #e5e9e1;flex:none}
.register-quick-settings-dialog .register-dialog-heading h2,.register-quick-editor-dialog .register-dialog-heading h2 {font-size:23px;line-height:1.4;margin:0}
.register-quick-settings-dialog .register-dialog-heading p {font-size:12px;line-height:1.5;color:#748279;margin:8px 0 0}
.register-quick-settings-dialog>.register-dialog-heading>svg {margin-top:3px;color:#244e41;flex:none}
.register-quick-settings-dialog .register-dialog-close,.register-quick-editor-dialog .register-dialog-close {position:absolute;right:14px;top:14px;min-width:40px;min-height:40px;padding:8px;background:transparent;border:0;color:#64786b}
.register-quick-settings-dialog .qp-manager-body {padding:0 24px 24px;overflow:auto;min-height:0;flex:1}
.qp-local-hint {font-size:13px;line-height:1.6;color:#748279;padding:12px 15px;border:1px solid #e4eadf;background:#f8faf6;border-radius:9px;margin:18px 0}
.qp-count {padding:6px 10px;border-radius:7px;background:#f0f4ec;color:#617b58;font-size:12px;white-space:nowrap}
.qp-toolbar {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0}
.qp-toolbar>div,.qp-row-actions {display:flex;align-items:center;gap:7px}
.qp-toolbar button {min-height:44px;padding:10px 15px;width:auto;font-size:12px!important}
.qp-empty {display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:42px 22px;border:1px dashed #dce5d7;border-radius:12px;background:#fcfdfb;color:#84907e}
.qp-empty h3 {color:#405b4b;font-size:16px;margin:0}
.qp-empty p {font-size:13px;line-height:1.6;max-width:460px;margin:0}
.qp-panel-list {display:grid;gap:10px}
.qp-panel-row {display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid #e2e8de;border-radius:11px;background:#fff}
.qp-panel-icon {display:grid;place-items:center;width:43px;height:43px;flex:none;border-radius:10px;background:#eef4e9;color:#557b59}
.qp-panel-name {display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;flex:1;min-width:0;text-align:left;padding:0;background:transparent;border:0;color:#263d35}
.qp-panel-name strong {font-size:14px;overflow-wrap:anywhere}
.qp-panel-name small {font-size:12px;color:#87917f;font-weight:500}
.qp-row-actions>button,.qp-selected-product button {width:36px;min-width:36px;height:36px;min-height:36px;padding:0;border:1px solid #e3e8df;border-radius:8px;background:#fff;color:#617d68;font-size:16px}
.register-quick-settings-dialog>.register-quick-footer,.register-quick-editor-dialog>.register-quick-footer {flex:none;padding:16px 24px;border-top:1px solid #e5e9e1;background:#fff;display:flex;align-items:center;justify-content:flex-end;gap:12px}
.register-quick-settings-dialog>.register-quick-footer .register-pay {width:150px;min-height:46px}
.qp-editor-body {display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.register-quick-editor-dialog .qp-name-field {display:grid;gap:7px;padding:15px 24px;margin:0;flex:none;font-size:12px}
.register-quick-editor-dialog input,.register-quick-editor-dialog select {min-height:44px;padding:10px 12px;font-size:13px;background:#fff;color:#263d35;border:1px solid #cfdcca;border-radius:7px}
.register-quick-editor-dialog .register-error {margin:0 24px 12px;font-size:12px;color:#a04b36;background:#fff0eb;padding:10px;border-radius:7px}
.qp-editor-columns {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;padding:0 24px 18px;flex:1;min-height:0;overflow:hidden}
.qp-editor-columns>section {display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid #e0e7da;border-radius:11px;overflow:hidden;background:#fff}
.qp-editor-columns h3 {font-size:13px;font-weight:650;padding:14px 16px;border-bottom:1px solid #e5ebde;margin:0;flex:none}
.qp-catalog-filters {display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:8px;padding:12px;flex:none}
.qp-catalog-filters input,.qp-catalog-filters select {min-width:0;width:100%}
.qp-catalog-list,.qp-selected-list {min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;flex:1}
.qp-catalog-product {display:flex!important;align-items:center;gap:10px;padding:12px;border-bottom:1px solid #edf0e9;cursor:pointer;margin:0!important;min-height:68px}
.qp-catalog-product input[type=checkbox] {width:20px;height:20px;min-height:20px;margin:0;flex:none;accent-color:#244e41}
.qp-catalog-product>span {flex:1;min-width:0}
.qp-catalog-product strong,.qp-catalog-product small {display:block;overflow-wrap:anywhere}
.qp-catalog-product strong {font-size:12px;color:#263d35;line-height:1.5}
.qp-catalog-product small {font-size:10px;color:#87917f;font-weight:400;line-height:1.5;margin-top:4px}
.qp-catalog-product>b {font-size:12px;color:#244e41;white-space:nowrap}
.qp-catalog-footer {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-top:1px solid #e5ebde;flex:none;font-size:11px}
.qp-catalog-footer button {min-height:34px;padding:5px 10px;font-size:11px}
.qp-selected-product {display:flex;align-items:center;gap:10px;padding:12px;border-bottom:1px solid #edf0e9;font-size:12px;color:#263d35}
.qp-selected-product>span {flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.5}
.qp-selected-product>div {display:flex;gap:5px;flex:none}
.register-quick-editor-dialog .qp-editor-actions .register-pay {width:160px;min-height:46px}
.register-quick-editor-dialog .qp-editor-actions .secondary {min-height:46px;padding:10px 18px}
@container receipt (max-width:760px) {
  body.cash-workspace .register-scan {grid-template-columns:minmax(0,1fr) 44px 44px 76px;gap:8px}
  body.cash-workspace .register-group {grid-column:1 / -1;display:flex;align-items:center;gap:12px}
  body.cash-workspace .register-group select {width:180px;min-height:34px;margin:0;padding:5px 10px}
  body.cash-workspace .register-heading {flex-wrap:wrap}
}
@media (max-width:700px) {
  .register-dialog.register-quick-settings-dialog,.register-dialog.register-quick-editor-dialog {width:calc(100vw - 24px);max-height:calc(100dvh - 24px);height:auto}
  .register-dialog.register-quick-editor-dialog {height:calc(100dvh - 24px)}
  .qp-editor-columns {grid-template-columns:1fr;overflow:auto;gap:14px;padding:0 16px 16px}
  .qp-editor-columns>section {min-height:260px;overflow:visible}
  .qp-catalog-list,.qp-selected-list {max-height:300px;flex:none;overflow:auto}
  .qp-catalog-filters {grid-template-columns:1fr}
  .register-quick-settings-dialog .qp-manager-body {padding:0 16px 16px}
  .qp-panel-row {flex-wrap:wrap;padding:12px;gap:10px}
  .qp-panel-name {min-width:calc(100% - 60px)}
  .qp-row-actions {margin-left:auto}
  .qp-toolbar {gap:10px}
  .qp-toolbar>div {flex-wrap:wrap}
  .qp-local-hint {font-size:12px}
  .qp-catalog-product>b {font-size:11px}
  body.cash-workspace .register-catalog-count {display:none}
  body.cash-workspace .register-heading-controls {margin-left:auto}
  body.cash-workspace .register-quick-actions .register-quick-manage {width:100%}
}
@media (max-width:540px) {
  body.cash-workspace .register-scan {grid-template-columns:repeat(6,minmax(0,1fr))}
  body.cash-workspace .register-scan .register-name {grid-column:1 / 5}
  body.cash-workspace .register-scan>.register-square:not(.register-quick-trigger) {grid-column:5;grid-row:1}
  body.cash-workspace .register-scan>.register-quick-trigger {grid-column:6;grid-row:1}
  body.cash-workspace .register-add-quantity {grid-column:1 / 3;grid-row:2}
  body.cash-workspace .register-group {grid-column:3 / 7;grid-row:2;display:block}
  body.cash-workspace .register-group select {width:100%;min-height:44px;margin-top:5px}
  body.cash-workspace .register-heading h1 {font-size:19px}
  body.cash-workspace .register-heading-controls {gap:0}
  body.cash-workspace .register-price-modes button {padding:4px 8px}
}
