:root {
  color-scheme: light;
  --ink: #13263b;
  --ink-soft: #536478;
  --navy: #0b1f33;
  --navy-2: #102941;
  --surface: #ffffff;
  --surface-soft: #f4f7f9;
  --canvas: #eef3f5;
  --line: #dfe7eb;
  --teal: #1f8a78;
  --teal-bright: #35c5a6;
  --teal-soft: #e7f7f2;
  --orange: #d37434;
  --orange-soft: #fff2e8;
  --blue: #3174bf;
  --blue-soft: #eaf2fc;
  --red: #c34847;
  --red-soft: #fcecec;
  --yellow: #c7972f;
  --yellow-soft: #fff8e6;
  --shadow: 0 18px 50px rgba(11, 31, 51, 0.08);
  --radius-lg: 22px;
  --radius-md: 15px;
  --radius-sm: 10px;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 3%, rgba(53, 197, 166, 0.09), transparent 25rem),
    linear-gradient(135deg, #edf3f5 0%, #f6f8f8 55%, #edf2f4 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(49, 116, 191, 0.24);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px 22px;
  color: #e9f1f5;
  background:
    linear-gradient(155deg, rgba(53, 197, 166, 0.08), transparent 38%),
    var(--navy);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.brand {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 9px 26px;
}

.brand strong {
  display: block;
  font-size: 25px;
  letter-spacing: 0.14em;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: #8398a9;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 12px;
  transform: rotate(-2deg);
}

.brand-mark span {
  display: block;
  background: var(--teal-bright);
  border-radius: 3px;
}

.brand-mark span:nth-child(2) {
  opacity: 0.44;
}

.brand-mark span:nth-child(3) {
  grid-column: span 2;
  height: 6px;
  align-self: end;
  opacity: 0.72;
}

.main-nav {
  display: grid;
  gap: 5px;
}

.nav-item {
  width: 100%;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  color: #9db0be;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.055);
  color: #f4f8fa;
}

.nav-item.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(53, 197, 166, 0.18), rgba(53, 197, 166, 0.04));
  box-shadow: inset 3px 0 var(--teal-bright);
}

.nav-glyph {
  width: 18px;
  height: 18px;
  opacity: 0.9;
  position: relative;
}

.glyph-grid {
  background:
    linear-gradient(var(--teal-bright), var(--teal-bright)) 0 0 / 7px 7px no-repeat,
    linear-gradient(var(--teal-bright), var(--teal-bright)) 11px 0 / 7px 7px no-repeat,
    linear-gradient(var(--teal-bright), var(--teal-bright)) 0 11px / 7px 7px no-repeat,
    linear-gradient(var(--teal-bright), var(--teal-bright)) 11px 11px / 7px 7px no-repeat;
}

.glyph-lines {
  background:
    linear-gradient(90deg, currentColor 0 100%) 0 3px / 18px 2px no-repeat,
    linear-gradient(90deg, currentColor 0 100%) 0 8px / 13px 2px no-repeat,
    linear-gradient(90deg, currentColor 0 100%) 0 13px / 16px 2px no-repeat;
}

.glyph-stack {
  border: 2px solid currentColor;
  border-radius: 2px;
  transform: skewY(-8deg);
}

.glyph-stack::before,
.glyph-stack::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  height: 1px;
  background: currentColor;
}

.glyph-stack::before {
  top: 4px;
}

.glyph-stack::after {
  top: 9px;
}

.glyph-bell {
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 9px 9px 2px 2px;
  width: 14px;
  margin-left: 2px;
}

.glyph-bell::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: -4px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.glyph-cart {
  width: 16px;
  height: 12px;
  margin-top: 4px;
  border: 2px solid currentColor;
  border-radius: 2px;
  transform: skewY(-5deg);
}

.glyph-cart::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  left: -6px;
  top: -5px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: skewY(5deg);
}

.glyph-cart::after {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  bottom: -7px;
  height: 3px;
  background:
    radial-gradient(circle, currentColor 1.5px, transparent 2px) 0 0 / 8px 3px repeat-x;
}

.glyph-check {
  width: 16px;
  height: 16px;
  margin-left: 1px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.glyph-check::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 4px;
  left: 3px;
  top: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.glyph-out {
  border-left: 2px solid currentColor;
}

.glyph-out::before {
  content: "→";
  position: absolute;
  right: -2px;
  top: -3px;
  font-size: 18px;
}

.glyph-out::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 10px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.nav-count,
.nav-alert {
  min-width: 22px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0 6px;
  color: #bdd0da;
  background: rgba(255, 255, 255, 0.09);
  font-size: 11px;
}

.nav-count:empty,
.nav-alert:empty {
  display: none;
}

.nav-alert:not(:empty) {
  color: #fff;
  background: var(--orange);
}

.nav-alert.is-blue {
  background: var(--blue);
}

.nav-section-label {
  margin: 28px 13px 10px;
  color: #627b8e;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.future-nav {
  display: grid;
  gap: 2px;
}

.future-nav div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 0 14px;
  color: #627b8e;
  font-size: 13px;
}

.future-nav span {
  font-family: Consolas, monospace;
  font-size: 10px;
  color: #557287;
}

.future-nav.is-complete div {
  color: #8ea5b5;
}

.future-nav.is-complete span {
  color: var(--teal-bright);
}

.sidebar-foot {
  margin-top: auto;
  padding: 22px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.environment-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8ca2b2;
  font-size: 12px;
}

.environment-dot span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(53, 197, 166, 0.12);
}

.text-button {
  margin-top: 12px;
  padding: 4px 0;
  border: 0;
  color: #6f899b;
  background: none;
  font-size: 11px;
  cursor: pointer;
}

.text-button:hover {
  color: #d8e5ec;
}

.main-content {
  min-width: 0;
  padding: 0 34px 48px;
}

.topbar {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(19, 38, 59, 0.08);
}

.title-block {
  min-width: 0;
}

.eyebrow {
  display: block;
  color: #7a8d9d;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

h1 {
  margin: 6px 0 0;
  font-size: clamp(24px, 2.2vw, 32px);
  letter-spacing: -0.04em;
}

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

.clock-block {
  margin-right: 12px;
  text-align: right;
}

.clock-block span {
  display: block;
  font-family: Consolas, "Microsoft YaHei UI", monospace;
  font-size: 13px;
  font-weight: 700;
}

.clock-block small {
  display: block;
  color: var(--ink-soft);
  margin-top: 3px;
  font-size: 10px;
}

.user-chip {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 5px 4px 4px;
  border: 1px solid #dbe4e8;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
}

.user-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #e7f8f3;
  background: linear-gradient(145deg, var(--navy-2), #1d5f69);
  font-size: 12px;
  font-weight: 800;
}

.user-copy strong,
.user-copy small {
  display: block;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-copy strong {
  font-size: 10px;
}

.user-copy small {
  margin-top: 2px;
  color: #8696a2;
  font-size: 8px;
}

.logout-button {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  color: #6f8290;
  background: #f0f4f5;
  cursor: pointer;
  font-size: 9px;
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 0 16px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button[hidden] {
  display: none;
}

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

.button:disabled {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.button-primary {
  color: #fff;
  background: var(--navy-2);
  box-shadow: 0 8px 22px rgba(11, 31, 51, 0.15);
}

.button-primary:hover {
  background: #173a5a;
}

.button-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: #d6e0e5;
}

.button-ghost {
  color: var(--ink-soft);
  background: var(--surface-soft);
}

.button-small {
  min-height: 32px;
  padding: 0 11px;
  font-size: 11px;
  border-radius: 8px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(53, 197, 166, 0.15);
}

.global-notice {
  margin: 18px 0 -4px;
  padding: 11px 14px;
  border: 1px solid #f0d5b9;
  border-radius: 11px;
  background: var(--orange-soft);
  color: #7b4a22;
  font-size: 12px;
}

.view {
  display: none;
  padding-top: 24px;
  animation: page-in 300ms ease both;
}

.view.is-active {
  display: block;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

.signal-strip {
  position: relative;
  overflow: hidden;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  color: #eaf5f2;
  background:
    linear-gradient(100deg, rgba(53, 197, 166, 0.16), transparent 44%),
    var(--navy-2);
}

.signal-strip::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -115px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.025), 0 0 0 48px rgba(255, 255, 255, 0.018);
}

.signal-copy {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.signal-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: var(--navy);
  background: var(--teal-bright);
  font-size: 19px;
  font-weight: 800;
}

.signal-copy strong,
.signal-copy span {
  display: block;
}

.signal-copy strong {
  font-size: 14px;
}

.signal-copy div span {
  color: #a7bcc8;
  margin-top: 4px;
  font-size: 11px;
}

.signal-route {
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 1;
  color: #adc1cd;
  font-size: 10px;
  white-space: nowrap;
}

.signal-route i {
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, rgba(53, 197, 166, 0.2), var(--teal-bright));
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.metric-card {
  min-height: 135px;
  padding: 17px 18px 15px;
  border: 1px solid rgba(19, 38, 59, 0.07);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 8px 26px rgba(11, 31, 51, 0.045);
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--tone);
}

.metric-ready {
  --tone: var(--teal);
}

.metric-shortage {
  --tone: var(--orange);
}

.metric-pending {
  --tone: var(--blue);
}

.metric-stock {
  --tone: #7b8c9b;
}

.metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
  font-size: 12px;
}

.metric-icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 10%, white);
  font-weight: 800;
}

.metric-card > strong {
  display: block;
  margin: 17px 0 10px;
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-foot {
  color: #81919f;
  font-size: 10px;
}

.pipeline-strip {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 30px minmax(130px, 1fr) 30px minmax(130px, 1fr) 30px minmax(130px, 1fr);
  align-items: stretch;
  gap: 0;
  margin-top: 14px;
  padding: 8px;
  border: 1px solid rgba(19, 38, 59, 0.07);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.pipeline-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  align-items: center;
  min-height: 67px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.pipeline-item:hover {
  background: #f5f8f9;
}

.pipeline-item span {
  color: var(--ink-soft);
  font-size: 10px;
}

.pipeline-item strong {
  grid-row: span 2;
  color: var(--navy-2);
  font-family: "Bahnschrift", Consolas, monospace;
  font-size: 25px;
}

.pipeline-item small {
  color: #93a1ab;
  font-size: 8px;
}

.pipeline-arrow {
  width: 18px;
  height: 1px;
  align-self: center;
  justify-self: center;
  position: relative;
  background: #c9d5da;
}

.pipeline-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 6px;
  height: 6px;
  border-top: 1px solid #9babb4;
  border-right: 1px solid #9babb4;
  transform: rotate(45deg);
}

.material-flow-panel {
  margin-top: 16px;
  padding: 19px;
  overflow: hidden;
}

.material-flow-heading {
  margin-bottom: 14px;
}

.material-flow-heading p {
  max-width: 660px;
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.material-flow-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.material-flow-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.workflow-maximize-button span:first-child {
  font-size: 14px;
  line-height: 1;
}

body.workflow-maximized-body {
  overflow: hidden;
}

body.workflow-maximized-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(11, 31, 51, 0.48);
  backdrop-filter: blur(3px);
}

.material-flow-panel.is-workflow-maximized {
  position: fixed;
  inset: 16px;
  z-index: 81;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 32px 90px rgba(7, 24, 39, 0.35);
}

.material-flow-panel.is-workflow-maximized .material-flow-heading {
  flex: 0 0 auto;
}

.material-flow-panel.is-workflow-maximized .workflow-master-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
}

.material-flow-panel.is-workflow-maximized .workflow-pagination {
  flex: 0 0 auto;
}

.material-flow-summary span {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #e7edef;
  border-radius: 999px;
  background: #f8fafb;
  color: #718590;
  font-size: 9px;
  white-space: nowrap;
}

.material-flow-summary strong {
  color: var(--navy-2);
  font-family: "Bahnschrift", Consolas, monospace;
  font-size: 14px;
}

.workflow-master-scroll {
  overflow-x: auto;
  border: 1px solid #dfe7ea;
  border-radius: 12px;
  background: #fff;
}

.workflow-master-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  table-layout: fixed;
}

.workflow-master-table col {
  min-width: 0;
}

.workflow-master-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 17px 11px 10px;
  border-bottom: 1px solid #dfe7ea;
  border-right: 1px solid #e4eaed;
  background: #f1f5f6;
  color: #667b87;
  font-size: 9px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.workflow-column-resizer {
  position: absolute;
  z-index: 8;
  top: 0;
  right: -5px;
  width: 10px;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
}

.workflow-column-resizer::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 4px;
  width: 1px;
  border-radius: 1px;
  background: #d7e1e5;
  transition: background 120ms ease, width 120ms ease;
}

.workflow-column-resizer:hover::after,
.workflow-column-resizer:focus-visible::after,
.workflow-column-resizer.is-resizing::after {
  width: 2px;
  background: var(--teal);
}

.workflow-column-resizer:focus-visible {
  outline: 2px solid rgba(23, 142, 132, 0.35);
  outline-offset: -4px;
}

body.workflow-column-resizing {
  cursor: col-resize;
  user-select: none;
}

.workflow-master-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e8eef0;
  border-right: 1px solid #edf1f3;
  vertical-align: middle;
}

.workflow-master-table tbody tr:nth-child(even) {
  background: #fafcfc;
}

.workflow-master-table tbody tr:hover {
  background: #f5f9fa;
}

.workflow-master-table tbody tr:last-child td {
  border-bottom: 0;
}

.workflow-master-table th:last-child,
.workflow-master-table td:last-child {
  border-right: 0;
}

.workflow-master-table th:first-child,
.workflow-master-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
}

.workflow-master-table th:nth-child(2),
.workflow-master-table td:nth-child(2) {
  position: sticky;
  left: var(--workflow-first-column-width, 98px);
  z-index: 3;
  background: #fff;
  box-shadow: 8px 0 12px -12px rgba(11, 31, 51, 0.5);
}

.workflow-master-table th:first-child,
.workflow-master-table th:nth-child(2) {
  z-index: 4;
  background: #f1f5f6;
}

.material-flow-panel.is-workflow-maximized .workflow-master-table th:last-child,
.material-flow-panel.is-workflow-maximized .workflow-master-table td:last-child {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #fff;
  box-shadow: -8px 0 12px -12px rgba(11, 31, 51, 0.5);
}

.material-flow-panel.is-workflow-maximized .workflow-master-table th:last-child {
  z-index: 4;
  background: #f1f5f6;
}

.workflow-master-table tbody tr:nth-child(even) td:first-child,
.workflow-master-table tbody tr:nth-child(even) td:nth-child(2),
.workflow-master-table tbody tr:nth-child(even) td:last-child {
  background: #fafcfc;
}

.workflow-master-table tbody tr:hover td:first-child,
.workflow-master-table tbody tr:hover td:nth-child(2),
.workflow-master-table tbody tr:hover td:last-child {
  background: #f5f9fa;
}

.workflow-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #e1e9ec;
  border-radius: 10px;
  background: #f8fafb;
}

.workflow-page-size,
.workflow-page-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
}

.workflow-page-size label,
.workflow-page-summary {
  color: #6f8290;
  font-size: 9px;
  white-space: nowrap;
}

.workflow-page-size select {
  min-height: 31px;
  padding: 0 28px 0 10px;
  border: 1px solid #d7e2e6;
  border-radius: 8px;
  color: #27495d;
  background: #fff;
  font-size: 10px;
  font-weight: 700;
}

.workflow-page-button,
.workflow-page-number {
  min-width: 32px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid #d7e2e6;
  border-radius: 8px;
  color: #476170;
  background: #fff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.workflow-page-button:hover,
.workflow-page-number:hover {
  border-color: #9fc4c2;
  background: #f1f9f7;
}

.workflow-page-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.workflow-page-number.is-active {
  border-color: var(--navy-2);
  color: #fff;
  background: var(--navy-2);
}

.workflow-page-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}

.workflow-page-ellipsis {
  color: #91a1aa;
  font-size: 10px;
}

.workflow-master-id strong,
.workflow-master-id span,
.workflow-master-id small {
  display: block;
}

.workflow-select {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.workflow-select input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--blue);
}

.workflow-select > span {
  width: 14px;
  height: 14px;
}

.table-select-heading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.table-select-heading input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--blue);
}

.workflow-master-id strong {
  color: var(--navy-2);
  font-family: "Bahnschrift", Consolas, monospace;
  font-size: 19px;
}

.workflow-master-id span {
  margin-top: 2px;
  color: #6d808c;
  font-size: 8px;
}

.workflow-master-id small {
  margin-top: 2px;
  overflow: hidden;
  color: #9aa8b1;
  font-family: Consolas, monospace;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-cell-primary,
.workflow-cell-secondary {
  display: block;
}

.workflow-cell-primary {
  color: var(--ink);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.45;
}

.workflow-cell-secondary {
  margin-top: 3px;
  overflow: hidden;
  color: #8798a2;
  font-size: 8px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-cell-value {
  color: #263e50;
  font-family: "Bahnschrift", "Microsoft YaHei UI", sans-serif;
  font-size: 10px;
}

.workflow-cell-tag,
.workflow-node-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #dce5e8;
  border-radius: 999px;
  background: #f7fafb;
  color: #536b79;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

.workflow-cell-tag {
  border-radius: 6px;
  white-space: normal;
  word-break: break-word;
}

.workflow-node-pill.is-action {
  border-color: #f2d5b6;
  background: #fff7ed;
  color: #9a4a0d;
}

.workflow-node-pill.is-progress {
  border-color: #c8dbf0;
  background: #f1f7ff;
  color: #2d5f92;
}

.workflow-node-pill.is-complete {
  border-color: #c8e4d9;
  background: #f2fbf7;
  color: #1f745e;
}

.workflow-node-pill.is-danger {
  border-color: #ebcaca;
  background: #fff5f5;
  color: #a33f3f;
}

.workflow-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.workflow-button {
  min-height: 29px;
  padding: 5px 9px;
  border: 1px solid #cfdade;
  border-radius: 7px;
  background: #fff;
  color: #355e72;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.workflow-button:hover {
  border-color: #afc3cb;
  background: #f4f8f9;
}

.workflow-button.is-primary {
  border-color: #0e5ca8;
  background: #0e63c7;
  color: #fff;
  box-shadow: 0 4px 10px rgba(14, 99, 199, 0.18);
}

.workflow-button.is-primary:hover {
  border-color: #084d91;
  background: #084f9e;
}

.workflow-button.is-danger {
  border-color: #e2b3b3;
  background: #fff4f4;
  color: #a33f3f;
}

.workflow-button.is-danger:hover {
  border-color: #cf8c8c;
  background: #ffecec;
}

.workflow-modal {
  width: min(980px, calc(100vw - 24px));
}

.workflow-modal-card {
  padding: 0;
  overflow: hidden;
}

.workflow-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 24px 17px;
  border-bottom: 1px solid #e3eaed;
  background: #fff;
}

.workflow-modal-head h2 {
  margin: 5px 0 4px;
  font-size: 21px;
}

.workflow-modal-head p {
  margin: 0;
  color: #718591;
  font-size: 9px;
}

.workflow-modal-content {
  max-height: calc(100vh - 146px);
  overflow-y: auto;
  padding: 18px 24px 28px;
  background: #f7f9fa;
}

.workflow-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #e1e8eb;
  border-radius: 11px;
  background: #fff;
}

.workflow-detail-summary > div {
  min-height: 76px;
  padding: 12px 14px;
  border-right: 1px solid #e7edef;
  border-bottom: 1px solid #e7edef;
}

.workflow-detail-summary > div:nth-child(4n) {
  border-right: 0;
}

.workflow-detail-summary > div:nth-last-child(-n+4) {
  border-bottom: 0;
}

.workflow-detail-summary span,
.workflow-detail-summary strong,
.workflow-detail-summary small {
  display: block;
}

.workflow-detail-summary span {
  color: #8a9aa4;
  font-size: 8px;
}

.workflow-detail-summary strong {
  margin-top: 6px;
  color: #243d4e;
  font-size: 11px;
}

.workflow-detail-summary small {
  margin-top: 3px;
  color: #8b9ba5;
  font-size: 8px;
}

.workflow-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 14px 0;
  padding: 12px 14px;
  border: 1px solid #e1e8eb;
  border-radius: 10px;
  background: #fff;
}

.workflow-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workflow-closed-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid #bce0d2;
  border-radius: 10px;
  background: #effbf6;
  color: #246d59;
}

.workflow-closed-mark {
  width: 27px;
  height: 27px;
  display: grid;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 50%;
  background: #d8f3e9;
  font-size: 13px;
  font-weight: 800;
}

.workflow-closed-banner strong,
.workflow-closed-banner div > span {
  display: block;
}

.workflow-closed-banner strong {
  font-size: 11px;
}

.workflow-closed-banner div > span {
  margin-top: 2px;
  color: #5d887a;
  font-size: 8px;
}

.workflow-detail-toolbar strong,
.workflow-detail-toolbar span {
  display: block;
}

.workflow-detail-toolbar strong {
  color: #263e50;
  font-size: 11px;
}

.workflow-detail-toolbar > div > span {
  margin-top: 3px;
  color: #8798a2;
  font-size: 8px;
}

.workflow-node-canvas {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 8px 2px;
}

.workflow-node {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 15px;
}

.workflow-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 16px;
  width: 1px;
  background: #cfdadd;
}

.workflow-node-marker {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  z-index: 1;
  border: 1px solid #ccd8dc;
  border-radius: 50%;
  background: #fff;
  color: #8b9ca5;
  font-size: 13px;
  font-weight: 800;
}

.workflow-node-card {
  padding: 12px 14px;
  border: 1px solid #e0e7ea;
  border-radius: 11px;
  background: #fff;
}

.workflow-node-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.workflow-node-role,
.workflow-node-status {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 700;
}

.workflow-node-role {
  background: #f2f6f7;
  color: #5d7481;
}

.workflow-node-status {
  border: 1px solid #e0e7ea;
  background: #fafcfc;
  color: #82939d;
}

.workflow-node-card h3 {
  margin: 8px 0 5px;
  color: #233c4d;
  font-size: 13px;
}

.workflow-node-card p {
  margin: 0;
  color: #637986;
  font-size: 9px;
  line-height: 1.55;
}

.workflow-node-card small {
  display: block;
  margin-top: 6px;
  color: #93a2aa;
  font-size: 8px;
}

.workflow-assignee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  padding: 8px 10px;
  border: 1px solid #e6ecee;
  border-radius: 8px;
  background: #f8fafb;
}

.workflow-assignee > div > span,
.workflow-assignee > div > strong,
.workflow-assignee > div > small {
  display: block;
}

.workflow-assignee > div > span {
  color: #8a9aa4;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.workflow-assignee > div > strong {
  margin-top: 2px;
  color: #294556;
  font-size: 10px;
}

.workflow-assignee > div > small {
  margin-top: 2px;
  color: #8b9ba4;
  font-size: 8px;
}

.workflow-reminder {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 1px solid #dfe7ea;
  border-radius: 999px;
  background: #fff;
  color: #718590;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.workflow-reminder small {
  margin: 0;
  color: #9aa7ae;
  font-size: 7px;
}

.workflow-reminder.is-sent {
  border-color: #c8e4d9;
  background: #f2fbf7;
  color: #1f745e;
}

.workflow-reminder.is-pending {
  border-color: #d7e2ea;
  background: #f4f8fc;
  color: #376f9d;
}

.workflow-reminder.is-identity {
  border-color: #f0d5b9;
  background: #fff7ed;
  color: #9a4a0d;
}

.workflow-reminder.is-danger {
  border-color: #ebcaca;
  background: #fff5f5;
  color: #a33f3f;
}

.workflow-reminder.is-muted {
  color: #8b9aa4;
}

.workflow-node-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.workflow-person-button {
  border-color: #c9d8e2;
  background: #f5f9fc;
}

.workflow-person-button.is-notify {
  border-color: #f0cda9;
  background: #fff7ed;
  color: #8c480f;
}

.workflow-node.is-complete .workflow-node-marker {
  border-color: #add8c9;
  background: #eefaf5;
  color: var(--teal);
}

.workflow-node.is-complete .workflow-node-card {
  border-color: #d5e9e1;
  background: #fbfefc;
}

.workflow-node.is-current .workflow-node-marker {
  border-color: #8ab7e9;
  background: #eef6ff;
  color: #1767bb;
}

.workflow-node.is-current .workflow-node-card {
  border-color: #80b4e8;
  box-shadow: 0 0 0 2px rgba(49, 126, 207, 0.08);
}

.workflow-node.is-current .workflow-node-status {
  border-color: #b6d3ec;
  background: #edf6ff;
  color: #2466a3;
}

.workflow-node.is-danger .workflow-node-marker {
  border-color: #e2b3b3;
  background: #fff2f2;
  color: #b14545;
}

.workflow-node.is-danger .workflow-node-card {
  border-color: #ebcaca;
  background: #fffafa;
}

.workflow-node.is-skipped .workflow-node-marker {
  border-style: dashed;
  color: #98a8b0;
}

.workflow-node.is-skipped .workflow-node-card {
  border-style: dashed;
  background: #f9fbfb;
}

.workflow-board-scroll {
  overflow-x: auto;
  border: 1px solid #e6ecef;
  border-radius: 13px;
  background: #fbfcfc;
  scrollbar-color: #b6c5cc #eef3f5;
}

.workflow-board {
  min-width: 1360px;
}

.workflow-board-head,
.workflow-row {
  display: grid;
  grid-template-columns:
    116px
    minmax(190px, 1.16fr)
    minmax(180px, 1.05fr)
    minmax(170px, 1fr)
    minmax(165px, 0.95fr)
    minmax(180px, 1.05fr)
    minmax(170px, 1fr)
    minmax(165px, 0.95fr);
}

.workflow-board-head {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid #dfe7ea;
  background: #f3f7f8;
}

.workflow-board-head span {
  padding: 11px 13px;
  border-left: 1px solid #e2e9ec;
  color: #667b87;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}

.workflow-board-head span:first-child {
  border-left: 0;
  position: sticky;
  left: 0;
  z-index: 3;
  background: #f3f7f8;
}

.workflow-row {
  position: relative;
  border-bottom: 1px solid #e7edef;
  background: #fff;
  transition: background 160ms ease;
}

.workflow-row:last-child {
  border-bottom: 0;
}

.workflow-row:hover {
  background: #fcfdfd;
}

.workflow-sequence {
  position: sticky;
  left: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 15px 12px;
  border-right: 1px solid #e7edef;
  background: linear-gradient(180deg, #f8fbfc, #f3f7f8);
  box-shadow: 8px 0 14px -12px rgba(11, 31, 51, 0.35);
}

.workflow-sequence strong {
  color: var(--navy-2);
  font-family: "Bahnschrift", Consolas, monospace;
  font-size: 22px;
  letter-spacing: -0.05em;
}

.workflow-sequence span,
.workflow-sequence small {
  overflow: hidden;
  color: #7b8e9a;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-sequence small {
  color: #9aabb4;
  font-family: Consolas, monospace;
}

.workflow-stage {
  position: relative;
  min-height: 174px;
  padding: 14px 13px 13px;
  border-left: 1px solid #edf1f3;
}

.workflow-stage:first-of-type {
  border-left: 0;
}

.workflow-stage::before {
  content: "";
  position: absolute;
  top: 0;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: #dce5e8;
}

.workflow-stage.is-complete::before {
  background: var(--teal);
}

.workflow-stage.is-progress::before {
  background: var(--blue);
}

.workflow-stage.is-action::before {
  background: var(--orange);
}

.workflow-stage.is-danger::before {
  background: #c34f4f;
}

.workflow-stage.is-skipped::before {
  background: repeating-linear-gradient(90deg, #a9b8bf 0 6px, transparent 6px 10px);
}

.workflow-stage-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: #7f929d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.workflow-stage-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #c6d2d7;
}

.workflow-stage.is-complete .workflow-stage-kicker::before {
  background: var(--teal);
}

.workflow-stage.is-progress .workflow-stage-kicker::before {
  background: var(--blue);
}

.workflow-stage.is-action .workflow-stage-kicker::before {
  background: var(--orange);
}

.workflow-stage.is-danger .workflow-stage-kicker::before {
  background: #c34f4f;
}

.workflow-stage.is-skipped .workflow-stage-kicker::before {
  border: 1px solid #a9b8bf;
  background: transparent;
}

.workflow-stage > strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.workflow-stage-detail,
.workflow-stage-meta {
  display: block;
  margin-top: 6px;
  color: #667b87;
  font-size: 9px;
  line-height: 1.5;
}

.workflow-stage-meta {
  color: #94a2ab;
  font-family: Consolas, "Microsoft YaHei UI", sans-serif;
}

.workflow-action,
.workflow-link {
  width: fit-content;
  margin-top: auto;
  padding: 5px 8px;
  border: 1px solid #d9e3e7;
  border-radius: 7px;
  background: #fff;
  color: #355e72;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
}

.workflow-action:hover,
.workflow-link:hover {
  border-color: #b9cad1;
  background: #f5f9fa;
}

.workflow-stage.is-action .workflow-action {
  border-color: color-mix(in srgb, var(--orange) 35%, white);
  background: var(--orange-soft);
  color: #9a4a0d;
}

.workflow-stage.is-danger .workflow-action,
.workflow-stage.is-danger .workflow-link {
  border-color: #eccaca;
  background: #fff5f5;
  color: #a33f3f;
}

.workflow-stage-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}

.material-flow-list {
  display: grid;
}

.overview-activity {
  margin-top: 16px;
  padding: 19px;
}

.overview-grid,
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
  margin-top: 16px;
}

.bottom-grid {
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1.3fr);
}

.panel {
  border: 1px solid rgba(19, 38, 59, 0.075);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 32px rgba(11, 31, 51, 0.045);
}

.risk-panel,
.availability-panel,
.activity-panel,
.roadmap-panel {
  padding: 19px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-heading h2,
.section-intro h2 {
  margin: 5px 0 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.link-button {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 10px;
}

.risk-list {
  display: grid;
  gap: 8px;
}

.risk-item {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid #edf1f3;
  border-radius: 11px;
  background: #fbfcfc;
}

.risk-symbol {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-weight: 800;
}

.risk-symbol.shortage {
  color: var(--orange);
  background: var(--orange-soft);
}

.risk-symbol.pending {
  color: var(--blue);
  background: var(--blue-soft);
}

.risk-symbol.ready {
  color: var(--teal);
  background: var(--teal-soft);
}

.risk-copy {
  min-width: 0;
}

.risk-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.risk-copy span {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 10px;
}

.risk-amount {
  color: var(--orange);
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.availability-bars {
  display: grid;
  gap: 15px;
}

.availability-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  align-items: center;
}

.availability-label strong,
.availability-label span {
  display: block;
}

.availability-label strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.availability-label span,
.availability-value {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 9px;
}

.availability-value {
  font-family: Consolas, monospace;
  text-align: right;
}

.bar-track {
  grid-column: span 2;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eef1;
}

.bar-fill {
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
}

.bar-fill.is-low {
  background: linear-gradient(90deg, var(--orange), #e7a16d);
}

.bar-progress {
  grid-column: span 2;
  width: 100%;
  height: 6px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 99px;
  background: #e8eef1;
}

.bar-progress::-webkit-progress-bar {
  border-radius: inherit;
  background: #e8eef1;
}

.bar-progress::-webkit-progress-value {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
}

.bar-progress::-moz-progress-bar {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--teal-bright));
}

.activity-list {
  display: grid;
  gap: 0;
}

.activity-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 11px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f3;
}

.activity-item:last-child {
  border-bottom: 0;
}

.activity-dot {
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border: 2px solid var(--teal);
  border-radius: 50%;
}

.activity-copy strong,
.activity-copy span {
  display: block;
}

.activity-copy strong {
  font-size: 11px;
  line-height: 1.5;
}

.activity-copy span {
  margin-top: 3px;
  color: #8696a3;
  font-size: 9px;
}

.phase-badge {
  padding: 5px 8px;
  border-radius: 99px;
  color: #7a8b99;
  background: #f0f4f5;
  font-size: 9px;
}

.phase-badge.is-live {
  color: #177664;
  background: var(--teal-soft);
}

.roadmap-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(90px, 1fr));
  gap: 0;
  overflow-x: auto;
  padding: 9px 0 2px;
}

.roadmap-step {
  min-width: 96px;
  position: relative;
  padding-right: 10px;
}

.roadmap-step::after {
  content: "";
  position: absolute;
  left: 24px;
  right: -2px;
  top: 12px;
  height: 1px;
  background: #dce5e9;
}

.roadmap-step:last-child::after {
  display: none;
}

.roadmap-step > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  border: 1px solid #d6e0e4;
  border-radius: 50%;
  color: #81919f;
  background: var(--surface);
  font-family: Consolas, monospace;
  font-size: 9px;
}

.roadmap-step.is-done > span {
  color: white;
  border-color: var(--teal);
  background: var(--teal);
}

.roadmap-step.is-current > span {
  color: white;
  border-color: var(--navy-2);
  background: var(--navy-2);
  box-shadow: 0 0 0 4px rgba(16, 41, 65, 0.08);
}

.roadmap-step strong,
.roadmap-step small {
  display: block;
}

.roadmap-step strong {
  margin-top: 10px;
  font-size: 10px;
}

.roadmap-step small {
  margin-top: 3px;
  color: #8d9ca7;
  font-size: 8px;
}

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

.section-intro h2 {
  font-size: 24px;
}

.section-intro p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.flow-chip {
  padding: 8px 11px;
  border: 1px solid #dce7e9;
  border-radius: 9px;
  color: #587180;
  background: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  white-space: nowrap;
}

.section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.operation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 13px;
}

.operation-summary > div {
  padding: 15px 17px;
  border: 1px solid rgba(19, 38, 59, 0.07);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.operation-summary span,
.operation-summary small {
  display: block;
  color: var(--ink-soft);
  font-size: 9px;
}

.operation-summary strong {
  display: block;
  margin: 7px 0;
  color: var(--navy-2);
  font-family: "Bahnschrift", Consolas, monospace;
  font-size: 23px;
}

.operation-summary small {
  color: #91a0aa;
}

.section-panel {
  margin-top: 13px;
}

.panel-heading-padded {
  padding: 17px 17px 0;
  margin-bottom: 8px;
}

.table-note {
  padding-top: 5px;
  font-size: 9px;
  text-align: right;
}

.two-column-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.compact-list {
  padding: 4px 17px 16px;
}

.compact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f3;
}

.compact-row:last-child {
  border-bottom: 0;
}

.compact-row-main {
  min-width: 0;
}

.compact-row-main strong,
.compact-row-main span {
  display: block;
}

.compact-row-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.compact-row-main span {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.5;
}

.compact-row-side {
  display: flex;
  align-items: center;
  gap: 7px;
}

.source-tag {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 0 7px;
  border-radius: 6px;
  color: #597182;
  background: #f0f4f5;
  font-size: 8px;
  white-space: nowrap;
}

.quality-qualified {
  color: #177664;
  background: var(--teal-soft);
}

.quality-concession {
  color: #9b7422;
  background: var(--yellow-soft);
}

.quality-rejected {
  color: var(--red);
  background: var(--red-soft);
}

.quality-not_required {
  color: #526b7a;
  background: #eef3f5;
}

.legend {
  display: flex;
  gap: 15px;
  padding-bottom: 3px;
  color: var(--ink-soft);
  font-size: 10px;
}

.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
}

.dot.ready {
  background: var(--teal);
}

.dot.shortage {
  background: var(--orange);
}

.dot.pending {
  background: var(--blue);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.filter-tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 10px;
  background: #f1f5f6;
}

.filter-tabs button {
  min-height: 31px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  color: #6f8290;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.filter-tabs button.is-active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(11, 31, 51, 0.08);
}

.search-field {
  min-width: 230px;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: #8a9aa6;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
}

.table-panel {
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  padding: 13px 16px;
  color: #8a9aa6;
  background: #f8fafb;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f3;
  font-size: 11px;
  vertical-align: middle;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:hover {
  background: #fbfcfc;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.table-primary {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.table-secondary {
  display: block;
  margin-top: 4px;
  color: #8494a0;
  font-size: 9px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.status-ready {
  color: #177664;
  background: var(--teal-soft);
}

.status-shortage {
  color: #b45f26;
  background: var(--orange-soft);
}

.status-pending {
  color: #2869aa;
  background: var(--blue-soft);
}

.status-sent {
  color: #177664;
  background: var(--teal-soft);
}

.status-failed {
  color: var(--red);
  background: var(--red-soft);
}

.status-resolved {
  color: #687b89;
  background: #eef2f4;
}

.status-issued,
.status-fulfilled,
.status-completed,
.status-returned,
.status-closed,
.status-cancelled {
  color: #526f87;
  background: #eaf0f4;
}

.status-received,
.status-in_inspection,
.status-preparing,
.status-prepared,
.status-ordered,
.status-open {
  color: #2869aa;
  background: var(--blue-soft);
}

.status-in_transit,
.status-arrived {
  color: #177664;
  background: var(--teal-soft);
}

.status-pending_return,
.status-needs_followup,
.status-return_pending {
  color: #b45f26;
  background: var(--orange-soft);
}

.status-withdrawn {
  color: #718590;
  background: #eef2f4;
}

.status-pending_config,
.status-sending {
  color: #9b7422;
  background: var(--yellow-soft);
}

.status-pending_identity {
  color: #9a4a0d;
  background: var(--orange-soft);
}

.status-expired,
.status-superseded {
  color: #718590;
  background: #eef2f4;
}

.status-detail {
  display: block;
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 9px;
  white-space: nowrap;
}

.mono {
  font-family: Consolas, "SFMono-Regular", monospace;
}

.muted {
  color: var(--ink-soft);
}

.danger-text {
  color: #b45f26;
  font-weight: 700;
}

.action-stack {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.row-action {
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid #dce5e9;
  border-radius: 7px;
  color: #526879;
  background: white;
  cursor: pointer;
  font-size: 9px;
  white-space: nowrap;
}

.row-action:hover {
  border-color: #bccbd2;
  color: var(--ink);
}

.empty-state {
  padding: 60px 20px;
  text-align: center;
  color: var(--ink-soft);
}

.empty-state > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 50%;
  color: #8ca0ad;
  background: #f0f4f5;
  font-size: 20px;
}

.empty-state strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.empty-state p {
  margin: 6px 0 0;
  font-size: 10px;
}

.empty-state.compact {
  padding: 30px 10px;
}

.inventory-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.inventory-summary > div {
  padding: 16px;
  border: 1px solid rgba(19, 38, 59, 0.07);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.inventory-summary span,
.inventory-summary strong {
  display: block;
}

.inventory-summary span {
  color: var(--ink-soft);
  font-size: 10px;
}

.inventory-summary strong {
  margin-top: 8px;
  font-family: "Bahnschrift", Consolas, monospace;
  font-size: 20px;
}

.inventory-summary .inventory-rule {
  grid-column: span 4;
  color: #e1f3ee;
  border-color: transparent;
  background: linear-gradient(120deg, #13344f, #1b5264);
}

.inventory-summary .inventory-rule span {
  color: #9eb8c4;
}

.inventory-summary .inventory-rule strong {
  margin-top: 10px;
  font-family: inherit;
  font-size: 14px;
}

.notice-panel {
  min-height: 45px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--yellow-soft);
  color: #765b23;
  font-size: 11px;
}

.notice-panel.is-ready {
  color: #176c5d;
  background: var(--teal-soft);
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-card {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: start;
  padding: 17px;
  border: 1px solid rgba(19, 38, 59, 0.075);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.notification-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--orange);
  background: var(--orange-soft);
  font-weight: 800;
}

.notification-card.is-workflow-reminder .notification-icon {
  color: #2869aa;
  background: var(--blue-soft);
}

.notification-copy h3 {
  margin: 0;
  font-size: 13px;
}

.notification-copy p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}

.notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
  color: #8797a3;
  font-size: 9px;
}

.notification-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

.modal {
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
}

.modal::backdrop {
  background: rgba(8, 23, 37, 0.58);
  backdrop-filter: blur(4px);
}

.modal-card {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(5, 18, 30, 0.25);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.modal-head h2 {
  margin: 5px 0 0;
  font-size: 22px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  color: #657987;
  background: #f2f5f6;
  cursor: pointer;
  font-size: 20px;
}

.modal-copy {
  margin: 12px 0 14px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.format-hint {
  margin-bottom: 14px;
  padding: 9px 11px;
  overflow-x: auto;
  border: 1px solid #e4eaed;
  border-radius: 8px;
  background: #f8fafb;
}

.format-hint code {
  color: #5a6e7e;
  font-size: 9px;
  white-space: nowrap;
}

.template-download-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -3px 0 14px;
}

.template-download-row .button {
  min-height: 33px;
  padding-inline: 11px;
  font-size: 9px;
  text-decoration: none;
}

.template-download-row > span {
  color: #7f919d;
  font-size: 9px;
}

.inventory-file-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px dashed #b8cbd2;
  border-radius: 11px;
  background: #f7fafb;
  cursor: pointer;
}

.inventory-file-picker:hover {
  border-color: var(--teal);
  background: #f1faf7;
}

.inventory-file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.inventory-file-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #e9f8f3;
  background: var(--navy-2);
  font-size: 17px;
}

.inventory-file-picker strong,
.inventory-file-picker small {
  display: block;
}

.inventory-file-picker strong {
  color: var(--ink);
  font-size: 10px;
}

.inventory-file-picker small {
  margin-top: 3px;
  color: #80929e;
  font-size: 9px;
}

.modal-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: #8b9ba6;
  font-size: 8px;
}

.modal-divider::before,
.modal-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e7edef;
}

.extra-field-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.extra-field-list > div {
  padding: 10px 12px;
  border: 1px solid #e4ebee;
  border-radius: 9px;
  background: #f8fafb;
}

.extra-field-list span,
.extra-field-list strong {
  display: block;
}

.extra-field-list span {
  color: #8394a0;
  font-size: 8px;
}

.extra-field-list strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  font-size: 10px;
}

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

.field > span {
  color: #607484;
  font-size: 10px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dce5e9;
  border-radius: 9px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  font-size: 11px;
}

.field input {
  min-height: 39px;
}

.field input[readonly] {
  color: #5f7482;
  background: #f3f6f7;
  cursor: not-allowed;
}

.field select {
  min-height: 39px;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
  line-height: 1.6;
}

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

.field-wide {
  grid-column: span 2;
}

.field.field-check {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 4px 8px;
  padding: 11px 12px;
  border: 1px solid #dce6ea;
  border-radius: 9px;
  background: #f8fafb;
}

.field.field-check input {
  width: 16px;
  min-height: 16px;
  margin: 1px 0 0;
}

.field.field-check > span {
  color: #425c6d;
  font-size: 10px;
}

.field.field-check > small {
  grid-column: 2;
  color: #8495a0;
  font-size: 8px;
  line-height: 1.55;
}

.field > small {
  color: #8495a0;
  font-size: 8px;
  line-height: 1.55;
}

.directory-picker {
  position: relative;
}

.directory-picker > label {
  color: #607484;
  font-size: 10px;
  font-weight: 600;
}

.directory-search-box {
  position: relative;
}

.directory-search-box input {
  padding-right: 68px;
}

.directory-provider {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  padding: 3px 7px;
  border-radius: 999px;
  color: #216d65;
  background: #e5f6f1;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.directory-provider[data-directory-provider="offline"] {
  color: #7b6950;
  background: #f3eee6;
}

.directory-results {
  position: absolute;
  z-index: 20;
  top: 58px;
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #d7e3e5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(18, 41, 55, 0.16);
}

.directory-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.directory-result:hover,
.directory-result:focus-visible {
  background: #f1f7f6;
  outline: none;
}

.directory-result-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: #fff;
  background: #246b70;
  font-size: 11px;
  font-weight: 800;
}

.directory-result-copy {
  min-width: 0;
  flex: 1;
}

.directory-result-copy strong,
.directory-result-copy small {
  display: block;
}

.directory-result-copy strong {
  font-size: 10px;
}

.directory-result-copy small {
  margin-top: 3px;
  overflow: hidden;
  color: #7a8d98;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-result-source {
  flex: 0 0 auto;
  color: #2f776d;
  font-size: 8px;
  font-weight: 700;
}

.directory-picker > small[data-directory-status][data-tone="success"] {
  color: #246f63;
}

.directory-picker > small[data-directory-status][data-tone="warning"] {
  color: #8a641e;
}

.directory-picker > small[data-directory-status][data-tone="error"] {
  color: #a4493e;
}

.permission-list {
  display: grid;
  gap: 7px;
  grid-column: span 2;
}

.permission-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: 1px solid #e2e9ec;
  border-radius: 8px;
  background: #f8fafb;
}

.permission-row strong {
  color: #294556;
  font-size: 10px;
}

.permission-row span {
  color: #718590;
  font-size: 8px;
  text-align: right;
}

.form-section-label {
  grid-column: span 2;
  margin: 4px 0 -3px;
  padding-bottom: 6px;
  border-bottom: 1px solid #edf1f3;
  color: #7d8f9c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.form-note {
  grid-column: span 2;
  padding: 10px 12px;
  border-radius: 9px;
  color: #647987;
  background: #f4f7f8;
  font-size: 9px;
  line-height: 1.65;
}

.form-note.is-warning {
  color: #815c22;
  background: var(--yellow-soft);
}

.button-warning {
  color: #7a4b23;
  border-color: #efd7c0;
  background: var(--orange-soft);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.choice-row label {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #dce5e9;
  border-radius: 9px;
  color: #607484;
  background: #fff;
  cursor: pointer;
  font-size: 10px;
}

.choice-row label:has(input:checked) {
  color: #176c5d;
  border-color: #a8d8ce;
  background: var(--teal-soft);
}

.choice-row input {
  accent-color: var(--teal);
}

.action-summary-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 15px;
}

.action-summary-box > div {
  padding: 10px;
  border-radius: 9px;
  background: #f4f7f8;
}

.action-summary-box span,
.action-summary-box strong {
  display: block;
}

.action-summary-box span {
  color: #8395a1;
  font-size: 8px;
}

.action-summary-box strong {
  margin-top: 5px;
  font-size: 11px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 22px;
}

.loading-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: #dce9ef;
  background: rgba(8, 23, 37, 0.62);
  backdrop-filter: blur(3px);
  font-size: 11px;
}

.loading-layer[hidden] {
  display: none;
}

.loader {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.17);
  border-top-color: var(--teal-bright);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 110;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
}

.toast {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  color: #eff6f8;
  background: #102941;
  box-shadow: 0 15px 45px rgba(8, 23, 37, 0.22);
  font-size: 11px;
  line-height: 1.55;
  animation: toast-in 220ms ease both;
}

.toast.is-error {
  background: #7b3433;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  background: var(--canvas);
}

.login-brand-panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 44px clamp(34px, 6vw, 92px);
  color: #eff7f6;
  background:
    radial-gradient(circle at 90% 10%, rgba(53, 197, 166, 0.2), transparent 25rem),
    linear-gradient(145deg, #0b1f33 10%, #102c44 70%, #13374d);
}

.login-brand-panel::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  right: -185px;
  bottom: -185px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.025), 0 0 0 120px rgba(255, 255, 255, 0.015);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
  z-index: 1;
}

.login-brand strong {
  display: block;
  font-size: 25px;
  letter-spacing: 0.14em;
}

.login-brand small {
  display: block;
  margin-top: 3px;
  color: #8398a9;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.login-message {
  max-width: 670px;
  position: relative;
  z-index: 1;
}

.login-message .eyebrow {
  color: var(--teal-bright);
}

.login-message h1 {
  margin-top: 16px;
  font-size: clamp(38px, 5vw, 67px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

.login-message p {
  max-width: 560px;
  margin: 24px 0 0;
  color: #a9bec9;
  font-size: 15px;
  line-height: 1.9;
}

.login-route {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
  color: #8fa6b5;
  font-size: 11px;
}

.login-route i {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(53, 197, 166, 0.2), var(--teal-bright));
}

.login-action-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 38px;
  background:
    radial-gradient(circle at 100% 0, rgba(53, 197, 166, 0.11), transparent 22rem),
    #f4f7f8;
}

.login-card {
  width: min(410px, 100%);
  padding: 36px;
  border: 1px solid rgba(19, 38, 59, 0.07);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 12px 0 0;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.login-card > p {
  margin: 14px 0 24px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.login-button {
  width: 100%;
  min-height: 48px;
  text-decoration: none;
}

.login-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: #8a9aa6;
  font-size: 9px;
}

.login-note span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.login-foot {
  position: absolute;
  bottom: 22px;
  color: #92a2ae;
  font-size: 9px;
}

.auth-error {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--canvas);
}

.auth-error > section {
  width: min(480px, 100%);
  padding: 35px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-error h1 {
  margin-top: 12px;
}

.auth-error p {
  margin: 13px 0 24px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.auth-error .button {
  text-decoration: none;
}

.supplier-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 4%, rgba(53, 197, 166, 0.12), transparent 26rem),
    linear-gradient(145deg, #f3f7f8, #eaf0f3);
}

.supplier-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(20px, 6vw, 84px);
  color: #edf6f7;
  background: var(--navy);
}

.supplier-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.supplier-brand strong {
  display: block;
  font-size: 22px;
  letter-spacing: 0.13em;
}

.supplier-brand small {
  display: block;
  margin-top: 2px;
  color: #8fa6b4;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.supplier-security {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a8bdc8;
  font-size: 10px;
}

.supplier-security i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 0 4px rgba(53, 197, 166, 0.13);
}

.supplier-main {
  width: min(1180px, calc(100% - 30px));
  min-height: calc(100vh - 130px);
  margin: 0 auto;
  padding: 34px 0 46px;
}

.supplier-state-card {
  min-height: 320px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 36px;
  border-radius: 23px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.supplier-state-card strong {
  font-size: 12px;
}

.supplier-state-card h1 {
  margin: 8px 0 0;
}

.supplier-state-card p {
  max-width: 500px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.8;
}

.supplier-state-card .loader {
  border-color: #d7e2e5;
  border-top-color: var(--teal);
}

.supplier-error-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--orange);
  background: var(--orange-soft);
  font-size: 21px;
  font-weight: 800;
}

.supplier-help {
  padding: 9px 12px;
  border-radius: 8px;
  background: #f3f6f7;
}

.supplier-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.supplier-intro h1 {
  margin-top: 7px;
  font-size: clamp(27px, 4vw, 40px);
}

.supplier-intro p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
}

.supplier-order-number {
  min-width: 210px;
  padding: 11px 14px;
  border: 1px solid #dbe4e8;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  text-align: right;
}

.supplier-order-number span,
.supplier-order-number strong {
  display: block;
}

.supplier-order-number span {
  color: #81929e;
  font-size: 8px;
}

.supplier-order-number strong {
  margin-top: 4px;
  font-family: Consolas, monospace;
  font-size: 13px;
}

.supplier-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 14px;
}

.supplier-summary > div {
  min-height: 108px;
  padding: 15px 17px;
  border: 1px solid rgba(19, 38, 59, 0.07);
  border-radius: 14px;
  background: var(--surface);
}

.supplier-summary span,
.supplier-summary strong,
.supplier-summary small {
  display: block;
}

.supplier-summary span {
  color: #7f919e;
  font-size: 9px;
}

.supplier-summary strong {
  margin: 15px 0 5px;
  font-size: 13px;
}

.supplier-summary small {
  color: #8597a4;
  font-size: 8px;
}

.supplier-status-card {
  color: #eaf7f4;
  border-color: transparent !important;
  background: linear-gradient(145deg, #12364e, #175a63) !important;
}

.supplier-status-card span,
.supplier-status-card small {
  color: #9eb8c1;
}

.supplier-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.45fr);
  gap: 14px;
}

.supplier-panel,
.supplier-note-card {
  border: 1px solid rgba(19, 38, 59, 0.07);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 32px rgba(11, 31, 51, 0.04);
}

.supplier-panel {
  padding: 20px;
}

.supplier-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid #edf1f3;
}

.supplier-panel-head h2 {
  margin: 5px 0 0;
  font-size: 19px;
}

.supplier-aside {
  display: grid;
  align-content: start;
  gap: 12px;
}

.supplier-note-card {
  padding: 18px;
}

.supplier-note-card h3 {
  margin: 7px 0 11px;
  font-size: 15px;
}

.supplier-note-card p,
.supplier-note-card li {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.8;
}

.supplier-note-card ul {
  margin: 0;
  padding-left: 17px;
}

.supplier-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 5px;
}

.supplier-submit-row > span {
  color: #7f919d;
  font-size: 9px;
}

.supplier-footer {
  padding: 0 20px 25px;
  color: #8496a2;
  font-size: 8px;
  text-align: center;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

[hidden] {
  display: none !important;
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 218px minmax(0, 1fr);
  }

  .main-content {
    padding-inline: 24px;
  }

  .clock-block {
    display: none;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .material-flow-heading {
    flex-direction: column;
  }

  .material-flow-summary {
    justify-content: flex-start;
  }

  .material-flow-tools {
    justify-content: flex-start;
  }

  .inventory-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inventory-rule {
    grid-column: span 2 !important;
  }

  .pipeline-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .pipeline-arrow {
    display: none;
  }

  .two-column-panels {
    grid-template-columns: 1fr;
  }

  .supplier-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .supplier-layout {
    grid-template-columns: 1fr;
  }

  .supplier-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .brand {
    padding: 0 4px 13px;
  }

  .brand strong {
    font-size: 20px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .main-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: auto;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 5px;
    min-height: 57px;
    padding: 7px 4px;
    text-align: center;
    font-size: 10px;
  }

  .nav-count,
  .nav-alert {
    display: none;
  }

  .nav-section-label,
  .future-nav,
  .sidebar-foot {
    display: none;
  }

  .main-content {
    padding: 0 14px 35px;
  }

  .material-flow-panel,
  .overview-activity {
    padding: 14px;
  }

  .material-flow-summary span {
    flex: 1 1 140px;
  }

  .workflow-modal {
    width: calc(100vw - 16px);
  }

  .workflow-modal-head {
    padding: 17px 16px 14px;
  }

  .workflow-modal-content {
    max-height: calc(100vh - 132px);
    padding: 12px;
  }

  .workflow-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-detail-summary > div {
    border-right: 1px solid #e7edef;
    border-bottom: 1px solid #e7edef;
  }

  .workflow-detail-summary > div:nth-child(2n) {
    border-right: 0;
  }

  .workflow-detail-summary > div:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .workflow-detail-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .workflow-node-canvas {
    padding-inline: 0;
  }

  .topbar {
    min-height: 96px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 17px 0;
  }

  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .topbar-actions .button {
    flex: 1;
    padding-inline: 9px;
    font-size: 11px;
  }

  .user-chip {
    margin-left: auto;
  }

  .signal-strip {
    align-items: flex-start;
  }

  .signal-route {
    display: none;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .metric-card {
    min-height: 124px;
    padding: 14px;
  }

  .section-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .section-intro h2 {
    font-size: 20px;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-tabs {
    overflow-x: auto;
  }

  .search-field {
    min-width: 0;
  }

  .inventory-summary {
    grid-template-columns: 1fr 1fr;
  }

  .inventory-summary .inventory-rule {
    grid-column: span 2;
  }

  .operation-summary {
    grid-template-columns: 1fr;
  }

  .pipeline-strip {
    grid-template-columns: 1fr 1fr;
  }

  .pipeline-item {
    min-height: 61px;
    padding-inline: 9px;
  }

  .flow-chip {
    white-space: normal;
  }

  .notification-card {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .notification-side {
    grid-column: 2;
    align-items: flex-start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .field-wide,
  .form-section-label,
  .form-note {
    grid-column: span 1;
  }

  .action-summary-box {
    grid-template-columns: 1fr;
  }

  .extra-field-list {
    grid-template-columns: 1fr;
  }

  .modal-card {
    padding: 18px;
  }

  .login-page {
    display: block;
  }

  .login-brand-panel {
    min-height: 44vh;
    padding: 25px;
  }

  .login-message h1 {
    margin-top: 11px;
    font-size: 36px;
  }

  .login-message p {
    margin-top: 14px;
    font-size: 12px;
  }

  .login-route {
    margin-top: 34px;
  }

  .login-action-panel {
    min-height: 56vh;
    align-items: flex-start;
    padding: 24px 18px 60px;
  }

  .login-card {
    padding: 26px 22px;
    margin-top: -34px;
  }

  .supplier-header {
    min-height: 68px;
    padding-inline: 17px;
  }

  .supplier-brand strong {
    font-size: 19px;
  }

  .supplier-security {
    display: none;
  }

  .supplier-main {
    width: min(100% - 24px, 1180px);
    padding-top: 20px;
  }

  .supplier-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .supplier-order-number {
    width: 100%;
    text-align: left;
  }

  .supplier-summary {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .supplier-summary > div {
    min-height: 96px;
    padding: 13px;
  }

  .supplier-panel {
    padding: 15px;
  }

  .supplier-panel-head {
    flex-direction: column;
  }

  .supplier-aside {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .material-flow-panel.is-workflow-maximized {
    inset: 8px;
    padding: 14px;
  }

  .workflow-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .workflow-page-size,
  .workflow-page-buttons {
    justify-content: space-between;
  }

  .workflow-page-numbers {
    justify-content: center;
    flex: 1;
  }
}
