/* Cosmic Warehouse V4.2.2 STABLE - presentation-only stabilization layer.
   Business controls remain the original DOM nodes/IDs. */
:root{--stable-blue:#075fda;--stable-navy:#073665;--stable-border:#dbe5f0;--stable-soft:#f7faff;--stable-text:#10223c;--stable-muted:#66758b}
body{background:#f4f7fb;color:var(--stable-text)}
.content{padding:10px}.panel{margin-bottom:9px;border-radius:9px;box-shadow:none}.panel-head{padding:8px 10px}.panel h2{font-size:16px}.toolbar{gap:6px;padding:7px 9px}.toolbar button,.toolbar .filebtn{padding:7px 10px}.formgrid{gap:7px;padding:9px}.side-card{padding:9px}.side-card label{margin-bottom:7px}.side-card textarea{min-height:58px}.moneybox{padding:8px 0;font-size:14px}.moneybox b{font-size:18px}.table-wrap{max-height:none}table{font-size:12.5px}th,td{padding:4px 5px}.thumb,.prod-img{width:36px;height:36px}
.pos-layout{grid-template-columns:minmax(0,1fr) 318px;gap:9px;align-items:start}.pos-right>.panel{position:sticky;top:0}.pos-left>.panel{margin-bottom:0}.pos-left .table-wrap{max-height:calc(100vh - 183px);overflow:auto}.pos-left .panel-head{padding:7px 9px}
#saleScan,#recvScan,#outScan{min-width:320px}.inventory-search-row-v420 .search{max-width:520px}.inventory-filter-row-v420 select{max-width:220px}
.stable-customer-wrap{position:relative;margin-bottom:6px}.stable-customer-wrap>input{width:100%;min-width:0}.stable-customer-results{position:absolute;z-index:45;left:0;right:0;top:calc(100% + 3px);background:#fff;border:1px solid var(--stable-border);border-radius:8px;max-height:280px;overflow:auto;box-shadow:0 10px 26px rgba(15,45,80,.15)}.stable-customer-results[hidden]{display:none}.stable-customer-option{display:block;width:100%;border-radius:0;background:#fff;color:var(--stable-text);text-align:left;border-bottom:1px solid #edf1f6;padding:8px 9px}.stable-customer-option:hover,.stable-customer-option:focus{background:#eef6ff}.stable-customer-option b,.stable-customer-option small{display:block}.stable-customer-option small{color:var(--stable-muted);font-weight:400;margin-top:2px;white-space:normal}.stable-customer-empty{padding:10px;color:var(--stable-muted)}
#saleCust.stable-source-select{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}
.stable-mobile-more,.stable-side-close{display:none}.stable-pending-panel{border-top:1px solid var(--stable-border);padding-top:8px;margin-top:8px}.stable-pending-panel button{width:100%;background:#fff;color:var(--stable-blue);border:1px solid #bcd2ef}.stable-pending-panel summary{cursor:pointer;font-weight:700;padding:5px 1px}.stable-pending-count{display:inline-block;min-width:20px;text-align:center;border-radius:999px;background:#eaf3ff;color:var(--stable-blue);padding:1px 6px;margin-left:5px}.stable-pending-list{font-size:12px;color:var(--stable-muted);padding:5px 0}.stable-pending-row{display:flex;justify-content:space-between;gap:8px;padding:5px 0;border-bottom:1px solid #edf1f6}
.stable-scan-camera{white-space:nowrap}.stable-draft-clear{background:#fff!important;color:#d52c2c!important;border:1px solid #efb5b5!important}
.stable-camera{display:grid;gap:9px}.stable-camera-reader{min-height:260px;background:#071524;border-radius:9px;overflow:hidden;position:relative}.stable-camera-reader>video{width:100%!important;max-height:58vh;object-fit:cover;display:block}#stableHtml5Reader video{object-fit:initial!important;max-height:none!important}.stable-camera-status{padding:8px 9px;border-radius:7px;background:#eef6ff;color:#16446f}.stable-camera-status.bad{background:#fff0f0;color:#a51f1f}.stable-camera-actions{display:flex;gap:7px;flex-wrap:wrap}.stable-camera-actions>*{flex:1}.stable-camera-manual{display:flex;gap:6px}.stable-camera-manual input{flex:1;min-width:0}
/* Keep customer import on desktop, but make the data table visually dominant. */
body .people-import-rules-v421,body .rules{margin-top:5px;margin-bottom:5px}.panel+.panel{margin-top:0}
@media(max-width:1100px) and (min-width:901px){.pos-layout{grid-template-columns:minmax(0,1fr) 290px}.sidebar{width:205px}.content{padding:8px}}
@media(max-width:900px){
  html,body{font-size:16px}.app{height:100dvh}.top{height:54px}.content{padding:0 0 68px!important;background:#fff}.panel{border-radius:0;border-left:0;border-right:0;margin:0;box-shadow:none}.panel-head{padding:7px 10px}.panel h2{font-size:16px}.toolbar{padding:7px 9px;gap:5px;flex-wrap:nowrap}.toolbar .search{min-width:0;flex:1;width:auto}.toolbar button{white-space:nowrap;flex:0 0 auto}.pos-layout{display:block}.pos-left{width:100%}.pos-left>.panel>.panel-head{display:none}.pos-left .table-wrap{max-height:none!important;overflow:visible}.pos-right{display:none;position:fixed!important;z-index:140;inset:54px 0 0 0;background:rgba(5,23,45,.42);padding:8px;overflow:auto}.content.stable-more-open .pos-right{display:block}.pos-right>.panel{position:relative!important;top:auto!important;max-width:520px;margin:0 auto;border:1px solid var(--stable-border);border-radius:12px;background:#fff}.stable-side-close{display:block!important;position:sticky;top:0;z-index:2;width:100%;margin-bottom:7px;background:#eef5ff!important;color:var(--stable-blue)!important;border:1px solid #c6d9f0!important}.stable-mobile-more{display:inline-flex!important;align-items:center;justify-content:center;background:#fff!important;color:var(--stable-blue)!important;border:1px solid #bdd1ed!important;min-width:44px}.side-card{padding:8px}.side-card label{margin-bottom:6px}.moneybox{padding:7px 0}.side-card>.toolbar{display:grid!important;grid-template-columns:1fr 1fr;gap:6px;padding:7px 0}.side-card>.toolbar button{width:100%}
  /* Mobile = input first, details immediately. Hide all import/file-transfer controls. */
  .pos-left .toolbar label.filebtn,.pos-left .toolbar input[type=file],.people-import-rules-v421,.import-actions-v420,.mobile-hide-import-stable,[data-stable-import]{display:none!important}
  #recvTbl,#outTbl,#saleTbl{font-size:12px}.pos-left table th,.pos-left table td{padding:5px 4px}.pos-left table th{position:sticky;top:54px;z-index:4}.thumb,.prod-img{width:32px;height:32px}
  .stable-customer-results{position:relative;top:auto;max-height:240px;box-shadow:none;margin-top:4px}
  .stable-camera-reader{min-height:300px}.modal-card{width:96vw;max-height:92dvh}.modal-body{padding:8px}.modal-head{padding:8px}
  /* Customer page: search + data rows, no import banner on phone. */
  #content:has(.customer-table-v421) .rules,#content:has([data-customer-id]) .people-import-rules-v421{display:none!important}
  /* Data-first product/customer tables should not waste height. */
  .stats{gap:6px;margin:6px}.stat{padding:9px}.stat b{font-size:20px}.formgrid{padding:7px;gap:5px}
}
@media(max-width:560px){
  .top{padding:0 7px}.top-right-v301{gap:4px}.top-right-v301 #languageSelect{max-width:88px}.pos-left table{font-size:11.5px}.pos-left table td,.pos-left table th{padding:4px 3px}.stable-scan-camera{font-size:0;width:42px;padding:7px}.stable-scan-camera:after{content:'📷';font-size:17px}.stable-draft-clear{font-size:0;width:42px;padding:7px}.stable-draft-clear:after{content:'🗑';font-size:17px}
}
@media(max-width:900px){
  /* Final mobile decision: no fixed customer/form card above detail rows. The original desktop control lives in More. */
  .sale-mobile-customer-card{display:none!important}
}

/* ===== V4.2.2 STABLE final approved data-first layout ===== */
.stable-sale-meta{display:grid;grid-template-columns:minmax(220px,1.25fr) minmax(150px,.72fr) minmax(150px,.72fr) minmax(170px,.8fr);gap:7px;padding:8px 9px 2px}.stable-sale-meta label{margin:0;min-width:0}.stable-sale-meta label>span,.stable-sale-fixed>span{display:block;font-size:12px;font-weight:700;margin-bottom:4px;color:#34465c}.stable-sale-meta input,.stable-sale-meta select{width:100%;min-width:0;height:36px}.stable-sale-fixed input[readonly]{background:#f7f9fc;color:#34465c}
.pos-left>.panel{min-height:calc(100vh - 76px)}.pos-left>.panel>.toolbar{margin-top:0}.stable-pending-panel{order:99}.pos-right .side-card{display:flex;flex-direction:column}.pos-right .side-card>.stable-pending-panel{margin-top:8px}
@media(max-width:900px){
  .stable-sale-meta{display:none!important}
  /* Approved mobile layout: exactly one compact scan/action row, then detail data. */
  .pos-left>.panel>.toolbar,.pos-left .compact-toolbar-v4{display:flex!important;grid-template-columns:none!important;align-items:center!important;flex-wrap:nowrap!important;gap:4px!important;padding:6px 7px!important;min-height:44px!important}
  .pos-left>.panel>.toolbar .search,.pos-left .compact-toolbar-v4 .search{display:block!important;flex:1 1 auto!important;min-width:90px!important;width:1%!important;height:38px!important;margin:0!important}
  .pos-left>.panel>.toolbar button,.pos-left .compact-toolbar-v4 button{display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 40px!important;width:40px!important;min-width:40px!important;height:38px!important;padding:0 5px!important;margin:0!important;font-size:0!important;border-radius:7px!important}
  .pos-left>.panel>.toolbar button:not(.stable-scan-camera):not(.stable-draft-clear):not(.stable-mobile-more)::after,.pos-left .compact-toolbar-v4 button:not(.stable-scan-camera):not(.stable-draft-clear):not(.stable-mobile-more)::after{content:'+';font-size:21px;line-height:1}
  .pos-left .stable-scan-camera::after{content:'📷';font-size:17px}.pos-left .stable-draft-clear::after{content:'🗑';font-size:17px}.pos-left .stable-mobile-more::after{content:'⋯';font-size:22px;line-height:1}
  .pos-left .stable-mobile-more{display:inline-flex!important}
  /* Never show the old RC4.1.0 fixed-info panel below the line items. Originals live in More drawer. */
  .sales-mobile-details-v409{display:none!important}
  /* Override the old mobile card conversion: keep a dense real table. */
  .pos-left .pos-table-scroll,.pos-left .table-wrap{display:block!important;overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch!important;max-height:none!important;width:100%!important}
  .pos-left .entry-table,.pos-left table#saleTbl,.pos-left table#recvTbl,.pos-left table#outTbl{display:table!important;width:760px!important;min-width:760px!important;table-layout:auto!important;border-collapse:collapse!important}
  .pos-left .entry-table thead,.pos-left table#saleTbl thead,.pos-left table#recvTbl thead,.pos-left table#outTbl thead{display:table-header-group!important}
  .pos-left .entry-table tbody,.pos-left table#saleTbl tbody,.pos-left table#recvTbl tbody,.pos-left table#outTbl tbody{display:table-row-group!important}
  .pos-left .entry-table tr,.pos-left table#saleTbl tr,.pos-left table#recvTbl tr,.pos-left table#outTbl tr{display:table-row!important;margin:0!important;border:0!important;background:#fff!important;box-shadow:none!important}
  .pos-left .entry-table th,.pos-left .entry-table td,.pos-left table#saleTbl th,.pos-left table#saleTbl td,.pos-left table#recvTbl th,.pos-left table#recvTbl td,.pos-left table#outTbl th,.pos-left table#outTbl td{display:table-cell!important;position:static!important;width:auto!important;min-height:0!important;border-bottom:1px solid #e8eef5!important;padding:5px 5px!important;text-align:left!important;vertical-align:middle!important;white-space:nowrap!important}
  .pos-left .entry-table td::before,.pos-left table#saleTbl td::before,.pos-left table#recvTbl td::before,.pos-left table#outTbl td::before{content:none!important;display:none!important}
  .pos-left table#saleTbl input,.pos-left table#recvTbl input,.pos-left table#outTbl input{min-width:58px!important;max-width:105px!important;height:32px!important;padding:3px 5px!important;margin:0!important}
  .pos-left table#saleTbl .sku,.pos-left table#recvTbl .sku,.pos-left table#outTbl .sku{min-width:86px!important}.pos-left table .desc{white-space:normal!important;min-width:105px!important;max-width:150px!important}
  .pos-left table button.dangerbtn{min-width:34px!important;width:34px!important;height:32px!important;padding:0!important;font-size:0!important}.pos-left table button.dangerbtn::after{content:'🗑';font-size:15px}
  /* No sticky bottom form/summary panels; maximize visible detail rows. */
  .content{padding-bottom:8px!important}.pos-left>.panel{min-height:0!important}
}
@media(max-width:420px){
  .pos-left>.panel>.toolbar,.pos-left .compact-toolbar-v4{gap:3px!important;padding-left:5px!important;padding-right:5px!important}
  .pos-left>.panel>.toolbar button,.pos-left .compact-toolbar-v4 button{flex-basis:36px!important;width:36px!important;min-width:36px!important}
  .pos-left .entry-table,.pos-left table#saleTbl,.pos-left table#recvTbl,.pos-left table#outTbl{width:720px!important;min-width:720px!important}
}
@media(max-width:900px){
  .pos-left>.panel>.toolbar .mobile-hide-import-stable,.pos-left .compact-toolbar-v4 .mobile-hide-import-stable,.mobile-hide-import-stable,[data-stable-import]{display:none!important}
}
/* Win over the legacy V4 !important desktop grid. */
@media(min-width:1101px){.pos-layout{grid-template-columns:minmax(0,1fr) 318px!important;gap:8px!important}.pos-right{min-width:0!important}}
@media(max-width:1100px) and (min-width:901px){.pos-layout{grid-template-columns:minmax(0,1fr) 290px!important;gap:8px!important}.pos-right{min-width:0!important}}


/* ===== V4.2.2 STABLE mobile fixed-panel + count data-first corrections ===== */
.stable-count-create-panel .stable-count-new-clear{white-space:nowrap}
.stable-count-entry-row{display:flex;gap:6px;align-items:center;padding:7px 8px;border-bottom:1px solid var(--stable-border);background:#fff;position:sticky;top:0;z-index:5}.stable-count-entry-row .search{flex:1;min-width:0}.stable-count-entry-row button{flex:0 0 auto}.stable-count-mobile-drawer[hidden]{display:none!important}
@media(max-width:900px){
  /* A page change must never leave a side/fixed info panel consuming the mobile page. */
  #content:not(.stable-more-open) .pos-layout>.pos-right,#content:not(.stable-more-open) .sales-mobile-top-v409{display:none!important;height:0!important;min-height:0!important;overflow:hidden!important;margin:0!important;padding:0!important;border:0!important}
  #content .sales-mobile-details-v409{display:none!important}
  #content.stable-more-open .pos-layout>.pos-right{display:block!important;height:auto!important;overflow:auto!important;padding:8px!important}
  /* Count page: one compact manual-entry line; type + draft operations live in More. */
  .stable-count-create-panel{border-bottom:1px solid var(--stable-border)!important}
  .stable-count-create-panel>.panel-head{display:none!important}
  .stable-count-create-panel .stable-count-mobile-row{display:flex!important;align-items:center;gap:4px;padding:6px 7px;min-height:44px}
  .stable-count-create-panel .stable-count-scope-label{display:block!important;flex:1 1 auto;min-width:0;margin:0!important;padding:0!important;border:0!important}
  .stable-count-create-panel .stable-count-scope-label>span{display:none!important}
  .stable-count-create-panel #ctScope{width:100%!important;min-width:0!important;height:38px!important;min-height:38px!important;padding:7px 9px!important;font-size:16px!important}
  .stable-count-create-panel .stable-count-camera,.stable-count-create-panel .stable-count-create,.stable-count-create-panel .stable-count-more{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:40px!important;min-width:40px!important;height:38px!important;min-height:38px!important;padding:0!important;font-size:18px!important;white-space:nowrap}
  .stable-count-create-panel .stable-count-shell-hidden{display:none!important}
  .stable-count-mobile-drawer{padding:7px 8px;border-top:1px solid var(--stable-border);background:#f8fbff}
  .stable-count-mobile-drawer .stable-count-type-label{display:grid!important;grid-template-columns:110px 1fr;gap:6px;align-items:center;margin:0 0 6px!important}
  .stable-count-mobile-drawer .stable-count-type-label>span{font-size:14px!important;margin:0!important}.stable-count-mobile-drawer #ctType{min-height:40px!important;height:40px!important;padding:6px!important;font-size:16px!important;width:100%!important}
  .stable-count-mobile-drawer .stable-count-new-clear{width:100%!important;min-height:40px!important;font-size:15px!important;padding:7px!important}
  /* Count entry modal: manual input first, detail table immediately below. */
  .stable-count-entry-row{padding:6px!important;gap:4px!important;top:62px!important}
  .stable-count-entry-row #countScanInputV422{height:40px!important;min-height:40px!important;padding:7px 8px!important;font-size:16px!important;flex:1 1 auto!important;min-width:80px!important;width:1%!important}
  .stable-count-entry-row button{width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;padding:0!important;font-size:17px!important}
  .stable-count-entry-row+.table-wrap{margin-top:0!important}
}
/* ===== end V4.2.2 STABLE corrections ===== */
/* V4.2.2 camera session result strip: visible scan confirmation and cumulative quantities. */
.stable-camera-summary{border:1px solid var(--stable-border);border-radius:8px;background:#fff;overflow:hidden}.stable-camera-summary-head{display:flex;justify-content:space-between;gap:10px;padding:7px 9px;background:#f4f8fd;color:#34465c;font-size:13px}.stable-camera-summary-head b{font-size:17px;color:var(--stable-blue);margin-left:3px}.stable-camera-latest{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:7px;padding:8px 9px;border-top:1px solid #eaf0f6}.stable-camera-latest b{color:var(--stable-blue);font-size:15px}.stable-camera-latest span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#42526a}.stable-camera-latest strong{white-space:nowrap;color:#0b7a42}.stable-camera-results{max-height:132px;overflow:auto;border-top:1px solid #eaf0f6}.stable-camera-result-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:6px 9px;border-bottom:1px solid #edf2f7;font-size:12px}.stable-camera-result-row:last-child{border-bottom:0}.stable-camera-result-row>div{min-width:0}.stable-camera-result-row b,.stable-camera-result-row span,.stable-camera-result-row small{display:block}.stable-camera-result-row span{color:#526176;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stable-camera-result-row small{color:#66758b;margin-top:1px}.stable-camera-result-row strong{font-size:16px;color:#0b7a42;white-space:nowrap}
@media(max-width:900px){.stable-camera-summary-head{padding:6px 8px}.stable-camera-latest{padding:7px 8px}.stable-camera-results{max-height:110px}.stable-camera-result-row{padding:5px 8px}}

/* ===== V4.2.4 STABLE mobile UI consolidation ===== */
.count-create-v424{display:grid;grid-template-columns:220px minmax(260px,1fr) auto;gap:8px;align-items:end;padding:9px}.count-create-v424>label{margin:0}.count-create-v424>label>select,.count-create-v424>label>input{width:100%;height:38px}.count-create-v424>.toolbar{padding:0;align-items:center}.count-scope-choice-list-v424{max-height:56vh;overflow:auto;border:1px solid var(--stable-border);border-radius:9px;background:#fff}.count-scope-choice-v424{display:flex;align-items:center;gap:9px;padding:8px 10px;border-bottom:1px solid #edf2f7;cursor:pointer}.count-scope-choice-v424:last-child{border-bottom:0}.count-scope-choice-v424 input{width:18px;height:18px;flex:0 0 auto}.count-scope-choice-v424 span{min-width:0}.count-scope-choice-v424 b,.count-scope-choice-v424 small{display:block}.count-scope-choice-v424 small{color:var(--stable-muted);margin-top:2px}.count-product-cell-v424{min-width:0}.count-product-cell-v424 b,.count-product-cell-v424 span,.count-product-cell-v424 small{display:block}.count-product-cell-v424 b{font-size:14px;color:var(--stable-blue)}.count-product-cell-v424 span{white-space:normal;line-height:1.2;margin-top:2px}.count-product-cell-v424 small{color:#5f6f83;margin-top:3px}.count-detail-v424 .cntQty{width:92px;min-width:72px}.count-note-btn-v424{min-width:38px}.count-actions-v424{flex-wrap:wrap}.count-doc-scope-v424{margin:0 0 5px}
.stable-mobile-pager-v424{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;padding:10px 6px 14px;background:#fff;border-top:1px solid var(--stable-border)}.stable-mobile-pager-v424 button{min-width:34px;height:34px;padding:4px 7px;background:#fff;color:var(--stable-blue);border:1px solid #cbd9ea;border-radius:6px}.stable-mobile-pager-v424 button.active{background:var(--stable-blue);color:#fff}.stable-mobile-pager-v424 span{display:flex;align-items:center;gap:4px;font-size:13px}.stable-mobile-pager-v424 input{width:54px;height:34px;padding:3px 5px;text-align:center}
@media(max-width:900px){
  /* POS mobile toolbar: exactly input + manual add + camera + clear + more. */
  .pos-left{overflow:hidden!important;max-width:100vw!important}.pos-left>.panel{overflow:hidden!important}.pos-left .table-wrap,.pos-left .pos-table-scroll{max-width:100%!important;contain:paint!important}
  .pos-left>.panel>.toolbar .mobile-hide-pos-extra-v424,.pos-left .compact-toolbar-v4 .mobile-hide-pos-extra-v424{display:none!important}
  .pos-left>.panel>.toolbar button:not(.stable-manual-add-v424):not(.stable-scan-camera):not(.stable-draft-clear):not(.stable-mobile-more),.pos-left .compact-toolbar-v4 button:not(.stable-manual-add-v424):not(.stable-scan-camera):not(.stable-draft-clear):not(.stable-mobile-more){display:none!important}
  .pos-left>.panel>.toolbar .stable-manual-add-v424,.pos-left .compact-toolbar-v4 .stable-manual-add-v424{display:inline-flex!important}
  .pos-left>.panel>.toolbar .stable-manual-add-v424::after,.pos-left .compact-toolbar-v4 .stable-manual-add-v424::after{content:'+'!important;font-size:21px!important;line-height:1!important}
  .pos-left>.panel>.toolbar button:not(.stable-scan-camera):not(.stable-draft-clear):not(.stable-mobile-more)::after,.pos-left .compact-toolbar-v4 button:not(.stable-scan-camera):not(.stable-draft-clear):not(.stable-mobile-more)::after{content:none}
  .pos-left>.panel>.toolbar .stable-manual-add-v424::after,.pos-left .compact-toolbar-v4 .stable-manual-add-v424::after{content:'+'!important}
  .pos-left .entry-table,.pos-left table#saleTbl,.pos-left table#recvTbl,.pos-left table#outTbl{width:680px!important;min-width:680px!important;max-width:none!important}
  /* Main mobile lists: one record per row, horizontally scroll for details. */
  .stable-mobile-list-v424>.table-wrap,.stable-mobile-list-v424 .table-wrap{display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch!important;contain:paint!important}
  .stable-mobile-list-v424 table.responsive-table{display:table!important;width:max-content!important;min-width:760px!important;table-layout:auto!important;border-collapse:separate!important;border-spacing:0!important}
  .stable-mobile-list-v424 table.responsive-table thead{display:table-header-group!important}.stable-mobile-list-v424 table.responsive-table tbody{display:table-row-group!important}.stable-mobile-list-v424 table.responsive-table tr{display:table-row!important;margin:0!important;box-shadow:none!important;background:#fff!important}.stable-mobile-list-v424 table.responsive-table th,.stable-mobile-list-v424 table.responsive-table td{display:table-cell!important;width:auto!important;min-width:72px!important;max-width:260px!important;padding:7px 8px!important;vertical-align:middle!important;white-space:nowrap!important;border-bottom:1px solid #e5edf6!important;position:static!important}.stable-mobile-list-v424 table.responsive-table td::before{content:none!important;display:none!important}.stable-mobile-list-v424 table.responsive-table td:nth-child(n+3){overflow:hidden;text-overflow:ellipsis}.stable-mobile-list-v424 .thumb,.stable-mobile-list-v424 .prod-img{width:32px!important;height:32px!important}
  #prodTbl.stable-mobile-list-v424 table th:nth-child(2),#prodTbl.stable-mobile-list-v424 table td:nth-child(2){position:sticky!important;left:0!important;z-index:3!important;background:#fff!important;min-width:96px!important;font-weight:700}#prodTbl.stable-mobile-list-v424 table th:last-child,#prodTbl.stable-mobile-list-v424 table td:last-child,#invTbl.stable-mobile-list-v424 table th:last-child,#invTbl.stable-mobile-list-v424 table td:last-child{position:sticky!important;right:0!important;z-index:3!important;background:#fff!important}
  #invTbl.stable-mobile-list-v424 table th:nth-child(3),#invTbl.stable-mobile-list-v424 table td:nth-child(3){position:sticky!important;left:0!important;z-index:3!important;background:#fff!important;min-width:96px!important;font-weight:700}
  /* Structured count creation: compact, no tall empty form. */
  .count-create-v424{display:grid!important;grid-template-columns:110px minmax(0,1fr);gap:5px 6px;padding:7px!important}.count-create-v424>label{font-size:12px}.count-create-v424>label>select,.count-create-v424>label>input{height:38px!important;font-size:15px!important}.count-create-v424>.toolbar{grid-column:1/-1;display:flex!important;gap:4px!important;padding:0!important;flex-wrap:wrap!important}.count-create-v424>.toolbar button{height:38px!important;padding:0 9px!important;flex:1 1 auto!important;min-width:94px!important;font-size:13px!important}.count-create-v424>.rules{grid-column:1/-1;margin:0!important;padding:4px 2px!important;font-size:12px!important}
  .count-scope-picker-v424>.toolbar{flex-wrap:nowrap!important}.count-scope-choice-list-v424{max-height:60vh}.count-scope-choice-v424{padding:8px}
  /* Count entry: no card-per-field. One SKU uses one compact row, with location folded into first cell. */
  .count-detail-v424 .table-wrap{overflow:visible!important;width:100%!important}.count-detail-v424 table.responsive-table{display:table!important;width:100%!important;min-width:0!important;table-layout:fixed!important}.count-detail-v424 table.responsive-table thead{display:table-header-group!important}.count-detail-v424 table.responsive-table tbody{display:table-row-group!important}.count-detail-v424 table.responsive-table tr{display:table-row!important;margin:0!important;box-shadow:none!important;background:#fff!important}.count-detail-v424 table.responsive-table th,.count-detail-v424 table.responsive-table td{display:table-cell!important;position:static!important;padding:7px 4px!important;min-width:0!important;width:auto!important;vertical-align:middle!important;border-bottom:1px solid #dfe8f2!important}.count-detail-v424 table.responsive-table td::before{content:none!important;display:none!important}.count-detail-v424 table th:nth-child(1){width:44%}.count-detail-v424 table th:nth-child(2){width:13%}.count-detail-v424 table th:nth-child(3){width:23%}.count-detail-v424 table th:nth-child(4){width:10%}.count-detail-v424 table th:nth-child(5){width:10%}.count-detail-v424 .count-product-cell-v424 b{font-size:14px}.count-detail-v424 .count-product-cell-v424 span{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.count-detail-v424 .count-product-cell-v424 small{font-size:11px;white-space:normal}.count-detail-v424 .cntQty{width:100%!important;min-width:0!important;height:38px!important;padding:4px 5px!important;font-size:16px!important}.count-detail-v424 .count-note-btn-v424{width:34px!important;min-width:34px!important;height:34px!important;padding:0!important}.count-actions-v424{gap:4px!important;padding:6px!important}.count-actions-v424 button{font-size:12px!important;padding:6px 7px!important}
}
@media(max-width:420px){.stable-mobile-list-v424 table.responsive-table{min-width:700px!important}.count-detail-v424 table.responsive-table{min-width:0!important}.count-detail-v424 table th:nth-child(1){width:42%}.count-detail-v424 table th:nth-child(3){width:25%}}
/* ===== end V4.2.4 STABLE mobile UI consolidation ===== */

@media(max-width:900px){.stable-mobile-list-v424 table.responsive-table tr.stable-page-hidden-v424{display:none!important}}
