/* V1.4 · PMC 变更评审：条件、取舍、影响、待确认变更单。 */
.pmc-dashboard { --pmc-ink: #203b54; --pmc-muted: #586d7e; --pmc-line: #dce5eb; color: var(--pmc-ink); }
.dashboard.pmc-dashboard .dash-top { padding: 19px 26px; }
.dashboard.pmc-dashboard .dash-title { font-size: 16px; }
.pmc-dashboard .dash-top .badge { color: #d5e3ef; font-size: 12px; }
.dashboard.pmc-dashboard .dash-body { padding: 26px; }
.pmc-dashboard .demo-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.pmc-dashboard .scenario-tabs { margin: 0; }
.pmc-threshold { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--pmc-muted); }
.pmc-threshold select { min-height: 44px; border: 1px solid #b8cbd9; border-radius: 8px; background: #fff; color: var(--pmc-ink); font: inherit; padding: 8px 30px 8px 12px; }
.pmc-context { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; background: #f0f5f8; border: 1px solid #dde7ee; border-radius: 12px; padding: 18px 22px; }
.pmc-label { display: block; color: var(--pmc-muted); font-size: 12px; margin-bottom: 6px; }
.pmc-context strong { display: block; font-size: 19px; font-weight: 650; line-height: 1.5; }
.pmc-context p { font-size: 13px; margin-top: 5px; color: var(--pmc-muted); line-height: 1.8; }
.pmc-scope { border-left: 1px solid #cfdae2; padding-left: 28px; }
.pmc-scope p { color: #39556c; }
.pmc-section { margin-top: 27px; }
.pmc-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 13px; }
.pmc-section-head h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 650; margin: 0; }
.pmc-section-head h3 > span { font-size: 11px; font-weight: 600; background: #edf2f7; color: #456784; border: 1px solid #dce5ed; border-radius: 7px; padding: 4px 6px; letter-spacing: .04em; }
.pmc-section-head > small { font-size: 12px; color: var(--pmc-muted); }
.pmc-conditions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--pmc-line); border-radius: 10px; overflow: hidden; }
.pmc-conditions > div { padding: 15px 17px; }
.pmc-conditions > div + div { border-left: 1px solid var(--pmc-line); }
.pmc-conditions strong { display: block; font-size: 14px; margin-bottom: 3px; }
.pmc-conditions p { font-size: 12px; color: var(--pmc-muted); margin: 0; }
.pmc-pending { display: inline-block; color: #80571f; background: #fff4de; font-size: 11px; line-height: 1.6; border: 1px solid #efdbb7; border-radius: 5px; padding: 2px 7px; white-space: nowrap; }
.pmc-conditions .pmc-pending { float: right; margin-left: 8px; }
.pmc-dashboard .pmc-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12px; color: #3c695c; margin: 11px 0 0; padding: 0; border: 0; }
.pmc-checks span:last-child { color: var(--pmc-muted); margin-left: auto; }
.pmc-plans { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.pmc-plan { border: 1px solid #d2dfe8; border-radius: 12px; padding: 19px 22px; background: #fff; }
.pmc-plan.is-selected { border-color: #4f7796; background: #f5f9fc; box-shadow: inset 0 0 0 1px #4f7796; }
.pmc-plan-title { display: flex; align-items: center; gap: 11px; }
.pmc-plan-title > span { font-size: 11px; letter-spacing: .04em; color: #5a7489; }
.pmc-plan h4 { font-size: 18px; margin: 0; }
.pmc-plan > p { font-size: 13px; color: var(--pmc-muted); margin: 6px 0 15px; }
.pmc-plan-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: 13px; }
.pmc-plan-facts span { color: var(--pmc-muted); }
.pmc-plan-facts strong { font-size: 14px; font-weight: 600; text-align: right; }
.pmc-plan-facts small { font-size: 12px; margin-left: 5px; font-weight: 500; }
.text-late { color: #ae362b; }
.text-tight { color: #815511; }
.text-normal { color: #2b695a; }
.pmc-plan button { width: 100%; min-height: 44px; border: 1px solid #b8ccdc; border-radius: 7px; color: #2d526e; font: inherit; font-size: 13px; background: #fff; margin-top: 13px; padding: 8px 14px; }
.pmc-plan button:hover { background: #eaf2f8; }
.pmc-plan button[aria-pressed="true"] { background: #244a69; border-color: #244a69; color: #fff; }
.dashboard .dash-metric.caution strong { color: #936213; }
.dashboard .dash-metric.warning strong { color: #ac352b; }
.pmc-dashboard .dash-metrics { gap: 12px; }
.dashboard.pmc-dashboard .dash-metric { padding: 13px 18px; background: #f7f9fb; }
.pmc-dashboard .dash-metric.warning { background: #fff4f1; border-color: #f0d7cf; }
.pmc-dashboard .dash-metric.caution { background: #fff8e9; border-color: #eddfbc; }
.pmc-dashboard .metric-delta { white-space: normal; font-size: 12px; }
.pmc-dashboard .dash-insight { border-radius: 9px; }
.pmc-dashboard .impact-list { display: block; margin: 0 0 16px; min-width: 0; }
.pmc-table-wrap { overflow: auto; border: 1px solid var(--pmc-line); border-radius: 10px; }
.pmc-impact-table { width: 100%; min-width: 750px; border-collapse: collapse; text-align: left; font-size: 13px; }
.pmc-impact-table caption { text-align: left; caption-side: bottom; font-size: 11px; color: var(--pmc-muted); padding: 10px 15px; background: #f8fafc; }
.pmc-impact-table th, .pmc-impact-table td { padding: 15px; vertical-align: middle; border-bottom: 1px solid #e5ebf0; }
.pmc-impact-table thead th { background: #f0f5f8; font-size: 12px; color: #50687b; font-weight: 500; white-space: nowrap; }
.pmc-impact-table tbody th { font-weight: 500; }
.pmc-impact-table tbody th strong { display: block; font-size: 14px; }
.pmc-impact-table tbody th small { display: block; font-size: 11px; color: var(--pmc-muted); margin-top: 4px; white-space: nowrap; }
.pmc-impact-table td:last-child { max-width: 220px; font-size: 12px; color: #50687b; }
.pmc-impact-table td:nth-child(2), .pmc-impact-table td:nth-child(3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pmc-before { color: #657d90; }
.pmc-new { display: inline-block; font-size: 10px; font-style: normal; color: #655483; background: #f0eaf8; border-radius: 4px; margin-left: 7px; padding: 1px 5px; }
.pmc-risk { display: inline-block; font-size: 12px; padding: 3px 8px; border-radius: 5px; white-space: nowrap; font-weight: 500; }
.pmc-risk.normal { color: #326556; background: #edf5f0; }
.pmc-risk.late { color: #a13329; background: #ffede8; }
.pmc-risk.tight { color: #815511; background: #fff0ca; }
.pmc-empty { border: 1px dashed #c9d7e3; border-radius: 10px; padding: 22px; font-size: 13px; color: var(--pmc-muted); background: #fbfcfe; }
.dashboard.pmc-dashboard .chart-disclosure { border: 1px solid #d9e3ec; border-radius: 10px; padding: 0 16px; background: #fbfcfe; }
.dashboard.pmc-dashboard .chart-disclosure > summary { display: list-item; padding: 13px 0; cursor: pointer; font-size: 13px; font-weight: 600; min-height: 48px; }
.pmc-dashboard .chart-disclosure > summary span { font-size: 11px; font-weight: 400; color: var(--pmc-muted); margin-left: 15px; }
.pmc-dashboard .chart-scroll { padding-bottom: 15px; }
.dashboard .job-bar.job-urgent { background: #e7ddf3; color: #593f78; border: 1px solid #8d75aa; }
.dashboard .job-bar.job-late { background: #ffe4df; border: 1px solid #bb4d43; border-left: 3px solid #bb4d43; color: #932a23; }
.dashboard .job-bar.job-tight { background: #ffedbf; border: 1px solid #a27524; border-left: 3px solid #a27524; color: #755011; }
.dashboard .gantt-legend i.late { background: #ffe4df; border: 1px solid #bb4d43; }
.dashboard .gantt-legend i.tight { background: #ffedbf; border: 1px solid #a27524; }
.pmc-event-line { display: block; position: absolute; top: -7px; bottom: -7px; border-left: 1px dashed #61798e; pointer-events: none; z-index: 2; }
.pmc-next { border-top: 1px solid var(--pmc-line); padding-top: 23px; }
.pmc-next > p { font-size: 14px; color: #435d72; margin-bottom: 17px; }
.pmc-action-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pmc-action-row small { color: var(--pmc-muted); font-size: 12px; }
.pmc-draft-status { font-size: 13px; color: #466454; margin-top: 14px; }
.pmc-draft-status:empty { display: none; }
.pmc-draft { border: 1px solid #bdcec4; background: #f5f9f6; padding: 22px; margin-top: 18px; border-radius: 12px; }
.pmc-draft p { color: #526b5d; font-size: 12px; margin: 0 0 15px; }
.pmc-draft textarea { display: block; width: 100%; resize: vertical; min-height: 230px; font-family: inherit; font-size: 13px; line-height: 1.9; color: #344f40; background: #fff; border: 1px solid #c9d8cf; border-radius: 8px; padding: 15px; }
.pmc-export { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.pmc-dashboard .demo-method { margin-top: 23px; }
.pmc-dashboard .demo-method summary { font-size: 12px; min-height: 44px; padding: 12px 0; }
.pmc-dashboard .demo-method .dash-note { margin: 0; }
.pmc-dashboard [hidden] { display: none !important; }
.pmc-dashboard :is(button, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #326fa4; outline-offset: 3px; }
@media (max-width: 850px) {
  .pmc-conditions .pmc-pending { float: none; margin: 0 0 8px; }
  .pmc-plan-facts small { display: block; margin-left: 0; }
  .pmc-plan { padding: 17px; }
}
@media (max-width: 620px) {
  .dashboard.pmc-dashboard .dash-top { padding: 16px; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
  .dashboard.pmc-dashboard .dash-title { font-size: 14px; }
  .pmc-dashboard .dash-top .badge { font-size: 10px; }
  .dashboard.pmc-dashboard .dash-body { padding: 16px; }
  .pmc-dashboard .demo-tools { gap: 12px; margin-bottom: 16px; }
  .pmc-threshold { width: 100%; justify-content: space-between; font-size: 12px; }
  .pmc-threshold select { font-size: 16px; min-width: 150px; }
  .pmc-context { grid-template-columns: 1fr; padding: 16px; gap: 13px; }
  .pmc-context strong { font-size: 17px; }
  .pmc-context p { font-size: 12px; }
  .pmc-scope { border-left: 0; padding: 12px 0 0; border-top: 1px solid #d8e2ea; }
  .pmc-scope br { display: none; }
  .pmc-section { margin-top: 24px; }
  .pmc-section-head { gap: 7px; margin-bottom: 12px; }
  .pmc-section-head h3 { font-size: 16px; }
  .pmc-section-head > small { width: 100%; font-size: 11px; }
  .pmc-conditions { grid-template-columns: 1fr; }
  .pmc-conditions > div { padding: 12px 14px; }
  .pmc-conditions > div + div { border-left: 0; border-top: 1px solid var(--pmc-line); }
  .pmc-conditions .pmc-pending { float: right; margin: 2px 0 0 8px; }
  .pmc-checks span:last-child { margin-left: 0; }
  .pmc-plans { gap: 10px; }
  .pmc-plan { padding: 13px 11px; }
  .pmc-plan-title { flex-direction: column; align-items: flex-start; gap: 3px; }
  .pmc-plan h4 { font-size: 15px; }
  .pmc-plan > p { font-size: 12px; min-height: 43px; margin-bottom: 10px; }
  .pmc-plan-facts > div { display: block; border-top: 1px solid #dce5ec; padding: 7px 0; }
  .pmc-plan-facts span { display: block; font-size: 11px; }
  .pmc-plan-facts strong { display: block; font-size: 13px; text-align: left; margin-top: 2px; min-height: 22px; }
  .pmc-plan-facts small { font-size: 11px; }
  .pmc-plan button { font-size: 11px; padding: 9px 3px; margin-top: 5px; }
  .pmc-dashboard .dash-metrics { gap: 7px; }
  .dashboard.pmc-dashboard .dash-metric { padding: 10px 7px; }
  .pmc-dashboard .metric-delta { font-size: 10px; }
  .pmc-table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .pmc-impact-table { display: block; min-width: 0; }
  .pmc-impact-table caption { display: block; background: none; padding: 0 0 10px; font-size: 10px; }
  .pmc-impact-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pmc-impact-table tbody { display: grid; gap: 10px; }
  .pmc-impact-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 14px; border: 1px solid var(--pmc-line); border-radius: 10px; }
  .pmc-impact-table th, .pmc-impact-table td { display: block; padding: 0; border: 0; }
  .pmc-impact-table tbody th { grid-column: 1; grid-row: 1; }
  .pmc-impact-table td:nth-child(4) { grid-column: 2; grid-row: 1; text-align: right; }
  .pmc-impact-table td:nth-child(2), .pmc-impact-table td:nth-child(3) { font-size: 13px; }
  .pmc-impact-table td:nth-child(2)::before { content: '原完工 → 候选完工'; }
  .pmc-impact-table td:nth-child(3)::before { content: '最迟完工'; }
  .pmc-impact-table td:nth-child(2)::before, .pmc-impact-table td:nth-child(3)::before { display: block; font-size: 10px; color: var(--pmc-muted); margin-bottom: 4px; }
  .pmc-impact-table td:last-child { grid-column: 1 / -1; max-width: none; border-top: 1px solid #e5ebf0; padding-top: 9px; font-size: 12px; }
  .pmc-risk { font-size: 11px; padding: 3px 6px; }
  .dashboard.pmc-dashboard .chart-disclosure { padding-inline: 12px; }
  .pmc-dashboard .chart-disclosure > summary span { display: block; font-size: 10px; margin: 4px 0 0; padding: 0; }
  .pmc-action-row { gap: 10px; }
  .pmc-action-row .btn { width: 100%; min-height: 48px; }
  .pmc-draft { padding: 16px; }
  .pmc-draft textarea { font-size: 16px; padding: 11px; }
  .pmc-dashboard .gantt-legend { flex-wrap: wrap; gap: 10px; }
  .dashboard .metric-delta { white-space: normal; }
}
@media print {
  .pmc-dashboard .impact-list { display: block; }
  .pmc-dashboard .pmc-draft { break-inside: avoid; }
  .pmc-export, .pmc-action-row button, .pmc-plan button, .pmc-threshold { display: none; }
}
