:root {
  --ink: #1a2232;
  --ink-soft: #3e4b63;
  --paper: #fff9ef;
  --panel: rgba(255, 252, 247, 0.88);
  --line: rgba(12, 54, 74, 0.16);
  --brand: #0f7c90;
  --brand-deep: #0b4f69;
  --accent: #e56f2e;
  --good: #1f8f4e;
  --warn: #c16517;
  --bad: #b8332e;
  --shadow: 0 16px 35px rgba(11, 40, 61, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(160deg, #f3f7fb 0%, #fff8e6 48%, #fef2e7 100%);
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
}

html {
  scroll-behavior: smooth;
}

html,
body.login-screen {
  height: 100%;
}

body.login-screen {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: linear-gradient(rgba(15, 124, 144, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 124, 144, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(48px);
  z-index: -2;
  opacity: 0.72;
}

.orb-1 {
  width: 360px;
  height: 360px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(16, 165, 191, 0.42), rgba(16, 165, 191, 0));
}

.orb-2 {
  width: 430px;
  height: 430px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(229, 111, 46, 0.3), rgba(229, 111, 46, 0));
}

.page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 12px 0 28px;
  display: grid;
  gap: 16px;
}

.schedule-page .page {
  max-width: 1460px;
  margin: 0 auto;
  padding: 14px 10px 28px;
}

.login-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-page > .login-card {
  width: min(560px, calc(100vw - 32px));
  margin: 0;
  padding: 28px 28px 24px;
  border: 1px solid rgba(17, 68, 93, 0.16);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 253, 249, 0.88));
  box-shadow: 0 18px 40px rgba(9, 46, 68, 0.12);
  animation: none;
}

.login-badge {
  margin: 0 0 6px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f6f85;
  font-size: 11px;
  font-weight: 700;
}

.login-card h1 {
  margin-top: 0;
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.1;
}

.login-card .subtitle {
  margin-top: 10px;
}

.login-form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-form label {
  margin: 0;
  display: block;
  font-size: 13px;
  color: #2a4f6a;
  font-weight: 600;
}

.login-field input {
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(18, 73, 104, 0.22);
  background: rgba(255, 255, 255, 0.95);
  padding: 0 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-control {
  position: relative;
}

.password-control input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  width: 38px;
  height: 38px;
  padding: 0;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  color: #1e6178;
  background: transparent;
  cursor: pointer;
}

.password-toggle:hover {
  background: rgba(15, 124, 144, 0.1);
}

.password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 124, 144, 0.16);
}

.password-toggle svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle.is-visible {
  color: #0f7c90;
  background: rgba(15, 124, 144, 0.12);
}

.login-field input:focus {
  outline: none;
  border-color: rgba(15, 124, 144, 0.65);
  box-shadow: 0 0 0 3px rgba(15, 124, 144, 0.15);
}

.login-form .remember-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  font-size: 13px;
  color: #2d4f67;
  font-weight: 500;
  cursor: pointer;
}

.login-form .remember-row input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border: 1.5px solid rgba(17, 90, 119, 0.5);
  border-radius: 5px;
  background: #fff;
  position: relative;
  flex: 0 0 auto;
}

.login-form .remember-row input[type="checkbox"]:checked {
  border-color: #0f7c90;
  background: linear-gradient(135deg, #0f7c90, #16a7ab);
}

.login-form .remember-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.login-submit {
  margin-top: 2px;
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  font-size: 16px;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 20px rgba(13, 118, 139, 0.2);
}

.login-submit:hover {
  transform: translateY(-1px);
}

.login-submit:active {
  transform: translateY(0);
}

.admin-entry-screen .admin-entry-card {
  width: min(600px, calc(100vw - 32px));
}

.admin-entry-tip {
  margin: 14px 0 0;
  color: #4c6178;
  font-size: 12px;
}

.admin-entry-tip code {
  font-family: Consolas, "Courier New", monospace;
  color: #1a4a65;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.top-nav a {
  text-decoration: none;
  color: #1a3f58;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
}

.top-nav a:hover {
  background: rgba(15, 124, 144, 0.09);
}

.top-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #13a4a5 100%);
}

.module-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.module-nav a {
  text-decoration: none;
  color: #1a3f58;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
}

.module-nav a:hover {
  background: rgba(15, 124, 144, 0.09);
}

.module-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, #13a4a5 100%);
}

.schedule-page .schedule-stage-nav {
  gap: 6px;
  padding: 8px;
}

.schedule-page .schedule-stage-nav a {
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid transparent;
}

.schedule-page .schedule-stage-nav a:not(.active) {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 96, 125, 0.14);
}

.schedule-page .schedule-stage-nav a:not(.active):hover {
  border-color: rgba(15, 124, 144, 0.3);
}

.nav-spacer {
  flex: 1;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  color: #244a67;
  font-size: 12px;
  padding: 0 6px;
}

.hero,
.panel,
.kpi {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
  border-radius: 18px;
  backdrop-filter: blur(6px);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  align-items: center;
}

.hero-with-nav {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

.hero-with-nav .hero-main {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  width: 100%;
}

.top-nav.top-nav-inline {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.schedule-page .hero-with-nav {
  padding: 18px 22px;
  gap: 8px;
  position: relative;
}

.maintenance-page .hero-with-nav,
.traceability-page .hero-with-nav,
.design-page .hero-with-nav {
  padding: 18px 22px;
  gap: 8px;
  position: relative;
}

.schedule-page .hero-with-nav .hero-main {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  padding-right: 236px;
}

.maintenance-page .hero-with-nav .hero-main,
.traceability-page .hero-with-nav .hero-main,
.design-page .hero-with-nav .hero-main {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
  padding-right: 236px;
}

.schedule-page .hero-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.maintenance-page .hero-copy,
.traceability-page .hero-copy,
.design-page .hero-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.schedule-page .hero-controls {
  position: absolute;
  top: 18px;
  right: 22px;
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 0;
  width: fit-content;
}

.maintenance-page .hero-controls,
.traceability-page .hero-controls,
.design-page .hero-controls {
  position: absolute;
  top: 18px;
  right: 22px;
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 0;
  width: fit-content;
}

.schedule-page .top-nav.top-nav-inline {
  display: inline-flex;
  flex-wrap: nowrap;
  width: auto;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.maintenance-page .top-nav.top-nav-inline,
.traceability-page .top-nav.top-nav-inline,
.design-page .top-nav.top-nav-inline {
  display: inline-flex;
  flex-wrap: nowrap;
  width: auto;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.eyebrow {
  margin: 0;
  color: var(--brand-deep);
  letter-spacing: 0.08em;
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Kaiti SC", "Source Han Serif SC", serif;
}

h1 {
  margin-top: 6px;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.15;
}

h1 span {
  color: var(--brand);
}

.subtitle {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--brand) 0%, #13a4a5 100%);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  filter: brightness(1.03);
}

.btn-small {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.btn-light {
  background: linear-gradient(135deg, #f3e7cf 0%, #efdab8 100%);
  color: #554424;
}

.schedule-page .hero-actions .btn-home {
  border: 1px solid rgba(16, 102, 128, 0.22);
  background: linear-gradient(135deg, #f7fcff 0%, #e6f3fb 100%);
  color: #1c4f68;
}

.maintenance-page .hero-actions .btn-home,
.traceability-page .hero-actions .btn-home,
.design-page .hero-actions .btn-home {
  border: 1px solid rgba(16, 102, 128, 0.22);
  background: linear-gradient(135deg, #f7fcff 0%, #e6f3fb 100%);
  color: #1c4f68;
}

.schedule-page .hero-actions .btn,
.schedule-page .hero-actions .btn-home {
  min-width: 44px;
}

.maintenance-page .hero-actions .btn,
.maintenance-page .hero-actions .btn-home,
.traceability-page .hero-actions .btn,
.traceability-page .hero-actions .btn-home,
.design-page .hero-actions .btn,
.design-page .hero-actions .btn-home {
  min-width: 44px;
}

.schedule-page .hero-actions {
  justify-content: flex-end;
  width: 100%;
  margin-top: 4px;
}

.maintenance-page .hero-actions,
.traceability-page .hero-actions,
.design-page .hero-actions {
  justify-content: flex-end;
  width: 100%;
  margin-top: 4px;
}

.schedule-page .hero-actions .btn-icon {
  width: 44px;
  height: 40px;
  padding: 0;
}

.maintenance-page .hero-actions .btn-icon,
.traceability-page .hero-actions .btn-icon,
.design-page .hero-actions .btn-icon {
  width: 44px;
  height: 40px;
  padding: 0;
}

.schedule-page .hero-actions .btn-icon svg {
  width: 20px;
  height: 20px;
}

.maintenance-page .hero-actions .btn-icon svg,
.traceability-page .hero-actions .btn-icon svg,
.design-page .hero-actions .btn-icon svg {
  width: 20px;
  height: 20px;
}

.schedule-page #refreshBtn svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.05;
  transition: transform 0.2s ease;
}

.maintenance-page #refreshBtn svg,
.traceability-page #refreshBtn svg,
.design-page #refreshBtn svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.05;
  transition: transform 0.2s ease;
}

.schedule-page #refreshBtn:hover svg {
  transform: rotate(-18deg);
}

.maintenance-page #refreshBtn:hover svg,
.traceability-page #refreshBtn:hover svg,
.design-page #refreshBtn:hover svg {
  transform: rotate(-18deg);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
}

.kpi {
  padding: 14px;
  animation: rise 420ms ease both;
}

.kpi .label {
  color: var(--ink-soft);
  font-size: 13px;
}

.kpi .value {
  margin-top: 6px;
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-deep);
}

.kpi .hint {
  margin-top: 4px;
  font-size: 12px;
  color: #6a7488;
}

.panel-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;
}

.panel {
  padding: 16px;
  animation: rise 560ms ease both;
}

.panel h3 {
  margin: 12px 0 8px;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #0e5067;
  background: rgba(16, 141, 170, 0.15);
}

.tag-warn {
  color: #7c3f0f;
  background: rgba(229, 111, 46, 0.15);
}

.table-wrap {
  overflow: auto;
  max-width: 100%;
  min-width: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead th {
  text-align: left;
  color: #28465d;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

tbody td {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(18, 64, 91, 0.14);
}

.ok {
  color: var(--good);
  font-weight: 700;
}

.delay {
  color: var(--bad);
  font-weight: 700;
}

.mini-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.mini-form summary {
  cursor: pointer;
  font-weight: 700;
  color: #244a67;
}

.form-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

label {
  font-size: 12px;
  color: var(--ink-soft);
  display: grid;
  gap: 6px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(24, 74, 102, 0.25);
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 8px 9px;
  font: inherit;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.maintenance-page .maintenance-split {
  column-gap: 18px;
  row-gap: 18px;
  align-items: start;
}

.maintenance-page .maintenance-tab-page {
  display: none;
  gap: 16px;
}

.maintenance-page .maintenance-tab-page.is-active {
  display: grid;
}

.maintenance-page .maintenance-split > article {
  min-width: 0;
  border: 1px solid rgba(20, 73, 102, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  padding: 14px;
}

.maintenance-page .maintenance-split > article h2 {
  margin-bottom: 2px;
}

.maintenance-page #riskSummary {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 10px;
  overflow-x: auto;
}

.maintenance-page #riskSummary .risk-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(17, 74, 103, 0.22);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  color: #2b4d66;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.maintenance-page #riskSummary .risk-filter-chip strong {
  font-size: 20px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.maintenance-page #riskSummary .risk-filter-chip:hover {
  border-color: rgba(17, 116, 163, 0.42);
  background: rgba(244, 251, 255, 0.9);
}

.maintenance-page #riskSummary .risk-filter-chip:focus-visible {
  border-color: rgba(15, 124, 144, 0.5);
  box-shadow: 0 0 0 3px rgba(15, 124, 144, 0.14);
  outline: none;
}

.maintenance-page #riskSummary .risk-filter-chip.is-active {
  border-color: rgba(15, 124, 144, 0.45);
  box-shadow: 0 0 0 3px rgba(15, 124, 144, 0.12);
  background: rgba(240, 251, 255, 0.92);
}

.maintenance-page #riskSummary .risk-filter-chip.risk-high strong {
  color: #b8332e;
}

.maintenance-page #riskSummary .risk-filter-chip.risk-mid strong {
  color: #c16517;
}

.maintenance-page #riskSummary .risk-filter-chip.risk-low strong {
  color: #1f8f4e;
}

.maintenance-page #riskSummary .risk-filter-chip.risk-all strong {
  color: #1a4c67;
}

.risk-row strong {
  font-size: 20px;
}

.risk-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 10px;
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.device-card {
  border: 1px solid rgba(20, 73, 102, 0.15);
  border-radius: 12px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.75);
  position: relative;
  overflow: hidden;
}

.maintenance-page .device-card-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(17, 74, 103, 0.24);
  border-radius: 12px;
  padding: 18px 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #4e6478;
  font-size: 14px;
  text-align: center;
}

.device-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(15, 124, 144, 0.45);
}

.device-card.risk-high {
  border-color: rgba(184, 51, 46, 0.32);
  background: linear-gradient(160deg, rgba(255, 245, 244, 0.88), rgba(255, 255, 255, 0.84));
}

.device-card.risk-high::before {
  background: #b8332e;
}

.device-card.risk-mid {
  border-color: rgba(193, 101, 23, 0.28);
  background: linear-gradient(160deg, rgba(255, 250, 241, 0.9), rgba(255, 255, 255, 0.84));
}

.device-card.risk-mid::before {
  background: #c16517;
}

.device-card.risk-low {
  border-color: rgba(31, 143, 78, 0.28);
  background: linear-gradient(160deg, rgba(245, 255, 249, 0.9), rgba(255, 255, 255, 0.84));
}

.device-card.risk-low::before {
  background: #1f8f4e;
}

.device-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.device-card h4 {
  margin: 0;
  font-size: 16px;
}

.device-card p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.device-score {
  font-size: 16px;
}

.device-alert-text {
  line-height: 1.4;
}

.risk-high {
  color: var(--bad);
}

.risk-mid {
  color: var(--warn);
}

.risk-low {
  color: var(--good);
}

.risk-all {
  color: #1a4c67;
}

.alert-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: #41506a;
  font-size: 13px;
}

.maintenance-page .alert-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.maintenance-page .alert-item {
  border: 1px solid rgba(16, 78, 107, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr);
  align-items: start;
  column-gap: 8px;
  row-gap: 4px;
  font-size: 13px;
}

.maintenance-page .alert-item.risk-high {
  border-color: rgba(184, 51, 46, 0.28);
  background: rgba(255, 243, 243, 0.9);
}

.maintenance-page .alert-item.risk-mid {
  border-color: rgba(193, 101, 23, 0.28);
  background: rgba(255, 248, 238, 0.9);
}

.maintenance-page .alert-item.risk-low {
  border-color: rgba(31, 143, 78, 0.24);
  background: rgba(245, 255, 249, 0.92);
}

.maintenance-page .alert-device {
  font-weight: 700;
  color: #1f415a;
}

.maintenance-page .alert-line {
  color: #4b6378;
  font-size: 12px;
}

.maintenance-page .alert-detail {
  color: #3b556e;
  line-height: 1.45;
  word-break: break-word;
}

.maintenance-page .alert-empty {
  padding: 10px;
  color: #5d7286;
  border: 1px dashed rgba(15, 86, 118, 0.24);
  border-radius: 10px;
}

.maintenance-page .maintenance-advice-title {
  margin-top: 14px;
  margin-bottom: 8px;
}

.maintenance-page .maintenance-advice-level.advice-high {
  color: #7f1714;
  background: rgba(184, 51, 46, 0.16);
}

.maintenance-page .maintenance-advice-level.advice-mid {
  color: #7a420f;
  background: rgba(193, 101, 23, 0.16);
}

.maintenance-page .maintenance-advice-level.advice-low {
  color: #1f6f43;
  background: rgba(31, 143, 78, 0.14);
}

.maintenance-page .maintenance-advice {
  border: 1px solid rgba(15, 86, 118, 0.22);
  border-radius: 12px;
  background: rgba(248, 253, 255, 0.85);
  padding: 11px 12px;
}

.maintenance-page .maintenance-advice.advice-high {
  border-color: rgba(184, 51, 46, 0.32);
  background: rgba(255, 245, 244, 0.9);
}

.maintenance-page .maintenance-advice.advice-mid {
  border-color: rgba(193, 101, 23, 0.3);
  background: rgba(255, 249, 241, 0.9);
}

.maintenance-page .maintenance-advice.advice-low {
  border-color: rgba(31, 143, 78, 0.24);
  background: rgba(246, 255, 249, 0.92);
}

.maintenance-page .maintenance-advice-summary {
  margin: 0;
  font-size: 13px;
  color: #244b63;
  line-height: 1.45;
}

.maintenance-page .maintenance-advice-actions {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  color: #37516a;
  font-size: 13px;
}

.maintenance-page .maintenance-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.maintenance-page .maintenance-kpi-card {
  border: 1px solid rgba(17, 78, 108, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  padding: 11px 12px;
  display: grid;
  gap: 4px;
}

.maintenance-page .maintenance-kpi-card.tone-danger {
  border-color: rgba(184, 51, 46, 0.3);
  background: rgba(255, 245, 244, 0.88);
}

.maintenance-page .maintenance-kpi-card.tone-warn {
  border-color: rgba(193, 101, 23, 0.3);
  background: rgba(255, 249, 241, 0.9);
}

.maintenance-page .maintenance-kpi-card.tone-good {
  border-color: rgba(31, 143, 78, 0.26);
  background: rgba(245, 255, 249, 0.92);
}

.maintenance-page .maintenance-kpi-label {
  margin: 0;
  color: #466077;
  font-size: 12px;
}

.maintenance-page .maintenance-kpi-value {
  margin: 0;
  color: #123f57;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 700;
}

.maintenance-page .maintenance-kpi-hint {
  margin: 0;
  color: #63778c;
  font-size: 12px;
}

.maintenance-page .maintenance-enrichment-split {
  column-gap: 18px;
  row-gap: 18px;
  align-items: start;
}

.maintenance-page .maintenance-enrichment-split > article {
  min-width: 0;
  border: 1px solid rgba(20, 73, 102, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  padding: 14px;
}

.maintenance-page .maintenance-trend-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.maintenance-page .maintenance-trend-meta {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px dashed rgba(15, 86, 118, 0.22);
  border-radius: 10px;
  background: rgba(245, 252, 255, 0.7);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: #3f5a72;
}

.maintenance-page .maintenance-trend-chart {
  margin-top: 10px;
  display: block;
  width: 100%;
  min-height: 240px;
  border: 1px solid rgba(17, 76, 106, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248, 253, 255, 0.95), rgba(244, 250, 253, 0.9));
}

.maintenance-page .maintenance-trend-chart .trend-bg {
  fill: rgba(16, 123, 147, 0.03);
}

.maintenance-page .maintenance-trend-chart .trend-grid {
  stroke: rgba(20, 86, 118, 0.16);
  stroke-dasharray: 4 4;
}

.maintenance-page .maintenance-trend-chart .trend-label {
  fill: #4b647b;
  font-size: 11px;
}

.maintenance-page .maintenance-trend-chart .trend-area {
  fill: rgba(19, 164, 165, 0.18);
}

.maintenance-page .maintenance-trend-chart .trend-line {
  fill: none;
  stroke: #0f7c90;
  stroke-width: 3;
}

.maintenance-page .maintenance-trend-chart .trend-dot {
  fill: #fff;
  stroke: #0f7c90;
  stroke-width: 1.8;
}

.maintenance-page .maintenance-trend-axis {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.maintenance-page .maintenance-trend-axis span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #405971;
}

.maintenance-page .maintenance-trend-axis span.muted {
  opacity: 0;
}

.maintenance-page .maintenance-plan-wrap table {
  min-width: 700px;
}

.maintenance-page .maintenance-plan-empty {
  color: #5d7287;
  font-size: 13px;
  text-align: center;
  padding: 20px 8px;
}

.maintenance-page .priority-pill,
.maintenance-page .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}

.maintenance-page .priority-pill.is-p1 {
  color: #8b201d;
  background: rgba(184, 51, 46, 0.16);
}

.maintenance-page .priority-pill.is-p2 {
  color: #7a420f;
  background: rgba(193, 101, 23, 0.15);
}

.maintenance-page .priority-pill.is-p3 {
  color: #1e6c42;
  background: rgba(31, 143, 78, 0.14);
}

.maintenance-page .status-pill.is-pending {
  color: #2c4e67;
  background: rgba(18, 80, 109, 0.12);
}

.maintenance-page .status-pill.is-doing {
  color: #7a420f;
  background: rgba(193, 101, 23, 0.16);
}

.maintenance-page .status-pill.is-done {
  color: #1e6c42;
  background: rgba(31, 143, 78, 0.14);
}

.maintenance-page .status-pill.is-overdue {
  color: #8b201d;
  background: rgba(184, 51, 46, 0.16);
}

.maintenance-page .maintenance-workorder-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.maintenance-page .maintenance-workorder-column {
  border: 1px solid rgba(17, 76, 106, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.maintenance-page .maintenance-workorder-column h3 {
  margin: 0;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.maintenance-page .maintenance-col-todo {
  background: linear-gradient(165deg, rgba(244, 250, 255, 0.82), rgba(255, 255, 255, 0.82));
}

.maintenance-page .maintenance-col-doing {
  background: linear-gradient(165deg, rgba(255, 249, 241, 0.9), rgba(255, 255, 255, 0.84));
}

.maintenance-page .maintenance-col-done {
  background: linear-gradient(165deg, rgba(245, 255, 249, 0.92), rgba(255, 255, 255, 0.84));
}

.maintenance-page .maintenance-col-overdue {
  background: linear-gradient(165deg, rgba(255, 245, 244, 0.9), rgba(255, 255, 255, 0.84));
}

.maintenance-page .count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(14, 94, 124, 0.12);
  color: #1f4863;
  font-size: 12px;
}

.maintenance-page .maintenance-workorder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow: auto;
}

.maintenance-page .maintenance-workorder-card {
  border: 1px solid rgba(17, 76, 106, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 9px;
  display: grid;
  gap: 4px;
}

.maintenance-page .workorder-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.maintenance-page .workorder-head strong {
  color: #20455f;
  font-size: 12px;
}

.maintenance-page .workorder-title {
  margin: 0;
  color: #153d57;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.maintenance-page .workorder-meta {
  margin: 0;
  color: #4f657a;
  font-size: 12px;
}

.maintenance-page .maintenance-workorder-empty {
  border: 1px dashed rgba(15, 86, 118, 0.24);
  border-radius: 10px;
  padding: 12px 10px;
  color: #5d7286;
  font-size: 13px;
  text-align: center;
}

.trace-panel {
  display: grid;
  gap: 12px;
}

.traceability-page .trace-overview-panel {
  display: grid;
  gap: 12px;
}

.traceability-page .trace-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.traceability-page .trace-kpi-card {
  border: 1px solid rgba(17, 78, 108, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  padding: 11px 12px;
  display: grid;
  gap: 4px;
}

.traceability-page .trace-kpi-card.tone-danger {
  border-color: rgba(184, 51, 46, 0.3);
  background: rgba(255, 245, 244, 0.88);
}

.traceability-page .trace-kpi-card.tone-warn {
  border-color: rgba(193, 101, 23, 0.3);
  background: rgba(255, 249, 241, 0.9);
}

.traceability-page .trace-kpi-card.tone-good {
  border-color: rgba(31, 143, 78, 0.26);
  background: rgba(245, 255, 249, 0.92);
}

.traceability-page .trace-kpi-label {
  margin: 0;
  color: #466077;
  font-size: 12px;
}

.traceability-page .trace-kpi-value {
  margin: 0;
  color: #123f57;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 700;
}

.traceability-page .trace-kpi-hint {
  margin: 0;
  color: #63778c;
  font-size: 12px;
}

.traceability-page .trace-overview-bottom {
  margin-top: 2px;
  align-items: start;
}

.traceability-page .trace-mini-card {
  min-width: 0;
  border: 1px solid rgba(20, 73, 102, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
}

.traceability-page .trace-mini-card h3 {
  margin: 0;
}

.traceability-page .trace-status-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.traceability-page .trace-status-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #415a73;
}

.traceability-page .trace-status-row strong {
  color: #1f415a;
}

.traceability-page .trace-status-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(17, 83, 112, 0.12);
  overflow: hidden;
}

.traceability-page .trace-status-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(15, 124, 144, 0.9), rgba(19, 164, 165, 0.9));
}

.traceability-page .trace-status-row.tone-good .trace-status-bar i {
  background: linear-gradient(90deg, rgba(31, 143, 78, 0.9), rgba(48, 170, 95, 0.9));
}

.traceability-page .trace-status-row.tone-warn .trace-status-bar i {
  background: linear-gradient(90deg, rgba(193, 101, 23, 0.92), rgba(229, 129, 46, 0.92));
}

.traceability-page .trace-status-row.tone-danger .trace-status-bar i {
  background: linear-gradient(90deg, rgba(184, 51, 46, 0.92), rgba(216, 83, 72, 0.92));
}

.traceability-page .trace-status-footnote {
  margin-top: 2px;
  font-size: 12px;
  color: #597287;
}

.traceability-page .trace-recent-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.traceability-page .trace-recent-list li {
  border: 1px solid rgba(17, 75, 103, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  padding: 8px 9px;
  display: grid;
  gap: 4px;
}

.traceability-page .trace-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.traceability-page .trace-recent-head strong {
  color: #1f415a;
}

.traceability-page .trace-recent-list p {
  margin: 0;
  color: #4f6379;
  font-size: 12px;
}

.traceability-page .trace-recent-empty {
  color: #5d7286;
  border: 1px dashed rgba(15, 86, 118, 0.24);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.traceability-page .trace-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}

.traceability-page .trace-pill-pass {
  color: #1e6c42;
  background: rgba(31, 143, 78, 0.14);
}

.traceability-page .trace-pill-risk {
  color: #7a420f;
  background: rgba(193, 101, 23, 0.16);
}

.traceability-page .trace-pill-fail {
  color: #8b201d;
  background: rgba(184, 51, 46, 0.16);
}

.traceability-page .trace-device-panel .table-wrap {
  margin-top: 6px;
  border: 1px solid rgba(17, 70, 97, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.traceability-page .trace-device-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.traceability-page .trace-device-summary-card {
  border: 1px solid rgba(16, 77, 105, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  padding: 9px 10px;
  display: grid;
  gap: 4px;
}

.traceability-page .trace-device-summary-card p {
  margin: 0;
  color: #50667d;
  font-size: 12px;
}

.traceability-page .trace-device-summary-card strong {
  color: #173f5a;
  font-size: 20px;
  line-height: 1.1;
}

.traceability-page .trace-device-summary-card span {
  color: #668197;
  font-size: 11px;
}

.traceability-page .trace-device-panel thead th,
.traceability-page .trace-device-panel tbody td {
  padding: 10px 10px;
}

.traceability-page .trace-device-panel tbody tr:nth-child(even) {
  background: rgba(20, 124, 146, 0.04);
}

.traceability-page .trace-device-panel tbody tr:hover {
  background: rgba(16, 141, 170, 0.09);
}

.traceability-page .trace-suggestion-panel > article {
  min-width: 0;
  border: 1px solid rgba(20, 73, 102, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  padding: 16px;
}

.traceability-page .trace-suggestion-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #37516a;
  font-size: 13px;
}

.traceability-page .trace-suggestion-summary {
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.traceability-page .trace-suggestion-summary-item {
  border: 1px solid rgba(15, 79, 104, 0.14);
  border-radius: 10px;
  background: rgba(248, 252, 255, 0.82);
  padding: 8px 9px;
  display: grid;
  gap: 3px;
}

.traceability-page .trace-suggestion-summary-item span {
  color: #547087;
  font-size: 12px;
}

.traceability-page .trace-suggestion-summary-item strong {
  color: #183f59;
  font-size: 20px;
  line-height: 1;
}

.traceability-page .trace-suggestion-item {
  border: 1px solid rgba(16, 77, 105, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  padding: 9px 10px;
  display: grid;
  gap: 5px;
}

.traceability-page .trace-suggestion-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.traceability-page .trace-suggestion-item-head strong {
  color: #1d445d;
}

.traceability-page .trace-suggestion-item p {
  margin: 0;
  color: #3f5a71;
}

.traceability-page .trace-suggestion-item .trace-suggestion-meta {
  color: #617b90;
  font-size: 12px;
}

.traceability-page .trace-priority-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.traceability-page .trace-priority-chip.level-high {
  color: #7f1613;
  background: rgba(184, 51, 46, 0.16);
}

.traceability-page .trace-priority-chip.level-medium {
  color: #7f4a18;
  background: rgba(193, 101, 23, 0.16);
}

.traceability-page .trace-priority-chip.level-low {
  color: #1f6f43;
  background: rgba(31, 143, 78, 0.14);
}

.traceability-page .trace-benchmark {
  display: grid;
  gap: 2px;
}

.trace-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.trace-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  font-size: 13px;
  color: #3a4d65;
}

.trace-meta-item {
  border: 1px solid rgba(17, 73, 101, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  padding: 8px 10px;
  display: grid;
  gap: 3px;
}

.trace-meta-item span {
  color: #5a7288;
  font-size: 12px;
}

.trace-meta-item strong {
  color: #1f425b;
  font-size: 14px;
  line-height: 1.3;
}

.traceability-page .trace-highlight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.traceability-page .trace-highlight-card {
  border: 1px solid rgba(15, 80, 106, 0.14);
  border-radius: 10px;
  background: rgba(247, 252, 255, 0.8);
  padding: 8px 9px;
  display: grid;
  gap: 4px;
}

.traceability-page .trace-highlight-label {
  margin: 0;
  color: #587186;
  font-size: 12px;
}

.traceability-page .trace-highlight-value {
  margin: 0;
  color: #163f58;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
}

.traceability-page .trace-highlight-hint {
  margin: 0;
  color: #668095;
  font-size: 11px;
}

.trace-item {
  border-left: 3px solid var(--brand);
  padding: 8px 0 8px 12px;
  margin-bottom: 6px;
  background: rgba(16, 124, 144, 0.05);
  border-radius: 8px;
}

.trace-item strong {
  display: block;
  font-size: 13px;
  color: #1f4159;
}

.trace-item span {
  color: #4e5f75;
  font-size: 12px;
}

.trace-item .trace-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.trace-item .trace-stage-hint {
  color: #6a8397;
  font-size: 11px;
}

.trace-item .trace-item-detail {
  margin: 4px 0 0;
  color: #3c566d;
  font-size: 12px;
  line-height: 1.5;
}

.trace-item.trace-item-good {
  border-left-color: rgba(31, 143, 78, 0.88);
  background: rgba(245, 255, 249, 0.86);
}

.trace-item.trace-item-warn {
  border-left-color: rgba(193, 101, 23, 0.85);
  background: rgba(255, 249, 241, 0.9);
}

.trace-item.trace-item-info {
  border-left-color: rgba(16, 124, 144, 0.85);
}

.traceability-page .trace-risk-suggestion-grid {
  margin-top: 2px;
}

.risk-strip {
  background: linear-gradient(90deg, rgba(229, 111, 46, 0.15), rgba(184, 51, 46, 0.12));
  border: 1px solid rgba(165, 70, 38, 0.2);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  color: #6e3a18;
}

.suggestion-strip {
  background: linear-gradient(90deg, rgba(16, 141, 170, 0.12), rgba(11, 79, 105, 0.1));
  border: 1px solid rgba(15, 109, 134, 0.24);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  color: #124d63;
}

.risk-strip strong,
.suggestion-strip strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.risk-strip p,
.suggestion-strip p {
  margin: 0;
  line-height: 1.45;
}

.traceability-page .trace-risk-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.traceability-page .trace-risk-item {
  border: 1px solid rgba(15, 79, 104, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  padding: 8px 9px;
  display: grid;
  gap: 5px;
}

.traceability-page .trace-risk-item.level-high {
  border-color: rgba(184, 51, 46, 0.28);
  background: rgba(255, 245, 244, 0.9);
}

.traceability-page .trace-risk-item.level-medium {
  border-color: rgba(193, 101, 23, 0.26);
  background: rgba(255, 250, 242, 0.92);
}

.traceability-page .trace-risk-item.level-low {
  border-color: rgba(31, 143, 78, 0.22);
  background: rgba(245, 255, 249, 0.92);
}

.traceability-page .trace-risk-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.traceability-page .trace-risk-type {
  color: #2f4f67;
  font-size: 12px;
  font-weight: 700;
}

.traceability-page .trace-risk-level {
  font-size: 11px;
  color: #546f84;
}

.traceability-page .trace-risk-title {
  margin: 0;
  color: #1e435c;
  font-size: 13px;
  line-height: 1.35;
}

.traceability-page .trace-risk-detail {
  margin: 0;
  color: #5f778d;
  font-size: 12px;
  line-height: 1.45;
}

.traceability-page .trace-risk-empty {
  border: 1px dashed rgba(16, 80, 104, 0.22);
  border-radius: 10px;
  background: rgba(248, 252, 255, 0.82);
  color: #557085;
  padding: 10px;
  text-align: center;
}

.traceability-page .trace-quality-impact {
  margin-top: 12px;
  border: 1px solid rgba(15, 81, 107, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  padding: 11px 12px;
  display: grid;
  gap: 9px;
}

.traceability-page .trace-quality-impact-head {
  display: grid;
  gap: 4px;
}

.traceability-page .trace-quality-impact-head strong {
  color: #173f59;
  font-size: 14px;
}

.traceability-page .trace-quality-impact-head span {
  color: #5f798e;
  font-size: 12px;
}

.traceability-page .trace-quality-impact-head.level-high strong {
  color: #8c201c;
}

.traceability-page .trace-quality-impact-head.level-medium strong {
  color: #82501a;
}

.traceability-page .trace-quality-impact-head.level-low strong {
  color: #1f6f43;
}

.traceability-page .trace-quality-impact-list {
  margin: 0;
  padding-left: 18px;
  color: #405a71;
  display: grid;
  gap: 6px;
}

.traceability-page .trace-quality-impact-empty {
  margin: 0;
  color: #587186;
  font-size: 13px;
}

.assumption-list {
  margin: 10px 0 0;
  color: #40506a;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.module-card {
  border: 1px solid rgba(20, 73, 102, 0.15);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  padding: 14px;
}

.module-card h3 {
  margin: 0;
}

.module-card p {
  color: #4e5f75;
  font-size: 13px;
}

.hub-page .page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 16px 24px;
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-rows: auto 1fr;
}

.hub-page .hub-modules-panel {
  width: min(1100px, 100%);
  margin: 0 auto;
  align-self: center;
  padding: 18px;
}

.hub-page .hub-module-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.hub-page .hub-module-card {
  --card-bg: linear-gradient(145deg, rgba(250, 255, 255, 0.96), rgba(243, 251, 255, 0.9));
  --card-accent: #0f7c90;
  --card-ink: #173f57;
  --card-muted: #456075;
  --card-icon-bg: rgba(15, 124, 144, 0.16);
  --card-font: "Source Han Serif SC", "Noto Serif SC", "Songti SC", serif;
  display: grid;
  gap: 10px;
  align-content: start;
  text-decoration: none;
  color: inherit;
  min-height: 176px;
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border-color: color-mix(in srgb, var(--card-accent) 26%, rgba(20, 73, 102, 0.2));
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.hub-page .hub-module-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--card-accent), transparent 70%);
}

.hub-page .hub-module-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--card-accent) 45%, rgba(20, 73, 102, 0.18));
  box-shadow: 0 18px 32px rgba(11, 40, 61, 0.12);
}

.hub-page .hub-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hub-page .hub-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--card-icon-bg);
  color: var(--card-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--card-accent) 24%, transparent);
}

.hub-page .hub-card-icon svg {
  width: 16px;
  height: 16px;
}

.hub-page .hub-module-card h3 {
  margin: 0;
  color: var(--card-ink);
  font-family: var(--card-font);
  font-size: clamp(20px, 1.35vw, 24px);
  line-height: 1.14;
}

.hub-page .hub-module-card p {
  margin: 0;
  color: var(--card-muted);
  font-family: var(--card-font);
  font-size: 14px;
  line-height: 1.45;
}

.hub-page .module-schedule {
  --card-bg: linear-gradient(140deg, rgba(236, 250, 255, 0.95), rgba(242, 255, 251, 0.9));
  --card-accent: #0f7c90;
  --card-ink: #11445b;
  --card-muted: #3a5c6f;
  --card-icon-bg: rgba(15, 124, 144, 0.16);
  --card-font: "STKaiti", "KaiTi", "Kaiti SC", "Source Han Serif SC", serif;
}

.hub-page .module-maintenance {
  --card-bg: linear-gradient(140deg, rgba(245, 248, 255, 0.95), rgba(239, 245, 255, 0.9));
  --card-accent: #375f9a;
  --card-ink: #1b3f70;
  --card-muted: #476080;
  --card-icon-bg: rgba(55, 95, 154, 0.15);
  --card-font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.hub-page .module-traceability {
  --card-bg: linear-gradient(140deg, rgba(244, 255, 248, 0.96), rgba(239, 252, 245, 0.9));
  --card-accent: #2c8b52;
  --card-ink: #1d5d39;
  --card-muted: #3f6a4f;
  --card-icon-bg: rgba(44, 139, 82, 0.16);
  --card-font: "STSong", "SimSun", "Noto Serif SC", serif;
}

.hub-page .module-design {
  --card-bg: linear-gradient(145deg, rgba(255, 247, 240, 0.96), rgba(255, 240, 229, 0.9));
  --card-accent: #b35a1f;
  --card-ink: #6b3412;
  --card-muted: #845339;
  --card-icon-bg: rgba(179, 90, 31, 0.16);
  --card-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.hub-page .module-cockpit {
  --card-bg: linear-gradient(145deg, rgba(246, 242, 255, 0.96), rgba(238, 233, 252, 0.9));
  --card-accent: #6649a8;
  --card-ink: #3f2f78;
  --card-muted: #59488c;
  --card-icon-bg: rgba(102, 73, 168, 0.16);
  --card-font: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.hub-page .hub-span-3 {
  grid-column: span 3;
}

.hub-page .hub-span-2 {
  grid-column: span 2;
}

.split-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.schedule-page .schedule-split {
  column-gap: 18px;
  row-gap: 18px;
  align-items: start;
}

.schedule-page .schedule-split.schedule-split-vertical {
  grid-template-columns: 1fr;
}

@media (min-width: 1180px) {
  .schedule-page .schedule-split {
    grid-template-columns: 0.95fr 1.25fr;
  }

  .schedule-page .schedule-split.schedule-split-vertical {
    grid-template-columns: 1fr;
  }
}

.schedule-page .table-wrap table {
  min-width: 760px;
}

.schedule-page .table-wrap th,
.schedule-page .table-wrap td {
  white-space: nowrap;
}

.schedule-page .schedule-split > article {
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(20, 73, 102, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  padding: 14px;
}

.schedule-page .schedule-split > article h2 {
  margin-bottom: 8px;
}

.schedule-page .schedule-split > article h3 {
  margin-top: 14px;
}

.schedule-page .schedule-split .table-wrap {
  margin-top: 8px;
}

.schedule-page .schedule-stack {
  display: grid;
  gap: 14px;
}

.schedule-page .schedule-block {
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(20, 73, 102, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  padding: 14px;
}

.schedule-page .schedule-block h2 {
  margin-bottom: 8px;
}

.schedule-page .schedule-block h3 {
  margin-top: 14px;
}

.schedule-page .master-viewer {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.schedule-page .master-viewer > .panel-title-row h3 {
  margin-top: 0;
}

.schedule-page .master-entity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.schedule-page .master-entity-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(17, 74, 103, 0.2);
  border-radius: 999px;
  background: rgba(247, 252, 255, 0.9);
  color: #1f4761;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}

.schedule-page .master-entity-chip strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(17, 74, 103, 0.12);
  color: #17435f;
  font-size: 12px;
  font-weight: 800;
  padding: 0 6px;
}

.schedule-page .master-entity-chip.is-active {
  border-color: rgba(15, 124, 144, 0.52);
  background: rgba(16, 141, 170, 0.14);
  color: #0d5f74;
  box-shadow: 0 0 0 1px rgba(10, 133, 162, 0.22), 0 6px 14px rgba(7, 87, 110, 0.12);
}

.schedule-page .master-entity-chip.is-active strong {
  background: rgba(15, 124, 144, 0.18);
  color: #0c5568;
}

.schedule-page .master-entity-chip.master-entity-group {
  border-style: dashed;
  background: rgba(236, 248, 255, 0.9);
}

.schedule-page .master-entity-chip.master-entity-group.is-active {
  border-style: solid;
  border-color: rgba(6, 133, 161, 0.72);
  background: linear-gradient(180deg, rgba(226, 247, 255, 0.95) 0%, rgba(202, 237, 250, 0.95) 100%);
  color: #0b6076;
  box-shadow: 0 0 0 2px rgba(12, 148, 181, 0.22), 0 8px 18px rgba(8, 96, 121, 0.14);
}

.schedule-page .master-entity-chip.master-entity-group.is-active strong {
  background: rgba(8, 133, 163, 0.2);
  color: #0a5770;
}

.schedule-page .master-entity-chip .master-entity-group-action {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #497089;
  border-left: 1px solid rgba(17, 74, 103, 0.18);
  padding-left: 8px;
}

.schedule-page .master-entity-chip.master-entity-group.is-expanded .master-entity-group-action {
  color: #0d5f74;
}

.schedule-page .master-entity-chip.master-entity-group.is-active .master-entity-group-action {
  color: #0b6076;
  border-left-color: rgba(9, 122, 150, 0.35);
}

.schedule-page .master-entity-subchips {
  flex: 1 0 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  padding-left: 8px;
}

.schedule-page .master-entity-chip.master-entity-subchip {
  font-size: 12px;
  padding: 5px 10px;
  background: rgba(250, 253, 255, 0.95);
}

.schedule-page .master-view-toolbar {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
}

.schedule-page .master-view-entity-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #29465f;
  white-space: nowrap;
}

.schedule-page .master-view-entity-select select {
  min-width: 240px;
  min-height: 40px;
}

.schedule-page .master-view-toolbar input[type="search"] {
  width: 100%;
  min-width: 0;
  min-height: 40px;
}

.schedule-page .master-viewer.is-calendar-group-view #masterViewToolbar {
  display: none !important;
}

.schedule-page .resource-filter-bar {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: end;
}

.schedule-page .resource-filter-bar[hidden] {
  display: none !important;
}

.schedule-page .resource-filter-bar label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: #31546c;
}

.schedule-page .resource-filter-bar select {
  min-height: 36px;
}

.schedule-page .resource-filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.schedule-page .resource-filter-actions .btn {
  min-height: 36px;
  white-space: nowrap;
}

.schedule-page .master-view-table-wrap {
  margin-top: 8px;
  max-height: 420px;
  border: 1px solid rgba(17, 74, 103, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  scrollbar-gutter: stable both-edges;
}

.schedule-page .master-view-table-wrap.is-calendar-group-view {
  max-height: none;
  overflow-y: visible;
}

.schedule-page .master-calendar-group-container {
  margin-top: 8px;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.schedule-page .master-calendar-group-sections {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.schedule-page .master-calendar-group-section {
  border: 1px solid rgba(17, 74, 103, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.schedule-page .master-calendar-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.schedule-page .master-calendar-group-head h4 {
  margin: 0;
  font-size: 14px;
  color: #1f4761;
}

.schedule-page .master-calendar-group-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.schedule-page .master-calendar-export-btn {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
}

.schedule-page .master-calendar-group-table-wrap {
  border: 1px solid rgba(17, 74, 103, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
}

.schedule-page .master-calendar-group-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}

.schedule-page .master-calendar-group-table thead th {
  position: static;
  top: auto;
  background: rgba(246, 252, 255, 0.98);
  padding: 10px 12px;
  border-right: 1px solid rgba(18, 64, 91, 0.1);
  white-space: nowrap;
}

.schedule-page .master-calendar-group-table tbody td {
  padding: 9px 12px;
  border-right: 1px dashed rgba(18, 64, 91, 0.1);
  white-space: nowrap;
  line-height: 1.45;
  vertical-align: top;
  color: #28465d;
}

.schedule-page .master-calendar-group-table th:last-child,
.schedule-page .master-calendar-group-table td:last-child {
  border-right: none;
}

.schedule-page .master-calendar-group-table th:first-child,
.schedule-page .master-calendar-group-table td:first-child {
  position: static;
  left: auto;
  background: transparent;
  min-width: 120px;
  font-weight: 700;
}

.schedule-page .master-calendar-group-table td.is-long {
  min-width: 280px;
  max-width: 560px;
  white-space: normal;
  word-break: break-word;
}

.schedule-page .master-calendar-group-table .master-col-name {
  min-width: 120px;
}

.schedule-page .master-calendar-group-table .master-col-workdays {
  min-width: 110px;
}

.schedule-page .master-calendar-group-table .master-col-segments {
  min-width: 260px;
  max-width: 420px;
}

.schedule-page .master-calendar-group-table .master-col-day-segments {
  min-width: 360px;
  max-width: 640px;
}

.schedule-page .master-calendar-group-table .master-col-status,
.schedule-page .master-calendar-group-table .master-col-is-cross-day,
.schedule-page .master-calendar-group-table .master-col-cross-day,
.schedule-page .master-calendar-group-table .master-col-is-break,
.schedule-page .master-calendar-group-table .master-col-sequence,
.schedule-page .master-calendar-group-table .master-col-block-scheduling,
.schedule-page .master-calendar-group-table .master-col-qa-lock,
.schedule-page .master-calendar-group-table .master-col-hygiene-lock {
  min-width: 86px;
  text-align: center;
}

.schedule-page .master-calendar-group-table .master-col-default-capacity-factor,
.schedule-page .master-calendar-group-table .master-col-capacity-factor,
.schedule-page .master-calendar-group-table .master-col-default-hours {
  min-width: 110px;
  text-align: right;
}

.schedule-page .master-calendar-group-table .master-col-effective-start-date,
.schedule-page .master-calendar-group-table .master-col-effective-end-date,
.schedule-page .master-calendar-group-table .master-col-date,
.schedule-page .master-calendar-group-table .master-col-start-time,
.schedule-page .master-calendar-group-table .master-col-end-time {
  min-width: 110px;
  white-space: nowrap;
}

.schedule-page .master-calendar-group-table .master-col-resource-id,
.schedule-page .master-calendar-group-table .master-col-template-id,
.schedule-page .master-calendar-group-table .master-col-scope-value {
  min-width: 150px;
}

.schedule-page .master-calendar-group-table .master-col-scope-type,
.schedule-page .master-calendar-group-table .master-col-exception-type {
  min-width: 120px;
}

.schedule-page .master-calendar-group-table .master-col-notes,
.schedule-page .master-calendar-group-table .master-col-reason {
  min-width: 220px;
  max-width: 420px;
  white-space: normal;
  word-break: break-word;
}

.schedule-page .master-calendar-group-table tbody tr:nth-child(even) {
  background: rgba(16, 92, 125, 0.04);
}

.schedule-page .master-calendar-group-table tbody tr:hover {
  background: rgba(16, 141, 170, 0.08);
}

.schedule-page .master-calendar-group-empty {
  color: #627f92;
  text-align: center;
}

.schedule-page .master-view-table-wrap table {
  min-width: 1220px;
  table-layout: auto;
}

.schedule-page .master-view-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(246, 252, 255, 0.96);
  padding: 10px 12px;
  border-right: 1px solid rgba(18, 64, 91, 0.1);
  white-space: nowrap;
}

.schedule-page .master-th-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.schedule-page .master-th-label {
  display: inline-block;
}

.schedule-page .master-th-filter-box {
  position: relative;
  display: inline-flex;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(32, 97, 129, 0.45);
  border-radius: 4px;
  align-items: center;
  justify-content: center;
  color: #336887;
  background: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  line-height: 1;
}

.schedule-page .master-th-filter-box.is-active {
  border-color: rgba(6, 143, 180, 0.8);
  background: rgba(11, 151, 190, 0.14);
  color: #0c5b75;
}

.schedule-page .master-th-filter-icon {
  pointer-events: none;
}

.schedule-page .master-th-filter-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.schedule-page .master-view-table-wrap tbody td {
  padding: 9px 12px;
  line-height: 1.45;
  vertical-align: top;
  border-right: 1px dashed rgba(18, 64, 91, 0.1);
  white-space: nowrap;
  color: #28465d;
}

.schedule-page .master-view-table-wrap th:last-child,
.schedule-page .master-view-table-wrap td:last-child {
  border-right: none;
}

.schedule-page .master-view-table-wrap th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
}

.schedule-page .master-view-table-wrap td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: rgba(251, 255, 255, 0.96);
}

.schedule-page .master-view-table-wrap tbody tr:nth-child(even) td:first-child {
  background: rgba(242, 250, 254, 0.98);
}

.schedule-page .master-view-table-wrap .master-col-id {
  min-width: 96px;
  font-weight: 700;
}

.schedule-page .master-view-table-wrap .master-col-name {
  min-width: 180px;
}

.schedule-page .master-view-table-wrap .master-col-line-id {
  min-width: 92px;
}

.schedule-page .master-view-table-wrap .master-col-workshop {
  min-width: 110px;
}

.schedule-page .master-view-table-wrap .master-col-calendar-id {
  min-width: 110px;
}

.schedule-page .master-view-table-wrap .master-col-workdays {
  min-width: 110px;
}

.schedule-page .master-view-table-wrap .master-col-segments {
  min-width: 260px;
  max-width: 420px;
}

.schedule-page .master-view-table-wrap .master-col-day-segments {
  min-width: 360px;
  max-width: 640px;
}

.schedule-page .master-view-table-wrap .master-col-is-cross-day,
.schedule-page .master-view-table-wrap .master-col-cross-day,
.schedule-page .master-view-table-wrap .master-col-default-capacity-factor,
.schedule-page .master-view-table-wrap .master-col-default-hours,
.schedule-page .master-view-table-wrap .master-col-capacity-factor,
.schedule-page .master-view-table-wrap .master-col-sequence,
.schedule-page .master-view-table-wrap .master-col-status {
  min-width: 92px;
  text-align: center;
}

.schedule-page .master-view-table-wrap .master-col-effective-start-date,
.schedule-page .master-view-table-wrap .master-col-effective-end-date,
.schedule-page .master-view-table-wrap .master-col-date,
.schedule-page .master-view-table-wrap .master-col-start-time,
.schedule-page .master-view-table-wrap .master-col-end-time {
  min-width: 110px;
}

.schedule-page .master-view-table-wrap .master-col-resource-type,
.schedule-page .master-view-table-wrap .master-col-current-status,
.schedule-page .master-view-table-wrap .master-col-lifecycle-status {
  min-width: 92px;
  text-align: center;
}

.schedule-page .master-view-table-wrap .master-col-capacity-unit {
  min-width: 90px;
}

.schedule-page .master-view-table-wrap .master-col-standard-capacity {
  min-width: 95px;
  text-align: right;
}

.schedule-page .master-view-table-wrap .master-col-speed-factor,
.schedule-page .master-view-table-wrap .master-col-changeover-hours {
  min-width: 95px;
  text-align: right;
}

.schedule-page .master-view-table-wrap .master-col-process-stage,
.schedule-page .master-view-table-wrap .master-col-clearance-status,
.schedule-page .master-view-table-wrap .master-col-cleaning-status,
.schedule-page .master-view-table-wrap .master-col-frozen {
  min-width: 88px;
  text-align: center;
}

.schedule-page .master-view-table-wrap .master-col-capabilities,
.schedule-page .master-view-table-wrap td.is-long {
  min-width: 320px;
  max-width: 540px;
  white-space: normal;
  word-break: break-word;
  line-height: 1.5;
}

.schedule-page .master-view-table-wrap tbody tr:nth-child(even) {
  background: rgba(16, 92, 125, 0.04);
}

.schedule-page .master-view-table-wrap tbody tr:hover {
  background: rgba(16, 141, 170, 0.08);
}

.schedule-page .master-view-table-wrap tbody tr.is-selected {
  background: rgba(16, 141, 170, 0.14);
}

.schedule-page .master-view-table-wrap tbody tr[data-resource-id] {
  cursor: pointer;
}

.schedule-page .resource-detail-panel {
  margin-top: 12px;
  border: 1px solid rgba(17, 74, 103, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.84);
  padding: 12px;
}

.schedule-page .resource-detail-panel h4 {
  margin: 0;
  font-size: 15px;
  color: #1c4661;
}

.schedule-page .resource-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.schedule-page .resource-detail-tab {
  border: 1px solid rgba(17, 74, 103, 0.2);
  border-radius: 999px;
  background: rgba(247, 252, 255, 0.9);
  color: #1f4761;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}

.schedule-page .resource-detail-tab.is-active {
  border-color: rgba(15, 124, 144, 0.52);
  background: rgba(16, 141, 170, 0.14);
  color: #0d5f74;
}

.schedule-page .resource-detail-body {
  margin-top: 10px;
}

.schedule-page .resource-detail-form {
  display: grid;
  gap: 10px;
}

.schedule-page .resource-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.schedule-page .resource-detail-item {
  border: 1px solid rgba(17, 74, 103, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  padding: 8px 10px;
}

.schedule-page .resource-detail-label {
  font-size: 13px;
  font-weight: 700;
  color: #244f6b;
  line-height: 1.3;
}

.schedule-page .resource-detail-editor {
  margin-top: 4px;
}

.schedule-page .resource-detail-editor input[type="text"],
.schedule-page .resource-detail-editor input[type="number"],
.schedule-page .resource-detail-editor input[type="date"],
.schedule-page .resource-detail-editor input[type="datetime-local"],
.schedule-page .resource-detail-editor select {
  width: 100%;
  min-height: 34px;
  font-size: 13px;
  color: #1f3e55;
  border-color: rgba(17, 74, 103, 0.3);
  background: #ffffff;
}

.schedule-page .resource-detail-editor input::placeholder {
  color: #5f7486;
  opacity: 1;
}

.schedule-page .resource-detail-editor .resource-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 34px;
  border: 1px solid rgba(17, 74, 103, 0.16);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  user-select: none;
}

.schedule-page .resource-detail-editor .resource-switch input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.schedule-page .resource-detail-editor .resource-switch .resource-switch-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #3f5e73;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  transition: background-color 120ms ease, color 120ms ease;
}

.schedule-page .resource-detail-editor .resource-switch .option-no {
  border-right: 1px solid rgba(17, 74, 103, 0.12);
}

.schedule-page .resource-detail-editor .resource-switch.is-off .option-no,
.schedule-page .resource-detail-editor .resource-switch.is-on .option-yes {
  background: rgba(15, 142, 168, 0.18);
  color: #0b5e78;
}

.schedule-page .resource-detail-editor .resource-switch.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.schedule-page .resource-detail-editor .resource-multiselect {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 8px;
}

.schedule-page .resource-detail-editor .resource-multiselect-trigger {
  align-self: start;
  min-width: 96px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(17, 74, 103, 0.2);
  background: rgba(227, 245, 249, 0.9);
  color: #1f4c67;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.schedule-page .resource-detail-editor .resource-multiselect-preview {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid rgba(17, 74, 103, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  color: #234b63;
  line-height: 1.4;
  display: block;
  max-height: 88px;
  overflow: auto;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.schedule-page .resource-detail-editor .resource-multiselect-preview.is-empty {
  color: #7e96a8;
  font-style: italic;
}

.schedule-page .resource-detail-editor .resource-multiselect.is-disabled {
  opacity: 0.62;
}

@media (max-width: 700px) {
  .schedule-page .resource-detail-editor .resource-multiselect {
    grid-template-columns: 1fr;
  }
}

.schedule-page .resource-multi-dialog {
  padding: 0;
  border: none;
  background: transparent;
}

.schedule-page .resource-multi-dialog::backdrop {
  background: rgba(8, 27, 39, 0.36);
}

.schedule-page .resource-multi-dialog-card {
  width: min(620px, calc(100vw - 32px));
  max-height: min(80vh, 680px);
  border: 1px solid rgba(17, 74, 103, 0.2);
  border-radius: 14px;
  background: #f8fcff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.schedule-page .resource-multi-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.schedule-page .resource-multi-dialog-head h5 {
  margin: 0;
  font-size: 15px;
  color: #12384f;
}

.schedule-page .resource-multi-dialog-actions {
  display: flex;
  gap: 8px;
}

.schedule-page .resource-multi-dialog-composer {
  border: 1px solid rgba(17, 74, 103, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  display: grid;
  gap: 8px;
}

.schedule-page .resource-multi-composer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.schedule-page .resource-multi-composer-grid label {
  display: grid;
  gap: 4px;
  color: #2a4f67;
  font-size: 12px;
}

.schedule-page .resource-multi-composer-row {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) auto minmax(84px, 1fr) auto;
  align-items: center;
  gap: 6px;
}

.schedule-page .resource-multi-composer-row.is-pressure,
.schedule-page .resource-multi-composer-row.is-custom {
  grid-template-columns: 1fr auto;
}

.schedule-page .resource-multi-composer-row input {
  min-height: 30px;
  font-size: 12px;
}

.schedule-page .resource-multi-composer-row em {
  color: #6a8699;
  font-style: normal;
}

.schedule-page .resource-multi-composer-hint {
  font-size: 12px;
  color: #6a8699;
}

.schedule-page .resource-multi-dialog-options {
  border: 1px solid rgba(17, 74, 103, 0.14);
  border-radius: 10px;
  background: #ffffff;
  padding: 8px;
  overflow: auto;
  display: grid;
  gap: 6px;
}

.schedule-page .resource-multi-dialog-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 2px 6px;
  border-radius: 6px;
  color: #234b63;
}

.schedule-page .resource-multi-dialog-option:hover {
  background: rgba(15, 142, 168, 0.1);
}

.schedule-page .resource-multi-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.schedule-page .resource-detail-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.schedule-page .resource-detail-empty {
  color: #5f788b;
  font-size: 13px;
}

.schedule-page .schedule-split-equal {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.schedule-page .schedule-search {
  width: min(360px, 100%);
  min-height: 38px;
}

.schedule-orders-page .schedule-search {
  width: min(460px, 100%);
}

.schedule-orders-page .panel-title-row {
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 10px;
}

.schedule-orders-page #orderStats {
  margin: 2px 0 12px;
}

.schedule-page.schedule-orders-page .schedule-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.schedule-orders-page .order-pool-table-wrap {
  margin-top: 4px;
  max-height: 470px;
  border: 1px solid rgba(17, 74, 103, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.schedule-orders-page .order-pool-table {
  min-width: 1240px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.schedule-orders-page .order-pool-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(246, 252, 255, 0.97);
  padding: 11px 10px;
  white-space: nowrap;
  border-bottom: 1px solid rgba(17, 74, 103, 0.16);
}

.schedule-orders-page .order-pool-table tbody td {
  padding: 11px 10px;
  vertical-align: middle;
  border-bottom: 1px dashed rgba(18, 64, 91, 0.14);
}

.schedule-orders-page .order-pool-table tbody tr:nth-child(even) {
  background: rgba(17, 88, 118, 0.04);
}

.schedule-orders-page .order-pool-table tbody tr:hover {
  background: rgba(16, 141, 170, 0.08);
}

.schedule-orders-page .order-pool-table th:nth-child(1),
.schedule-orders-page .order-pool-table td:nth-child(1) {
  width: 148px;
}

.schedule-orders-page .order-pool-table th:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 6;
  background: rgba(246, 252, 255, 0.99);
  text-align: center;
}

.schedule-orders-page .order-pool-table td:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 3;
  background: rgba(250, 254, 255, 0.96);
  font-weight: 700;
  color: #20455f;
}

.schedule-orders-page .order-pool-table th:nth-child(2),
.schedule-orders-page .order-pool-table td:nth-child(2) {
  width: 182px;
}

.schedule-orders-page .order-pool-table th:nth-child(2) {
  text-align: center;
}

.schedule-orders-page .order-pool-table td:nth-child(2) {
  text-align: center;
}

.schedule-orders-page .order-pool-table th:nth-child(3),
.schedule-orders-page .order-pool-table td:nth-child(3) {
  width: 124px;
  text-align: center;
}

.schedule-orders-page .order-pool-table th:nth-child(4),
.schedule-orders-page .order-pool-table td:nth-child(4) {
  width: 96px;
  text-align: right;
}

.schedule-orders-page .order-pool-table th:nth-child(5),
.schedule-orders-page .order-pool-table td:nth-child(5) {
  width: 82px;
  text-align: center;
}

.schedule-orders-page .order-pool-table th:nth-child(6),
.schedule-orders-page .order-pool-table td:nth-child(6) {
  width: 118px;
  text-align: center;
}

.schedule-orders-page .order-pool-table th:nth-child(7),
.schedule-orders-page .order-pool-table td:nth-child(7) {
  width: 140px;
  text-align: center;
}

.schedule-orders-page .order-pool-table th:nth-child(8),
.schedule-orders-page .order-pool-table td:nth-child(8) {
  width: 112px;
  text-align: center;
}

.schedule-orders-page .order-pool-table th:nth-child(9),
.schedule-orders-page .order-pool-table td:nth-child(9) {
  width: 248px;
  text-align: center;
}

.schedule-orders-page .order-pool-table th:nth-child(10),
.schedule-orders-page .order-pool-table td:nth-child(10) {
  width: 94px;
  position: sticky;
  right: 0;
}

.schedule-orders-page .order-pool-table th:nth-child(10) {
  z-index: 7;
  background: rgba(246, 252, 255, 0.99);
  text-align: center;
}

.schedule-orders-page .order-pool-table td:nth-child(10) {
  z-index: 4;
  background: rgba(250, 254, 255, 0.96);
  text-align: center;
}

.schedule-orders-page .order-pool-table tbody tr:nth-child(even) td:nth-child(1),
.schedule-orders-page .order-pool-table tbody tr:nth-child(even) td:nth-child(10) {
  background: rgba(244, 251, 254, 0.98);
}

.schedule-orders-page .order-pool-table tbody tr:hover td:nth-child(1),
.schedule-orders-page .order-pool-table tbody tr:hover td:nth-child(10) {
  background: rgba(232, 247, 252, 0.99);
}

.schedule-orders-page .order-col-product,
.schedule-orders-page .order-col-candidates {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-orders-page .order-product-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  justify-items: center;
}

.schedule-orders-page .order-product-main {
  display: block;
  font-weight: 600;
  color: #1d425d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.schedule-orders-page .order-product-sub {
  display: block;
  font-size: 11px;
  color: #60798e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.schedule-orders-page .order-num {
  font-weight: 700;
  color: #24435d;
}

.schedule-orders-page .order-family-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(15, 124, 144, 0.12);
  color: #1b4b66;
  font-size: 12px;
}

.schedule-orders-page .order-lock-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 76px;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  box-shadow: none;
}

.schedule-orders-page .order-lock-pill.is-free {
  color: #1a5674;
  background: rgba(17, 116, 163, 0.11);
  border-color: rgba(17, 116, 163, 0.35);
}

.schedule-orders-page .order-lock-pill.is-locked {
  color: #8a4f18;
  background: rgba(229, 111, 46, 0.16);
  border-color: rgba(193, 101, 23, 0.36);
}

.schedule-orders-page .order-col-release {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.schedule-orders-page .order-release-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}

.schedule-orders-page .order-release-pill.is-pass {
  color: #236947;
  background: rgba(31, 143, 78, 0.12);
  border-color: rgba(31, 143, 78, 0.24);
}

.schedule-orders-page .order-release-pill.is-pending {
  color: #87511d;
  background: rgba(229, 111, 46, 0.14);
  border-color: rgba(193, 101, 23, 0.24);
}

.schedule-orders-page .order-release-pill.is-hold {
  color: #8d2f2a;
  background: rgba(184, 51, 46, 0.12);
  border-color: rgba(184, 51, 46, 0.24);
}

.schedule-orders-page .order-col-action .btn {
  min-width: 56px;
}

.schedule-orders-page .order-empty-row td {
  text-align: center;
  color: #5a7387;
  padding: 16px 10px;
}

.schedule-orders-page .order-edit-dialog {
  padding: 0;
  border: none;
  background: transparent;
}

.schedule-orders-page .order-edit-dialog::backdrop {
  background: rgba(8, 27, 39, 0.42);
}

.schedule-orders-page .order-edit-card {
  width: min(980px, calc(100vw - 28px));
  max-height: min(88vh, 860px);
  overflow: auto;
  border: 1px solid rgba(17, 74, 103, 0.22);
  border-radius: 14px;
  background: #f8fcff;
  box-shadow: 0 20px 45px rgba(9, 46, 68, 0.22);
  padding: 12px;
  display: grid;
  gap: 12px;
}

.schedule-orders-page .order-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: sticky;
  top: -12px;
  z-index: 2;
  margin: -12px -12px 0;
  padding: 12px;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(245, 251, 255, 0.94));
  border-bottom: 1px solid rgba(17, 74, 103, 0.14);
}

.schedule-orders-page .order-edit-head h3 {
  margin: 0;
  font-size: 18px;
  color: #153f57;
}

.schedule-orders-page .order-edit-body {
  display: grid;
  gap: 10px;
}

.schedule-orders-page .order-edit-grid {
  margin-top: 0;
}

.schedule-orders-page .order-edit-card input[readonly] {
  background: rgba(232, 244, 252, 0.86);
  color: #36556f;
}

.schedule-orders-page .order-edit-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(17, 74, 103, 0.14);
}

.schedule-page .schedule-inline-title {
  margin: 0;
  color: #1f4460;
  font-size: 13px;
  font-weight: 700;
}

.schedule-page .decision-board {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.schedule-page .decision-form,
.schedule-page .lock-form,
.schedule-page .rebuild-form {
  border: 1px solid rgba(17, 74, 103, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.schedule-page .decision-form .form-row,
.schedule-page .lock-form .form-row,
.schedule-page .rebuild-form .form-row {
  margin-top: 0;
}

.schedule-page .decision-form label,
.schedule-page .lock-form label,
.schedule-page .rebuild-form label {
  color: #2e4f68;
}

.schedule-orders-page .order-date {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px;
  gap: 8px;
  align-items: center;
}

.schedule-orders-page .order-date-input {
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(29, 92, 122, 0.24);
  padding: 6px 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: #173f5c;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.schedule-orders-page .order-date-input:hover {
  border-color: rgba(29, 92, 122, 0.38);
  background: #fff;
}

.schedule-orders-page .order-date-input:focus {
  border-color: rgba(14, 124, 144, 0.6);
  box-shadow: 0 0 0 3px rgba(15, 124, 144, 0.14);
  outline: none;
}

.schedule-orders-page .order-date-input::placeholder {
  color: #7490a5;
}

.schedule-orders-page .order-date-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.schedule-orders-page .order-date-btn {
  width: 56px;
  min-width: 56px;
  height: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(29, 92, 122, 0.28);
  background: linear-gradient(180deg, rgba(238, 248, 252, 0.95), rgba(226, 241, 248, 0.92));
  color: #1c607e;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.schedule-orders-page .order-date-btn:hover {
  border-color: rgba(14, 124, 144, 0.62);
  color: #0f6f8a;
  background: linear-gradient(180deg, rgba(224, 244, 250, 0.98), rgba(208, 236, 246, 0.95));
}

.schedule-orders-page .order-date-btn:focus-visible {
  border-color: rgba(14, 124, 144, 0.65);
  box-shadow: 0 0 0 3px rgba(15, 124, 144, 0.16);
  outline: none;
}

.schedule-orders-page .order-date-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schedule-page .rebuild-form .rebuild-options-row {
  grid-template-columns: minmax(320px, 520px) auto;
  align-items: end;
  column-gap: 12px;
}

.schedule-page .rebuild-form .reason-field {
  width: 100%;
  justify-self: start;
}

.schedule-page .rebuild-form .checkbox-field {
  color: #2e4f68;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: end;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(17, 74, 103, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.schedule-page .rebuild-form .checkbox-field .field-title {
  color: #6b8093;
  white-space: nowrap;
}

.schedule-page .rebuild-form .checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  margin: 0;
  color: #2e4f68;
  font-size: 13px;
}

.schedule-page .rebuild-form .checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  accent-color: #0f7c90;
}

.schedule-page #rebuildSummary {
  margin-top: 4px;
  line-height: 1.6;
}

.schedule-page #rebuildImpactBody td,
.schedule-page #rebuildChangesBody td {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-page .constraint-toolbar {
  margin-top: 0;
  gap: 8px;
}

.schedule-page .constraint-toolbar label {
  padding: 6px 10px;
  border: 1px solid rgba(18, 77, 106, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #2a4b65;
  font-size: 12px;
  cursor: pointer;
}

.schedule-page .constraint-toolbar label input[type="checkbox"] {
  accent-color: #0f7c90;
}

.schedule-page .decision-actions {
  margin-top: 0;
}

.schedule-page .compare-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: end;
  gap: 10px;
  margin-top: 4px;
}

.schedule-page .compare-toolbar select {
  min-height: 40px;
  border-radius: 10px;
}

.schedule-page .compare-toolbar .btn {
  min-height: 40px;
  min-width: 96px;
}

.schedule-page .compare-slots {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-page .compare-slot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(18, 77, 106, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 5px 10px;
}

.schedule-page .compare-slot-name {
  font-size: 12px;
  color: #1f4560;
}

.schedule-page .compare-slot-remove {
  border: none;
  background: rgba(184, 51, 46, 0.12);
  color: #a0302b;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  cursor: pointer;
}

.schedule-page .lock-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.schedule-page .lock-toolbar > input {
  min-width: 0;
}

.schedule-page .schedule-board {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.schedule-page .schedule-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.schedule-page .schedule-summary-card {
  border: 1px solid rgba(17, 74, 103, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.schedule-page .schedule-summary-card .label {
  color: #2f4f67;
  font-size: 13px;
  font-weight: 600;
}

.schedule-page .schedule-summary-card .value {
  color: #183d56;
  font-size: 22px;
  line-height: 1.1;
}

.schedule-page .schedule-summary-card.summary-good {
  border-color: rgba(31, 143, 78, 0.28);
  background: rgba(245, 255, 249, 0.9);
}

.schedule-page .schedule-summary-card.summary-warn {
  border-color: rgba(193, 101, 23, 0.26);
  background: rgba(255, 249, 241, 0.9);
}

.schedule-page .schedule-summary-card.summary-bad {
  border-color: rgba(184, 51, 46, 0.3);
  background: rgba(255, 244, 244, 0.9);
}

.schedule-page .precheck-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.schedule-page .precheck-toolbar-row {
  margin-bottom: 10px;
  align-items: flex-end;
  gap: 10px;
}

.schedule-page .precheck-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.schedule-page .precheck-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #36556c;
  white-space: nowrap;
}

.schedule-page .precheck-filter-label {
  display: inline-block;
  white-space: nowrap;
}

.schedule-page #precheckExportBtn {
  white-space: nowrap;
}

.schedule-page .precheck-filter select {
  min-width: 160px;
  height: 32px;
  padding: 4px 10px;
}

.schedule-page .precheck-issue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.schedule-page .precheck-issue-card {
  border: 1px solid rgba(17, 74, 103, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.schedule-page .precheck-issue-card.is-hit {
  border-color: rgba(193, 101, 23, 0.3);
  background: rgba(255, 249, 241, 0.92);
}

.schedule-page .precheck-issue-title {
  color: #1f425a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.schedule-page .precheck-issue-value {
  color: #123a52;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
}

.schedule-page .precheck-issue-hint {
  color: #2f4f66;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
}

.schedule-page .precheck-detail-wrap {
  border: 1px solid rgba(17, 74, 103, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  max-height: 620px;
  min-width: 0;
}

.schedule-page .precheck-detail-wrap table {
  width: 100%;
  table-layout: fixed;
}

.schedule-page .precheck-detail-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(246, 252, 255, 0.96);
  padding: 10px 8px;
}

.schedule-page .precheck-detail-wrap thead th:nth-child(1) {
  text-align: left;
  padding-left: 10px;
}

.schedule-page .precheck-detail-wrap thead th:nth-child(2),
.schedule-page .precheck-detail-wrap thead th:nth-child(3) {
  text-align: left;
}

.schedule-page .precheck-detail-wrap thead th:nth-child(4),
.schedule-page .precheck-detail-wrap thead th:nth-child(5),
.schedule-page .precheck-detail-wrap thead th:nth-child(6),
.schedule-page .precheck-detail-wrap thead th:nth-child(7) {
  text-align: center;
}

.schedule-page .precheck-detail-wrap th:nth-child(1) { width: 11%; }
.schedule-page .precheck-detail-wrap th:nth-child(2) { width: 12%; }
.schedule-page .precheck-detail-wrap th:nth-child(3) { width: 7%; }
.schedule-page .precheck-detail-wrap th:nth-child(4),
.schedule-page .precheck-detail-wrap th:nth-child(5),
.schedule-page .precheck-detail-wrap th:nth-child(6),
.schedule-page .precheck-detail-wrap th:nth-child(7) { width: 7%; }
.schedule-page .precheck-detail-wrap th:nth-child(8),
.schedule-page .precheck-detail-wrap th:nth-child(9) { width: 21%; }

.schedule-page .precheck-detail-wrap td {
  white-space: normal;
  line-height: 1.4;
  vertical-align: top;
  word-break: break-word;
  padding: 10px 8px;
}

.schedule-page .precheck-detail-wrap tbody td:nth-child(-n+7) {
  vertical-align: middle;
}

.schedule-page .precheck-detail-wrap tbody td:nth-child(1),
.schedule-page .precheck-detail-wrap tbody td:nth-child(2),
.schedule-page .precheck-detail-wrap tbody td:nth-child(3) {
  text-align: left;
}

.schedule-page .precheck-detail-wrap tbody td:nth-child(4),
.schedule-page .precheck-detail-wrap tbody td:nth-child(5),
.schedule-page .precheck-detail-wrap tbody td:nth-child(6),
.schedule-page .precheck-detail-wrap tbody td:nth-child(7) {
  text-align: center;
}

.schedule-page .precheck-detail-wrap td:nth-child(1) {
  padding-left: 10px;
}

.schedule-page .precheck-detail-wrap th:nth-child(8),
.schedule-page .precheck-detail-wrap td:nth-child(8) {
  border-left: 1px solid rgba(17, 74, 103, 0.14);
  background: rgba(250, 253, 255, 0.7);
  padding-left: 12px;
  padding-right: 12px;
}

.schedule-page .precheck-detail-wrap th:nth-child(9),
.schedule-page .precheck-detail-wrap td:nth-child(9) {
  background: rgba(248, 252, 248, 0.72);
  border-left: 1px solid rgba(17, 74, 103, 0.1);
  padding-left: 12px;
  padding-right: 12px;
}

.schedule-page .precheck-detail-wrap tbody tr:nth-child(even) {
  background: rgba(17, 88, 118, 0.04);
}

.schedule-page .precheck-detail-wrap tbody tr:hover {
  background: rgba(16, 141, 170, 0.08);
}

.schedule-page .precheck-gate-pill,
.schedule-page .precheck-level-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 2px 10px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.schedule-page .precheck-gate-pill.is-pass,
.schedule-page .precheck-level-pill.is-pass {
  color: #206846;
  background: rgba(31, 143, 78, 0.12);
  border-color: rgba(31, 143, 78, 0.25);
}

.schedule-page .precheck-gate-pill.is-fail,
.schedule-page .precheck-level-pill.is-blocking {
  color: #8d2f2a;
  background: rgba(184, 51, 46, 0.12);
  border-color: rgba(184, 51, 46, 0.25);
}

.schedule-page .precheck-level-pill.is-warning {
  color: #7f4a18;
  background: rgba(229, 111, 46, 0.14);
  border-color: rgba(193, 101, 23, 0.26);
}

.schedule-page .precheck-level-pill.is-notice {
  color: #1d5a79;
  background: rgba(17, 116, 163, 0.11);
  border-color: rgba(17, 116, 163, 0.25);
}

.schedule-page .precheck-issue-cell,
.schedule-page .precheck-suggest-cell {
  max-width: 100%;
  color: #2c465a;
  font-size: 13px;
  word-break: break-word;
}

.schedule-page .precheck-detail-box {
  max-height: 108px;
  overflow: auto;
  padding-right: 6px;
}

.schedule-page .precheck-detail-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.schedule-page .precheck-detail-list li {
  line-height: 1.55;
}

.schedule-page .precheck-detail-list li + li {
  border-top: 1px dashed rgba(17, 74, 103, 0.14);
  padding-top: 4px;
}

.schedule-page .precheck-detail-list.is-issue li::marker {
  color: #8d2f2a;
}

.schedule-page .precheck-detail-list.is-suggest li::marker {
  color: #1f6f4a;
}

.schedule-page .precheck-empty-text {
  color: #6b8295;
  font-size: 12px;
}

.schedule-page .precheck-detail-wrap .order-empty-row {
  text-align: center;
  color: #5a7387;
  padding: 14px 10px;
}

.schedule-page .schedule-board .board-section {
  border: 1px solid rgba(17, 74, 103, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  padding: 10px 12px 12px;
  min-width: 0;
  max-width: 100%;
}

.schedule-page .schedule-board .board-section .panel-title-row {
  margin-bottom: 2px;
}

.schedule-page .schedule-table-wrap,
.schedule-page .line-loads-wrap {
  border: 1px solid rgba(17, 74, 103, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.schedule-page .schedule-table-wrap {
  max-height: calc(42px + 20 * 40px);
}

.schedule-page .line-loads-wrap {
  max-height: none;
  overflow: visible;
}

.schedule-page .schedule-table-wrap table {
  min-width: 860px;
  table-layout: fixed;
}

.schedule-page .line-loads-wrap table {
  min-width: 620px;
  table-layout: fixed;
}

.schedule-page .schedule-table-wrap thead th,
.schedule-page .line-loads-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(246, 252, 255, 0.96);
  padding: 10px 12px;
}

.schedule-page .schedule-table-wrap tbody td,
.schedule-page .line-loads-wrap tbody td {
  padding: 10px 12px;
}

.schedule-page .schedule-detail-table col.col-order {
  width: 16%;
}

.schedule-page .schedule-detail-table col.col-stage {
  width: 10%;
}

.schedule-page .schedule-detail-table col.col-resource {
  width: 18%;
}

.schedule-page .schedule-detail-table col.col-start,
.schedule-page .schedule-detail-table col.col-end {
  width: 16%;
}

.schedule-page .schedule-detail-table col.col-changeover,
.schedule-page .schedule-detail-table col.col-delay {
  width: 8%;
}

.schedule-page .schedule-detail-table col.col-ontime {
  width: 8%;
}

.schedule-page .line-loads-table col.col-resource {
  width: 34%;
}

.schedule-page .line-loads-table col.col-hours,
.schedule-page .line-loads-table col.col-load,
.schedule-page .line-loads-table col.col-count {
  width: 22%;
}

.schedule-page .schedule-detail-table th:nth-child(6),
.schedule-page .schedule-detail-table th:nth-child(7),
.schedule-page .schedule-detail-table th:nth-child(8),
.schedule-page .schedule-detail-table td:nth-child(6),
.schedule-page .schedule-detail-table td:nth-child(7),
.schedule-page .schedule-detail-table td:nth-child(8),
.schedule-page .line-loads-table th:nth-child(2),
.schedule-page .line-loads-table th:nth-child(3),
.schedule-page .line-loads-table th:nth-child(4),
.schedule-page .line-loads-table td:nth-child(2),
.schedule-page .line-loads-table td:nth-child(3),
.schedule-page .line-loads-table td:nth-child(4) {
  text-align: center;
}

.schedule-page .line-loads-table thead th[data-sort-key] {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 24px;
}

.schedule-page .line-loads-table thead th[data-sort-key]::after {
  content: "↕";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #8aa0b2;
}

.schedule-page .line-loads-table thead th[data-sort-key].is-sorted-asc::after {
  content: "↑";
  color: #1a7f98;
}

.schedule-page .line-loads-table thead th[data-sort-key].is-sorted-desc::after {
  content: "↓";
  color: #1a7f98;
}

.schedule-page .schedule-detail-table td:nth-child(1),
.schedule-page .schedule-detail-table td:nth-child(3),
.schedule-page .line-loads-table td:nth-child(1) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-page .schedule-table-wrap tbody tr:nth-child(even),
.schedule-page .line-loads-wrap tbody tr:nth-child(even) {
  background: rgba(16, 92, 125, 0.04);
}

.schedule-page .schedule-table-wrap tbody tr:hover,
.schedule-page .line-loads-wrap tbody tr:hover {
  background: rgba(16, 141, 170, 0.08);
}

.schedule-page .table-num {
  font-weight: 700;
  color: #22435d;
}

.schedule-page .table-num.metric-warn {
  color: #a85a17;
}

.schedule-page .table-num.metric-bad {
  color: #b8332e;
}

.schedule-page .load-rate {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
  font-size: 12px;
}

.schedule-page .load-rate.load-ok {
  color: #1f8f4e;
  background: rgba(31, 143, 78, 0.12);
}

.schedule-page .load-rate.load-warm {
  color: #9a5718;
  background: rgba(229, 111, 46, 0.16);
}

.schedule-page .load-rate.load-hot {
  color: #8d2f2a;
  background: rgba(184, 51, 46, 0.14);
}

.schedule-page .schedule-alert-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.schedule-page .schedule-alert-item {
  border: 1px solid rgba(193, 101, 23, 0.24);
  border-radius: 10px;
  background: rgba(255, 249, 241, 0.88);
  padding: 8px 10px;
  display: grid;
  gap: 3px;
}

.schedule-page .schedule-alert-item strong {
  color: #6c3913;
  font-size: 13px;
}

.schedule-page .schedule-alert-item span {
  color: #5a6478;
  font-size: 12px;
}

.schedule-page .schedule-alert-empty {
  border: 1px dashed rgba(31, 143, 78, 0.3);
  border-radius: 10px;
  background: rgba(245, 255, 249, 0.9);
  color: #2f6b45;
  padding: 10px;
}

.schedule-page .dispatch-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 6px;
}

.schedule-page .release-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #2c4f69;
}

.schedule-page .release-field select {
  min-height: 40px;
  border-radius: 10px;
}

.schedule-page .dispatch-toolbar .btn {
  min-width: 128px;
  min-height: 40px;
}

.schedule-page .dispatch-filter-toolbar {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(120px, 0.8fr) minmax(160px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.schedule-page .dispatch-filter-toolbar label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #2c4f69;
}

.schedule-page .dispatch-filter-toolbar input,
.schedule-page .dispatch-filter-toolbar select {
  min-height: 38px;
  border-radius: 10px;
}

.schedule-page .dispatch-filter-toolbar .dispatch-time-field {
  border: 1px solid rgba(17, 74, 103, 0.16);
  border-radius: 10px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(247, 252, 255, 0.8), rgba(255, 255, 255, 0.95));
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.schedule-page .dispatch-filter-toolbar .dispatch-time-field:focus-within {
  border-color: rgba(14, 124, 144, 0.45);
  box-shadow: 0 0 0 3px rgba(15, 124, 144, 0.12);
  background: #fff;
}

.schedule-page .lock-form .dispatch-time-field {
  border: 1px solid rgba(17, 74, 103, 0.16);
  border-radius: 10px;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(247, 252, 255, 0.8), rgba(255, 255, 255, 0.95));
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.schedule-page .lock-form .dispatch-time-field:focus-within {
  border-color: rgba(14, 124, 144, 0.45);
  box-shadow: 0 0 0 3px rgba(15, 124, 144, 0.12);
  background: #fff;
}

.schedule-page .dispatch-filter-toolbar .dispatch-datetime {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
}

.schedule-page .lock-form .dispatch-datetime {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
}

.schedule-page .dispatch-filter-toolbar .dispatch-datetime-input {
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(29, 92, 122, 0.24);
  padding: 6px 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.015em;
  color: #173f5c;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.schedule-page .lock-form .dispatch-datetime-input {
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(29, 92, 122, 0.24);
  padding: 6px 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.015em;
  color: #173f5c;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.schedule-page .dispatch-filter-toolbar .dispatch-datetime-input:hover {
  border-color: rgba(29, 92, 122, 0.38);
  background: #fff;
}

.schedule-page .lock-form .dispatch-datetime-input:hover {
  border-color: rgba(29, 92, 122, 0.38);
  background: #fff;
}

.schedule-page .dispatch-filter-toolbar .dispatch-datetime-input:focus {
  border-color: rgba(14, 124, 144, 0.6);
  box-shadow: 0 0 0 3px rgba(15, 124, 144, 0.14);
  outline: none;
}

.schedule-page .lock-form .dispatch-datetime-input:focus {
  border-color: rgba(14, 124, 144, 0.6);
  box-shadow: 0 0 0 3px rgba(15, 124, 144, 0.14);
  outline: none;
}

.schedule-page .dispatch-filter-toolbar .dispatch-datetime-input::placeholder {
  color: #7490a5;
  letter-spacing: 0.01em;
}

.schedule-page .lock-form .dispatch-datetime-input::placeholder {
  color: #7490a5;
  letter-spacing: 0.01em;
}

.schedule-page .dispatch-filter-toolbar .dispatch-datetime-input:invalid {
  color: #5f7890;
}

.schedule-page .lock-form .dispatch-datetime-input:invalid {
  color: #5f7890;
}

.schedule-page .dispatch-filter-toolbar .dispatch-datetime-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.schedule-page .lock-form .dispatch-datetime-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.schedule-page .dispatch-filter-toolbar .dispatch-datetime-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(29, 92, 122, 0.28);
  background: linear-gradient(180deg, rgba(238, 248, 252, 0.95), rgba(226, 241, 248, 0.92));
  color: #1c607e;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.schedule-page .lock-form .dispatch-datetime-btn {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(29, 92, 122, 0.28);
  background: linear-gradient(180deg, rgba(238, 248, 252, 0.95), rgba(226, 241, 248, 0.92));
  color: #1c607e;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.schedule-page .dispatch-filter-toolbar .dispatch-datetime-btn:hover {
  border-color: rgba(14, 124, 144, 0.62);
  color: #0f6f8a;
  background: linear-gradient(180deg, rgba(224, 244, 250, 0.98), rgba(208, 236, 246, 0.95));
}

.schedule-page .lock-form .dispatch-datetime-btn:hover {
  border-color: rgba(14, 124, 144, 0.62);
  color: #0f6f8a;
  background: linear-gradient(180deg, rgba(224, 244, 250, 0.98), rgba(208, 236, 246, 0.95));
}

.schedule-page .dispatch-filter-toolbar .dispatch-datetime-btn:focus-visible {
  border-color: rgba(14, 124, 144, 0.65);
  box-shadow: 0 0 0 3px rgba(15, 124, 144, 0.16);
  outline: none;
}

.schedule-page .lock-form .dispatch-datetime-btn:focus-visible {
  border-color: rgba(14, 124, 144, 0.65);
  box-shadow: 0 0 0 3px rgba(15, 124, 144, 0.16);
  outline: none;
}

.schedule-page .dispatch-filter-toolbar .dispatch-datetime-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schedule-page .lock-form .dispatch-datetime-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.schedule-page .dispatch-filter-toolbar .btn {
  min-height: 38px;
  min-width: 88px;
}

.schedule-page .dispatch-table-title {
  margin-top: 12px;
  margin-bottom: 2px;
}

.schedule-page .dispatch-table-wrap {
  margin-top: 8px;
  max-height: 420px;
  border: 1px solid rgba(17, 74, 103, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.schedule-page .dispatch-table-wrap table {
  min-width: 860px;
}

.schedule-page .dispatch-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(247, 252, 255, 0.96);
  padding: 10px 0;
}

.schedule-page .dispatch-table-wrap tbody tr:nth-child(even) {
  background: rgba(17, 88, 118, 0.04);
}

.schedule-page .dispatch-table-wrap tbody tr:hover {
  background: rgba(16, 141, 170, 0.08);
}

.schedule-page .dispatch-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
}

.schedule-page .dispatch-status.status-created {
  color: #2a5874;
  background: rgba(19, 92, 125, 0.13);
}

.schedule-page .dispatch-status.status-released {
  color: #0e6d77;
  background: rgba(19, 164, 165, 0.17);
}

.schedule-page .dispatch-status.status-progress {
  color: #1b7b4a;
  background: rgba(31, 143, 78, 0.14);
}

.schedule-page .dispatch-status.status-paused {
  color: #87510f;
  background: rgba(229, 111, 46, 0.16);
}

.schedule-page .dispatch-status.status-completed {
  color: #1f8f4e;
  background: rgba(31, 143, 78, 0.12);
}

.schedule-page .dispatch-status.status-canceled,
.schedule-page .dispatch-status.status-unknown {
  color: #7a3a35;
  background: rgba(184, 51, 46, 0.14);
}

.schedule-page .exception-table-title {
  margin-top: 14px;
  margin-bottom: 2px;
}

.schedule-page .exception-table-wrap {
  margin-top: 8px;
  max-height: 420px;
  border: 1px solid rgba(17, 74, 103, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.schedule-page .exception-table {
  min-width: 980px;
  table-layout: fixed;
}

.schedule-page .exception-table col.col-id {
  width: 280px;
}

.schedule-page .exception-table col.col-type {
  width: 140px;
}

.schedule-page .exception-table col.col-severity {
  width: 92px;
}

.schedule-page .exception-table col.col-status {
  width: 102px;
}

.schedule-page .exception-table col.col-action {
  width: 94px;
}

.schedule-page .exception-table-wrap th,
.schedule-page .exception-table-wrap td {
  white-space: normal;
}

.schedule-page .exception-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(247, 252, 255, 0.96);
  padding: 10px 12px;
}

.schedule-page .exception-table tbody td {
  padding: 10px 12px;
  vertical-align: top;
}

.schedule-page .exception-table .exception-col-id {
  white-space: nowrap;
  color: #2f4c63;
  font-variant-numeric: tabular-nums;
}

.schedule-page .exception-table .exception-col-type,
.schedule-page .exception-table .exception-col-severity,
.schedule-page .exception-table .exception-col-status,
.schedule-page .exception-table .exception-col-action {
  white-space: nowrap;
}

.schedule-page .exception-table .exception-col-severity,
.schedule-page .exception-table .exception-col-status,
.schedule-page .exception-table .exception-col-action {
  text-align: center;
}

.schedule-page .exception-table .exception-th-id,
.schedule-page .exception-table .exception-th-type,
.schedule-page .exception-table .exception-th-desc,
.schedule-page .exception-table .exception-col-id,
.schedule-page .exception-table .exception-col-type,
.schedule-page .exception-table .exception-col-desc {
  text-align: left;
}

.schedule-page .exception-table .exception-th-severity,
.schedule-page .exception-table .exception-th-status,
.schedule-page .exception-table .exception-th-action,
.schedule-page .exception-table .exception-col-severity,
.schedule-page .exception-table .exception-col-status,
.schedule-page .exception-table .exception-col-action {
  text-align: center;
}

.schedule-page .exception-table .exception-col-desc {
  line-height: 1.55;
  color: #35516a;
  word-break: break-word;
}

.schedule-page .exception-table .close-exception-btn {
  min-width: 62px;
  border-radius: 999px;
  padding: 5px 10px;
}

.schedule-page .exception-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
}

.schedule-page .exception-badge.is-open {
  color: #8c4a1d;
  background: rgba(229, 111, 46, 0.14);
}

.schedule-page .exception-badge.is-progress {
  color: #11597a;
  background: rgba(16, 141, 170, 0.14);
}

.schedule-page .exception-badge.is-closed {
  color: #1f8f4e;
  background: rgba(31, 143, 78, 0.14);
}

.schedule-page .exception-badge.level-low {
  color: #1f8f4e;
  background: rgba(31, 143, 78, 0.12);
}

.schedule-page .exception-badge.level-medium {
  color: #a0641d;
  background: rgba(193, 101, 23, 0.15);
}

.schedule-page .exception-badge.level-high {
  color: #b8332e;
  background: rgba(184, 51, 46, 0.16);
}

.schedule-page .exception-action-done {
  color: #1f8f4e;
  font-weight: 700;
  font-size: 12px;
}

.schedule-page #kpiBoard {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.schedule-page .support-kpi-card {
  border: 1px solid rgba(17, 74, 103, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px;
  display: grid;
  gap: 5px;
  min-height: 92px;
  min-width: 0;
}

.schedule-page .support-kpi-card .label {
  color: #3e5a73;
  font-size: 12px;
}

.schedule-page .support-kpi-card .value {
  color: #183d56;
  font-size: 20px;
  line-height: 1.15;
}

.schedule-page .support-kpi-card .hint {
  color: #5a6c81;
  font-size: 11px;
}

.schedule-page .support-kpi-card.tone-good {
  border-color: rgba(31, 143, 78, 0.3);
  background: rgba(245, 255, 249, 0.92);
}

.schedule-page .support-kpi-card.tone-good .value {
  color: #1f8f4e;
}

.schedule-page .support-kpi-card.tone-warn {
  border-color: rgba(193, 101, 23, 0.28);
  background: rgba(255, 249, 241, 0.92);
}

.schedule-page .support-kpi-card.tone-warn .value {
  color: #9a5718;
}

.schedule-page .support-kpi-card.tone-bad {
  border-color: rgba(184, 51, 46, 0.3);
  background: rgba(255, 244, 244, 0.92);
}

.schedule-page .support-kpi-card.tone-bad .value {
  color: #b8332e;
}

.schedule-page .support-kpi-card.tone-info {
  border-color: rgba(17, 74, 103, 0.2);
  background: rgba(246, 252, 255, 0.9);
}

.admin-page .page {
  gap: 18px;
}

.admin-page .admin-hero {
  padding: 24px 26px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.92), rgba(240, 252, 255, 0.84));
  align-items: flex-start;
  gap: 14px 20px;
}

.admin-page .admin-hero-copy {
  max-width: 760px;
}

.admin-page .admin-hero-side {
  margin-left: auto;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.admin-page .admin-user-slot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(17, 86, 114, 0.2);
  border-radius: 12px;
  background: rgba(247, 252, 255, 0.9);
  padding: 6px 8px 6px 10px;
}

.admin-page .admin-user-slot .nav-user {
  padding: 0;
  font-size: 13px;
}

.admin-page .admin-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-page .admin-quick-link {
  text-decoration: none;
  color: #0f4f66;
  border: 1px solid rgba(16, 102, 128, 0.22);
  background: rgba(247, 252, 255, 0.9);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
}

.admin-page .admin-quick-link:hover {
  background: rgba(16, 141, 170, 0.12);
}

.admin-page .admin-overview-panel,
.admin-page .admin-accounts-panel,
.admin-page .admin-audit-panel,
.admin-page .admin-maintenance-panel {
  padding: 18px;
}

.admin-page .admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.admin-page .admin-workspace-column {
  min-width: 0;
  display: grid;
  gap: 18px;
  align-content: start;
}

.admin-page .admin-workspace-column > .admin-card {
  grid-area: auto;
}

.admin-page .admin-card {
  min-width: 0;
  padding: 16px;
}

.admin-page .admin-card .panel-title-row {
  margin-bottom: 10px;
}

.admin-page .admin-orders-card {
  grid-area: orders;
}

.admin-page .admin-master-card {
  grid-area: master;
}

.admin-page .admin-config-card {
  grid-area: config;
}

.admin-page .admin-upload-card {
  grid-area: upload;
}

.admin-page .admin-span-2 {
  grid-column: span 2;
}

.admin-page #orderForm {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(17, 74, 103, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.admin-page #orderForm .form-row {
  margin-top: 8px;
}

.admin-page .admin-order-upload {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(17, 74, 103, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.admin-page .admin-order-upload .panel-title-row {
  margin-bottom: 8px;
}

.admin-page .admin-order-upload-toolbar {
  margin-top: 0;
}

.admin-page .admin-order-upload .subtitle {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 12px;
}

.admin-page .admin-order-upload .subtitle a {
  color: #0f5975;
  font-weight: 700;
}

.admin-page .admin-table-wrap {
  margin-top: 8px;
  border: 1px solid rgba(17, 74, 103, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
}

.admin-page .admin-table-wrap table {
  min-width: 760px;
}

.admin-page .admin-orders-card .admin-table-wrap {
  max-height: 420px;
}

.admin-page .admin-upload-card .admin-table-wrap {
  max-height: 260px;
}

.admin-page .admin-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-page .admin-account-block {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(17, 74, 103, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.admin-page .admin-account-block .panel-title-row {
  margin-bottom: 8px;
}

.admin-page .admin-mode-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(15, 124, 144, 0.18);
  border-radius: 999px;
  background: rgba(238, 250, 253, 0.9);
}

.admin-page .admin-mode-toggle button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: #527086;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.admin-page .admin-mode-toggle button.active {
  color: #ffffff;
  background: #119dad;
  box-shadow: 0 6px 14px rgba(17, 157, 173, 0.22);
}

.admin-page .manual-trial-fields {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(17, 74, 103, 0.16);
}

.admin-page .admin-credential-box {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(15, 124, 144, 0.24);
  border-radius: 10px;
  background: rgba(240, 251, 255, 0.92);
}

.admin-page .admin-denied-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(193, 101, 23, 0.24);
  border-radius: 10px;
  color: #7a420f;
  background: rgba(255, 249, 241, 0.92);
  line-height: 1.5;
}

.admin-page .admin-account-block.is-locked {
  opacity: 0.78;
}

.admin-page .admin-account-block.is-locked input,
.admin-page .admin-account-block.is-locked select,
.admin-page .admin-account-block.is-locked button,
.admin-page .admin-audit-panel select:disabled,
.admin-page .admin-audit-panel button:disabled,
.admin-page .admin-maintenance-panel button:disabled {
  cursor: not-allowed;
}

.admin-page .admin-credential-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #173f59;
}

.admin-page .admin-credential-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  font-size: 13px;
}

.admin-page .admin-credential-grid span {
  color: #4c6178;
}

.admin-page .admin-credential-grid code {
  min-width: 0;
  color: #123d55;
  word-break: break-all;
}

.admin-page .admin-credential-grid code a {
  color: inherit;
  text-decoration: none;
}

.admin-page .admin-credential-grid code a:hover {
  text-decoration: underline;
}

.admin-page .admin-users-table-wrap {
  margin-top: 12px;
  max-height: 360px;
}

.admin-page .admin-audit-panel .admin-table-wrap {
  max-height: 360px;
}

.admin-page .admin-users-table-wrap table {
  min-width: 1160px;
}

.admin-page .admin-audit-panel .admin-table-wrap table {
  min-width: 900px;
}

.admin-page .admin-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(247, 252, 255, 0.96);
  padding: 10px 0;
}

.admin-page .admin-table-wrap tbody tr:nth-child(even) {
  background: rgba(17, 89, 120, 0.04);
}

.admin-page .admin-table-wrap tbody tr:hover {
  background: rgba(16, 141, 170, 0.08);
}

.admin-page textarea {
  min-height: 220px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.88);
}

#ordersSection,
#masterSection,
#configSection,
#uploadSection,
#accountsSection,
#auditSection {
  scroll-margin-top: 14px;
}

.design-page .page {
  gap: 18px;
}

.design-page .design-hero {
  padding: 26px 28px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(247, 254, 255, 0.82));
}

.design-page .design-hero h1 {
  margin-top: 4px;
}

.design-page .design-hero .hero-actions {
  align-self: auto;
}

.design-page .design-list-panel {
  padding: 18px;
}

.design-page .design-overview-panel {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.design-page .design-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.design-page .design-kpi-card {
  border: 1px solid rgba(17, 78, 108, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  padding: 11px 12px;
  display: grid;
  gap: 4px;
}

.design-page .design-kpi-card.tone-danger {
  border-color: rgba(184, 51, 46, 0.3);
  background: rgba(255, 245, 244, 0.88);
}

.design-page .design-kpi-card.tone-warn {
  border-color: rgba(193, 101, 23, 0.3);
  background: rgba(255, 249, 241, 0.9);
}

.design-page .design-kpi-card.tone-good {
  border-color: rgba(31, 143, 78, 0.26);
  background: rgba(245, 255, 249, 0.92);
}

.design-page .design-kpi-label {
  margin: 0;
  color: #466077;
  font-size: 12px;
}

.design-page .design-kpi-value {
  margin: 0;
  color: #123f57;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 700;
}

.design-page .design-kpi-hint {
  margin: 0;
  color: #63778c;
  font-size: 12px;
}

.design-page .design-overview-bottom {
  margin-top: 2px;
}

.design-page .design-mini-card {
  min-width: 0;
  border: 1px solid rgba(20, 73, 102, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
  display: grid;
  gap: 8px;
}

.design-page .design-mini-card h3 {
  margin: 0;
}

.design-page .design-summary-list {
  display: grid;
}

.design-page .design-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed rgba(18, 64, 91, 0.14);
  font-size: 13px;
  color: #335066;
}

.design-page .design-summary-row:last-child {
  border-bottom: none;
}

.design-page .design-summary-empty {
  color: #5d7286;
  border: 1px dashed rgba(15, 86, 118, 0.24);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-size: 13px;
}

.design-page .design-list-toolbar {
  margin-top: 6px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 10px;
  align-items: end;
}

.design-page .design-list-panel .table-wrap {
  margin-top: 6px;
  border: 1px solid rgba(17, 70, 97, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.design-page .design-list-panel thead th,
.design-page .design-list-panel tbody td {
  padding: 10px 10px;
}

.design-page .design-list-panel tbody tr:nth-child(even) {
  background: rgba(20, 124, 146, 0.04);
}

.design-page .design-list-panel tbody tr:hover {
  background: rgba(16, 141, 170, 0.09);
}

.design-page .design-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}

.design-page .design-pill-released {
  color: #1e6c42;
  background: rgba(31, 143, 78, 0.14);
}

.design-page .design-pill-frozen {
  color: #8b201d;
  background: rgba(184, 51, 46, 0.16);
}

.design-page .design-pill-trial {
  color: #7a420f;
  background: rgba(193, 101, 23, 0.16);
}

.design-page .design-pill-draft {
  color: #2c4e67;
  background: rgba(18, 80, 109, 0.12);
}

.design-page .design-pill-archived {
  color: #4a5d71;
  background: rgba(89, 106, 125, 0.12);
}

.design-page .design-ingredient-meta {
  color: #5b7085;
  font-size: 12px;
}

.design-page .design-workbench {
  grid-template-columns: 1.3fr 1fr;
  column-gap: 18px;
  row-gap: 18px;
  align-items: start;
}

.design-page .design-workbench > article {
  min-width: 0;
  border: 1px solid rgba(20, 73, 102, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  padding: 16px;
}

.design-page .design-workbench > article .subtitle {
  margin-top: 2px;
  margin-bottom: 8px;
}

.design-page .design-editor form {
  display: grid;
  gap: 10px;
}

.design-page .design-form-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.design-page .design-form-grid-primary {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 0.75fr);
}

.design-page .design-form-grid-secondary {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 0.8fr);
}

.design-page .design-form-grid-secondary select {
  font-weight: 500;
  color: #1f415a;
}

.design-page .design-rec-grid {
  grid-template-columns: 1fr 1fr;
}

.design-page .design-ingredient-editor {
  border: 1px dashed rgba(21, 83, 114, 0.22);
  border-radius: 12px;
  background: rgba(248, 253, 255, 0.62);
  padding: 10px;
}

.design-page .design-ingredient-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.design-page .design-ingredient-head h3 {
  margin: 0;
  font-size: 15px;
  color: #1f415a;
}

.design-page .design-ingredient-rows {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.design-page .design-ingredient-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) auto;
  gap: 8px;
  align-items: end;
}

.design-page .design-ingredient-combobox {
  position: relative;
}

.design-page .design-ingredient-combobox .design-ingredient-name {
  padding-right: 40px;
}

.design-page .design-ingredient-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #31536b;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.design-page .design-ingredient-combobox.is-open .design-ingredient-toggle {
  color: #0e7389;
  background: rgba(14, 115, 137, 0.08);
}

.design-page .design-ingredient-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  border: 1px solid rgba(19, 84, 115, 0.18);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(20, 55, 84, 0.18);
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  display: grid;
  gap: 4px;
}

.design-page .design-ingredient-menu[hidden] {
  display: none;
}

.design-page .design-ingredient-option {
  width: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #16334d;
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
  padding: 8px 10px;
  cursor: pointer;
}

.design-page .design-ingredient-option:hover,
.design-page .design-ingredient-option:focus-visible {
  background: rgba(14, 115, 137, 0.1);
  outline: none;
}

.design-page .design-ingredient-empty {
  color: #60778e;
  font-size: 13px;
  padding: 8px 10px;
}

.design-page .design-ingredient-row .btn {
  min-height: 39px;
  white-space: nowrap;
}

.design-page .design-hint {
  margin: 8px 0 2px;
  color: #50627a;
  font-size: 12px;
}

.design-page .design-actions {
  margin-top: 12px;
  gap: 10px;
}

.design-page .design-actions .btn {
  min-width: 138px;
}

.design-page .design-rec-actions {
  margin-top: 14px;
}

.design-page .design-rec-actions .btn {
  width: 100%;
  min-height: 42px;
}

.design-page .design-recommend-box {
  margin-top: 12px;
  min-height: 260px;
  max-height: 420px;
  overflow: auto;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(247, 252, 255, 0.96), rgba(240, 249, 252, 0.9));
}

.design-page .design-recommend-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #254861;
  font-size: 12px;
}

.design-page .design-recommend-cards {
  display: grid;
  gap: 10px;
}

.design-page .design-recommend-card {
  border: 1px solid rgba(17, 75, 103, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  padding: 10px 11px;
  display: grid;
  gap: 4px;
}

.design-page .design-recommend-card h4 {
  margin: 0;
  color: #1f415a;
}

.design-page .design-recommend-card p {
  margin: 0;
  color: #4f6379;
  font-size: 12px;
}

.design-page .design-rec-rank {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  color: #0f5f76;
  background: rgba(16, 141, 170, 0.14);
}

.design-page .design-recommend-empty {
  color: #607389;
  font-size: 13px;
  padding: 12px;
}

.design-page .design-compare-panel {
  padding: 18px;
}

.design-page .design-compare-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.design-page .design-compare-base {
  grid-column: span 3;
}

.design-page .design-compare-count {
  grid-column: span 1;
}

.design-page .design-compare-target.is-hidden {
  display: none;
}

.design-page .design-compare-box {
  margin-top: 12px;
  border: 1px solid rgba(17, 75, 103, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  padding: 12px;
  overflow: auto;
}

.design-page .design-compare-empty {
  color: #607389;
  font-size: 13px;
}

.design-page .design-compare-grid {
  display: grid;
  min-width: 760px;
  border: 1px solid rgba(17, 75, 103, 0.16);
  border-radius: 10px;
  overflow: hidden;
}

.design-page .design-compare-row {
  display: grid;
  grid-template-columns: var(--design-compare-cols, minmax(120px, 0.9fr) 1fr 1fr);
}

.design-page .design-compare-row > div {
  padding: 8px 10px;
  border-bottom: 1px dashed rgba(15, 67, 95, 0.15);
  border-right: 1px dashed rgba(15, 67, 95, 0.15);
  min-width: 0;
}

.design-page .design-compare-cell {
  word-break: break-word;
}

.design-page .design-compare-row > div:last-child {
  border-right: none;
}

.design-page .design-compare-row:last-child > div {
  border-bottom: none;
}

.design-page .design-compare-row-head > div {
  background: rgba(14, 74, 102, 0.08);
}

.design-page .design-compare-head {
  color: #1f425c;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.design-page .design-compare-base-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #106f86;
  background: rgba(16, 111, 134, 0.14);
}

.design-page .design-compare-key {
  font-weight: 700;
  color: #234761;
}

.design-page .design-compare-muted {
  color: #607389;
  font-size: 12px;
}

.design-page .design-compare-foot {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.design-page .design-compare-foot p {
  margin: 0;
  color: #405772;
  font-size: 12px;
}

.design-page .design-recommend-box:empty::before {
  content: "点击“生成推荐”后，这里会显示推荐方案、评分与可解释依据。";
  display: block;
  color: #607389;
}

.cockpit-page .page {
  gap: 18px;
}

.cockpit-page .cockpit-hero {
  padding: 24px 28px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(240, 252, 255, 0.82));
}

.cockpit-page .cockpit-overview-panel {
  padding: 18px;
}

.cockpit-page .cockpit-kpi-unified-panel {
  padding: 18px;
}

.cockpit-page .cockpit-tab-nav {
  margin-top: -2px;
}

.cockpit-page .cockpit-tab-panel[hidden] {
  display: none !important;
}

.cockpit-page .cockpit-integration-table {
  table-layout: fixed;
}

.cockpit-page .cockpit-integration-table th,
.cockpit-page .cockpit-integration-table td {
  width: 25%;
}

.cockpit-page .cockpit-integration-table th:nth-child(1),
.cockpit-page .cockpit-integration-table td:nth-child(1),
.cockpit-page .cockpit-integration-table th:nth-child(3),
.cockpit-page .cockpit-integration-table td:nth-child(3) {
  white-space: nowrap;
}

.cockpit-page .cockpit-integration-table th:nth-child(2),
.cockpit-page .cockpit-integration-table td:nth-child(2),
.cockpit-page .cockpit-integration-table th:nth-child(4),
.cockpit-page .cockpit-integration-table td:nth-child(4) {
  white-space: normal;
  overflow-wrap: anywhere;
}

.cockpit-page .cockpit-kpi-unified-grid {
  margin-top: 8px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cockpit-page .cockpit-kpi-group {
  border: 1px solid rgba(18, 70, 98, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
  min-width: 0;
}

.cockpit-page .cockpit-kpi-group h3 {
  margin-bottom: 10px;
}

.cockpit-page .cockpit-kpi-group .kpi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cockpit-page .cockpit-kpi-group #kpiBoard {
  margin-top: 0;
}

.cockpit-page .cockpit-overview-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 10px;
}

.cockpit-page .cockpit-overview-stats .stat-row {
  display: grid;
  grid-template-columns: 112px minmax(90px, 1fr);
  align-items: baseline;
  justify-content: stretch;
  column-gap: 14px;
  padding: 8px 2px;
}

.cockpit-page .cockpit-overview-stats .stat-row span {
  color: #2d4e67;
  white-space: nowrap;
}

.cockpit-page .cockpit-overview-stats .stat-row strong {
  color: #1f415a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  justify-self: start;
}

.cockpit-page .cockpit-analytics-panel {
  padding: 18px;
}

.cockpit-page .cockpit-analytics-title-row {
  margin-bottom: 8px;
}

.cockpit-page .cockpit-filter-toolbar {
  margin-top: 2px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.cockpit-page .cockpit-filter-item {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cockpit-page .cockpit-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: #2b4d65;
  line-height: 1.2;
  white-space: nowrap;
}

.cockpit-page .cockpit-filter-toolbar select {
  min-width: 0;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.cockpit-page .cockpit-chart-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cockpit-page .cockpit-chart-card {
  border: 1px solid rgba(18, 70, 98, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
}

.cockpit-page .cockpit-chart-card h3 {
  margin-bottom: 10px;
}

.cockpit-page .cockpit-chart-card-wide {
  grid-column: 1 / -1;
}

.cockpit-page .chart-empty {
  color: #5f7488;
  font-size: 13px;
  padding: 18px 0;
}

.cockpit-page .cockpit-bar-chart {
  min-height: 248px;
}

.cockpit-page .cockpit-bar-canvas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 248px;
}

.cockpit-page .cockpit-main-bar-shell {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: 248px;
}

.cockpit-page .cockpit-main-bar-y-axis {
  display: grid;
  grid-template-rows: auto repeat(5, minmax(0, 1fr));
  justify-items: end;
  align-items: end;
  padding: 2px 0 22px;
  row-gap: 2px;
}

.cockpit-page .cockpit-main-bar-y-axis .axis-name {
  font-size: 11px;
  font-weight: 700;
  color: #2b4d65;
  margin-bottom: 2px;
}

.cockpit-page .cockpit-main-bar-y-axis span {
  font-size: 11px;
  color: #5d7287;
  white-space: nowrap;
}

.cockpit-page .cockpit-main-bar-plot {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
}

.cockpit-page .cockpit-main-bar-scroll {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border-left: 1px solid rgba(17, 74, 103, 0.2);
  border-bottom: 1px solid rgba(17, 74, 103, 0.2);
  border-radius: 0 0 10px 0;
}

.cockpit-page .cockpit-main-bar-canvas {
  width: max-content;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(94px, 94px);
  gap: 10px;
  padding: 0 8px 6px;
}

.cockpit-page .cockpit-main-bar-x-axis {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #2b4d65;
}

.cockpit-page .cockpit-exception-chart-grid {
  margin-top: 0;
  gap: 12px;
}

.cockpit-page .cockpit-exception-bar-chart {
  min-height: 220px;
}

.cockpit-page .cockpit-exception-bar-canvas {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  min-height: 220px;
}

.cockpit-page .cockpit-exception-bar-canvas .cockpit-bar-track {
  height: 150px;
}

.cockpit-page .cockpit-exception-pie-chart {
  width: 190px;
  height: 190px;
}

.cockpit-page .cockpit-exception-chart-grid .chart-empty {
  text-align: center;
  padding: 36px 0;
}

.cockpit-page .cockpit-bar-item {
  display: grid;
  gap: 8px;
  align-items: end;
}

.cockpit-page .cockpit-bar-value {
  font-size: 12px;
  color: #234b64;
  text-align: center;
  font-weight: 700;
}

.cockpit-page .cockpit-bar-track {
  border: 1px solid rgba(17, 74, 103, 0.16);
  border-radius: 10px;
  background: rgba(239, 249, 251, 0.82);
  height: 168px;
  padding: 5px;
  display: flex;
  align-items: flex-end;
}

.cockpit-page .cockpit-bar-fill {
  display: block;
  width: 100%;
  border-radius: 7px;
  min-height: 4px;
  background: linear-gradient(180deg, #13a4a5 0%, #0f7c90 100%);
}

.cockpit-page .cockpit-bar-name {
  text-align: center;
  color: #304a61;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cockpit-page .cockpit-pie-card {
  display: grid;
  grid-template-rows: auto 1fr;
}

.cockpit-page .cockpit-pie-layout {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 34px;
  row-gap: 12px;
  align-items: center;
  justify-content: center;
  align-content: center;
  min-height: 100%;
}

.cockpit-page .cockpit-pie-chart {
  width: 200px;
  height: 200px;
  border-radius: 999px;
  margin: 0 auto;
  position: relative;
  border: 1px solid rgba(17, 73, 101, 0.16);
}

.cockpit-page .cockpit-pie-center {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 73, 101, 0.14);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px;
}

.cockpit-page .cockpit-pie-center small {
  display: block;
  color: #51657b;
  font-size: 11px;
}

.cockpit-page .cockpit-pie-center strong {
  display: block;
  color: #173d58;
  font-size: 13px;
}

.cockpit-page .cockpit-pie-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  justify-self: start;
}

.cockpit-page .cockpit-pie-legend li {
  display: grid;
  grid-template-columns: 12px auto auto;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}

.cockpit-page .cockpit-pie-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.cockpit-page .cockpit-pie-legend .label {
  color: #2f4c61;
}

.cockpit-page .cockpit-pie-legend .value {
  color: #1c425d;
  font-weight: 700;
}

.cockpit-page .cockpit-trend-chart {
  width: 100%;
  height: auto;
  border: 1px solid rgba(17, 74, 103, 0.16);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(248, 253, 255, 0.95), rgba(244, 250, 253, 0.9));
}

.cockpit-page .cockpit-trend-chart .grid-line {
  stroke: rgba(20, 86, 118, 0.16);
  stroke-dasharray: 4 4;
}

.cockpit-page .cockpit-trend-chart .axis-label {
  fill: #4c647a;
  font-size: 11px;
}

.cockpit-page .cockpit-trend-chart .trend-area {
  fill: rgba(19, 164, 165, 0.18);
}

.cockpit-page .cockpit-trend-chart .trend-line {
  fill: none;
  stroke: #0f7c90;
  stroke-width: 3;
}

.cockpit-page .cockpit-trend-chart .trend-dot {
  fill: #fff;
  stroke: #0f7c90;
  stroke-width: 2;
}

.cockpit-page .cockpit-trend-axis {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cockpit-page .cockpit-trend-axis span {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #415a72;
}

.cockpit-page .cockpit-trend-axis span.muted {
  opacity: 0;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(18, 64, 91, 0.14);
}

.code-box {
  border: 1px solid rgba(24, 74, 102, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.84);
  padding: 10px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.schedule-page #compareBox.compare-box {
  font-family: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", serif;
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  padding: 12px;
}

.schedule-page .compare-empty {
  color: #4e6076;
}

.schedule-page .kpi-compare {
  display: grid;
  gap: 10px;
}

.schedule-page .compare-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.schedule-page .compare-title {
  font-size: 15px;
  font-weight: 700;
  color: #123f57;
}

.schedule-page .compare-scenes {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.schedule-page .scene-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}

.schedule-page .scene-left {
  color: #0b5670;
  background: rgba(15, 124, 144, 0.12);
}

.schedule-page .scene-right {
  color: #7b3d13;
  background: rgba(229, 111, 46, 0.16);
}

.schedule-page .scene-compare {
  color: #0b5670;
  background: rgba(15, 124, 144, 0.12);
}

.schedule-page .compare-grid {
  border: 1px solid rgba(14, 74, 102, 0.18);
  border-radius: 10px;
  overflow: hidden;
}

.schedule-page .compare-row {
  display: grid;
  grid-template-columns: var(--compare-cols, 1.4fr 1fr 1fr 1.2fr);
}

.schedule-page .compare-row:nth-child(even):not(.compare-row-head) {
  background: rgba(17, 89, 120, 0.04);
}

.schedule-page .compare-row-head {
  background: rgba(14, 74, 102, 0.08);
  color: #1f425c;
  font-weight: 700;
}

.schedule-page .compare-cell {
  padding: 8px 10px;
  border-bottom: 1px dashed rgba(15, 67, 95, 0.15);
}

.schedule-page .compare-grid .compare-row:last-child .compare-cell {
  border-bottom: none;
}

.schedule-page .compare-metric {
  font-weight: 600;
  color: #183d56;
}

.schedule-page .compare-value {
  color: #2c455d;
}

.schedule-page .compare-best-value {
  background: rgba(31, 143, 78, 0.12);
  color: #1f8f4e;
  font-weight: 700;
}

.schedule-page .compare-worst-value {
  background: rgba(184, 51, 46, 0.12);
  color: #a7322d;
  font-weight: 700;
}

.schedule-page .compare-delta {
  display: flex;
  align-items: center;
}

.schedule-page .delta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
}

.schedule-page .delta-arrow {
  font-size: 13px;
  font-weight: 700;
}

.schedule-page .delta-good {
  color: #1f8f4e;
  background: rgba(31, 143, 78, 0.12);
}

.schedule-page .delta-bad {
  color: #b8332e;
  background: rgba(184, 51, 46, 0.12);
}

.schedule-page .delta-neutral {
  color: #4c5d71;
  background: rgba(64, 88, 109, 0.14);
}

.schedule-page .compare-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #405772;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.toolbar label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
}

.toast {
  position: fixed;
  top: 18px;
  right: 18px;
  background: #123d55;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 20;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.toast-center {
  top: 50%;
  right: auto;
  left: 50%;
  transform: translate(-50%, calc(-50% - 8px));
}

.toast.toast-center.show {
  transform: translate(-50%, -50%);
}

.app-confirm-dialog {
  border: none;
  padding: 0;
  margin: auto;
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
  background: transparent;
}

.app-confirm-dialog::backdrop {
  background: rgba(6, 22, 35, 0.34);
}

.app-confirm-card {
  border: 1px solid rgba(16, 76, 105, 0.2);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(7, 35, 55, 0.28);
  padding: 16px 16px 14px;
  display: grid;
  gap: 10px;
}

.app-confirm-title {
  margin: 0;
  font-size: 17px;
  color: #1d3f59;
}

.app-confirm-message {
  margin: 0;
  color: #2f4760;
  line-height: 1.6;
  white-space: pre-line;
}

.app-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.app-prompt-card {
  gap: 12px;
}

.app-prompt-field {
  display: grid;
  gap: 6px;
}

.app-prompt-label {
  color: #2a4b63;
  font-size: 12px;
  font-weight: 700;
}

.app-prompt-input {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(17, 77, 106, 0.25);
  padding: 0 12px;
  color: #1f3f57;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-prompt-input:focus {
  outline: none;
  border-color: rgba(14, 124, 144, 0.62);
  box-shadow: 0 0 0 3px rgba(15, 124, 144, 0.14);
}

@keyframes rise {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel-layout {
    grid-template-columns: 1fr;
  }

  .device-grid {
    grid-template-columns: 1fr;
  }

  .maintenance-page .maintenance-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .maintenance-page .maintenance-enrichment-split {
    grid-template-columns: 1fr;
  }

  .maintenance-page .maintenance-workorder-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-page .hub-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub-page .hub-span-3,
  .hub-page .hub-span-2 {
    grid-column: span 1;
  }

  .hub-page .page {
    min-height: auto;
    grid-template-rows: auto;
    padding: 12px 12px 20px;
  }

  .hub-page .hub-modules-panel {
    width: 100%;
    margin: 0;
  }

  .module-nav a {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .schedule-page .schedule-stage-nav a {
    flex: 1 1 calc(33.333% - 8px);
  }

  .split-two {
    grid-template-columns: 1fr;
  }

  .schedule-page .schedule-split-equal {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-workspace {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-account-grid {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-hero {
    padding: 20px 18px;
  }

  .admin-page .admin-hero-side {
    margin-left: 0;
    width: 100%;
    justify-items: start;
  }

  .admin-page .admin-hero-links {
    justify-content: flex-start;
  }

  .schedule-page .schedule-split > article {
    padding: 12px;
  }

  .schedule-page .master-view-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .schedule-page .master-view-entity-select {
    justify-content: space-between;
  }

  .schedule-page .master-view-entity-select select {
    min-width: 0;
  }

  .schedule-page .master-view-toolbar .btn {
    width: 100%;
  }

  .schedule-page .resource-filter-bar {
    grid-template-columns: 1fr;
  }

  .schedule-page .resource-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .schedule-page .resource-filter-actions .btn {
    width: 100%;
  }

  .schedule-page .master-view-table-wrap {
    max-height: 360px;
  }

  .schedule-page .master-view-table-wrap table {
    min-width: 980px;
  }

  .schedule-page .resource-detail-grid {
    grid-template-columns: 1fr;
  }

  .schedule-page .resource-detail-actions {
    flex-direction: column;
  }

  .schedule-page .resource-detail-actions .btn {
    width: 100%;
  }

  .schedule-page .schedule-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-page.schedule-orders-page .schedule-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-page .precheck-summary-grid,
  .schedule-page .precheck-issue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-page .precheck-toolbar-row {
    align-items: flex-start;
  }

  .schedule-page .precheck-toolbar {
    justify-content: flex-start;
  }

  .schedule-orders-page .order-edit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-page #kpiBoard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-page .compare-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .schedule-page .compare-toolbar .btn {
    width: 100%;
  }

  .schedule-page .lock-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .schedule-page .lock-toolbar .btn {
    width: 100%;
  }

  .schedule-page .dispatch-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .schedule-page .dispatch-toolbar .btn {
    width: 100%;
  }

  .schedule-page .dispatch-filter-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .schedule-page .dispatch-filter-toolbar .btn {
    width: 100%;
  }

  .design-page .design-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-page .design-form-grid-primary,
  .design-page .design-form-grid-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-page .design-ingredient-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) auto;
  }

  .design-page .design-rec-grid {
    grid-template-columns: 1fr;
  }

  .traceability-page .trace-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .traceability-page .trace-suggestion-panel {
    grid-template-columns: 1fr;
  }

  .trace-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .traceability-page .trace-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .traceability-page .trace-device-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .traceability-page .trace-risk-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .traceability-page .trace-risk-suggestion-grid {
    grid-template-columns: 1fr;
  }

  .traceability-page .trace-suggestion-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-page .design-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-page .design-list-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-page .design-compare-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-page .design-compare-base,
  .design-page .design-compare-count {
    grid-column: span 2;
  }

  .cockpit-page .cockpit-overview-stats {
    grid-template-columns: 1fr;
  }

  .cockpit-page .cockpit-kpi-unified-grid {
    grid-template-columns: 1fr;
  }

  .cockpit-page .cockpit-kpi-group .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cockpit-page .cockpit-filter-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cockpit-page .cockpit-chart-grid {
    grid-template-columns: 1fr;
  }

  .cockpit-page .cockpit-chart-card-wide {
    grid-column: auto;
  }

  .schedule-page .compare-row {
    grid-template-columns: 1fr;
  }

  .schedule-page .compare-row-head {
    display: none;
  }

  .schedule-page .compare-row .compare-cell {
    border-bottom: none;
    padding: 5px 10px;
  }

  .schedule-page .compare-row:not(.compare-row-head) {
    border-bottom: 1px dashed rgba(15, 67, 95, 0.15);
    padding: 6px 0;
  }

  .schedule-page .compare-row:not(.compare-row-head) .compare-metric {
    font-weight: 700;
    padding-bottom: 2px;
  }

  .schedule-page .compare-row:not(.compare-row-head) .compare-delta {
    padding-top: 2px;
  }
}

@media (max-width: 700px) {
  .login-page {
    padding: 12px;
  }

  .login-page > .login-card {
    width: calc(100vw - 24px);
    padding: 22px 18px 18px;
  }

  .login-card h1 {
    font-size: clamp(28px, 7vw, 34px);
  }

  .login-form {
    gap: 12px;
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .schedule-page .top-nav.top-nav-inline {
    justify-content: flex-end;
  }

  .maintenance-page .top-nav.top-nav-inline,
  .traceability-page .top-nav.top-nav-inline,
  .design-page .top-nav.top-nav-inline {
    justify-content: flex-end;
  }

  .hero-with-nav .hero-main {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .schedule-page .hero-with-nav .hero-main {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-right: 0;
  }

  .maintenance-page .hero-with-nav .hero-main,
  .traceability-page .hero-with-nav .hero-main,
  .design-page .hero-with-nav .hero-main {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-right: 0;
  }

  .schedule-page .hero-controls {
    position: static;
    top: auto;
    right: auto;
    margin-left: 0;
    width: 100%;
    min-width: 0;
    justify-items: end;
  }

  .maintenance-page .hero-controls,
  .traceability-page .hero-controls,
  .design-page .hero-controls {
    position: static;
    top: auto;
    right: auto;
    margin-left: 0;
    width: 100%;
    min-width: 0;
    justify-items: end;
  }

  .schedule-page .hero-actions {
    width: auto;
    flex-wrap: nowrap;
  }

  .maintenance-page .hero-actions,
  .traceability-page .hero-actions,
  .design-page .hero-actions {
    width: auto;
    flex-wrap: nowrap;
  }

  .schedule-page .hero-actions .btn,
  .schedule-page .hero-actions .btn-home {
    flex: 0 0 auto;
    min-width: 44px;
  }

  .maintenance-page .hero-actions .btn,
  .maintenance-page .hero-actions .btn-home,
  .traceability-page .hero-actions .btn,
  .traceability-page .hero-actions .btn-home,
  .design-page .hero-actions .btn,
  .design-page .hero-actions .btn-home {
    flex: 0 0 auto;
    min-width: 44px;
  }

  .schedule-page .precheck-toolbar-row {
    align-items: stretch;
    gap: 8px;
  }

  .schedule-page .precheck-toolbar {
    justify-content: flex-start;
    width: 100%;
  }

  .schedule-page .precheck-filter {
    width: 100%;
  }

  .schedule-page .precheck-filter select {
    flex: 1;
    min-width: 0;
  }

  .schedule-page #precheckExportBtn {
    width: 100%;
  }

  .schedule-page .schedule-stage-nav a {
    flex: 1 1 calc(50% - 8px);
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .maintenance-page .maintenance-kpi-grid {
    grid-template-columns: 1fr;
  }

  .maintenance-page .maintenance-workorder-board {
    grid-template-columns: 1fr;
  }

  .maintenance-page .maintenance-trend-toolbar {
    grid-template-columns: 1fr;
  }

  .schedule-page .rebuild-form .rebuild-options-row {
    grid-template-columns: 1fr;
  }

  .schedule-page .rebuild-form .checkbox-label {
    min-height: auto;
  }

  .admin-page .admin-overview-panel,
  .admin-page .admin-audit-panel,
  .admin-page .admin-maintenance-panel,
  .admin-page .admin-card {
    padding: 14px;
  }

  .admin-page .admin-hero-links {
    width: 100%;
  }

  .admin-page .admin-user-slot {
    width: 100%;
    justify-content: space-between;
  }

  .admin-page .admin-quick-link {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .admin-page .admin-span-2 {
    grid-column: span 1;
  }

  .admin-page .admin-order-upload-toolbar {
    align-items: stretch;
  }

  .admin-page .admin-order-upload-toolbar > * {
    width: 100%;
  }

  .admin-page .admin-table-wrap table {
    min-width: 680px;
  }

  .admin-page .admin-users-table-wrap table {
    min-width: 860px;
  }

  .schedule-page .schedule-summary-grid {
    grid-template-columns: 1fr;
  }

  .schedule-page.schedule-orders-page .schedule-summary-grid {
    grid-template-columns: 1fr;
  }

  .schedule-page .precheck-summary-grid,
  .schedule-page .precheck-issue-grid {
    grid-template-columns: 1fr;
  }

  .schedule-orders-page .order-pool-table {
    min-width: 1100px;
  }

  .schedule-orders-page .order-edit-card {
    width: calc(100vw - 16px);
    max-height: 92vh;
    padding: 10px;
  }

  .schedule-orders-page .order-edit-head {
    top: -10px;
    margin: -10px -10px 0;
    padding: 10px;
  }

  .schedule-orders-page .order-edit-grid {
    grid-template-columns: 1fr;
  }

  .schedule-orders-page .order-edit-foot {
    flex-direction: column-reverse;
  }

  .schedule-orders-page .order-edit-foot .btn {
    width: 100%;
  }

  .schedule-page .master-view-table-wrap table {
    min-width: 900px;
  }

  .schedule-page #kpiBoard {
    grid-template-columns: 1fr;
  }

  .design-page .design-hero {
    padding: 20px 18px;
  }

  .design-page .design-workbench > article {
    padding: 13px;
  }

  .design-page .design-form-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .design-page .design-form-grid-primary,
  .design-page .design-form-grid-secondary {
    grid-template-columns: 1fr;
  }

  .design-page .design-ingredient-head {
    align-items: stretch;
    flex-direction: column;
  }

  .design-page .design-ingredient-head .btn {
    width: 100%;
  }

  .design-page .design-ingredient-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .design-page .design-ingredient-row .btn {
    width: 100%;
  }

  .traceability-page .trace-kpi-grid {
    grid-template-columns: 1fr;
  }

  .traceability-page .trace-highlight-grid {
    grid-template-columns: 1fr;
  }

  .traceability-page .trace-device-summary {
    grid-template-columns: 1fr;
  }

  .traceability-page .trace-risk-list {
    grid-template-columns: 1fr;
  }

  .traceability-page .trace-suggestion-summary {
    grid-template-columns: 1fr;
  }

  .design-page .design-kpi-grid {
    grid-template-columns: 1fr;
  }

  .design-page .design-list-toolbar {
    grid-template-columns: 1fr;
  }

  .design-page .design-compare-toolbar {
    grid-template-columns: 1fr;
  }

  .design-page .design-compare-base,
  .design-page .design-compare-count {
    grid-column: span 1;
  }

  .design-page .design-actions .btn {
    width: 100%;
  }

  .cockpit-page .cockpit-hero {
    padding: 20px 18px;
  }

  .cockpit-page .cockpit-overview-panel,
  .cockpit-page .cockpit-analytics-panel {
    padding: 14px;
  }

  .cockpit-page .cockpit-kpi-unified-panel {
    padding: 14px;
  }

  .cockpit-page .cockpit-kpi-group .kpi-grid {
    grid-template-columns: 1fr;
  }

  .cockpit-page .cockpit-filter-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cockpit-page .cockpit-pie-layout {
    grid-template-columns: 1fr;
    justify-content: stretch;
    row-gap: 14px;
  }

  .cockpit-page .cockpit-pie-legend {
    justify-self: stretch;
  }

  .cockpit-page .cockpit-pie-legend li {
    grid-template-columns: 12px minmax(0, 1fr) auto;
  }

  .cockpit-page .cockpit-pie-chart {
    width: 180px;
    height: 180px;
  }

  .cockpit-page .cockpit-main-bar-shell {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
  }

  .cockpit-page .cockpit-main-bar-y-axis span {
    font-size: 10px;
  }

  .cockpit-page .cockpit-main-bar-canvas {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(90px, 90px);
  }

  .cockpit-page .cockpit-bar-canvas:not(.cockpit-main-bar-canvas) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cockpit-page .cockpit-trend-axis span {
    font-size: 10px;
  }

  .trace-meta {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .hub-page .hub-module-grid {
    grid-template-columns: 1fr;
  }

  .hub-page .hub-modules-panel {
    padding: 14px;
  }

  .module-nav a {
    flex: 1 1 100%;
    text-align: left;
  }
}
