/* NARIA_SUPPLY2_BATCHA_PLANNING_V1 */

.s2aiRoot{
  margin:12px 0;
}

.s2aiHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;

  background:#fff;
  border:1px solid #eadfce;
  border-radius:13px;

  padding:12px 14px;
}

.s2aiTitle{
  font-size:14px;
  font-weight:900;
  margin-bottom:3px;
}

.s2aiActions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.s2aiKpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(110px,1fr));
  gap:8px;
  margin:8px 0;
}

.s2aiKpi{
  background:#fff;
  border:1px solid #eee5d9;
  border-radius:10px;
  padding:9px 11px;
}

.s2aiKpi span{
  display:block;
  color:#8b8175;
  font-size:10px;
}

.s2aiKpi b{
  display:block;
  margin-top:3px;
  font-size:16px;
}

.s2aiList{
  display:flex;
  flex-direction:column;
  gap:7px;
}

.s2aiCard{
  background:#fff;
  border:1px solid #e8ddce;
  border-radius:11px;
  overflow:hidden;
}

.s2aiCard > summary{
  cursor:pointer;
  list-style:none;

  display:grid;
  grid-template-columns:minmax(260px,1.5fr) minmax(260px,1fr) auto;
  gap:12px;
  align-items:center;

  padding:10px 12px;
}

.s2aiCard > summary::-webkit-details-marker{
  display:none;
}

.s2aiCard[open] > summary{
  background:#fcf9f4;
  border-bottom:1px solid #eee5d9;
}

.s2aiSummaryMain{
  min-width:0;
}

.s2aiSummaryMain b{
  display:block;
  font-size:12px;
}

.s2aiSummaryMain span{
  display:block;
  color:#777067;
  font-size:10px;
  margin-top:2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.s2aiSummaryNums{
  display:flex;
  flex-wrap:wrap;
  gap:5px 12px;
  font-size:10px;
}

.s2aiOver{
  color:#9a5b10;
  font-weight:800;
}

.s2aiBadges{
  display:flex;
  justify-content:flex-end;
  gap:5px;
  flex-wrap:wrap;
}

.s2aiBadge{
  padding:4px 7px;
  border-radius:999px;
  background:#f4eee6;
  color:#66594a;
  font-size:9px;
  white-space:nowrap;
}

.s2aiBadge.ok{
  background:#edf6ef;
  color:#356443;
}

.s2aiBadge.warn{
  background:#fff3dd;
  color:#935e14;
}

.s2aiBadge.bad{
  background:#fff0ef;
  color:#9c3e37;
}

.s2aiBadge.muted{
  background:#f1f1ef;
  color:#777;
}

.s2aiBody{
  padding:10px 12px 12px;
}

.s2aiMeta{
  margin-bottom:8px;
  font-size:10px;
  color:#81776b;
}

.s2aiTableWrap{
  overflow:auto;
  border:1px solid #eee5d9;
  border-radius:9px;
}

.s2aiTable{
  width:100%;
  min-width:900px;
  border-collapse:collapse;
  font-size:10px;
}

.s2aiTable th{
  padding:7px 8px;
  text-align:right;
  background:#faf7f2;
  color:#756a5d;
  font-weight:800;
}

.s2aiTable td{
  padding:7px 8px;
  border-top:1px solid #f1ebe3;
  vertical-align:middle;
}

.s2aiTable input{
  width:92px !important;
  min-width:92px !important;
  height:32px !important;
  min-height:32px !important;
  padding:0 7px !important;
  text-align:center;
  font-size:10px !important;
}

.s2aiTable .s2aiDim{
  width:105px !important;
  min-width:105px !important;
}

.s2aiOjrat{
  display:flex;
  align-items:center;
  gap:4px;
}

.s2aiOjrat span{
  color:#877b6e;
}

.s2aiNoteRow td{
  color:#8d641f;
  background:#fffaf0;
  font-size:9px;
}

.s2aiError{
  padding:10px 12px;
  border-radius:10px;
  background:#fff0ef;
  color:#9c3e37;
  border:1px solid #efd1cf;
}

@media(max-width:900px){
  .s2aiCard > summary{
    grid-template-columns:1fr;
  }

  .s2aiBadges{
    justify-content:flex-start;
  }

  .s2aiKpis{
    grid-template-columns:repeat(2,1fr);
  }
}


/* NARIA_SUPPLY2_BATCHA_SIMPLE_UI_V2 */

.s2aiKpis,
.s2aiList,
.s2aiHead{
  display:none !important;
}

.s2simpleHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  background:#fff;
  border:1px solid #eadfce;
  border-radius:12px;
  padding:12px 14px;
  margin-bottom:8px;
}

.s2simpleTitle{
  font-size:15px;
  font-weight:900;
}

.s2simpleSub{
  margin-top:3px;
  font-size:10px;
  color:#84796c;
}

.s2simpleActions{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}

.s2simpleTableWrap{
  background:#fff;
  border:1px solid #eadfce;
  border-radius:12px;
  overflow:auto;
}

.s2simpleTable{
  width:100%;
  min-width:900px;
  border-collapse:collapse;
  font-size:11px;
}

.s2simpleTable th{
  background:#faf7f2;
  color:#756a5d;
  text-align:right;
  padding:9px 10px;
  font-weight:800;
}

.s2simpleTable td{
  padding:10px;
  border-top:1px solid #f0e9df;
  vertical-align:middle;
}

.s2simpleProduct{
  max-width:360px;
  margin-top:3px;
  color:#7f7569;
  font-size:10px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.s2simpleStatus{
  display:inline-block;
  border-radius:999px;
  padding:5px 8px;
  font-size:9px;
  font-weight:800;
  white-space:nowrap;
}

.s2simpleStatus.ok{
  background:#edf6ef;
  color:#356443;
}

.s2simpleStatus.warn{
  background:#fff3dd;
  color:#935e14;
}

.s2simpleStatus.bad{
  background:#fff0ef;
  color:#9c3e37;
}

.s2simpleDetailBtn{
  border:0;
  background:transparent;
  color:#795b35;
  font-weight:800;
  cursor:pointer;
  padding:5px 7px;
}

.s2simpleDetailRow td{
  background:#fcfaf7;
  padding:10px 14px 14px;
}

.s2simpleDetailBox{
  border:1px solid #eee4d7;
  border-radius:9px;
  padding:9px;
  background:#fff;
}

.s2simpleMeta{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:8px;
  color:#7c7165;
  font-size:9px;
}

@media(max-width:900px){
  .s2simpleHead{
    align-items:stretch;
  }

  .s2simpleActions{
    width:100%;
  }

  .s2simpleActions .btn{
    flex:1;
  }
}
