/* 工业驾驶舱数据展示区：延续原页眉深蓝，所有图形由真实统计生成。 */
.home-overview { margin: 0 0 14px; background: #102c47; border-color: #31516e; border-radius: 12px; }
.home-overview .hp-hero-stage { display: grid; }
.home-overview .hero-top { grid-area: 1 / 1; height: auto; min-height: 180px; }
.home-overview .hero-shade { background: linear-gradient(90deg, #0b253bdc, #102e4866 38%, transparent 68%); }
.home-overview .hero-copy { top: 22px; left: 24px; }
.home-overview .hero-copy h2 { margin: 0; }
.home-overview .hp-overview { grid-area: 1 / 1; place-self: end; position: relative; inset: auto; width: 410px; margin: 12px; }
.home-overview .hp-metrics button:not(.hp-secondary-link) { flex-direction: column; align-items: flex-start; }

.home-management-grid { --mg-ink: #edf6ff; --mg-muted: #acc3da; --mg-line: #31516e; --mg-blue: #61bbff; --mg-green: #4bd3b5; --mg-amber: #ffc269; --mg-red: #ff938b; margin: 0 0 14px; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-management-grid > .panel { display: flex; flex-direction: column; min-width: 0; background: #102c47; border: 1px solid #31516e; border-radius: 12px; overflow: hidden; color: var(--mg-ink); }
.home-management-grid .panel-heading { height: 46px; padding: 0 18px; border-bottom: 0; }
.home-management-grid .panel-heading h2 { color: var(--mg-ink); font-size: 18px; font-weight: 600; }
.home-management-grid .panel-heading .text-button { color: var(--mg-muted); font-size: 12px; }
.home-management-grid .panel-heading .text-button:hover { color: #fff; }
.home-management-content { min-width: 0; padding: 0 18px; display: flex; flex: 1; container-type: inline-size; }
.home-management-content > .an-cards-loading { display: block; padding: 20px 0; color: var(--mg-muted); }
.mg-summary { color: var(--mg-ink); font-size: 12px; font-variant-numeric: tabular-nums; display: flex; flex: 1; flex-direction: column; min-width: 0; }
.mg-summary a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
.mg-summary a:hover { color: #fff; }
.mg-summary a:hover strong, .mg-summary a:hover .mg-rank-value { text-decoration: underline; }
.mg-source { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--mg-muted); font-size: 11px; line-height: 1.6; padding-bottom: 8px; }
.mg-freshness { display: inline-flex; align-items: center; gap: 5px; color: var(--mg-green); white-space: nowrap; }
.mg-freshness i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.mg-freshness.is-stale { color: var(--mg-amber); }
.mg-periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--mg-line); gap: 8px; }
.mg-periods.is-five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.mg-periods.is-six { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; }
.mg-periods button { min-height: 37px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px 9px; padding: 7px 5px; color: var(--mg-muted); border-bottom: 2px solid transparent; font-size: 11px; }
.mg-periods button span { white-space: nowrap; }
.mg-periods.is-five button { gap: 2px 5px; padding: 7px 3px; }
.mg-periods.is-six button { flex-direction: column; gap: 2px; padding: 6px 2px; }
.mg-periods button b { font-size: 13px; font-weight: 500; }
.mg-periods button.is-active { color: #fff; border-bottom-color: var(--mg-blue); background: #1b3d5c; }
.mg-periods button:hover { background: #1b3d5c; }
.mg-display { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; min-height: 131px; padding: 14px 0 10px; }
.mg-volume, .mg-completion { min-width: 0; }
.mg-completion { border-left: 1px solid var(--mg-line); padding-left: 16px; }
.mg-volume-label { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; color: var(--mg-muted); }
.mg-volume-label time { font-size: 10px; line-height: 14px; }
.mg-total { display: flex; align-items: baseline; width: fit-content; gap: 5px; margin: 3px 0 6px; }
.mg-total strong, .mg-rate-row > strong { font-size: 36px; line-height: 1.12; font-weight: 600; letter-spacing: -.025em; color: #fff; }
.mg-total > span, .mg-rate-row small, .mg-stock-total small { color: var(--mg-muted); font-size: 11px; font-weight: 400; }
.mg-severity-track, .mg-rate-track { height: 5px; display: flex; width: 100%; border-radius: 3px; background: #2b4963; overflow: hidden; }
.mg-summary .is-major { --mg-series: var(--mg-red); }
.mg-summary .is-larger { --mg-series: var(--mg-amber); }
.mg-summary .is-general { --mg-series: var(--mg-blue); }
.mg-summary .is-unknown { --mg-series: var(--mg-muted); }
.mg-severity-track i { display: block; background: var(--mg-series); }
.mg-levels { display: flex; gap: 4px 11px; flex-wrap: wrap; margin-top: 6px; }
.mg-levels a, .mg-levels > span { display: inline-flex; align-items: center; gap: 4px; color: var(--mg-muted); font-size: 11px; }
.mg-levels i { width: 5px; height: 5px; border-radius: 1px; background: var(--mg-series); }
.mg-levels strong { font-size: 14px; color: var(--mg-series); font-weight: 500; }
.mg-rate-row { display: flex; flex-direction: column; align-items: flex-start; gap: 19px; margin-bottom: 6px; }
.mg-rate-row small, .mg-stock-total small { margin-left: 3px; }
.mg-rate-trigger { padding: 0; color: var(--mg-muted); font-size: 12px; text-decoration: underline dotted; text-underline-offset: 3px; }
.mg-rate-trigger:hover { color: #fff; }
.mg-rate-track.has-data { background: var(--mg-amber); }
.mg-rate-track i { background: var(--mg-green); }
.mg-rate-popover { position: fixed; inset: auto; margin: 0; width: min(280px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: 12px 15px; border: 1px solid #5a7e9f; border-radius: 10px; background: #153750; color: #e5f2ff; box-shadow: 0 8px 24px #06182c55; font-size: 11px; line-height: 1.8; text-align: left; }
.mg-rate-popover > strong { display: block; color: #fff; font-size: 12px; font-weight: 500; }
.mg-rate-popover p { margin: 6px 0; }
.mg-rate-popover small { color: var(--mg-muted); font-size: 10px; }
.mg-status-values { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 3px; margin-top: 6px; }
.mg-status-values a { display: flex; align-items: baseline; gap: 4px; }
.mg-status-values a > span { font-size: 11px; color: var(--mg-muted); white-space: nowrap; }
.mg-status-values strong { font-size: 14px; font-weight: 500; color: var(--mg-green); }
.mg-status-values .is-open strong { color: var(--mg-amber); }
.mg-status-values .is-disposed strong { color: var(--mg-blue); }
.mg-weekly-closure { padding: 10px 0 11px; border-top: 1px solid var(--mg-line); }
.mg-weekly-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.mg-weekly-head > span { color: var(--mg-ink); font-size: 12px; font-weight: 550; display: inline-flex; align-items: baseline; gap: 7px; }
.mg-weekly-head time { color: var(--mg-muted); font-size: 10px; font-weight: 400; }
.mg-shallow-link { color: var(--mg-amber); font-size: 11px; white-space: nowrap; }
.mg-stage-track { height: 5px; display: flex; width: 100%; border-radius: 3px; background: #2b4963; overflow: hidden; }
.mg-stage-track i { display: block; }
.mg-stage-track .is-full { background: var(--mg-green); }
.mg-stage-track .is-disposed { background: var(--mg-blue); }
.mg-stage-track .is-open { background: var(--mg-amber); }
.mg-weekly-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 7px; }
.mg-weekly-stats a { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mg-weekly-stats a > span { display: inline-flex; align-items: center; gap: 4px; color: var(--mg-muted); font-size: 10px; white-space: nowrap; }
.mg-weekly-stats i { width: 5px; height: 5px; border-radius: 1px; background: currentColor; }
.mg-weekly-stats .is-full i, .mg-weekly-stats .is-full strong { color: var(--mg-green); }
.mg-weekly-stats .is-disposed i, .mg-weekly-stats .is-disposed strong { color: var(--mg-blue); }
.mg-weekly-stats .is-open i, .mg-weekly-stats .is-open strong { color: var(--mg-amber); }
.mg-weekly-stats strong { font-size: 15px; font-weight: 600; }
.mg-weekly-stats strong small { font-size: 10px; font-weight: 400; color: var(--mg-muted); }
.mg-stage2 { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--mg-line); }
.mg-stage2-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 5px; }
.mg-stage2-head > span { color: var(--mg-muted); font-size: 11px; }
.mg-stage2-head > strong { color: var(--mg-green); font-size: 16px; font-weight: 600; }
.mg-stage2-head > strong small { font-size: 10px; font-weight: 400; color: var(--mg-muted); margin-left: 1px; }
.mg-rate-track.is-stage2.has-data { background: var(--mg-blue); }
.mg-analysis { border-top: 1px solid var(--mg-line); margin-bottom: 2px; }
.mg-analysis > summary, .home-work-summary > summary { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 10px; cursor: pointer; list-style: none; }
.mg-analysis > summary { color: var(--mg-muted); }
.mg-analysis > summary:hover { color: #fff; }
.mg-analysis > summary::-webkit-details-marker, .home-work-summary > summary::-webkit-details-marker { display: none; }
.mg-analysis[open] > summary > .icon, .home-work-summary[open] > summary > .icon { transform: rotate(180deg); }
.mg-conclusion { display: flex; align-items: flex-start; gap: 7px; background: #1b3b57; padding: 9px 11px; margin: 0 0 15px; line-height: 1.7; color: #d9eaff; font-size: 11px; min-height: 36px; }
.mg-conclusion > .icon { flex: none; margin-top: 2px; color: var(--mg-blue); }
.mg-conclusion > span { min-width: 0; overflow-wrap: anywhere; }
.mg-rankings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-height: 139px; }
.mg-ranking { min-width: 0; }
.mg-ranking h4 { font-size: 11px; font-weight: 500; line-height: 1.6; margin: 0 0 10px; color: var(--mg-muted); }
.mg-ranking ol { list-style: none; margin: 0; padding: 0; }
.mg-ranking li { margin: 0 0 11px; }
.mg-ranking li a { display: block; }
.mg-rank-value { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; color: #dfedfc; line-height: 1.5; font-size: 11px; }
.mg-rank-value > span { min-width: 0; overflow-wrap: anywhere; }
.mg-rank-value strong { white-space: nowrap; font-weight: 500; font-size: 14px; }
.mg-rank-value strong small { font-size: 9px; color: var(--mg-muted); margin-left: 2px; }
.mg-bar-track { height: 4px; display: block; background: #27435e; margin-top: 5px; }
.mg-bar-track i { display: block; height: 100%; background: var(--mg-blue); }
.mg-ranking-open .mg-bar-track i { background: var(--mg-amber); }
.mg-ranking-repeat .mg-bar-track i { background: var(--mg-green); }
.mg-repeat-sample { color: var(--mg-muted); display: block; font-size: 9px; margin-top: 3px; }
.mg-chart-empty { display: flex; flex-direction: column; gap: 12px; color: var(--mg-muted); padding: 15px 0; }
.mg-chart-empty strong { font-weight: 400; font-size: 22px; }
.mg-chart-empty span { font-size: 10px; line-height: 1.7; }
.mg-empty { color: var(--mg-muted); font-size: 11px; line-height: 1.8; margin: 0; padding: 12px 0; }
.mg-repeats { border-top: 1px solid var(--mg-line); }
.mg-repeats summary { display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; color: var(--mg-muted); min-height: 35px; }
.mg-repeats summary::-webkit-details-marker { display: none; }
.mg-repeats summary > strong { font-weight: 500; color: #deeeff; }
.mg-repeats summary > .icon { margin-left: auto; }
.mg-repeats[open] summary > .icon { transform: rotate(180deg); }
.mg-repeat-context { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 8px; padding-bottom: 12px; font-size: 11px; line-height: 1.6; }
.mg-repeat-context button { font-size: inherit; }
.mg-repeat-context .mg-repeat-ledger { display: inline-flex; align-items: center; gap: 4px; color: var(--mg-blue); }
.mg-repeat-ledger:hover { text-decoration: underline; }
.mg-stock-levels { margin: 6px 0 8px; }
.mg-stock-levels .is-major strong, .mg-stock-levels .is-larger strong { font-weight: 650; }
.mg-backlog { padding: 9px 0 12px; border-top: 1px solid var(--mg-line); }
.mg-backlog-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mg-backlog-metric { display: grid; align-content: start; gap: 3px; }
.mg-backlog-metric > span { color: var(--mg-muted); overflow-wrap: anywhere; }
.mg-backlog-metric > strong { color: var(--mg-ink); font-size: 25px; font-weight: 600; line-height: 1.2; }
.mg-backlog-metric > strong small { margin-left: 3px; color: var(--mg-muted); font-size: 11px; font-weight: 400; }
.mg-backlog-note { font-size: 11px; }
.mg-backlog-metrics .mg-stock-total > strong { color: var(--mg-amber); }
.mg-backlog-metrics .mg-overdue > strong { color: var(--mg-red); }
.mg-backlog-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); align-items: start; gap: 14px; padding-top: 10px; border-top: 1px solid var(--mg-line); }
.mg-backlog-details > .mg-ranking li { margin-bottom: 7px; }
.mg-age-table { width: 100%; border-collapse: collapse; }
.mg-age-table caption, .mg-backlog-details .mg-ranking h4 { margin: 0 0 6px; text-align: left; color: var(--mg-ink); font-size: 12px; font-weight: 550; }
.mg-age-table th { text-align: left; color: var(--mg-muted); font-size: 11px; font-weight: 400; }
.mg-age-table th, .mg-age-table td { padding: 3px 4px; }
.mg-age-table thead th, .mg-age-table tbody th > span { white-space: nowrap; }
.mg-age-table tbody th > small { display: block; font-size: 10px; }
.mg-age-table tr > :first-child { padding-left: 0; }
.mg-age-table tr > :not(:first-child) { text-align: right; }
.mg-age-table td > a { display: block; color: var(--mg-series, var(--mg-ink)); font-weight: 600; }
.mg-age-table td > a:hover { text-decoration: underline; }
.mg-period-detail { border-top: 1px solid var(--mg-line); }
.mg-period-detail > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; cursor: pointer; list-style: none; color: var(--mg-muted); }
.mg-period-detail > summary::-webkit-details-marker { display: none; }
.mg-period-detail[open] > summary .icon { transform: rotate(180deg); }
.mg-summary :focus-visible, .home-management-grid .text-button:focus-visible { outline: 2px solid #8dd0ff; outline-offset: 3px; border-radius: 2px; }
.mg-summary ::selection { background: #477faa; color: #fff; }
.home-operations { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; gap: 14px; }
.home-operations > div { min-width: 0; }
.home-operations > :only-child { grid-column: 1 / -1; }
.home-operations .panel { min-height: 122px; margin: 0; border-radius: 12px; }
.home-operations .panel-heading { height: 46px; padding-inline: 16px; }
.home-operations .panel-heading h2 { font-size: 17px; }
.home-operations .panel-heading .text-button { font-size: 12px; }
.home-operations .focus-table-wrap { padding-inline: 16px; }
.home-operations .focus-table th { color: #526983; font-size: 11px; }
.home-operations .focus-table th:first-child { width: 36%; }
.home-operations .focus-table th:nth-child(2) { width: 13%; }
.home-operations .focus-table th:nth-child(4) { width: 24%; }
.home-operations .focus-table td { font-size: 12px; overflow-wrap: anywhere; }
.home-operations .focus-report { color: #526983; }
.home-operations .focus-item-link strong { white-space: normal; }
.home-work-status { margin: 0; padding: 14px 16px 20px; color: #526983; font-size: 13px; }
.home-work-summary { border-top: 1px solid var(--line); margin: 0 16px; color: #526983; font-size: 12px; }
.home-work-summary p { margin: 0 0 12px; line-height: 1.7; }
.home-report-content { padding: 12px 16px 16px; }
.home-report-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: #526983; font-size: 12px; }
.home-report-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 110px), 1fr)); gap: 12px; margin-top: 14px; }
.home-report-metrics > div { display: grid; align-content: start; gap: 4px; min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.home-report-metrics strong { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.home-report-metrics b { font-size: 21px; font-weight: 600; }
.home-report-metrics small, .home-report-source { color: #526983; font-size: 11px; line-height: 1.6; }
.home-report-source { margin: 12px 0 0; overflow-wrap: anywhere; }
.home-demo { margin-top: 22px; }
.home-demo > summary { margin-bottom: 8px; font-size: 14px; color: #526983; cursor: pointer; }
.home-demo > summary h2 { display: inline; font: inherit; font-weight: 600; }
.home-demo .dashboard-grid { margin-top: 0; }

@media (max-width: 1050px) {
  .home-operations { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .home-management-grid { grid-template-columns: minmax(0, 1fr); }
}
@container (min-width: 450px) {
  .mg-period-content { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: min-content 1fr; align-items: start; column-gap: 16px; }
  .mg-period-content > .mg-display { min-height: 162px; }
  .mg-period-content > .mg-analysis { grid-column: 2; grid-row: 1 / span 2; min-width: 0; border-top: 0; border-left: 1px solid var(--mg-line); padding-left: 16px; }
  .mg-period-content .mg-conclusion { margin-bottom: 10px; }
  .mg-period-content > .mg-repeats { grid-column: 1; }
}
@container (max-width: 420px) {
  .mg-periods.is-six { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .mg-periods.is-five button { flex-direction: column; gap: 2px; padding: 6px 2px; }
}
@container (max-width: 360px) {
  .mg-backlog-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .home-overview .hp-hero-stage { display: block; }
  .home-overview .hero-top { min-height: 112px; }
  .home-overview .hero-copy { left: 16px; }
  .home-overview .hp-overview { width: 100%; margin: 0; border: 0; border-top: 1px solid #31516e; border-radius: 0; box-shadow: none; }
  .home-management-grid, .home-operations { gap: 10px; }
  .home-management-grid .panel-heading { padding-inline: 14px; }
  .home-management-content { padding-inline: 14px; }
  .mg-display { gap: 10px; }
  .mg-completion { padding-left: 10px; }
  .mg-total strong, .mg-rate-row > strong { font-size: 32px; }
  .mg-rankings { gap: 14px; }
}
