
/* ==========================================================
   V11 – LagerDemo
   ========================================================== */
.wk-stock-app{
  display:grid;
  grid-template-columns:205px minmax(0,1fr);
  overflow:hidden;
  min-height:720px;
  border:1px solid #cfdee6;
  border-radius:22px;
  background:#eef3f6;
  box-shadow:0 28px 70px rgba(6,31,47,.12);
}

.wk-stock-nav{
  display:flex;
  flex-direction:column;
  padding:17px 12px;
  color:#fff;
  background:linear-gradient(180deg,#071b28,#0b2637);
}

.wk-stock-logo{
  display:flex;
  align-items:center;
  gap:11px;
  padding:5px 9px 20px;
  margin-bottom:8px;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.wk-stock-logo>div{
  display:flex;
  flex-direction:column;
  gap:1px;
}

.wk-stock-logo strong{font-size:.79rem}
.wk-stock-logo small{color:#698796;font-size:.53rem;letter-spacing:.09em}

.wk-stock-nav-item{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:0 11px;
  margin:2px 0;
  border:0;
  border-radius:10px;
  color:#91a8b5;
  background:transparent;
  font-size:.72rem;
  font-weight:800;
  text-align:left;
  cursor:pointer;
}

.wk-stock-nav-item span{
  color:#507284;
  font-size:.58rem;
}

.wk-stock-nav-item:hover,
.wk-stock-nav-item.is-active{
  color:#fff;
  background:rgba(16,140,255,.12);
}

.wk-stock-nav-item.is-active span{color:#55b9ff}
.wk-stock-nav-spacer{flex:1}

.wk-stock-nav-note{
  padding:13px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:11px;
  background:rgba(255,255,255,.035);
}

.wk-stock-nav-note b{
  display:block;
  color:#dceaf1;
  font-size:.62rem;
}

.wk-stock-nav-note span{
  display:block;
  margin-top:4px;
  color:#78929f;
  font-size:.57rem;
  line-height:1.45;
}

.wk-stock-workspace{min-width:0}

.wk-stock-toolbar{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:center;
  min-height:70px;
  padding:13px 18px;
  border-bottom:1px solid #d8e4ea;
  background:#fff;
}

.wk-stock-toolbar>div:first-child{
  display:flex;
  flex-direction:column;
}

.wk-stock-toolbar-kicker{
  color:#8899a2;
  font-size:.56rem;
  text-transform:uppercase;
  letter-spacing:.07em;
}

.wk-stock-toolbar strong{
  margin-top:2px;
  color:#153344;
  font-size:1.05rem;
}

.wk-stock-toolbar-actions{
  display:flex;
  align-items:center;
  gap:9px;
}

.wk-stock-btn{
  min-height:34px;
  padding:0 11px;
  border:1px solid #d5e2e9;
  border-radius:9px;
  color:#617682;
  background:#f9fbfc;
  font-size:.64rem;
  font-weight:800;
  cursor:pointer;
}

.wk-stock-view{
  display:none;
  padding:15px;
}

.wk-stock-view.is-active{display:block}

.wk-stock-kpis{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin-bottom:15px;
}

.wk-stock-kpis article{
  position:relative;
  overflow:hidden;
  padding:18px;
  border:1px solid #dbe6eb;
  border-radius:14px;
  background:#fff;
}

.wk-stock-kpis article:after{
  content:"";
  position:absolute;
  right:-15px;
  top:-22px;
  width:66px;
  height:66px;
  border-radius:50%;
  background:rgba(16,140,255,.055);
}

.wk-stock-kpis span{
  color:#768993;
  font-size:.59rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.wk-stock-kpis strong{
  display:block;
  margin-top:5px;
  color:#113247;
  font-size:1.85rem;
  font-variant-numeric:tabular-nums;
}

.wk-stock-kpis small{
  display:block;
  margin-top:2px;
  color:#94a2aa;
  font-size:.58rem;
}

.wk-stock-dashboard-grid{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);
  gap:14px;
}

.wk-stock-card,
.wk-stock-panel{
  border:1px solid #d9e5eb;
  border-radius:15px;
  background:#fff;
}

.wk-stock-card{padding:18px}

.wk-stock-card-head,
.wk-stock-panel-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}

.wk-stock-card h2,
.wk-stock-panel h2{
  margin-top:4px;
  color:#18384a;
  font-size:1.05rem;
}

.wk-stock-mini-label{
  color:#96a4ab;
  font-size:.56rem;
}

.wk-stock-health{
  display:grid;
  gap:13px;
  margin-top:18px;
}

.wk-stock-health-row{
  display:grid;
  grid-template-columns:minmax(150px,.9fr) minmax(120px,1fr) 34px;
  gap:12px;
  align-items:center;
}

.wk-stock-health-row>div:first-child{
  display:flex;
  flex-direction:column;
}

.wk-stock-health-row strong{
  color:#38505e;
  font-size:.68rem;
}

.wk-stock-health-row span{
  color:#91a0a8;
  font-size:.55rem;
}

.wk-stock-health-track{
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:#edf2f4;
}

.wk-stock-health-track i{
  display:block;
  height:100%;
  border-radius:999px;
  background:#20a66d;
}

.wk-stock-health-track i.warn{background:#dba92e}
.wk-stock-health-track i.low{background:#e25b4e}

.wk-stock-health-row>b{
  color:#314d5d;
  font-size:.72rem;
  text-align:right;
}

.wk-stock-alerts{
  display:grid;
  gap:8px;
  margin-top:15px;
}

.wk-stock-alert{
  display:grid;
  grid-template-columns:30px 1fr auto;
  gap:9px;
  align-items:center;
  width:100%;
  padding:10px;
  border:1px solid #f2d7d3;
  border-radius:10px;
  color:inherit;
  text-align:left;
  background:#fff9f8;
  cursor:pointer;
}

.wk-stock-alert:hover{border-color:#eabdb7}

.wk-stock-alert-icon{
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  border-radius:8px;
  color:#b34940;
  background:#ffebe8;
  font-weight:950;
}

.wk-stock-alert>span:nth-child(2){
  display:flex;
  flex-direction:column;
  gap:2px;
}

.wk-stock-alert strong{
  color:#4b4e50;
  font-size:.66rem;
}

.wk-stock-alert small{
  color:#977a76;
  font-size:.55rem;
}

.wk-stock-alert>b{
  color:#cf8179;
}

.wk-stock-recent-card{grid-column:1}
.wk-stock-quick-card{grid-column:2;grid-row:2}

.wk-stock-quick-card>p{
  margin-top:7px;
  color:#75868f;
  font-size:.68rem;
  line-height:1.5;
}

.wk-stock-quick-label{
  display:block;
  margin:15px 0 5px;
  color:#5d707b;
  font-size:.61rem;
  font-weight:850;
}

.wk-stock-quick-card select{
  width:100%;
  min-height:39px;
  padding:0 10px;
  border:1px solid #d8e4ea;
  border-radius:9px;
  color:#294756;
  background:#fff;
}

.wk-stock-quick-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:9px;
}

.wk-stock-quick-actions button{
  min-height:38px;
  border:1px solid #cfe0e8;
  border-radius:9px;
  color:#176f9f;
  background:#f5fbff;
  font-size:.62rem;
  font-weight:900;
  cursor:pointer;
}

.wk-stock-quick-actions button:last-child{
  color:#a94b43;
  border-color:#efd5d2;
  background:#fff8f7;
}

.wk-stock-content-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 315px;
  gap:14px;
}

.wk-stock-panel{overflow:hidden}

.wk-stock-panel-head{
  align-items:end;
  padding:18px;
  border-bottom:1px solid #e7eef2;
}

.wk-stock-filter{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.wk-stock-filter input,
.wk-stock-filter select,
.wk-stock-form-row input,
.wk-stock-form-row select{
  min-height:38px;
  border:1px solid #d6e2e8;
  border-radius:9px;
  color:#1f3948;
  background:#fff;
  outline:none;
}

.wk-stock-filter input{
  width:205px;
  padding:0 10px;
}

.wk-stock-filter select{padding:0 29px 0 10px}

.wk-stock-filter input:focus,
.wk-stock-filter select:focus,
.wk-stock-form-row input:focus,
.wk-stock-form-row select:focus{
  border-color:#79bff0;
  box-shadow:0 0 0 3px rgba(16,140,255,.08);
}

.wk-stock-table-wrap{overflow:auto}

.wk-stock-table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
}

.wk-stock-table th,
.wk-stock-table td{
  padding:12px 13px;
  border-bottom:1px solid #eef2f4;
  text-align:left;
  vertical-align:middle;
}

.wk-stock-table th{
  color:#80919a;
  background:#fafcfd;
  font-size:.57rem;
  text-transform:uppercase;
  letter-spacing:.055em;
}

.wk-stock-table td{
  color:#546773;
  font-size:.7rem;
}

.wk-stock-table tr.is-selected td{background:#f2f9fd}

.wk-stock-item-name{
  display:flex;
  gap:9px;
  align-items:center;
}

.wk-stock-item-icon{
  display:grid;
  place-items:center;
  width:31px;
  height:31px;
  flex:0 0 31px;
  border-radius:8px;
  color:#167ab8;
  background:#eaf7ff;
  font-weight:950;
}

.wk-stock-item-name>span:last-child{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.wk-stock-item-name strong{color:#284757}
.wk-stock-item-name small{color:#96a4ab;font-size:.54rem}

.wk-stock-table code{
  color:#607986;
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:.63rem;
}

.wk-stock-location{
  display:inline-flex;
  padding:5px 7px;
  border-radius:7px;
  color:#687d89;
  background:#f2f6f8;
  font-size:.59rem;
  font-weight:800;
}

.wk-stock-cell-level{
  min-width:86px;
}

.wk-stock-cell-level b{
  color:#294a5c;
  font-size:.79rem;
}

.wk-stock-cell-level>span{
  display:block;
  width:72px;
  height:4px;
  margin-top:4px;
  overflow:hidden;
  border-radius:99px;
  background:#edf2f4;
}

.wk-stock-cell-level i{
  display:block;
  height:100%;
  border-radius:99px;
  background:#22a56e;
}

.wk-stock-cell-level i.warn{background:#d3a029}
.wk-stock-cell-level i.low{background:#df5a4d}

.wk-stock-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 8px;
  border-radius:999px;
  font-size:.57rem;
  font-weight:900;
}

.wk-stock-badge.ok{color:#11794c;background:#e9f8f1}
.wk-stock-badge.warn{color:#8a6500;background:#fff5d8}
.wk-stock-badge.low{color:#a53a31;background:#ffebe8}

.wk-stock-select{
  min-height:29px;
  padding:0 9px;
  border:1px solid #cbdfe9;
  border-radius:8px;
  color:#0f73b9;
  background:#f7fbfd;
  font-size:.59rem;
  font-weight:900;
  cursor:pointer;
}

.wk-stock-book-card{align-self:start}

.wk-stock-book-card>p{
  margin-top:6px;
  color:#74858e;
  font-size:.68rem;
  line-height:1.5;
}

.wk-stock-selected-level{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
  margin-top:14px;
}

.wk-stock-selected-level>div{
  padding:10px;
  border:1px solid #e2e9ed;
  border-radius:9px;
  background:#f9fbfc;
}

.wk-stock-selected-level span{
  display:block;
  color:#8999a1;
  font-size:.52rem;
}

.wk-stock-selected-level strong{
  display:block;
  margin-top:3px;
  color:#24485b;
  font-size:1rem;
}

.wk-stock-form-row{
  display:grid;
  gap:5px;
  margin-top:12px;
}

.wk-stock-form-row label{
  color:#536a77;
  font-size:.61rem;
  font-weight:850;
}

.wk-stock-form-row label span{
  color:#99a6ac;
  font-weight:600;
}

.wk-stock-form-row input,
.wk-stock-form-row select{
  width:100%;
  padding:0 10px;
}

.wk-stock-submit{
  width:100%;
  justify-content:center;
  margin-top:15px;
}

.wk-stock-message{
  min-height:18px;
  margin-top:9px;
  font-size:.63rem;
  line-height:1.4;
}

.wk-stock-message.is-success{color:#168255}
.wk-stock-message.is-error{color:#b0473c}

.wk-stock-link-btn{
  padding:0;
  border:0;
  color:#6f8795;
  background:none;
  font-size:.59rem;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}

.wk-stock-history,
.wk-stock-move-list{
  display:grid;
  gap:8px;
  margin-top:13px;
}

.wk-stock-move-list{
  padding:0 18px 18px;
}

.wk-stock-history-item{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:10px;
  align-items:start;
  padding:9px;
  border:1px solid #e7edf1;
  border-radius:9px;
  background:#fbfcfd;
}

.wk-stock-history-item.detailed{padding:12px}

.wk-stock-history-icon{
  display:grid;
  place-items:center;
  min-height:34px;
  border-radius:8px;
  font-size:.62rem;
  font-weight:950;
}

.wk-stock-history-icon.in{color:#167d53;background:#e8f7f0}
.wk-stock-history-icon.out{color:#a9473f;background:#ffebe8}

.wk-stock-history-item>div:last-child{
  display:flex;
  flex-direction:column;
  gap:2px;
}

.wk-stock-history-item strong{
  color:#304f5f;
  font-size:.66rem;
}

.wk-stock-history-item span,
.wk-stock-history-item small{
  color:#81929b;
  font-size:.56rem;
  line-height:1.35;
}

.wk-stock-empty-state{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:16px;
  border:1px dashed #d8e4ea;
  border-radius:10px;
  color:#84959d;
  background:#fafcfd;
}

.wk-stock-empty-state strong{
  color:#617681;
  font-size:.68rem;
}

.wk-stock-empty-state span{
  font-size:.59rem;
}

.wk-stock-table-empty{
  padding:28px!important;
  text-align:center!important;
  color:#87969e!important;
}

@media(max-width:1120px){
  .wk-stock-app{grid-template-columns:170px minmax(0,1fr)}
  .wk-stock-dashboard-grid{grid-template-columns:1fr}
  .wk-stock-recent-card,
  .wk-stock-quick-card{grid-column:auto;grid-row:auto}
  .wk-stock-content-grid{grid-template-columns:1fr}
}

@media(max-width:820px){
  .wk-stock-app{display:block;min-height:0}
  .wk-stock-nav{
    display:grid;
    grid-template-columns:1fr repeat(3,auto);
    gap:5px;
    align-items:center;
  }
  .wk-stock-logo{margin:0;padding:4px 8px;border:0}
  .wk-stock-nav-spacer,
  .wk-stock-nav-note{display:none}
  .wk-stock-nav-item{margin:0;padding:0 9px}
  .wk-stock-kpis{grid-template-columns:1fr 1fr}
}

@media(max-width:620px){
  .wk-stock-nav{
    grid-template-columns:1fr 1fr 1fr;
  }
  .wk-stock-logo{
    grid-column:1/-1;
    padding-bottom:9px;
    margin-bottom:3px;
    border-bottom:1px solid rgba(255,255,255,.08);
  }
  .wk-stock-toolbar{align-items:flex-start;flex-direction:column}
  .wk-stock-kpis{grid-template-columns:1fr 1fr}
  .wk-stock-kpis article{padding:14px}
  .wk-stock-kpis strong{font-size:1.4rem}
  .wk-stock-view{padding:9px}
  .wk-stock-panel-head{align-items:flex-start;flex-direction:column}
  .wk-stock-filter{width:100%}
  .wk-stock-filter input,
  .wk-stock-filter select{flex:1 1 180px;width:auto}
  .wk-stock-health-row{grid-template-columns:1fr 60px 26px}
}
