#productStockScreen{padding:14px}.product-stock-shell{max-width:1100px;margin:auto}.product-stock-topbar{display:flex;align-items:center;gap:10px;margin-bottom:12px}.product-stock-topbar small{font-size:7px;letter-spacing:.15em;color:#8793a1}.product-stock-topbar h2{margin:2px 0;font-size:19px;color:#26313c}.product-stock-back{width:36px;height:36px;border:1px solid #dbe3eb;border-radius:9px;background:#fff;display:flex;align-items:center;justify-content:center;color:#26313c}.product-stock-search{margin-left:auto;width:min(330px,45%);height:38px;display:flex;align-items:center;gap:6px;border:1px solid #dbe3eb;border-radius:9px;background:#fff;padding:0 9px}.product-stock-search .material-icons{font-size:17px;color:#738092}.product-stock-search input{border:0!important;outline:0!important;width:100%;background:transparent!important;font-size:8px!important}.product-stock-list{display:grid;gap:8px}.product-stock-card{position:relative;display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #dfe6ee;border-radius:13px;padding:11px;box-shadow:0 4px 14px rgba(20,34,50,.04)}.product-stock-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:#172033;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}.product-stock-main{min-width:0;flex:1}.product-stock-main h3{margin:0;font-size:11px;color:#26313c}.product-stock-main p{margin:2px 0 6px;font-size:7px;color:#84909d}.product-stock-tags{display:flex;flex-wrap:wrap;gap:5px}.product-stock-tags span{background:#f4f7fa;border:1px solid #e0e6ec;border-radius:6px;padding:4px 6px;font-size:7px;color:#526171}.product-stock-more{width:31px;height:31px;border:0;border-radius:8px;background:#eef2f6;color:#26313c;display:flex;align-items:center;justify-content:center}.product-stock-more .material-icons{font-size:18px}.product-stock-empty{text-align:center;padding:28px;background:#fff;border:1px dashed #d5dee8;border-radius:12px;color:#7c8793;font-size:9px}.product-stock-ledger-modal{position:fixed;inset:0;z-index:99999;background:rgba(8,15,28,.46);display:flex;align-items:center;justify-content:center;padding:15px;box-sizing:border-box}.product-stock-ledger-box{position:relative;width:min(850px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:15px;padding:15px;box-shadow:0 25px 70px rgba(0,0,0,.25)}.product-stock-ledger-close{position:absolute;right:10px;top:10px;border:0;background:#eef2f6;width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center}.product-stock-ledger-title{display:flex;align-items:center;gap:9px;padding-right:35px}.product-stock-ledger-title>div:first-child{width:42px;height:42px;border-radius:50%;background:#172033;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}.product-stock-ledger-title h3{margin:0;font-size:13px}.product-stock-ledger-title p{margin:3px 0;color:#7b8794;font-size:8px}.product-stock-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:10px 0}.product-stock-summary>div{background:#f7f9fb;border:1px solid #e0e6ec;border-radius:10px;padding:9px}.product-stock-summary span{font-size:7px;color:#7c8793;display:block}.product-stock-summary strong{font-size:12px;color:#26313c;display:block;margin-top:2px}.product-stock-ledger-table{border:1px solid #dfe6ee;border-radius:11px;overflow:auto}.product-stock-ledger-head,.product-stock-ledger-row{min-width:570px;display:grid;grid-template-columns:85px 125px 80px 90px 100px 90px;align-items:center}.product-stock-ledger-head{background:#172033;color:#fff;font-size:8px;font-weight:900;padding:9px}.product-stock-ledger-row{padding:9px;border-top:1px solid #edf1f5;font-size:8px;color:#4c5967}.product-stock-ledger-row:first-child{border-top:0}@media(max-width:700px){#productStockScreen{padding:8px}.product-stock-topbar{flex-wrap:wrap}.product-stock-search{order:3;width:100%;margin-left:0}.product-stock-summary{grid-template-columns:1fr 1fr}.product-stock-summary>div:last-child{grid-column:1/-1}.product-stock-ledger-box{max-height:94vh;padding:11px}}
.product-stock-actions{position:relative}.product-stock-menu{position:absolute;right:0;top:38px;width:185px;background:#fff;border:1px solid #dbe3eb;border-radius:9px;padding:5px;z-index:50;box-shadow:0 14px 35px rgba(15,23,42,.15)}.product-stock-menu button{width:100%;display:flex;align-items:center;gap:6px;border:0;background:#fff;padding:8px;border-radius:7px;text-align:left;font-size:8px;font-weight:800;color:#26313c}.product-stock-menu button:hover{background:#f3f6f9}.product-stock-menu .material-icons{font-size:16px}

/* Step 42.37 — Dashboard Blue Theme + modal stays inside dashboard content */
#productStockScreen{position:relative!important;background:#f5f7fb!important}
.product-stock-back{border-color:#cfe0f5!important;background:#edf5ff!important;color:#1565c0!important}
.product-stock-search{border-color:#cfe0f5!important;box-shadow:0 4px 12px rgba(47,128,237,.06)}
.product-stock-search .material-icons{color:#2f80ed!important}
.product-stock-card{border-color:#cfe0f5!important;box-shadow:0 5px 16px rgba(47,128,237,.07)!important}
.product-stock-avatar{background:#2f80ed!important;box-shadow:0 4px 10px rgba(47,128,237,.18)}
.product-stock-tags span{background:#edf5ff!important;border-color:#cfe0f5!important;color:#315b8d!important}
.product-stock-more{background:#edf5ff!important;color:#1565c0!important;border:1px solid #cfe0f5!important}
.product-stock-menu{border-color:#cfe0f5!important;box-shadow:0 14px 35px rgba(47,128,237,.16)!important}
.product-stock-menu button:hover{background:#edf5ff!important}
.product-stock-ledger-modal{
  position:absolute!important;
  inset:0!important;
  z-index:1000!important;
  padding:14px!important;
  background:rgba(13,71,161,.30)!important;
  align-items:center!important;
  justify-content:center!important;
}
.product-stock-ledger-box{
  width:min(850px,100%)!important;
  max-width:100%!important;
  max-height:calc(100vh - 28px)!important;
  border:1px solid #b9d3f4!important;
  border-radius:16px!important;
  box-shadow:0 24px 65px rgba(13,71,161,.24)!important;
}
.product-stock-ledger-close{background:#edf5ff!important;color:#1565c0!important}
.product-stock-ledger-title>div:first-child{background:#2f80ed!important}
.product-stock-summary>div{background:#edf5ff!important;border-color:#cfe0f5!important}
.product-stock-summary strong{color:#1565c0!important}
.product-stock-ledger-table{border-color:#cfe0f5!important;overflow:hidden!important}
.product-stock-ledger-head{background:linear-gradient(135deg,#1565c0,#2f80ed)!important}
@media(max-width:700px){.product-stock-ledger-modal{padding:8px!important}.product-stock-ledger-box{max-height:calc(100vh - 16px)!important}}


/* Step 42.38 stock ledger transaction colors + compact 7-column table */
.product-stock-ledger-head,.product-stock-ledger-row{grid-template-columns:13% 18% 13% 15% 14% 14% 13%!important;min-width:0!important;gap:0!important}
.product-stock-ledger-head{background:linear-gradient(135deg,#1565c0,#2f80ed)!important}
.product-stock-ledger-row .product-stock-type.purchase{color:#1f9d55!important;font-weight:900!important}
.product-stock-ledger-row>div{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 2px}
.product-stock-ledger-table{overflow:hidden!important}
@media(max-width:700px){.product-stock-ledger-head,.product-stock-ledger-row{grid-template-columns:12% 16% 13% 16% 15% 14% 14%!important;min-width:0!important}.product-stock-ledger-head{font-size:7px!important}.product-stock-ledger-row{font-size:7px!important}}
/* Step 42.39 — stock status + cost adjustment */
.product-stock-tags .stock-low{background:#fff0ef!important;border-color:#f2c3be!important;color:#d92d20!important;font-weight:900!important}
.product-stock-tags .stock-ok{background:#ecfdf3!important;border-color:#bfe8cf!important;color:#1f9d55!important;font-weight:900!important}
.product-cost-adjust{position:fixed;inset:0;z-index:10020;background:rgba(13,71,161,.25);display:flex;align-items:center;justify-content:center;padding:14px;box-sizing:border-box}
.product-cost-adjust-card{position:relative;width:min(330px,100%);background:#fff;border:1px solid #cfe0f5;border-radius:16px;padding:15px;box-shadow:0 22px 55px rgba(13,71,161,.22)}
.product-cost-adjust-close{position:absolute;right:9px;top:9px;width:30px;height:30px;border:1px solid #cfe0f5!important;border-radius:8px;background:#edf5ff!important;color:#1565c0!important;display:flex;align-items:center;justify-content:center}
.product-cost-adjust-title{display:flex;align-items:center;gap:9px;padding-right:35px;margin-bottom:13px}.product-cost-adjust-title>.material-icons{width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,#1565c0,#2f80ed);color:#fff;display:flex;align-items:center;justify-content:center}.product-cost-adjust-title small{font-size:7px;color:#6d86a3;letter-spacing:.12em}.product-cost-adjust-title h3{margin:3px 0 0;font-size:13px;color:#18324f}.product-cost-adjust-card label{display:block;font-size:8px;font-weight:900;color:#42566c}.product-cost-adjust-card input{display:block;width:100%;box-sizing:border-box;margin-top:5px;border:1px solid #cfe0f5!important;border-radius:9px!important;background:#f8fbff!important;padding:10px!important;font-size:12px!important;color:#18324f!important;outline:none}.product-cost-adjust-save{width:100%;margin-top:10px;border:0;border-radius:9px;background:linear-gradient(135deg,#1565c0,#2f80ed);color:#fff;padding:10px;font-size:9px;font-weight:900;display:flex;align-items:center;justify-content:center;gap:6px}.product-cost-adjust-save .material-icons{font-size:16px}

/* Step 42.40 — cost popup is constrained to Business Manager content area */
.product-cost-adjust{left:var(--sbp-content-left,var(--ard-manager-sidebar,0px))!important;right:0!important;top:0!important;bottom:0!important;z-index:100000!important;padding:10px!important}
.product-stock-tags .stock-low{background:#fff0ef!important;border-color:#f2c3be!important;color:#d92d20!important}
.product-stock-tags .stock-ok{background:#ecfdf3!important;border-color:#bfe8cf!important;color:#1f9d55!important}
@media(max-width:700px){.product-cost-adjust{left:0!important;padding:10px!important}.product-cost-adjust-card{width:min(320px,calc(100% - 12px))!important}}
/* Step 42.42 — Cost Adjust must start after the permanent 54px mobile icon rail. */
.product-cost-adjust{left:var(--sbp-content-left,var(--ard-manager-sidebar,226px))!important;right:0!important}
@media(max-width:700px){
  .product-cost-adjust{left:54px!important;right:0!important;padding:8px!important}
  .product-cost-adjust-card{width:min(300px,calc(100% - 12px))!important;padding:12px!important}
}

/* Step 42.57 — combined Cost + Opening Stock adjustment */
.product-cost-adjust-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.product-cost-adjust-fields label{min-width:0}.product-cost-adjust-fields label:last-child{grid-column:1/-1}.product-cost-adjust-note{margin-top:8px;padding:7px 8px;border-radius:8px;background:#edf5ff;border:1px solid #cfe0f5;color:#607b99;font-size:7px;line-height:1.45}.product-cost-adjust-card{width:min(370px,100%)!important}.product-cost-adjust-save{margin-top:9px!important}@media(max-width:700px){.product-cost-adjust-fields{grid-template-columns:1fr 1fr}.product-cost-adjust-card{width:min(330px,calc(100% - 12px))!important}}

/* 42.62 — Product Stock universal filter stays directly to the RIGHT of search. */
.product-stock-topbar>.sbp-search-filter-line{margin-left:auto;width:min(430px,52%);flex:0 1 430px!important;}
.product-stock-topbar>.sbp-search-filter-line>.sbp-search-filter-row{flex:1 1 76%!important;}
.product-stock-topbar>.sbp-search-filter-line>.sbp-screen-filter{flex:0 0 24%!important;max-width:24%!important;}
@media(max-width:700px){.product-stock-topbar{flex-wrap:wrap}.product-stock-topbar>.sbp-search-filter-line{order:5;width:100%;max-width:none;flex-basis:100%;}.product-stock-topbar>.sbp-search-filter-line>.sbp-screen-filter{max-width:24%!important;}}


/* 42.63 — Product Stock: search first, Universal Filter immediately to its RIGHT. */
.product-stock-topbar>.sbp-search-filter-line{order:3!important;margin-left:auto!important;width:min(560px,58%)!important;max-width:560px!important;flex:1 1 560px!important;display:flex!important;align-items:center!important;}
.product-stock-topbar>.sbp-search-filter-line>.sbp-search-filter-row{order:1!important;flex:1 1 auto!important;min-width:0!important;}
.product-stock-topbar>.sbp-search-filter-line>.sbp-screen-filter{order:2!important;flex:0 0 112px!important;max-width:112px!important;}
@media(max-width:700px){.product-stock-topbar>.sbp-search-filter-line{order:5!important;width:100%!important;max-width:none!important;flex:0 0 100%!important;margin-left:0!important;}.product-stock-topbar>.sbp-search-filter-line>.sbp-screen-filter{flex:0 0 82px!important;max-width:82px!important;}}
