/* Hanam ERP — restrained desktop workspace */

:root{font-family:'Segoe UI','Malgun Gothic',system-ui,sans-serif;font-size:14px;color:var(--ws-text,#253039);background:var(--ws-raised,#f5f6f8);--green:var(--ws-accent-solid,#204c43);--line:var(--ws-line,#e2e6ea);--ink:var(--ws-text,#1b2730);--muted:var(--ws-text,#4b5660)}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--ws-line,#dce1e5);border-radius:3px;background:var(--ws-panel,#fff);padding:8px 14px;color:var(--ws-text,#3f4a53);min-height:36px;font-size:13px;font-weight:500;transition:background .15s,border-color .15s}button:hover{background:var(--ws-raised,#f0f4f2);border-color:var(--ws-line,#b7c8c0)}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--ws-line-strong,#548d7c);outline-offset:3px}.primary{background:var(--green);color:#fff;border-color:var(--green)}.primary:hover{background:#173d35;border-color:#173d35}.danger{color:var(--ws-red,#b54b45)}input,select,textarea{border:1px solid var(--ws-line,#dce1e5);border-radius:3px;padding:10px 12px;width:100%;background:var(--ws-panel,#fff);color:var(--ink);min-height:38px}input::placeholder,textarea::placeholder{color:var(--ws-muted,#65717b)}label{display:grid;gap:8px;margin:16px 0;font-size:12px;font-weight:600}header{height:76px;background:var(--ws-panel,#fff);color:var(--ink);padding:0 30px;display:flex;gap:32px;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-size:23px;letter-spacing:3px;font-weight:800;text-decoration:none;color:var(--ws-green,var(--green));white-space:nowrap;line-height:1}.brand span{font-size:9px;letter-spacing:2.4px;font-weight:600;display:block;margin-top:7px;color:var(--ws-muted,#4c6256)}.header-actions{display:flex;align-items:center;gap:10px;font-size:12px}#who{padding-right:16px;color:var(--ws-blue,#46535e);border-right:1px solid var(--line);margin-right:5px}header button{background:var(--ws-panel,#fff);color:var(--ws-blue,#52616b);border-color:var(--line);font-size:12px}#hermesToggle{color:var(--ws-green,var(--green));background:var(--ws-raised,#f1f6f3);border-color:var(--ws-line,#dce8e1)}.live{font-size:12px;display:flex;align-items:center;gap:9px;margin-right:auto;color:var(--ws-blue,#46535e)}.live i{width:6px;height:6px;border-radius:50%;background:#458e71;box-shadow:0 0 0 4px var(--ws-shadow,#eaf3ee)}.devbar{position:absolute;right:30px;top:80px;z-index:1;font-size:10px;line-height:39px;color:var(--ws-muted,#56636c);pointer-events:none}nav{display:flex;gap:4px;padding:0 28px;background:var(--ws-panel,#fff);border-bottom:1px solid var(--line);overflow:auto}nav button{border:0;border-radius:0;white-space:nowrap;background:transparent;min-height:48px;padding:0 20px;position:relative;color:var(--ws-text,#46515b);font-size:13px}nav button:hover{background:var(--ws-raised,#f7f9f8)}#major button.active{background:transparent;color:var(--ws-blue,#1261be);font-weight:700}#major button.active:after{content:'';position:absolute;bottom:0;left:20px;right:20px;height:2px;background:#1673d8}#middle{background:var(--ws-panel,#fbfcfd);padding-top:0;padding-bottom:0;gap:10px}#middle button{font-size:12px;min-height:43px;padding:0 14px}#middle button.active{background:transparent;color:var(--ws-green,#244f44);font-weight:700}#middle button.active:before{content:'';display:inline-block;width:4px;height:4px;border-radius:50%;background:#36775f;vertical-align:middle;margin-right:7px}.layout{display:flex;min-height:calc(100vh - 168px)}#minor{flex:0 0 206px;background:var(--ws-panel,#fff);padding:30px 14px;border-right:1px solid var(--line)}#minor:before{content:'';display:block;width:24px;height:2px;background:var(--ws-hover,#d5e0da);margin:0 13px 18px}#minor button{display:block;width:100%;text-align:left;border:0;border-left:2px solid transparent;border-radius:2px;margin-bottom:5px;font-size:12px;padding:12px 13px;color:var(--ws-muted,#4c5862)}#minor button.active{background:var(--ws-raised,#eef4f0);border-left-color:#2b6551;color:var(--ws-green,#254e40);font-weight:700}main{padding:30px 34px 50px;min-width:0;flex:1}h1{font-size:24px;letter-spacing:-1px;font-weight:650;margin:0;line-height:1.5;color:var(--ink)}h2{font-size:14px;letter-spacing:-.3px;font-weight:650;margin:0 0 20px;color:var(--ws-blue,#26353e)}h3{font-size:13px}.muted{color:var(--muted);font-size:12px;line-height:1.6}p{line-height:1.6}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:26px}.pagehead .muted{margin:0 0 7px;font-size:11px;color:var(--ws-muted,#56636c)}.pagehead .tag{border:1px solid var(--ws-line,#dde5df);background:var(--ws-raised,#f4f7f4);color:var(--ws-green,#4a6253)}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:0 0 24px}.card{padding:24px;border:1px solid var(--line);border-radius:3px;background:var(--ws-panel,#fff);box-shadow:none}.cards .card{position:relative;min-height:164px;border-top:2px solid var(--ws-line,#c9d6cf);padding:22px 24px 18px}.cards .card:nth-child(2){border-top-color:var(--ws-line,#d6d0be)}.cards .card:nth-child(3){border-top-color:var(--ws-line,#b9cbdc)}.cards .card:nth-child(4){border-top-color:var(--ws-line,#d2ccde)}.cards .card>span:first-child{color:var(--ws-blue,#46535e);font-size:12px;font-weight:500}.metric{font-size:34px;letter-spacing:-1.5px;font-weight:600;line-height:1.2;margin:20px 0 10px;font-variant-numeric:tabular-nums;color:var(--ws-text,#23352f)}.cards .card>span:last-of-type{font-size:10px;color:var(--ws-muted,#56636c)}.cards .card>div:last-child:not(.metric){position:absolute;top:13px;right:14px;display:flex;gap:2px}.cards .card>div:last-child:not(.metric) button{font-size:11px;min-height:24px;padding:2px 6px;background:transparent;border-color:transparent;color:var(--ws-muted,#56636c)}.cards .card:hover>div:last-child button,.cards .card:focus-within>div:last-child button{color:var(--ws-muted,#60766b);border-color:var(--ws-line-strong,#dce6df)}.grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:24px}.grid>.card{min-height:250px}.grid .card>h2{padding-bottom:17px;border-bottom:1px solid var(--ws-line,#edf0f2);margin-bottom:20px}.grid #goProducts,.grid #goPos{display:block;width:100%;text-align:left;padding:14px 16px;margin-bottom:10px;position:relative;background:var(--ws-panel,#fafbfc);border-color:var(--ws-line,#e8ecef)}.grid #goProducts:after,.grid #goPos:after{content:'↗';position:absolute;right:16px;color:var(--ws-muted,#85988f)}.toolbar{display:flex;gap:8px;margin:0 0 18px}.toolbar input{flex:1}.tablewrap{overflow:auto;background:var(--ws-panel,#fff);border:1px solid var(--line);border-radius:2px}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums}th,td{padding:15px 18px;text-align:left;border-bottom:1px solid var(--ws-line,#edf0f2)}th{font-size:11px;letter-spacing:.15px;color:var(--ws-blue,#485660);background:var(--ws-panel,#fafbfc);font-weight:600;height:47px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--ws-raised,#f8faf9)}td button{font-size:11px;min-height:28px;padding:5px 10px;color:var(--ws-green,#526a5d);border-color:var(--ws-line,#e2e8e4)}.tag{font-size:10px;padding:4px 8px;border-radius:2px;background:var(--ws-raised,#eef4ef);color:var(--ws-green,#5a7562)}.empty{padding:55px 20px;text-align:center;color:var(--ws-muted,#56636c);font-size:12px}.poslayout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,1fr);gap:24px}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product-button{text-align:left;min-height:130px;padding:22px;border-radius:3px;background:var(--ws-panel,#fff);color:var(--ws-text,#394a43)}.product-button strong{display:block;margin-bottom:16px;font-size:14px}.product-button span{display:block;font-size:11px;color:var(--ws-muted,#56636c);margin-top:9px}.cart-row{display:grid;grid-template-columns:1fr 70px 34px;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding:16px 0;font-size:12px}.total{display:flex;justify-content:space-between;font-size:20px;font-weight:650;margin:28px 0}.full{width:100%}.login{min-height:100vh;display:grid;place-items:center;padding:20px;background:var(--ws-raised,#f3f5f6)}.login form{width:min(410px,100%);padding:42px;border-top:3px solid var(--green)}.login h1{margin:36px 0 24px;font-size:22px}.login .primary{width:100%;margin-top:16px}#loginerror{color:var(--ws-red,#b54b45);font-size:12px}#chat{flex:0 0 360px;padding:24px;background:var(--ws-panel,#fff);border-left:1px solid var(--line)}.chathead{display:flex;justify-content:space-between;align-items:center;font-size:13px;padding-bottom:18px;border-bottom:1px solid var(--line)}.chathead button{border:0;min-height:28px;padding:3px 8px}.bubble{padding:14px;background:var(--ws-raised,#f1f5f2);border-radius:3px;font-size:12px;white-space:pre-wrap}.bubble.user{background:var(--ws-accent-solid,#244f43);color:#fff}#messages{height:45vh;overflow:auto}#chatform textarea{min-height:80px}#chatform button{width:100%;margin-top:8px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ws-accent-solid,#234b40);color:#fff;padding:12px 24px;border-radius:3px;z-index:10;max-width:90vw;font-size:12px;box-shadow:0 4px 20px #1b302822}dialog{border:1px solid var(--line);border-radius:3px;padding:28px;width:min(750px,95vw);max-height:90vh;overflow:auto}dialog::backdrop{background:#192c3655}video{width:100%;max-height:55vh;border-radius:3px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}.hint{border-left:2px solid var(--ws-line,#8ba995);padding:12px 16px;background:var(--ws-raised,#f0f5f1);font-size:12px}.kanban{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.kanban .card{min-height:220px}input[type=checkbox]{width:auto;min-height:auto;accent-color:var(--green)}body.posmode #hermesToggle,body.posmode #chat{display:none!important}

@media(min-width:1600px){main{padding:38px 44px}.cards .card{min-height:180px}.metric{font-size:38px}.grid>.card{min-height:280px}}

@media(max-width:1200px){header{padding:0 20px;gap:20px}.live{display:none}main{padding:26px}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}#minor{flex-basis:182px}#chat{flex-basis:310px}.poslayout{grid-template-columns:minmax(0,1fr) minmax(300px,1fr)}.devbar{right:20px}}

@media(max-width:800px){#hermesToggle,#chat{display:none!important}header{height:66px;padding:0 18px}.header-actions{gap:6px}header button{padding:8px 10px;min-height:38px}.brand{font-size:19px}.brand span{font-size:8px}#who,.devbar{display:none}nav{padding:0 10px;gap:0}nav button{min-height:46px;padding:0 14px;font-size:12px}#major button.active:after{left:14px;right:14px}#middle{gap:2px}#middle button{padding:0 12px;min-height:42px}#minor{flex:initial;display:flex;gap:4px;overflow:auto;padding:8px 12px;border-right:0;border-bottom:1px solid var(--line)}#minor:before{display:none}#minor button{width:auto;white-space:nowrap;margin:0;padding:9px 12px;border-left:0;border-radius:4px;min-height:38px}.layout{display:block}main{padding:22px 16px 36px}.cards{gap:12px;grid-template-columns:1fr}.card{padding:20px;border-radius:6px}.cards .card{min-height:140px;padding:20px;border-radius:6px}.grid,.poslayout{grid-template-columns:1fr;gap:16px}.grid>.card{min-height:200px}.pagehead{align-items:flex-start;margin-bottom:22px}h1{font-size:22px}.toolbar{flex-wrap:wrap}.toolbar input{min-width:160px}.metric{font-size:30px;margin:16px 0 8px}.kanban{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-button{padding:16px;min-height:120px}.product-button strong{font-size:12px}.login form{padding:30px}th,td{padding:13px}button{min-height:40px}input,select{min-height:42px}}

@media(prefers-reduced-motion:reduce){*{transition:none!important}}/* Product master: directory and full-height detail */

header{position:sticky;top:0;z-index:20}#major{position:sticky;top:76px;z-index:19}#middle{position:sticky;top:124px;z-index:18}.devbar{position:fixed}#minor{align-self:flex-start;position:sticky;top:168px;min-height:calc(100vh - 168px)}

.product-workspace{display:grid;grid-template-columns:minmax(270px,320px) minmax(0,1fr);gap:24px;align-items:start}.product-directory,.product-detail{background:var(--ws-panel,#fff);border:1px solid var(--line);border-radius:3px}.directory-head{display:flex;justify-content:space-between;align-items:center;padding:22px 20px 0}.directory-head h2{margin:0}.directory-head span{font-size:12px;color:var(--ws-blue,#485660)}.directory-search{display:grid;gap:10px;padding:18px 20px 12px}.directory-actions{display:flex;gap:8px;padding:0 20px 18px;border-bottom:1px solid var(--line)}.directory-actions button{flex:1}.directory-product{display:block;width:100%;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left;padding:20px;background:var(--ws-panel,#fff);min-height:114px;border-left:3px solid transparent}.directory-product.selected{background:var(--ws-raised,#f0f5f2);border-left-color:#2b6551}.directory-product strong{display:block;font-size:14px;color:var(--ws-text,#25352e);line-height:1.6}.directory-meta{display:block;font-size:12px;color:var(--ws-blue,#46535e);margin:6px 0 12px}.directory-bottom{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--ws-text,#354b40)}.stock-label{font-size:11px}.low-stock{color:var(--ws-amber,#aa4935);font-weight:650}.detail-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:26px}.detail-heading h2{font-size:21px;margin:7px 0 0;line-height:1.6}.section-kicker{font-size:12px;color:var(--ws-blue,#46535e)}.detail-tabs{display:flex;border-bottom:1px solid var(--line);padding:0 26px;gap:24px}.detail-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:14px 0;background:transparent}.detail-tabs button.active{border-bottom-color:#28533f;color:var(--ws-green,#28533f);font-weight:650}#productContent{padding:26px}.product-overview{display:grid;grid-template-columns:150px 1fr;gap:26px;align-items:center}.product-photo{height:150px;border:1px solid var(--line);background:var(--ws-panel,#fafbfc);display:grid;place-items:center;color:var(--ws-blue,#46535e);font-size:13px}.product-photo img{width:100%;height:148px;object-fit:contain}.stock-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.stock-summary>div{padding:14px 16px;border-left:1px solid var(--line)}.stock-summary span{display:block;font-size:12px;color:var(--ws-blue,#46535e)}.stock-summary strong{font-size:28px;color:var(--ws-green,#253e31);display:block;margin-top:14px;font-variant-numeric:tabular-nums}.photo-actions{display:flex;gap:8px;align-items:center;margin-top:12px}.file-button{display:inline-flex;align-items:center;border:1px solid var(--ws-line,#dce1e5);padding:8px 14px;min-height:36px;border-radius:3px;cursor:pointer;font-size:12px;margin:0}.file-button input{width:1px;position:absolute;opacity:0;min-height:0;padding:0}.file-button:focus-within{outline:2px solid var(--ws-line-strong,#548d7c);outline-offset:2px}fieldset{border:0;padding:0;margin:0;min-width:0}fieldset:disabled input,fieldset:disabled select,fieldset:disabled textarea{color:var(--ws-text,#253039);background:var(--ws-panel,#fafbfc);opacity:1}.form-section{border-top:1px solid var(--line);margin-top:28px;padding-top:22px}.form-section h3{font-size:14px;margin:0 0 20px;font-weight:650}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 24px}.form-grid label{margin:0 0 20px;font-size:13px}.span-two{grid-column:span 2}.editor-footer{display:flex;align-items:center;justify-content:flex-end;gap:20px;margin-top:28px;border-top:1px solid var(--line);padding-top:22px}.editor-footer span{font-size:12px;color:var(--ws-blue,#46535e)}.editor-footer button{min-width:150px}#productTable th:nth-child(n+3):nth-child(-n+7),#productTable td:nth-child(n+3):nth-child(-n+7){text-align:right}

@media(max-width:1200px){.product-workspace{grid-template-columns:260px minmax(0,1fr);gap:16px}.product-overview{grid-template-columns:110px 1fr;gap:12px}.product-photo{height:110px}.product-photo img{height:108px}.stock-summary{gap:0}.stock-summary>div{padding:12px 8px}.stock-summary span{font-size:11px}}

@media(max-width:950px){.product-workspace{grid-template-columns:1fr}.product-overview{grid-template-columns:120px 1fr}.directory-product{min-height:94px;padding:16px 20px}}

@media(max-width:800px){#major{top:66px}#middle{top:112px}#minor{position:static;min-height:0}.product-workspace{gap:16px}#productContent,.detail-heading{padding:20px}.detail-tabs{padding:0 20px}.product-overview{grid-template-columns:1fr}.product-photo{height:160px}.product-photo img{height:158px}.stock-summary{margin-top:10px}.stock-summary>div:first-child{border-left:0}.form-grid{grid-template-columns:1fr;gap:0}.span-two{grid-column:auto}.stock-summary strong{font-size:26px}}

.receipt-editor{padding:0 26px 26px}.receipt-editor .detail-heading{padding:24px 0}.receipt-editor .detail-heading h2{margin:0;font-size:16px}.receipt-editor td:first-child{width:80px}.receipt-editor td:nth-child(3){width:110px}.receipt-editor td:nth-child(4){width:150px}.receipt-editor td:nth-child(5){width:150px;text-align:right}.receipt-editor td:last-child{width:50px}.receipt-history{margin-top:28px}.receipt-editor .tablewrap{overflow:auto}.receipt-editor table{min-width:760px}.receipt-editor .editor-footer strong{margin-right:auto;font-size:21px}.receipt-editor input,.receipt-editor select{min-height:42px}



.discount-field{display:flex;flex-direction:column;gap:8px;color:var(--ws-text,#293d36);font-size:13px}.discount-buttons{display:flex;gap:8px;flex-wrap:wrap}.discount-buttons button{min-width:62px;height:40px}.form-section>label{display:block;margin-top:18px}.form-section>label textarea{margin-top:8px}



/* Store workspace shared layout */

.devbar{display:none}body.workspaceui header{height:64px;padding:0 24px}body.workspaceui #major{top:64px}body.workspaceui #major button{min-height:44px}body.workspaceui #middle{top:108px}body.workspaceui #middle button{min-height:40px}body.workspaceui .layout{min-height:calc(100vh - 148px)}body.workspaceui #minor{top:148px;flex-basis:166px;padding:18px 10px;min-height:calc(100vh - 148px)}body.workspaceui #minor:before{display:none}body.workspaceui #minor button{font-size:13px;min-height:40px;padding:10px 12px;border-radius:0}body.workspaceui main{padding:24px 28px 40px;max-width:1560px;margin:0;width:auto}body.workspaceui .pagehead{margin-bottom:20px;min-height:42px}body.workspaceui h1{font-size:22px;letter-spacing:-.6px}body.workspaceui .card,body.workspaceui .tablewrap{border-radius:0}body.workspaceui .card{padding:20px}body.workspaceui .toolbar{align-items:center}body.workspaceui .toolbar input{max-width:480px}body.workspaceui input,body.workspaceui select,body.workspaceui textarea,body.workspaceui button{border-radius:2px}body.workspaceui .receipt-editor .detail-heading{padding:0 0 18px}body.workspaceui .receipt-editor .detail-heading h2{font-size:16px;margin:0}body.workspaceui .receipt-editor input,body.workspaceui .receipt-editor select{min-height:38px}body.workspaceui .receipt-editor th:nth-child(3),body.workspaceui .receipt-editor th:nth-child(4){width:120px}body.workspaceui .receipt-editor th:last-child{width:55px}

.store-product-layout{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:20px;align-items:start}.store-product-directory,.store-product-detail{border:1px solid var(--line);background:var(--ws-panel,#fff);min-width:0}.store-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:54px;padding:12px 18px;border-bottom:1px solid var(--line)}.store-panel-heading h2{margin:0;font-size:15px;font-weight:700}.store-panel-heading h2 span{margin-left:8px;font-size:13px;font-weight:500;color:var(--ws-text,#394e44)}.store-panel-heading button{min-height:30px;padding:4px 11px}.store-product-filters{display:grid;grid-template-columns:1fr;gap:10px;padding:16px;border-bottom:1px solid var(--line)}.store-product-filters input,.store-product-filters select{height:38px;min-height:38px;font-size:13px}.store-product-list{max-height:calc(100dvh - 340px);min-height:240px;overflow:auto;scrollbar-gutter:stable}.store-product-row{display:grid;grid-template-columns:minmax(0,1fr) 62px;gap:8px 12px;width:100%;border:0;border-bottom:1px solid var(--line);border-left:3px solid transparent!important;border-radius:0!important;text-align:left;padding:16px;min-height:96px;background:var(--ws-panel,#fff)}.store-product-row.selected{border-left-color:var(--green)!important;background:var(--ws-raised,#eff5f2)}.row-product-text{min-width:0}.row-product-text strong{display:block;font-size:14px;color:var(--ws-green,#182f25);line-height:1.5;overflow-wrap:anywhere}.row-product-text>span{display:block;font-size:12px;margin-top:6px;color:var(--ws-text,#3f5148);overflow-wrap:anywhere}.row-product-quantity{text-align:right;font-size:18px;font-weight:650;color:var(--ws-green,#204c43);line-height:1.4;font-variant-numeric:tabular-nums}.row-product-quantity small{display:block;font-size:11px;font-weight:500;color:var(--ws-text,#3f5148);margin-top:4px}.row-product-price{font-size:13px;color:var(--ws-text,#253a30);grid-column:1/-1}.store-heading-actions{display:flex;gap:6px}.product-list-back{display:none}.store-product-identity{display:grid;grid-template-columns:112px minmax(0,1fr);gap:20px;padding:20px;border-bottom:1px solid var(--line);align-items:center}.store-product-photo{width:112px;height:112px;display:grid;place-items:center;background:var(--ws-panel,#fafbfc);border:1px solid var(--line)}.store-product-photo img{width:100%;height:100%;object-fit:contain}.photo-placeholder{font-size:30px;color:var(--ws-muted,#63786c)}.store-product-identity h3{font-size:19px;line-height:1.5;margin:0 0 8px;color:var(--ws-text,#182d24);overflow-wrap:anywhere}.store-product-code{font-size:13px;font-variant-numeric:tabular-nums;color:var(--ws-text,#43544b)}.store-stock-strip{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:16px;font-size:12px;color:var(--ws-text,#3b5044)}.store-stock-strip strong{font-size:15px;margin-left:4px;color:var(--ws-green,#1b392b)}.store-detail-body{padding:0 20px 22px}.store-detail-tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin-bottom:4px}.store-detail-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:14px 0;min-height:46px;border-radius:0!important}.store-detail-tabs button.active{color:var(--ws-green,var(--green));border-bottom-color:var(--green);font-weight:700}.store-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:0}.store-data-pair{padding:16px 0;border-bottom:1px solid var(--ws-line,#edf0ee);min-width:0}.store-data-pair dt{font-size:12px;color:var(--ws-text,#405449);margin-bottom:7px}.store-data-pair dd{margin:0;font-size:14px;font-weight:600;line-height:1.5;color:var(--ws-text,#1d3026);overflow-wrap:anywhere;white-space:pre-wrap}.store-data-pair.emphasis dd{font-size:18px;color:var(--ws-green,var(--green))}.store-price-summary{margin-top:22px}.store-price-summary h3{font-size:14px;margin:0 0 2px}.text-pair dd{font-weight:400;font-size:13px}.store-note-summary{margin-top:8px}

/* Same input geometry for store dialogs */

.store-editor-dialog{width:min(900px,calc(100vw - 48px));padding:0;border:1px solid var(--ws-line,#c8d3cd);border-radius:2px;max-height:calc(100dvh - 48px);box-shadow:0 16px 70px #12281b33;overflow:hidden}.store-editor-dialog::backdrop{background:#15241d66}.store-dialog-heading{display:flex;justify-content:space-between;align-items:center;padding:14px 24px;border-bottom:1px solid var(--line);height:60px;background:var(--ws-panel,#fff)}.store-dialog-heading h2{font-size:19px;margin:0}.store-dialog-heading button{font-size:24px;border:0;padding:0 6px;min-height:32px}.store-editor-dialog form{margin:0;display:flex;flex-direction:column;max-height:calc(100dvh - 108px)}.store-editor-body{overflow:auto;padding:24px;overscroll-behavior:contain;scrollbar-gutter:stable}.store-editor-dialog label{font-size:13px;line-height:1.4;color:var(--ws-green,#263e31);display:flex;flex-direction:column;gap:7px;margin:0;font-weight:600;min-width:0}.store-editor-dialog input,.store-editor-dialog select{height:39px;min-height:39px;padding:8px 10px;font-size:14px;font-weight:400;width:100%;min-width:0}.store-editor-dialog textarea{font-size:14px;font-weight:400;resize:vertical;min-height:88px;padding:10px;line-height:1.6}.store-editor-dialog input[readonly]{background:var(--ws-raised,#f5f7f6);color:var(--ws-text,#43534b)}.store-editor-top{display:grid;grid-template-columns:150px minmax(0,1fr);gap:24px;align-items:start}.store-editor-photo #photoBox{height:128px;display:grid;place-items:center;background:var(--ws-raised,#f8faf9);border:1px solid var(--line)}.store-editor-photo img{width:100%;height:126px;object-fit:contain}.store-editor-photo .photo-actions{display:flex;gap:6px;margin-top:8px}.store-editor-photo .photo-actions button,.store-editor-photo .file-button{padding:6px 9px;min-height:32px;font-size:12px;white-space:nowrap}.store-editor-photo .file-button{display:flex;margin:0;cursor:pointer;font-weight:500}.store-editor-photo .file-button input{width:1px;height:1px;min-height:0;padding:0}.store-editor-identifiers{display:grid;gap:16px;padding-top:2px}.identifier-row{display:grid;grid-template-columns:minmax(0,280px) minmax(130px,1fr);gap:16px;align-items:start}.barcode-control{display:flex;align-items:center;gap:6px}.barcode-control input{width:190px!important;flex:1;min-width:0;max-width:230px;font-variant-numeric:tabular-nums;letter-spacing:.3px}.barcode-control button{min-height:39px;height:39px;flex-shrink:0;padding:6px 12px}.store-editor-section{border-top:1px solid var(--line);margin-top:22px;padding-top:18px}.store-editor-section h3{font-size:14px;font-weight:700;margin:0 0 16px;color:var(--ws-green,#203a2b)}.store-editor-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.field-two{grid-column:span 2}.store-retail-price{display:grid;grid-template-columns:minmax(130px,1fr) 242px minmax(130px,1fr);align-items:end;gap:16px;padding:16px;background:var(--ws-raised,#f4f8f5);border:1px solid var(--ws-line,#dbe5df);margin-bottom:18px}.store-discount-control{display:grid;gap:7px}.store-discount-control>span{font-size:13px;font-weight:600;color:var(--ws-green,#263e31)}.store-discount-control .discount-buttons{display:flex;gap:6px}.store-discount-control button{height:39px;min-height:39px;min-width:0;width:56px;padding:6px 7px;font-size:13px}.store-discount-control button.active{border-color:#204c43;background:var(--ws-accent-solid,#204c43);color:#fff}.store-retail-price input[name=price]{border-color:var(--ws-line,#739a84);font-weight:650}.store-editor-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.store-dialog-footer{display:flex;justify-content:flex-end;gap:8px;padding:14px 24px;border-top:1px solid var(--line);background:var(--ws-panel,#fff);flex-shrink:0}.store-dialog-footer button{min-width:84px;min-height:39px}

@media(min-width:1800px){body.workspaceui main{max-width:1560px}.store-product-layout{grid-template-columns:390px minmax(0,1fr)}}

@media(max-width:1100px){body.workspaceui main{padding:20px}body.workspaceui #minor{flex-basis:150px}.store-product-layout{grid-template-columns:280px minmax(0,1fr);gap:16px}.store-product-identity{grid-template-columns:88px minmax(0,1fr);gap:14px;padding:16px}.store-product-photo{width:88px;height:88px}.store-product-identity h3{font-size:17px}.store-stock-strip{gap:8px 12px}.store-data-grid{gap:0 16px}.store-detail-body{padding:0 16px 18px}}

@media(max-width:900px){body.workspaceui #minor{position:sticky;top:148px;min-height:0;display:flex;gap:4px;overflow:auto;padding:6px 14px;border-right:0;border-bottom:1px solid var(--line);z-index:17;align-self:stretch}body.workspaceui #minor button{width:auto;white-space:nowrap;margin:0;padding:7px 12px;border-left:0;border-bottom:2px solid transparent;min-height:36px}body.workspaceui #minor button.active{border-bottom-color:var(--green)}body.workspaceui .layout{display:block}body.workspaceui main{max-width:100%;padding:18px 20px 30px}.store-product-layout{display:block}.store-product-layout[data-pane=list] .store-product-detail,.store-product-layout[data-pane=detail] .store-product-directory{display:none}.product-list-back{display:inline-block}.store-product-list{max-height:none;min-height:0}.store-product-filters{grid-template-columns:minmax(0,1fr) 200px}.store-product-identity{grid-template-columns:112px minmax(0,1fr)}.store-product-photo{width:112px;height:112px}.store-product-row{min-height:86px}.store-retail-price{grid-template-columns:1fr 242px}.store-retail-price>label:last-child{grid-column:1/-1;max-width:260px}}

@media(max-width:600px){body.workspaceui header{padding:0 14px;height:58px}.brand{font-size:18px}body.workspaceui #major{top:58px}body.workspaceui #middle{top:102px}body.workspaceui #minor{top:142px}body.workspaceui main{padding:16px 12px 28px}body.workspaceui .pagehead{margin-bottom:14px}body.workspaceui h1{font-size:20px}body.workspaceui #who{display:none}.store-product-filters{grid-template-columns:1fr;gap:8px;padding:12px}.store-product-identity{grid-template-columns:80px minmax(0,1fr);gap:14px}.store-product-photo{width:80px;height:80px}.store-product-identity h3{font-size:17px}.store-stock-strip{gap:8px 12px;margin-top:10px}.store-stock-strip span{font-size:11px}.store-stock-strip strong{font-size:14px}.store-detail-body{padding:0 14px 18px}.store-editor-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.store-editor-dialog form{max-height:none;height:calc(100dvh - 56px)}.store-dialog-heading{height:56px;padding:12px 16px}.store-dialog-heading h2{font-size:18px}.store-editor-body{padding:18px 16px}.store-editor-top{grid-template-columns:1fr;gap:20px}.store-editor-photo{display:flex;gap:12px;align-items:center}.store-editor-photo #photoBox{width:92px;height:92px;flex:0 0 92px}.store-editor-photo img{height:90px}.store-editor-photo .photo-actions{flex-direction:column;margin:0;align-items:stretch}.store-editor-identifiers{gap:14px}.identifier-row{grid-template-columns:1fr;gap:14px}.identifier-row>label:last-child{max-width:200px}.barcode-control{max-width:290px}.store-editor-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field-two{grid-column:span 2}.store-editor-section{margin-top:20px;padding-top:16px}.store-retail-price{grid-template-columns:1fr;gap:14px;padding:14px}.store-retail-price>label:last-child{grid-column:auto;max-width:none}.store-discount-control .discount-buttons button{flex:1;width:auto;min-height:42px}.store-editor-notes{grid-template-columns:1fr;gap:16px}.store-dialog-footer{padding:12px 16px;padding-bottom:max(12px,env(safe-area-inset-bottom));gap:10px}.store-dialog-footer button{flex:1;min-height:44px}.store-editor-dialog input,.store-editor-dialog select{height:42px;min-height:42px;font-size:16px}.store-editor-dialog textarea{font-size:16px}.barcode-control button{min-height:42px;height:42px}body.workspaceui .card{padding:16px}.store-data-grid{gap:0 16px}.store-data-pair dd{font-size:14px}}

.store-product-detail #productContent{padding:4px 0 0}

.store-editor-dialog:focus{outline:none}



/* Shared shell geometry must not depend on the selected business area. */

html{scrollbar-gutter:stable}body.workspaceui #major{height:44px}body.workspaceui #middle{height:40px}body.workspaceui main{flex:1 1 0;min-width:0}body.workspaceui #minor{flex-shrink:0}body.workspaceui #view{min-width:0}body.workspaceui .pagehead{width:100%;text-align:left;justify-content:space-between}body.workspaceui .kanban{grid-template-columns:repeat(3,minmax(0,1fr))}body.workspaceui .kanban .card{min-width:0}body.workspaceui .kanban .empty{white-space:normal}@media(max-width:900px){body.workspaceui #minor{flex-basis:auto}body.workspaceui main{width:100%}}@media(max-width:800px){body.workspaceui .kanban{grid-template-columns:1fr}}

body.workspaceui #major,body.workspaceui #middle{overflow-x:auto;overflow-y:hidden;align-items:stretch;scrollbar-width:none}body.workspaceui #major::-webkit-scrollbar,body.workspaceui #middle::-webkit-scrollbar{display:none}body.workspaceui #major button,body.workspaceui #middle button{min-height:0;height:100%;flex-shrink:0}



.product-name-code{display:grid;grid-template-columns:minmax(0,4fr) minmax(130px,1fr);gap:12px}.product-name-code label{min-width:0}.product-name-code input{width:100%}@media(max-width:600px){.product-name-code{grid-template-columns:1fr}.product-name-code>label:last-child{max-width:180px}}

/* POS has its own touch-first composition. */

body.pos-active #main>.pagehead,body.posmode #shell>header,body.posmode #major,body.posmode #middle,body.posmode #minor,body.posmode #chat,body.posmode .devbar{display:none!important}

body.posmode .layout{display:block!important}body.posmode #main{padding:0!important;max-width:none!important;margin:0!important}body.pos-active #main{min-width:0}

.pos-studio{--pos-ink:var(--ws-green,#142d30);--pos-green:var(--ws-accent-solid,#174c46);background:var(--ws-raised,#f2f4f3);color:var(--pos-ink);font-family:Arial,'Malgun Gothic',sans-serif;min-height:calc(100dvh - 160px);display:flex;flex-direction:column;position:relative}

body.posmode .pos-studio{min-height:100dvh}.pos-studio *{box-sizing:border-box}.pos-studio button,.pos-studio input,.pos-studio select{border-radius:3px;min-height:48px;font-size:15px;font-family:inherit}.pos-studio button{cursor:pointer;font-weight:600}.pos-studio button:disabled{opacity:.45;cursor:default}.pos-studio button:focus-visible,.pos-studio input:focus-visible,.pos-studio select:focus-visible{outline:3px solid var(--ws-line-strong,#578a7e);outline-offset:2px}

.pos-studio .pos-top{position:static;display:flex;align-items:center;justify-content:space-between;min-height:84px;padding:16px 32px;background:var(--ws-panel,#fff);border-bottom:1px solid var(--ws-line,#dbe2df);gap:16px}.pos-brand{font-size:26px;font-weight:800;letter-spacing:3px;color:var(--pos-ink);text-decoration:none;display:flex;align-items:center;gap:22px}.pos-brand span{font-size:10px;letter-spacing:2px;border-left:1px solid var(--ws-line,#c7d4ce);padding-left:22px;line-height:24px;color:var(--ws-green,#3c5754)}.pos-actions{display:flex;gap:8px}.pos-actions button{background:var(--ws-panel,white);border:1px solid var(--ws-line,#cdd9d4);padding:0 18px;color:var(--pos-ink)}

.pos-work{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);gap:32px;padding:32px;flex:1;align-items:start;max-width:1680px;width:100%;margin:0 auto}.pos-basket{min-width:0}.pos-section-title{display:flex;justify-content:space-between;align-items:center;padding:4px 0 20px;border-bottom:2px solid #243f3b}.pos-section-title h1{font-size:23px;margin:0;font-weight:700}.pos-section-title>span{font-size:16px;color:var(--ws-green,#45625b)}.pos-cart-item{display:grid;grid-template-columns:26px minmax(100px,1fr) 92px auto 48px;align-items:center;gap:16px;padding:24px 0;border-bottom:1px solid var(--ws-line,#d4ded8)}.pos-item-number{font-size:12px;color:var(--ws-green,#47645c);align-self:start;padding-top:5px}.pos-item-info{display:flex;flex-direction:column;gap:8px;min-width:0}.pos-item-info strong{font-size:20px;line-height:1.45;overflow-wrap:anywhere}.pos-item-info span{font-size:13px;color:var(--ws-green,#38564f);line-height:1.5}.pos-item-info small{font-size:14px;color:var(--ws-green,#38564f)}.pos-item-total{font-size:19px;white-space:nowrap;font-variant-numeric:tabular-nums}.pos-item-remove{background:transparent;border:0;font-size:26px!important;color:var(--ws-red,#6b4b45)}.pos-stepper{display:flex;border:1px solid var(--ws-line,#bacdc4);background:var(--ws-panel,#fff);height:98px;border-radius:3px;overflow:hidden}.pos-stepper input{width:47px!important;min-width:0;padding:0;text-align:center;border:0;appearance:textfield;-moz-appearance:textfield;font-weight:bold;font-size:19px}.pos-stepper input::-webkit-inner-spin-button{appearance:none}.pos-stepper>div{display:flex;flex-direction:column;border-left:1px solid var(--ws-line,#d7e0db);flex:1}.pos-stepper button{min-height:48px;border:0;border-radius:0;background:var(--ws-raised,#f7f9f8);padding:0;font-size:25px;line-height:1;color:var(--ws-green,#224b3f)}.pos-stepper button+button{border-top:1px solid var(--ws-line,#d7e0db)}

.pos-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:340px;gap:18px;color:var(--ws-green,#36574e)}.pos-empty>div{width:64px;height:64px;display:grid;place-items:center;border:1px solid var(--ws-line,#c1d0c8);font-size:34px;background:var(--ws-panel,#fff)}.pos-empty h2{font-size:17px;margin:0}.pos-empty button{border:1px solid var(--ws-line,#becfc6);background:var(--ws-panel,white);color:var(--ws-green,#214b40);padding:0 24px}

.pos-tools{min-width:0}.pos-scanbar{display:flex;background:var(--ws-panel,white);border:1px solid var(--ws-line,#b7cac1);align-items:center;height:58px;margin:0 0 14px;gap:0}.pos-scanbar>span{padding-left:16px;font-size:28px;color:var(--ws-green,#315c50)}.pos-scanbar input{flex:1;min-width:0;width:0;border:0;background:transparent;height:56px;padding:0 12px}.pos-scanbar button{height:56px;width:58px;min-width:58px;border:0;border-left:1px solid var(--ws-line,#dbe3df);background:var(--ws-panel,#fff);display:grid;place-items:center;padding:0}.pos-scanbar svg{width:23px;height:23px;fill:none;stroke:var(--ws-green,#214f42);stroke-width:1.5}.pos-search-launch{width:100%;display:flex;justify-content:space-between;align-items:center;border:1px solid var(--ws-line,#cad7d0);background:var(--ws-panel,#fff);color:var(--ws-green,#1f4f43);padding:0 18px;height:56px;text-align:left}.pos-search-launch span{font-size:24px}.pos-search-head,.pos-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px}.pos-search-head h2,.pos-dialog-head h2{font-size:19px;margin:0}.pos-search-head button,.pos-dialog-head button{width:48px;border:0;background:transparent;font-size:26px;color:var(--ws-green,#20493e)}.pos-tools #posSearchPanel{background:var(--ws-panel,#fff);padding:16px;border:1px solid var(--ws-line,#d2dfd7)}.pos-tools #posQuery,.pos-history>input{width:100%;border:1px solid var(--ws-line,#b8ccc1);padding:0 12px;background:var(--ws-panel,#fff)}.pos-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.pos-filters label{font-size:12px;color:var(--ws-green,#32564a);display:flex;flex-direction:column;gap:6px}.pos-filters select{width:100%;padding:0 8px;background:var(--ws-raised,#f7f9f8);border:1px solid var(--ws-line,#d3dfd7);color:var(--ws-green,#1b3a30)}.pos-result{display:flex;width:100%;justify-content:space-between;gap:16px;border:0;border-top:1px solid var(--ws-line,#e0e7e2);background:var(--ws-panel,#fff);padding:18px 2px;text-align:left;color:var(--ws-green,#183e31)}.pos-result>span{display:flex;flex-direction:column;gap:8px}.pos-result>span:first-child{flex:1;min-width:0}.pos-result strong{font-size:15px;line-height:1.45;overflow-wrap:anywhere}.pos-result small{font-size:12px;font-weight:normal;color:var(--ws-green,#3d5f51)}.pos-result>span+span{align-items:flex-end;white-space:nowrap}.pos-result b{display:grid;place-items:center;width:32px;height:32px;background:var(--ws-raised,#edf3ef);font-size:22px;color:var(--ws-green,#1b4f3a)}.pos-no-results{padding:32px 0;text-align:center;color:var(--ws-green,#3c6153)}

.pos-checkout{position:sticky;bottom:0;z-index:5;background:var(--ws-panel,#fff);border-top:1px solid var(--ws-line,#c4d4cb);display:flex;align-items:center;justify-content:flex-end;gap:40px;padding:22px 32px;box-shadow:0 -8px 24px #163f2d08}.pos-checkout>div{display:flex;align-items:baseline;gap:24px}.pos-checkout>div>span{font-size:16px;color:var(--ws-green,#3a5a4e)}.pos-checkout strong{font-size:34px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.pos-checkout>button{display:flex;align-items:center;justify-content:space-between;min-height:64px;min-width:260px;padding:0 24px;border:0;background:var(--pos-green);color:#fff;font-size:20px}.pos-checkout button span{font-size:26px}.pos-studio dialog{width:min(840px,calc(100vw - 32px));padding:24px;border:1px solid var(--ws-line,#c8d8ce);border-radius:3px;max-height:90dvh;overflow:auto;color:var(--ws-green,#173c2e)}.pos-studio dialog::backdrop{background:#102f2566}.pos-sale{display:flex;justify-content:space-between;gap:20px;padding:22px 0;border-bottom:1px solid var(--ws-line,#d4dfd8)}.pos-sale>div{display:flex;flex-direction:column;gap:10px}.pos-sale>div+div{text-align:right;align-items:flex-end;min-width:100px}.pos-sale time,.pos-sale small,.pos-sale span{font-size:13px;color:var(--ws-green,#3f6050)}.pos-sale strong{font-size:16px;line-height:1.6}.pos-sale button{padding:0 24px;background:var(--ws-panel,white);border:1px solid var(--ws-line,#adc5b6)}.pos-return-line{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0;border-bottom:1px solid var(--ws-line,#d5e1d8)}.pos-return-line span{display:flex;flex-direction:column;gap:8px}.pos-return-line small{color:var(--ws-green,#3b604c)}.pos-return-line input{max-width:100px;text-align:center;border:1px solid var(--ws-line,#aac3b2);padding:0 8px}.pos-return-footer{display:flex;align-items:center;justify-content:space-between;padding-top:24px}.pos-return-footer strong{font-size:25px}.pos-return-footer button{padding:0 28px;min-height:56px}

@media(min-width:1500px){.pos-work{padding-top:48px;gap:64px}.pos-cart-item{padding:30px 0}.pos-studio .pos-top{padding-left:max(32px,calc((100vw - 1616px)/2));padding-right:max(32px,calc((100vw - 1616px)/2))}}

@media(max-width:1000px){.pos-work{gap:24px;padding:24px;grid-template-columns:minmax(0,1.5fr) minmax(290px,1fr)}.pos-cart-item{grid-template-columns:20px minmax(80px,1fr) 86px 48px;gap:10px}.pos-item-total{grid-column:2;grid-row:2;margin-top:-8px}.pos-item-remove{grid-column:4;grid-row:1}.pos-stepper{grid-column:3;grid-row:1/3}.pos-item-info strong{font-size:18px}.pos-brand span{display:none}}

@media(max-width:800px){body.pos-active #main{padding:0!important}.pos-work{display:flex;flex-direction:column;gap:24px;padding:20px}.pos-basket{order:2;width:100%}.pos-tools{order:1;width:100%}.pos-studio .pos-top{padding:12px 20px;min-height:76px}.pos-brand{font-size:21px}.pos-actions button{padding:0 10px;font-size:12px}.pos-checkout{padding:16px 20px;gap:20px;justify-content:space-between}.pos-checkout>div{display:flex;flex-direction:column;gap:5px}.pos-checkout strong{font-size:28px}.pos-checkout>button{min-width:190px;min-height:64px}.pos-empty{min-height:240px}.pos-filters{grid-template-columns:repeat(4,minmax(0,1fr))}}

@media(max-width:480px){.pos-studio .pos-top{padding:12px 16px;gap:8px}.pos-brand{font-size:18px;letter-spacing:2px}.pos-actions{gap:4px}.pos-actions button{font-size:11px;padding:0 8px}.pos-work{padding:16px}.pos-cart-item{grid-template-columns:16px minmax(70px,1fr) 78px 32px;gap:8px}.pos-item-remove{min-width:32px;padding:0}.pos-item-info strong{font-size:16px}.pos-stepper input{width:36px!important}.pos-item-total{font-size:17px}.pos-checkout{padding:16px;gap:12px}.pos-checkout strong{font-size:25px}.pos-checkout>button{min-width:155px;padding:0 16px;font-size:18px}.pos-filters{grid-template-columns:1fr 1fr}.pos-section-title h1{font-size:20px}.pos-sale{gap:12px}.pos-sale strong{font-size:14px}}





/* Product image preview and original-size viewer */

.store-product-photo img,#photoBox img{cursor:zoom-in}

.store-product-photo img:focus-visible,#photoBox img:focus-visible{outline:2px solid #245c50;outline-offset:2px}

.store-editor-top{grid-template-columns:minmax(180px,320px) minmax(0,1fr)}

.store-editor-photo #photoBox{height:240px;min-height:0;display:flex;align-items:center;justify-content:center}

.store-editor-photo #photoBox img{display:block;width:auto;height:100%;max-width:100%;max-height:100%;object-fit:contain}

.product-image-dialog{padding:48px 16px 16px;border:1px solid var(--ws-line,#cbd5d3);border-radius:0;max-width:94vw;max-height:94dvh;background:var(--ws-panel,#fff)}

.product-image-dialog::backdrop{background:rgba(10,22,20,.72)}

.product-image-dialog>button{position:absolute;right:8px;top:8px;width:36px;height:36px;padding:0;font-size:26px}

.product-image-dialog>img{display:block;width:auto;height:auto;max-width:calc(94vw - 34px);max-height:calc(94dvh - 66px);object-fit:contain;margin:auto}

@media(max-width:900px){.store-editor-top{grid-template-columns:1fr}.store-editor-photo{width:min(100%,320px)}.store-editor-photo #photoBox{width:100%;height:200px}.store-editor-photo #photoBox img{width:auto;height:100%}}

.product-image-dialog{width:min(94vw,1200px);box-sizing:border-box}.product-image-dialog>img{max-width:100%;height:auto}



.store-product-photo,.store-editor-photo #photoBox{overflow:hidden}

.store-product-photo img,.store-editor-photo #photoBox img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center}



.store-editor-dialog .store-basic-grid{display:flex;flex-wrap:wrap;gap:12px}.store-basic-grid>label{flex:1 1 110px;min-width:110px}.store-basic-grid>label:has([name=brand]){flex:1.4 1 160px}.store-basic-grid>label:has([name=color]){flex:1.2 1 140px}.store-basic-grid>label:has([name=weight]){flex:.8 1 90px;min-width:90px}.store-basic-grid>label:has([name=year]){flex:.8 1 80px;min-width:80px}



.row-product-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px}.row-list-price{color:var(--ws-text,#43534b);font-size:12px}.row-sale-price{color:var(--ws-amber,#b43b23);font-size:14px;font-weight:750;font-variant-numeric:tabular-nums}


.product-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;border-top:1px solid var(--ws-line,#dce3df)}.product-pagination span{font-size:13px;color:var(--ws-text,#263b33);font-variant-numeric:tabular-nums}.product-pagination button{min-height:36px}

/* Inventory uses the shared store shell and compact, wrapping controls. */
.inventory-panel{background:var(--ws-panel,#fff);border:1px solid var(--ws-line,#dbe2e6);padding:20px}.inventory-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:16px}.inventory-filters input,.inventory-filters select,.inventory-filters button{height:40px;min-width:0}.inventory-filters input[name=q]{flex:1 1 240px;max-width:450px}.inventory-filters input[type=date]{width:155px}.inventory-filters select{width:160px}.inventory-summary{padding:10px 0 18px;color:var(--ws-blue,#263e45);font-weight:600}.inventory-layout{min-width:0}.inventory-layout>div{min-width:0}.inventory-editing{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,1fr);gap:20px}.inventory-panel table{min-width:620px}.inventory-panel td small,.inventory-history-dialog td small{display:block;margin-top:5px;color:var(--ws-blue,#415660);white-space:normal}.inventory-panel td,.inventory-history-dialog td{vertical-align:middle}.inventory-available{font-weight:700;color:var(--ws-green,#184e43)}.inventory-delta{font-weight:700}.inventory-delta.positive{color:var(--ws-green,#145f4b)}.inventory-delta.negative{color:var(--ws-red,#b23232)}.inventory-adjust{border-left:1px solid var(--ws-line,#dbe2e6);padding-left:20px}.inventory-adjust h2{font-size:17px;margin:0 0 16px}.inventory-adjust-row{border-bottom:1px solid var(--ws-line,#dbe2e6);padding:14px 0}.inventory-adjust-row small{display:block;margin-top:5px;color:var(--ws-blue,#415660)}.inventory-target{display:flex;align-items:center;gap:10px;margin-top:10px}.inventory-target input{width:100px;height:38px}.inventory-target strong{min-width:35px}.inventory-target button{margin-left:auto}.inventory-adjust>label{display:grid;gap:8px;margin-top:20px}.inventory-adjust-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.inventory-history-dialog{width:min(1000px,calc(100vw - 32px));max-height:85vh;border:1px solid var(--ws-line,#dbe2e6);border-radius:0;padding:20px}.inventory-history-dialog table{min-width:700px}@media(max-width:1150px){.inventory-editing{grid-template-columns:1fr}.inventory-adjust{border-left:0;border-top:1px solid var(--ws-line,#dbe2e6);padding:20px 0 0}}@media(max-width:600px){.inventory-panel{padding:12px}.inventory-filters input[name=q]{max-width:none;flex-basis:100%}.inventory-filters input[type=date]{width:calc(50% - 4px)}.inventory-summary{line-height:1.7}.inventory-history-dialog{padding:12px}}

/* Shared stock ledger columns stay separate at every viewport size. */
.inventory-panel .stock-inventory-table,.stock-ledger-table{width:100%;min-width:1240px;font-size:14px;table-layout:auto}.stock-inventory-table th,.stock-inventory-table td,.stock-ledger-table th,.stock-ledger-table td{padding:13px 12px;white-space:nowrap;vertical-align:middle}.stock-inventory-table th,.stock-ledger-table th{font-size:13px;font-weight:700;color:var(--ws-blue,#233e47);background:var(--ws-raised,#f4f7f8)}.stock-inventory-table .stock-name,.stock-ledger-table .stock-name{min-width:210px;max-width:380px;font-weight:600}.stock-inventory-table td:last-child{width:65px}.stock-inventory-table td:nth-child(n+7):not(:last-child),.stock-ledger-table td:nth-child(n+8):not(:last-child){text-align:right;font-variant-numeric:tabular-nums}.stock-inventory-table th:nth-child(n+7):not(:last-child),.stock-ledger-table th:nth-child(n+8):not(:last-child){text-align:right}.stock-in{color:var(--ws-green,#145f4b);font-weight:600}.stock-out{color:var(--ws-red,#a33131);font-weight:600}.inventory-panel .inventory-filters{font-size:14px}.inventory-panel .inventory-summary{font-size:14px}.inventory-history-dialog{width:min(1450px,calc(100vw - 32px))}.stock-ledger-table small{max-width:220px;white-space:normal}.store-product-row .row-product-quantity{font-size:17px}

.inventory-editing{display:block}.inventory-editing .stock-adjust-table{min-width:1130px;width:100%;table-layout:auto}.stock-adjust-table th,.stock-adjust-table td{padding:10px 8px!important;white-space:nowrap}.stock-adjust-table .stock-name{min-width:190px;max-width:280px;white-space:normal;font-weight:600}.stock-adjust-table th:first-child,.stock-adjust-table td:first-child{width:44px;text-align:center}.stock-adjust-table input[type=checkbox]{width:18px;height:18px;accent-color:var(--ws-green,#204f46);cursor:pointer}.stock-adjust-table .stock-picked{background:var(--ws-raised,#edf5f2)}.stock-adjust-table .stock-difference{min-width:58px;font-weight:700;font-variant-numeric:tabular-nums;text-align:right}.stock-stepper{display:flex;width:108px;height:38px;border:1px solid var(--ws-line,#bbc9ce);background:var(--ws-panel,#fff)}.stock-stepper input{width:78px;height:36px;border:0!important;text-align:center;padding:4px;font-size:15px;font-weight:700;appearance:textfield;-moz-appearance:textfield}.stock-stepper input::-webkit-inner-spin-button,.stock-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.stock-stepper>div{display:grid;grid-template-rows:1fr 1fr;width:28px;border-left:1px solid var(--ws-line,#bbc9ce)}.stock-stepper button{padding:0;min-height:0;height:18px;border:0;background:var(--ws-raised,#f2f6f5);font-size:13px;line-height:16px}.stock-stepper button+button{border-top:1px solid var(--ws-line,#bbc9ce)}.stock-stepper input:disabled,.stock-stepper button:disabled{background:var(--ws-raised,#f4f6f7);color:var(--ws-blue,#73828a)}.inventory-editing .inventory-adjust{position:sticky;bottom:0;display:flex;flex-wrap:wrap;align-items:center;gap:16px;border:1px solid var(--ws-line,#dbe2e6);background:var(--ws-panel,#fff);padding:16px;margin-top:12px;box-shadow:0 -3px 10px #142e3808;z-index:2}.inventory-editing .inventory-adjust>strong{font-size:14px;white-space:nowrap}.inventory-editing .inventory-adjust>label{display:flex;align-items:center;gap:10px;flex:1 1 250px;margin:0;white-space:nowrap}.inventory-editing .inventory-adjust>label input{width:100%;min-width:120px;height:40px}.inventory-editing .inventory-adjust-actions{margin:0}.stock-out{color:var(--ws-red,#aa3434)!important}@media(max-width:600px){.inventory-editing .inventory-adjust{gap:10px;padding:12px}.inventory-editing .inventory-adjust>label{flex-basis:100%;order:2}.inventory-editing .inventory-adjust-actions{margin-left:auto}.inventory-editing .inventory-adjust-actions button{padding:9px 10px}}

.stock-inventory-table thead th,.stock-ledger-table thead th,.stock-adjust-table thead th{height:44px;padding:10px 8px!important;text-align:center!important;vertical-align:middle;line-height:1.4}.stock-adjust-table .stock-stepper{margin-inline:auto}

.stock-inventory-table tbody td,.stock-ledger-table tbody td,.stock-adjust-table tbody td{ text-align:center!important;vertical-align:middle}.stock-inventory-table tbody input,.stock-ledger-table tbody input{ text-align:center}.stock-inventory-table tbody td small,.stock-ledger-table tbody td small{margin-inline:auto}


.sales-history{padding:20px}.sales-filters{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin:0 0 16px}.sales-filters label{margin:0;font-size:13px}.sales-filters input,.sales-filters button{height:40px;box-sizing:border-box}.sales-filters input[type=date]{width:155px}#saleQuery{width:280px;max-width:100%}#saleSummary{margin:12px 0;font-size:14px}.sales-history table th,.sales-history table td{white-space:nowrap;text-align:left}.sales-history .sales-number{text-align:right;font-variant-numeric:tabular-nums}.sales-history .sales-negative td{color:var(--ws-red,#a55050)}.sales-history [data-return]{background:var(--ws-raised,#faf0ef);color:var(--ws-red,#944b48);border-color:var(--ws-line,#e5c9c6);min-height:38px}#saleError{color:var(--ws-red,#a55050)}.pos-actions #posHistory,[data-void]{color:var(--ws-red,#944b48);background:var(--ws-raised,#faf0ef);border:1px solid var(--ws-line,#e5c9c6)}.pos-return::backdrop{background:#20352e66}@media(max-width:700px){.sales-history{padding:12px}.sales-filters{gap:8px}#saleQuery{width:100%}.sales-filters input[type=date]{width:140px}}


/* Workspace thumbnail policy: fit image height, clip only the horizontal edges. */
body .workspace-thumbnail{display:flex;align-items:center;justify-content:center;overflow:hidden;min-width:0}
body .workspace-thumbnail>img,body .store-editor-photo #photoBox.workspace-thumbnail>img{display:block;flex:none;width:auto;height:100%;max-width:none;max-height:none;object-fit:contain;object-position:center;margin:0}
body .cons-photo.workspace-thumbnail{height:112px}
body .svc-record-photo.workspace-thumbnail{width:64px;height:64px;flex:none}
body .svc-record-photo+span{text-align:left!important;flex:1}
body .trade-image-thumb.workspace-thumbnail{width:160px;height:220px;flex:none}
body .trade-image-thumb:has(>img[hidden]){display:none}
body .workspace-thumbnail>img[hidden]{display:none}
/* Compact workspace navigation; the selected tab identifies the current screen. */
body.workspaceui header{height:48px;gap:16px;padding:0 20px}
body.workspaceui header .live{display:none}
body.workspaceui header .header-actions{flex:0 0 auto}
body.workspaceui #major{position:static;flex:1 1 auto;min-width:0;height:100%;padding:0;border:0;background:transparent}
body.workspaceui #middle{top:48px;height:38px}
body.workspaceui #minor{top:86px;min-height:calc(100vh - 86px)}
body.workspaceui .layout{min-height:calc(100vh - 86px)}
body.workspaceui main{padding-top:12px}
body.workspaceui #major button.active{background:transparent;color:var(--ws-blue,#1261be)}
body.workspaceui #middle button.active{background:var(--ws-raised,#f3f7f5);color:var(--ws-green,#204c43)}
body.workspaceui #middle button.active:before{display:none}
body.workspaceui .store-panel-heading #newProduct{margin-left:auto;white-space:nowrap;padding:4px 8px}
@media(max-width:900px){body.workspaceui #minor{min-height:0}}
@media(max-width:800px){body.workspaceui header{height:84px;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px 40px;gap:0;padding:0 12px}body.workspaceui header .brand{grid-column:1;grid-row:1}body.workspaceui header .header-actions{grid-column:2;grid-row:1}body.workspaceui #major{grid-column:1/-1;grid-row:2;width:calc(100% + 24px);margin:0 -12px;padding:0 12px;border-top:1px solid var(--line)}body.workspaceui #middle{top:84px}body.workspaceui #minor{top:122px}body.workspaceui .layout{min-height:calc(100vh - 122px)}body.workspaceui main{padding-top:12px}}

.stock-mode .stock-matching-intro{display:flex;align-items:baseline;gap:18px;margin-bottom:12px;flex-wrap:wrap}
.stock-mode .stock-matching-intro h2{margin:0;font-size:19px}
.stock-mode .stock-matching-intro p{margin:0;color:var(--ws-blue,#526b7a);font-size:14px}
.stock-mode [data-supplier-stock]{border-bottom:1px solid var(--ws-line,#dce5e7);margin-bottom:16px;padding-bottom:8px}
.stock-mode .online-supplier-cards{display:flex;gap:22px;flex-wrap:wrap;margin:8px 0}
.stock-mode .online-supplier-cards>div{display:flex;align-items:center;gap:9px;border:0;background:none;padding:0;min-height:0}
.stock-mode .online-supplier-cards strong,.stock-mode .online-supplier-cards span{font-size:13px}
.stock-mode [data-supplier-stock]>[role=status]{font-size:12px;color:var(--ws-blue,#526b7a);margin:6px 0}
.stock-mode [data-table] table{width:100%;table-layout:fixed}
.stock-mode [data-table] th:first-child{width:44px}
.stock-mode [data-table] th:nth-child(3),.stock-mode [data-table] th:nth-child(4){width:130px}
.stock-mode [data-table] th:last-child{width:94px}
.stock-mode [data-table] td{vertical-align:middle;overflow-wrap:anywhere;padding:12px 10px}
.stock-mode [data-matching]{min-width:70px;min-height:36px;background:var(--ws-raised,#e7f0eb);color:var(--ws-green,#204c43);border:1px solid var(--ws-line,#c8dcd2)}
.stock-mode .stock-connection-settings{margin-top:22px;border-top:1px solid var(--ws-line,#dce5e7);padding:14px 0}
.stock-mode .stock-connection-settings>summary{cursor:pointer;font-weight:600;color:var(--ws-blue,#526b7a)}
.stock-mode .stock-connection-settings>details{margin-top:14px;padding:12px;border:1px solid var(--ws-line,#dce5e7)}
dialog[aria-label="재고 옵션 매칭"]{width:min(1100px,95vw)}
dialog[aria-label="재고 옵션 매칭"] table{width:100%;table-layout:fixed}
dialog[aria-label="재고 옵션 매칭"] th,dialog[aria-label="재고 옵션 매칭"] td{width:33.33%;padding:14px;vertical-align:top;overflow-wrap:anywhere}
dialog[aria-label="재고 옵션 매칭"] small{color:var(--ws-blue,#526b7a)}
dialog[aria-label="재고 옵션 매칭"] [role=status]{font-size:13px;color:var(--ws-blue,#526b7a)}
@media(max-width:760px){.stock-mode [data-table] table{min-width:650px}dialog[aria-label="재고 옵션 매칭"] table{min-width:650px}.stock-mode .stock-matching-intro{gap:6px}}

/* Unified stock matching: product context remains visible throughout selection. */
dialog.unified-matching[open]{display:flex;flex-direction:column;width:min(1180px,96vw);height:min(820px,92vh);max-height:92vh;padding:0;overflow:hidden}
.unified-matching .online-dialog-header{flex-shrink:0;align-items:flex-start;padding:18px 22px;background:var(--ws-panel,#fff)}
.unified-matching .online-dialog-header>div{min-width:0}
.unified-matching h3{margin:4px 0 8px;overflow-wrap:anywhere;font-size:20px}
.unified-matching [data-current]{margin:0;color:var(--ws-green,#186354);font-weight:700}
.unified-body{display:grid;grid-template-columns:250px minmax(0,1fr);flex:1;min-height:0;overflow:hidden}
.unified-body aside{padding:14px;background:var(--ws-raised,#f3f7f6);overflow:auto;border-right:1px solid var(--ws-line,#dbe5e2)}
.unified-body aside button{display:block;text-align:left;width:100%;white-space:normal;margin-bottom:10px;padding:13px;background:var(--ws-panel,white);border:1px solid var(--ws-line,#d5e1dd);border-radius:6px}
.unified-body aside button.selected{border:2px solid #26705d;background:var(--ws-raised,#eaf4ef)}
.unified-body aside strong,.unified-body aside span,.unified-result span,.unified-result small,.unified-chosen>span{display:block;overflow-wrap:anywhere}
.unified-body aside span{font-size:12px;margin-top:8px;line-height:1.5}
.unified-body aside small{display:block;color:var(--ws-amber,#916108);margin-top:8px}
.unified-work{min-width:0;overflow:auto;padding:18px 22px}
.unified-tabs{display:flex;gap:8px;margin-bottom:16px}
.unified-tabs button[aria-pressed=true]{background:var(--ws-accent-solid,#205c4d);color:white;border-color:#205c4d}
.unified-chosen{padding:12px;background:var(--ws-raised,#f4f8f6);border:1px solid var(--ws-line,#dce6e2);border-radius:6px;margin-bottom:18px;line-height:1.6}
.unified-chosen>button{margin:10px 14px 0 0}.unified-chosen label{display:inline-flex;gap:7px;align-items:center}
.unified-matching [data-search]>input,.unified-matching [data-b2b] input{width:100%;box-sizing:border-box;margin:8px 0;min-height:38px}
.unified-matching .online-link-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0}
.unified-matching .online-link-filters label{display:block;min-width:0}.unified-matching .online-link-filters input{width:100%;box-sizing:border-box}
.unified-result{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--ws-line,#dce6e2)}
.unified-result>div{min-width:0}.unified-result button{flex-shrink:0}.unified-result span{margin:6px 0}.unified-result small{color:var(--ws-muted,#5d7069)}
.unified-matching [data-review]{flex-shrink:0;max-height:150px;overflow:auto;padding:12px 22px;background:var(--ws-raised,#f2f7ed);border-top:1px solid var(--ws-line,#d9e3d4)}
.unified-matching [data-review][hidden]{display:none}.unified-matching [data-review] h4{margin:0}.unified-matching [data-review] p{margin:8px 0;overflow-wrap:anywhere}
.unified-matching .online-dialog-footer{flex-shrink:0;display:flex;align-items:center;gap:16px;padding:12px 22px;background:var(--ws-panel,white)}
.unified-matching [data-status]{flex:1;margin:0;font-size:13px;overflow-wrap:anywhere}.unified-matching [data-save]{background:var(--ws-accent-solid,#205c4d);color:white;flex-shrink:0}
@media(max-width:720px){.unified-body{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr)}.unified-body aside{display:flex;gap:8px;max-height:150px;overflow:auto;padding:10px}.unified-body aside button{min-width:210px;width:210px;margin:0}.unified-work{padding:12px}.unified-matching .online-link-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.unified-matching .online-dialog-header{padding:12px}.unified-matching h3{font-size:16px}.unified-matching .online-dialog-footer{padding:10px;flex-wrap:wrap}.unified-matching [data-status]{flex-basis:100%}}

/* Receipt-style matching table */
dialog.unified-matching[open]{width:min(1420px,96vw)}
.unified-body{grid-template-columns:280px minmax(0,1fr)}
.unified-body aside h4{margin:0 0 12px;font-size:14px}.match-section-title{margin:0 0 12px;font-size:15px}
.unified-work{display:flex;flex-direction:column;overflow:hidden;padding:16px}
.unified-work>[data-work]{display:flex;flex-direction:column;min-height:0;flex:1;overflow:auto}
.unified-tabs{margin-bottom:12px;flex-shrink:0}
.unified-matching .match-search-row{display:grid;grid-template-columns:minmax(180px,2.2fr) repeat(4,minmax(75px,1fr));gap:8px;margin:0;flex-shrink:0}
.match-search-row label{display:flex;flex-direction:column;gap:6px;font-size:12px;min-width:0}
.unified-matching .match-search-row input,.unified-matching .match-search-row select{width:100%;min-width:0;box-sizing:border-box;height:36px;margin:0}
.unified-matching [data-result-note]{margin:10px 0;font-size:12px;flex-shrink:0}
.match-result-table{flex:1;min-height:160px;overflow:auto;border:1px solid var(--ws-line,#dbe3e9)}
.match-result-table table{width:100%;border-collapse:collapse;font-size:12px}.match-result-table th{position:sticky;top:0;background:var(--ws-raised,#f5f8fa);z-index:1;white-space:nowrap}
.match-result-table td,.match-result-table th{padding:10px 8px;border-bottom:1px solid var(--ws-line,#e2e8ec);text-align:center;vertical-align:middle}
.match-result-table td:first-child{text-align:left;min-width:170px;overflow-wrap:anywhere}.match-result-table td:nth-child(5){white-space:nowrap;font-variant-numeric:tabular-nums}
.match-result-table button{width:76px;height:38px;padding:0}.match-result-table .is-selected{background:var(--ws-raised,#edf6f0)}
.unified-matching .compact-choice{flex-shrink:0;margin:12px 0 0;padding:10px 12px;font-size:12px}.compact-choice>div{display:flex;align-items:center;gap:12px;margin-top:6px}.compact-choice button{margin:0}
@media(max-width:900px){.unified-body{grid-template-columns:220px minmax(0,1fr)}.unified-matching .match-search-row{grid-template-columns:repeat(4,minmax(60px,1fr))}.match-search-row label:first-child{grid-column:1/-1}}
@media(max-width:720px){.unified-body{grid-template-columns:1fr}.unified-body aside{display:block}.unified-body aside>[data-options]{display:flex;gap:8px}.unified-body aside h4{margin-bottom:6px}.unified-work{padding:10px}.match-result-table{min-height:140px}}

/* ERP/B2B status and matching action share a fixed aligned footprint. */
.stock-mode .stock-matching-table{width:100%;table-layout:fixed}
.stock-mode .stock-matching-table th:first-child{width:44px}
.stock-mode .stock-matching-table th:nth-child(n+3){width:116px;text-align:center;font-size:15px;font-weight:700;white-space:nowrap}
.stock-mode .stock-matching-table th:nth-child(2){font-size:15px;font-weight:700;text-align:left}
.stock-mode .stock-matching-table td{vertical-align:middle;padding:12px 10px}
.stock-mode .stock-matching-table td:nth-child(2){font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.stock-mode .stock-matching-table td:nth-child(n+3){text-align:center}
.stock-mode .stock-status-badge,.stock-mode .stock-matching-table [data-matching]{box-sizing:border-box;width:76px;height:38px;display:inline-flex;align-items:center;justify-content:center;flex-direction:column;vertical-align:middle;margin:0;padding:0;border:1px solid;border-radius:3px;font-size:14px;font-weight:600;line-height:1.15;white-space:nowrap}
.stock-mode .stock-status-badge.connected{background:var(--ws-raised,#e6f3eb);color:var(--ws-green,#17633c);border-color:var(--ws-line,#abd3b8)}
.stock-mode .stock-status-badge.unconnected{background:var(--ws-red-bg,#fff0f0);color:var(--ws-red,#b52832);border-color:var(--ws-line,#edb7bc)}
.stock-mode .stock-status-badge.pending{background:var(--ws-raised,#f4f5f6);color:var(--ws-muted,#59636d);border-color:var(--ws-line,#d4d9de)}
.stock-mode .stock-status-badge small{font-size:10px;margin-top:1px}
.stock-mode .stock-matching-table [data-matching]{background:var(--ws-raised,#edf4f3);color:var(--ws-green,#264f49);border-color:var(--ws-line,#b7cfca);cursor:pointer}
.stock-mode .stock-status-badge{cursor:default}
.unified-matching .online-dialog-header h3{font-size:21px;line-height:1.45}
.unified-matching [data-options] strong{font-size:15px}.unified-matching [data-options] span{font-size:13px}
@media(max-width:720px){.stock-mode .stock-matching-table{min-width:740px}.unified-matching .online-dialog-header h3{font-size:17px}}

.login .login-remember-check{display:flex;align-items:center;gap:8px;line-height:1.5}.login .login-remember-check input{width:18px;height:18px;flex:0 0 auto}.login .login-remember-note{font-size:13px;line-height:1.65;color:var(--ws-blue,#526974);margin:4px 0 14px}.settings-session-table td:nth-child(2){white-space:normal;min-width:140px;max-width:240px}

.login #deviceNameField[hidden],.login #rememberOptions[hidden]{display:none!important}.login .login-remember-check input{padding:0}

/* Store product search and compact linked inventory badges. */
.store-product-layout .store-product-filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;padding:10px 12px}.store-product-layout .store-product-filters input,.store-product-layout .store-product-filters select{width:100%;min-width:0;height:34px;min-height:34px;padding:6px 8px;font-size:12px}.store-product-layout .store-product-row{display:block;position:relative;min-height:0;padding:10px 12px;border-bottom:1px solid var(--line)}.store-product-layout .row-product-select{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;width:100%;min-height:0;text-align:left;border:0;background:transparent;padding:0;border-radius:0}.store-product-layout .row-product-select:hover{background:transparent}.store-product-layout .row-product-text>strong{font-size:13px;line-height:1.45}.store-product-layout .row-product-meta{font-size:11px;line-height:1.45;margin-top:3px;color:var(--ws-muted,#52685e)}.store-product-layout .row-product-text>.row-product-price{display:flex;gap:3px;align-items:baseline;margin-top:7px;font-size:11px;line-height:1.3}.store-product-layout .row-list-price{font-size:11px;white-space:nowrap}.store-product-layout .row-sale-price{display:inline;font-size:12px;white-space:nowrap;color:var(--ws-amber,#b43b23)}.store-product-layout .row-product-quantity{display:flex;align-items:baseline;gap:4px;white-space:nowrap;line-height:1.5;font-size:14px}.store-product-layout .row-product-quantity small{display:inline;font-size:10px;margin:0;font-weight:400}.store-product-layout .row-product-quantity strong{font-size:14px}.row-product-links{position:absolute;right:12px;bottom:10px;display:flex;gap:4px}.store-product-layout .store-link-badge{display:inline-flex;align-items:center;justify-content:center;min-height:23px;height:23px;min-width:34px;padding:2px 6px;border:1px solid var(--ws-line,#d8e3df);border-radius:4px;font-size:10px;font-weight:500;line-height:1.2;background:var(--ws-raised,#f6f8f7);color:var(--ws-green,#647d72);white-space:nowrap}.store-product-layout .store-link-badge.active{background:var(--ws-accent-solid,#1b684d);color:#fff;border-color:#1b684d;font-weight:700}.store-product-layout .store-link-badge:focus-visible{outline:2px solid #31896b;outline-offset:2px}.store-product-layout .store-link-badge:disabled{opacity:1;cursor:default}.store-product-layout .store-stock-strip .store-detail-links{display:inline-flex;align-items:center;gap:4px}.store-product-layout .store-stock-strip{align-items:center;margin-top:10px}.store-product-row:has(.row-product-select:focus-visible){outline:2px solid var(--ws-line-strong,#79a893);outline-offset:-2px}.store-link-choice{width:min(500px,calc(100vw - 24px));padding:20px;border:1px solid var(--ws-line,#d8e3df);border-radius:8px}.store-link-choice::backdrop{background:#15382e66}.store-link-choice h2{font-size:16px;margin:0 0 14px}.store-link-choice-item{display:block;width:100%;text-align:left;margin-bottom:8px;font-size:12px;line-height:1.5}

.store-receipt-badge{cursor:default}.store-detail-links{flex-wrap:wrap}

/* Dedicated POS surface. All rules stay inside POS; store forms keep their styles. */
.pos-studio{--pos-green:var(--ws-accent-solid,#204c43);background:var(--ws-raised,#eef2f0);font-family:inherit;border-radius:12px;overflow:hidden}
body.posmode #workspaceStatus{display:none!important}
body.posmode .pos-studio{height:100dvh;min-height:0;border-radius:0}
.pos-studio .pos-top{height:auto;min-height:76px;flex-shrink:0;padding:14px 24px;border-bottom:1px solid var(--ws-line,#dce5e0);gap:18px}
.pos-studio .pos-brand{font-size:23px;letter-spacing:2px;white-space:nowrap;gap:12px}
.pos-studio .pos-brand span{display:inline-flex;font-size:12px;letter-spacing:1px;line-height:28px;border:0;padding:0 10px;background:var(--ws-raised,#e8f0eb);border-radius:6px;color:var(--ws-green,#204c43)}
.pos-clock{font-size:13px;color:var(--ws-green,#698076);margin-right:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
.pos-studio button,.pos-studio input,.pos-studio select{border-radius:8px;touch-action:manipulation}
.pos-actions{flex-wrap:wrap;justify-content:flex-end}
.pos-actions button{font-size:13px;padding:0 14px;min-height:44px}
.pos-actions button[aria-pressed="true"]{background:var(--ws-raised,#e8f0eb);border-color:var(--ws-line,#bdd1c6);color:var(--ws-green,#204c43)}
.pos-work{width:100%;max-width:none;grid-template-columns:minmax(0,1fr) minmax(300px,360px);gap:20px;padding:22px;min-height:0;align-items:stretch}
body.posmode .pos-work{overflow:auto;overscroll-behavior:contain}
.pos-basket,.pos-tools{background:var(--ws-panel,#fff);border:1px solid var(--ws-line,#dce5df);border-radius:12px;min-width:0}
.pos-basket{padding:0 22px;display:flex;flex-direction:column}
.pos-section-title{padding:20px 0 17px;border-bottom:1px solid var(--ws-line,#dce5df);flex-shrink:0}
.pos-section-title h1{font-size:20px}
.pos-section-title>span{font-size:14px;background:var(--ws-raised,#edf3ef);color:var(--ws-green,#204c43);padding:6px 12px;border-radius:20px}
.pos-cart-item{grid-template-columns:22px minmax(0,1fr) 132px auto 44px;padding:20px 0;gap:12px}
.pos-item-info strong{font-size:18px;line-height:1.5}
.pos-item-info span,.pos-item-info small{color:var(--ws-muted,#657b70)}
.pos-item-total{font-size:18px;grid-column:auto;grid-row:auto;margin:0}
.pos-item-remove{grid-column:auto;grid-row:auto;min-width:44px;min-height:48px;padding:0}
.pos-stepper{grid-column:auto;grid-row:auto;height:48px;display:grid;grid-template-columns:44px 1fr;border-radius:8px;overflow:visible}
.pos-stepper input{width:44px!important;min-height:46px;font-size:18px;border-radius:8px 0 0 8px}
.pos-stepper>div{display:flex;flex-direction:row;border-left:1px solid var(--ws-line,#d7e0db)}
.pos-stepper button{width:43px;min-height:46px;font-size:20px;padding:0}
.pos-stepper button+button{border-top:0;border-left:1px solid var(--ws-line,#d7e0db);border-radius:0 8px 8px 0}
.pos-empty{flex:1;min-height:300px;color:var(--ws-muted,#6d8378);gap:20px}
.pos-empty>div{border:0;border-radius:20px;background:var(--ws-raised,#edf3ef);width:84px;height:84px;font-size:44px;color:var(--ws-green,#628476)}
.pos-empty h2{font-weight:500;font-size:18px}
.pos-tools{padding:22px;align-self:start}
.pos-scan-status{display:flex;align-items:center;gap:9px;color:var(--ws-green,#204c43);font-size:17px}
.pos-ready-dot{width:8px;height:8px;border-radius:50%;background:#457d62;box-shadow:0 0 0 4px var(--ws-shadow,#e8f2eb);flex-shrink:0}
.pos-last-scan{font-size:13px;color:var(--ws-muted,#657b70);line-height:1.5;min-height:40px;margin:14px 0 18px;overflow-wrap:anywhere}
.pos-scanbar{height:58px;border-radius:9px;overflow:hidden;margin-bottom:8px;border-color:var(--ws-line,#cad8d0)}
.pos-scanbar input{font-size:16px}
.pos-input-actions{display:flex;justify-content:space-between;gap:8px;margin-bottom:22px}
.pos-input-actions button{font-size:13px;min-height:44px;background:var(--ws-raised,#f4f7f5);border:1px solid var(--ws-line,#dce5df);color:var(--ws-green,#365c4b);padding:0 14px}
.pos-input-actions button[aria-pressed="true"]{background:var(--ws-raised,#e5efe8);border-color:var(--ws-line,#9bbca9)}
.pos-search-launch{height:58px;background:var(--ws-accent-solid,#204c43);color:#fff;border:0}
.pos-tools #posSearchPanel{border:0;padding:0}
.pos-search-head{margin:8px 0}
.pos-filters{gap:8px;margin:12px 0}
.pos-filters select{font-size:13px;min-height:44px}
.pos-studio #posResults{max-height:40dvh;overflow:auto;overscroll-behavior:contain}
.pos-result{border-radius:0;padding:16px 2px}
.pos-checkout{flex-shrink:0;border-top:1px solid var(--ws-line,#dce5df);padding:18px 24px max(18px,env(safe-area-inset-bottom));gap:32px}
.pos-checkout>div{margin-right:auto;gap:20px}
.pos-checkout strong{font-size:36px;letter-spacing:-1px}
.pos-checkout>button{border-radius:10px;min-width:280px;min-height:66px;background:#204c43;font-size:21px}
.pos-studio dialog{border-radius:12px}
@media(min-width:1200px){body.posmode .pos-basket{min-height:0}body.posmode #posCart{overflow:auto;overscroll-behavior:contain}.pos-work{grid-template-columns:minmax(0,1fr) 380px}.pos-tools{padding:24px}}
@media(max-width:1199px){.pos-clock{display:none}.pos-cart-item{grid-template-columns:minmax(0,1fr) 132px 44px;gap:10px}.pos-item-number{display:none}.pos-item-info{grid-column:1;grid-row:1}.pos-stepper{grid-column:2;grid-row:1}.pos-item-remove{grid-column:3;grid-row:1}.pos-item-total{grid-column:1 / 3;grid-row:2;font-size:17px}.pos-basket{padding:0 16px}.pos-work{gap:16px;padding:16px}.pos-tools{padding:18px}}
@media(max-width:899px){.pos-work{display:flex;flex-direction:column;align-items:stretch;gap:16px}.pos-tools{order:0;width:100%;padding:16px}.pos-basket{order:1;width:100%;flex:1}.pos-tools .pos-scan-status{font-size:15px}.pos-last-scan{min-height:0;margin:8px 0 12px}.pos-input-actions{margin-bottom:12px}.pos-tools #posResults{max-height:32dvh}.pos-filters{grid-template-columns:repeat(4,minmax(0,1fr))}.pos-empty{min-height:160px;gap:12px;padding:24px}.pos-empty>div{width:58px;height:58px;font-size:32px}.pos-checkout>div{flex-direction:column;gap:4px}.pos-checkout strong{font-size:30px}.pos-checkout>button{min-width:240px}.pos-studio .pos-top{padding:12px 16px;min-height:70px;gap:10px}.pos-actions button{padding:0 10px;font-size:12px}}
@media(max-width:540px){.pos-studio .pos-top{flex-wrap:wrap}.pos-brand{margin-right:auto}.pos-actions{width:100%;justify-content:stretch}.pos-actions button{flex:1}.pos-work{padding:12px;gap:12px}.pos-filters{grid-template-columns:1fr 1fr}.pos-checkout{padding:12px 14px max(12px,env(safe-area-inset-bottom));gap:12px}.pos-checkout strong{font-size:25px}.pos-checkout>div>span{font-size:12px}.pos-checkout>button{min-width:160px;font-size:18px;padding:0 16px;min-height:60px}.pos-cart-item{grid-template-columns:minmax(0,1fr) 132px 44px}.pos-item-info{grid-column:1 / 3}.pos-stepper{grid-column:2;grid-row:2}.pos-item-total{grid-column:1;grid-row:2}.pos-item-info strong{font-size:16px}.pos-item-remove{grid-column:3;grid-row:1 / 3}}

/* Signed physical stock and reservation shortages are independent. */
.stock-negative,.row-product-quantity.stock-negative{color:var(--ws-amber,#b42318)!important;font-weight:750}
.stock-warning{color:var(--ws-amber,#92400e)!important;font-weight:600}
.pos-item-info .stock-negative,.pos-item-info .stock-warning,.pos-result .stock-negative,.pos-result .stock-warning{display:block;font-size:12px;line-height:1.5;white-space:normal}
.stock-inventory-table td small,.sales-history td small{display:block}

.stock-negative strong{color:inherit!important}

.store-delete-dialog{width:min(480px,94vw);padding:22px;border:1px solid var(--ws-line,#dce3e8);border-radius:3px;color:var(--ws-blue,#172d3b)}.store-delete-dialog::backdrop{background:#14251f80}.store-delete-dialog h2{margin:0 0 20px;font-size:20px}.store-delete-dialog p{overflow-wrap:anywhere;line-height:1.6}.store-delete-dialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.store-delete-dialog .store-delete-error{color:var(--ws-red,#a21b28)}.store-product-detail #deleteProduct,.store-delete-dialog button.danger{color:var(--ws-red,#a21b28);border-color:var(--ws-line,#e4bcc1);background:var(--ws-panel,#fff)}

/* Original 1560px content width plus 220px for the movement route column. */
body.workspaceui main:has(.inventory-history){max-width:1780px;min-width:0;flex:1}
.inventory-history .inventory-layout>div{min-width:0}
.stock-ledger-table,.inventory-history-dialog .stock-ledger-table{min-width:1460px}
.stock-ledger-table .stock-route{min-width:200px;white-space:nowrap}
.stock-route-unknown{color:var(--ws-muted,#6a7780);font-size:13px}
.stock-ledger-table .stock-route small{display:block;color:var(--ws-blue,#52616b);font-size:12px;margin-top:4px}
.inventory-history-dialog{width:min(1680px,calc(100vw - 32px))}

/* Shared spreadsheet-style cells for inventory, adjustments, warehouses and movements. */
.stock-ledger-table,.stock-inventory-table{border-collapse:collapse;border:1px solid var(--ws-line,#cbd5df)}
.stock-ledger-table th,.stock-ledger-table td,.stock-inventory-table th,.stock-inventory-table td{border:1px solid var(--ws-line,#cbd5df)}
.stock-ledger-table thead th,.stock-inventory-table thead th{background:var(--ws-raised,#edf2f6);border-bottom:2px solid var(--ws-line,#b8c7d3)}

.stock-adjust-table .stock-preview{min-width:100px;font-weight:700;font-variant-numeric:tabular-nums}
.stock-adjust-table .stock-preview-changed{background:var(--ws-raised,#eaf4ef);color:var(--ws-green,#145f4b)}

/* Product specifications: scoped to store product forms and detail tables. */
.store-editor-dialog .store-editor-top{grid-template-columns:minmax(180px,290px) minmax(0,1fr);gap:20px}
.store-editor-dialog .store-editor-identifiers{gap:12px}
.store-editor-dialog .store-basic-grid{display:grid;grid-template-columns:1.15fr .85fr 1fr;gap:10px 12px}
.store-editor-dialog .store-basic-grid>label{min-width:0;grid-column:auto}
.store-editor-dialog .store-editor-photo #photoStatus:empty{display:none}
.store-editor-dialog .store-editor-section{margin-top:16px;padding-top:14px}
.store-editor-dialog .store-editor-section h3{margin-bottom:12px}
.store-editor-dialog .store-editor-notes{grid-template-columns:minmax(0,2.3fr) minmax(0,1fr);gap:16px;align-items:start}
.store-editor-dialog .store-editor-notes>label{line-height:30px;gap:7px}
.store-editor-dialog .store-editor-notes>label>textarea{width:100%;min-height:120px;line-height:1.6}
.store-editor-dialog .spec-memo{min-width:0}
.store-editor-dialog .spec-memo>textarea{width:100%;min-height:300px}
.store-editor-dialog .spec-editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:30px;margin-bottom:7px;font-size:13px;line-height:1.4;color:var(--ws-green,#263e31)}
.store-editor-dialog .spec-editor-title{font-size:13px;font-weight:600}
.store-editor-dialog .spec-editor-toolbar>div{display:flex;gap:4px;flex-wrap:wrap}
.store-editor-dialog .spec-editor-toolbar button{padding:4px 9px;font-size:12px;font-weight:400;min-height:30px;height:30px}
.store-editor-dialog .spec-editor-toolbar button[aria-pressed=true]{background:var(--ws-raised,#e7f0eb);border-color:var(--ws-line,#83a698);color:var(--ws-green,#204c43)}
.store-editor-dialog .spec-editor-grid{min-height:300px;max-height:360px;overflow:auto;border:1px solid var(--ws-line,#d7e1dd);background:var(--ws-panel,#fff)}
.store-editor-dialog .spec-editor-grid[hidden],.store-editor-dialog .spec-memo>textarea[hidden],.store-editor-dialog .spec-editor-toolbar button[hidden]{display:none}
.store-editor-dialog .spec-editor-grid table{width:100%;table-layout:fixed;border-collapse:collapse;white-space:normal}
.store-editor-dialog .spec-editor-grid col:first-child{width:116px}
.store-editor-dialog .spec-editor-grid col:last-child{width:32px}
.store-editor-dialog .spec-editor-grid th{text-align:left;height:32px;padding:6px 8px;font-size:12px;font-weight:500;line-height:1.4;background:var(--ws-raised,#f4f7f5);position:sticky;top:0;z-index:1}
.store-editor-dialog .spec-editor-grid td{padding:5px;border-top:1px solid var(--ws-line,#e1e8e4);vertical-align:top;white-space:normal}
.store-editor-dialog .spec-editor-grid input{height:40px;min-height:40px;padding:8px 6px;font-size:13px;font-weight:400}
.store-editor-dialog .spec-editor-grid textarea{display:block;min-height:40px;height:40px;width:100%;padding:8px 6px;font-size:13px;font-weight:400;line-height:1.5;resize:vertical;overflow-y:auto}
.store-editor-dialog .spec-editor-grid button{border:0;background:transparent;min-height:40px;height:40px;width:100%;padding:3px;color:var(--ws-red,#7a625b);font-size:17px;font-weight:400}
.store-editor-dialog .spec-editor-status{color:var(--ws-red,#a55050);font-size:12px;margin:6px 0 0}
.store-editor-dialog .spec-editor-status:empty{display:none}
.store-note-summary .product-spec-table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left;font-size:13px;line-height:1.55}
.store-note-summary .product-spec-table col:first-child{width:116px}
.store-note-summary .product-spec-table th,.store-note-summary .product-spec-table td{height:auto;padding:9px 10px;vertical-align:top;border-bottom:1px solid var(--ws-line,#dce4df);white-space:normal;overflow-wrap:anywhere;font-size:inherit;line-height:inherit}
.store-note-summary .product-spec-table th{font-weight:500;background:var(--ws-raised,#f5f8f6);color:var(--ws-green,#294739);word-break:keep-all;overflow-wrap:normal}
.store-note-summary .store-spec-summary{grid-column:1/-1}
.store-spec-summary>dt{margin-bottom:8px}.store-spec-summary>dd{margin:0}
@media(max-width:700px){
 .store-editor-dialog .store-editor-top{grid-template-columns:1fr}
 .store-editor-dialog .store-basic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .store-editor-dialog .store-editor-notes{grid-template-columns:1fr}
 .store-editor-dialog .spec-editor-toolbar{flex-wrap:wrap}
 .store-editor-dialog .spec-editor-grid col:first-child{width:96px}
 .store-editor-dialog .spec-editor-grid input,.store-editor-dialog .spec-editor-grid textarea{font-size:16px}
 .store-editor-dialog .store-editor-photo{display:flex;width:auto}
 .store-editor-dialog .store-editor-photo #photoBox{width:92px;height:92px;flex:0 0 92px}
 .store-note-summary .product-spec-table col:first-child{width:96px}
}

/* Product search spans both columns; category/year and brand/stock align below. */
.store-product-layout .store-product-filters #productQuery{grid-column:1/-1}

/* Approved teal/gold artwork; only its transparent outer margin is clipped. */
body.workspaceui header .brand.brand-logo-link{display:block;position:relative;width:150px;height:36px;min-width:150px;flex:none;overflow:hidden;line-height:0;letter-spacing:normal}
body.workspaceui header .brand.brand-logo-link>.brand-logo-image{display:block;position:absolute;width:106.666667%;height:auto;max-width:none;max-height:none;left:-4%;top:-30.555556%;margin:0;border:0;pointer-events:none}
@media(max-width:800px){body.workspaceui header .brand.brand-logo-link{width:min(112px,100%);min-width:0;height:auto;aspect-ratio:150/36}}
