/* 生产工作台：沿用 C01 白底、细边框与克制状态色。 */
#adminPageProductionHome {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.pwh-page {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 100%;
  background: #f6f8f5;
  color: #25372f;
}

.pwh-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 42px;
  box-sizing: border-box;
}

.pwh-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.pwh-header h1,
.pwh-panel h2 {
  margin: 0;
  color: #25372f;
}

.pwh-header h1 { font-size: 26px; line-height: 1.25; }
.pwh-header p,
.pwh-panel-head p { margin: 7px 0 0; color: #7a847e; font-size: 13px; }

.pwh-person { flex: none; text-align: right; }
.pwh-person b { display: block; font-size: 14px; font-weight: 650; }
.pwh-person span { display: block; margin-top: 4px; color: #8e8e93; font-size: 12px; font-variant-numeric: tabular-nums; }

.pwh-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.pwh-stat,
.pwh-panel {
  border: 1px solid #dfe7dd;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

.pwh-stat {
  position: relative;
  min-width: 0;
  padding: 17px 18px 15px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.pwh-stat:hover:not(:disabled),
.pwh-order-row:hover,
.pwh-attention-row:hover:not(:disabled),
.pwh-future-row:hover:not(:disabled) { background: #f8fbf7; border-color: #bfcfbe; }
.pwh-stat--alert { border-top: 3px solid #c7654d; padding-top: 15px; }
.pwh-stat--todo { border-top: 3px solid #c18a38; padding-top: 15px; }
.pwh-stat--active { border-top: 3px solid #537c62; padding-top: 15px; }
.pwh-stat.is-locked,
.pwh-attention-row.is-locked { opacity: .58; cursor: not-allowed; }

.pwh-stat-label { display: block; color: #68756d; font-size: 13px; font-weight: 600; }
.pwh-stat-value { display: block; margin-top: 9px; color: #202c26; font-size: 28px; line-height: 1.05; font-weight: 760; font-variant-numeric: tabular-nums; }
.pwh-stat-hint { display: block; margin-top: 10px; color: #8a938d; font-size: 12px; }

.pwh-middle {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, .8fr);
  grid-template-areas: "today attention";
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.pwh-panel { min-width: 0; padding: 19px; box-sizing: border-box; }
.pwh-today { grid-area: today; }
.pwh-attention { grid-area: attention; }
.pwh-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.pwh-panel h2 { font-size: 17px; line-height: 1.3; }
.pwh-panel-link {
  flex: none;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #55695d;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.pwh-panel-link:disabled { opacity: .55; cursor: not-allowed; }
.pwh-today-body { border-top: 1px solid #edf0ec; }
.pwh-order-group { padding-top: 15px; }
.pwh-order-group + .pwh-order-group { margin-top: 6px; border-top: 1px solid #edf0ec; }
.pwh-order-group h3 { margin: 0 4px 8px; color: #46564d; font-size: 13px; font-weight: 700; }
.pwh-order-group h3 span { color: #78847d; font-weight: 600; font-variant-numeric: tabular-nums; }

.pwh-order-list { border-top: 0; }
.pwh-order-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto 12px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 4px;
  border: 0;
  border-bottom: 1px solid #edf0ec;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pwh-order-state { display: inline-flex; justify-content: center; padding: 4px 7px; border-radius: 5px; background: #f5ead8; color: #95681f; font-size: 12px; font-weight: 650; }
.pwh-order-state.is-producing { background: #e4efe5; color: #42644f; }
.pwh-order-main { min-width: 0; }
.pwh-order-main b,
.pwh-order-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pwh-order-main b { color: #2d3932; font-size: 13px; font-weight: 650; }
.pwh-order-main span { margin-top: 4px; color: #949b96; font-size: 11px; }
.pwh-order-time { color: #657168; font-size: 12px; white-space: nowrap; }
.pwh-chevron { color: #a4aba6; font-size: 20px; font-weight: 400; }
.pwh-empty { padding: 28px 10px; color: #8a938d; font-size: 13px; text-align: center; }
.pwh-empty--compact { padding: 22px 10px; }
.pwh-group-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 4px 2px;
  color: #7b857f;
  font-size: 12px;
}
.pwh-group-more button,
.pwh-future-empty button {
  flex: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #55695d;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.pwh-attention-list { border-top: 1px solid #edf0ec; }
.pwh-attention-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8px 12px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 13px 3px;
  border: 0;
  border-bottom: 1px solid #edf0ec;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pwh-attention-copy b,
.pwh-attention-copy span { display: block; }
.pwh-attention-copy b { font-size: 13px; font-weight: 650; }
.pwh-attention-copy span { margin-top: 4px; color: #7b857f; font-size: 12px; }
.pwh-attention-dot { width: 7px; height: 7px; border-radius: 50%; background: #c7654d; }

.pwh-future-list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.pwh-future-row {
  min-width: 0;
  padding: 11px 10px;
  border: 1px solid #edf0ec;
  border-radius: 8px;
  background: #fbfcfb;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pwh-future-date { display: block; color: #6e7972; font-size: 11px; white-space: nowrap; }
.pwh-future-track { display: block; height: 4px; margin: 13px 0 9px; overflow: hidden; border-radius: 2px; background: #e9eeea; }
.pwh-future-track span { display: block; height: 100%; border-radius: inherit; background: #668571; }
.pwh-future-row b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.pwh-future-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 2px;
  color: #8a938d;
  font-size: 13px;
}

@media (max-width: 980px) {
  .pwh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pwh-middle { grid-template-columns: minmax(0, 1.45fr) minmax(250px, .8fr); }
  .pwh-future-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .pwh-inner { width: 100%; padding: 20px 14px 30px; }
  .pwh-header { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 18px; }
  .pwh-header h1 { font-size: 23px; }
  .pwh-person { text-align: left; }
  .pwh-person b { display: none; }
  .pwh-person span { margin-top: 0; }
  .pwh-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pwh-stat { padding: 14px; }
  .pwh-stat--alert,
  .pwh-stat--todo,
  .pwh-stat--active { padding-top: 12px; }
  .pwh-stat-value { font-size: 24px; }
  .pwh-middle { grid-template-columns: 1fr; grid-template-areas: "attention" "today"; gap: 14px; }
  .pwh-panel { padding: 16px 14px; }
  .pwh-panel-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .pwh-today .pwh-panel-head { flex-direction: row; align-items: center; }
  .pwh-order-row { grid-template-columns: 58px minmax(0, 1fr) 10px; gap: 9px; }
  .pwh-order-time { display: none; }
  .pwh-group-more,
  .pwh-future-empty { align-items: flex-start; flex-direction: column; gap: 7px; }
  .pwh-future-list { grid-template-columns: 1fr; gap: 7px; }
  .pwh-future-row { display: grid; grid-template-columns: 84px minmax(60px, 1fr) 42px; align-items: center; gap: 10px; padding: 10px 11px; }
  .pwh-future-track { margin: 0; }
  .pwh-future-row b { text-align: right; }
}

@media (max-width: 390px) {
  .pwh-inner { padding-left: 12px; padding-right: 12px; }
  .pwh-stat { padding-left: 12px; padding-right: 12px; }
  .pwh-stat-label { font-size: 12px; }
  .pwh-stat-hint { min-height: 2.8em; }
}
