#warehouse .we-group > summary > .we-count-with-jin,
#warehouse .we-group-row > .we-count-with-jin {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 68%;
  white-space: normal;
}
#warehouse .we-group > summary > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
#warehouse .we-overview-frame-count { white-space: nowrap; }
#warehouse .we-overview-jin-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid #dbe8df;
  border-radius: 6px;
  background: #edf5ef;
  color: #315b43;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  white-space: normal;
}
#warehouse .we-overview-jin-tag.is-pending {
  background: #f3f5f1;
  color: #6d7e64;
  border-color: #e5e9e1;
}
#warehouse .we-count-with-jin > small { margin-left: 0; }
@media (max-width: 350px) {
  #warehouse .we-count-with-jin { gap: 4px; }
  #warehouse .we-overview-jin-tag { font-size: 11px; padding: 2px 5px; }
}

.ig-gap-note > span, .ig-gap-note > b { display: block; }
.ig-gap-note .ig-visible-jin { color: #285a43; font-size: inherit; line-height: 1.5; font-weight: 650; }
.ig-table-hint { color: #6b7b73; font-size: 13px; margin: 8px 0 12px; }
.ig-table-scroll { overflow-x: auto; border: 1px solid #dfe7e1; border-radius: 12px; background: #fff; -webkit-overflow-scrolling: touch; }
table.ig-history-table { width: 100%; min-width: 700px; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
table.ig-history-table thead { display: table-header-group; position: static; width: auto; height: auto; clip: auto; }
table.ig-history-table tbody { display: table-row-group; }
table.ig-history-table tr { display: table-row; }
table.ig-history-table th, table.ig-history-table td { display: table-cell; }
table.ig-history-table td::before { display: none; }
.ig-history-table th { background: #edf4ef; color: #285a43; padding: 15px 16px; font-weight: 650; text-align: left; white-space: nowrap; }
.ig-history-table td { padding: 17px 16px; border-top: 1px solid #e7ece8; vertical-align: middle; }
.ig-history-table tbody > tr:not(.ig-detail-row):hover { background: #f7faf8; }
.ig-history-table th:nth-child(n+2):nth-child(-n+4), .ig-history-table td.ig-number { text-align: right; white-space: nowrap; }
.ig-record-time { min-width: 112px; white-space: nowrap; }
.ig-record-time span, .ig-record-time small { display: block; }
.ig-record-time small { color: #758179; margin-top: 5px; }
.ig-history-table .ig-difference { font-weight: 700; color: #285a43; }
.ig-history-table .ig-pending-number { color: #8b7b59; font-weight: 500; }
.ig-status { display: inline-block; background: #edf5ef; color: #285a43; border-radius: 5px; padding: 4px 7px; font-size: 12px; white-space: nowrap; }
.ig-status-pending { background: #f7f1e6; color: #846729; }
.ig-detail-button { border: 1px solid #d2dfd5; border-radius: 6px; padding: 7px 10px; color: #285a43; background: #fff; white-space: nowrap; cursor: pointer; }
.ig-detail-row[hidden], [data-gap-history-table] ~ section.panel[hidden] { display: none !important; }
.ig-history-table .ig-detail-row td { background: #f6f9f6; padding: 12px 20px; }
.ig-record-detail { max-width: 100%; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; color: #596b60; }
.ig-record-detail p { margin: 6px 0; }
.ig-empty { color: #758179; text-align: center; padding: 32px !important; }
.ig-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
#tm-ratios .ig-stock-share { display: inline-block; align-self: center; max-width: 100%; margin: 6px 0 4px; padding: 4px 6px; border-radius: 6px; background: #edf5ef; border: 1px solid #d8e6dc; color: #285a43; font-size: 11px; font-weight: 600; line-height: 1.4; white-space: normal; }
#tm-ratios .ig-stock-share-stale { color: #7b7b68; background: #f5f5ef; }
#tm-ratios .ig-stock-share-basis { margin: 10px 2px 0; color: #7a877e; font-size: 11px; line-height: 1.65; }
@media (max-width: 600px) {
  table.ig-history-table { font-size: 13px; min-width: 665px; }
  .ig-history-table th, .ig-history-table td { padding: 13px 12px; }
  .ig-record-time { min-width: 100px; }
  #tm-ratios .ig-stock-share { font-size: 10px; padding: 3px 4px; }
}

#tm-ratios .ig-sales-forecast { width: 100%; margin-top: 10px; padding: 8px 2px 0; border-top: 1px dashed #d8e4da; display: grid; grid-template-rows: repeat(4,minmax(50px,auto)); gap: 7px; text-align: center; line-height: 1.5; font-variant-numeric: tabular-nums; }
#tm-ratios .ig-forecast-item > span { display: block; color: #7a877e; font-size: 11px; font-weight: 400; }
#tm-ratios .ig-forecast-item > b { display: block; color: #315c44; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
#tm-ratios .ig-forecast-item[data-forecast-item="days"] > b { font-size: 13px; }
#tm-ratios .ig-forecast-item[data-forecast-item="days"] > b { min-height: 3em; }
#tm-ratios .ig-forecast-date { white-space: pre-line; font-size: 11px; }
#tm-ratios .ig-forecast-pending .ig-forecast-item > b { color: #7d847a; }
#tm-ratios .ig-forecast-basis { margin: 10px 2px 0; color: #7a877e; font-size: 11px; line-height: 1.65; }
@media (max-width: 600px) {
  #tm-ratios .ig-forecast-item > span { font-size: 10px; }
  #tm-ratios .ig-forecast-item > b { font-size: 10.5px; }
  #tm-ratios .ig-forecast-item[data-forecast-item="days"] > b { font-size: 11px; }
  #tm-ratios .ig-forecast-date { font-size: 10px; }
}

/* R43: never present the old resident Today's difference as outside-aware. */
[data-inventory-gap]:not([data-outside-gap-initialized="1"]) [data-gap-value]{position:relative;color:transparent!important}
[data-inventory-gap]:not([data-outside-gap-initialized="1"]) [data-gap-value]::after{content:"待更新";position:absolute;inset:0;color:#315b43}
