/* Cosmic Warehouse V4.2.9 STABLE
   Readability and compact-layout layer. Presentation only: business element IDs,
   form names, event handlers and stored values are intentionally unchanged. */
:root{
  --v427-readable-width:100%;
  --v427-wide-width:100%;
  --v427-page-gutter:clamp(8px,1vw,18px);
  --v427-control-height:42px;
  --v427-body-font:20px;
  --v427-data-font:20px;
  --v427-control-font:19px;
  --v427-secondary-font:18.5px;
  --v427-text:#10223c;
  --v427-muted:#52677d;
  --v427-border:#d7e2ee;
}

html,body{font-size:var(--v427-body-font);line-height:1.38;color:var(--v427-text)}
.sidebar{width:clamp(235px,13.5vw,285px)}
.brand{padding:16px 18px}
.brand b{font-size:31px;line-height:1.15}
.brand small{display:block;margin-top:4px;font-size:var(--v427-secondary-font);line-height:1.3}
.navtitle{font-size:var(--v427-secondary-font);padding:8px 12px 3px}
.navbtn{font-size:20px;line-height:1.2;min-height:46px;padding:8px 12px;margin:2px 0}
.navico{width:28px}
.top{height:68px;padding:0 14px}
.top #pageTitle,.topbar #pageTitle{font-size:31px}
#saveStatus{font-size:var(--v427-secondary-font);line-height:1.2;padding:4px 8px}
.top button,.top select{font-size:var(--v427-control-font);min-height:42px;padding:7px 10px}
.version-footer{font-size:17px;line-height:1.35}

.content,main#content{padding:10px var(--v427-page-gutter)!important}
#content>*{width:100%;max-width:none!important;margin-left:0!important;margin-right:0!important}
#content>.pos-layout,#content>.map-layout,#content>.detail-page-v4{max-width:none!important}
.panel{margin-bottom:9px!important;border-radius:10px!important}
.panel-head{min-height:48px;padding:6px 10px!important}
.panel-head h2,.panel h2{font-size:26px!important;line-height:1.2}
.toolbar{gap:8px!important;padding:6px 8px!important;flex-wrap:wrap!important;align-items:center}
.side-card{padding:10px!important}
.side-card label{margin-bottom:8px!important}
.php-form{padding:12px!important;gap:8px!important}
.php-form label{margin:8px 0;min-height:42px!important}
.php-form label span,.formgrid label span,.form-grid label,.side-card label>span{font-size:var(--v427-control-font)!important;line-height:1.25}

button,.btn,.file-btn,.filebtn,.toolbar button,.report-btn{
  font-size:var(--v427-control-font);line-height:1.2;min-height:var(--v427-control-height);padding:7px 9px;
  white-space:nowrap;
}
input,select,textarea,.compact-input,.toolbar input,.toolbar select,
.formgrid input,.formgrid select,.formgrid textarea,.form-grid input,.form-grid select,.form-grid textarea,
.php-form input,.php-form select,.php-form textarea,.side-card input,.side-card select,.side-card textarea{
  font-size:var(--v427-control-font);line-height:1.25;min-height:var(--v427-control-height);padding:7px 8px;
}
textarea{min-height:78px}
.mini{font-size:var(--v427-secondary-font);padding:6px 8px}
.muted,.rules,.pill,small,.field-hint-v410,.login-input-hint-v421{font-size:var(--v427-secondary-font)!important;line-height:1.4}
.pill,.pack-chip-v4{padding:4px 8px}
.moneybox{font-size:var(--v427-control-font);padding:7px 0!important}
.moneybox b{font-size:28px!important}

.stats{gap:8px;margin:0 0 9px}
.stat{padding:10px 12px}
.stat span,.inventory-summary-v413 span{font-size:var(--v427-secondary-font)}
.stat b{font-size:34px}
.inventory-summary-v413{gap:8px;padding:9px 11px;margin-bottom:7px}
.inventory-summary-v413>div{min-width:165px;gap:1px}
.inventory-summary-v413 b{font-size:34px}
.inventory-summary-sku-v413 b{font-size:25px}
.inventory-total-footer-v413{font-size:var(--v427-control-font);padding:8px 10px}
.inventory-total-footer-v413 b{font-size:31px}
.module-grid{grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:9px!important;padding:10px!important}
.module-tile{min-height:88px!important;padding:12px!important}
.module-tile b{font-size:25px!important;margin-bottom:4px!important}
.module-tile span{font-size:var(--v427-secondary-font);line-height:1.3}

table,.data-table,.responsive-table,.entry-table,.table-wrap table{
  font-size:var(--v427-data-font)!important;line-height:1.25;color:var(--v427-text);
}
th,td,.data-table th,.data-table td,.table-wrap th,.table-wrap td{
  font-size:var(--v427-data-font)!important;line-height:1.25;padding:7px 8px!important;white-space:normal!important;overflow-wrap:break-word;word-break:normal;
}
th{vertical-align:middle}
td{vertical-align:middle}
.table-wrap{max-height:calc(100dvh - 188px);overflow:auto}
.table-wrap table{width:100%;min-width:0}
.thumb,.prod-img{width:52px!important;height:52px!important;font-size:15.5px!important}
.edit,.edit.short,.edit.money,.edit.long{font-size:var(--v427-control-font)!important;min-height:38px;height:auto!important;padding:5px 7px!important}
.stockwarn{font-size:17px}
.link-button-v424{font-size:var(--v427-control-font)!important}

/* Keep the two most frequently used wide lists inside one readable field of view. */
#invTbl table{table-layout:fixed}
#invTbl th:nth-child(1),#invTbl td:nth-child(1){width:42px}
#invTbl th:nth-child(2),#invTbl td:nth-child(2){width:70px}
#invTbl th:nth-child(3),#invTbl td:nth-child(3){width:120px}
#invTbl th:nth-child(5),#invTbl td:nth-child(5){width:130px}
#invTbl th:nth-child(6),#invTbl td:nth-child(6){width:105px}
#invTbl th:nth-child(7),#invTbl td:nth-child(7){width:78px}
#invTbl th:nth-child(8),#invTbl td:nth-child(8){width:105px}
#invTbl th:nth-child(9),#invTbl td:nth-child(9){width:190px}
#invTbl th:last-child,#invTbl td:last-child{width:190px}
#invTbl td:last-child button{margin:2px 0}
#prodTbl table{table-layout:auto;width:100%;min-width:0}
#prodTbl th,#prodTbl td{min-width:0;max-width:220px}
#prodTbl th:first-child,#prodTbl td:first-child{width:70px}
#prodTbl th:last-child,#prodTbl td:last-child{min-width:132px;width:150px}

/* Sales/receiving/outbound use the full display; the side form remains a bounded work zone. */
.pos-layout{gap:10px!important;grid-template-columns:minmax(0,1fr) clamp(440px,27vw,520px)!important;align-items:start}
.pos-left>.panel{min-height:0!important}
.pos-left .pos-table-scroll{max-height:calc(100dvh - 214px)!important;overflow:auto!important}
.pos-left .entry-table{min-width:1050px!important}
.entry-table input,.entry-table select{font-size:var(--v427-control-font)!important;height:40px!important;min-height:40px!important;padding:5px 7px!important}
.entry-table .desc{min-width:170px;white-space:normal!important}
.stable-sale-meta{grid-template-columns:minmax(240px,1.2fr) repeat(3,minmax(170px,.72fr));gap:8px;padding:9px 10px 3px}
.stable-sale-meta label>span,.stable-sale-fixed>span{font-size:var(--v427-secondary-font)}
.stable-sale-meta input,.stable-sale-meta select{height:42px}

/* Every searchable/manual-scan input keeps its original ID and events. */
.search-shell-v427{
  position:relative;display:inline-flex;align-items:center;flex:1 1 320px;min-width:min(260px,100%);max-width:100%;
}
.search-shell-v427>input{width:100%!important;min-width:0!important;padding-right:46px!important;-webkit-appearance:none;appearance:none}
.search-shell-v427>input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}
.search-clear-v427{
  display:none!important;position:absolute!important;right:9px;top:50%;transform:translateY(-50%);z-index:4;
  width:28px!important;min-width:28px!important;height:28px!important;min-height:28px!important;padding:0!important;
  border-radius:50%!important;background:#87929d!important;color:#fff!important;font-size:22px!important;line-height:1!important;
}
.search-shell-v427.has-value-v427>.search-clear-v427{display:inline-flex!important}
.search-clear-v427:hover,.search-clear-v427:focus{background:#334155!important;outline:3px solid rgba(11,116,222,.2)}
.inventory-search-row-v420>.search-shell-v427,.compact-toolbar-v4>.search-shell-v427{flex:1 1 420px}

/* Order records are grouped by task instead of forcing ten columns into a narrow table. */
.order-record-modal-card-v427{width:calc(100vw - 32px)!important;max-width:none!important}
.order-records-v427{display:grid;gap:10px;width:100%}
.order-record-card-v427{
  display:grid;grid-template-columns:minmax(230px,1.05fr) minmax(520px,2.45fr) minmax(210px,.9fr) minmax(190px,.72fr);
  gap:12px;align-items:stretch;padding:12px;border:1px solid #cbd9e8;border-radius:12px;background:#fff;
  box-shadow:0 2px 9px rgba(15,23,42,.055);
}
.order-record-identity-v427{display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0}
.order-record-label-v427,.order-record-facts-v427 dt,.order-record-shipping-v427 span{font-size:17px!important;color:var(--v427-muted);font-weight:800}
.order-record-number-v427{justify-content:flex-start!important;width:max-content;max-width:100%;min-height:0!important;padding:0!important;background:transparent!important;color:#0757a8!important;text-decoration:underline;font-size:22px!important;white-space:nowrap}
.order-record-identity-v427 strong{font-size:21px;line-height:1.25;overflow-wrap:break-word}
.order-record-facts-v427{display:grid;grid-template-columns:repeat(5,minmax(105px,1fr));gap:7px;margin:0;min-width:0}
.order-record-facts-v427>div,.order-record-shipping-v427>div{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;padding:8px 9px;border-radius:9px;background:#f3f7fc}
.order-record-facts-v427 dt,.order-record-facts-v427 dd{margin:0}
.order-record-facts-v427 dd{font-size:20px;font-weight:900;white-space:nowrap}
.order-record-balance-v427 dd{color:#b45309}
.order-record-shipping-v427{display:grid;gap:7px;min-width:0}
.order-record-shipping-v427 b{font-size:20px;color:#087443}
.order-tracking-v427{min-height:0!important;padding:0!important;justify-content:flex-start!important;background:transparent!important;color:#0757a8!important;text-decoration:underline;white-space:normal!important}
.order-record-actions-v427{display:flex;flex-direction:column;justify-content:center;gap:8px;min-width:0}
.order-record-actions-v427>button{width:100%;white-space:normal;min-height:46px}
.order-complete-v427{display:flex;align-items:center;justify-content:center;min-height:42px;padding:6px 8px;border-radius:9px;background:#e9f8ef;color:#087443;font-weight:900;text-align:center}
.order-record-empty-v427{color:#94a3b8}.adaptive-empty-v427{padding:24px;text-align:center;color:var(--v427-muted);font-weight:800}

/* Content-sized dialogs remove the old forced 96vw x 90vh empty canvas. */
.modal{padding:22px;align-items:center!important}
.modal-card{
  width:min(1080px,calc(100vw - 44px))!important;max-width:1080px!important;
  height:auto!important;max-height:88dvh!important;border-radius:13px!important;
}
.modal-head{min-height:56px;padding:9px 12px;flex:0 0 auto}
.modal-head b{font-size:26px;line-height:1.2}
.modal-head button{min-width:42px;padding:7px}
.modal-body,.modal-card #modalBody{font-size:var(--v427-body-font);padding:9px!important;max-height:calc(88dvh - 58px);overflow:auto!important}
.record-modal-v421{padding:22px!important;align-items:center!important}
.record-modal-card-v421{
  width:calc(100vw - 32px)!important;max-width:none!important;
  height:auto!important;max-height:88dvh!important;border-radius:13px!important;
}
.record-modal-card-v421 #modalBody{flex:0 1 auto!important;min-height:0;max-height:calc(88dvh - 58px);padding:10px!important;overflow:auto!important}
.record-modal-card-v421 .table-wrap{max-height:62dvh!important;min-height:0;overflow:auto!important}
.record-modal-card-v421 table{width:100%!important;min-width:0!important;table-layout:fixed}
.record-modal-card-v421 table th:last-child,.record-modal-card-v421 table td:last-child{position:static!important;box-shadow:none!important}
.record-modal-card-v421 table thead th{position:sticky;top:0}
.record-identity-v424{font-size:var(--v427-body-font);line-height:1.45;padding:8px 10px;margin-bottom:7px}
.modal-actions{padding:9px 0 0}

.product-search-option-v421{font-size:var(--v427-control-font);grid-template-columns:170px minmax(250px,1fr);min-height:68px!important;padding:8px 10px!important}
.product-search-option-v421 b{font-size:22px}
.product-search-option-v421 small{font-size:var(--v427-secondary-font)!important}
.picking-head-v424>b{font-size:28px}
.picking-panel-v424{padding:10px;margin-bottom:9px}
.picking-panel-v424 .table-wrap{max-height:300px}

@media(max-width:1500px) and (min-width:901px){
  .sidebar{width:240px}
  .pos-layout{grid-template-columns:1fr!important}
  .pos-right>.panel{position:static!important}
  .pos-right .side-card{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px!important}
  .pos-right .side-card>.toolbar,.pos-right .side-card>.stable-pending-panel{grid-column:1/-1}
  .pos-right .side-card>.toolbar{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important}
  .pos-right .side-card>label:has(textarea){grid-column:span 2}
  .pos-right .side-card>.moneybox{padding:8px 10px!important;border:1px solid var(--v427-border);border-radius:9px}

  /* Wide list rows become four-column information cards before text starts colliding. */
  #content table.wide-record-grid-v427,.record-modal-card-v421 table.wide-record-grid-v427{display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important}
  #content table.wide-record-grid-v427 thead,.record-modal-card-v421 table.wide-record-grid-v427 thead{display:none!important}
  #content table.wide-record-grid-v427 tbody,.record-modal-card-v421 table.wide-record-grid-v427 tbody{display:block!important}
  #content table.wide-record-grid-v427 tbody tr:not(.empty-row),.record-modal-card-v421 table.wide-record-grid-v427 tbody tr:not(.empty-row){
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;margin:8px 0!important;padding:9px!important;
    border:1px solid var(--v427-border)!important;border-radius:11px!important;background:#fff!important;box-shadow:0 2px 8px rgba(15,23,42,.05)!important;
  }
  #content table.wide-record-grid-v427 tbody td,.record-modal-card-v421 table.wide-record-grid-v427 tbody td{
    display:block!important;position:static!important;width:auto!important;min-width:0!important;max-width:none!important;padding:7px!important;
    border:0!important;border-radius:8px;background:#f7f9fc;white-space:normal!important;
  }
  #content table.wide-record-grid-v427 tbody td::before,.record-modal-card-v421 table.wide-record-grid-v427 tbody td::before{
    content:attr(data-label)!important;display:block!important;margin-bottom:3px;font-size:17px!important;font-weight:900;color:var(--v427-muted);
  }
  #content table.wide-record-grid-v427 tbody td:last-child,.record-modal-card-v421 table.wide-record-grid-v427 tbody td:last-child{grid-column:span 2}

  .order-record-card-v427{grid-template-columns:minmax(245px,.9fr) minmax(0,2fr) minmax(210px,.8fr)}
  .order-record-actions-v427{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,260px));justify-content:end}
}

@media(max-width:1200px) and (min-width:901px){
  #content table.wide-record-grid-v427 tbody tr:not(.empty-row),.record-modal-card-v421 table.wide-record-grid-v427 tbody tr:not(.empty-row){grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .pos-right .side-card{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-record-card-v427{grid-template-columns:1fr}
  .order-record-facts-v427{grid-template-columns:repeat(3,minmax(0,1fr))}
  .order-record-shipping-v427{grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-record-actions-v427{grid-column:auto;justify-content:stretch;grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:900px){
  html,body{font-size:19.5px;line-height:1.4}
  .sidebar{width:min(88vw,380px)!important}
  .brand b{font-size:31px}.brand small{font-size:18.5px}
  .navtitle{font-size:18px}.navbtn{font-size:20px;min-height:52px}
  .top{min-height:64px!important;height:auto!important;padding:7px 8px!important}
  .top-left-v301 #pageTitle,.top #pageTitle{font-size:28px}
  .top-left-v301 #saveStatus{font-size:16px;left:59px;top:43px;max-width:190px}
  .top button,.top select{font-size:18.5px;min-height:44px}
  .content,main#content{padding:7px!important;padding-bottom:calc(10px + env(safe-area-inset-bottom))!important}
  #content>*{max-width:none;margin-left:0!important;margin-right:0!important}
  .panel{border-radius:10px!important;margin-bottom:8px!important}
  .panel-head{min-height:50px;padding:7px 9px!important}.panel-head h2,.panel h2{font-size:26px!important}
  .toolbar{gap:7px!important;padding:7px 8px!important}
  button,.btn,.file-btn,.filebtn,.toolbar button,.report-btn{font-size:19px!important;min-height:46px!important;padding:8px 10px!important}
  input,select,textarea,.compact-input,.toolbar input,.toolbar select,
  .formgrid input,.formgrid select,.formgrid textarea,.form-grid input,.form-grid select,.form-grid textarea,
  .php-form input,.php-form select,.php-form textarea,.side-card input,.side-card select,.side-card textarea{
    font-size:19px!important;min-height:46px!important;padding:8px!important;
  }
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px;margin-bottom:8px}
  .stat{padding:8px}.stat span{font-size:18.5px}.stat b{font-size:32px}
  .module-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;padding:7px!important}
  .module-tile{min-height:90px!important;padding:9px!important}.module-tile b{font-size:25px!important}.module-tile span{font-size:18.5px}
  .thumb,.prod-img{width:50px!important;height:50px!important}

  /* Long mobile lists become labelled cards; no 700-900px sideways table. */
  .stable-mobile-list-v424>.table-wrap,.stable-mobile-list-v424 .table-wrap,
  .record-modal-card-v421 .table-wrap{display:block!important;width:100%!important;max-width:100%!important;overflow:visible!important;max-height:none!important}
  .stable-mobile-list-v424 table.responsive-table,.record-modal-card-v421 table.responsive-table{
    display:block!important;width:100%!important;min-width:0!important;table-layout:auto!important;
  }
  .stable-mobile-list-v424 table.responsive-table thead,.record-modal-card-v421 table.responsive-table thead{display:none!important}
  .stable-mobile-list-v424 table.responsive-table tbody,.record-modal-card-v421 table.responsive-table tbody{display:block!important}
  .stable-mobile-list-v424 table.responsive-table tbody tr:not(.empty-row),
  .record-modal-card-v421 table.responsive-table tbody tr:not(.empty-row){
    display:block!important;margin:7px 0!important;padding:6px!important;border:1px solid var(--v427-border)!important;
    border-radius:11px!important;background:#fff!important;box-shadow:0 2px 8px rgba(15,23,42,.06)!important;
  }
  .stable-mobile-list-v424 table.responsive-table tbody tr:not(.empty-row) td,
  .record-modal-card-v421 table.responsive-table tbody tr:not(.empty-row) td{
    display:grid!important;grid-template-columns:minmax(112px,38%) minmax(0,1fr)!important;align-items:center!important;
    gap:8px!important;width:100%!important;min-width:0!important;max-width:none!important;position:static!important;
    padding:7px!important;border-bottom:1px solid #edf2f7!important;white-space:normal!important;font-size:19px!important;
  }
  .stable-mobile-list-v424 table.responsive-table tbody tr:not(.empty-row) td::before,
  .record-modal-card-v421 table.responsive-table tbody tr:not(.empty-row) td::before{
    content:attr(data-label)!important;display:block!important;font-size:17px!important;font-weight:900;color:#475569;
  }
  .stable-mobile-list-v424 table.responsive-table tbody tr:not(.empty-row) td:last-child,
  .record-modal-card-v421 table.responsive-table tbody tr:not(.empty-row) td:last-child{border-bottom:0!important}
  #prodTbl.stable-mobile-list-v424 table th:nth-child(2),#prodTbl.stable-mobile-list-v424 table td:nth-child(2),
  #invTbl.stable-mobile-list-v424 table th:nth-child(3),#invTbl.stable-mobile-list-v424 table td:nth-child(3),
  #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:static!important;left:auto!important;right:auto!important}

  /* Editable item lines use a two-column card, keeping quantity directly editable. */
  .pos-left .pos-table-scroll{display:block!important;width:100%!important;max-width:100%!important;overflow:visible!important;max-height:none!important;padding:0!important}
  .pos-left .entry-table,.pos-left table#saleTbl,.pos-left table#recvTbl,.pos-left table#outTbl{
    display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;
  }
  .pos-left .entry-table thead,.pos-left table#saleTbl thead,.pos-left table#recvTbl thead,.pos-left table#outTbl thead{display:none!important}
  .pos-left .entry-table tbody,.pos-left table#saleTbl tbody,.pos-left table#recvTbl tbody,.pos-left table#outTbl tbody{display:block!important}
  .pos-left .entry-table tr,.pos-left table#saleTbl tr,.pos-left table#recvTbl tr,.pos-left table#outTbl tr{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;
    margin:7px 0!important;padding:7px!important;border:1px solid var(--v427-border)!important;border-radius:11px!important;
    background:#fff!important;box-shadow:0 2px 8px rgba(15,23,42,.05)!important;
  }
  .pos-left .entry-table td,.pos-left table#saleTbl td,.pos-left table#recvTbl td,.pos-left table#outTbl td{
    display:block!important;position:static!important;width:100%!important;min-width:0!important;max-width:none!important;
    padding:5px!important;border:0!important;white-space:normal!important;font-size:19px!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:attr(data-label)!important;display:block!important;margin-bottom:3px;font-size:17px!important;font-weight:900;color:#52677d;
  }
  .pos-left .entry-table td:nth-child(1),.pos-left .entry-table td:nth-child(2),.pos-left .entry-table td:last-child,
  .pos-left table#saleTbl td:nth-child(1),.pos-left table#saleTbl td:nth-child(2),.pos-left table#saleTbl td:last-child,
  .pos-left table#recvTbl td:nth-child(1),.pos-left table#recvTbl td:nth-child(2),.pos-left table#recvTbl td:last-child,
  .pos-left table#outTbl td:nth-child(1),.pos-left table#outTbl td:nth-child(2),.pos-left table#outTbl td:last-child{grid-column:1/-1}
  .pos-left .entry-table input,.pos-left .entry-table select,
  .pos-left table#saleTbl input,.pos-left table#recvTbl input,.pos-left table#outTbl input{
    width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;min-height:44px!important;font-size:19px!important;
  }
  .pos-left .entry-table button.dangerbtn,.pos-left table#saleTbl button.dangerbtn,.pos-left table#recvTbl button.dangerbtn,.pos-left table#outTbl button.dangerbtn{
    width:100%!important;min-width:0!important;min-height:42px!important;font-size:18.5px!important;
  }
  .pos-left .entry-table button.dangerbtn::after,.pos-left table#saleTbl button.dangerbtn::after,.pos-left table#recvTbl button.dangerbtn::after,.pos-left table#outTbl button.dangerbtn::after{content:none!important}

  /* Short dialogs are content-height cards; long dialogs still scroll safely. */
  .modal,.record-modal-v421{padding:8px!important;align-items:center!important;justify-content:center!important}
  .modal-card,.record-modal-card-v421,.image-modal-card{
    width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;
    height:auto!important;max-height:94dvh!important;border-radius:13px!important;
  }
  .modal-head{min-height:58px;position:sticky;top:0;z-index:12;background:#fff}
  .modal-body,.modal-card #modalBody,.record-modal-card-v421 #modalBody{
    font-size:19.5px!important;max-height:calc(94dvh - 58px)!important;padding:8px!important;overflow:auto!important;
  }
  .record-modal-card-v421 table{min-width:0!important}
  .modal-actions{position:sticky;bottom:0;background:#fff;padding:8px 0;z-index:8}
  .product-search-option-v421{grid-template-columns:112px minmax(0,1fr);font-size:19px!important;min-height:76px!important}
  .product-search-option-v421 b{font-size:20px}.product-search-option-v421 small{font-size:18.5px!important}
  .search-shell-v427{flex:1 1 100%;width:100%;min-width:0}
  .search-clear-v427{width:31px!important;min-width:31px!important;height:31px!important;min-height:31px!important;right:9px;font-size:24px!important}
  .order-record-card-v427{grid-template-columns:1fr;padding:9px;gap:8px}
  .order-record-facts-v427{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .order-record-shipping-v427{grid-template-columns:1fr 1fr}
  .order-record-actions-v427{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .order-record-number-v427{font-size:21px!important}
}

@media(max-width:480px){
  .module-grid{grid-template-columns:1fr!important}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .stat span{font-size:18.5px}.stat b{font-size:30px}
  .stable-mobile-list-v424 table.responsive-table tbody tr:not(.empty-row) td,
  .record-modal-card-v421 table.responsive-table tbody tr:not(.empty-row) td{grid-template-columns:minmax(98px,36%) minmax(0,1fr)!important}
  .order-record-facts-v427,.order-record-shipping-v427,.order-record-actions-v427{grid-template-columns:1fr}
}

/* Print documents have their own Letter/A4 typography and must not inherit screen magnification. */
@media print{
  html,body{font-size:12pt!important;line-height:1.35!important}
  table,.data-table,.responsive-table,.entry-table,.table-wrap table,
  th,td,.data-table th,.data-table td,.table-wrap th,.table-wrap td{font-size:10pt!important;line-height:1.25!important;padding:4pt 5pt!important}
}

/* V4.2.27 location barcode/QR scanning */
.location-scan-wrap-v427{position:relative}.location-scan-wrap-v427>input.loc,.location-scan-wrap-v427>#dLoc,.location-scan-wrap-v427>#outTargetLoc,.location-scan-wrap-v427>#singleLocCodeV401,.location-scan-wrap-v427>#editLocCodeV406,.location-scan-wrap-v427>#locCodeV4{padding-right:42px!important}.location-camera-v427{position:absolute!important;right:4px!important;top:50%!important;transform:translateY(-50%);width:34px!important;min-width:34px!important;height:30px!important;min-height:30px!important;padding:2px!important;z-index:2}.entry-table td.location-scan-wrap-v427{min-width:140px}
@media(max-width:900px){.location-camera-v427{width:38px!important;min-width:38px!important;height:36px!important;min-height:36px!important}.entry-table td.location-scan-wrap-v427{min-width:155px}}
