/* Supply chain (scm- prefix). */
.scm-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.scm-kpi { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 8px; border: 1px solid #d6e0e9; border-top: 3px solid #8a9bb0; border-radius: 4px; background: #fff; color: inherit; text-decoration: none; min-width: 0; }
.scm-kpi:hover { box-shadow: 0 4px 14px rgba(13, 34, 51, .08); }
.scm-kpi small { color: var(--text2); font-size: 12px; font-weight: 600; }
.scm-kpi strong { font-size: 24px; font-weight: 800; color: var(--brand-navy, #0d2233); line-height: 1.15; }
.scm-kpi em { font-style: normal; color: var(--muted); font-size: 11px; }
.scm-kpi.good { border-top-color: #12a079; } .scm-kpi.watch { border-top-color: #d99a06; } .scm-kpi.bad { border-top-color: #c32a43; }
.scm-kpi.bad strong { color: #b4233a; }

.scm-sev { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: #8a9bb0; }
.scm-sev.high { background: #c32a43; } .scm-sev.medium { background: #d99a06; } .scm-sev.low { background: #2bb3d9; }

.scm-disr { display: block; padding: 8px 0; border-top: 1px solid #e3eaf0; color: inherit; text-decoration: none; }
.scm-disr:first-of-type { border-top: 0; padding-top: 0; }
.scm-disr b { display: block; }
.scm-disr .sub { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.scm-dbdis { padding: 8px 14px; background: #fff4f0; border-bottom: 1px solid #f3d6cc; font-size: 13px; }
.scm-dbdis i { color: #c32a43; }

.scm-steps { margin: 6px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.scm-steps li { padding-left: 2px; }
.scm-steps li > div { display: inline-flex; flex-direction: column; }
.scm-steps li.done { color: var(--muted); }
.scm-steps li.done b { text-decoration: line-through; text-decoration-color: #12a079; }
.scm-steps li.done::marker { color: #12a079; }
.scm-stepform { display: flex; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.scm-stepform .ct-input { max-width: 260px; }

.scm-grid td, .scm-grid th { white-space: nowrap; }
.scm-grid input.ct-input { max-width: 78px; min-width: 60px; padding: 3px 6px; }
.scm-grid input.scm-ov, .scm-ovt { background: #fff7e6; border-color: #e8b64c; font-weight: 700; }
.scm-grid tr.scm-gfirst td { border-top: 2px solid #d6e0e9; }
.scm-plan { color: #1a7fe0; }
.scm-grid .bad, b.bad { color: #b4233a; font-weight: 700; }

.scm-compare th, .scm-compare td { min-width: 190px; vertical-align: top; }
.scm-compare th:first-child, .scm-compare td:first-child { min-width: 140px; }
.scm-compare .chosen { background: #eef8f3; }
.scm-compare th.chosen { box-shadow: inset 0 3px 0 #12a079; }
.scm-up { color: #0f7a5c !important; } .scm-down { color: #b4233a !important; }

.scm-scen-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 10px; }
.scm-scen { border: 1px solid #d6e0e9; border-radius: 4px; padding: 10px; display: grid; gap: 4px; font-size: 13px; background: #fff; }
.scm-scen.chosen { border-color: #12a079; box-shadow: inset 3px 0 0 #12a079; }

.scm-heat { display: grid; grid-template-columns: 20px repeat(5, minmax(0, 1fr)); gap: 4px; max-width: 320px; }
.scm-heat .cell { aspect-ratio: 1.3; display: grid; place-items: center; border-radius: 3px; font-weight: 800; color: #0d2233; }
.scm-heat .cell.lo { background: #e3f4ec; } .scm-heat .cell.md { background: #fdf0cf; } .scm-heat .cell.hi { background: #f7d5da; }
.scm-heat .ax { display: grid; place-items: center; color: var(--muted); font-size: 11px; }

.scm-suggest { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.scm-sugg { border: 1px solid #d6e0e9; border-radius: 4px; padding: 10px; display: grid; gap: 8px; background: #fff; min-width: 0; }
.scm-sugg .h .sub { display: block; color: var(--muted); font-size: 12px; }
.scm-sugg ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 13px; }

.scm-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.scm-checks li.error { color: #b4233a; } .scm-checks li.warning { color: #8a5a00; }
.scm-classify { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.scm-classify select { max-width: 260px; }
.scm-tabs { margin-bottom: 2px; }

@media (max-width: 900px) {
    .scm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .scm-kpi strong { font-size: 20px; }
    .scm-compare th, .scm-compare td { min-width: 150px; }
}
@media (max-width: 640px) {
    .scm-hide-sm { display: none; }
}
