.inventory-review-view {
  --inventory-review-teal: #0b8f9c;
  --inventory-review-red: #d92d3a;
  width: min(100%, 1380px);
  margin-right: auto;
  margin-left: auto;
  color: #303846;
  font-size: 13px;
  font-weight: 400;
}

.inventory-review-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.inventory-review-toolbar label {
  display: grid;
  gap: 5px;
  color: #6f8490;
  font-size: 12px;
  font-weight: 400;
}

.inventory-review-toolbar input,
.inventory-review-toolbar select {
  min-width: 170px;
  height: 32px;
  border: 1px solid #dfe4eb;
  border-radius: 2px;
  background: #fff;
  color: #253b49;
  padding: 0 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
}

.inventory-review-toolbar .primary-button {
  min-height: 32px;
  height: 32px;
  border-radius: 2px;
  padding: 0 14px;
  font-size: 13px;
}

.inventory-review-sync-note {
  margin-left: auto;
  color: #7b909b;
  font-size: 12px;
  line-height: 32px;
}

.inventory-review-feedback-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 9px;
}

.inventory-review-feedback-card {
  padding: 13px 16px 0;
  overflow: hidden;
}

.inventory-review-card-title,
.inventory-review-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.inventory-review-card-title h2,
.inventory-review-detail-head h2 {
  margin: 0;
  color: #203746;
  font-size: 14px;
  font-weight: 500;
}

.inventory-review-card-title span,
.inventory-review-detail-head span {
  color: #80939e;
  font-size: 12px;
}

.inventory-review-formula,
.inventory-review-stock-change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 78px;
}

.inventory-review-formula > div,
.inventory-review-stock-change > div {
  display: grid;
  gap: 5px;
  min-width: 100px;
  text-align: center;
}

.inventory-review-formula strong,
.inventory-review-stock-change strong {
  color: #213a4a;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.inventory-review-formula span,
.inventory-review-stock-change span {
  color: #748996;
  font-size: 12px;
}

.inventory-review-formula > b,
.inventory-review-stock-change > b {
  color: #647d8c;
  font-size: 18px;
  font-weight: 500;
}

.inventory-review-formula .result strong,
.inventory-review-stock-change .result strong,
.inventory-review-card-foot strong {
  color: var(--inventory-review-teal);
}

.inventory-review-card-foot {
  display: flex;
  justify-content: center;
  gap: 38px;
  margin: 0 -16px;
  border-top: 1px solid #e1e9ed;
  padding: 9px 16px;
  color: #657d8b;
  font-size: 13px;
  font-weight: 400;
}

.inventory-review-card-foot.centered { gap: 0; }
.inventory-review-card-foot .danger strong { color: var(--inventory-review-red); }

.inventory-review-detail-panel { overflow: hidden; }
.inventory-review-detail-head { padding: 11px 13px; }
.inventory-review-detail-head > div { display: flex; align-items: baseline; gap: 12px; }
.inventory-review-alert-summary { color: #6f8490; font-size: 13px; font-weight: 500; }
.inventory-review-alert-summary.has-alert { color: var(--inventory-review-red); }
.inventory-review-table-wrap { border-top: 1px solid #e2eaee; }
.inventory-review-table-wrap table { width: 100%; min-width: 1120px; table-layout: fixed; border-collapse: collapse; }
.inventory-review-table-wrap th {
  height: 37px;
  padding: 0 10px;
  border-right: 1px solid #dfe4eb;
  border-bottom: 1px solid #dfe4eb;
  background: #f2f4f7;
  color: #303846;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}
.inventory-review-table-wrap td {
  height: 39px;
  padding: 0 10px;
  border-right: 1px solid #e5e9ef;
  border-bottom: 1px solid #e5e9ef;
  color: #303846;
  font-size: 13px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.inventory-review-table-wrap th:nth-child(n+3):nth-child(-n+9),
.inventory-review-number { text-align: right; }
.inventory-review-style-code { color: #4088f4 !important; font-size: 13px; font-weight: 400; }

.inventory-review-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 500;
}

.inventory-review-status.normal { background: #e0f4ea; color: #138653; }
.inventory-review-status.abnormal { background: #fde4e7; color: #d92d3a; }
.inventory-review-status.pending { background: #fff1d6; color: #a96b14; }
.inventory-review-row.abnormal td { background: #fffafb; }
.inventory-review-row.pending td { background: #fffdfa; }
.inventory-review-difference.danger,
.inventory-review-table-wrap .negative { color: var(--inventory-review-red); font-weight: 500; }
.inventory-review-table-wrap .empty-cell { height: 170px; text-align: center; color: #80939e; }

.inventory-review-pagination {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 13px;
  border-top: 1px solid #dfe4eb;
  background: #fff;
  color: #8a96a7;
  font-size: 13px;
}

.inventory-review-pagination button,
.inventory-review-pagination select,
.inventory-review-pagination input {
  height: 29px;
  min-width: 29px;
  border: 1px solid #dfe4eb;
  border-radius: 2px;
  background: #fff;
  color: #303846;
  padding: 0 8px;
  font: inherit;
  font-size: 13px;
}

.inventory-review-pagination select { width: 84px; }
.inventory-review-pagination input { width: 44px; text-align: center; }
.inventory-review-page-numbers { display: flex; align-items: center; gap: 6px; }
.inventory-review-page-numbers button.active { border-color: #4088f4; background: #4088f4; color: #fff; }
.inventory-review-pagination button:disabled { color: #bdc5cf; background: #f6f7f9; }
.inventory-review-page-ellipsis { min-width: 20px; text-align: center; }

@media (max-width: 980px) {
  .inventory-review-toolbar { align-items: stretch; flex-wrap: wrap; }
  .inventory-review-sync-note { width: 100%; margin-left: 0; line-height: 1.5; }
  .inventory-review-feedback-grid { grid-template-columns: 1fr; }
  .inventory-review-formula { gap: 14px; }
  .inventory-review-detail-head > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .inventory-review-pagination { justify-content: flex-start; flex-wrap: wrap; }
}
