/* Scan-first cash workspace, matching КостКасса одежда/src/register.css. */
body.cash-workspace{--accent:#244e41;--ink:#263d35;--muted:#64786b;--line:#e2e8df;background:#fff;color:var(--ink)}
.cash-workspace .topbar{min-height:64px;padding-top:10px;padding-bottom:10px}
.cash-workspace .app-main{max-width:none;padding:0;min-height:0}
.cash-workspace .workspace-heading{padding:0 20px;min-height:40px;border-bottom:1px solid var(--line);margin:0;gap:12px}
.cash-workspace .workspace-heading h1,.cash-workspace .workspace-heading .eyebrow{display:none}
.cash-workspace .workspace-heading .muted{font-size:11px;margin:0;line-height:1.5}
.cash-workspace .heading-actions button{font-size:11px;min-height:34px;padding:4px 7px;border:0;background:transparent;color:var(--muted)}
.cash-workspace #queue-warning{margin:8px 20px;flex:none}
.cash-workspace #page-content>.sale-saved{margin:8px 20px;padding:9px 12px;border-radius:6px;box-shadow:none;flex:none}
.cash-workspace #page-content>.card:not(.sale-saved){margin:20px}
.register-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(255px,26%,320px);gap:20px;padding:18px 20px;margin:0;min-height:0;flex:1;overflow:hidden}
.register-layout button{font-size:13px;font-weight:600}
.register-layout button:not(.register-pay):not(.register-square):not(.secondary){background:transparent;color:var(--muted)}
.register-layout button:not(.register-pay):hover:not(:disabled){background:#f6f8f4;color:#244e41}
.register-layout input,.register-layout select{color:#263d35;border-color:#cfdcca;background:#fff;box-shadow:none}
.register-layout input:focus,.register-layout select:focus{border-color:#789b67;outline:2px solid #789b6724}
.register-layout input::placeholder{color:#879383}
.register-receipt{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.register-heading,.register-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.register-heading{min-height:32px;margin-bottom:12px}
.register-heading h1{font-size:22px;font-weight:750;letter-spacing:-.5px;margin:0}
.register-section-title h2{font-size:16px;margin:0;font-weight:650}
.register-section-title>span{font-size:11px;color:var(--muted);white-space:nowrap}
.register-entry{position:relative;flex:none;min-width:0}
.register-scan{display:grid;grid-template-columns:minmax(150px,1fr) 48px 48px 90px;align-items:end;gap:10px;padding-bottom:17px;border-bottom:1px solid var(--line)}
.register-scan label{margin:0;gap:5px;font-size:11px;font-weight:500;min-width:0}
.register-scan input{min-height:48px;width:100%;min-width:0}
.register-search-input{display:flex;gap:12px;align-items:center;border:1px solid #cfdcca;border-radius:7px;padding:0 13px;color:var(--muted)}
.register-search-input:focus-within{border-color:#789b67;box-shadow:0 0 0 2px #789b6724}
.register-search-input #cash-search{border:0;outline:0;width:0;flex:1;min-width:0;padding:10px 0;min-height:46px;background:transparent}
.register-square{height:48px;min-height:48px;border:1px solid var(--line);padding:0;border-radius:7px;background:#f6f8f4;color:#244e41}
.register-quick-trigger{border-color:#789b67;background:#edf4e7}
.register-search-results{position:absolute;left:0;right:0;top:calc(100% - 8px);z-index:15;background:#fff;border:1px solid #cfdcca;border-radius:9px;padding:12px;box-shadow:0 8px 24px #193c2d20}
.register-result-list{max-height:290px;overflow:auto;scrollbar-width:thin;margin:8px 0}
.register-result-product{display:grid;grid-template-columns:minmax(0,1fr) auto 18px;gap:12px;align-items:center;width:100%;text-align:left;padding:10px 8px;border-radius:5px;min-height:60px}
.register-product-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.register-product-copy strong{font-size:13px;line-height:1.4;color:var(--ink);font-weight:600;overflow-wrap:anywhere}
.register-product-copy small{font-size:10px;line-height:1.4;color:var(--muted);font-weight:400}
.register-result-product>b{white-space:nowrap;color:#244e41}
.register-items-title{padding:18px 0 12px}
.register-lines-scroll{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;scrollbar-width:thin;overscroll-behavior:contain}
.register-lines{table-layout:fixed;font-size:13px;flex:none}
.register-lines th{position:sticky;top:0;background:#fff;color:var(--muted);font-size:11px;font-weight:400;padding:12px 8px 14px;letter-spacing:0;z-index:1}
.register-lines th:first-child{padding-left:0}
.register-lines th:nth-child(2){width:142px;text-align:center}
.register-lines th:nth-child(3){width:100px;text-align:right}
.register-lines th:nth-child(4){width:110px;text-align:right}
.register-lines th:last-child{width:38px}
.register-lines td{padding:12px 8px;border-bottom:1px solid var(--line);color:var(--ink);line-height:1.4}
.register-lines td:first-child{padding-left:0;overflow-wrap:anywhere}
.register-lines td strong{display:block;font-size:13px;font-weight:600}
.register-lines td small{display:block;font-size:10px;color:var(--muted);margin-top:6px}
.register-lines td .register-line-barcode{font-size:9px;margin-top:3px}
.register-lines td:nth-child(3),.register-lines td:nth-child(4){text-align:right;font-variant-numeric:tabular-nums}
.register-lines td input.price{width:100%;min-width:0;max-width:90px;background:transparent;border-color:transparent;text-align:right;padding:8px 4px}
.register-lines td input.price:focus{border-color:#cfdcca}
.register-stepper{display:flex;align-items:center;justify-content:center;border:1px solid #cfdcca;border-radius:6px;width:126px;margin:auto}
.register-stepper button{width:33px;min-width:33px;min-height:40px;height:40px;padding:0;border:0}
.register-stepper .ui-icon{width:14px;height:14px}
.register-stepper input{min-height:40px;height:40px;min-width:0;width:56px;border:0;border-radius:0;padding:0;text-align:center;appearance:textfield}
.register-stepper input::-webkit-inner-spin-button,.register-stepper input::-webkit-outer-spin-button{appearance:none;margin:0}
.register-remove{padding:0;min-width:28px;width:28px;min-height:40px}
.register-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;min-height:120px;gap:12px;padding:20px 12px;text-align:center;color:var(--muted)}
.register-empty>.ui-icon{width:36px;height:36px;opacity:.5}
.register-empty strong{font-size:14px;font-weight:500}
.register-empty p{font-size:11px;margin:0}
.register-empty .secondary{font-size:12px;min-height:38px}
.register-receipt-footer{display:flex;align-items:center;justify-content:space-between;padding-top:10px;font-size:11px;flex:none}
.register-receipt-footer strong{font-size:13px}
.register-shortcuts{font-size:10px;color:var(--muted);margin:8px 0 0;line-height:1.5;flex:none}
.register-summary{display:flex;flex-direction:column;min-height:0;min-width:0;border-left:1px solid var(--line);padding-left:20px;overflow:auto;scrollbar-width:thin}
.register-summary>.register-section-title{min-height:30px}
.register-summary h2{font-size:17px}
.register-grand-total{font-size:40px;font-weight:750;letter-spacing:-1.3px;margin:20px 0;line-height:1.2;overflow-wrap:anywhere;display:block;flex:none}
.register-discount{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%;border:1px solid var(--line);border-radius:0;background:#f9faf6!important;min-height:70px;margin:6px 0 14px;padding:12px;font-size:12px!important}
.register-discount strong{font-size:11px;font-weight:400}
.register-stock-hint{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted);margin:14px 0 17px;line-height:1.6;flex:none}
.register-pay{width:100%;border-radius:7px;min-height:52px;padding:12px 18px;background:#244e41;color:#fff;font-size:14px!important;font-weight:700!important;flex:none}
.register-pay:hover:not(:disabled){background:#193d31}
.register-pay:disabled{opacity:1;background:#e4e9e1;color:#64786b;cursor:not-allowed}
.register-summary-actions{display:flex;flex-direction:column;flex:1;min-height:180px;margin-top:8px}
.register-summary-action{width:100%;justify-content:center;gap:9px;min-height:48px;margin-top:5px;padding:5px 0;color:var(--muted)}
.register-summary-action span{font-size:11px;border-radius:5px;background:#edf4e7;padding:3px 8px;margin-left:auto}
.register-fiscal-hint{font-size:10px;line-height:1.6;color:var(--muted);border-top:1px solid var(--line);padding-top:12px;margin-top:16px;flex:none}
.register-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #cfdcca;border-radius:12px;box-shadow:0 16px 55px #193c2d24;padding:24px;color:#263d35;background:#fff;scrollbar-width:thin}
.register-dialog::backdrop{background:#193c2d59}
.register-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px}
.register-dialog-heading h2{font-size:21px;margin:0;color:#263d35}
.register-dialog .icon-button{background:transparent;color:#64786b}
.register-dialog label{color:#64786b;font-size:12px}
.register-dialog input,.register-dialog select{border-color:#cfdcca;min-height:45px}
.register-payment-total{display:flex;align-items:center;justify-content:space-between;font-size:13px;margin:10px 0 14px}
.register-payment-total strong{font-size:32px;letter-spacing:-1px}
.register-test-note{font-size:11px;color:#856c35;background:#fff8e8;padding:10px 12px;border-radius:6px;line-height:1.6;margin:0 0 18px}
.register-payment-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.register-payment-methods button{display:flex;flex-direction:column;gap:8px;border:1px solid #cfdcca;background:#fff!important;border-radius:7px;min-height:76px;padding:12px 5px;color:#64786b!important;font-size:12px}
.register-payment-methods button.selected{background:#edf4e7!important;border-color:#789b67;color:#244e41!important;box-shadow:inset 0 0 0 1px #789b67}
.register-payment-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px}
.register-payment-fields input{width:100%}
.register-payment-options{display:grid;grid-template-columns:130px minmax(0,1fr);gap:18px;align-items:center}
.register-payment-options label{min-width:0}
.register-payment-options input:not([type=checkbox]){width:100%;min-width:0}
.register-payment-options .check{font-size:11px;line-height:1.6}
.register-change{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin:15px 0}
.register-change strong{font-size:22px}
.register-dialog #payment-status{display:block;font-size:11px;color:#64786b;line-height:1.6;margin-bottom:14px}
.register-confirm{margin-top:8px}
.register-back{width:100%;background:transparent!important;color:#64786b!important;margin-top:8px;font-size:12px}
.register-quick-dialog{width:min(1000px,calc(100vw - 32px))}
.register-quick-dialog>input{width:100%;margin-bottom:16px}
.register-quick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px;max-height:52dvh;overflow:auto;scrollbar-width:thin}
.register-quick-product{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:12px;min-height:126px;padding:14px;border:1px solid #e2e8df;border-radius:8px;background:#fff!important;color:#244e41!important}
.register-quick-product>b{font-size:17px;margin-top:auto}
.register-quick-product>.ui-icon{align-self:flex-end;width:16px;height:16px;margin-top:-30px}
.register-quick-footer{display:flex;align-items:center;gap:12px;padding-top:18px}
.register-quick-footer .register-pay{width:auto;margin-left:auto;min-width:120px;min-height:40px}
.register-clear-actions{display:flex;gap:12px;margin-top:22px}
.register-clear-actions>*{flex:1;width:auto}
@media(min-width:801px){
 body.cash-workspace{--sidebar-width:76px;height:100dvh;overflow:hidden;display:flex;flex-direction:column}
 .cash-workspace .topbar{padding-left:290px;flex:none}
 .cash-workspace .breadcrumb>span:first-child{display:none}
 .cash-workspace .sidebar{padding:12px 10px;background:#fff;border-right:1px solid var(--line);overflow:visible;box-shadow:none}
 .cash-workspace .sidebar .brand{justify-content:center;width:54px;height:40px}
 .cash-workspace .sidebar .brand>span:last-child{display:none}
 .cash-workspace .brand-symbol{width:40px;height:42px;background:#244e41;border-color:#244e41;color:#edf4e7;border-radius:8px}
 .cash-workspace .workspace-label,.cash-workspace .navigation-label,.cash-workspace .sidebar-sync,.cash-workspace .sidebar-copy,.cash-workspace .sidebar-version{display:none}
 .cash-workspace .store-switcher{position:fixed;top:10px;left:92px;width:250px;min-height:44px;height:44px;background:#fff;border-color:var(--line);padding:0 8px}
 .cash-workspace .store-switcher select{background:#fff;color:#263d35;font-size:12px}
 .cash-workspace .store-switcher-icon{color:var(--muted)}
 .cash-workspace .navigation{margin-top:26px;gap:9px;flex:1;padding:0;overflow-x:hidden}
 .cash-workspace .navigation button{min-height:49px;width:54px;padding:13px;justify-content:center;color:#64786b;border-radius:9px}
 .cash-workspace .navigation button>span,.cash-workspace .navigation .nav-chevron{display:none}
 .cash-workspace .navigation button>.ui-icon{width:21px;height:21px;color:#64786b}
 .cash-workspace .navigation button.active{background:#e5eedf;border-color:#e5eedf;color:#244e41}
 .cash-workspace .navigation button.active>.ui-icon{color:#244e41}
 .cash-workspace .navigation button:hover:not(:disabled){background:#f1f5ec;color:#244e41}
 .cash-workspace .sidebar-back{width:54px;min-height:40px;font-size:0;justify-content:center;color:#64786b;padding:8px;margin:8px 0 -15px}
 .cash-workspace .sidebar-back .ui-icon{width:20px;height:20px}
 .cash-workspace .sidebar-bottom{padding:0;margin:0}
 .cash-workspace .app-main{flex:1;min-height:0;padding:0}
 .cash-workspace #workspace{height:100%;min-height:0;display:flex;flex-direction:column}
 .cash-workspace .workspace-heading{flex:none}
 .cash-workspace #page-content{flex:1;min-height:0;display:flex;flex-direction:column}
 .cash-workspace #notice{margin:7px 20px 7px 96px;padding:7px 12px;flex:none}
 .cash-workspace #top-cash{display:none}
}
@media(min-width:801px) and (max-width:1100px){
 .register-layout{grid-template-columns:minmax(0,1fr) 250px;gap:15px;padding:15px}
 .register-summary{padding-left:15px}
 .register-grand-total{font-size:32px}
 .register-lines th:nth-child(2){width:110px}.register-lines th:nth-child(3){width:75px}.register-lines th:nth-child(4){width:85px}.register-lines th:last-child{width:28px}
 .register-stepper{width:100px}.register-stepper button{width:25px;min-width:25px}.register-stepper input{width:46px}
 .register-scan{grid-template-columns:minmax(120px,1fr) 42px 42px 70px;gap:7px}
 .register-stock-hint{margin:10px 0;font-size:10px}
}
@media(max-width:800px){
 .cash-workspace .app-main{padding:0}.cash-workspace .workspace-heading{padding:8px 16px;flex-direction:row;align-items:center;gap:8px}
 .cash-workspace .workspace-heading .muted{font-size:10px}.cash-workspace .heading-actions{width:auto}
 .register-layout{grid-template-columns:1fr;gap:18px;padding:18px 16px;overflow:visible}
 .register-receipt{min-height:420px;overflow:visible}.register-lines-scroll{min-height:220px;max-height:52dvh;flex:auto}
 .register-summary{border-left:0;border-top:1px solid var(--line);padding:18px 0 0;overflow:visible}
 .register-grand-total{font-size:36px;margin:15px 0}.register-summary-actions{min-height:0}
 .register-scan{grid-template-columns:minmax(0,1fr) 42px 42px;gap:8px}.register-scan .register-name{grid-column:1 / -1}
 .register-add-quantity{grid-column:1;grid-row:2}.register-scan>.register-square{grid-row:2}
 .register-lines{min-width:560px}.register-lines th:nth-child(2){width:125px}.register-lines th:nth-child(3){width:90px}.register-lines th:nth-child(4){width:95px}
 .register-payment-methods{grid-template-columns:repeat(3,minmax(0,1fr))}.register-payment-methods button{font-size:11px}.register-payment-options{grid-template-columns:1fr}
 .register-dialog{padding:20px}.register-dialog-heading h2{font-size:20px}
 .register-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.register-quick-product{padding:10px}.register-quick-product .register-product-copy strong{font-size:12px}
 .register-quick-footer{flex-wrap:wrap}.register-quick-footer .register-pay{min-width:90px}
}
