
.po-stock{padding-bottom:72px}
.po-stock .po-page-header{margin-bottom:24px}
.po-stock-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:20px;margin:0 0 28px}
.po-stock-kpis article{min-height:138px;padding:24px 26px;border:1px solid #d7e1ee;border-radius:22px;background:#fff;box-shadow:0 14px 34px rgba(15,38,72,.07);display:flex;flex-direction:column;justify-content:space-between}
.po-stock-kpis span{font-size:15px;color:#667791;font-weight:600}
.po-stock-kpis strong{font-size:34px;line-height:1;color:#0e2850}
.po-stock-tabs{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 30px}
.po-stock-tabs a{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 24px;border-radius:16px;background:#eaf0f7;color:#15325c;text-decoration:none;font-weight:700}
.po-stock-tabs a.is-active{background:#153764;color:#fff}
.po-stock-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(340px,.8fr);gap:28px;align-items:start}
.po-stock-card{background:#fff;border:1px solid #d7e1ee;border-radius:24px;padding:30px;box-shadow:0 14px 34px rgba(15,38,72,.06);min-width:0}
.po-stock-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid #e4ebf3}
.po-stock-card-head h2{margin:0 0 8px;font-size:28px;line-height:1.2;color:#102b54}
.po-stock-card-head p{margin:0;color:#667791;line-height:1.55}
.po-stock-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important}
.po-stock-form label{display:flex;flex-direction:column;gap:8px;margin:0;min-width:0}
.po-stock-form label.is-wide{grid-column:1/-1}
.po-stock-form label>span{font-weight:700;color:#1b365f}
.po-stock-form input:not([type=checkbox]),.po-stock-form select,.po-stock-form textarea{width:100%;min-height:50px;padding:12px 14px;border:1px solid #cfdaea;border-radius:13px;background:#fff;color:#102b54;font:inherit;box-sizing:border-box}
.po-stock-form textarea{min-height:96px;resize:vertical}
.po-stock-form input:focus,.po-stock-form select:focus,.po-stock-form textarea:focus{outline:3px solid rgba(23,111,230,.12);border-color:#2a75dc}
.po-stock-check{grid-column:1/-1!important;flex-direction:row!important;align-items:center!important;gap:10px!important;padding:12px 0}
.po-stock-check input{width:20px;height:20px;margin:0}
.po-stock-form .po-button{grid-column:1/-1;justify-self:start;min-height:50px;padding:0 22px}
.po-stock-empty{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:38px;border-radius:18px;background:#f7f9fc}
.po-stock-empty.is-compact{min-height:180px}
.po-stock-empty h3{margin:0 0 10px;color:#102b54;font-size:24px}
.po-stock-empty p{margin:0;color:#667791;max-width:480px}
.po-stock-table-wrap{overflow:auto}
.po-stock-table{width:100%;border-collapse:collapse;min-width:760px}
.po-stock-table th{padding:13px 12px;text-align:left;color:#667791;font-size:13px;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid #dfe7f0}
.po-stock-table td{padding:16px 12px;border-bottom:1px solid #e7edf4;vertical-align:middle;color:#203a61}
.po-stock-table td strong,.po-stock-table td small{display:block}
.po-stock-table td small{margin-top:4px;color:#7a8aa1}
.po-stock-status{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:800;margin-bottom:8px}
.po-stock-status.is-ok{background:#e7f7ee;color:#157347}.po-stock-status.is-low{background:#fff1e8;color:#b34f15}
.po-stock-status.is-muted{background:#eef2f6;color:#667791}.po-stock-status.is-neutral{background:#eaf1fb;color:#245b9f;margin:0}
.po-stock-location-type{display:inline-flex;margin-right:8px;padding:3px 8px;border-radius:8px;background:#eef4fb;color:#345b88;font-size:11px;font-weight:800;text-transform:uppercase}
.po-location-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.po-location-grid article{display:grid;grid-template-columns:auto 1fr;gap:16px;padding:22px;border:1px solid #dce5ef;border-radius:18px;background:#fbfcfe}
.po-location-grid article h3{margin:0 0 6px;color:#102b54}.po-location-grid article p{margin:0;color:#667791}
.po-location-grid article small{display:block;margin-top:8px;color:#77879d}
.po-location-icon{width:48px;height:48px;border-radius:14px;background:#153764;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px}
.po-location-grid dl{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:4px 0 0}
.po-location-grid dl div{padding:12px;border-radius:12px;background:#fff;border:1px solid #e0e7f0}
.po-location-grid dt{font-size:12px;color:#74849a}.po-location-grid dd{margin:4px 0 0;font-weight:800;color:#102b54}
.po-stock-flash,.po-stock-notice{margin:0 0 22px;padding:15px 18px;border:1px solid #b9d7ff;border-radius:14px;background:#edf6ff;color:#174b8c;font-weight:700}
.po-stock-flash.is-error{background:#fff0f0;border-color:#ffcaca;color:#9f2626}
@media(max-width:1200px){.po-stock-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.po-stock-layout{grid-template-columns:1fr}.po-stock-form-card{max-width:none}}
@media(max-width:760px){.po-stock{padding-bottom:48px}.po-stock-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.po-stock-kpis article{min-height:118px;padding:20px}.po-stock-kpis strong{font-size:29px}.po-stock-tabs{flex-wrap:nowrap;overflow:auto;padding-bottom:4px}.po-stock-tabs a{white-space:nowrap}.po-stock-card{padding:22px;border-radius:20px}.po-stock-card-head h2{font-size:24px}.po-stock-form{grid-template-columns:1fr}.po-stock-form label.is-wide,.po-stock-form .po-button,.po-stock-check{grid-column:1}.po-location-grid{grid-template-columns:1fr}}
@media(max-width:480px){.po-stock-kpis{grid-template-columns:1fr 1fr}.po-stock-kpis article{min-height:105px;padding:17px}.po-stock-card{padding:18px}.po-stock-tabs a{min-height:46px;padding:0 18px}.po-location-grid article{padding:18px}}

/* Stock control page polish — keep this module visually aligned with the main PolarOne UI. */
.po-stock.po-crm-page{max-width:100%;margin:0 auto;padding-top:8px}
.po-stock .po-page-header{padding:0 0 6px!important;margin:0 0 26px!important;background:transparent!important;border:0!important;box-shadow:none!important}
.po-stock .po-page-header h1{margin:8px 0 10px!important;font-size:clamp(38px,4vw,54px)!important;line-height:1.02!important;letter-spacing:-.035em;color:#0c2245!important}
.po-stock .po-page-header p{margin:0!important;max-width:760px;font-size:18px!important;line-height:1.55!important;color:#516987!important}
.po-stock .po-eyebrow{display:block;font-size:13px!important;line-height:1.2;font-weight:800!important;letter-spacing:.12em!important;color:#0874e8!important}

.po-stock-kpis{gap:16px;margin-bottom:26px}
.po-stock-kpis article{min-height:104px!important;padding:20px 22px!important;border-radius:20px!important;justify-content:flex-start!important;gap:16px;overflow:hidden}
.po-stock-kpis span{display:block;font-size:14px!important;line-height:1.25;color:#617692!important}
.po-stock-kpis strong{display:block;margin-top:auto;font-size:31px!important;line-height:1.05!important;letter-spacing:-.025em;color:#0d2850!important;white-space:nowrap}

.po-stock-tabs{gap:10px;margin-bottom:26px}
.po-stock-tabs a{min-height:48px;padding:0 24px;border-radius:15px;box-shadow:none;transition:transform .15s ease,background .15s ease}
.po-stock-tabs a:hover{transform:translateY(-1px)}

.po-stock-layout{grid-template-columns:minmax(0,2fr) minmax(400px,.95fr);gap:24px}
.po-stock-card{padding:28px!important;border-radius:22px!important}
.po-stock-card-head{padding-bottom:20px;margin-bottom:22px}
.po-stock-card-head h2{font-size:27px!important;letter-spacing:-.02em}
.po-stock-card-head p{font-size:16px;max-width:680px}
.po-stock-form-card{position:relative}
.po-stock-form{gap:16px!important}
.po-stock-form label>span{font-size:14px;line-height:1.3}
.po-stock-form input:not([type=checkbox]),.po-stock-form select,.po-stock-form textarea{min-height:52px!important;padding:13px 15px!important;border-radius:12px!important;font-size:15px!important}
.po-stock-form textarea{min-height:112px!important}
.po-stock-form .po-button{width:100%;justify-content:center;min-height:52px;border-radius:13px}

.po-stock-empty{min-height:235px;padding:34px;background:#f5f8fc;border:1px dashed #d9e4f1}
.po-stock-empty h3{font-size:22px}
.po-stock-empty p{font-size:16px;line-height:1.55}

.po-location-grid{gap:16px}
.po-location-grid article{padding:20px;border-radius:16px;background:#f9fbfd}

@media(max-width:1320px){
  .po-stock-layout{grid-template-columns:minmax(0,1.55fr) minmax(380px,1fr)}
}
@media(max-width:1100px){
  .po-stock-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .po-stock-layout{grid-template-columns:1fr}
  .po-stock-form-card{max-width:none}
}
@media(max-width:760px){
  .po-stock .po-page-header h1{font-size:38px!important}
  .po-stock .po-page-header p{font-size:16px!important}
  .po-stock-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .po-stock-kpis article{min-height:96px!important;padding:17px!important;gap:12px}
  .po-stock-kpis strong{font-size:27px!important}
  .po-stock-card{padding:20px!important}
  .po-stock-form{grid-template-columns:1fr!important}
}
@media(max-width:440px){
  .po-stock-kpis{grid-template-columns:1fr}
  .po-stock-kpis article{min-height:88px!important}
}

/* 0.50.5 definitive stock-control layout reset. */
body .po-stock.po-crm-page .po-page-header h1{
  font-size:clamp(34px,3.4vw,46px)!important;
  line-height:1.08!important;
  margin:6px 0 10px!important;
}
body .po-stock.po-crm-page .po-stock-kpis{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:14px!important;
  margin:0 0 24px!important;
}
body .po-stock.po-crm-page .po-stock-kpis>article{
  box-sizing:border-box!important;
  height:auto!important;
  min-height:94px!important;
  padding:18px 20px!important;
  margin:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:8px!important;
  overflow:visible!important;
  border-radius:18px!important;
}
body .po-stock.po-crm-page .po-stock-kpis>article>span{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  margin:0!important;
  padding:0!important;
  font-size:13px!important;
  line-height:1.35!important;
  font-weight:700!important;
  white-space:normal!important;
  overflow:visible!important;
}
body .po-stock.po-crm-page .po-stock-kpis>article>strong{
  position:static!important;
  inset:auto!important;
  transform:none!important;
  margin:0!important;
  padding:0!important;
  font-size:29px!important;
  line-height:1.1!important;
  white-space:nowrap!important;
  overflow:visible!important;
}
body .po-stock.po-crm-page .po-stock-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1.9fr) minmax(360px,.9fr)!important;
  gap:24px!important;
  align-items:start!important;
}
body .po-stock.po-crm-page .po-stock-card{
  height:auto!important;
  min-height:0!important;
  padding:26px!important;
  overflow:visible!important;
}
body .po-stock.po-crm-page .po-stock-form-card{
  align-self:start!important;
}
body .po-stock.po-crm-page .po-stock-form{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
}
body .po-stock.po-crm-page .po-stock-form textarea{
  min-height:100px!important;
  height:100px!important;
}
body .po-stock.po-crm-page .po-stock-empty{
  min-height:210px!important;
  padding:30px!important;
}
@media(max-width:1180px){
  body .po-stock.po-crm-page .po-stock-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  body .po-stock.po-crm-page .po-stock-layout{grid-template-columns:1fr!important}
}
@media(max-width:720px){
  body .po-stock.po-crm-page .po-stock-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body .po-stock.po-crm-page .po-stock-form{grid-template-columns:1fr!important}
  body .po-stock.po-crm-page .po-stock-form label,
  body .po-stock.po-crm-page .po-stock-form label.is-wide,
  body .po-stock.po-crm-page .po-stock-form .po-button,
  body .po-stock.po-crm-page .po-stock-check{grid-column:1!important}
}
@media(max-width:460px){
  body .po-stock.po-crm-page .po-stock-kpis{grid-template-columns:1fr!important}
}


/* 0.50.6 — stock-location form layout correction. */
body .po-stock.po-crm-page .po-stock-location-form{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:18px!important;
  width:100%!important;
  min-width:0!important;
}
body .po-stock.po-crm-page .po-stock-location-form label,
body .po-stock.po-crm-page .po-stock-location-form label.is-wide,
body .po-stock.po-crm-page .po-stock-location-form .po-stock-check,
body .po-stock.po-crm-page .po-stock-location-form .po-button{
  grid-column:1!important;
  width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
body .po-stock.po-crm-page .po-stock-location-form label{
  gap:7px!important;
}
body .po-stock.po-crm-page .po-stock-location-form label>span{
  font-size:14px!important;
  line-height:1.35!important;
}
body .po-stock.po-crm-page .po-stock-location-form input:not([type=checkbox]),
body .po-stock.po-crm-page .po-stock-location-form select,
body .po-stock.po-crm-page .po-stock-location-form textarea{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
body .po-stock.po-crm-page .po-stock-location-form textarea{
  min-height:96px!important;
  height:96px!important;
  overflow:auto!important;
  text-overflow:clip!important;
}
body .po-stock.po-crm-page .po-stock-location-form .po-stock-check{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:11px!important;
  padding:2px 0!important;
}
body .po-stock.po-crm-page .po-stock-location-form .po-stock-check input{
  flex:0 0 20px!important;
  width:20px!important;
  height:20px!important;
}
body .po-stock.po-crm-page .po-stock-location-form .po-stock-check span{
  width:auto!important;
}
body .po-stock.po-crm-page .po-stock-location-form .po-button{
  margin-top:2px!important;
  min-height:54px!important;
}
body .po-stock.po-crm-page .po-stock-form-card{
  min-width:0!important;
}
@media(min-width:1181px){
  body .po-stock.po-crm-page .po-stock-layout{
    grid-template-columns:minmax(0,1.85fr) minmax(420px,.9fr)!important;
  }
}

/* 0.50.7 — final stock-location form reset: remove inherited label/card borders and restore clean field spacing. */
body .po-stock.po-crm-page .po-stock-form-card{
  padding:30px!important;
  overflow:hidden!important;
}
body .po-stock.po-crm-page .po-stock-location-form{
  display:flex!important;
  flex-direction:column!important;
  gap:20px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
body .po-stock.po-crm-page .po-stock-location-form>label,
body .po-stock.po-crm-page .po-stock-location-form>label.is-wide{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:0!important;
  overflow:visible!important;
}
body .po-stock.po-crm-page .po-stock-location-form>label>span{
  display:block!important;
  position:static!important;
  width:auto!important;
  margin:0 0 9px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#17345f!important;
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.35!important;
  transform:none!important;
}
body .po-stock.po-crm-page .po-stock-location-form input:not([type=checkbox]),
body .po-stock.po-crm-page .po-stock-location-form select,
body .po-stock.po-crm-page .po-stock-location-form textarea{
  display:block!important;
  position:static!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
  padding:0 16px!important;
  border:1px solid #cbd9ea!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
  color:#102b54!important;
  font:inherit!important;
  font-size:15px!important;
  line-height:1.4!important;
  box-sizing:border-box!important;
  transform:none!important;
}
body .po-stock.po-crm-page .po-stock-location-form input:not([type=checkbox]),
body .po-stock.po-crm-page .po-stock-location-form select{
  height:56px!important;
  min-height:56px!important;
}
body .po-stock.po-crm-page .po-stock-location-form textarea{
  height:112px!important;
  min-height:112px!important;
  padding:15px 16px!important;
  resize:vertical!important;
  overflow:auto!important;
}
body .po-stock.po-crm-page .po-stock-location-form input:not([type=checkbox]):focus,
body .po-stock.po-crm-page .po-stock-location-form select:focus,
body .po-stock.po-crm-page .po-stock-location-form textarea:focus{
  border-color:#1976df!important;
  outline:0!important;
  box-shadow:0 0 0 4px rgba(25,118,223,.12)!important;
}
body .po-stock.po-crm-page .po-stock-location-form .po-stock-check{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  width:100%!important;
  min-height:24px!important;
  margin:0!important;
  padding:0!important;
  gap:11px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body .po-stock.po-crm-page .po-stock-location-form .po-stock-check input{
  position:static!important;
  flex:0 0 20px!important;
  width:20px!important;
  height:20px!important;
  min-height:20px!important;
  margin:0!important;
  padding:0!important;
  accent-color:#1677e8!important;
  transform:none!important;
}
body .po-stock.po-crm-page .po-stock-location-form .po-stock-check span{
  display:block!important;
  margin:0!important;
  padding:0!important;
  line-height:1.3!important;
}
body .po-stock.po-crm-page .po-stock-location-form .po-button{
  display:flex!important;
  width:100%!important;
  min-height:56px!important;
  margin:2px 0 0!important;
  padding:14px 22px!important;
  border:0!important;
  border-radius:14px!important;
  box-sizing:border-box!important;
}
@media(min-width:1181px){
  body .po-stock.po-crm-page .po-stock-layout{
    grid-template-columns:minmax(0,1fr) 460px!important;
  }
}
@media(max-width:760px){
  body .po-stock.po-crm-page .po-stock-form-card{padding:22px!important}
  body .po-stock.po-crm-page .po-stock-location-form{gap:17px!important}
}
