:root {
  --ink: #132f57;
  --ink-soft: #526d91;
  --muted: #667b97;
  --line: #e4ebf2;
  --surface: #ffffff;
  --canvas: #f7f8fc;
  --violet: #074d97;
  --violet-deep: #063b7c;
  --violet-soft: #eaf3fa;
  --blue: #1371b7;
  --orange: #f08a32;
  --rose: #eb5d76;
  --green: #078a4d;
  --lime: #a5c915;
  --focus: #1b8fc5;
  --focus-ring: rgba(27, 143, 197, 0.18);
  --radius-control: 9px;
  --radius-card: 16px;
  --shadow: 0 18px 48px rgba(6, 59, 124, 0.08);
  --shadow-soft: 0 8px 28px rgba(6, 59, 124, 0.06);
  --motion-fast: 140ms;
  --motion-base: 220ms;
  --motion-slow: 320ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  min-width: 1024px;
  text-rendering: optimizeLegibility;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
::selection {
  color: #fff;
  background: #1371b7;
}
.mobile-menu-trigger,
.mobile-sidebar-backdrop {
  display: none;
}

.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: linear-gradient(180deg, #083f83 0%, #062d65 100%);
  color: #dfeaff;
  padding: 24px 14px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 26px;
  color: white;
}
.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
}
.brand-symbol {
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(4, 67, 111, 0.1);
  border-radius: 50%;
  background: #0a438c;
  box-shadow:
    inset -7px -8px 12px rgba(1, 43, 106, 0.35),
    inset 3px 3px 5px rgba(255, 255, 255, 0.38),
    0 5px 11px rgba(0, 31, 83, 0.16);
}
.brand-symbol i {
  position: absolute;
  display: block;
  pointer-events: none;
}
.mark-blue {
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at 78% 68%,
      rgba(31, 173, 211, 0.75) 0 2%,
      rgba(20, 124, 185, 0.25) 9%,
      transparent 19%
    ),
    radial-gradient(
      ellipse at 31% 84%,
      #1776b5 0 4%,
      #0c519c 39%,
      #083f87 73%,
      #053675 100%
    );
}
.mark-blue::after {
  content: "";
  position: absolute;
  width: 34%;
  height: 15%;
  left: 12%;
  bottom: 8%;
  border-radius: 50%;
  background: rgba(57, 152, 206, 0.2);
  filter: blur(4px);
  transform: rotate(17deg);
}
.mark-green {
  width: 119%;
  height: 69%;
  left: -14%;
  top: -8%;
  border-radius: 45% 55% 45% 55% / 51% 58% 42% 49%;
  background: radial-gradient(
    circle at 57% 65%,
    #cae01f 0 4%,
    #91c31f 23%,
    #3ca13d 50%,
    #128947 76%,
    #08783f 100%
  );
  box-shadow:
    inset -8px -8px 12px rgba(0, 79, 51, 0.18),
    inset 6px 3px 9px rgba(255, 255, 255, 0.13);
}
.mark-green::after {
  content: "";
  position: absolute;
  width: 43%;
  height: 18%;
  left: 25%;
  top: 8%;
  border-radius: 50%;
  background: rgba(221, 244, 130, 0.18);
  filter: blur(5px);
  transform: rotate(-10deg);
}
.mark-swoosh {
  width: 121%;
  height: 57%;
  left: -18%;
  top: 18%;
  border-radius: 0 0 51% 63% / 0 0 72% 86%;
  border-bottom: 7px solid #fff;
  transform: rotate(-10deg);
  z-index: 2;
}
.mark-swoosh::before {
  content: "";
  position: absolute;
  width: 18%;
  height: 73%;
  left: 2%;
  top: 5%;
  border-left: 5px solid #fff;
  border-radius: 52%;
  transform: rotate(7deg);
}
.mark-swoosh-shadow {
  width: 112%;
  height: 53%;
  left: -11%;
  top: 24%;
  border-radius: 0 0 53% 66% / 0 0 72% 88%;
  border-bottom: 3px solid #b9dfc4;
  transform: rotate(-10deg);
  z-index: 3;
}
.mark-ribbon {
  width: 9%;
  height: 65%;
  right: 25%;
  top: 29%;
  background: linear-gradient(180deg, #f9fdf8, #dceede);
  transform: skewY(1deg);
  z-index: 4;
  box-shadow: -5px 0 0 -3px rgba(255, 255, 255, 0.94);
}
.mark-ribbon-green {
  width: 4.5%;
  height: 63%;
  right: 25%;
  top: 31%;
  background: linear-gradient(180deg, #cce9c8, #8fc47d);
  transform: skewY(1deg);
  z-index: 5;
}
.brand-symbol--large {
  width: 104px;
  height: 104px;
  margin: 0 auto 8px;
}
.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0.4px;
}
.brand small {
  display: block;
  color: #aac4e7;
  font-size: 11px;
  margin-top: 3px;
}
.nav-label {
  color: #8fb0d8;
  font-size: 11px;
  padding: 0 10px 10px;
  letter-spacing: 0.9px;
}
.nav {
  display: grid;
  gap: 4px;
}
.nav-button {
  border: 0;
  background: transparent;
  color: #c3d5eb;
  width: 100%;
  text-align: left;
  padding: 11px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: 0.18s ease;
}
.nav-button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
}
.nav-button.active {
  background: linear-gradient(
    110deg,
    rgba(79, 173, 105, 0.42),
    rgba(27, 131, 101, 0.18)
  );
  color: white;
  box-shadow: inset 0 0 0 1px rgba(205, 240, 177, 0.16);
}
.nav-icon {
  width: 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}
.sidebar-spacer {
  flex: 1;
}
.account {
  border: 0;
  border-top: 1px solid rgba(222, 240, 255, 0.16);
  background: transparent;
  width: 100%;
  color: inherit;
  padding: 16px 9px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c4db39, #21a260);
  color: #063b45;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.account strong,
.account small {
  display: block;
}
.account strong {
  color: #eef0ff;
  font-size: 13px;
}
.account small {
  color: #a7c3e3;
  font-size: 11px;
  margin-top: 3px;
}
.sidebar-release {
  padding: 7px 16px 0;
  color: #789aba;
  font:
    9px/1.4 Consolas,
    "Microsoft YaHei",
    sans-serif;
  letter-spacing: 0.2px;
  text-align: center;
  overflow-wrap: anywhere;
}

.main {
  min-width: 0;
}
.topbar {
  height: 72px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}
.crumb strong {
  color: var(--ink);
}
.crumb-sep {
  color: #c7cbe0;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.date-pill,
.notification {
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 7px;
}
.notification {
  width: 34px;
  height: 34px;
  justify-content: center;
  background: #f4f5fb;
  border-radius: 10px;
  position: relative;
}
.notification::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--rose);
  border: 2px solid white;
  border-radius: 50%;
  top: 7px;
  right: 7px;
}
.content {
  padding: 30px 34px 42px;
  max-width: 1600px;
  margin: 0 auto;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}
.eyebrow {
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -0.7px;
}
.page-heading p {
  color: var(--ink-soft);
  margin: 8px 0 0;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.button {
  border: 1px solid var(--line);
  padding: 9px 13px;
  background: white;
  color: var(--ink);
  border-radius: var(--radius-control);
  font-weight: 700;
  transition: 0.16s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  border-color: #bed5e5;
}
.button.primary {
  border-color: var(--violet);
  background: var(--violet);
  color: white;
  box-shadow: 0 7px 16px rgba(7, 77, 151, 0.2);
}
.button.primary:hover {
  background: var(--violet-deep);
}
.button.ghost {
  background: transparent;
}
.button.danger {
  color: var(--rose);
  background: #fff7f8;
  border-color: #fde1e7;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid #eef0f6;
  border-radius: var(--radius-card);
  padding: 19px;
  box-shadow: 0 5px 20px rgba(27, 33, 68, 0.025);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  right: -34px;
  top: -35px;
  opacity: 0.12;
  background: currentColor;
}
.stat-card.violet {
  color: var(--violet);
}
.stat-card.blue {
  color: var(--blue);
}
.stat-card.green {
  color: var(--green);
}
.stat-card.orange {
  color: var(--orange);
}
.stat-card.rose {
  color: var(--rose);
}
.stat-card span {
  color: var(--ink-soft);
  display: block;
  font-weight: 650;
}
.stat-value {
  margin: 11px 0 8px;
  color: var(--ink);
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.8px;
}
.stat-value small {
  font-size: 12px;
  margin-left: 5px;
  color: var(--muted);
  letter-spacing: 0;
}
.stat-card em {
  color: var(--green);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
}
.stat-card.orange em {
  color: #d77920;
}
.stat-card.rose em {
  color: #d44e67;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 20px;
  margin-bottom: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid #edf0f6;
  border-radius: var(--radius-card);
  box-shadow: 0 5px 20px rgba(27, 33, 68, 0.025);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 19px 20px 14px;
}
.card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}
.card-subtitle {
  color: var(--muted);
  font-size: 12px;
}
.link-button {
  color: var(--violet);
  font-size: 12px;
  background: transparent;
  border: 0;
  font-weight: 750;
}
.chart {
  height: 255px;
  padding: 4px 20px 18px;
  display: flex;
  align-items: end;
  gap: 16px;
  border-bottom: 1px solid #f3f4f8;
}
.chart-bar {
  flex: 1;
  display: grid;
  align-content: end;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  min-width: 0;
}
.bar-shell {
  height: 185px;
  display: flex;
  align-items: end;
}
.bar {
  width: 100%;
  min-height: 8px;
  background: linear-gradient(180deg, #35a9cf, #0758a0);
  border-radius: 7px 7px 3px 3px;
  transition: 0.2s;
  position: relative;
}
.bar:hover {
  filter: brightness(1.08);
}
.bar.active {
  background: linear-gradient(180deg, #f2a963, #ee7b25);
}
.bar::before {
  content: attr(data-amount);
  position: absolute;
  top: -21px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--ink-soft);
  opacity: 0;
  transition: 0.18s;
  white-space: nowrap;
}
.bar:hover::before {
  opacity: 1;
}

.task-list {
  padding: 0 20px 10px;
}
.task {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid #f0f2f7;
}
.task-icon {
  width: 32px;
  height: 32px;
  background: var(--violet-soft);
  color: var(--violet);
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-weight: 800;
}
.task-title {
  font-weight: 750;
  font-size: 13px;
}
.task-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.task-action {
  font-size: 12px;
  color: var(--violet);
  font-weight: 800;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 4px 0 0;
}
.shortcut {
  border: 1px solid #edf0f6;
  background: white;
  border-radius: 14px;
  padding: 15px;
  text-align: left;
  color: var(--ink);
  transition: 0.18s ease;
}
.shortcut:hover {
  box-shadow: var(--shadow-soft);
  border-color: #b9d7e6;
  transform: translateY(-2px);
}
.shortcut .shortcut-icon {
  display: block;
  font-size: 20px;
  margin-bottom: 13px;
}
.shortcut strong {
  display: block;
  font-size: 13px;
}
.shortcut span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
}
.search {
  width: 250px;
  position: relative;
}
.search span {
  position: absolute;
  left: 11px;
  top: 9px;
  color: #71839b;
}
.search input,
.field input,
.field select {
  width: 100%;
  border: 1px solid #d8e2ea;
  background: white;
  border-radius: var(--radius-control);
  padding: 9px 10px;
  outline: none;
  color: var(--ink);
  transition: 0.15s;
}
.search input {
  padding-left: 32px;
}
.field input:focus,
.field select:focus,
.search input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.select {
  border: 1px solid #e2e5ef;
  padding: 9px 30px 9px 11px;
  border-radius: 9px;
  background: white;
  color: var(--ink-soft);
}
.data-card {
  overflow: hidden;
}
.table-wrap {
  overflow-x: auto;
}
.mobile-table-scroll-hint {
  display: none;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 850px;
}
.data-table th {
  color: #667991;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.42px;
  background: #f7fafc;
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid #e4ebf2;
  white-space: nowrap;
}
.data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #edf2f5;
  color: #3c516c;
}
.data-table tbody tr:hover {
  background: #f5fafb;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.item-title {
  color: var(--ink);
  font-weight: 750;
}
.item-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.money {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  color: var(--ink);
}
.actions-cell {
  white-space: nowrap;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--violet);
  font-weight: 750;
  padding: 0 6px;
}
.status {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  font-size: 11px;
  padding: 4px 8px;
  font-weight: 800;
}
.status.green {
  color: #16845e;
  background: #eaf8f2;
}
.status.blue {
  color: #276fcb;
  background: #ecf4ff;
}
.status.orange {
  color: #c66d1d;
  background: #fff4e9;
}
.status.gray {
  color: #69738d;
  background: #f0f2f6;
}
.status.rose {
  color: #c54461;
  background: #fff0f3;
}
.empty {
  padding: 45px;
  text-align: center;
  color: var(--muted);
}

.picking-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.picking-card {
  padding: 18px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.picking-card.deadline-risk {
  border-color: #f0b8a8;
  box-shadow: 0 8px 24px rgba(211, 78, 77, 0.08);
}
.picking-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.picking-id {
  color: var(--violet);
  font-size: 12px;
  font-weight: 850;
}
.picking-customer {
  margin: 7px 0 2px;
  font-size: 17px;
}
.picking-meta {
  color: var(--muted);
  font-size: 12px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
  margin: 20px 0 8px;
}
.progress-track {
  height: 7px;
  background: #e7eef3;
  border-radius: 99px;
  overflow: hidden;
}
.progress-value {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #148bc2, #087f68);
}
.picking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}
.deadline {
  color: var(--orange);
  font-weight: 700;
  font-size: 12px;
}
.deadline.soon {
  color: #d96d1f;
}
.deadline.overdue {
  color: var(--rose);
}
.picking-difference-summary {
  margin: 13px 0 -2px;
  padding: 8px 10px;
  display: grid;
  gap: 2px;
  border-left: 3px solid #e59a3e;
  background: #fff8ec;
  color: #9b651f;
  font-size: 11px;
}
.picking-completion-intro {
  margin-bottom: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-left: 4px solid #20a77b;
  background: #f1faf7;
  color: #4b7166;
}
.picking-completion-intro strong,
.picking-completion-intro span {
  display: block;
}
.picking-completion-intro strong {
  color: #26705a;
  font-size: 13px;
}
.picking-result-table {
  min-width: 1420px;
}
.picking-result-table input,
.picking-result-table select {
  min-width: 92px;
}
.picking-result-table td:nth-child(2) {
  min-width: 220px;
}
.picking-result-table tr.has-difference {
  background: #fff7ee;
}
.picking-result-table tr.has-difference [data-shortage] {
  color: #ce6129;
}
.picking-confirmation {
  margin-top: 15px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: end;
  gap: 14px;
  border: 1px solid #d7e6e8;
  background: #f8fbfb;
}
.picking-confirmation > label {
  align-self: center;
  color: #446674;
  font-weight: 700;
}
.picking-confirmation input[type="checkbox"] {
  width: auto;
  margin-right: 6px;
  accent-color: #168bc7;
}
.picking-confirmation .has-difference {
  color: #bd6324;
  font-weight: 750;
}
.stock-number.low {
  color: var(--rose);
}
.stock-number {
  font-weight: 800;
  color: var(--ink);
}
.stock-visual {
  width: 110px;
}
.stock-visual .progress-track {
  height: 6px;
}
.stock-visual .progress-value {
  background: linear-gradient(90deg, #38b987, #28a579);
}
.stock-visual.low .progress-value {
  background: linear-gradient(90deg, #ff9c6a, #e95b75);
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.report-card {
  padding: 20px;
  cursor: pointer;
  transition: 0.18s;
}
.report-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-color: #b6d6e9;
}
.report-card.report-active {
  border-color: #29915d;
  box-shadow: 0 0 0 3px rgba(7, 138, 77, 0.1);
}
.report-active .report-icon {
  background: #eaf8f0;
  color: var(--green);
}
.report-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--violet);
  background: var(--violet-soft);
  font-size: 18px;
}
.report-card h3 {
  margin: 16px 0 7px;
  font-size: 15px;
}
.report-card p {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}
.report-group {
  font-size: 11px;
  font-weight: 800;
  color: var(--violet);
  margin-top: 15px;
  display: inline-block;
}
.insight {
  padding: 20px;
  background:
    radial-gradient(
      circle at 90% 18%,
      rgba(181, 210, 39, 0.72),
      transparent 25%
    ),
    linear-gradient(130deg, #063b7c, #087e4c);
  color: white;
  overflow: hidden;
  position: relative;
}
.insight::after {
  content: "✦";
  color: rgba(255, 255, 255, 0.12);
  font-size: 150px;
  position: absolute;
  right: -18px;
  bottom: -58px;
}
.insight h2 {
  position: relative;
  font-size: 20px;
  margin: 6px 0 10px;
}
.insight p {
  position: relative;
  color: #dcf5d2;
  max-width: 460px;
  line-height: 1.7;
}
.insight .button {
  position: relative;
  border-color: white;
  background: white;
  color: #07518d;
}

.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.settings-card {
  padding: 20px;
}
.settings-card h3 {
  margin: 3px 0 8px;
}
.settings-card p {
  color: var(--muted);
  margin: 0 0 15px;
  font-size: 12px;
  line-height: 1.6;
}
.settings-icon {
  font-size: 20px;
}

body.modal-open {
  overflow: hidden;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 53, 0.44);
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 20px;
  backdrop-filter: blur(3px);
  overscroll-behavior: contain;
}
.modal {
  width: min(610px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: white;
  border-radius: 17px;
  box-shadow: 0 30px 80px rgba(15, 18, 45, 0.22);
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 23px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.modal-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}
.modal.is-dirty .modal-head h2::after {
  content: "未保存";
  padding: 2px 6px;
  border: 1px solid #efd6a9;
  border-radius: 999px;
  color: #a56b1f;
  background: #fff9ec;
  font-size: 10px;
  font-weight: 700;
}
.modal-close {
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3f4f8;
  color: var(--ink-soft);
  cursor: pointer;
}
.form {
  padding: 21px 23px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}
.form-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 22px;
}
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  background: #f7faf9;
}
.login-copy {
  min-height: 100%;
  padding: 42px clamp(42px, 7vw, 104px);
  color: white;
  background:
    radial-gradient(
      circle at 72% 23%,
      rgba(174, 207, 28, 0.9),
      transparent 23%
    ),
    radial-gradient(
      circle at 85% 74%,
      rgba(17, 147, 82, 0.65),
      transparent 29%
    ),
    linear-gradient(135deg, #06336f 0%, #07518d 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 16px;
}
.login-copy-content {
  max-width: 560px;
  margin: auto 0;
}
.login-copy .eyebrow {
  color: #d6eea4;
}
.login-copy h1 {
  margin: 0;
  max-width: 550px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.15;
  letter-spacing: -2px;
}
.login-copy p {
  font-size: 16px;
  color: #d9ecff;
  margin: 22px 0 28px;
  line-height: 1.8;
}
.login-points {
  display: grid;
  gap: 13px;
  color: #f0fff1;
  font-weight: 650;
}
.login-copy small {
  color: #bdd7ed;
}
.login-panel {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 34px;
}
.brand-lockup {
  width: min(210px, 54%);
  margin: 0 auto 17px;
  text-align: center;
  color: #084888;
}
.brand-lockup-cn {
  margin-top: -3px;
  font-weight: 900;
  font-size: clamp(20px, 2vw, 27px);
  letter-spacing: 1.2px;
  white-space: nowrap;
}
.brand-lockup-en {
  font-family: Georgia, serif;
  font-size: clamp(12px, 1.3vw, 17px);
  letter-spacing: 3.8px;
  margin-left: 4px;
  white-space: nowrap;
}
.login-form {
  width: min(380px, 100%);
  display: grid;
  gap: 19px;
}
.login-form h2 {
  font-size: 26px;
  margin: 4px 0 7px;
  letter-spacing: -0.5px;
}
.login-form p {
  color: var(--muted);
  margin: 0;
}
.login-hint {
  font-size: 12px;
  line-height: 1.6;
  color: #2b6692;
  background: var(--violet-soft);
  border-radius: 9px;
  padding: 10px 11px;
}
.login-submit {
  justify-content: center;
  width: 100%;
  padding: 11px;
}
.login-submit:disabled {
  opacity: 0.65;
  cursor: progress;
}
.password-change-page .login-copy {
  background:
    radial-gradient(
      circle at 74% 21%,
      rgba(178, 211, 38, 0.82),
      transparent 21%
    ),
    radial-gradient(
      circle at 87% 76%,
      rgba(16, 157, 91, 0.58),
      transparent 30%
    ),
    linear-gradient(135deg, #053874, #086694);
}
.password-change-page .login-panel {
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(175, 210, 39, 0.12),
      transparent 30%
    ),
    #f9fcfb;
}
.password-change-logout {
  justify-self: center;
  min-height: 34px;
  color: #647b86;
  cursor: pointer;
}
.password-pending {
  color: #b96c1d;
  font-weight: 750;
}
.migration-hero {
  min-height: 118px;
  padding: 22px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
  background:
    radial-gradient(
      circle at 82% 15%,
      rgba(184, 216, 46, 0.72),
      transparent 24%
    ),
    linear-gradient(120deg, #07518d, #07845b);
}
.migration-hero h2 {
  margin: 4px 0 7px;
  font-size: 23px;
}
.migration-hero p {
  max-width: 780px;
  margin: 0;
  color: #dcefed;
  line-height: 1.65;
}
.migration-hero .eyebrow {
  color: #e0f2a9;
}
.migration-safety {
  min-width: 128px;
  padding: 13px 17px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}
.migration-safety strong,
.migration-safety span {
  display: block;
}
.migration-safety strong {
  font-size: 18px;
}
.migration-safety span {
  margin-top: 4px;
  color: #dff3eb;
  font-size: 11px;
}
.migration-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
}
.migration-form {
  padding: 0 18px 17px;
}
.migration-form .card-head {
  margin: 0 -18px 14px;
}
.migration-form textarea {
  min-height: 180px;
  font-family: Consolas, "Microsoft YaHei", monospace;
}
.migration-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.migration-rules {
  padding: 19px;
  border-top: 3px solid #a9c92c;
}
.migration-rules h3 {
  margin: 0 0 12px;
  color: #285d75;
}
.migration-rules ol {
  margin: 0;
  padding-left: 21px;
  color: #657b86;
  font-size: 12px;
  line-height: 1.75;
}
.migration-preview {
  padding: 20px 22px;
}
.migration-preview .data-table {
  min-width: 560px;
}
.migration-preview-state {
  margin-bottom: 15px;
  padding: 13px 15px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-left: 4px solid #20aa7c;
  background: #effaf6;
  color: #34725f;
}
.migration-preview-state.blocked {
  border-left-color: #e0646e;
  background: #fff3f4;
  color: #a74653;
}
.migration-preview-state strong,
.migration-preview-state span {
  display: block;
}
.migration-error {
  color: #c34857;
}
.migration-warning {
  color: #b36c20;
}
.migration-rollback-note {
  margin-top: 13px;
  padding: 11px 13px;
  display: grid;
  gap: 3px;
  border-left: 3px solid #e0a442;
  background: #fff9ef;
  color: #815f2b;
  font-size: 12px;
}
.brand-lockup {
  width: min(236px, 62%);
  margin-bottom: 19px;
}
.brand-lockup-cn {
  margin-top: -2px;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 950;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.08;
  letter-spacing: 0.4px;
  transform: scaleX(1.025);
}
.brand-lockup-en {
  margin: 5px 0 0 3px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(13px, 1.3vw, 18px);
  line-height: 1;
  letter-spacing: 3.1px;
}
@media (max-width: 860px) {
  .migration-grid {
    grid-template-columns: 1fr;
  }
  .migration-hero {
    align-items: flex-start;
  }
  .migration-safety {
    min-width: 108px;
  }
  .migration-preview-state {
    display: grid;
  }
}
#toast-root {
  position: fixed;
  top: 54px;
  right: 18px;
  z-index: 80;
  width: min(430px, calc(100vw - 32px));
  display: grid;
  gap: 8px;
}
.toast {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 9px;
  padding: 11px 10px 11px 12px;
  border: 1px solid #cfe2df;
  border-left: 4px solid #15906c;
  border-radius: 4px;
  color: #3e5e58;
  background: #f7fcfa;
  box-shadow: 0 13px 36px rgba(20, 55, 70, 0.2);
  animation: in 0.2s ease-out;
}
.toast.warning {
  border-color: #efd7ae;
  border-left-color: #e49a35;
  color: #74562f;
  background: #fffaf2;
}
.toast.error {
  border-color: #edc5ca;
  border-left-color: #d45260;
  color: #743b44;
  background: #fff7f8;
}
.toast-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #15906c;
  font-size: 15px;
  font-weight: 850;
}
.toast.warning .toast-icon {
  background: #e49a35;
}
.toast.error .toast-icon {
  background: #d45260;
}
.toast-copy strong,
.toast-copy span {
  display: block;
}
.toast-copy strong {
  color: inherit;
  font-size: 12px;
}
.toast-copy span {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.55;
}
.toast-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  color: inherit;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.65;
}
.toast-close:hover,
.toast-close:focus-visible {
  background: rgba(68, 95, 101, 0.1);
  opacity: 1;
}
.toast.leaving {
  pointer-events: none;
  animation: toast-out 0.18s ease-in forwards;
}
@keyframes in {
  from {
    transform: translateY(-8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes toast-out {
  to {
    transform: translateX(18px);
    opacity: 0;
  }
}
@media (max-width: 620px) {
  #toast-root {
    top: 52px;
    right: 16px;
  }
  .toast {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
  }
}

@media (max-width: 1250px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .shortcut-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .picking-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 11px;
    padding-right: 11px;
  }
  .topbar {
    padding: 0 24px;
  }
  .content {
    padding: 26px 24px 36px;
  }
  .date-pill span {
    font-size: 12px;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
}

/* Desktop operational theme: retain the original system's compact workflow, with BlueSky brand colours. */
:root {
  --ink: #34495d;
  --ink-soft: #647789;
  --muted: #8391a0;
  --line: #dfe8eb;
  --surface: #fff;
  --canvas: #f3f4f4;
  --violet: #168bc7;
  --violet-deep: #0876b5;
  --violet-soft: #e9f7fb;
  --blue: #168bc7;
  --orange: #ffae55;
  --rose: #e65c68;
  --green: #078a4d;
  --lime: #a9c92c;
}
body {
  min-width: 1024px;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 13px;
}
.shell {
  grid-template-columns: 220px minmax(0, 1fr);
}
.sidebar {
  padding: 0;
  background: #29475b;
  box-shadow: none;
}
.brand {
  position: relative;
  overflow: hidden;
  height: 50px;
  min-height: 50px;
  padding: 7px 12px;
  gap: 9px;
  background: linear-gradient(135deg, #158fcf 0%, #087ebd 55%, #056da9 100%);
}
.brand::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 90px;
  top: -48px;
  right: -39px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.13),
    transparent 58%
  );
  transform: rotate(8deg);
  pointer-events: none;
}
.brand-mark {
  width: 35px;
  height: 35px;
  position: relative;
  z-index: 1;
}
.brand strong {
  position: relative;
  z-index: 1;
  font-size: 14px;
  letter-spacing: 0.2px;
}
.brand small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 1px;
  color: rgba(235, 248, 255, 0.78);
  font-size: 8px;
  letter-spacing: 0.25px;
}
.brand-symbol {
  box-shadow: none;
}
.brand-mark .mark-swoosh {
  border-bottom-width: 3px;
}
.brand-mark .mark-swoosh::before {
  border-left-width: 2px;
}
.brand-mark .mark-swoosh-shadow {
  border-bottom-width: 1px;
}
.brand-mark .mark-ribbon {
  width: 9%;
}
.menu-search {
  flex: 0 0 auto;
  height: 38px;
  margin: 7px 9px 2px;
  padding: 0 8px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(198, 224, 234, 0.16);
  background: rgba(18, 42, 58, 0.24);
  color: #9dbdcc;
}
.menu-search {
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}
.menu-search:focus-within {
  border-color: rgba(95, 193, 220, 0.62);
  background: rgba(13, 37, 53, 0.4);
  box-shadow: 0 0 0 2px rgba(41, 164, 204, 0.1);
}
.menu-search input {
  min-width: 0;
  width: 100%;
  height: 32px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #edf7fa;
  font:
    12px "Microsoft YaHei",
    sans-serif;
}
.menu-search input::placeholder {
  color: #91aebb;
}
.menu-search input::-webkit-search-cancel-button {
  filter: invert(1);
  opacity: 0.55;
}
.menu-search kbd {
  padding: 2px 4px;
  border: 1px solid rgba(211, 233, 240, 0.18);
  border-radius: 2px;
  color: #8faab6;
  font:
    9px Arial,
    sans-serif;
}
.menu-search-empty {
  margin: 9px 12px;
  padding: 12px 8px;
  border: 1px dashed rgba(189, 218, 229, 0.18);
  color: #9bb3be;
  text-align: center;
  font-size: 11px;
}
.nav {
  display: block;
  min-height: 0;
  overflow-y: auto;
  padding: 3px 0 0;
  scrollbar-width: thin;
  scrollbar-color: #5f7886 transparent;
}
.nav-label {
  display: none;
}
.menu-section {
  border-bottom: 1px solid rgba(219, 239, 245, 0.06);
}
.menu-toggle {
  width: 100%;
  height: 47px;
  padding: 0 20px 0 24px;
  border: 0;
  background: transparent;
  color: #d6e2e9;
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 11px;
  transition:
    color var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard);
}
.menu-toggle:hover,
.menu-section.expanded > .menu-toggle,
.menu-section.search-expanded > .menu-toggle {
  background: rgba(18, 41, 57, 0.18);
  color: #fff;
}
.menu-toggle .nav-icon {
  color: #a6c5d5;
  width: 15px;
  font-size: 14px;
}
.menu-toggle b {
  margin-left: auto;
  color: #9bc1d1;
  font-size: 19px;
  font-weight: 400;
  transform: rotate(-90deg);
  transition:
    transform var(--motion-base) var(--ease-emphasized),
    color var(--motion-fast) var(--ease-standard);
}
.menu-section.expanded > .menu-toggle b,
.menu-section.search-expanded > .menu-toggle b {
  transform: rotate(90deg);
}
.menu-children {
  display: none;
  padding: 2px 0 7px;
  background: rgba(19, 43, 60, 0.22);
  transform-origin: top;
}
.menu-section.expanded .menu-children,
.menu-section.search-expanded .menu-children {
  display: grid;
  animation: menu-children-enter var(--motion-base) var(--ease-emphasized) both;
}
.nav-button {
  border-radius: 0;
  min-height: 33px;
  padding: 7px 16px 7px 50px;
  color: #b8ccd8;
  font-size: 12px;
  font-weight: 500;
  gap: 10px;
  transition:
    color var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}
.nav-button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transform: translateX(2px);
}
.nav-button.active {
  background: linear-gradient(
    90deg,
    rgba(28, 157, 211, 0.78),
    rgba(34, 145, 194, 0.22)
  );
  color: white;
  box-shadow: inset 3px 0 0 #b4d335;
}
.nav-button .nav-icon {
  width: 13px;
  font-size: 12px;
  color: #8bb9ce;
}
.menu-searching .menu-toggle {
  height: 35px;
  padding-left: 17px;
  font-size: 11px;
  color: #9fb8c4;
}
.menu-searching .menu-toggle b {
  display: none;
}
.menu-searching .nav-button {
  padding-left: 34px;
}
.menu-shortcut-label {
  margin: 5px 17px 3px 49px;
  padding-top: 7px;
  border-top: 1px solid rgba(214, 234, 242, 0.1);
  color: #7798a8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.nav-button.nav-shortcut {
  min-height: 29px;
  padding-top: 5px;
  padding-bottom: 5px;
  color: #9eb7c3;
  font-size: 11px;
}
.nav-button.nav-shortcut .nav-icon {
  color: #b3d43b;
  font-size: 14px;
}
.nav-button.nav-shortcut:hover {
  color: #fff;
  background: linear-gradient(90deg, rgba(22, 117, 161, 0.3), transparent);
}
.menu-searching .menu-shortcut-label {
  margin-left: 34px;
}
.menu-extension-label {
  color: #8ca9b5;
  letter-spacing: 0.08em;
}
.nav-button.nav-extension .nav-icon {
  color: #65bfd1;
}
.nav-button.nav-extension:hover {
  background: linear-gradient(90deg, rgba(31, 145, 184, 0.24), transparent);
}
.menu-searching .nav-button.menu-search-active {
  color: #fff;
  background: linear-gradient(
    90deg,
    rgba(28, 158, 190, 0.48),
    rgba(43, 154, 91, 0.28)
  );
  box-shadow:
    inset 3px 0 0 #b6d52d,
    inset 0 0 0 1px rgba(224, 246, 189, 0.14);
  outline: 0;
  scroll-margin-block: 8px;
}
.sales-conversion-intro {
  border-top: 3px solid #79b933;
  background: linear-gradient(112deg, #07558e, #087d75);
}
.sales-conversion-intro .eyebrow {
  color: #cfe99a;
}
.sales-conversion-intro h2,
.sales-conversion-intro p {
  color: #fff;
}
.conversion-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #e7f4ee;
  font-size: 11px;
}
.conversion-flow span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}
.conversion-flow i {
  color: #c1da58;
  font-style: normal;
  font-size: 15px;
}
.sales-outbound-intro {
  border-top: 3px solid #3bb99a;
  background: linear-gradient(112deg, #074f88, #087d72);
}
.sales-outbound-intro .eyebrow {
  color: #d8ed89;
}
.sales-outbound-intro h2,
.sales-outbound-intro p {
  color: #fff;
}
@media (max-width: 640px) {
  .conversion-flow {
    align-items: stretch;
    flex-direction: column;
  }
  .conversion-flow i {
    display: none;
  }
  .conversion-flow span {
    border-radius: 7px;
  }
}
.account {
  margin: 0;
  padding: 11px 16px;
  border-top: 1px solid rgba(223, 240, 247, 0.16);
  background: rgba(18, 42, 58, 0.18);
}
.avatar {
  width: 27px;
  height: 27px;
  font-size: 12px;
}
.account strong {
  font-size: 12px;
}
.account small {
  font-size: 10px;
}
.account.account-top {
  width: calc(100% - 18px);
  min-height: 50px;
  margin: 0 9px 4px;
  padding: 7px 9px;
  border: 1px solid rgba(202, 229, 239, 0.12);
  border-left: 3px solid rgba(182, 213, 45, 0.72);
  background: rgba(16, 40, 56, 0.26);
}
.account.account-top:hover {
  border-color: rgba(116, 200, 218, 0.36);
  border-left-color: #b6d52d;
  background: rgba(25, 64, 84, 0.38);
}
.account.account-top:focus-visible {
  outline: 2px solid #67bfd3;
  outline-offset: 1px;
}
.account-top > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.account-top strong,
.account-top small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-top b {
  color: #86aaba;
  font-size: 18px;
  font-weight: 400;
}
.account-caption {
  display: block;
  margin-bottom: 1px;
  color: #7fa4b4;
  font-size: 8px;
  letter-spacing: 0.12em;
}
.topbar {
  height: 42px;
  padding: 0;
  background: #fff;
  border-bottom: 2px solid #1d9ddb;
  box-shadow: none;
  justify-content: space-between;
}
.top-tabs {
  min-width: 0;
  flex: 1 1 auto;
  align-self: stretch;
  display: flex;
  align-items: stretch;
}
.top-nav {
  flex: 0 0 39px;
  width: 39px;
  border: 0;
  border-right: 1px solid #e9eef0;
  background: #fff;
  color: #718494;
  font-size: 24px;
  line-height: 1;
}
.top-nav-next {
  border-right: 0;
  border-left: 1px solid #e9eef0;
}
.top-nav:hover {
  color: #147eb7;
  background: #f5fafc;
}
.top-nav:focus-visible {
  position: relative;
  z-index: 3;
  outline: 2px solid #1d9ddb;
  outline-offset: -3px;
}
.work-tabs-scroll {
  min-width: 0;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}
.work-tab-item {
  flex: 0 0 auto;
  max-width: 170px;
  display: flex;
  align-items: stretch;
  border-right: 1px solid #e5eef1;
  background: #fff;
}
.work-tab {
  min-width: 0;
  max-width: 145px;
  overflow: hidden;
  padding: 0 10px 0 14px;
  border: 0;
  color: #5b7081;
  background: #fff;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-tab.home {
  flex: 0 0 auto;
  padding-inline: 18px;
  border-right: 1px solid #e5eef1;
}
.work-tab-close {
  width: 25px;
  padding: 0 7px 0 2px;
  border: 0;
  color: #91a0a8;
  background: inherit;
  font-size: 15px;
}
.work-tab-item:hover .work-tab-close {
  color: #54717e;
}
.work-tab-item.current,
.work-tab-item.current .work-tab,
.work-tab.active {
  color: #fff;
  background: #1d9ddb;
}
.work-tab-item.current {
  background: #2aaac2;
}
.work-tab-item.current .work-tab,
.work-tab-item.current .work-tab-close {
  color: #fff;
  background: transparent;
}
.top-actions {
  flex: 0 0 auto;
  gap: 0;
  height: 100%;
}
.company-meta {
  align-self: center;
  color: #7a8994;
  font-size: 12px;
  padding-right: 16px;
}
.top-close,
.top-logout {
  border: 0;
  border-left: 1px solid #edf0f1;
  background: #fff;
  color: #7d8a91;
  padding: 0 14px;
  height: 100%;
  font-size: 12px;
}
.top-close:hover,
.top-logout:hover {
  color: #147eb7;
  background: #f6fbfc;
}
.top-logout {
  color: #147eb7;
  font-weight: 700;
}
.close-operation-panel {
  padding: 18px;
}
.close-operation-summary {
  padding: 13px 14px;
  border: 1px solid #d8e7ec;
  border-left: 3px solid #1d9ddb;
  background: #f5fafc;
}
.close-operation-summary span,
.close-operation-summary strong,
.close-operation-summary small {
  display: block;
}
.close-operation-summary span {
  color: #7b8d97;
  font-size: 11px;
}
.close-operation-summary strong {
  margin-top: 3px;
  color: #284f65;
  font-size: 15px;
}
.close-operation-summary small {
  margin-top: 4px;
  color: #718590;
}
.close-operation-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.close-operation-list > button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid #dce7ea;
  border-radius: 3px;
  background: #fff;
  color: #3f5e6f;
  text-align: left;
}
.close-operation-list > button:hover:not(:disabled) {
  border-color: #8fc9df;
  background: #f5fbfd;
}
.close-operation-list > button:focus-visible {
  outline: 2px solid #1d9ddb;
  outline-offset: 1px;
}
.close-operation-list > button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.close-operation-list b,
.close-operation-list small {
  display: block;
}
.close-operation-list b {
  font-size: 13px;
}
.close-operation-list small {
  margin-top: 3px;
  color: #84949c;
  font-size: 11px;
}
.close-operation-icon {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #e7f5fa;
  color: #168bc7;
  font-size: 18px;
  font-weight: 700;
}
.close-operation-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
}
.work-tab:focus-visible {
  position: relative;
  z-index: 2;
  outline: 2px solid #b6d52d;
  outline-offset: -3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
}
.content {
  max-width: 1360px;
  margin: 0;
  padding: 12px 36px 38px;
}
.page-heading {
  margin-bottom: 14px;
  align-items: center;
}
.eyebrow {
  color: #1591c6;
  font-size: 11px;
  margin-bottom: 3px;
}
.page-heading h1 {
  font-size: 21px;
  letter-spacing: 0;
}
.page-heading p {
  font-size: 12px;
  margin-top: 4px;
}
.heading-actions {
  gap: 7px;
}
.button {
  min-height: 29px;
  padding: 5px 10px;
  border-color: #d7e2e5;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
}
.button:hover {
  transform: none;
  box-shadow: none;
  border-color: #9ecadd;
}
.button.primary {
  background: #168bc7;
  border-color: #168bc7;
  color: #fff;
  box-shadow: none;
}
.button.primary:hover {
  background: #0f7bb6;
  border-color: #0f7bb6;
}
.button.danger {
  border-radius: 2px;
}
.card {
  border-radius: 3px;
  border-color: #dce8eb;
  box-shadow: none;
}
.card-head {
  padding: 12px 15px 10px;
}
.card-title {
  font-size: 14px;
}
.card-subtitle {
  font-size: 11px;
}
.toolbar {
  margin-bottom: 10px;
}
.filters {
  gap: 7px;
}
.search {
  width: 235px;
}
.search input,
.field input,
.field select,
.select {
  padding-top: 7px;
  padding-bottom: 7px;
  border-radius: 2px;
  border-color: #d7e3e6;
  font-size: 12px;
}
.field input:focus,
.field select:focus,
.search input:focus {
  border-color: #27a9c6;
  box-shadow: 0 0 0 2px rgba(39, 169, 198, 0.12);
}
.stats-grid {
  gap: 10px;
  margin-bottom: 13px;
}
.stat-card {
  border-radius: 3px;
  padding: 13px 15px;
  border-color: #dfe9eb;
  box-shadow: none;
}
.stat-card::after {
  display: none;
}
.stat-value {
  font-size: 23px;
  margin: 6px 0 5px;
}
.data-table th {
  padding: 9px 13px;
  background: #f1f6f7;
  color: #587080;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}
.data-table td {
  padding: 10px 13px;
  color: #435767;
  font-size: 12px;
}
.data-table tbody tr:hover {
  background: #f5fbfc;
}
.item-sub {
  margin-top: 2px;
}
.text-button,
.link-button {
  color: #1387bc;
  font-size: 12px;
}
.status {
  border-radius: 2px;
  padding: 3px 6px;
  font-size: 10px;
}
.picking-grid {
  gap: 10px;
}
.picking-card {
  padding: 13px;
}
.report-card,
.settings-card {
  border-radius: 3px;
  padding: 15px;
}
.report-card:hover {
  transform: none;
  box-shadow: none;
}
.settings-grid {
  gap: 10px;
}
.modal {
  border-radius: 3px;
}
.modal-head {
  padding: 15px 18px 12px;
}
.form {
  padding: 16px 18px;
}
.form-grid {
  gap: 12px;
}
.form-foot {
  padding-top: 16px;
}
.login-hint {
  border-radius: 2px;
}
.line-count {
  color: #168bc7;
  font-size: 11px;
  font-weight: 700;
}
.document-lines {
  margin-top: 17px;
  border: 1px solid #dbe7ea;
  border-radius: 3px;
  overflow: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}
.document-lines-head {
  min-height: 43px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f2f8f8;
}
.document-lines-head strong {
  display: block;
  color: #385b6d;
  font-size: 13px;
}
.document-lines-head span {
  display: block;
  margin-top: 2px;
  color: #81929a;
  font-size: 10px;
}
.document-lines-head .button {
  white-space: nowrap;
}
.line-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 510px;
}
.line-table th {
  padding: 8px 9px;
  background: #fff;
  color: #6f838e;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid #e4edef;
}
.line-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #edf2f3;
}
.line-table tr:last-child td {
  border-bottom: 0;
}
.line-table select,
.line-table input {
  width: 100%;
  min-width: 72px;
  padding: 6px 7px;
  border: 1px solid #d6e2e5;
  border-radius: 2px;
  color: #385363;
  font-size: 12px;
  background: #fff;
}

/* 单据数量与单价由键盘焦点规则控制，不展示浏览器的 number 微调箭头。 */
.document-form input[data-line-quantity],
.document-form input[data-line-price] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.document-form input[data-line-quantity]::-webkit-inner-spin-button,
.document-form input[data-line-quantity]::-webkit-outer-spin-button,
.document-form input[data-line-price]::-webkit-inner-spin-button,
.document-form input[data-line-price]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.line-table td:first-child {
  min-width: 205px;
}
.line-remove {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 2px;
  background: #fff0f2;
  color: #d85c6c;
  font-size: 17px;
  line-height: 1;
}
.line-remove:hover {
  background: #ffe1e5;
}
.document-total {
  padding: 10px 2px 0;
  color: #657a86;
  text-align: right;
  font-size: 12px;
}
.document-total b {
  color: #177daf;
  font-variant-numeric: tabular-nums;
}
.picking-kind {
  display: inline-flex;
  margin-left: 6px;
  padding: 2px 5px;
  border-radius: 2px;
  background: #e7f7f3;
  color: #087f58;
  font-size: 10px;
  font-weight: 800;
  vertical-align: 1px;
}
.merge-task-list {
  margin-top: 14px;
  border: 1px solid #dce8eb;
  border-radius: 3px;
  overflow: hidden;
}
.merge-task {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid #e8eff1;
  color: #3d596a;
  cursor: pointer;
}
.merge-task:last-child {
  border-bottom: 0;
}
.merge-task:hover {
  background: #f5fbfc;
}
.merge-task input {
  margin-top: 3px;
  accent-color: #168bc7;
}
.merge-task strong,
.merge-task small {
  display: block;
}
.merge-task strong {
  font-size: 12px;
}
.merge-task small {
  margin-top: 3px;
  color: #81919a;
  font-size: 11px;
}
.field textarea {
  width: 100%;
  min-height: 150px;
  padding: 9px 10px;
  border: 1px solid #d7e3e6;
  border-radius: 2px;
  resize: vertical;
  outline: none;
  color: var(--ink);
  font:
    12px/1.55 "Microsoft YaHei",
    "PingFang SC",
    Arial,
    sans-serif;
}
.field textarea:focus {
  border-color: #27a9c6;
  box-shadow: 0 0 0 2px rgba(39, 169, 198, 0.12);
}
.import-guide {
  padding: 11px 12px;
  border: 1px solid #d3e9e9;
  border-left: 3px solid #28bdb9;
  background: #f7fcfc;
  color: #58717e;
  font-size: 11px;
  line-height: 1.55;
}
.import-guide strong,
.import-guide span,
.import-guide code {
  display: block;
}
.import-guide strong {
  color: #336071;
  font-size: 12px;
}
.import-guide code {
  margin-top: 5px;
  padding: 5px 6px;
  overflow-x: auto;
  background: #eef7f7;
  color: #16847f;
  font-family: Consolas, monospace;
  white-space: nowrap;
}
.import-preview {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 2px;
  background: #eef7fc;
  color: #25709a;
  font-size: 12px;
}
.import-preview.error {
  background: #fff2f4;
  color: #c44f62;
}
.report-filter-toolbar {
  align-items: flex-end;
}
.report-filter-toolbar .filters {
  flex: 1 1 760px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.report-filter-toolbar .field {
  min-width: 135px;
}
.report-filter-toolbar .field:has(input[type="datetime-local"]) {
  min-width: 180px;
}
.report-filter-toolbar > .card-subtitle {
  flex: 0 0 auto;
  padding-bottom: 8px;
  white-space: nowrap;
}
.report-filter-toolbar .report-sort-field {
  min-width: 190px;
}
.report-sort-field select {
  color: #315d70;
  font-weight: 700;
  border-left: 3px solid #20a7c7;
  background: #f8fcfd;
}
.report-filter-toolbar .report-date-preset-field {
  min-width: 105px;
}
.report-date-preset-field select {
  color: #28734f;
  font-weight: 700;
  border-left: 3px solid #59b44a;
  background: #f8fcf8;
}
.legacy-report-shell {
  margin-bottom: 10px;
  border: 1px solid #cddfe4;
  border-top: 3px solid var(--brand-blue);
  background: #fff;
}
.legacy-report-command {
  min-height: 66px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #dce8eb;
  background: linear-gradient(90deg, #f8fcfd, #fff);
}
.legacy-report-title {
  min-width: 220px;
}
.legacy-report-title > span {
  color: #338660;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.legacy-report-title h2 {
  margin: 2px 0 3px;
  color: #244e65;
  font-size: 16px;
}
.legacy-report-title small {
  display: block;
  max-width: 620px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}
.legacy-report-actions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.legacy-report-actions .button {
  min-height: 32px;
  padding: 7px 11px;
}
.legacy-report-sort-field {
  min-width: 190px;
}
.legacy-report-sort-field > span,
.report-selector-field > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}
.legacy-report-sort-field select {
  width: 100%;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid #bdd6de;
  border-left: 3px solid #20a7c7;
  border-radius: 2px;
  background: #f8fcfd;
  color: #315d70;
  font-size: 12px;
  font-weight: 700;
}
.report-selector-field {
  min-width: 238px;
}
.report-selector-field select {
  width: 100%;
  min-height: 32px;
  border: 1px solid #bdd6de;
  border-left: 3px solid var(--brand-green);
  border-radius: 2px;
  padding: 6px 9px;
  background: #f9fcfb;
  color: #275a70;
  font-size: 12px;
  font-weight: 700;
  outline: none;
}
.report-selector-field select:focus,
.legacy-report-sort-field select:focus {
  border-color: #27a9c6;
  box-shadow: 0 0 0 2px rgba(39, 169, 198, 0.12);
  outline: 0;
}
.legacy-report-more {
  position: relative;
  align-self: flex-end;
}
.legacy-report-more > summary {
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid #d7e2e5;
  border-radius: 2px;
  list-style: none;
  color: #58717e;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.legacy-report-more > summary::-webkit-details-marker {
  display: none;
}
.legacy-report-more > summary::after {
  content: " ▾";
  color: #168bc7;
}
.legacy-report-more[open] > summary {
  border-color: #9ecadd;
  background: #f6fbfc;
}
.legacy-report-more > div {
  position: absolute;
  z-index: 8;
  right: 0;
  top: calc(100% + 5px);
  min-width: 170px;
  padding: 6px;
  display: grid;
  gap: 5px;
  border: 1px solid #cddfe4;
  background: #fff;
  box-shadow: 0 9px 24px rgba(16, 72, 96, 0.16);
}
.legacy-report-more > div .button {
  width: 100%;
  text-align: left;
}
.legacy-report-shell .report-filter-toolbar {
  margin: 0;
  padding: 9px 13px 10px;
  background: #fbfdfd;
}
.report-table-card {
  margin-bottom: 0;
}
.report-table-note {
  padding: 8px 12px;
  border-bottom: 1px solid #e1ebed;
  background: #fff9ef;
  color: #8b672e;
  font-size: 11px;
}
.report-summary-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
}
.report-summary-panel .report-summary-strip {
  margin: 0;
  padding: 10px;
  border-top: 1px solid #e2ecee;
}
.report-summary-strip .stat-card {
  min-height: 72px;
  padding: 9px 13px;
}
.report-summary-strip .stat-value {
  margin: 3px 0 1px;
  font-size: 20px;
}
.report-summary-strip .stat-card em {
  font-size: 9px;
}
.report-support-panel {
  margin-top: 10px;
  border: 1px solid #d8e5e8;
  background: #fff;
}
.report-support-panel > summary {
  min-height: 42px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  color: #315e71;
  font-size: 12px;
  font-weight: 800;
  background: #f7fafb;
}
.report-support-panel > summary::-webkit-details-marker {
  display: none;
}
.report-support-panel > summary::after {
  content: "＋";
  margin-left: auto;
  color: #168bc7;
}
.report-support-panel[open] > summary::after {
  content: "−";
}
.report-support-panel > summary small {
  margin-left: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}
.report-support-panel .report-grid {
  padding: 10px;
}
.report-support-panel .report-personal-bar {
  margin: 0;
  border: 0;
  border-top: 1px solid #e2ecee;
  border-radius: 0;
}
.report-task-body {
  border-top: 1px solid #e2ecee;
}
.report-task-body .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.report-datetime-range {
  min-width: 485px;
  margin: 0;
  padding: 0;
  border: 0;
}
.report-datetime-range legend {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}
.report-datetime-range > div {
  display: grid;
  grid-template-columns: 86px minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 6px;
}
.report-datetime-range select,
.report-datetime-range input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d7e3e6;
  border-radius: 2px;
  padding: 7px 9px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  outline: none;
}
.report-datetime-range select {
  color: #28734f;
  font-weight: 700;
  border-left: 3px solid #59b44a;
  background: #f8fcf8;
}
.report-datetime-range input:focus,
.report-datetime-range select:focus {
  border-color: #27a9c6;
  box-shadow: 0 0 0 2px rgba(39, 169, 198, 0.12);
}
.report-datetime-range span {
  color: var(--muted);
  font-size: 11px;
}
.report-rate {
  color: #157a55;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.report-rate.negative {
  color: #c34f5b;
}
.report-data-table .sequence-column,
.report-data-table .sequence-cell {
  width: 54px;
  min-width: 54px;
  color: #71868f;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.login-entry {
  position: relative;
  grid-template-columns: 1fr;
  place-items: center;
  overflow: hidden;
  padding: 32px 18px;
  background:
    radial-gradient(
      circle at 18% 14%,
      rgba(165, 201, 21, 0.14),
      transparent 26%
    ),
    radial-gradient(circle at 84% 82%, rgba(7, 138, 77, 0.11), transparent 29%),
    linear-gradient(145deg, #edf6fa 0%, #f7fbf9 48%, #eef7f2 100%);
}
.login-entry::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(
    90deg,
    #063b7c 0%,
    #1371b7 44%,
    #078a4d 78%,
    #a5c915 100%
  );
}
.login-entry::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -235px;
  top: -245px;
  border: 58px solid rgba(19, 113, 183, 0.05);
  border-radius: 50%;
  pointer-events: none;
}
.login-entry .login-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0;
  background: transparent;
}
.login-entry-card {
  width: min(392px, 100%);
  margin: auto;
  padding: 27px 32px 25px;
  border: 1px solid #d5e4e8;
  border-top: 4px solid #078a4d;
  border-radius: 5px;
  background: #fff;
  box-shadow:
    0 18px 45px rgba(13, 72, 99, 0.14),
    0 2px 6px rgba(13, 72, 99, 0.06);
}
.login-entry .brand-lockup {
  width: 166px;
  margin: 0 auto 15px;
}
.login-entry .brand-lockup-cn {
  font-size: 20px;
}
.login-entry .brand-lockup-en {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 2.6px;
}
.login-entry .login-form {
  width: 100%;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.login-entry-heading {
  margin: 0 0 4px;
  padding: 0 0 14px;
  border-bottom: 1px solid #e4ecee;
  text-align: center;
}
.login-entry-heading h1 {
  margin: 0;
  color: #074d97;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 1px;
}
.login-entry-heading p {
  margin: 5px 0 0;
  color: #718791;
  font-size: 11px;
  letter-spacing: 2px;
}
.login-entry-field {
  gap: 5px;
}
.login-entry-field label {
  color: #486672;
  font-size: 12px;
}
.login-entry-field input {
  min-height: 38px;
  padding: 8px 10px;
  border-color: #cfdde1;
  border-radius: 3px;
  font-size: 13px;
}
.login-input-wrap {
  position: relative;
}
.login-input-wrap input {
  width: 100%;
  padding-left: 36px;
}
.login-input-wrap input[type="password"],
.login-input-wrap input[type="text"] {
  padding-right: 51px;
}
.login-input-icon {
  position: absolute;
  z-index: 1;
  left: 12px;
  top: 50%;
  color: #71909e;
  font-size: 14px;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
.login-password-toggle {
  position: absolute;
  z-index: 1;
  right: 4px;
  top: 4px;
  bottom: 4px;
  min-width: 43px;
  padding: 0 7px;
  border: 0;
  border-left: 1px solid #e1eaec;
  background: #fff;
  color: #247e9e;
  font-size: 11px;
}
.login-password-toggle:hover {
  color: #078a5b;
  background: #f5faf9;
}
.login-password-toggle:focus-visible {
  outline: 2px solid #1d9ddb;
  outline-offset: -2px;
}
.login-wechat-entry {
  justify-self: center;
  margin: -2px 0 -3px;
  padding: 2px 5px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #17865d;
  font-size: 11px;
}
.login-wechat-entry:hover {
  color: #086b4b;
  border-bottom-color: #8dc9ae;
}
.login-wechat-entry:focus-visible {
  outline: 2px solid #1d9ddb;
  outline-offset: 2px;
}
.login-entry .login-submit {
  min-height: 39px;
  margin-top: 2px;
  border-radius: 3px;
  background: linear-gradient(100deg, #0879b6, #078a5b);
  border-color: #0879a2;
  font-size: 13px;
  letter-spacing: 2px;
}
.login-entry .login-submit:hover {
  background: linear-gradient(100deg, #066aa3, #067a4f);
  border-color: #066a91;
}
.login-entry-note {
  display: grid;
  gap: 5px;
  padding-top: 4px;
  color: #6d838c;
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
}
.login-entry-note small {
  color: #97a7ad;
  font-size: 9px;
}
.wechat-login-notice {
  padding: 20px;
}
.wechat-login-emblem {
  width: 52px;
  height: 52px;
  margin: 0 auto 13px;
}
.wechat-login-emblem .brand-symbol {
  width: 100%;
  height: 100%;
}
.wechat-login-notice > div:nth-child(2) {
  text-align: center;
}
.wechat-login-notice strong {
  color: #24566c;
  font-size: 15px;
}
.wechat-login-notice p {
  max-width: 440px;
  margin: 7px auto 0;
  color: #70858e;
  font-size: 12px;
  line-height: 1.65;
}
.wechat-login-safety {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  padding: 12px 14px;
  border: 1px solid #d9e9e4;
  border-left: 3px solid #178a61;
  background: #f5fbf8;
  color: #4d7567;
  font-size: 11px;
}
@media (max-width: 560px) {
  .login-entry {
    padding: 22px 14px;
  }
  .login-entry-card {
    padding: 24px 20px 22px;
    border-radius: 4px;
  }
  .login-entry .brand-lockup {
    width: 148px;
  }
}
.picking-work-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
  border: 1px solid #d6e5e7;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}
.picking-work-modes button {
  min-height: 48px;
  padding: 8px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border: 0;
  border-right: 1px solid #dce8e9;
  color: #5b7682;
  background: #fff;
  font: 700 12px/1.35 inherit;
  cursor: pointer;
}
.picking-work-modes button:last-child {
  border-right: 0;
}
.picking-work-modes button:hover,
.picking-work-modes button:focus-visible {
  background: #f3fafb;
  color: #176f94;
  outline: 0;
}
.picking-work-modes button.active {
  color: #fff;
  background: linear-gradient(110deg, #07518d, #078a5b);
  box-shadow: inset 0 -3px 0 #b6d52d;
}
.picking-work-modes b {
  min-width: 23px;
  padding: 2px 6px;
  border-radius: 12px;
  color: #23728d;
  background: #e9f5f7;
  font-size: 10px;
  text-align: center;
}
.picking-work-modes .active b {
  color: #07518d;
  background: #eef7d3;
}
.picking-mode-note {
  margin-bottom: 12px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-left: 3px solid #20a7c7;
  background: #f7fbfc;
}
.picking-mode-note strong,
.picking-mode-note span {
  display: block;
}
.picking-mode-note strong {
  color: #315f72;
  font-size: 12px;
}
.picking-mode-note span,
.picking-mode-note small {
  margin-top: 3px;
  color: #758b94;
  font-size: 10px;
  line-height: 1.5;
}
.picking-mode-empty {
  grid-column: 1/-1;
  padding: 30px;
  display: grid;
  gap: 6px;
  color: #70868e;
  text-align: center;
}
.picking-mode-empty span {
  font-size: 11px;
}
.picking-work-modes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 700px) {
  .picking-work-modes {
    grid-template-columns: 1fr;
  }
  .picking-work-modes button {
    border-right: 0;
    border-bottom: 1px solid #dce8e9;
  }
  .picking-work-modes button:last-child {
    border-bottom: 0;
  }
  .picking-mode-note {
    align-items: flex-start;
    flex-direction: column;
  }
}
.return-work-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
  border: 1px solid #d8e6e6;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}
.return-work-modes button {
  min-height: 47px;
  padding: 8px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-right: 1px solid #dce8e8;
  color: #5b7580;
  background: #fff;
  font: 700 12px/1.35 inherit;
  cursor: pointer;
}
.return-work-modes button:last-child {
  border-right: 0;
}
.return-work-modes button:hover,
.return-work-modes button:focus-visible {
  color: #176f94;
  background: #f5fafb;
  outline: 0;
}
.return-work-modes button.active {
  color: #fff;
  background: linear-gradient(110deg, #07518d, #078a5b);
  box-shadow: inset 0 -3px 0 #b6d52d;
}
.return-work-modes b {
  min-width: 23px;
  padding: 2px 6px;
  border-radius: 12px;
  color: #23728d;
  background: #e9f5f7;
  font-size: 10px;
  text-align: center;
}
.return-work-modes .active b {
  color: #07518d;
  background: #eef7d3;
}
.return-source-card {
  margin: 13px 0;
  border-left: 3px solid #20a7c7;
}
.return-source-card .data-table {
  min-width: 850px;
}
.settlement-work-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #d4e5e7;
  border-radius: 7px;
  background: #fff;
}
.settlement-work-modes button {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border: 0;
  border-right: 1px solid #dce8e8;
  color: #587482;
  background: #fff;
  font: 700 12px/1.35 inherit;
  cursor: pointer;
}
.settlement-work-modes button:last-child {
  border-right: 0;
}
.settlement-work-modes button:hover,
.settlement-work-modes button:focus-visible {
  color: #176f94;
  background: #f5fafb;
  outline: 0;
}
.settlement-work-modes button.active {
  color: #fff;
  background: linear-gradient(110deg, #07518d, #078a5b);
  box-shadow: inset 0 -3px 0 #b6d52d;
}
.settlement-work-modes b {
  min-width: 23px;
  padding: 2px 6px;
  border-radius: 12px;
  color: #23728d;
  background: #e9f5f7;
  font-size: 10px;
  text-align: center;
}
.settlement-work-modes .active b {
  color: #07518d;
  background: #eef7d3;
}
.settlement-focus-panel {
  max-width: 100%;
}
.settlement-focus-panel > .data-card {
  border-top: 3px solid #199eb0;
}
.aging-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.aging-summary > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  padding: 10px 12px;
  border: 1px solid #dce9e9;
  border-left: 3px solid #168bc7;
  background: #f8fcfc;
  color: #55727d;
  font-size: 11px;
}
.aging-summary > div:last-child {
  border-left-color: #21a46f;
}
.aging-summary strong {
  color: #255d75;
}
.aging-summary span {
  white-space: nowrap;
}
.aging-summary b {
  color: #176f94;
}
.aging-summary small {
  color: #819198;
}
.stocktake-work-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #d4e5e7;
  border-radius: 7px;
  background: #fff;
}
.stocktake-work-modes button {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  border: 0;
  border-right: 1px solid #dce8e8;
  color: #587482;
  background: #fff;
  font: 700 12px/1.35 inherit;
  cursor: pointer;
}
.stocktake-work-modes button:last-child {
  border-right: 0;
}
.stocktake-work-modes button:hover,
.stocktake-work-modes button:focus-visible {
  color: #176f94;
  background: #f5fafb;
  outline: 0;
}
.stocktake-work-modes button.active {
  color: #fff;
  background: linear-gradient(110deg, #07518d, #078a5b);
  box-shadow: inset 0 -3px 0 #b6d52d;
}
.stocktake-work-modes b {
  min-width: 23px;
  padding: 2px 6px;
  border-radius: 12px;
  color: #23728d;
  background: #e9f5f7;
  font-size: 10px;
  text-align: center;
}
.stocktake-work-modes .active b {
  color: #07518d;
  background: #eef7d3;
}
@media (max-width: 700px) {
  .return-work-modes {
    grid-template-columns: 1fr;
  }
  .return-work-modes button {
    border-right: 0;
    border-bottom: 1px solid #dce8e8;
  }
  .return-work-modes button:last-child {
    border-bottom: 0;
  }
}
@media (max-width: 700px) {
  .settlement-work-modes,
  .aging-summary {
    grid-template-columns: 1fr;
  }
  .settlement-work-modes button {
    border-right: 0;
    border-bottom: 1px solid #dce8e8;
  }
  .settlement-work-modes button:last-child {
    border-bottom: 0;
  }
}
@media (max-width: 700px) {
  .stocktake-work-modes {
    grid-template-columns: 1fr;
  }
  .stocktake-work-modes button {
    border-right: 0;
    border-bottom: 1px solid #dce8e8;
  }
  .stocktake-work-modes button:last-child {
    border-bottom: 0;
  }
}
.settings-value {
  margin: 9px 0 3px;
  color: #176f9b;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.settings-text-value {
  max-width: 100%;
  overflow: hidden;
  color: #22677f;
  font-size: 18px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-boundary {
  margin-top: 14px;
  border-left: 3px solid #28bdb9;
}
.channel-settings-banner {
  margin-bottom: 17px;
  padding: 12px 14px;
  border: 1px solid #d4e9ea;
  border-left: 3px solid #168bc7;
  background: #f6fbfc;
}
.channel-settings-banner strong,
.channel-settings-banner span {
  display: block;
}
.channel-settings-banner strong {
  color: #34677b;
  font-size: 13px;
}
.channel-settings-banner span {
  margin-top: 4px;
  color: #718993;
  font-size: 11px;
  line-height: 1.55;
}
.channel-switch span {
  min-height: 31px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #4f6d78;
  font-size: 12px;
}
.channel-switch input {
  width: auto;
  accent-color: #168bc7;
}
.product-switches > span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 18px;
  min-height: 34px;
  padding: 2px 0;
}
.product-switches > span label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #506a78;
  font-size: 12px;
  cursor: pointer;
}
.product-switches input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: #168bc7;
}
.product-detail {
  max-height: min(86vh, 920px);
  overflow: auto;
}
.product-detail-hero {
  min-height: 132px;
  padding: 20px 23px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  color: #fff;
  background:
    radial-gradient(
      circle at 78% 12%,
      rgba(183, 216, 40, 0.75),
      transparent 24%
    ),
    linear-gradient(118deg, #06477f, #07815b);
}
.product-detail-symbol {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.07);
}
.product-detail-hero .eyebrow {
  color: #e1f2a7;
}
.product-detail-hero h2 {
  margin: 4px 0;
  font-size: 24px;
}
.product-detail-hero p {
  margin: 0;
  color: #dceef0;
  font-size: 11px;
}
.product-detail-status {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.product-detail-price {
  min-width: 155px;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  text-align: right;
}
.product-detail-price span,
.product-detail-price strong,
.product-detail-price small {
  display: block;
}
.product-detail-price span,
.product-detail-price small {
  color: #dcebed;
  font-size: 10px;
}
.product-detail-price strong {
  margin: 3px 0;
  color: #fff;
  font-size: 29px;
}
.product-detail-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #dce8ea;
  background: #f8fbfb;
}
.product-detail-kpis > div {
  min-height: 76px;
  padding: 13px 17px;
  border-right: 1px solid #dce8ea;
}
.product-detail-kpis > div:last-child {
  border-right: 0;
}
.product-detail-kpis span,
.product-detail-kpis strong,
.product-detail-kpis small {
  display: block;
}
.product-detail-kpis span {
  color: #70858e;
  font-size: 10px;
}
.product-detail-kpis strong {
  margin: 3px 0;
  color: #176f94;
  font-size: 21px;
}
.product-detail-kpis small {
  color: #82939a;
  font-size: 9px;
}
.product-detail-kpis .risk strong {
  color: #cf5868;
}
.product-detail-meta .field small {
  margin-top: -3px;
  color: #81929a;
  font-size: 9px;
}
.product-stock-table {
  min-width: 760px;
}
.product-detail .form-foot {
  position: sticky;
  bottom: -21px;
  margin: 18px -23px -21px;
  padding: 12px 23px;
  border-top: 1px solid #dce8ea;
  background: rgba(255, 255, 255, 0.96);
}
.warehouse-table {
  min-width: 920px;
}
.warehouse-table th:nth-child(4),
.warehouse-table td:nth-child(4) {
  min-width: 260px;
}
.warehouse-maintenance-banner {
  margin-bottom: 17px;
  padding: 11px 13px;
  display: grid;
  gap: 4px;
  border: 1px solid #efd4a4;
  border-left: 4px solid #e9a43d;
  background: #fffaf0;
}
.warehouse-maintenance-banner.safe {
  border-color: #cfe6df;
  border-left-color: #23ad83;
  background: #f3faf8;
}
.warehouse-maintenance-banner strong {
  color: #456472;
}
.warehouse-maintenance-banner span {
  color: #71858d;
  font-size: 11px;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .product-detail-hero {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .product-detail-symbol {
    width: 48px;
    height: 48px;
  }
  .product-detail-price {
    grid-column: 1 / -1;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: left;
  }
  .product-detail-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}
.stocktake-mode {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 6px;
  border: 1px solid #cce7e7;
  border-radius: 2px;
  background: #f0fbfa;
  color: #16847f;
  font-size: 11px;
  font-weight: 700;
}
.selected-row {
  background: #f1fbfc;
}
.stocktake-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}
.stocktake-line-table td:nth-child(2),
.stocktake-line-table td:nth-child(3),
.stocktake-line-table td:nth-child(5) {
  min-width: 92px;
  color: #607984;
  font-size: 11px;
}
.stocktake-line-table td:first-child {
  min-width: 230px;
}
.stocktake-compare-intro {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  color: #627984;
  font-size: 12px;
  line-height: 1.55;
}
.stocktake-compare-intro strong {
  color: #245d75;
  font-size: 13px;
}
.stocktake-compare-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.stocktake-compare-choice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid #dbe8ea;
  border-radius: 2px;
  color: #405e6e;
  cursor: pointer;
}
.stocktake-compare-choice:hover {
  border-color: #76c8d3;
  background: #f5fbfc;
}
.stocktake-compare-choice input {
  width: auto;
  margin-top: 2px;
  accent-color: #168bc7;
}
.stocktake-compare-choice strong,
.stocktake-compare-choice small {
  display: block;
}
.stocktake-compare-choice strong {
  font-size: 12px;
}
.stocktake-compare-choice small {
  margin-top: 3px;
  color: #7d8f98;
  font-size: 10px;
  line-height: 1.45;
}
.stocktake-compare-table {
  min-width: 720px;
}
.stocktake-compare-table th {
  text-align: center;
}
.stocktake-compare-table th small {
  display: block;
  margin-top: 3px;
  color: #82929a;
  font-size: 10px;
  font-weight: 400;
}
.stocktake-compare-table td:not(:first-child) {
  min-width: 64px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.picking-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.picking-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 19px;
  padding: 1px 6px;
  border: 1px solid #cfe6e4;
  border-radius: 2px;
  background: #f0faf8;
  color: #177c76;
  font-size: 10px;
  line-height: 1;
}
.picking-group b {
  color: #176393;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.picking-group.muted {
  border-color: #dfe5e7;
  background: #f7f9fa;
  color: #87959b;
}
.insight {
  min-height: 0;
  padding: 14px 16px;
  border: 1px solid #cfe5e6;
  border-left: 4px solid #27c5c3;
  border-radius: 3px;
  background: #f8fcfc;
  color: #405f6d;
}
.insight::after {
  display: none;
}
.insight .eyebrow {
  color: #168bc7 !important;
}
.insight h2 {
  margin: 3px 0 5px;
  color: #285d75;
  font-size: 16px;
}
.insight p {
  max-width: 760px;
  margin: 0;
  color: #647b86;
  font-size: 12px;
  line-height: 1.65;
}
.insight .button {
  border-color: #168bc7;
  background: #168bc7;
  color: #fff;
}

/* Data-entry screens follow the original system's compact form-and-toolbar rhythm. */
.legacy-data-page {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  background: #fff;
  border: 1px solid #edf1f2;
}
.legacy-page-title {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-bottom: 1px solid #e9eff1;
  color: #3f6577;
  font-size: 15px;
}
.legacy-page-title > span {
  color: #168bc7;
  font-size: 17px;
}
.legacy-page-title strong {
  font-weight: 700;
}
.legacy-commandbar {
  min-height: 43px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid #edf1f2;
  background: #fff;
}
.legacy-command {
  min-width: 76px;
  height: 31px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: #168bc7;
  font-size: 12px;
  font-weight: 700;
}
.legacy-command:hover {
  filter: brightness(0.96);
}
.legacy-command.refresh {
  background: #25b9d3;
}
.legacy-command.save {
  background: #1778a9;
}
.legacy-command.neutral {
  color: #397084;
  background: #eff7f8;
  border: 1px solid #cfe5e8;
}
.legacy-command-note {
  margin-left: 7px;
  color: #89979f;
  font-size: 11px;
}
.document-scanner {
  height: 29px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  border: 1px solid #9ecfda;
  background: #f5fbfc;
}
.document-scanner span {
  height: 100%;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: #168bc7;
  font-size: 10px;
  font-weight: 800;
}
.document-scanner input {
  width: 150px;
  height: 27px;
  padding: 4px 7px;
  border: 0;
  outline: 0;
  color: #31596d;
  background: transparent;
  font:
    11px Consolas,
    monospace;
}
.document-scanner input:focus {
  box-shadow: inset 0 0 0 2px rgba(39, 169, 198, 0.2);
}
.scanner-hit {
  animation: scanner-hit 0.9s ease-out;
}
@keyframes scanner-hit {
  0%,
  35% {
    background: #dff8e9;
    box-shadow: inset 4px 0 #24ad75;
  }
  100% {
    background: transparent;
    box-shadow: none;
  }
}
.legacy-page-title {
  grid-column: 1;
  grid-row: 1;
}
.legacy-commandbar {
  grid-column: 2;
  grid-row: 1;
}
.legacy-partner-form,
.legacy-master-list {
  grid-column: 1 / -1;
}
.legacy-partner-form {
  padding: 11px 0 0;
}
.legacy-form-grid {
  display: grid;
  grid-template-columns: 88px minmax(190px, 1fr) 78px minmax(
      190px,
      1fr
    ) 70px minmax(190px, 1fr);
  align-items: center;
  row-gap: 7px;
  column-gap: 7px;
  padding: 0 14px 11px;
}
.legacy-form-grid label {
  display: contents;
}
.legacy-form-grid label > span {
  color: #607988;
  text-align: right;
  font-size: 12px;
  white-space: nowrap;
}
.legacy-form-grid label > span i {
  color: #ef6668;
  font-style: normal;
  margin-right: 2px;
}
.legacy-form-grid input,
.legacy-form-grid select {
  width: 100%;
  height: 32px;
  padding: 5px 8px;
  border: 1px solid #dce6e9;
  border-radius: 1px;
  outline: 0;
  color: #405d6d;
  background: #fff;
  font-size: 12px;
}
.legacy-form-grid input:focus,
.legacy-form-grid select:focus {
  border-color: #27a9c6;
  box-shadow: 0 0 0 2px rgba(39, 169, 198, 0.1);
}
.legacy-form-grid label.wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  column-gap: 7px;
}
.legacy-form-grid label.wide > span {
  text-align: right;
}
.legacy-grid-empty {
  min-height: 1px;
}
.legacy-section-title {
  min-height: 28px;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border-top: 1px solid #e1ecef;
  border-bottom: 1px solid #d7e7eb;
  background: #edf6f8;
  color: #4d9ac3;
  font-size: 12px;
  font-weight: 700;
}
.legacy-form-note {
  min-height: 44px;
  padding: 11px 15px;
  color: #72828c;
  font-size: 11px;
  line-height: 1.6;
}
.legacy-master-list {
  margin: 11px -1px -1px;
  border-top: 1px solid #dbe8eb;
}
.legacy-list-head {
  min-height: 42px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f4f9fa;
  color: #4f6f7e;
}
.legacy-list-head strong {
  font-size: 13px;
}
.legacy-list-head > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.legacy-list-head input,
.legacy-list-head select {
  height: 28px;
  padding: 4px 8px;
  border: 1px solid #d4e2e6;
  border-radius: 2px;
  color: #567080;
  background: #fff;
  font-size: 11px;
}
.legacy-list-head input {
  width: 230px;
}
.legacy-list-head .filter-reset {
  min-height: 28px;
  padding: 4px 9px;
}
.legacy-table th {
  background: #eef5f6;
}
.legacy-table td {
  padding-top: 9px;
  padding-bottom: 9px;
}

/* Keep every operational page in the same classic frame instead of a marketing-style dashboard card. */
.page-heading {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  margin: 0 0 11px;
  border: 1px solid #e2ecee;
  background: #fff;
}
.page-heading > div:first-child {
  min-height: 41px;
  display: flex;
  align-items: center;
  padding: 0 13px;
}
.page-heading .eyebrow,
.page-heading p {
  display: none;
}
.page-heading h1 {
  margin: 0;
  color: #456879;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}
.page-heading h1::before {
  content: "☰";
  margin-right: 7px;
  color: #168bc7;
  font-size: 17px;
  vertical-align: -1px;
}
.heading-actions {
  width: auto;
  min-height: 41px;
  justify-content: flex-end;
  padding: 5px 12px;
  border-top: 0;
  background: #fff;
}
.heading-actions .button {
  min-width: 74px;
  color: #fff;
  border-color: #168bc7;
  background: #168bc7;
}
.heading-actions .button:hover {
  border-color: #0f7bb6;
  background: #0f7bb6;
}
.heading-actions .button.ghost {
  color: #397084;
  border-color: #d1e2e6;
  background: #f5fafb;
}
.heading-actions .button.danger {
  color: #d85c6c;
  border-color: #f2cbd2;
  background: #fff6f7;
}
.button.primary {
  border-color: #168bc7;
  background: #168bc7;
  box-shadow: none;
}
.button.primary:hover {
  border-color: #0f7bb6;
  background: #0f7bb6;
}
.modal--document {
  width: min(1180px, 100%);
}
.modal--document .modal-head {
  background: #f8fbfc;
  color: #406577;
}
.document-form {
  padding-top: 0;
}
.document-form-meta {
  padding: 16px 18px 2px;
  border-bottom: 1px solid #e2ecee;
  background: #fff;
}
.document-form .document-lines {
  margin-top: 14px;
}
.line-table--source {
  min-width: 930px;
}
.line-table--source td[data-line-code],
.line-table--source td[data-line-specification],
.line-table--source td[data-line-barcode] {
  min-width: 86px;
  color: #657d8b;
  font-size: 11px;
}
.line-table--source td[data-line-specification] {
  min-width: 105px;
}
.line-table--source input[data-line-source] {
  min-width: 112px;
}
.line-table--source td:first-child {
  min-width: 190px;
}
.legacy-document-form .document-toolbar {
  min-height: 42px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  border-bottom: 1px solid #dce9ec;
  background: #f7fbfc;
}
.legacy-document-form .document-toolbar .button {
  min-width: 62px;
  color: #397084;
  border-color: #cfe0e5;
  background: #fff;
}
.legacy-document-form .document-toolbar .button.primary {
  color: #fff;
  border-color: #168bc7;
  background: #168bc7;
}
.legacy-document-form .document-toolbar-tip {
  margin-left: 5px;
  color: #82929a;
  font-size: 11px;
}
.legacy-document-form .document-form-meta {
  padding: 13px 16px 4px;
}
.legacy-document-form .document-lines {
  margin-top: 11px;
}
.legacy-document-form .line-table--source {
  min-width: 1050px;
}
.legacy-document-form .line-table--source td:first-child {
  min-width: 54px;
  width: 54px;
}
.legacy-document-form .line-table--source td:nth-child(2) {
  min-width: 190px;
}
.legacy-document-form .line-index {
  white-space: nowrap;
  color: #68808b;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.legacy-document-form .line-index input {
  width: auto;
  min-width: 0;
  margin: 0 4px 0 0;
  accent-color: #168bc7;
  vertical-align: -2px;
}
.legacy-document-form .line-index span {
  display: inline-block;
  min-width: 12px;
}
.quick-entry-picker-wrap {
  display: block;
  min-width: 0;
}
.quick-entry-picker {
  position: relative;
  min-width: 0;
}
.quick-entry-picker > input {
  width: 100%;
  min-width: 0;
  padding-right: 28px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23607889' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat right 8px center;
}
.quick-entry-picker > input:focus {
  border-color: #168bc7;
  box-shadow: 0 0 0 3px rgba(22, 139, 199, 0.14);
}
.quick-entry-picker-results {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 284px;
  overflow: auto;
  border: 1px solid #a9c8d5;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(21, 67, 89, 0.18);
}
.quick-entry-picker-option {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid #e7eff2;
  color: #23485d;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.quick-entry-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px solid #edf3f5;
}
.quick-entry-picker-row.has-multi {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.quick-entry-picker-row:last-child {
  border-bottom: 0;
}
.quick-entry-picker-row .quick-entry-picker-option {
  border-bottom: 0;
}
.quick-entry-pin {
  width: 36px;
  border: 0;
  border-left: 1px solid #edf3f5;
  background: #fff;
  color: #9aabb4;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.quick-entry-multi {
  min-width: 46px;
  border: 0;
  border-left: 1px solid #edf3f5;
  background: #fff;
  color: #1d6f96;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.quick-entry-multi:hover,
.quick-entry-multi:focus-visible,
.quick-entry-multi.is-selected {
  color: #fff;
  background: #168bc7;
  outline: 0;
}
.quick-entry-picker-bulk {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid #dcecf1;
  background: #f4fbfd;
  color: #476b7c;
  font-size: 12px;
}
.quick-entry-picker-bulk .button {
  min-height: 30px;
  padding: 4px 9px;
  font-size: 12px;
}
.quick-entry-pin:hover,
.quick-entry-pin:focus-visible,
.quick-entry-pin.is-pinned {
  color: #d88b12;
  background: #fff8e9;
  outline: 0;
}
.quick-entry-picker-option:hover,
.quick-entry-picker-option.is-active {
  color: #0c5f91;
  background: #ecf8fb;
}
.quick-entry-picker-option span {
  min-width: 0;
}
.quick-entry-picker-option strong,
.quick-entry-picker-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quick-entry-picker-option strong {
  font-size: 13px;
}
.quick-entry-picker-option small {
  margin-top: 2px;
  color: #758b97;
  font-size: 11px;
}
.quick-entry-picker-option em {
  flex: 0 0 auto;
  padding: 2px 6px;
  border-radius: 10px;
  color: #177047;
  background: #e5f6e9;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}
.quick-entry-picker-empty {
  padding: 13px 12px;
  color: #718896;
  font-size: 12px;
}
.quick-entry-empty-action {
  display: block;
  width: 100%;
  margin-top: 9px;
  min-height: 32px;
  border: 1px dashed #77b6cd;
  border-radius: 5px;
  color: #0c6f9f;
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.quick-entry-empty-action:hover,
.quick-entry-empty-action:focus-visible {
  border-style: solid;
  background: #ecf8fb;
  outline: 0;
}
.quick-entry-supplier-field .card-subtitle {
  margin-top: 5px;
}
.legacy-document-form .line-table--source td:nth-child(2) .quick-entry-picker {
  min-width: 205px;
}
.document-add-product-popover {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(300px, 2fr) auto;
  align-items: center;
  gap: 10px;
  width: auto;
  margin: 8px 11px;
  padding: 10px 12px;
  border: 1px solid #9fcfd9;
  border-radius: 7px;
  background: linear-gradient(120deg, #f3fbfc, #f8fcf8);
}
.document-add-product-popover[hidden] {
  display: none;
}
.document-add-product-copy strong,
.document-add-product-copy span {
  display: block;
}
.document-add-product-copy strong {
  color: #174b68;
  font-size: 13px;
}
.document-add-product-copy span {
  margin-top: 2px;
  color: #6a8490;
  font-size: 11px;
  line-height: 1.4;
}
@media (max-width: 760px) {
  .document-add-product-popover {
    grid-template-columns: 1fr;
    margin-inline: 7px;
  }
}
.document-import {
  margin: 8px 11px 0;
  padding: 10px 11px;
  border: 1px solid #cbe4e7;
  border-left: 3px solid #27b9c5;
  background: #f5fbfc;
  color: #5e7784;
  font-size: 11px;
  line-height: 1.55;
}
.document-import label {
  display: block;
  color: #416879;
  font-weight: 700;
}
.document-import textarea {
  display: block;
  width: 100%;
  min-height: 82px;
  margin: 7px 0;
  padding: 7px 8px;
  resize: vertical;
  border: 1px solid #cee0e4;
  border-radius: 2px;
  outline: 0;
  color: #365867;
  font:
    12px/1.55 Consolas,
    "Microsoft YaHei",
    monospace;
}
.document-import textarea:focus {
  border-color: #27a9c6;
  box-shadow: 0 0 0 2px rgba(39, 169, 198, 0.1);
}
.document-import > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.document-import .card-subtitle {
  color: #718994;
}
.approval-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 92px;
  padding: 15px 18px;
  border: 1px solid #cce7e8;
  border-left: 4px solid #28bdb9;
  background: linear-gradient(90deg, #f7fcfc, #fff);
}
.approval-intro .eyebrow {
  margin-bottom: 3px;
  color: #168bc7;
}
.approval-intro h2 {
  margin: 0 0 5px;
  color: #315e71;
  font-size: 16px;
}
.approval-intro p {
  max-width: 760px;
  margin: 0;
  color: #69808a;
  font-size: 12px;
  line-height: 1.65;
}
.approval-summary {
  min-width: 116px;
  padding: 6px 18px 8px;
  border-left: 1px solid #d8e9eb;
  text-align: center;
  color: #6f858e;
}
.approval-summary span,
.approval-summary small {
  display: block;
  font-size: 11px;
}
.approval-summary strong {
  display: inline-block;
  margin: 2px 0 0;
  color: #168bc7;
  font-size: 29px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.approval-filter {
  min-height: 48px;
  margin-top: 11px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
}
.approval-filter .filters {
  flex-wrap: wrap;
}
.approval-filter .search {
  width: 270px;
}
.approval-stats {
  margin-top: 11px;
}
.approval-table {
  min-width: 1180px;
}
.approval-table th:first-child,
.approval-table td:first-child {
  width: 32px;
  min-width: 32px;
  padding-left: 9px;
  padding-right: 5px;
  text-align: center;
}
.approval-check input {
  width: auto;
  margin: 0;
  accent-color: #168bc7;
}
.approval-stock {
  max-width: 215px;
  color: #287b70;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}
.approval-stock.risk {
  color: #ca5964;
}
.approval-risk-row {
  background: #fffafa;
}
.approval-risk-row:hover {
  background: #fff4f5 !important;
}
.approval-flow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #77909a;
  font-size: 11px;
  white-space: nowrap;
}
.approval-flow span {
  padding: 6px 9px;
  border: 1px solid #cfe5e7;
  border-radius: 2px;
  color: #24768d;
  background: #fff;
  font-weight: 700;
}
.approval-flow b {
  color: #5db7bf;
}
.expense-table {
  min-width: 1080px;
}
.expense-table th:first-child,
.expense-table td:first-child {
  min-width: 145px;
}
.expense-table th:nth-child(3),
.expense-table td:nth-child(3) {
  min-width: 170px;
}
.expense-table th:nth-child(6),
.expense-table td:nth-child(6) {
  min-width: 210px;
}
.expense-table .actions-cell {
  min-width: 210px;
}
.expense-timeline {
  border-top: 1px solid #e3ecee;
}
.picking-page-footer {
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
}
.picking-footer > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}
.report-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.report-card {
  min-height: 96px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 8px;
  align-content: start;
}
.report-icon {
  grid-row: 1 / 4;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  font-size: 13px;
}
.report-card h3 {
  margin: 1px 0 3px;
  font-size: 12px;
}
.report-card p {
  font-size: 10px;
  line-height: 1.4;
}
.report-group {
  margin-top: 4px;
  font-size: 9px;
}
@media (max-width: 1250px) {
  .report-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .approval-flow {
    display: none;
  }
}
.approval-date-range {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #718691;
  font-size: 11px;
  white-space: nowrap;
}
.approval-date-range label {
  color: #5a7481;
  font-weight: 700;
}
.approval-date-range input {
  width: 126px;
  height: 29px;
  padding: 4px 6px;
  border: 1px solid #d7e3e6;
  border-radius: 2px;
  outline: 0;
  color: #476474;
  font-size: 12px;
}
.approval-date-range input:focus {
  border-color: #27a9c6;
  box-shadow: 0 0 0 2px rgba(39, 169, 198, 0.1);
}
.purchase-approval-table {
  min-width: 1120px;
}
.purchase-approval-table th:nth-child(2),
.purchase-approval-table td:nth-child(2) {
  width: 52px;
  min-width: 52px;
  text-align: center;
}
.purchase-approval-table .button {
  min-width: 52px;
}
.inventory-query {
  margin-bottom: 11px;
  overflow: hidden;
}
.inventory-query-head {
  min-height: 42px;
  padding: 8px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #dbe8ea;
  background: #f3f9fa;
}
.inventory-query-head strong {
  display: block;
  color: #426674;
  font-size: 13px;
}
.inventory-query-head span {
  display: block;
  margin-top: 2px;
  color: #81929a;
  font-size: 10px;
}
.inventory-query-grid {
  display: grid;
  grid-template-columns: 180px 180px minmax(220px, 1.2fr) 180px minmax(
      230px,
      1.1fr
    ) minmax(300px, 1.2fr);
  gap: 8px 11px;
  padding: 11px 13px 12px;
  align-items: end;
}
.inventory-query-grid .field {
  gap: 4px;
}
.inventory-query-grid .field label {
  color: #617a87;
  font-size: 11px;
}
.inventory-options > span {
  min-height: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 11px;
  padding: 0 1px;
  color: #58727f;
  font-size: 11px;
}
.inventory-options > span label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #58727f !important;
  font-weight: 400;
  white-space: nowrap;
}
.inventory-options input {
  width: auto;
  margin: 0;
  accent-color: #168bc7;
}
.inventory-table {
  min-width: 1420px;
}
.inventory-table th:nth-child(1),
.inventory-table td:nth-child(1) {
  min-width: 84px;
}
.inventory-table th:nth-child(2),
.inventory-table td:nth-child(2) {
  min-width: 150px;
}
.inventory-table th:nth-child(9),
.inventory-table td:nth-child(9),
.inventory-table th:nth-child(10),
.inventory-table td:nth-child(10),
.inventory-table th:nth-child(11),
.inventory-table td:nth-child(11),
.inventory-table th:nth-child(12),
.inventory-table td:nth-child(12) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.inventory-lock-link {
  padding: 0 2px;
}
.stock-warning {
  color: #c85b61;
}
.inventory-document-filter {
  margin: 11px 0;
  padding: 10px 13px;
}
.inventory-document-filter .filter-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) 180px 180px auto;
  gap: 10px;
  align-items: end;
}
.inventory-document-filter .field {
  gap: 4px;
}
.inventory-document-filter .filter-action {
  display: flex;
  align-items: end;
}
.inventory-document-table {
  min-width: 1180px;
}
.inventory-document-table th:first-child,
.inventory-document-table td:first-child {
  min-width: 140px;
}
.inventory-document-table th:nth-child(4),
.inventory-document-table td:nth-child(4) {
  min-width: 190px;
}
.inventory-document-lines {
  min-width: 960px;
}
.inventory-document-lines td:nth-child(2) {
  min-width: 230px;
}
.danger-text {
  color: #c64f5b !important;
}
.inventory-lock-filter .select {
  min-width: 160px;
}
.inventory-lock-table {
  min-width: 1280px;
}
.inventory-lock-table th:first-child,
.inventory-lock-table td:first-child {
  min-width: 170px;
}
.inventory-lock-table th:nth-child(5),
.inventory-lock-table td:nth-child(5) {
  min-width: 155px;
}
.inventory-lock-table th:nth-child(8),
.inventory-lock-table td:nth-child(8) {
  min-width: 230px;
}
.inventory-lock-table .actions-cell {
  min-width: 125px;
}
.purchase-review-table {
  min-width: 1120px;
}
.purchase-review-table th:first-child,
.purchase-review-table td:first-child {
  min-width: 145px;
}
.purchase-review-lines {
  min-width: 1050px;
}
.purchase-review-lines td:nth-child(2) {
  min-width: 210px;
}
.purchase-review-lines input,
.purchase-review-lines select {
  width: 100%;
  min-width: 95px;
  padding: 6px 7px;
  border: 1px solid #cfdee3;
  border-radius: 2px;
  color: #365867;
  background: #fff;
}
.purchase-review-lines input:disabled,
.purchase-review-lines select:disabled {
  color: #6d7f88;
  background: #f5f8f9;
}
.account-security-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  padding: 13px 14px;
  border: 1px solid #d6e7e9;
  border-left: 4px solid #22a9c5;
  background: #f7fbfc;
}
.account-security-summary .avatar {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  font-size: 16px;
}
.account-security-summary strong,
.account-security-summary span,
.account-security-summary small {
  display: block;
}
.account-security-summary strong {
  color: #285b72;
  font-size: 15px;
}
.account-security-summary span {
  margin-top: 2px;
  color: #607984;
  font-size: 12px;
}
.account-security-summary small {
  margin-top: 3px;
  color: #83949b;
  font-size: 10px;
}
.account-security-managed {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid #f0d8a9;
  border-left: 4px solid #f2a33b;
  background: #fffaf0;
}
.account-security-managed strong {
  color: #a46a1d;
}
.account-security-managed span {
  color: #755f43;
  font-size: 12px;
  line-height: 1.7;
}
.account-security-managed code {
  padding: 1px 4px;
  color: #815014;
  background: #f7e8c8;
}
.backup-hero {
  min-height: 112px;
  margin-bottom: 12px;
  padding: 17px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-left: 4px solid #28bdb9;
  background: linear-gradient(105deg, #f4fbfc, #fff);
}
.backup-hero h2 {
  margin: 2px 0 6px;
  color: #285f76;
  font-size: 17px;
}
.backup-hero p {
  max-width: 780px;
  margin: 0;
  color: #637b87;
  font-size: 12px;
  line-height: 1.7;
}
.backup-storage {
  flex: 0 0 auto;
  min-width: 155px;
  padding-left: 20px;
  border-left: 1px solid #d5e8ea;
  text-align: right;
}
.backup-storage span,
.backup-storage small {
  display: block;
  color: #7a9099;
  font-size: 10px;
}
.backup-storage strong {
  display: block;
  margin: 4px 0;
  color: #168bc7;
  font-size: 17px;
}
.backup-stats {
  margin-bottom: 12px;
}
.backup-console {
  overflow: hidden;
}
.backup-operations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 13px 15px 16px;
}
.backup-operation {
  min-height: 104px;
  padding: 14px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #d9e8ea;
  background: #fbfdfd;
}
.backup-operation.restore {
  border-color: #f0d6da;
  background: #fffafb;
}
.backup-operation.disabled {
  border-color: #e2e8ea;
  background: #f7f9fa;
}
.backup-operation-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #1594c4, #21b989);
  font-size: 19px;
  font-weight: 800;
}
.backup-operation.restore .backup-operation-icon {
  background: linear-gradient(145deg, #efaa49, #db6570);
}
.backup-operation strong,
.backup-operation p {
  display: block;
}
.backup-operation strong {
  color: #345e70;
  font-size: 13px;
}
.backup-operation p {
  max-width: 470px;
  margin: 4px 0 0;
  color: #718691;
  font-size: 11px;
  line-height: 1.55;
}
.backup-guide {
  margin-top: 12px;
  padding: 14px 17px;
}
.backup-guide h3 {
  margin: 0 0 11px;
  color: #365f70;
  font-size: 13px;
}
.backup-guide p {
  margin: 11px 0 0;
  color: #7a8d96;
  font-size: 10px;
}
.backup-steps {
  display: flex;
  align-items: center;
  gap: 8px;
}
.backup-steps span {
  flex: 1;
  min-height: 34px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d8e7e9;
  color: #58727f;
  background: #f8fbfc;
  font-size: 11px;
}
.backup-steps b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #168bc7;
  font-size: 10px;
}
.backup-steps i {
  color: #56b9bf;
  font-style: normal;
}
.backup-file-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  padding: 12px 13px;
  border: 1px solid #d5e7e9;
  background: #f7fbfc;
}
.backup-file-summary strong,
.backup-file-summary span,
.backup-file-summary small {
  display: block;
}
.backup-file-summary strong {
  color: #2d6076;
  font-size: 13px;
}
.backup-file-summary span {
  margin-top: 3px;
  color: #667e89;
  font-size: 11px;
}
.backup-file-summary small {
  margin-top: 3px;
  color: #84949b;
  font-size: 10px;
}
.backup-checksum {
  margin-bottom: 13px;
  padding: 9px 11px;
  border: 1px dashed #badbe0;
  background: #fbfefe;
}
.backup-checksum span {
  display: block;
  margin-bottom: 4px;
  color: #66818c;
  font-size: 10px;
}
.backup-checksum code {
  display: block;
  overflow-wrap: anywhere;
  color: #137e9c;
  font-size: 10px;
}
.restore-warning {
  margin-bottom: 14px;
  padding: 11px 12px;
  border: 1px solid #f0cbd1;
  border-left: 4px solid #dc6570;
  background: #fff7f8;
}
.restore-warning strong {
  color: #b94957;
  font-size: 12px;
}
.restore-warning p {
  margin: 4px 0 0;
  color: #80646a;
  font-size: 11px;
  line-height: 1.55;
}
.delivery-hero {
  min-height: 94px;
  margin-bottom: 12px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-left: 4px solid #28bdb9;
  background: linear-gradient(100deg, #f5fbfc, #fff);
}
.delivery-hero h2 {
  margin: 2px 0 5px;
  color: #2d6175;
  font-size: 16px;
}
.delivery-hero p {
  max-width: 820px;
  margin: 0;
  color: #687f89;
  font-size: 11px;
  line-height: 1.65;
}
.delivery-ready {
  flex: 0 0 auto;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid #d5e7e9;
}
.delivery-ready strong {
  color: #168bc7;
  font-size: 30px;
  line-height: 1;
}
.delivery-ready span {
  color: #728690;
  font-size: 10px;
  line-height: 1.5;
}
.delivery-filter {
  margin-bottom: 11px;
}
.delivery-table {
  min-width: 1010px;
}
.delivery-table th:first-child,
.delivery-table td:first-child {
  min-width: 125px;
}
.delivery-table th:nth-child(2),
.delivery-table td:nth-child(2) {
  min-width: 135px;
}
.delivery-table th:nth-child(5),
.delivery-table td:nth-child(5) {
  min-width: 135px;
}
.delivery-table .actions-cell {
  min-width: 175px;
}
.delivery-progress {
  width: 120px;
  height: 6px;
  margin-bottom: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: #e4edef;
}
.delivery-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #168bc7, #25b886);
}
.delivery-order-picker {
  margin: 14px 16px 0;
  border: 1px solid #d9e7ea;
}
.delivery-order-list {
  max-height: 330px;
  overflow-y: auto;
}
.delivery-order-choice {
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-bottom: 1px solid #e7eff1;
  color: #405e6d;
  cursor: pointer;
}
.delivery-order-choice:last-child {
  border-bottom: 0;
}
.delivery-order-choice:hover {
  background: #f4fafb;
}
.delivery-order-choice[hidden] {
  display: none;
}
.delivery-order-choice input {
  width: auto;
  margin-top: 3px;
  accent-color: #168bc7;
}
.delivery-order-choice strong,
.delivery-order-choice small {
  display: block;
}
.delivery-order-choice strong {
  font-size: 12px;
}
.delivery-order-choice small {
  margin-top: 3px;
  color: #7c8f98;
  font-size: 10px;
  line-height: 1.5;
}
.delivery-stop-table {
  min-width: 1040px;
}
.delivery-stop-table td:first-child {
  width: 45px;
  min-width: 45px;
  text-align: center;
}
.delivery-stop-table td:nth-child(2) {
  min-width: 165px;
}
.delivery-stop-table td:nth-child(3) {
  min-width: 240px;
}
.delivery-stop-table td:nth-child(6) {
  min-width: 180px;
}
.audit-intro {
  min-height: 90px;
  margin-bottom: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-left: 4px solid #168bc7;
  background: linear-gradient(100deg, #f3f9fc, #fff);
}
.audit-intro h2 {
  margin: 2px 0 5px;
  color: #285f76;
  font-size: 16px;
}
.audit-intro p {
  margin: 0;
  color: #687f89;
  font-size: 11px;
  line-height: 1.65;
}
.audit-visible {
  flex: 0 0 auto;
  min-width: 155px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid #d5e7e9;
}
.audit-visible strong {
  color: #178fc3;
  font-size: 28px;
}
.audit-visible span {
  color: #718791;
  font-size: 10px;
  line-height: 1.5;
}
.audit-stats {
  margin-bottom: 11px;
}
.audit-query {
  margin-bottom: 11px;
  overflow: hidden;
}
.audit-query-head {
  min-height: 41px;
  padding: 7px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dbe8ea;
  background: #f3f9fa;
}
.audit-query-head strong,
.audit-query-head span {
  display: block;
}
.audit-query-head strong {
  color: #426674;
  font-size: 13px;
}
.audit-query-head span {
  margin-top: 2px;
  color: #81929a;
  font-size: 10px;
}
.audit-query-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(150px, 0.8fr) minmax(
      190px,
      1fr
    ) 145px 145px;
  gap: 10px;
  padding: 11px 13px 13px;
  align-items: end;
}
.audit-query-grid .field {
  gap: 4px;
}
.audit-query-grid .field label {
  color: #617a87;
  font-size: 11px;
}
.audit-table {
  min-width: 1080px;
}
.audit-table th:first-child,
.audit-table td:first-child {
  min-width: 185px;
}
.audit-table th:nth-child(2),
.audit-table td:nth-child(2) {
  min-width: 145px;
}
.audit-table th:nth-child(3),
.audit-table td:nth-child(3) {
  min-width: 115px;
}
.audit-table th:nth-child(4),
.audit-table td:nth-child(4) {
  min-width: 330px;
}
.audit-reference {
  color: #2c6680;
}
.audit-user {
  color: #496776;
  font-weight: 700;
}
.audit-detail {
  max-width: 560px;
  line-height: 1.55;
}
.audit-pagination {
  min-height: 48px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e4edef;
  background: #fafcfc;
}
.audit-pagination > span {
  color: #738791;
  font-size: 11px;
}
.audit-pagination .button {
  min-width: 70px;
}
.audit-pagination .button:disabled {
  opacity: 0.45;
  cursor: default;
}
.audit-table {
  min-width: 980px;
}
.return-intro {
  min-height: 94px;
  margin-bottom: 12px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-left: 4px solid #25b68b;
  background: linear-gradient(100deg, #f3fbf8, #fff);
}
.return-intro h2 {
  margin: 2px 0 5px;
  color: #2b6172;
  font-size: 16px;
}
.return-intro p {
  max-width: 850px;
  margin: 0;
  color: #687f89;
  font-size: 11px;
  line-height: 1.65;
}
.return-pending {
  flex: 0 0 auto;
  min-width: 135px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding-left: 18px;
  border-left: 1px solid #d5e8e3;
}
.return-pending strong {
  color: #168bc7;
  font-size: 30px;
  line-height: 1;
}
.return-pending span {
  color: #718791;
  font-size: 10px;
  line-height: 1.5;
}
.return-filter {
  margin-bottom: 11px;
}
.return-table {
  min-width: 1210px;
}
.return-table th:first-child,
.return-table td:first-child {
  min-width: 150px;
}
.return-table th:nth-child(3),
.return-table td:nth-child(3) {
  min-width: 155px;
}
.return-table th:nth-child(4),
.return-table td:nth-child(4) {
  min-width: 175px;
}
.return-table th:nth-child(5),
.return-table td:nth-child(5) {
  min-width: 220px;
}
.return-table .actions-cell {
  min-width: 175px;
}
.return-document-form {
  max-height: min(84vh, 880px);
  overflow: auto;
}
.return-line-table {
  min-width: 1120px;
}
.return-line-table td:first-child {
  min-width: 38px;
  width: 38px;
  text-align: center;
}
.return-line-table td:nth-child(2) {
  min-width: 175px;
}
.return-line-table td:nth-child(3) {
  min-width: 130px;
}
.return-line-table td:nth-child(7) {
  min-width: 105px;
}
.return-line-table td:nth-child(10) {
  min-width: 140px;
}
.return-impact {
  margin-top: 13px;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  border: 1px solid #cfe7df;
  border-left: 4px solid #25b68b;
  background: #f4fbf8;
}
.return-impact.purchase {
  border-color: #f0d9b7;
  border-left-color: #ed9e3f;
  background: #fffaf2;
}
.return-impact strong {
  color: #296b64;
  font-size: 12px;
}
.return-impact.purchase strong {
  color: #9a682d;
}
.return-impact span {
  color: #687e79;
  font-size: 10px;
  line-height: 1.55;
}
.return-detail-table {
  min-width: 880px;
}
.return-detail-table td:first-child {
  min-width: 38px;
  width: 38px;
  text-align: center;
}
.return-detail-table td:nth-child(2) {
  min-width: 210px;
}
.return-table {
  min-width: 1030px;
}
.return-table th:first-child,
.return-table td:first-child {
  min-width: 185px;
}
.return-table th:nth-child(2),
.return-table td:nth-child(2) {
  min-width: 140px;
}
.return-table th:nth-child(3),
.return-table td:nth-child(3) {
  min-width: 155px;
}
.return-table th:nth-child(4),
.return-table td:nth-child(4) {
  min-width: 205px;
}
.return-table th:nth-child(5),
.return-table td:nth-child(5) {
  min-width: 155px;
}
.return-table .actions-cell {
  min-width: 165px;
}
.analysis-intro {
  min-height: 94px;
  margin-bottom: 12px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-left: 4px solid #27b596;
  background: linear-gradient(100deg, #f3fbf9, #fff);
}
.analysis-intro h2 {
  margin: 2px 0 5px;
  color: #285f72;
  font-size: 16px;
}
.analysis-intro p {
  max-width: 850px;
  margin: 0;
  color: #687f89;
  font-size: 11px;
  line-height: 1.65;
}
.analysis-shortage {
  flex: 0 0 auto;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding-left: 18px;
  border-left: 1px solid #d4e8e3;
}
.analysis-shortage strong {
  color: #e98d34;
  font-size: 29px;
}
.analysis-shortage span {
  color: #718791;
  font-size: 10px;
  line-height: 1.5;
}
.analysis-filter {
  margin-bottom: 11px;
}
.analysis-table {
  min-width: 1080px;
}
.analysis-table th:first-child,
.analysis-table td:first-child {
  min-width: 185px;
}
.analysis-table th:nth-child(2),
.analysis-table td:nth-child(2) {
  min-width: 155px;
}
.analysis-table td:nth-child(n + 3):nth-child(-n + 7) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.analysis-need-row {
  background: #fffaf1;
}
.analysis-need-row:hover {
  background: #fff5e5 !important;
}
.analysis-quantity {
  color: #df7f25;
  font-size: 14px;
}
.analysis-approval-table {
  min-width: 1180px;
}
.analysis-approval-table th:first-child,
.analysis-approval-table td:first-child {
  width: 42px;
  min-width: 42px;
  text-align: center;
}
.analysis-approval-table th:nth-child(5),
.analysis-approval-table td:nth-child(5) {
  min-width: 190px;
}
.analysis-approval-table .actions-cell {
  min-width: 190px;
}
.analysis-document-form {
  max-height: min(85vh, 900px);
  overflow: auto;
}
.analysis-line-table {
  min-width: 1360px;
}
.analysis-line-table td:first-child {
  width: 48px;
  min-width: 48px;
  text-align: center;
}
.analysis-line-table td:nth-child(2) {
  min-width: 190px;
}
.analysis-line-table td:nth-child(3) {
  min-width: 145px;
}
.analysis-line-table td:nth-child(8),
.analysis-line-table td:nth-child(9) {
  min-width: 95px;
}
.analysis-line-table td:nth-child(11) {
  min-width: 130px;
}
.analysis-select input {
  width: auto;
  accent-color: #168bc7;
}
.analysis-impact {
  margin-top: 13px;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  border: 1px solid #d2e8e3;
  border-left: 4px solid #27b596;
  background: #f4fbf9;
}
.analysis-impact strong {
  color: #296b64;
  font-size: 12px;
}
.analysis-impact span {
  color: #687e79;
  font-size: 10px;
  line-height: 1.55;
}
.analysis-detail-table {
  min-width: 1180px;
}
.analysis-detail-table td:first-child {
  width: 38px;
  min-width: 38px;
  text-align: center;
}
.analysis-detail-table td:nth-child(2) {
  min-width: 190px;
}
@media (max-width: 1180px) {
  .backup-operations {
    grid-template-columns: 1fr;
  }
  .backup-steps {
    align-items: stretch;
    flex-direction: column;
  }
  .backup-steps i {
    display: none;
  }
}
@media (max-width: 1180px) {
  .audit-query-grid {
    grid-template-columns: minmax(220px, 1.3fr) minmax(140px, 0.8fr) minmax(
        180px,
        1fr
      );
  }
  .audit-query-grid .field:nth-last-child(-n + 2) {
    min-width: 140px;
  }
}

/* 客户商资料沿用紧凑录入台，同时补足可维护主数据所需的操作密度。 */
.partner-editor-card,
.partner-data-page .legacy-master-list {
  margin-top: 12px;
  border: 1px solid #d7e7ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(34, 102, 126, 0.05);
}
.partner-editor-card .legacy-section-title {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #e5eff3;
  color: #15566d;
  font-weight: 700;
}
.partner-editor-card .legacy-form-note {
  margin: 0 14px 12px;
}
.partner-query-controls {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.partner-query-controls #partner-search {
  min-width: min(320px, 100%);
}
@media (max-width: 760px) {
  .partner-query-controls {
    justify-content: flex-start;
  }
  .partner-query-controls #partner-search {
    flex-basis: 100%;
  }
}
.partner-code-field {
  display: flex !important;
  align-items: center;
  gap: 5px;
  text-align: left !important;
}
.partner-code-field input {
  min-width: 0;
  flex: 1;
}
.partner-code-field .text-button {
  flex: 0 0 auto;
  min-width: 36px;
  padding: 0;
  color: #168bc7;
  font-size: 11px;
}
.partner-master-table {
  min-width: 1320px;
}
.partner-master-table th:first-child,
.partner-master-table td:first-child {
  width: 34px;
  min-width: 34px;
  padding-left: 9px;
  padding-right: 5px;
  text-align: center;
}
.partner-master-table th:nth-child(2),
.partner-master-table td:nth-child(2) {
  min-width: 98px;
}
.partner-master-table th:nth-child(3),
.partner-master-table td:nth-child(3) {
  min-width: 160px;
}
.partner-master-table th:nth-child(5),
.partner-master-table td:nth-child(5) {
  min-width: 90px;
}
.partner-master-table th:nth-child(6),
.partner-master-table td:nth-child(6) {
  min-width: 165px;
}
.partner-master-table th:nth-child(7),
.partner-master-table td:nth-child(7) {
  min-width: 110px;
}
.partner-master-table th:nth-child(8),
.partner-master-table td:nth-child(8) {
  min-width: 150px;
}
.partner-master-table .button {
  min-width: 48px;
}
.checkbox-label {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  color: #58717d;
  font-size: 12px;
}
.checkbox-label input {
  width: auto;
  margin: 0;
  accent-color: #168bc7;
}

/* End-to-end document trace keeps dense business data readable without losing chronology. */
.trace-document {
  max-height: min(86vh, 920px);
  overflow: auto;
}
.trace-section {
  margin-top: 18px;
  border: 1px solid #d8e2ec;
  border-radius: 3px;
  background: #f8fbfd;
}
.trace-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-bottom: 1px solid #d8e2ec;
  background: #eef5fb;
}
.trace-summary strong,
.trace-summary span {
  display: block;
}
.trace-summary > div:first-child span {
  margin-top: 3px;
  color: #6d7f91;
  font-size: 11px;
}
.trace-counts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.trace-counts span {
  padding: 3px 8px;
  border: 1px solid #c8d8e7;
  border-radius: 999px;
  background: #fff;
  color: #315b83;
  font-size: 11px;
}
.trace-timeline {
  position: relative;
  padding: 12px 16px 12px 32px;
}
.trace-timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 19px;
  width: 2px;
  background: #d4e0eb;
}
.trace-event {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 7px 0 10px;
}
.trace-dot {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: -18px;
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #2766a3;
  box-shadow: 0 0 0 2px #b8cee2;
}
.trace-event.green .trace-dot {
  background: #2f9d52;
  box-shadow: 0 0 0 2px #b8dfc5;
}
.trace-event.orange .trace-dot {
  background: #e48625;
  box-shadow: 0 0 0 2px #f2cfaa;
}
.trace-event-body {
  min-width: 0;
  flex: 1;
  padding: 8px 11px;
  border: 1px solid #dce6ef;
  border-radius: 3px;
  background: #fff;
}
.trace-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.trace-event-head time {
  color: #73869a;
  font-size: 11px;
  white-space: nowrap;
}
.trace-event-meta {
  display: flex;
  gap: 7px;
  margin-top: 4px;
  color: #4a7196;
  font-size: 10px;
}
.trace-event-meta span {
  padding: 1px 6px;
  border-radius: 2px;
  background: #edf4fa;
}
.trace-event p {
  margin: 5px 0 0;
  color: #53687c;
  font-size: 12px;
}

.trace-actions {
  flex-wrap: wrap;
}
.trace-actions [data-trace-linked] {
  color: #226b91;
  border-color: #c8dfe8;
  background: #f5fbfd;
}

/* Product dictionaries use a compact master-data console similar to the original system. */
.catalog-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
}
.catalog-type-tabs {
  display: grid;
  gap: 6px;
}
.catalog-type-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid #dbe7ea;
  border-radius: 3px;
  background: #fff;
  color: #536f7d;
  text-align: left;
  cursor: pointer;
}
.catalog-type-tab:hover {
  border-color: #8ccdd6;
  background: #f6fbfc;
}
.catalog-type-tab.active {
  border-color: #25a9c5;
  border-left: 4px solid #168bc7;
  background: #eef9fb;
  color: #1b6689;
}
.catalog-type-tab span {
  font-weight: 700;
}
.catalog-type-tab small {
  color: #82939b;
  font-size: 10px;
}
.catalog-list {
  display: grid;
  min-width: 0;
  gap: 11px;
}
.catalog-entry-impact {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #d7e7ea;
  border-left: 3px solid #28bdb9;
  background: #f5fbfc;
}
.catalog-entry-impact strong {
  color: #3e6576;
}
.catalog-entry-impact span {
  color: #718691;
  font-size: 11px;
  line-height: 1.55;
}
.delivery-group-assignment-bar {
  margin: 11px 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px) auto;
  align-items: center;
  gap: 12px;
  border-left: 4px solid #25a9c5;
}
.delivery-group-assignment-bar strong,
.delivery-group-assignment-bar span {
  display: block;
}
.delivery-group-assignment-bar span {
  margin-top: 3px;
  color: #738993;
  font-size: 10px;
}
.delivery-group-assignment-bar select {
  min-height: 34px;
}
.delivery-group-assignment-table {
  min-width: 980px;
}
.delivery-group-assignment-table .approval-check {
  width: 34px;
  text-align: center;
}

/* User lifecycle controls stay compact while making data scope and password risk explicit. */
.warehouse-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.warehouse-choice-grid label {
  display: grid;
  grid-template-columns: 18px 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  padding: 8px 9px;
  border: 1px solid #dce7ea;
  border-radius: 3px;
  background: #f9fcfc;
  color: #456473;
  cursor: pointer;
}
.warehouse-choice-grid label:has(input:checked) {
  border-color: #73c6d2;
  background: #f0fafb;
}
.warehouse-choice-grid input {
  grid-row: 1 / 3;
  width: auto;
  margin: 3px 0 0;
  accent-color: #168bc7;
}
.warehouse-choice-grid span {
  font-weight: 700;
}
.warehouse-choice-grid small {
  margin-top: 2px;
  color: #83929a;
  font-size: 10px;
}
.user-settings {
  max-height: min(86vh, 880px);
  overflow: auto;
}
.password-reset-panel {
  margin: 0 18px 18px;
  padding: 14px 15px;
  border: 1px solid #f0d6da;
  border-left: 3px solid #da6674;
  background: #fff9fa;
}
.password-reset-panel > div:first-child strong,
.password-reset-panel > div:first-child span {
  display: block;
}
.password-reset-panel > div:first-child strong {
  color: #a84b59;
}
.password-reset-panel > div:first-child span {
  margin-top: 3px;
  color: #806c70;
  font-size: 11px;
}
.password-reset-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 9px;
  margin-top: 11px;
}
.password-reset-fields .button {
  min-height: 34px;
  white-space: nowrap;
}

/* Original-style home desktop. */
.desktop-toolbar {
  height: 39px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #8a979d;
  font-size: 11px;
}
.legacy-button {
  min-width: 120px;
  height: 33px;
  border: 0;
  border-radius: 3px;
  background: #ffae55;
  color: white;
  font-weight: 800;
  font-size: 13px;
}
.legacy-button:hover {
  background: #f5a044;
}
.desktop-layout {
  display: grid;
  grid-template-columns: minmax(600px, 790px) 164px;
  align-items: start;
  gap: 30px;
}
.desktop-main {
  min-width: 0;
}
.dashboard-primary-actions {
  margin: 0 0 20px;
  padding: 15px;
  border: 1px solid #c9e7e5;
  border-radius: 10px;
  background: linear-gradient(135deg, #f7fffd, #f3f9ff);
  box-shadow: 0 6px 18px rgba(17, 105, 132, 0.08);
}
.dashboard-primary-actions > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 11px;
  color: #16455b;
}
.dashboard-primary-actions > header strong { font-size: 16px; }
.dashboard-primary-actions > header span { color: #72909a; font-size: 12px; }
.dashboard-primary-actions > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.dashboard-primary-action {
  min-height: 66px;
  padding: 10px 12px;
  border: 1px solid #d5e8eb;
  border-radius: 8px;
  background: #fff;
  color: #145477;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dashboard-primary-action strong,
.dashboard-primary-action span { display: block; }
.dashboard-primary-action span { margin-top: 5px; color: #7b969f; font-size: 11px; }
.dashboard-primary-action:hover,
.dashboard-primary-action:focus-visible { border-color: #1aa9b2; box-shadow: 0 6px 14px rgba(17, 145, 164, .16); transform: translateY(-1px); }
.legacy-panel {
  overflow: hidden;
  margin: 0 0 20px;
  border: 1px solid #26c6c3;
  border-radius: 3px;
  background: #fff;
}
.legacy-panel > header {
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: #27c5c3;
  font-size: 14px;
}
.legacy-panel.blue-header {
  border-color: #198ccc;
}
.legacy-panel.blue-header > header {
  background: #1e8dcc;
}
.panel-setting {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.96);
  font-size: 11px;
  font-weight: 700;
}
.desktop-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  padding: 21px 26px 18px;
}
.desktop-link {
  min-width: 0;
  height: 35px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #52636d;
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.desktop-link:hover {
  color: #0884bd;
  text-decoration: underline;
}
.desktop-link i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 9px 2px 0;
  background: #6e9faf;
}
.reminder-panel {
  overflow: hidden;
  border: 1px solid #ffb35e;
  border-radius: 3px;
  background: #fff;
}
.reminder-panel > header {
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  color: #fff;
  background: #ffae55;
  font-size: 14px;
  font-weight: 800;
}
.reminder-list {
  padding: 12px 11px;
  min-height: 58px;
}
.reminder-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 3px;
  border: 0;
  border-bottom: 1px dashed #e8edef;
  background: transparent;
  color: #53616c;
  font-size: 12px;
  text-align: left;
}
.reminder-item:last-child {
  border-bottom: 0;
}
.reminder-item:hover {
  color: #118bc2;
}
.reminder-item small {
  display: block;
  padding-top: 3px;
  color: #84929b;
  font-size: 10px;
  line-height: 1.45;
}
.reminder-count {
  min-width: 20px;
  height: 18px;
  border-radius: 2px;
  display: grid;
  place-items: center;
  background: #ef6574;
  color: white;
  font-size: 11px;
  font-weight: 800;
}
.reminder-empty {
  padding: 10px 3px;
  color: #8d9aa2;
  font-size: 12px;
}
.reminder-footer {
  width: 100%;
  min-height: 35px;
  border: 0;
  border-top: 1px solid #ffdfbb;
  background: #fffaf4;
  color: #d8842b;
  font-size: 11px;
  font-weight: 700;
}
.desktop-overview {
  border: 1px solid #dce8eb;
  border-radius: 3px;
  background: #fff;
}
.desktop-overview > header {
  height: 36px;
  padding: 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1f7f7;
  color: #537180;
  font-weight: 800;
}
.desktop-overview > header button {
  border: 0;
  background: transparent;
  color: #168ac1;
  font-size: 11px;
}
.desktop-overview > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.compact-stat {
  padding: 13px 15px;
  border-right: 1px solid #e6eeee;
}
.compact-stat:last-child {
  border-right: 0;
}
.compact-stat span {
  display: block;
  color: #788a95;
  font-size: 11px;
}
.compact-stat strong {
  display: block;
  margin-top: 5px;
  color: #285b76;
  font-size: 20px;
}
.compact-stat small {
  margin-left: 4px;
  color: #8999a1;
  font-size: 11px;
  font-weight: 400;
}

@media (max-width: 1120px) {
  .content {
    padding-left: 24px;
    padding-right: 24px;
  }
  .desktop-layout {
    grid-template-columns: minmax(580px, 1fr) 150px;
    gap: 18px;
  }
  .company-meta {
    display: none;
  }
}
@media (max-width: 1180px) {
  .legacy-form-grid {
    grid-template-columns: 82px minmax(170px, 1fr) 72px minmax(170px, 1fr);
  }
  .legacy-form-grid label.wide {
    grid-column: 1 / -1;
    grid-template-columns: 82px 1fr;
  }
  .legacy-grid-empty {
    display: none;
  }
}
@media (max-width: 1080px) {
  .page-heading {
    grid-template-columns: 1fr;
  }
  .heading-actions {
    min-height: 42px;
    border-top: 1px solid #e8eff1;
    justify-content: flex-start;
  }
}
@media (max-width: 820px) {
  .trace-summary,
  .trace-event-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .trace-counts {
    justify-content: flex-start;
  }
}
@media (max-width: 760px) {
  .warehouse-choice-grid,
  .password-reset-fields {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-type-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .delivery-group-assignment-bar {
    grid-template-columns: 1fr;
  }
  .delivery-group-assignment-bar .button,
  .delivery-group-assignment-bar select {
    width: 100%;
  }
}

/* Member operations: preserve the original dense report while exposing price, sales and point provenance. */
.member-insight {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px 22px;
  background:
    radial-gradient(
      circle at 84% 18%,
      rgba(174, 207, 31, 0.72),
      transparent 24%
    ),
    linear-gradient(118deg, #07518d, #087c58);
}
.member-insight .eyebrow {
  color: #dff2ac;
}
.member-insight h2 {
  color: #fff;
  font-size: 19px;
  text-shadow: 0 1px 1px rgba(2, 40, 66, 0.24);
}
.member-insight p {
  max-width: 740px;
  margin-bottom: 0;
  color: #dceff1;
}
.member-rule {
  position: relative;
  z-index: 1;
  min-width: 245px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  background: rgba(2, 49, 80, 0.2);
}
.member-rule strong,
.member-rule span,
.member-rule small {
  display: block;
}
.member-rule strong {
  color: #dff0a6;
  font-size: 11px;
}
.member-rule span {
  margin-top: 4px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.member-rule small {
  margin-top: 4px;
  color: #d9edf1;
  font-size: 10px;
  line-height: 1.5;
}
.member-stats .stat-value {
  white-space: nowrap;
}
.member-stats .stat-card:nth-child(3) .stat-value {
  font-size: 20px;
}
.member-filter {
  min-height: 56px;
  margin-bottom: 11px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.member-filter .search {
  width: 300px;
}
.member-table {
  min-width: 1420px;
}
.member-table th:first-child,
.member-table td:first-child {
  min-width: 155px;
}
.member-table th:nth-child(5),
.member-table td:nth-child(5) {
  min-width: 205px;
}
.member-table th:nth-child(8),
.member-table td:nth-child(8) {
  min-width: 145px;
}
.member-table .actions-cell {
  min-width: 190px;
}
.member-points {
  color: #16835b;
  font-size: 14px;
}
.point-negative {
  color: #d45863 !important;
  font-weight: 850;
}
.danger-text {
  color: #cf5868;
}
.member-form-banner {
  margin: -2px 0 16px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d6e9e6;
  border-left: 4px solid #24b48e;
  background: #f4fbf9;
}
.member-form-banner strong,
.member-form-banner span {
  display: block;
}
.member-form-banner strong {
  color: #315f68;
}
.member-form-banner > div span {
  margin-top: 3px;
  color: #758a8e;
  font-size: 10px;
}
.member-detail {
  max-height: min(86vh, 920px);
  overflow: auto;
}
.member-detail-hero {
  min-height: 128px;
  padding: 20px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(
      circle at 82% 20%,
      rgba(176, 207, 37, 0.75),
      transparent 25%
    ),
    linear-gradient(120deg, #074a83, #098058);
}
.member-detail-hero h2 {
  margin: 6px 0 5px;
  font-size: 24px;
}
.member-detail-hero p {
  margin: 0;
  color: #d7eced;
}
.member-detail-hero .eyebrow {
  color: #dcf3a5;
}
.member-balance {
  min-width: 140px;
  padding-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  text-align: right;
}
.member-balance span,
.member-balance strong,
.member-balance small {
  display: block;
}
.member-balance span,
.member-balance small {
  color: #dbecee;
  font-size: 10px;
}
.member-balance strong {
  margin: 3px 0;
  font-size: 32px;
}
.member-detail .document-form-meta {
  padding-top: 16px;
}
.member-detail .line-table td:first-child {
  min-width: 140px;
}
.points-adjust-balance {
  margin-bottom: 16px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d5e8e5;
  border-left: 4px solid #22af8b;
  background: #f4faf8;
}
.points-adjust-balance span {
  color: #647d82;
}
.points-adjust-balance strong {
  color: #16835b;
  font-size: 22px;
}
.member-order-field {
  padding: 10px 12px;
  border: 1px solid #d2e8e3;
  border-left: 4px solid #24b48e;
  background: #f5fbf9;
}
.member-order-field .card-subtitle {
  min-height: 16px;
  color: #4d7c73;
  line-height: 1.5;
}
@media (max-width: 1180px) {
  .member-insight {
    align-items: flex-start;
  }
  .member-rule {
    min-width: 220px;
  }
  .member-filter {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Store requisitions make the original request reports actionable without losing their compact table rhythm. */
.requisition-intro {
  min-height: 104px;
  margin-bottom: 12px;
  padding: 16px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-left: 4px solid #26b595;
  background: linear-gradient(105deg, #f1fbf8, #fff);
}
.requisition-intro h2 {
  margin: 3px 0 6px;
  color: #285f72;
  font-size: 17px;
}
.requisition-intro p {
  max-width: 790px;
  margin: 0;
  color: #687f89;
  font-size: 11px;
  line-height: 1.65;
}
.requisition-flow {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.requisition-flow span {
  padding: 7px 9px;
  border: 1px solid #cde5df;
  background: #fff;
  color: #32786b;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.requisition-flow i {
  color: #91b1aa;
  font-style: normal;
}
.requisition-stats {
  margin-top: 0;
}
.requisition-filter {
  min-height: 59px;
  margin-bottom: 11px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.requisition-filter .search {
  width: 275px;
}
.requisition-table {
  min-width: 1180px;
}
.requisition-table th:first-child,
.requisition-table td:first-child {
  min-width: 160px;
}
.requisition-table th:nth-child(2),
.requisition-table td:nth-child(2) {
  min-width: 170px;
}
.requisition-table th:nth-child(3),
.requisition-table td:nth-child(3) {
  min-width: 210px;
}
.requisition-table th:nth-child(6),
.requisition-table td:nth-child(6) {
  min-width: 165px;
}
.requisition-table .actions-cell {
  min-width: 185px;
}
.requisition-approval-table {
  min-width: 1210px;
}
.requisition-approval-table th:first-child,
.requisition-approval-table td:first-child {
  width: 42px;
  min-width: 42px;
  text-align: center;
}
.requisition-approval-table th:nth-child(4),
.requisition-approval-table td:nth-child(4) {
  min-width: 175px;
}
.requisition-approval-table th:nth-child(5),
.requisition-approval-table td:nth-child(5) {
  min-width: 220px;
}
.requisition-approval-table th:nth-child(6),
.requisition-approval-table td:nth-child(6) {
  min-width: 180px;
}
.requisition-approval-table .actions-cell {
  min-width: 180px;
}
.requisition-risk-row {
  background: #fff9f0;
}
.requisition-risk-row:hover {
  background: #fff4e3 !important;
}
.requisition-document-form {
  max-height: min(86vh, 920px);
  overflow: auto;
}
.requisition-line-table {
  min-width: 1210px;
}
.requisition-line-table td:first-child {
  width: 48px;
  min-width: 48px;
  text-align: center;
}
.requisition-line-table td:nth-child(2) {
  min-width: 190px;
}
.requisition-line-table td:nth-child(3),
.requisition-line-table td:nth-child(5) {
  min-width: 125px;
}
.requisition-line-table td:nth-child(7),
.requisition-line-table td:nth-child(8) {
  min-width: 95px;
}
.requisition-impact {
  margin-top: 13px;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  border: 1px solid #cfe7df;
  border-left: 4px solid #25b68b;
  background: #f4fbf8;
}
.requisition-impact strong {
  color: #296b64;
  font-size: 12px;
}
.requisition-impact span {
  color: #687e79;
  font-size: 10px;
  line-height: 1.55;
}
.requisition-detail {
  max-height: min(86vh, 900px);
  overflow: auto;
}
.requisition-detail-table {
  min-width: 880px;
}
.requisition-detail-table td:first-child {
  width: 38px;
  min-width: 38px;
  text-align: center;
}
.requisition-detail-table td:nth-child(2) {
  min-width: 220px;
}
@media (max-width: 1180px) {
  .requisition-intro {
    align-items: flex-start;
  }
  .requisition-flow {
    flex-direction: column;
  }
  .requisition-flow i {
    transform: rotate(90deg);
  }
  .requisition-filter {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Dashboard keeps the original two-column shortcut rhythm while using modern office screens efficiently. */
.desktop-toolbar {
  border-bottom: 1px solid #e3ebed;
}
.legacy-button {
  min-width: 92px;
  padding-inline: 13px;
  background: #f2a34d;
}
.legacy-button span {
  display: inline-block;
  margin-right: 2px;
  font-size: 15px;
  vertical-align: -1px;
}
.desktop-layout {
  grid-template-columns: minmax(0, 1fr) clamp(220px, 20vw, 280px);
  gap: 20px;
}
.legacy-panel {
  border-color: #d4e7e8;
}
.legacy-panel > header {
  background: linear-gradient(100deg, #159fc4, #20b59b);
}
.legacy-panel.blue-header {
  border-color: #d1e2ea;
}
.legacy-panel.blue-header > header {
  background: linear-gradient(100deg, #087bb9, #168fc6);
}
.desktop-link {
  position: relative;
  min-height: 35px;
  padding: 0 9px 0 17px;
  border-radius: 2px;
}
.desktop-link:hover,
.desktop-link:focus-visible {
  color: #087bae;
  text-decoration: none;
  background: #eef8fa;
}
.desktop-link i {
  position: absolute;
  left: 5px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin: -3px 0 0;
  border-radius: 50%;
  background: #70a02d;
}
.reminder-panel {
  border-color: #e6d8c8;
  box-shadow: 0 2px 8px rgba(41, 77, 94, 0.05);
}
.reminder-panel > header {
  justify-content: space-between;
  background: linear-gradient(100deg, #ef9842, #f2ad59);
}
.reminder-panel > header small {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.92;
}
.reminder-list {
  max-height: 470px;
  overflow: auto;
  scrollbar-width: thin;
}
.reminder-item {
  min-height: 46px;
  padding: 8px 5px;
  border-bottom-color: #e5ecee;
}
.reminder-item:hover,
.reminder-item:focus-visible {
  color: #087bae;
  background: #f5fafb;
}
.reminder-count {
  flex: 0 0 auto;
  min-width: 22px;
  padding: 0 5px;
  border-radius: 9px;
  background: #dd5b6b;
  font-variant-numeric: tabular-nums;
}
.reminder-empty strong,
.reminder-empty small {
  display: block;
}
.reminder-empty strong {
  color: #71818a;
  font-size: 11px;
}
.reminder-empty small {
  margin-top: 5px;
  line-height: 1.5;
}
.desktop-overview {
  border-color: #d7e6e9;
}
.desktop-overview > header {
  border-left: 3px solid #168bc7;
}
.desktop-overview > div {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.compact-stat {
  min-width: 0;
  padding: 12px 13px;
}
.compact-stat strong {
  overflow: hidden;
  color: #174f70;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.compact-stat em {
  display: block;
  min-height: 15px;
  margin-top: 4px;
  overflow: hidden;
  color: #84959d;
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1120px) {
  .desktop-layout {
    grid-template-columns: minmax(0, 1fr) 205px;
    gap: 16px;
  }
  .desktop-overview > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compact-stat:nth-child(2) {
    border-right: 0;
  }
  .compact-stat:nth-child(-n + 2) {
    border-bottom: 1px solid #e6eeee;
  }
}
.sales-center-intro {
  min-height: 105px;
  margin-bottom: 14px;
  padding: 17px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #d1e4e6;
  border-top: 3px solid #82b62d;
  border-radius: 3px;
  color: #fff;
  background:
    radial-gradient(
      circle at 86% 18%,
      rgba(173, 205, 40, 0.62),
      transparent 24%
    ),
    linear-gradient(112deg, #07518d, #087b68);
}
.sales-center-intro span,
.sales-center-intro h2,
.sales-center-intro p {
  display: block;
}
.sales-center-intro > div:first-child > span {
  color: #ddefa8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.sales-center-intro h2 {
  margin: 4px 0 5px;
  font-size: 21px;
}
.sales-center-intro p {
  margin: 0;
  color: #d9edef;
  font-size: 11px;
}
.sales-center-count {
  min-width: 112px;
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  text-align: center;
}
.sales-center-count strong {
  display: block;
  font-size: 27px;
}
.sales-center-count span {
  margin-top: 2px;
  color: #e1f0e8;
  font-size: 10px;
}
.sales-center-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}
.sales-center-panel {
  margin: 0;
}
.sales-center-panel > header small {
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
}
.sales-center-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 12px 15px 15px;
}
.sales-center-link {
  min-width: 0;
  min-height: 35px;
  padding: 6px 7px;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) 10px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-bottom: 1px dashed #e4ecee;
  color: #4e6671;
  background: #fff;
  text-align: left;
  font: 600 12px/1.35 inherit;
  cursor: pointer;
}
.sales-center-link:hover,
.sales-center-link:focus-visible {
  color: #087caf;
  background: #f1f9fa;
}
.sales-center-link i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #78a438;
}
.sales-center-link b {
  color: #a0afb5;
  font-size: 15px;
}
.sales-center-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sales-center-link small {
  margin-left: 5px;
  padding: 1px 4px;
  border-radius: 2px;
  color: #287b60;
  background: #eaf6f1;
  font-size: 9px;
}
.sales-center-empty {
  grid-column: 1/-1;
  padding: 20px;
  color: #7f9198;
  text-align: center;
  font-size: 11px;
}
@media (max-width: 1000px) {
  .sales-center-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .dashboard-primary-actions > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-primary-action { min-height: 72px; padding: 12px; }
  .dashboard-primary-actions > header { align-items: flex-start; flex-direction: column; gap: 3px; }
  .sales-center-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .sales-center-count {
    width: 100%;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    text-align: left;
  }
  .sales-center-links {
    grid-template-columns: 1fr;
  }
}

/* Login remains usable on phones while operational pages retain their desktop-first tables. */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(27, 143, 197, 0.62);
  outline-offset: 2px;
}
@media (max-width: 900px) {
  body.login-mode {
    min-width: 0;
  }
  .login-page {
    min-height: 100svh;
    grid-template-columns: 1fr;
    background: linear-gradient(160deg, #edf8f4, #f5fbff 48%, #fff);
  }
  .login-copy {
    display: none;
  }
  .login-panel {
    min-height: 100svh;
    padding: 28px 20px 36px;
    align-content: center;
  }
  .brand-lockup {
    width: min(220px, 68%);
    margin-bottom: 20px;
  }
  .brand-symbol--large {
    width: 88px;
    height: 88px;
  }
  .brand-lockup-cn {
    font-size: 23px;
  }
  .brand-lockup-en {
    font-size: 14px;
  }
  .login-form {
    width: min(420px, 100%);
    gap: 17px;
    padding: 22px 20px;
    border: 1px solid #dce9e8;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 48px rgba(5, 68, 110, 0.12);
  }
  .login-form h2 {
    font-size: 23px;
  }
  .login-form input {
    min-height: 44px;
    font-size: 16px;
  }
  .login-submit {
    min-height: 44px;
  }
}

@media (max-width: 900px) {
  body:not(.login-mode) {
    min-width: 0;
    overflow-x: hidden;
  }
  body.mobile-nav-open {
    overflow: hidden;
  }
  body:not(.login-mode) .shell {
    display: block;
    min-height: 100svh;
  }
  body:not(.login-mode) .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(84vw, 320px);
    height: 100svh;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 18px 0 46px rgba(5, 34, 55, 0.25);
  }
  body.mobile-nav-open .sidebar {
    transform: translateX(0);
  }
  .mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 29;
    width: 100%;
    border: 0;
    background: rgba(8, 30, 45, 0.48);
    backdrop-filter: blur(2px);
  }
  body.mobile-nav-open .mobile-sidebar-backdrop {
    display: block;
  }
  .mobile-menu-trigger {
    display: grid;
    width: 44px;
    min-width: 44px;
    border: 0;
    border-right: 1px solid #e5eef1;
    place-items: center;
    background: #168bc7;
    color: #fff;
    font-size: 19px;
  }
  .main {
    width: 100%;
  }
  .topbar {
    width: 100%;
  }
  .top-tabs {
    min-width: 0;
    flex: 1;
  }
  .work-tabs-scroll {
    flex: 1;
  }
  .work-tab {
    padding-inline: 12px;
  }
  .work-tab-item {
    max-width: 44vw;
  }
  .top-close,
  .company-meta {
    display: none;
  }
  .top-help,
  .top-logout {
    padding-inline: 11px;
    white-space: nowrap;
  }
  .content {
    width: 100%;
    padding: 18px 14px 88px;
  }
  .desktop-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .desktop-main {
    min-width: 0;
  }
  .desktop-links {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 13px 17px;
  }
  .desktop-link {
    min-height: 40px;
  }
  .reminder-panel {
    width: 100%;
  }
  .desktop-overview > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .catalog-type-tabs {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .catalog-type-tab {
    flex: 0 0 150px;
  }
  .inventory-query-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .inventory-document-filter .filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .inventory-document-filter .filter-action .button {
    width: 100%;
  }
  .approval-date-range {
    width: 100%;
    flex-wrap: wrap;
  }
  .approval-date-range input {
    flex: 1 1 130px;
    width: auto;
  }
  .migration-hero,
  .backup-hero,
  .audit-intro,
  .picking-completion-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .migration-safety,
  .backup-storage,
  .audit-visible {
    width: 100%;
    min-width: 0;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(95, 143, 158, 0.2);
    text-align: left;
    justify-content: flex-start;
  }
  .migration-grid,
  .backup-operations,
  .audit-query-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .legacy-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .legacy-form-grid label,
  .legacy-form-grid label.wide {
    grid-column: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .legacy-form-grid label > span,
  .legacy-form-grid label.wide > span {
    text-align: left;
  }
  .legacy-grid-empty {
    display: none;
  }
  .legacy-list-head {
    align-items: stretch;
    flex-direction: column;
  }
  .legacy-list-head > div {
    justify-content: flex-start;
  }
  .legacy-list-head input {
    width: min(100%, 320px);
  }
  .picking-confirmation {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }
  .backup-operation {
    grid-template-columns: 38px minmax(0, 1fr);
  }
  .backup-operation > .button {
    grid-column: 1/-1;
    width: 100%;
  }
  .backup-steps {
    align-items: stretch;
    flex-direction: column;
  }
  .backup-steps i {
    display: none;
  }
  .audit-query-grid .field {
    min-width: 0 !important;
  }
  .page-heading {
    gap: 13px;
    margin-bottom: 16px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .heading-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
    flex-wrap: nowrap;
  }
  .heading-actions .button {
    min-height: 40px;
    white-space: nowrap;
  }
  .stats-grid,
  .shortcut-grid,
  .settings-grid,
  .picking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .stat-card {
    padding: 14px;
    border-radius: 10px;
  }
  .stat-value {
    font-size: 22px;
  }
  .toolbar,
  .approval-filter,
  .member-filter,
  .requisition-filter {
    align-items: stretch;
    flex-direction: column;
  }
  .legacy-report-command {
    align-items: stretch;
    flex-direction: column;
  }
  .legacy-report-title {
    min-width: 0;
  }
  .legacy-report-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .report-selector-field,
  .legacy-report-sort-field {
    width: 100%;
    min-width: 0;
  }
  .legacy-report-actions .button {
    flex: 1 1 120px;
    min-height: 40px;
  }
  .legacy-report-more {
    width: 100%;
  }
  .legacy-report-more > summary {
    min-height: 40px;
    text-align: center;
  }
  .legacy-report-more > div {
    position: static;
    margin-top: 5px;
    box-shadow: none;
  }
  .report-support-panel > summary {
    align-items: flex-start;
  }
  .report-support-panel > summary small {
    text-align: right;
  }
  .filters {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
  .report-datetime-range {
    min-width: 0;
    width: 100%;
  }
  .report-datetime-range > div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .report-datetime-range select {
    grid-column: 1/-1;
    min-height: 40px;
  }
  .report-datetime-range input {
    min-height: 40px;
  }
  .report-datetime-range span {
    display: none;
  }
  .search,
  .member-filter .search,
  .requisition-filter .search {
    width: 100%;
  }
  .search input,
  .select,
  .field input,
  .field select,
  .button {
    min-height: 40px;
  }
  .card {
    border-radius: 10px;
  }
  .card-head {
    padding: 15px 14px 11px;
  }
  .table-wrap {
    max-width: 100%;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
  }
  .mobile-table-scroll-hint {
    display: flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px 8px;
    color: #1687a9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }
  .text-button {
    min-height: 36px;
    padding: 6px 8px;
  }
  .modal-backdrop {
    align-items: end;
    padding: 0;
  }
  .modal {
    width: 100%;
    max-height: 92svh;
    border-radius: 17px 17px 0 0;
  }
  .modal-head {
    padding: 16px 17px 12px;
  }
  .form {
    padding: 16px 17px calc(18px + env(safe-area-inset-bottom));
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .field.full {
    grid-column: auto;
  }
  .form-foot {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 12px -17px -18px;
    padding: 12px 17px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  .stats-grid,
  .shortcut-grid,
  .settings-grid,
  .picking-grid {
    grid-template-columns: 1fr;
  }
  .desktop-overview > div,
  .report-grid {
    grid-template-columns: 1fr;
  }
  .help-shortcuts dl > div,
  .help-account > div {
    grid-template-columns: 1fr;
    gap: 3px;
    padding-block: 5px;
  }
  .top-help {
    width: 42px;
    padding: 0;
    font-size: 0;
  }
  .top-help::before {
    content: "？";
    font-size: 14px;
    font-weight: 800;
  }
  .work-tab.home:not(.active),
  .work-tab-item:not(.current) {
    display: none;
  }
}

.import-file-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.import-file-actions .button {
  min-height: 32px;
}
.document-shortcuts {
  margin-left: auto;
  padding: 3px 7px;
  border: 1px solid #d8e7ea;
  border-radius: 3px;
  background: #fff;
  color: #66808c;
  font-size: 10px;
  white-space: nowrap;
}
.line-table select:user-invalid,
.line-table input:user-invalid {
  border-color: #d96666;
  background-color: #fff8f8;
}
.field > label.required-label::after {
  content: " *";
  color: #c94f57;
  font-weight: 800;
}
.field.has-error > label {
  color: #b8424c;
}
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #d05a63;
  background-color: #fff8f8;
  box-shadow: 0 0 0 2px rgba(208, 90, 99, 0.1);
}
.warehouse-choice-grid.has-error {
  border-color: #d05a63;
  background: #fff8f8;
  box-shadow: 0 0 0 2px rgba(208, 90, 99, 0.1);
}

/* BlueSky branded transient and first-entry states */
.loading-card {
  position: relative;
  min-height: 154px;
  padding: 28px 30px 34px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border-color: #dce9ec;
  background:
    radial-gradient(
      circle at 94% 12%,
      rgba(177, 207, 38, 0.18),
      transparent 24%
    ),
    linear-gradient(120deg, #fff, #f7fbfc);
}
.loading-emblem {
  width: 58px;
  height: 58px;
  padding: 7px;
  border: 1px solid #d9e9e8;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 9px 24px rgba(5, 73, 112, 0.1);
}
.loading-copy {
  display: grid;
  gap: 5px;
}
.loading-copy strong {
  color: #185c78;
  font-size: 15px;
}
.loading-copy span {
  color: #708690;
  font-size: 12px;
  line-height: 1.6;
}
.loading-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  overflow: hidden;
  background: #e5eff0;
}
.loading-track i {
  display: block;
  width: 36%;
  height: 100%;
  background: linear-gradient(90deg, #0d6bac, #20a77d 70%, #a7ca2c);
  animation: branded-loading 1.2s ease-in-out infinite;
}
@keyframes branded-loading {
  from {
    transform: translateX(-105%);
  }
  to {
    transform: translateX(285%);
  }
}
.data-table td.empty,
.line-table td.empty {
  background: linear-gradient(
    90deg,
    rgba(247, 251, 252, 0.35),
    rgba(240, 248, 247, 0.72),
    rgba(247, 251, 252, 0.35)
  );
  color: #7a9098;
}
.data-table td.empty::before,
.line-table td.empty::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border: 2px solid #86b8bf;
  border-radius: 50%;
  vertical-align: 1px;
}
.login-panel {
  background:
    radial-gradient(
      circle at 100% 0,
      rgba(174, 207, 36, 0.12),
      transparent 29%
    ),
    radial-gradient(circle at 0 100%, rgba(20, 142, 96, 0.08), transparent 31%),
    #f8fbfa;
}
.login-form {
  padding: 25px 27px 27px;
  border: 1px solid #dce8e8;
  border-top: 3px solid #1a9a72;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 48px rgba(8, 66, 96, 0.1);
}
@media (prefers-reduced-motion: reduce) {
  .loading-track i {
    width: 100%;
    animation: none;
  }
}

/* Document entry: grow with the detail rows instead of trapping the sixth row
   below a nested scroller or the sticky action bar. */
.modal--document .document-lines {
  overflow-x: auto;
  overflow-y: visible;
}
.modal--document .line-table tbody tr {
  scroll-margin-block: 116px;
}
.modal--document .line-table input[data-line-unit] {
  min-width: 58px;
  color: #54707d;
  background: #f7fafb;
  cursor: default;
}
@media (min-width: 901px) {
  .modal--document .document-form {
    padding-bottom: 84px;
  }
}
@media (max-width: 760px) {
  .modal--document .document-form {
    padding-bottom: calc(98px + env(safe-area-inset-bottom));
  }
  .modal--document .form-foot {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
  .modal--document .line-table tbody tr {
    scroll-margin-block: 132px;
  }
}

.print-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}
.compact-form .form-foot {
  justify-content: flex-start;
}
.check-field .checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  color: #4b6978;
}
.print-settings-device-note {
  margin: 15px 0 0;
  color: #66818e;
}
.print-settings-steps {
  display: grid;
  gap: 11px;
  margin: 16px 0;
  padding-left: 22px;
  color: #496674;
}
.print-settings-warning {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #f1d497;
  border-radius: 8px;
  background: #fff9e9;
  color: #765b22;
}
@media (max-width: 880px) {
  .print-settings-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .loading-card {
    min-height: 132px;
    padding: 22px 18px 28px;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
  }
  .loading-emblem {
    width: 46px;
    height: 46px;
    padding: 6px;
  }
  .login-form {
    padding: 21px 19px 23px;
    border-radius: 13px;
  }
}
.legacy-document-form .line-table th:first-child,
.legacy-document-form .line-table td:first-child,
.requisition-document-form .line-table th:first-child,
.requisition-document-form .line-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}
.legacy-document-form .line-table th:nth-child(2),
.legacy-document-form .line-table td:nth-child(2),
.requisition-document-form .line-table th:nth-child(2),
.requisition-document-form .line-table td:nth-child(2) {
  position: sticky;
  left: 54px;
  z-index: 2;
  background: #fff;
  box-shadow: 3px 0 5px rgba(16, 73, 101, 0.08);
}
.legacy-document-form .line-table thead th:first-child,
.legacy-document-form .line-table thead th:nth-child(2),
.requisition-document-form .line-table thead th:first-child,
.requisition-document-form .line-table thead th:nth-child(2) {
  z-index: 4;
  background: #eaf5f6;
}
@media (max-width: 980px) {
  .document-shortcuts {
    display: none;
  }
}

.top-help {
  height: 100%;
  padding: 0 14px;
  border: 0;
  border-left: 1px solid #edf0f1;
  background: #fff;
  color: #27828f;
  font-size: 12px;
  cursor: pointer;
}
.top-help:hover,
.top-help:focus-visible {
  color: #147eb7;
  background: #f6fbfc;
}
.modal--help {
  width: min(860px, 100%);
}
.help-center {
  padding: 0 20px 18px;
}
.help-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 -20px 16px;
  padding: 18px 22px;
  background: linear-gradient(115deg, #07518d, #137fa4 58%, #29a966);
  color: #fff;
}
.help-brand {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 20px rgba(0, 45, 82, 0.2);
}
.help-brand .brand-symbol {
  width: 44px;
  height: 44px;
}
.help-hero span {
  font-size: 11px;
  opacity: 0.78;
}
.help-hero h3 {
  margin: 2px 0 3px;
  font-size: 21px;
  letter-spacing: 1px;
}
.help-hero p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}
.help-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 12px;
}
.help-panel {
  padding: 14px 15px;
  border: 1px solid #dbe8eb;
  border-radius: 4px;
  background: #fbfdfd;
}
.help-panel h4 {
  margin: 0 0 9px;
  color: #245f76;
  font-size: 13px;
}
.help-panel ol {
  margin: 0;
  padding-left: 20px;
  color: #536c78;
  font-size: 12px;
  line-height: 1.75;
}
.help-panel p {
  margin: 9px 0 0;
  color: #657d87;
  font-size: 11px;
  line-height: 1.65;
}
.help-shortcuts dl,
.help-account {
  display: grid;
  gap: 6px;
  margin: 0;
}
.help-shortcuts dl > div,
.help-account > div {
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  min-height: 27px;
}
.help-shortcuts dt,
.help-account dt {
  color: #526d79;
  font-size: 11px;
}
.help-shortcuts dd,
.help-account dd {
  margin: 0;
  color: #254f63;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.help-center kbd {
  display: inline-grid;
  min-width: 26px;
  min-height: 22px;
  padding: 2px 6px;
  place-items: center;
  border: 1px solid #cadadd;
  border-bottom-width: 2px;
  border-radius: 3px;
  background: #fff;
  color: #24677e;
  font:
    700 10px/1 Consolas,
    monospace;
  box-shadow: 0 1px 1px rgba(14, 68, 91, 0.08);
}
.help-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.help-flow span {
  padding: 5px 7px;
  border-radius: 3px;
  background: #eaf5f5;
  color: #28717a;
  font-size: 10px;
}
.help-flow b {
  color: #99aeb4;
}
.help-safety {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #eed9af;
  border-left: 4px solid #efa43c;
  background: #fffaf0;
  color: #725d3f;
  font-size: 11px;
}
.help-safety strong {
  flex: 0 0 auto;
  color: #9e651b;
}
.help-runtime-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}
.help-runtime-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9aaab0;
  box-shadow: 0 0 0 3px rgba(154, 170, 176, 0.14);
}
.help-runtime-status.ready {
  color: #248257;
}
.help-runtime-status.ready::before {
  background: #2ca86c;
  box-shadow: 0 0 0 3px rgba(44, 168, 108, 0.15);
}
.help-runtime-status.error {
  color: #bf4e4e;
}
.help-runtime-status.error::before {
  background: #d45d5d;
  box-shadow: 0 0 0 3px rgba(212, 93, 93, 0.14);
}
.form.is-submitting {
  cursor: progress;
}
.form.is-submitting button[type="submit"] {
  cursor: wait;
  opacity: 0.72;
}
.form.is-submitting button[type="submit"]::after {
  content: " · 处理中";
  font-size: 10px;
  font-weight: 500;
  opacity: 0.82;
}
@media (max-width: 700px) {
  .company-meta {
    display: none;
  }
  .top-help {
    width: 42px;
    padding: 0;
    font-size: 0;
  }
  .top-help::before {
    content: "？";
    font-size: 14px;
    font-weight: 800;
  }
  .help-center {
    padding-inline: 14px;
  }
  .help-hero {
    margin-inline: -14px;
    padding-inline: 16px;
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
  .help-flow b {
    display: none;
  }
  .help-flow span {
    flex: 1 1 42%;
    text-align: center;
  }
  .help-safety {
    display: grid;
  }
}

/* Network failures stay visible and distinguish an unconfirmed write from a normal validation error. */
#connection-status-root {
  position: fixed;
  z-index: 60;
  right: 22px;
  bottom: 20px;
  width: min(460px, calc(100vw - 32px));
}
.connection-status {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid #e5c7a6;
  border-left: 4px solid #e89536;
  border-radius: 5px;
  background: #fffaf2;
  color: #744d25;
  box-shadow: 0 14px 38px rgba(31, 58, 76, 0.2);
}
.connection-status.offline {
  border-color: #e4b7bc;
  border-left-color: #cf5966;
  background: #fff7f8;
  color: #7b3540;
}
.connection-status.checking {
  border-color: #bad9e6;
  border-left-color: #268cc0;
  background: #f4fafe;
  color: #315f78;
}
.connection-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e89536;
  box-shadow: 0 0 0 4px rgba(232, 149, 54, 0.14);
}
.connection-status.offline .connection-status-dot {
  background: #cf5966;
  box-shadow: 0 0 0 4px rgba(207, 89, 102, 0.13);
}
.connection-status.checking .connection-status-dot {
  background: #268cc0;
  box-shadow: 0 0 0 4px rgba(38, 140, 192, 0.13);
  animation: connection-pulse 1s ease-in-out infinite alternate;
}
.connection-status strong,
.connection-status small {
  display: block;
}
.connection-status strong {
  font-size: 12px;
}
.connection-status small {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.45;
  opacity: 0.82;
}
.connection-status button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid currentColor;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}
.connection-status button:disabled {
  cursor: wait;
  opacity: 0.55;
}
@keyframes connection-pulse {
  to {
    opacity: 0.38;
    transform: scale(0.82);
  }
}
@media (max-width: 620px) {
  #connection-status-root {
    right: 16px;
    bottom: 16px;
  }
  .connection-status {
    grid-template-columns: 12px minmax(0, 1fr);
  }
  .connection-status button {
    grid-column: 2;
    justify-self: start;
  }
}

/* Background filters stay usable while the newest read request replaces older ones. */
#app[aria-busy="true"]::before {
  content: "";
  position: fixed;
  z-index: 360;
  top: 0;
  left: 0;
  width: 34%;
  height: 3px;
  background: linear-gradient(90deg, #0b4b91, #20a7c7, #59b44a);
  box-shadow: 0 1px 5px rgba(10, 83, 133, 0.24);
  pointer-events: none;
  animation: page-query-progress 1.05s ease-in-out infinite alternate;
}
@keyframes page-query-progress {
  from {
    transform: translateX(-72%);
  }
  to {
    transform: translateX(265%);
  }
}
@media (prefers-reduced-motion: reduce) {
  #app[aria-busy="true"]::before {
    width: 100%;
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .button:hover,
  .shortcut:hover,
  .report-card:hover {
    transform: none;
  }
}

.notification-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.notification-summary-grid article {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(30, 108, 136, 0.13);
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.98),
    rgba(238, 249, 247, 0.94)
  );
  box-shadow: 0 12px 30px rgba(15, 71, 94, 0.07);
}
.notification-summary-grid article::after {
  content: "";
  position: absolute;
  inset: auto -25% -55% 45%;
  height: 90px;
  border-radius: 50%;
  background: rgba(70, 178, 135, 0.1);
}
.notification-summary-grid article.critical::after {
  background: rgba(220, 77, 83, 0.1);
}
.notification-summary-grid span,
.notification-summary-grid small {
  display: block;
  color: #6b8189;
}
.notification-summary-grid strong {
  display: block;
  margin: 7px 0 4px;
  color: #124f70;
  font-size: 28px;
  line-height: 1;
}
.notification-workspace {
  padding: 0;
  overflow: hidden;
}
.notification-filters {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid #e3edef;
  background: #f8fbfb;
}
.notification-filters label {
  display: grid;
  gap: 5px;
  color: #607983;
  font-size: 10px;
  font-weight: 800;
}
.notification-filters select {
  min-width: 140px;
}
.notification-list {
  display: grid;
  gap: 0;
}
.notification-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
  padding: 20px 22px;
  border-bottom: 1px solid #e7eef0;
  border-left: 4px solid #4e9f8c;
  transition:
    background-color 0.18s ease,
    transform 0.18s ease;
}
.notification-record:hover {
  background: #fbfefd;
  transform: translateX(2px);
}
.notification-record.severity-critical {
  border-left-color: #d94f59;
  background: linear-gradient(90deg, rgba(217, 79, 89, 0.035), transparent 36%);
}
.notification-record.severity-warning {
  border-left-color: #dea047;
}
.notification-record-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #82949a;
  font-size: 10px;
}
.notification-category,
.notification-severity {
  padding: 4px 8px;
  border-radius: 999px;
  background: #edf6f4;
  color: #287764;
  font-weight: 800;
}
.severity-critical .notification-severity {
  color: #b53642;
  background: #fff0f1;
}
.severity-warning .notification-severity {
  color: #9d651c;
  background: #fff6e8;
}
.notification-record h2 {
  margin: 10px 0 5px;
  color: #173f50;
  font-size: 16px;
}
.notification-record p {
  margin: 0;
  color: #607780;
  line-height: 1.65;
}
.notification-reference {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  color: #87979d;
  font-size: 9px;
}
.notification-reference code {
  color: #4b7584;
}
.notification-record-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  text-align: right;
}
.notification-responsibility {
  display: grid;
  gap: 3px;
  justify-items: end;
}
.notification-responsibility span {
  color: #26856f;
  font-size: 9px;
  font-weight: 900;
}
.notification-responsibility strong {
  color: #315f6d;
  font-size: 11px;
}
.notification-responsibility small {
  max-width: 210px;
  color: #82959b;
  line-height: 1.45;
}
.notification-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  color: #70858d;
  background: #f8fbfb;
}
.notification-pagination > div {
  display: flex;
  gap: 8px;
}
.notification-empty {
  padding: 54px 20px;
  text-align: center;
  color: #789097;
}
.notification-empty > span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #2e8d79, #54b470);
  box-shadow: 0 12px 24px rgba(37, 133, 111, 0.2);
  font-size: 20px;
}
.notification-empty h2 {
  margin: 14px 0 6px;
  color: #315d6b;
  font-size: 16px;
}
.notification-ack-context {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #d9e8e8;
  border-radius: 12px;
  background: #f4faf8;
}
.notification-ack-context span {
  color: #64818a;
  font-size: 10px;
}
.notification-ack-context strong {
  color: #225a68;
}
.notification-ack-context p {
  margin: 0;
  color: #607b83;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .notification-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .notification-record {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .notification-record-actions {
    align-items: flex-start;
    text-align: left;
  }
  .notification-responsibility {
    justify-items: start;
  }
}
@media (max-width: 560px) {
  .notification-summary-grid {
    grid-template-columns: 1fr;
  }
  .notification-filters {
    align-items: stretch;
    flex-direction: column;
  }
  .notification-filters select,
  .notification-filters .button {
    width: 100%;
  }
  .notification-record {
    padding: 17px 15px;
  }
  .notification-pagination {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .notification-record {
    transition: none;
  }
  .notification-record:hover {
    transform: none;
  }
}

.filter-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}
.filter-summary .card-subtitle {
  text-align: right;
}
.filter-reset {
  min-height: 27px;
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid #c9dfe4;
  border-radius: 2px;
  color: #1681a8;
  background: #f7fbfc;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.filter-reset:hover {
  border-color: #76bcc9;
  background: #edf8fa;
}
.filter-reset:focus-visible {
  outline: 2px solid #28a9bd;
  outline-offset: 2px;
}
.toolbar:has(.filter-reset),
.approval-filter:has(.filter-reset),
.filter-card:has(.filter-reset),
.inventory-query:has(.filter-reset),
.legacy-list-head:has(.filter-reset) {
  border-color: #9bcfdc;
  box-shadow: inset 3px 0 0 #168bc7;
}
.filter-reset::before {
  content: "●";
  margin-right: 5px;
  color: #5fae42;
  font-size: 8px;
  vertical-align: 1px;
}
@media (max-width: 900px) {
  .filter-summary {
    width: 100%;
    justify-content: space-between;
  }
  .filter-summary .card-subtitle {
    text-align: left;
  }
}

/* Dense office lists keep their column meaning visible without turning mobile pages into nested scrollers. */
@media (min-width: 901px) {
  .data-card > .table-wrap {
    max-height: min(64vh, 720px);
    overflow: auto;
    scrollbar-gutter: stable;
  }
  .data-card > .table-wrap > .data-table > thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    box-shadow:
      0 1px 0 #dce8eb,
      0 3px 7px rgba(22, 83, 106, 0.05);
  }
  .data-table:has(tbody .actions-cell) > thead th:last-child {
    position: sticky;
    right: 0;
    z-index: 4;
    background: #eaf3f5;
    box-shadow:
      -4px 0 7px rgba(22, 83, 106, 0.07),
      0 1px 0 #dce8eb;
  }
  .data-table > tbody .actions-cell {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #fff;
    box-shadow: -4px 0 7px rgba(22, 83, 106, 0.07);
  }
  .data-table > tbody tr:hover .actions-cell {
    background: #f5fbfc;
  }
  .modal--document .form-foot {
    position: sticky;
    bottom: -16px;
    z-index: 5;
    margin: 16px -18px -16px;
    padding: 12px 18px;
    border-top: 1px solid #d8e5e8;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -5px 12px rgba(25, 72, 92, 0.06);
  }
}
.table-wrap.is-horizontally-scrollable:focus-visible,
.document-lines.is-horizontally-scrollable:focus-visible {
  outline: 3px solid rgba(27, 143, 197, 0.45);
  outline-offset: 2px;
}

/* High-volume document lists retain the original dense table while rendering only one clear page. */
.list-pagination {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 13px;
  border-top: 1px solid #e1eaed;
  background: #fafcfc;
  color: #71858e;
  font-size: 11px;
}
.list-pagination > div {
  display: flex;
  align-items: center;
  gap: 5px;
}
.list-pagination select,
.list-pagination button {
  min-height: 29px;
  border: 1px solid #d3e0e4;
  border-radius: 3px;
  background: #fff;
  color: #476a79;
  font-size: 11px;
}
.list-pagination select {
  padding: 0 24px 0 8px;
}
.list-pagination button {
  min-width: 50px;
  padding: 0 8px;
  cursor: pointer;
}
.list-pagination button:hover:not(:disabled) {
  border-color: #68bbc8;
  color: #117ca1;
  background: #f3fbfc;
}
.list-pagination button:disabled {
  cursor: default;
  opacity: 0.4;
}
.list-pagination b {
  min-width: 84px;
  color: #3d6474;
  text-align: center;
  font-size: 11px;
}
@media (max-width: 760px) {
  .list-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .list-pagination > div {
    max-width: 100%;
    flex-wrap: wrap;
  }
}
.system-runtime-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.organization-hero {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(
      circle at 82% 16%,
      rgba(174, 207, 31, 0.72),
      transparent 24%
    ),
    linear-gradient(118deg, #07518d, #087f58);
}
.organization-logo {
  display: grid;
  width: 68px;
  height: 68px;
  padding: 7px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 40, 74, 0.2);
}
.organization-hero span,
.organization-hero small {
  color: #d9ecee;
  font-size: 11px;
}
.organization-hero h2 {
  margin: 4px 0;
  font-size: 24px;
}
.organization-hero p {
  margin: 0;
  color: #dff0df;
}
.organization-state {
  min-width: 145px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(4, 58, 75, 0.18);
}
.organization-state strong,
.organization-state small {
  display: block;
}
.organization-state strong {
  color: #e5f2a9;
}
.organization-state small {
  margin-top: 4px;
}
.organization-form {
  margin-top: 14px;
  padding: 0 22px 22px;
}
.organization-form .form-grid {
  padding-top: 8px;
}
.organization-impact {
  display: grid;
  gap: 3px;
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px solid #d4e8e3;
  border-left: 4px solid #28ae83;
  background: #f4fbf9;
  color: #617d78;
  font-size: 11px;
}
.organization-impact strong {
  color: #2d7166;
}
.system-runtime-hero > div:first-child {
  max-width: 820px;
}
.runtime-health {
  min-width: 150px;
  padding: 20px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(145deg, #149447, #0b7335);
  box-shadow: 0 14px 30px rgba(11, 115, 53, 0.2);
}
.runtime-health.warning {
  background: linear-gradient(145deg, #d15a30, #ad351f);
}
.runtime-health strong,
.runtime-health span {
  display: block;
}
.runtime-health strong {
  font-size: 22px;
  margin-bottom: 5px;
}
.runtime-detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(520px, 1.28fr);
  gap: 14px;
  margin-top: 14px;
}
.runtime-process dl {
  margin: 0;
  padding: 0 22px 22px;
}
.runtime-process dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.runtime-process dl div:last-child {
  border-bottom: 0;
}
.runtime-process dt {
  color: var(--muted);
}
.runtime-process dd {
  margin: 0;
  font-weight: 750;
  color: var(--navy);
}
.runtime-process .runtime-projection dd {
  color: #24785c;
}
.runtime-process .runtime-projection.warning dt,
.runtime-process .runtime-projection.warning dd {
  color: #bd4b35;
}
.runtime-volumes {
  margin-top: 14px;
}
.runtime-volume-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 22px 22px;
}
.runtime-volume-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 11px 18px;
  padding: 17px;
  border: 1px solid #d7e7e9;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8fcfc, #f4f9ff);
}
.runtime-volume-card > div strong,
.runtime-volume-card > div span {
  display: block;
}
.runtime-volume-card > div > strong {
  color: var(--navy);
}
.runtime-volume-card > div > span,
.runtime-volume-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.runtime-volume-amount {
  text-align: right;
}
.runtime-volume-bar {
  grid-column: 1/-1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce9e8;
}
.runtime-volume-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), #2d80b6);
}
.runtime-volume-card small {
  grid-column: 1/-1;
}
.runtime-volume-card.warning {
  border-color: #efb19f;
  background: #fff7f3;
}
.runtime-volume-card.warning .runtime-volume-bar i {
  background: linear-gradient(90deg, #e7833f, #c8462d);
}
.operational-alert-center,
.backup-freshness-panel {
  margin-top: 14px;
  overflow: hidden;
}
.operational-alert-summary {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.operational-alert-summary span {
  padding: 4px 8px;
  border: 1px solid #d6e4e7;
  border-radius: 999px;
  color: #58717d;
  background: #f7fafb;
  font-size: 10px;
  font-weight: 750;
}
.operational-alert-summary .critical {
  border-color: #f0bbb0;
  color: #a63c2b;
  background: #fff5f2;
}
.operational-alert-summary .warning {
  border-color: #efd5a2;
  color: #8c6414;
  background: #fffbef;
}
.operational-alert-list {
  display: grid;
  gap: 8px;
  padding: 0 22px 22px;
}
.operational-alert {
  display: grid;
  grid-template-columns: 4px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px 14px 0;
  border: 1px solid #dce7e9;
  border-radius: 10px;
  background: #fbfdfd;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.operational-alert:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(24, 75, 92, 0.08);
}
.operational-alert-signal {
  align-self: stretch;
  border-radius: 0 4px 4px 0;
  background: #df9c30;
}
.operational-alert.critical .operational-alert-signal {
  background: #d75139;
}
.operational-alert.acknowledged {
  background: #f7faf9;
  opacity: 0.88;
}
.operational-alert-main > strong {
  display: block;
  margin-top: 5px;
  color: #173e53;
  font-size: 13px;
}
.operational-alert-main p {
  margin: 4px 0 0;
  color: #617782;
  font-size: 11px;
  line-height: 1.55;
}
.operational-alert-heading,
.operational-alert-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #758892;
  font-size: 10px;
}
.operational-alert-heading code {
  color: #456876;
  font-size: 10px;
}
.operational-alert-level {
  padding: 2px 6px;
  border-radius: 3px;
  color: #8a5d0e;
  background: #fff0ca;
  font-weight: 800;
}
.operational-alert.critical .operational-alert-level {
  color: #a23524;
  background: #fde1db;
}
.operational-alert-meta {
  margin-top: 7px;
}
.operational-alert-reason {
  margin-top: 7px;
  padding: 7px 9px;
  border-left: 3px solid #4d9f7f;
  color: #4d6d64;
  background: #eef8f4;
  font-size: 10px;
}
.operational-alert-action {
  min-width: 76px;
  text-align: right;
}
.operational-alert-action .secondary-button {
  min-height: 31px;
  padding: 0 10px;
  font-size: 11px;
}
.operational-alert-accepted {
  color: #328165;
  font-size: 11px;
  font-weight: 800;
}
.operational-alert-empty {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 78px;
  padding: 15px;
  border: 1px dashed #bcded1;
  border-radius: 10px;
  color: #477267;
  background: #f4fbf8;
}
.operational-alert-empty > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #35a477;
  font-weight: 900;
}
.operational-alert-empty strong,
.operational-alert-empty p {
  display: block;
  margin: 0;
}
.operational-alert-empty p {
  margin-top: 3px;
  color: #719087;
  font-size: 11px;
}
.backup-freshness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 22px 22px;
}
.backup-freshness {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid #dce8e7;
  border-radius: 8px;
  background: #f8fbfb;
}
.backup-freshness strong,
.backup-freshness span {
  display: block;
}
.backup-freshness strong {
  color: #244e61;
  font-size: 11px;
}
.backup-freshness span {
  margin-top: 3px;
  color: #7a8e96;
  font-size: 9px;
}
.backup-freshness b {
  padding: 3px 7px;
  border-radius: 999px;
  color: #26745c;
  background: #e2f4ed;
  font-size: 10px;
  white-space: nowrap;
}
.backup-freshness:not(.fresh) {
  border-color: #efc2b8;
  background: #fff8f5;
}
.backup-freshness:not(.fresh) b {
  color: #aa422f;
  background: #fde4de;
}
.backup-freshness-empty {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px dashed #c9dcdf;
  border-radius: 8px;
  color: #5d7882;
  background: #f8fbfb;
}
.backup-freshness-empty > span {
  color: #54a184;
  font-size: 16px;
}
.backup-freshness-empty strong,
.backup-freshness-empty small {
  display: block;
}
.backup-freshness-empty strong {
  color: #496872;
  font-size: 11px;
}
.backup-freshness-empty small {
  margin-top: 2px;
  color: #81949b;
  font-size: 9px;
}
.operational-alert-ack-context {
  margin: -4px 0 15px;
  padding: 12px 14px;
  border-left: 4px solid #d8763f;
  color: #5b7079;
  background: #f7fafb;
}
.operational-alert-ack-context span,
.operational-alert-ack-context strong {
  display: block;
}
.operational-alert-ack-context span {
  color: #7c8f97;
  font-size: 10px;
}
.operational-alert-ack-context strong {
  margin-top: 4px;
  color: #214c60;
}
.operational-alert-ack-context p {
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .runtime-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .backup-freshness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .system-runtime-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .runtime-volume-grid,
  .backup-freshness-grid {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }
  .operational-alert-list {
    padding-inline: 16px;
  }
  .operational-alert {
    grid-template-columns: 4px minmax(0, 1fr);
  }
  .operational-alert-action {
    grid-column: 2;
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .operational-alert {
    transition: none;
  }
  .operational-alert:hover {
    transform: none;
  }
}
@media (max-width: 760px) {
  .organization-hero {
    grid-template-columns: 58px 1fr;
    padding: 17px;
  }
  .organization-logo {
    width: 54px;
    height: 54px;
  }
  .organization-state {
    grid-column: 1/-1;
  }
  .organization-form {
    padding-inline: 17px;
  }
}

.reversal-intro {
  border-top: 3px solid #e15b44;
}
.reversal-warning {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #f0c2b7;
  border-radius: 10px;
  background: #fff7f4;
  color: #7d3327;
}
.reversal-warning strong {
  white-space: nowrap;
}

.report-personal-bar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #d7e8e7;
  border-radius: 12px;
  background: linear-gradient(110deg, #f7fcfb, #f4f9ff);
}
.report-personal-bar > div:first-child strong,
.report-personal-bar > div:first-child span {
  display: block;
}
.report-personal-bar > div:first-child strong {
  color: #154f72;
  font-size: 14px;
}
.report-personal-bar > div:first-child span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.saved-report-views {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 2px 0;
}
.saved-report-view {
  position: relative;
  flex: 0 0 auto;
  min-width: 190px;
  border: 1px solid #d5e4e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(32, 82, 101, 0.05);
}
.saved-report-view > button:first-child {
  display: block;
  width: 100%;
  padding: 10px 30px 10px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.saved-report-view strong,
.saved-report-view span {
  display: block;
}
.saved-report-view strong {
  color: #165778;
  font-size: 12px;
}
.saved-report-view span {
  margin-top: 4px;
  color: #7b9099;
  font-size: 10px;
}
.saved-view-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #eef4f5;
  color: #7a8e96;
  cursor: pointer;
}
.saved-view-remove:hover {
  color: #b23b2d;
  background: #fff0ed;
}
.report-task-center {
  margin-top: 16px;
}
@media (max-width: 760px) {
  .report-personal-bar {
    grid-template-columns: 1fr;
  }
  .saved-report-view {
    min-width: 175px;
  }
}

.product-row-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}
.product-row-image {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid #d9e7e8;
  border-radius: 9px;
  object-fit: cover;
  background: #f6faf9;
}
.product-row-placeholder {
  display: grid;
  place-items: center;
  color: #087b70;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(145deg, #eaf8ef, #e9f4fb);
}
.product-detail-symbol.has-image {
  overflow: hidden;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: #fff;
}
.product-detail-symbol.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-image-meta {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
}

/* Branded confirmation layer stays above business modals for irreversible actions. */
body.confirmation-open {
  overflow: hidden;
}
#confirmation-root {
  position: relative;
  z-index: 90;
}
.confirmation-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 36, 49, 0.48);
  backdrop-filter: blur(2px);
}
.confirmation-dialog {
  width: min(460px, 100%);
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px 16px;
  padding: 23px;
  border: 1px solid #cfe1e6;
  border-top: 4px solid #1b9eb9;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(10, 37, 54, 0.32);
}
.confirmation-dialog:focus {
  outline: none;
}
.confirmation-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #20b89e, #1789b4);
  font-size: 20px;
  font-weight: 850;
}
.confirmation-copy h2 {
  margin: 0;
  color: #315668;
  font-size: 17px;
}
.confirmation-copy p {
  margin: 7px 0 0;
  color: #526e7b;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
}
.confirmation-copy small {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border-left: 3px solid #42b7bd;
  background: #f2fafb;
  color: #6d828b;
  font-size: 11px;
  line-height: 1.55;
}
.confirmation-dialog.danger {
  border-top-color: #df5c4d;
}
.confirmation-dialog.danger .confirmation-symbol {
  background: linear-gradient(145deg, #ef7859, #c8453f);
}
.confirmation-dialog.danger .confirmation-copy small {
  border-left-color: #df6b57;
  background: #fff7f4;
  color: #845d54;
}
.confirmation-verification {
  grid-column: 1/-1;
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border: 1px solid #efd1c8;
  background: #fff9f7;
  color: #76574e;
  font-size: 11px;
}
.confirmation-verification b {
  color: #bd4438;
  font-family: Consolas, monospace;
}
.confirmation-verification input {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #dcc5bf;
  border-radius: 2px;
  outline: 0;
  color: #553e38;
  font-family: Consolas, monospace;
}
.confirmation-verification input:focus {
  border-color: #dd7968;
  box-shadow: 0 0 0 2px rgba(221, 121, 104, 0.12);
}
.confirmation-reason textarea {
  width: 100%;
  min-height: 72px;
  padding: 8px 9px;
  resize: vertical;
  border: 1px solid #dcc5bf;
  border-radius: 2px;
  outline: 0;
  color: #553e38;
  font:
    12px/1.55 "Microsoft YaHei",
    sans-serif;
}
.confirmation-reason textarea:focus {
  border-color: #dd7968;
  box-shadow: 0 0 0 2px rgba(221, 121, 104, 0.12);
}
.confirmation-reason small {
  color: #9b7b72;
  font-size: 10px;
}
.confirmation-actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}
.confirmation-actions .button {
  min-width: 86px;
}
@media (max-width: 520px) {
  .confirmation-dialog {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 18px;
  }
  .confirmation-symbol {
    width: 34px;
    height: 34px;
  }
  .confirmation-actions .button {
    flex: 1;
  }
}

/* Motion system: short, functional transitions keep the dense enterprise UI calm. */
.content.content-enter {
  animation: content-enter var(--motion-slow) var(--ease-emphasized) both;
}
.modal-backdrop {
  animation: backdrop-enter var(--motion-base) var(--ease-standard) both;
}
.modal-backdrop > .modal {
  animation: dialog-enter var(--motion-slow) var(--ease-emphasized) both;
  transform-origin: center 22%;
}
.confirmation-backdrop {
  animation: backdrop-enter var(--motion-base) var(--ease-standard) both;
}
.confirmation-dialog {
  animation: dialog-enter var(--motion-slow) var(--ease-emphasized) both;
  transform-origin: center;
}
.card,
.stat-card,
.shortcut,
.report-card,
.close-operation-list > button {
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-base) var(--ease-standard),
    transform var(--motion-base) var(--ease-emphasized);
}
.stat-card:hover,
.shortcut:hover,
.report-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(10, 70, 105, 0.1);
}
.account.account-top {
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
}
.account.account-top:hover {
  transform: translateX(2px);
}
.mobile-sidebar-backdrop {
  animation: backdrop-enter var(--motion-base) var(--ease-standard) both;
}
@keyframes menu-children-enter {
  from {
    opacity: 0;
    transform: translateY(-5px) scaleY(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}
@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes backdrop-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes dialog-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 900px) {
  body:not(.login-mode) .sidebar {
    transition: transform var(--motion-slow) var(--ease-emphasized);
  }
  .modal-backdrop > .modal {
    animation-name: mobile-dialog-enter;
    transform-origin: center bottom;
  }
  @keyframes mobile-dialog-enter {
    from {
      opacity: 0.72;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .content.content-enter,
  .menu-section.expanded .menu-children,
  .menu-section.search-expanded .menu-children,
  .modal-backdrop,
  .modal-backdrop > .modal,
  .confirmation-backdrop,
  .confirmation-dialog,
  .mobile-sidebar-backdrop {
    animation: none !important;
  }
  .nav-button:hover,
  .account.account-top:hover,
  .stat-card:hover,
  .shortcut:hover,
  .report-card:hover {
    transform: none;
  }
}
.button:disabled,
.legacy-command:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  filter: none;
}
.button.selection-clear,
.legacy-command.selection-clear {
  color: #94601f;
  border-color: #e7c88f;
  background: #fff8e9;
}
.button.selection-clear:hover,
.legacy-command.selection-clear:hover {
  color: #7d4d13;
  border-color: #dbae5d;
  background: #fff3d7;
}
.report-filter-region {
  display: flex;
  align-items: stretch;
  background: #fbfdfd;
}
.report-filter-region.collapsed {
  justify-content: flex-end;
  min-height: 37px;
}
.legacy-report-shell .report-filter-region .report-filter-toolbar {
  min-width: 0;
  flex: 1;
}
.report-filter-toolbar[hidden] {
  display: none;
}
.field[data-opening-lot][hidden] {
  display: none;
}
.report-filter-toggle {
  flex: 0 0 98px;
  min-height: 100%;
  padding: 7px 9px;
  border: 0;
  border-left: 1px solid #dce8eb;
  background: #f7fafb;
  color: #347087;
  font-size: 11px;
  font-weight: 700;
}
.report-filter-toggle span {
  margin-right: 5px;
  color: #178fc3;
}
.report-filter-toggle:hover {
  color: #17734f;
  background: #f2faf6;
}
.report-filter-toggle:focus-visible {
  position: relative;
  outline: 2px solid #1d9ddb;
  outline-offset: -3px;
}
@media (max-width: 700px) {
  .report-filter-region {
    display: grid;
  }
  .report-filter-region.collapsed {
    display: flex;
  }
  .report-filter-toggle {
    min-height: 40px;
    border-left: 0;
    border-top: 1px solid #dce8eb;
  }
  .report-filter-region.collapsed .report-filter-toggle {
    flex-basis: 120px;
    border-top: 0;
    border-left: 1px solid #dce8eb;
  }
}

/* Batch-aware returns keep source-lot responsibility visible without widening ordinary inputs. */
.return-line-table td:nth-child(8) {
  min-width: 250px;
}
.lot-allocation-list {
  display: grid;
  gap: 6px;
}
.lot-allocation-item {
  min-width: 230px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  align-items: center;
  gap: 9px;
  border: 1px solid #d5e8e4;
  border-left: 3px solid #22a982;
  border-radius: 4px;
  background: #f7fcfa;
}
.lot-allocation-item > span,
.lot-allocation-item strong,
.lot-allocation-item small {
  min-width: 0;
  display: block;
}
.lot-allocation-item strong {
  overflow: hidden;
  color: #176f68;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lot-allocation-item small {
  margin-top: 3px;
  color: #71868b;
  font-size: 9px;
  line-height: 1.45;
}
.lot-allocation-item input {
  width: 78px;
  min-width: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.return-lot-detail {
  display: grid;
  gap: 5px;
}
.return-lot-detail > div {
  min-width: 235px;
  padding: 6px 8px;
  display: grid;
  grid-template-columns: minmax(70px, 1fr) minmax(92px, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #d8e8e5;
  border-left: 3px solid #1f9e7b;
  border-radius: 3px;
  background: #f8fcfb;
}
.return-lot-detail strong {
  overflow: hidden;
  color: #176d67;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.return-lot-detail span {
  color: #74878c;
  font-size: 9px;
  white-space: nowrap;
}
.return-lot-detail b {
  color: #164f72;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.return-detail-table td:nth-child(5) {
  min-width: 270px;
}
.inventory-transfer-line-table td:nth-child(7) {
  min-width: 260px;
}
@media (max-width: 700px) {
  .lot-allocation-item {
    min-width: 205px;
    grid-template-columns: minmax(0, 1fr) 70px;
  }
  .lot-allocation-item input {
    width: 70px;
  }
}

/* 2026 visual polish: premium, restrained enterprise workspace. */
:root {
  --canvas: #f4f7f9;
  --surface: #fff;
  --line: #dfe8ec;
  --ink: #17394a;
  --ink-soft: #5e7480;
  --muted: #7c8d95;
  --focus: #168fbd;
  --focus-ring: rgba(22, 143, 189, 0.16);
  --radius-control: 7px;
  --radius-card: 10px;
  --shadow: 0 16px 40px rgba(20, 64, 83, 0.09);
  --shadow-soft: 0 7px 20px rgba(20, 64, 83, 0.07);
}
body {
  background: linear-gradient(145deg, #f7fafb 0%, #f1f5f7 56%, #eef4f5 100%);
  color: var(--ink);
}
.shell {
  grid-template-columns: 236px minmax(0, 1fr);
}
.sidebar {
  background:
    radial-gradient(
      circle at 12% 2%,
      rgba(31, 173, 194, 0.18),
      transparent 26%
    ),
    linear-gradient(180deg, #12384c 0%, #102f42 46%, #0d2839 100%);
  border-right: 1px solid rgba(5, 35, 50, 0.2);
  box-shadow: 8px 0 30px rgba(18, 48, 64, 0.08);
}
.brand {
  height: 62px;
  min-height: 62px;
  padding: 10px 16px;
  gap: 11px;
  background: linear-gradient(
    125deg,
    rgba(10, 127, 180, 0.94),
    rgba(11, 141, 148, 0.92)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}
.brand::before {
  content: "";
  position: absolute;
  inset: auto -30px -52px auto;
  width: 132px;
  height: 108px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  pointer-events: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 5px 9px rgba(5, 47, 68, 0.18));
}
.brand strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.35px;
}
.brand small {
  margin-top: 2px;
  color: rgba(242, 252, 255, 0.78);
  font-size: 9px;
}
.account.account-top {
  width: calc(100% - 24px);
  min-height: 58px;
  margin: 12px 12px 6px;
  padding: 9px 11px;
  border: 1px solid rgba(180, 214, 226, 0.14);
  border-left: 1px solid rgba(180, 214, 226, 0.14);
  border-radius: 9px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}
.account.account-top::before {
  content: "";
  align-self: stretch;
  width: 2px;
  margin: -2px 0 -2px -4px;
  border-radius: 99px;
  background: linear-gradient(#b7d638, #4fba72);
}
.account.account-top:hover {
  border-color: rgba(110, 197, 214, 0.3);
  background: linear-gradient(
    135deg,
    rgba(45, 148, 172, 0.16),
    rgba(255, 255, 255, 0.045)
  );
}
.avatar {
  background: linear-gradient(145deg, #c5de46, #53b966);
  box-shadow: 0 4px 10px rgba(4, 37, 49, 0.22);
}
.menu-search {
  height: 40px;
  margin: 7px 12px 8px;
  padding: 0 10px;
  border-color: rgba(190, 222, 232, 0.15);
  border-radius: 8px;
  background: rgba(3, 25, 38, 0.22);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}
.menu-search:focus-within {
  border-color: rgba(67, 181, 205, 0.7);
  background: rgba(3, 27, 41, 0.36);
  box-shadow: 0 0 0 3px rgba(38, 160, 191, 0.12);
}
.menu-search kbd {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
}
.nav {
  padding: 4px 8px 12px;
}
.menu-section {
  border-bottom: 0;
  margin-bottom: 2px;
}
.menu-toggle {
  height: 42px;
  padding: 0 12px;
  border-radius: 7px;
  color: #cfdee5;
  font-size: 13px;
  font-weight: 680;
}
.menu-toggle:hover,
.menu-section.expanded > .menu-toggle,
.menu-section.search-expanded > .menu-toggle {
  background: rgba(62, 148, 169, 0.11);
}
.menu-toggle .nav-icon {
  color: #8fb7c7;
}
.menu-toggle b {
  color: #7199a9;
  font-size: 17px;
}
.menu-children {
  margin: 1px 0 5px;
  padding: 2px 0 4px;
  border-radius: 7px;
  background: rgba(1, 20, 31, 0.12);
}
.nav-button {
  width: calc(100% - 8px);
  min-height: 34px;
  margin: 1px 4px;
  padding: 7px 12px 7px 36px;
  border-radius: 6px;
  color: #a9c2cc;
}
.nav-button:hover {
  background: rgba(255, 255, 255, 0.055);
  transform: translateX(2px);
}
.nav-button.active {
  background: linear-gradient(
    100deg,
    rgba(23, 144, 183, 0.72),
    rgba(30, 133, 147, 0.34)
  );
  box-shadow:
    inset 2px 0 0 #b9d63d,
    0 4px 12px rgba(3, 30, 43, 0.12);
}
.menu-shortcut-label {
  margin-left: 39px;
}
.sidebar-release {
  color: #638897;
}
.topbar {
  height: 50px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(191, 210, 218, 0.78);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 3px 14px rgba(25, 70, 89, 0.045);
  backdrop-filter: blur(16px) saturate(135%);
}
.top-nav {
  flex-basis: 36px;
  width: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8aa0aa;
}
.top-nav:hover {
  color: #1589b7;
  background: #eef7f9;
}
.work-tabs-scroll {
  gap: 4px;
  padding: 6px 4px;
  scrollbar-width: none;
}
.work-tab-item {
  align-items: stretch;
  border: 0;
  border-radius: 7px;
  background: transparent;
  overflow: hidden;
}
.work-tab,
.work-tab.home {
  border: 0;
  padding-inline: 13px;
  border-radius: 7px;
  background: transparent;
  color: #657b85;
}
.work-tab-close {
  border-radius: 0 7px 7px 0;
  background: transparent;
}
.work-tab-item:hover {
  background: #f0f6f8;
}
.work-tab-item.current,
.work-tab-item.current .work-tab,
.work-tab.active {
  color: #0b789f;
  background: #e7f4f7;
}
.work-tab-item.current {
  box-shadow: inset 0 -2px #1598bb;
}
.work-tab-item.current .work-tab,
.work-tab-item.current .work-tab-close {
  color: #0b789f;
}
.top-close,
.top-logout,
.top-help {
  border-left: 1px solid #edf2f4;
  background: transparent;
}
.content {
  max-width: 1480px;
  padding: 24px 30px 44px;
}
.page-heading {
  margin-bottom: 20px;
}
.page-heading h1 {
  color: #173d50;
  font-size: 24px;
  font-weight: 780;
  letter-spacing: -0.35px;
}
.page-heading p {
  color: #71858f;
  line-height: 1.6;
}
.eyebrow {
  color: #1189ae;
}
.card,
.stat-card,
.shortcut,
.report-card {
  border-color: #e0e9ed;
  border-radius: 10px;
  box-shadow: 0 5px 18px rgba(24, 67, 86, 0.045);
}
.card-head {
  border-bottom-color: #e8eef1;
}
.button,
.legacy-command {
  border-color: #d7e3e7;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(20, 61, 78, 0.035);
}
.button:hover,
.legacy-command:hover:not(:disabled) {
  border-color: #9fcbd5;
  box-shadow: 0 6px 16px rgba(17, 94, 119, 0.09);
}
.button.primary {
  border-color: #118db9;
  background: linear-gradient(135deg, #159bc2, #0b7fae);
  box-shadow: 0 6px 14px rgba(13, 128, 174, 0.18);
}
.button.primary:hover {
  border-color: #0b79a3;
  background: linear-gradient(135deg, #128db4, #086f9d);
}
.field input,
.field select,
.field textarea,
.search input,
.select {
  border-color: #d8e4e8;
  border-radius: 6px;
  background: #fff;
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard);
}
.field input:focus,
.field select:focus,
.field textarea:focus,
.search input:focus,
.select:focus {
  border-color: #35a7c5;
  box-shadow: 0 0 0 3px rgba(28, 156, 191, 0.12);
}
.data-table thead th,
.line-table thead th {
  color: #5c7480;
  background: #f3f7f8;
  border-bottom-color: #dce7eb;
}
.data-table tbody tr,
.line-table tbody tr {
  transition: background-color var(--motion-fast) var(--ease-standard);
}
.data-table tbody tr:hover,
.line-table tbody tr:hover {
  background: #f5fafb;
}
.modal-backdrop {
  background: rgba(12, 35, 48, 0.46);
  backdrop-filter: blur(7px) saturate(90%);
}
.modal {
  border: 1px solid rgba(210, 226, 232, 0.9);
  border-radius: 12px;
  box-shadow:
    0 28px 80px rgba(8, 40, 56, 0.28),
    0 2px 8px rgba(8, 40, 56, 0.1);
}
.modal-head {
  padding: 18px 22px 15px;
  border-bottom-color: #e5edf0;
  background: rgba(251, 253, 253, 0.96);
  backdrop-filter: blur(12px);
}
.modal-head h2 {
  color: #204b5f;
}
.modal-close {
  border-radius: 7px;
  background: #f1f5f6;
}
.confirmation-dialog {
  border-radius: 12px;
  box-shadow: 0 26px 70px rgba(8, 40, 56, 0.26);
}
@media (max-width: 1100px) and (min-width: 901px) {
  .shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .content {
    padding-inline: 24px;
  }
}
@media (max-width: 900px) {
  body:not(.login-mode) .sidebar {
    width: min(86vw, 316px);
  }
  .topbar {
    padding-left: 0;
  }
  .content {
    padding: 20px 15px 88px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .modal {
    border-radius: 16px 16px 0 0;
  }
}

/* Dashboard refinement: preserve the original dense two-column workflow with calmer enterprise depth. */
.desktop-toolbar {
  height: 46px;
  margin: 0 0 14px;
  padding: 0 2px;
  gap: 13px;
  border: 0;
  color: #71858f;
}
.legacy-button {
  min-width: 108px;
  height: 34px;
  padding-inline: 14px;
  border: 1px solid rgba(17, 137, 174, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #1498bd, #0b7da8);
  box-shadow: 0 6px 15px rgba(12, 113, 151, 0.16);
  font-size: 12px;
  letter-spacing: 0.1px;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard),
    filter var(--motion-fast) var(--ease-standard);
}
.legacy-button:hover,
.legacy-button:focus-visible {
  background: linear-gradient(135deg, #128db2, #087298);
  box-shadow: 0 9px 20px rgba(10, 102, 139, 0.21);
  transform: translateY(-1px);
}
.desktop-layout {
  grid-template-columns: minmax(0, 1fr) clamp(236px, 20vw, 292px);
  gap: 22px;
}
.legacy-panel,
.reminder-panel,
.desktop-overview {
  border: 1px solid rgba(207, 223, 229, 0.94);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 8px 24px rgba(22, 64, 82, 0.065),
    0 1px 2px rgba(22, 64, 82, 0.035);
  transition:
    border-color var(--motion-base) var(--ease-standard),
    box-shadow var(--motion-base) var(--ease-standard),
    transform var(--motion-base) var(--ease-standard);
}
.legacy-panel {
  margin-bottom: 18px;
}
.legacy-panel:hover,
.reminder-panel:hover,
.desktop-overview:hover {
  border-color: rgba(151, 194, 205, 0.9);
  box-shadow:
    0 13px 30px rgba(20, 67, 87, 0.085),
    0 2px 5px rgba(20, 67, 87, 0.04);
  transform: translateY(-1px);
}
.legacy-panel > header {
  position: relative;
  height: 43px;
  padding: 0 17px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 88% -80%,
      rgba(192, 224, 66, 0.2),
      transparent 45%
    ),
    linear-gradient(108deg, #087fa7 0%, #0f95aa 52%, #159b88 100%);
  font-size: 13px;
  letter-spacing: 0.12px;
}
.legacy-panel > header::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}
.legacy-panel.blue-header > header {
  background:
    radial-gradient(
      circle at 86% -90%,
      rgba(91, 193, 190, 0.24),
      transparent 48%
    ),
    linear-gradient(108deg, #0b6e9f 0%, #0b82ad 58%, #118e9d 100%);
}
.panel-setting {
  position: relative;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  color: rgba(243, 252, 253, 0.88);
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard);
}
button.panel-setting:hover,
button.panel-setting:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.desktop-links {
  gap: 1px 28px;
  padding: 17px 20px 18px;
}
.desktop-link {
  min-height: 34px;
  padding: 0 27px 0 18px;
  border-radius: 6px;
  color: #465f6c;
  transition:
    color var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
}
.desktop-link::after {
  content: "›";
  position: absolute;
  right: 10px;
  top: 50%;
  color: #72aeb9;
  font-size: 16px;
  opacity: 0;
  transform: translate(-5px, -54%);
  transition:
    opacity var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
}
.desktop-link:hover,
.desktop-link:focus-visible {
  color: #08799e;
  background: linear-gradient(90deg, #edf8f8, #f6fbfb);
  transform: translateX(2px);
}
.desktop-link:hover::after,
.desktop-link:focus-visible::after {
  opacity: 1;
  transform: translate(0, -54%);
}
.desktop-link i {
  left: 6px;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: linear-gradient(145deg, #a8ca32, #4ba656);
  box-shadow: 0 0 0 3px rgba(115, 172, 61, 0.08);
}
.reminder-panel {
  position: sticky;
  top: 70px;
}
.reminder-panel > header {
  position: relative;
  height: 43px;
  padding: 0 15px 0 18px;
  background:
    radial-gradient(
      circle at 86% -70%,
      rgba(180, 216, 54, 0.18),
      transparent 48%
    ),
    linear-gradient(110deg,#173e52,#12576a);
  letter-spacing: 0.12px;
}
.reminder-panel > header::before {
  content: "";
  position: absolute;
  inset: 11px auto 11px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(#f3b34d, #df7c3d);
}
.reminder-list {
  padding: 9px 10px 11px;
}
.reminder-item {
  min-height: 52px;
  padding: 9px 7px;
  border-bottom: 1px solid #edf2f3;
  border-radius: 6px;
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
}
.reminder-item:hover,
.reminder-item:focus-visible {
  color: #086f96;
  background: #f2f8f9;
  transform: translateX(2px);
}
.reminder-count {
  min-width: 23px;
  height: 21px;
  border-radius: 7px;
  background: linear-gradient(145deg, #ec735f, #d95467);
  box-shadow: 0 4px 10px rgba(203, 71, 83, 0.17);
}
.reminder-footer {
  min-height: 38px;
  border-top-color: #e7eef0;
  background: #f7fafb;
  color: #167e9a;
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard);
}
.reminder-footer:hover,
.reminder-footer:focus-visible {
  color: #075f82;
  background: #edf6f7;
}
.desktop-overview {
  overflow: hidden;
}
.desktop-overview > header {
  height: 39px;
  padding: 0 16px;
  border: 0;
  border-left: 3px solid #1595b1;
  background: linear-gradient(90deg, #f1f7f8, #f7faf9);
  color: #3e6372;
}
.desktop-overview > div {
  background: linear-gradient(180deg, #fff, #fcfefe);
}
.compact-stat {
  position: relative;
  padding: 14px 15px 15px;
  border-right-color: #e9eff1;
}
.compact-stat::after {
  content: "";
  position: absolute;
  inset: auto 15px 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    rgba(21, 148, 177, 0.18),
    rgba(88, 170, 82, 0.12),
    transparent
  );
}
.compact-stat strong {
  color: #123f5b;
  font-size: 18px;
  letter-spacing: -0.15px;
}
.content.content-enter .desktop-toolbar {
  animation: dashboard-section-enter var(--motion-base) var(--ease-emphasized)
    both;
}
.content.content-enter .desktop-main > :nth-child(1) {
  animation: dashboard-section-enter var(--motion-slow) var(--ease-emphasized)
    35ms both;
}
.content.content-enter .desktop-main > :nth-child(2) {
  animation: dashboard-section-enter var(--motion-slow) var(--ease-emphasized)
    70ms both;
}
.content.content-enter .desktop-main > :nth-child(3),
.content.content-enter .reminder-panel {
  animation: dashboard-section-enter var(--motion-slow) var(--ease-emphasized)
    105ms both;
}
@keyframes dashboard-section-enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1180px) and (min-width: 901px) {
  .desktop-layout {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 16px;
  }
  .desktop-links {
    gap: 1px 16px;
    padding-inline: 16px;
  }
}
@media (max-width: 900px) {
  .desktop-toolbar {
    height: auto;
    min-height: 44px;
    margin-bottom: 12px;
  }
  .desktop-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .desktop-main {
    grid-row: 2;
  }
  .reminder-panel {
    position: static;
    grid-row: 1;
    width: 100%;
  }
  .desktop-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 1px;
    padding: 13px 14px 15px;
  }
  .legacy-panel > header {
    padding-inline: 14px;
  }
  .desktop-overview > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .content.content-enter .desktop-toolbar,
  .content.content-enter .desktop-main > :nth-child(1),
  .content.content-enter .desktop-main > :nth-child(2),
  .content.content-enter .desktop-main > :nth-child(3),
  .content.content-enter .reminder-panel {
    animation: none !important;
  }
  .legacy-button:hover,
  .legacy-panel:hover,
  .reminder-panel:hover,
  .desktop-overview:hover,
  .desktop-link:hover,
  .desktop-link:focus-visible,
  .reminder-item:hover,
  .reminder-item:focus-visible {
    transform: none;
  }
}

/* Operational workspace refinement: one visual system for sales, purchasing and inventory. */
.content[data-view="sales"],
.content[data-view="purchases"],
.content[data-view="inventory"] {
  --workspace-accent: #128bad;
  --workspace-deep: #16495f;
  --workspace-soft: #f3f8f9;
}
.content[data-view="sales"] .page-heading,
.content[data-view="purchases"] .page-heading,
.content[data-view="inventory"] .page-heading {
  position: relative;
  min-height: 58px;
  margin-bottom: 14px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(210, 226, 231, 0.92);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(18, 139, 173, 0.055), transparent 42%),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 22px rgba(21, 68, 86, 0.05);
}
.content[data-view="sales"] .page-heading::before,
.content[data-view="purchases"] .page-heading::before,
.content[data-view="inventory"] .page-heading::before {
  content: "";
  position: absolute;
  inset: 13px auto 13px 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #159bc1, #62ae43);
}
.content[data-view="sales"] .page-heading h1,
.content[data-view="purchases"] .page-heading h1,
.content[data-view="inventory"] .page-heading h1 {
  font-size: 20px;
  letter-spacing: -0.22px;
}
.content[data-view="sales"] .heading-actions,
.content[data-view="purchases"] .heading-actions,
.content[data-view="inventory"] .heading-actions {
  gap: 6px;
}
.content[data-view="sales"] .heading-actions .button:not(.primary):not(.danger),
.content[data-view="purchases"]
  .heading-actions
  .button:not(.primary):not(.danger),
.content[data-view="inventory"]
  .heading-actions
  .button:not(.primary):not(.danger) {
  border-color: #d6e4e8;
  color: #426b7a;
  background: #fff;
  box-shadow: none;
}
.content[data-view="sales"]
  .heading-actions
  .button:not(.primary):not(.danger):hover,
.content[data-view="purchases"]
  .heading-actions
  .button:not(.primary):not(.danger):hover,
.content[data-view="inventory"]
  .heading-actions
  .button:not(.primary):not(.danger):hover {
  border-color: #8bc2ce;
  color: #08789d;
  background: #f2fafb;
}
.content[data-view="sales"] > .insight {
  margin-bottom: 14px;
  border-color: #cee4e7;
  border-left: 3px solid #1594b4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(18, 72, 91, 0.055);
}
.operational-filter {
  position: relative;
  margin-top: 14px;
  overflow: hidden;
  border-color: #d7e6e9;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbfdfd, #f7fafb);
  box-shadow: 0 6px 18px rgba(22, 70, 88, 0.045);
}
.operational-filter::before {
  content: "查询条件";
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px 9px 5px;
  border-radius: 0 0 6px 0;
  color: #3d7181;
  background: #e8f3f5;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.5px;
}
.approval-filter.operational-filter {
  padding-top: 34px;
}
.inventory-query.operational-filter {
  padding-top: 13px;
}
.inventory-query.operational-filter::before {
  display: none;
}
.operational-filter .search,
.operational-filter .select,
.operational-filter .field input,
.operational-filter .field select,
.operational-filter .approval-date-range {
  box-shadow: 0 1px 2px rgba(23, 68, 85, 0.025);
}
.operational-data-card {
  overflow: hidden;
  border-color: #d7e4e8;
  border-radius: 10px;
  box-shadow: 0 9px 26px rgba(20, 67, 85, 0.055);
}
.operational-data-card > .card-head {
  min-height: 58px;
  padding-block: 11px;
  border-top: 2px solid rgba(21, 148, 180, 0.72);
  background: linear-gradient(90deg, #f3f8f9, #fbfcfc 55%, #f5faf8);
}
.operational-data-card .card-title {
  color: #194a5f;
  font-size: 15px;
  letter-spacing: 0.05px;
}
.operational-table tbody td {
  border-bottom-color: #e8eef0;
}
.operational-table tbody tr:nth-child(even) td:not(.actions-cell) {
  background: rgba(247, 250, 251, 0.58);
}
.operational-table tbody tr:hover td:not(.actions-cell) {
  background: #f1f8f9;
}
.row-actions {
  min-width: 184px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 5px;
}
.row-actions .button,
.row-actions .text-button {
  min-height: 27px;
  margin: 0;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.row-actions .text-button {
  border: 1px solid transparent;
  color: #337082;
  background: transparent;
}
.row-actions .text-button:hover,
.row-actions .text-button:focus-visible {
  border-color: #c8e1e5;
  color: #08789b;
  background: #edf7f8;
}
.row-actions .button.primary { order:2; }
.row-actions .button.danger,
.row-actions .danger-text {
  order: 3;
}
.content.content-enter .operational-filter {
  animation: operational-section-enter var(--motion-base) var(--ease-emphasized)
    35ms both;
}
.content.content-enter .operational-data-card {
  animation: operational-section-enter var(--motion-slow) var(--ease-emphasized)
    70ms both;
}
@keyframes operational-section-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 900px) {
  .content[data-view="sales"] .page-heading,
  .content[data-view="purchases"] .page-heading,
  .content[data-view="inventory"] .page-heading {
    align-items: flex-start;
    padding: 12px 12px 12px 16px;
  }
  .content[data-view="sales"] .heading-actions,
  .content[data-view="purchases"] .heading-actions,
  .content[data-view="inventory"] .heading-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }
  .approval-filter.operational-filter {
    padding-top: 32px;
  }
  .row-actions {
    min-width: 172px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .content.content-enter .operational-filter,
  .content.content-enter .operational-data-card {
    animation: none !important;
  }
}

/* Field operations: dense desktop records become touch-first task cards on mobile. */
.content[data-view="purchaseReview"],
.content[data-view="picking"],
.content[data-view="deliveries"] {
  --field-blue: #1189ad;
  --field-green: #289863;
  --field-lime: #a7c93d;
  --field-deep: #194d61;
}
.content[data-view="purchaseReview"] .page-heading,
.content[data-view="picking"] .page-heading,
.content[data-view="deliveries"] .page-heading {
  position: relative;
  min-height: 58px;
  margin-bottom: 13px;
  padding: 10px 12px 10px 18px;
  border: 1px solid #d6e5e9;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(17, 137, 173, 0.06), transparent 44%), #fff;
  box-shadow: 0 7px 22px rgba(20, 70, 88, 0.05);
}
.content[data-view="purchaseReview"] .page-heading::before,
.content[data-view="picking"] .page-heading::before,
.content[data-view="deliveries"] .page-heading::before {
  content: "";
  position: absolute;
  inset: 13px auto 13px 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--field-blue), var(--field-green));
}
.field-operations-intro {
  align-items: stretch;
}
.field-operations-intro > div:first-child {
  min-width: 0;
  flex: 1;
}
.field-flow {
  margin-top: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #78909a;
  font-size: 10px;
}
.field-flow span {
  min-height: 26px;
  padding: 4px 8px 4px 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #dbe8ea;
  border-radius: 14px;
  background: #fff;
  white-space: nowrap;
}
.field-flow span.active {
  border-color: #9dd2d8;
  color: #116f8e;
  background: #eff9fa;
  font-weight: 750;
}
.field-flow b {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #8ba6ae;
  font-size: 9px;
}
.field-flow .active b {
  background: linear-gradient(145deg, var(--field-blue), var(--field-green));
}
.field-flow i {
  color: #b0c1c6;
  font-style: normal;
}
.field-data-card {
  margin-top: 12px;
}
.field-record--exception td {
  background: #fffaf5;
}
.field-record--exception:hover td {
  background: #fff6ed !important;
}
.field-alert {
  width: max-content;
  margin-top: 5px;
  padding: 2px 6px;
  display: block;
  border: 1px solid #edc18e;
  border-radius: 10px;
  color: #ae5d1f;
  background: #fff3e4;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}
.field-task-card {
  position: relative;
  overflow: hidden;
  border-left: 3px solid #9fb9c1;
}
.field-task-card--active {
  border-left-color: var(--field-blue);
}
.field-task-card--watch {
  border-left-color: #e59338;
}
.field-task-card--urgent {
  border-left-color: #d4545d;
  box-shadow: 0 9px 25px rgba(187, 61, 70, 0.09);
}
.field-task-priority {
  margin: -13px -13px 12px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #e1ebed;
  color: #607b86;
  background: #f5f9fa;
}
.field-task-priority span {
  padding: 2px 6px;
  border-radius: 9px;
  color: #456b79;
  background: #e8f1f3;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}
.field-task-priority small {
  overflow: hidden;
  color: #65808a;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.field-task-card--active .field-task-priority span {
  color: #08739a;
  background: #e4f4f8;
}
.field-task-card--watch .field-task-priority span {
  color: #a35d1c;
  background: #fff0dc;
}
.field-task-card--urgent .field-task-priority span {
  color: #b43e49;
  background: #ffeaec;
}
.field-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
}
.field-card-actions .button {
  margin: 0;
}
.field-table .row-actions {
  min-width: 165px;
}
.field-task-overview {
  margin-bottom: 13px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #d4e6e9;
  border-left: 3px solid var(--field-blue, #1189ad);
  border-radius: 8px;
  background: linear-gradient(100deg, #f4fafb, #fff);
}
.field-task-overview span,
.field-task-overview strong,
.field-task-overview small {
  display: block;
}
.field-task-overview span {
  color: #1683a3;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.5px;
}
.field-task-overview strong {
  margin-top: 3px;
  color: #1c5064;
  font-size: 15px;
}
.field-task-overview small {
  margin-top: 3px;
  color: #718892;
  font-size: 10px;
}
.field-task-progress {
  min-width: 100px;
  padding-left: 16px;
  border-left: 1px solid #d8e8ea;
  text-align: center;
}
.field-task-progress b {
  color: #1688a8;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}
.field-task-progress span {
  margin-top: 2px;
  color: #78909a;
  font-size: 9px;
  letter-spacing: 0;
}
.field-task-steps {
  margin-bottom: 13px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d7e6e8;
  border-radius: 8px;
  background: #f8fbfb;
}
.field-task-steps span {
  min-height: 38px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-right: 1px solid #deeaec;
  color: #718992;
  font-size: 10px;
  font-weight: 700;
}
.field-task-steps span:last-child {
  border-right: 0;
}
.field-task-steps span.active {
  color: #0b7595;
  background: #edf8f9;
}
.field-task-steps b {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #9ab0b7;
  font-size: 9px;
}
.field-task-steps .active b {
  background: linear-gradient(
    145deg,
    var(--field-blue, #1189ad),
    var(--field-green, #289863)
  );
}
.field-live-summary {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid #b8dbd1;
  border-radius: 12px;
  color: #187b62;
  background: #eef9f5;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.4;
}
.field-live-summary.has-difference {
  border-color: #edbf86;
  color: #ab5c1f;
  background: #fff3e3;
}
.field-signoff {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid #d9e7e9;
  border-radius: 8px;
  background: #f9fbfb;
}
.field-signoff-head {
  margin-bottom: 11px;
}
.field-signoff-head strong,
.field-signoff-head span {
  display: block;
}
.field-signoff-head strong {
  color: #315d6e;
  font-size: 12px;
}
.field-signoff-head span {
  margin-top: 3px;
  color: #748a93;
  font-size: 10px;
  line-height: 1.5;
}
.field-line-record.has-difference td {
  background: #fff9f1;
}
.field-line-index,
.field-stop-sequence {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #168caf;
  font-size: 10px;
  font-weight: 850;
}
.field-history-warning {
  margin-bottom: 15px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid #edc3a2;
  border-left: 4px solid #d96d3d;
  border-radius: 8px;
  color: #78543d;
  background: #fff8f1;
}
.field-history-warning > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: #dc7040;
  font-size: 13px;
  font-weight: 900;
}
.field-history-warning strong {
  display: block;
  color: #984d2d;
  font-size: 13px;
}
.field-history-warning p {
  margin: 4px 0 0;
  color: #795f50;
  font-size: 11px;
  line-height: 1.65;
}
.field-quality-intro {
  margin-bottom: 12px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #d6e6e9;
  border-left: 4px solid #168caf;
  border-radius: 8px;
  background: linear-gradient(100deg, #f3fafb, #fff);
}
.field-quality-intro span,
.field-quality-intro strong,
.field-quality-intro p {
  display: block;
}
.field-quality-intro span {
  color: #1684a4;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.55px;
}
.field-quality-intro strong {
  margin-top: 3px;
  color: #24586a;
  font-size: 14px;
}
.field-quality-intro p {
  max-width: 720px;
  margin: 4px 0 0;
  color: #718891;
  font-size: 10px;
  line-height: 1.6;
}
.field-quality-intro > div:last-child {
  min-width: 95px;
  padding-left: 15px;
  border-left: 1px solid #d9e8ea;
  text-align: center;
}
.field-quality-intro b {
  display: block;
  color: #d05b54;
  font-size: 25px;
  line-height: 1;
}
.field-quality-intro small {
  display: block;
  margin-top: 4px;
  color: #7a8e96;
  font-size: 9px;
}
.picking-quality-table {
  min-width: 1080px;
}
.picking-quality-table th:nth-child(1) {
  width: 180px;
}
.picking-quality-table th:nth-child(2) {
  width: 110px;
}
.picking-quality-table th:nth-child(3) {
  width: 230px;
}
.field-quality-record--blocking td {
  background: #fffafa;
}
.picking-quality-candidates {
  display: grid;
  gap: 6px;
}
.picking-quality-candidate {
  padding: 7px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #e2e9eb;
  border-radius: 6px;
  background: #f8fafb;
}
.picking-quality-candidate.eligible {
  border-color: #add8c8;
  background: #f1faf6;
}
.picking-quality-candidate strong,
.picking-quality-candidate span,
.picking-quality-candidate small {
  display: block;
}
.picking-quality-candidate strong {
  color: #385f6d;
  font-size: 10px;
}
.picking-quality-candidate span {
  margin-top: 2px;
  color: #6f858d;
  font-size: 9px;
}
.picking-quality-candidate small {
  margin-top: 3px;
  color: #a35d38;
  font-size: 9px;
  line-height: 1.4;
}
.picking-quality-candidate.eligible small {
  color: #278065;
}
.picking-quality-candidate em {
  color: #9a7270;
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}
.picking-quality-candidate .button {
  min-height: 30px;
  flex: 0 0 auto;
}
.picking-repair-warning {
  margin-bottom: 13px;
}
.data-quality-hero {
  min-height: 138px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  overflow: hidden;
  border-color: #cfe2e6;
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(113, 193, 111, 0.2),
      transparent 30%
    ),
    linear-gradient(118deg, #edf8fa 0%, #f8fcfb 58%, #eef8f1 100%);
}
.data-quality-hero h2 {
  margin: 5px 0 7px;
  color: #174f66;
  font-size: 22px;
  letter-spacing: -0.25px;
}
.data-quality-hero p {
  max-width: 760px;
  margin: 0;
  color: #617b86;
  font-size: 11px;
  line-height: 1.75;
}
.data-quality-score {
  min-width: 132px;
  padding: 15px 18px;
  border: 1px solid #b7dccd;
  border-radius: 12px;
  color: #247258;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  box-shadow: 0 12px 26px rgba(25, 89, 91, 0.08);
}
.data-quality-score.warning {
  border-color: #e8bbb4;
  color: #ae4f49;
}
.data-quality-score strong,
.data-quality-score span,
.data-quality-score small {
  display: block;
}
.data-quality-score strong {
  font-size: 31px;
  line-height: 1;
}
.data-quality-score span {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 850;
}
.data-quality-score small {
  margin-top: 4px;
  color: #738990;
  font-size: 9px;
}
.data-quality-stats {
  margin-top: 14px;
}
.data-quality-domains {
  margin: 14px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.data-quality-domain {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d7e5e8;
  border-top: 3px solid #4aa98a;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(20, 64, 79, 0.04);
}
.data-quality-domain.rose {
  border-top-color: #d45c57;
}
.data-quality-domain.orange {
  border-top-color: #d99043;
}
.data-quality-domain > div {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.data-quality-domain span {
  color: #54727e;
  font-size: 11px;
  font-weight: 800;
}
.data-quality-domain strong {
  margin-left: auto;
  color: #244f60;
  font-size: 22px;
}
.data-quality-domain small {
  color: #81949b;
  font-size: 9px;
}
.data-quality-domain p {
  margin: 6px 0 10px;
  color: #758a92;
  font-size: 9px;
  line-height: 1.55;
}
.data-quality-domain .text-button {
  min-height: 30px;
}
.data-quality-filters {
  padding: 11px 14px;
  display: flex;
  align-items: end;
  gap: 10px;
  border-top: 1px solid #e6edef;
  background: #f8fbfb;
}
.data-quality-filters label {
  display: grid;
  gap: 4px;
  color: #607982;
  font-size: 9px;
  font-weight: 800;
}
.data-quality-filters select {
  min-width: 150px;
  min-height: 34px;
  padding: 0 30px 0 10px;
  border: 1px solid #cadcdf;
  border-radius: 7px;
  color: #315d6b;
  background: #fff;
  font: inherit;
  font-size: 10px;
}
.data-quality-filters > span {
  margin: 0 0 9px auto;
  color: #718991;
  font-size: 10px;
  font-weight: 750;
}
.data-quality-table {
  min-width: 1040px;
}
.data-quality-table th:nth-child(1) {
  width: 135px;
}
.data-quality-table th:nth-child(2) {
  width: 165px;
}
.data-quality-table th:nth-child(4) {
  width: 300px;
}
.data-quality-record--blocking td {
  background: #fffafa;
}
.data-quality-domain-label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.data-quality-domain-label > span:first-child {
  color: #2a6275;
  font-weight: 850;
}
.data-quality-message,
.data-quality-recommendation {
  margin: 4px 0 0;
  color: #617982;
  font-size: 10px;
  line-height: 1.65;
}
.data-quality-recommendation {
  margin: 0 0 7px;
  color: #385f6c;
}
.data-quality-evidence {
  margin: 7px 0 0;
  padding: 7px 9px 7px 23px;
  border-radius: 6px;
  color: #73868e;
  background: #f5f8f9;
  font-size: 9px;
  line-height: 1.6;
}
.data-quality-boundary {
  margin-top: 14px;
  padding: 15px 18px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  border-left: 4px solid #1a8aa8;
}
.data-quality-boundary strong {
  flex: 0 0 auto;
  color: #24647a;
  font-size: 12px;
}
.data-quality-boundary p {
  margin: 0;
  color: #667e87;
  font-size: 10px;
  line-height: 1.7;
}
.inventory-opening-governance,
.historical-archive-governance,
.evidence-object-governance {
  margin-top: 14px;
}
.data-quality-governance-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.data-quality-governance-summary span {
  padding: 5px 9px;
  border: 1px solid #cfe4e8;
  border-radius: 999px;
  background: #f5fbfb;
  color: #356978;
  font-size: 9px;
  font-weight: 800;
}
.archive-policy-grid {
  padding: 0 14px 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.archive-policy-grid article {
  min-width: 0;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  border: 1px solid #d8e7e9;
  border-radius: 8px;
  background: linear-gradient(145deg, #fbfdfd, #f4faf8);
}
.archive-policy-grid span {
  color: #4d707a;
  font-size: 10px;
  font-weight: 850;
}
.archive-policy-grid strong {
  color: #1c6173;
  font-size: 18px;
  line-height: 1;
}
.archive-policy-grid small {
  grid-column: 1 / -1;
  color: #778d94;
  font-size: 8px;
  line-height: 1.5;
}
.historical-query-workspace {
  margin: 0 14px 14px;
  border: 1px solid #d5e7e9;
  border-radius: 10px;
  background: #fbfdfd;
  overflow: hidden;
}
.historical-query-workspace .archive-record-head {
  padding: 12px 14px;
  align-items: center;
  border-top: 0;
  border-bottom: 1px solid #e1ecee;
  background: linear-gradient(100deg, #f3fafb, #f6fbf7);
}
.historical-query-workspace .archive-record-head > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.archive-query-ready {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #bfe0d3;
  border-radius: 999px;
  color: #25755c !important;
  background: #eef9f3;
  font-weight: 850;
}
.archive-query-form {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 1.3fr repeat(2, minmax(145px, 0.8fr)) repeat(
      3,
      minmax(130px, 0.65fr)
    ) auto;
  gap: 8px;
  align-items: end;
  border-bottom: 1px solid #e6eef0;
}
.archive-query-form label {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #658089;
  font-size: 9px;
  font-weight: 800;
}
.archive-query-form input,
.archive-query-form select {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid #cadde1;
  border-radius: 6px;
  color: #315f6b;
  background: #fff;
  font: inherit;
  font-size: 10px;
}
.archive-query-form .button {
  min-height: 34px;
  white-space: nowrap;
}
.archive-query-summary {
  padding: 9px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background: #fff;
}
.archive-query-summary span,
.archive-tier-note {
  padding: 4px 7px;
  border-radius: 5px;
  color: #52717a;
  background: #edf4f5;
  font-size: 8px;
  font-weight: 750;
}
.archive-tier-note {
  display: inline-block;
  margin-top: 4px;
  color: #31705f;
  background: #edf8f3;
}
.historical-query-table {
  min-width: 800px;
}
.historical-query-table th:nth-child(1) {
  width: 240px;
}
.historical-query-table th:nth-child(2) {
  width: 230px;
}
.historical-query-table th:nth-child(4) {
  width: 190px;
}
.archive-query-pagination {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e7eef0;
  color: #6d858d;
  background: #fff;
  font-size: 9px;
}
.archive-query-pagination > div {
  display: flex;
  gap: 6px;
}
.unified-record-detail .data-quality-boundary {
  margin: 0;
}
.evidence-storage-state {
  margin: 0 14px 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #ecdcae;
  border-left: 3px solid #d8a733;
  border-radius: 8px;
  background: #fffbef;
}
.evidence-storage-state.ready {
  border-color: #c9e4d8;
  border-left-color: #2a9b72;
  background: #f2faf6;
}
.evidence-storage-state > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.evidence-storage-state strong {
  color: #7a6325;
  font-size: 11px;
}
.evidence-storage-state.ready strong {
  color: #27715b;
}
.evidence-storage-state span {
  color: #7a7f70;
  font-size: 10px;
  line-height: 1.5;
}
.evidence-storage-state small {
  color: #568078;
  font-size: 9px;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.evidence-policy-grid {
  padding: 0 14px 14px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.evidence-policy-grid article {
  min-width: 0;
  padding: 10px 11px;
  display: grid;
  gap: 4px;
  border: 1px solid #d9e7e9;
  border-radius: 8px;
  background: #f8fbfb;
}
.evidence-policy-grid span {
  color: #4d707a;
  font-size: 10px;
  font-weight: 850;
}
.evidence-policy-grid strong {
  color: #1d6577;
  font-size: 15px;
}
.evidence-policy-grid small {
  color: #70878f;
  font-size: 9px;
  line-height: 1.5;
}
.evidence-policy-grid em {
  width: max-content;
  max-width: 100%;
  padding: 3px 5px;
  border-radius: 4px;
  color: #806c36;
  background: #f8f1dd;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}
.evidence-object-table {
  min-width: 900px;
}
.evidence-object-table th:nth-child(1) {
  width: 290px;
}
.evidence-object-table th:nth-child(2) {
  width: 220px;
}
.evidence-object-table th:nth-child(3) {
  width: 230px;
}
.evidence-object-table code {
  word-break: break-all;
}
.evidence-verification-table {
  max-height: 430px;
  overflow: auto;
}
.evidence-verification-table table {
  min-width: 800px;
}
.evidence-result-safe {
  color: #27785d;
}
.evidence-result-warning {
  color: #987321;
}
.evidence-result-danger {
  color: #b34b51;
}
.historical-archive-request-table,
.historical-archive-record-table {
  min-width: 980px;
}
.archive-ledger-table {
  min-width: 720px;
  table-layout: fixed;
}
.archive-ledger-table th:nth-child(1) {
  width: 21%;
}
.archive-ledger-table th:nth-child(2) {
  width: 25%;
}
.archive-ledger-table th:nth-child(3) {
  width: 20%;
}
.archive-ledger-table th:nth-child(4) {
  width: 22%;
}
.archive-ledger-table th:nth-child(5) {
  width: 12%;
}
.archive-ledger-workspace {
  margin: 16px 14px 14px;
  border: 1px solid #dce9eb;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdfd, #f7fbfa);
  box-shadow: 0 10px 28px rgba(20, 84, 98, 0.06);
  overflow: hidden;
}
.archive-ledger-head {
  min-height: 68px;
  padding: 12px 14px;
  align-items: center;
  border-bottom: 1px solid #e3edef;
}
.archive-ledger-title {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.archive-ledger-title > div {
  display: grid;
  gap: 3px;
}
.archive-ledger-title strong {
  color: #174f5d;
  font-size: 13px;
  line-height: 1.4;
}
.archive-ledger-title span:not(.archive-ledger-mark) {
  color: #6b858c;
  font-size: 10px;
  line-height: 1.5;
}
.archive-ledger-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #b9dfe2;
  border-radius: 10px;
  color: #117f94;
  background: linear-gradient(145deg, #eefafb, #fff);
  box-shadow: inset 0 0 0 3px rgba(38, 151, 168, 0.05);
}
.archive-ledger-filter {
  padding: 12px 14px;
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(
      3,
      minmax(130px, 0.8fr)
    ) auto;
  gap: 8px;
  align-items: end;
}
.archive-ledger-filter label {
  display: grid;
  gap: 5px;
  color: #55737b;
  font-size: 11px;
  font-weight: 800;
}
.archive-ledger-filter input,
.archive-ledger-filter select {
  min-height: 38px;
}
.archive-ledger-empty {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  min-height: 88px;
  color: #5e7980;
}
.archive-ledger-empty-row td.empty {
  padding: 16px;
}
.archive-ledger-empty-row td.empty::before {
  content: none;
  display: none;
}
.archive-ledger-empty > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #c7e5e8;
  border-radius: 10px;
  color: #138ca0;
  background: #f0fafb;
}
.archive-ledger-empty strong {
  display: block;
  color: #496970;
  font-size: 12px;
}
.archive-ledger-empty p {
  margin: 4px 0 0;
  color: #81969b;
  font-size: 10px;
}
.archive-ledger-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.archive-ledger-columns section {
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfeaec;
  border-radius: 9px;
  background: #fff;
}
.archive-ledger-columns h4 {
  margin: 0 0 8px;
  color: #245d69;
}
.historical-archive-request-table th:nth-child(1) {
  width: 250px;
}
.historical-archive-request-table th:nth-child(2) {
  width: 220px;
}
.historical-archive-request-table th:nth-child(4) {
  width: 240px;
}
.archive-record-head {
  padding: 12px 14px 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #e5edef;
}
.archive-record-head strong {
  color: #345f6c;
  font-size: 11px;
}
.archive-record-head span {
  color: #7a8e95;
  font-size: 9px;
}
.historical-archive-form {
  gap: 12px;
}
.archive-safety-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.archive-safety-list span {
  padding: 8px 10px;
  border: 1px solid #d6e8e5;
  border-radius: 7px;
  color: #397263;
  background: #f5fbf8;
  font-size: 9px;
  font-weight: 750;
}
.archive-preview-wrap {
  max-height: 390px;
  overflow: auto;
}
.archive-preview-table {
  min-width: 720px;
}
.archive-hash,
.archive-record-meta code {
  color: #486b75;
  font-size: 9px;
  word-break: break-all;
}
.archive-record-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.archive-record-meta > div {
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid #dce8ea;
  border-radius: 7px;
  background: #fbfdfd;
}
.archive-record-meta > div.wide {
  grid-column: 1 / -1;
}
.archive-record-meta dt {
  color: #7a8f96;
  font-size: 9px;
  font-weight: 800;
}
.archive-record-meta dd {
  margin: 4px 0 0;
  color: #315d69;
  font-size: 10px;
  line-height: 1.5;
}
.archive-snapshot {
  border: 1px solid #d9e7e9;
  border-radius: 8px;
  overflow: hidden;
}
.archive-snapshot summary {
  padding: 10px 12px;
  color: #2f6674;
  background: #f5f9fa;
  font-size: 10px;
  font-weight: 850;
  cursor: pointer;
}
.archive-snapshot pre {
  max-height: 360px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  color: #506b74;
  background: #fff;
  font:
    9px/1.65 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
.inventory-opening-repair-table {
  min-width: 850px;
}
.inventory-opening-repair-table th:nth-child(1) {
  width: 250px;
}
.inventory-opening-repair-table th:nth-child(2) {
  width: 210px;
}
.inventory-opening-repair-table th:nth-child(4) {
  width: 240px;
}
.inventory-opening-repair-form {
  gap: 12px;
}
.inventory-opening-repair-form .form-alert,
.historical-archive-form .form-alert,
.responsibility-callout {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid #c8e3e7;
  border-left: 3px solid #2393a7;
  border-radius: 8px;
  background: #f3fbfb;
}
.inventory-opening-repair-form .form-alert strong,
.historical-archive-form .form-alert strong,
.responsibility-callout strong {
  flex: 0 0 auto;
  color: #176477;
  font-size: 11px;
}
.inventory-opening-repair-form .form-alert span,
.historical-archive-form .form-alert span,
.responsibility-callout span {
  color: #5d7780;
  font-size: 10px;
  line-height: 1.65;
}
.inventory-opening-candidate-table {
  max-height: 330px;
  overflow: auto;
}
.inventory-opening-candidate-table table {
  min-width: 680px;
}
.inventory-opening-candidate-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #168aa0;
}
.governance-event-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.governance-event-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #dce8ea;
  border-radius: 7px;
  background: #fbfdfd;
}
.governance-event-list strong {
  color: #285e6c;
  font-size: 10px;
}
.governance-event-list span {
  color: #667d84;
  font-size: 10px;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .content[data-view="purchaseReview"] .page-heading,
  .content[data-view="picking"] .page-heading,
  .content[data-view="deliveries"] .page-heading {
    align-items: flex-start;
    padding: 12px 12px 12px 16px;
  }
  .content[data-view="purchaseReview"] .heading-actions,
  .content[data-view="picking"] .heading-actions,
  .content[data-view="deliveries"] .heading-actions {
    width: 100%;
    flex-wrap: wrap;
    overflow: visible;
  }
  .field-operations-intro {
    min-height: 0;
    padding: 14px;
    flex-direction: column;
    gap: 12px;
  }
  .field-operations-intro .approval-summary,
  .field-operations-intro .delivery-ready {
    width: 100%;
    min-width: 0;
    padding: 10px 0 0;
    justify-content: flex-start;
    border-left: 0;
    border-top: 1px solid #d8e9eb;
    text-align: left;
  }
  .field-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding-bottom: 0;
  }
  .field-flow span {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }
  .field-flow i {
    display: none;
  }
  .picking-work-modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .picking-work-modes button {
    min-height: 54px;
    border-right: 1px solid #dce8e9;
    border-bottom: 1px solid #dce8e9;
    text-align: left;
  }
  .picking-work-modes button:nth-child(2n) {
    border-right: 0;
  }
  .picking-work-modes button:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .field-task-card {
    padding: 13px;
    border-radius: 11px;
  }
  .field-task-priority {
    margin: -13px -13px 12px;
  }
  .picking-card-top {
    gap: 10px;
  }
  .picking-customer {
    font-size: 16px;
  }
  .picking-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .field-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  }
  .field-card-actions .button {
    width: 100%;
    min-height: 44px;
  }
  .field-table {
    min-width: 0 !important;
    width: 100%;
    display: block;
  }
  .field-table thead {
    display: none;
  }
  .field-table tbody {
    display: grid;
    gap: 10px;
    padding: 10px;
  }
  .field-table tr.field-record {
    width: 100%;
    padding: 0;
    display: block;
    overflow: hidden;
    border: 1px solid #d8e5e8;
    border-left: 3px solid var(--field-blue);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(22, 69, 86, 0.045);
  }
  .field-table tr.field-record--exception {
    border-left-color: #dc7850;
  }
  .field-table tr.field-record td {
    min-width: 0 !important;
    padding: 9px 11px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    border-bottom: 1px solid #edf2f3;
    background: #fff;
    text-align: left;
  }
  .field-table tr.field-record td:last-child {
    border-bottom: 0;
  }
  .field-table tr.field-record td::before {
    content: attr(data-label);
    color: #78909a;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.55;
  }
  .field-table tr.field-record .item-title,
  .field-table tr.field-record .item-sub,
  .field-table tr.field-record .delivery-progress,
  .field-table tr.field-record .field-alert {
    grid-column: 2;
  }
  .field-table tr.field-record .item-title + .item-sub {
    margin-top: -5px;
  }
  .field-table tr.field-record .delivery-progress {
    width: 100%;
    max-width: 180px;
  }
  .field-table tr.field-record .actions-cell {
    padding: 11px;
    background: #f7fafb;
  }
  .field-table tr.field-record .row-actions {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field-table tr.field-record .row-actions .button {
    width: 100%;
    min-height: 44px;
  }
  .field-table tbody > tr:not(.field-record) {
    display: block;
  }
  .field-table tbody > tr:not(.field-record) .empty {
    width: 100%;
    display: block;
    padding: 28px 14px;
    text-align: center;
  }
  .field-task-overview {
    align-items: flex-start;
  }
  .field-task-progress {
    min-width: 82px;
  }
  .field-task-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .field-task-steps span {
    min-height: 42px;
    border-bottom: 1px solid #deeaec;
  }
  .field-task-steps span:nth-child(2n) {
    border-right: 0;
  }
  .field-task-steps span:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .field-signoff {
    padding: 12px;
  }
  .mobile-record-table {
    width: 100%;
    min-width: 0 !important;
    display: block;
  }
  .mobile-record-table thead {
    display: none;
  }
  .mobile-record-table tbody {
    display: grid;
    gap: 10px;
    padding: 9px;
  }
  .mobile-record-table tr.field-line-record,
  .mobile-record-table tr.field-stop-record {
    width: 100%;
    display: block;
    overflow: hidden;
    border: 1px solid #d7e5e8;
    border-left: 3px solid var(--field-blue, #1189ad);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(20, 67, 84, 0.045);
  }
  .mobile-record-table tr.has-difference,
  .mobile-record-table tr.field-stop-record--exception {
    border-left-color: #db7650;
  }
  .mobile-record-table tr.field-line-record td,
  .mobile-record-table tr.field-stop-record td {
    width: 100%;
    min-width: 0 !important;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    border-bottom: 1px solid #edf2f3;
    background: #fff;
    text-align: left;
  }
  .mobile-record-table tr.field-line-record td:last-child,
  .mobile-record-table tr.field-stop-record td:last-child {
    border-bottom: 0;
  }
  .mobile-record-table tr.field-line-record td::before,
  .mobile-record-table tr.field-stop-record td::before {
    content: attr(data-label);
    align-self: start;
    padding-top: 3px;
    color: #78909a;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.5;
  }
  .mobile-record-table tr.field-line-record input,
  .mobile-record-table tr.field-line-record select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    grid-column: 2;
  }
  .mobile-record-table tr.field-line-record .item-title,
  .mobile-record-table tr.field-line-record .item-sub,
  .mobile-record-table tr.field-stop-record .item-title,
  .mobile-record-table tr.field-stop-record .item-sub,
  .mobile-record-table tr.field-stop-record .field-alert {
    grid-column: 2;
  }
  .mobile-record-table tr.field-line-record .item-title + .item-sub,
  .mobile-record-table tr.field-stop-record .item-title + .item-sub {
    margin-top: -5px;
  }
  .mobile-record-table tr.field-stop-record .actions-cell {
    background: #f7fafb;
  }
  .mobile-record-table tr.field-stop-record .row-actions {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mobile-record-table tr.field-stop-record .row-actions .button {
    width: 100%;
    min-height: 44px;
  }
  .field-task-form .document-lines-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .field-task-form .picking-completion-intro {
    padding: 11px 12px;
  }
  .field-task-form .picking-confirmation {
    margin-top: 12px;
    padding: 12px;
  }
  .field-quality-intro {
    align-items: flex-start;
    flex-direction: column;
  }
  .field-quality-intro > div:last-child {
    width: 100%;
    min-width: 0;
    padding: 10px 0 0;
    border-left: 0;
    border-top: 1px solid #d9e8ea;
    text-align: left;
  }
  .picking-quality-table {
    min-width: 0;
  }
  .mobile-record-table tr.field-quality-record {
    width: 100%;
    display: block;
    overflow: hidden;
    border: 1px solid #d8e5e8;
    border-left: 3px solid #d8944c;
    border-radius: 9px;
    background: #fff;
  }
  .mobile-record-table tr.field-quality-record--blocking {
    border-left-color: #d55f58;
  }
  .mobile-record-table tr.field-quality-record td {
    width: 100%;
    min-width: 0 !important;
    padding: 9px 10px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    border-bottom: 1px solid #edf2f3;
    background: #fff;
    text-align: left;
  }
  .mobile-record-table tr.field-quality-record td:last-child {
    border-bottom: 0;
  }
  .mobile-record-table tr.field-quality-record td::before {
    content: attr(data-label);
    padding-top: 2px;
    color: #78909a;
    font-size: 10px;
    font-weight: 750;
  }
  .mobile-record-table tr.field-quality-record .item-title,
  .mobile-record-table tr.field-quality-record .item-sub,
  .mobile-record-table tr.field-quality-record .picking-quality-candidates {
    grid-column: 2;
  }
  .picking-quality-candidate {
    align-items: flex-start;
    flex-direction: column;
  }
  .picking-quality-candidate .button {
    width: 100%;
    min-height: 44px;
  }
  .content[data-view="dataQuality"] .page-heading {
    align-items: flex-start;
    padding: 12px 12px 12px 16px;
  }
  .content[data-view="dataQuality"] .heading-actions {
    width: 100%;
  }
  .content[data-view="dataQuality"] .heading-actions .button {
    width: 100%;
    min-height: 44px;
  }
  .data-quality-hero {
    min-height: 0;
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .data-quality-hero h2 {
    font-size: 19px;
  }
  .data-quality-score {
    width: 100%;
    min-width: 0;
    text-align: left;
  }
  .data-quality-score strong,
  .data-quality-score span,
  .data-quality-score small {
    display: inline;
  }
  .data-quality-score span {
    margin-left: 5px;
  }
  .data-quality-score small {
    display: block;
    margin-top: 5px;
  }
  .data-quality-domains {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .data-quality-domain {
    padding: 12px;
  }
  .data-quality-domain .text-button {
    width: 100%;
    min-height: 44px;
  }
  .data-quality-filters {
    align-items: stretch;
    flex-direction: column;
  }
  .data-quality-filters label,
  .data-quality-filters select {
    width: 100%;
  }
  .data-quality-filters select {
    min-height: 44px;
  }
  .data-quality-filters > span {
    margin: 0;
  }
  .data-quality-table {
    min-width: 0;
  }
  .mobile-record-table tr.data-quality-record {
    width: 100%;
    display: block;
    overflow: hidden;
    border: 1px solid #d8e5e8;
    border-left: 3px solid #d8944c;
    border-radius: 9px;
    background: #fff;
  }
  .mobile-record-table tr.data-quality-record--blocking {
    border-left-color: #d55f58;
  }
  .mobile-record-table tr.data-quality-record td {
    width: 100%;
    min-width: 0 !important;
    padding: 10px;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    border-bottom: 1px solid #edf2f3;
    background: #fff;
    text-align: left;
  }
  .mobile-record-table tr.data-quality-record td:last-child {
    border-bottom: 0;
  }
  .mobile-record-table tr.data-quality-record td::before {
    content: attr(data-label);
    padding-top: 2px;
    color: #78909a;
    font-size: 10px;
    font-weight: 750;
  }
  .mobile-record-table tr.data-quality-record .data-quality-domain-label,
  .mobile-record-table tr.data-quality-record .item-title,
  .mobile-record-table tr.data-quality-record .item-sub,
  .mobile-record-table tr.data-quality-record .data-quality-message,
  .mobile-record-table tr.data-quality-record .data-quality-evidence,
  .mobile-record-table tr.data-quality-record .data-quality-recommendation,
  .mobile-record-table tr.data-quality-record .text-button {
    grid-column: 2;
  }
  .mobile-record-table tr.data-quality-record .text-button {
    min-height: 44px;
  }
  .data-quality-boundary {
    flex-direction: column;
    gap: 6px;
  }
  .inventory-opening-governance .card-head,
  .historical-archive-governance .card-head,
  .evidence-object-governance .card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .data-quality-governance-summary {
    justify-content: flex-start;
  }
  .archive-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 10px 10px;
  }
  .historical-query-workspace {
    margin: 0 10px 10px;
  }
  .evidence-storage-state {
    margin: 0 10px 10px;
    align-items: flex-start;
    flex-direction: column;
  }
  .evidence-storage-state .button {
    width: 100%;
    min-height: 44px;
  }
  .evidence-policy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 10px 10px;
  }
  .evidence-object-table {
    min-width: 0;
  }
  .mobile-record-table.evidence-object-table tr,
  .evidence-verification-table .mobile-record-table tr {
    display: grid;
    margin: 10px;
    border: 1px solid #dbe8ea;
    border-left: 3px solid #2a9784;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
  }
  .mobile-record-table.evidence-object-table td,
  .evidence-verification-table .mobile-record-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    min-height: 44px;
    padding: 10px 11px;
    border-bottom: 1px dashed #dfebed;
    white-space: normal;
  }
  .mobile-record-table.evidence-object-table td::before,
  .evidence-verification-table .mobile-record-table td::before {
    content: attr(data-label);
    color: #789097;
    font-size: 9px;
    font-weight: 850;
  }
  .mobile-record-table.evidence-object-table td:last-child,
  .evidence-verification-table .mobile-record-table td:last-child {
    border-bottom: 0;
  }
  .evidence-verification-table {
    max-height: 390px;
  }
  .evidence-verification-table table {
    min-width: 0;
  }
  .archive-query-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }
  .archive-query-form label:first-of-type,
  .archive-query-form .button {
    grid-column: 1 / -1;
  }
  .archive-query-form .button {
    min-height: 44px;
  }
  .historical-query-table {
    min-width: 0;
  }
  .mobile-record-table.historical-query-table tr {
    display: grid;
    margin: 10px;
    border: 1px solid #dbe8ea;
    border-left: 3px solid #2697a8;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
  }
  .mobile-record-table.historical-query-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 44px;
    padding: 10px 11px;
    border-bottom: 1px dashed #dfebed;
    white-space: normal;
  }
  .mobile-record-table.historical-query-table td::before {
    content: attr(data-label);
    color: #789097;
    font-size: 9px;
    font-weight: 850;
  }
  .mobile-record-table.historical-query-table td:last-child {
    border-bottom: 0;
  }
  .mobile-record-table.historical-query-table .actions-cell .text-button {
    min-height: 44px;
  }
  .archive-query-pagination {
    align-items: flex-start;
  }
  .archive-query-pagination .text-button {
    min-height: 44px;
  }
  .archive-record-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .historical-archive-request-table,
  .historical-archive-record-table,
  .archive-ledger-table {
    min-width: 0;
  }
  .archive-ledger-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }
  .archive-ledger-filter .button {
    grid-column: 1 / -1;
    min-height: 44px;
  }
  .archive-ledger-workspace {
    margin: 12px 10px;
  }
  .archive-ledger-head {
    align-items: stretch;
    gap: 10px;
  }
  .archive-ledger-head .button {
    width: max-content;
    min-height: 44px;
  }
  .archive-ledger-title {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .archive-ledger-mark {
    width: 32px;
    height: 32px;
  }
  .archive-ledger-empty-row {
    display: table-row !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  .archive-ledger-empty-row td {
    display: table-cell !important;
    padding: 10px !important;
    border: 0 !important;
  }
  .archive-ledger-empty-row td::before {
    content: none !important;
  }
  .archive-ledger-empty {
    min-height: 96px;
  }
  .archive-ledger-columns {
    grid-template-columns: 1fr;
  }
  .inventory-opening-repair-table {
    min-width: 0;
  }
  .mobile-record-table.inventory-opening-repair-table tr,
  .mobile-record-table.historical-archive-request-table tr,
  .mobile-record-table.historical-archive-record-table tr,
  .mobile-record-table.archive-ledger-table tr {
    display: grid;
    margin: 10px;
    border: 1px solid #dbe8ea;
    border-left: 3px solid #2697a8;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
  }
  .mobile-record-table.inventory-opening-repair-table td,
  .mobile-record-table.historical-archive-request-table td,
  .mobile-record-table.historical-archive-record-table td,
  .mobile-record-table.archive-ledger-table td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 44px;
    padding: 10px 11px;
    border-bottom: 1px dashed #dfebed;
    white-space: normal;
  }
  .mobile-record-table.inventory-opening-repair-table td:last-child,
  .mobile-record-table.historical-archive-request-table td:last-child,
  .mobile-record-table.historical-archive-record-table td:last-child,
  .mobile-record-table.archive-ledger-table td:last-child {
    border-bottom: 0;
  }
  .mobile-record-table.inventory-opening-repair-table td::before,
  .mobile-record-table.historical-archive-request-table td::before,
  .mobile-record-table.historical-archive-record-table td::before,
  .mobile-record-table.archive-ledger-table td::before {
    content: attr(data-label);
    color: #789097;
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
  }
  .mobile-record-table.inventory-opening-repair-table
    .actions-cell
    .text-button,
  .mobile-record-table.historical-archive-request-table
    .actions-cell
    .text-button,
  .mobile-record-table.historical-archive-record-table
    .actions-cell
    .text-button,
  .mobile-record-table.archive-ledger-table .actions-cell .text-button {
    grid-column: 2;
    min-height: 44px;
  }
  .inventory-opening-repair-form .form-alert,
  .historical-archive-form .form-alert,
  .responsibility-callout {
    flex-direction: column;
    gap: 4px;
  }
  .archive-safety-list,
  .archive-record-meta {
    grid-template-columns: 1fr;
  }
  .archive-record-meta > div.wide {
    grid-column: auto;
  }
  .archive-preview-wrap {
    max-height: 360px;
  }
  .archive-preview-table {
    min-width: 0;
  }
  .governance-event-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }
  .inventory-opening-candidate-table,
  .inventory-opening-preview-wrap {
    max-height: 360px;
    overflow: auto;
  }
  .inventory-opening-candidate-table table,
  .inventory-opening-preview-table {
    min-width: 0;
  }
  .migration-preview .inventory-opening-preview-table {
    width: 100%;
    min-width: 0;
  }
  .inventory-opening-candidate-table thead,
  .inventory-opening-preview-table thead {
    display: none;
  }
  .inventory-opening-candidate-table tbody,
  .inventory-opening-preview-table tbody {
    display: grid;
    gap: 8px;
    padding: 2px;
  }
  .inventory-opening-candidate-table tr,
  .inventory-opening-preview-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #d9e8ea;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
  }
  .inventory-opening-candidate-table td,
  .inventory-opening-preview-table td {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    border: 0;
    border-bottom: 1px dashed #e2ecee;
    white-space: normal;
  }
  .inventory-opening-candidate-table td:nth-child(2),
  .inventory-opening-preview-table td:nth-child(2) {
    grid-column: 1 / -1;
    order: -1;
  }
  .inventory-opening-preview-table td:first-child {
    display: none;
  }
  .inventory-opening-candidate-table td::before,
  .inventory-opening-preview-table td::before {
    content: attr(data-label);
    color: #789097;
    font-size: 9px;
    font-weight: 850;
  }
  .inventory-opening-candidate-table td:last-child,
  .inventory-opening-preview-table td:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .content[data-view="purchaseReview"] .stats-grid,
  .content[data-view="picking"] .stats-grid,
  .content[data-view="deliveries"] .stats-grid,
  .content[data-view="dataQuality"] .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .field-task-card,
  .field-record,
  .field-card-actions .button {
    transition: none !important;
  }
}

/* Enterprise dialog and transient-state refinement. */
.modal {
  scrollbar-color: #b9ccd2 transparent;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.modal-head {
  min-height: 68px;
  gap: 18px;
  overflow: hidden;
}
.modal-head::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #118db6 0 42%, #24a891 70%, #9bc532 100%);
}
.modal-title-block {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.modal-context {
  color: #23909f;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.1px;
}
.modal-head h2 {
  min-width: 0;
  overflow: hidden;
  color: #183f52;
  font-size: 18px;
  letter-spacing: -0.18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modal-dirty-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.modal-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #e1e9eb;
  color: #6f858f;
  background: #f4f7f8;
  font-size: 19px;
  transition:
    border-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
}
.modal-close:hover,
.modal-close:focus-visible {
  border-color: #b9d5dc;
  color: #0a789e;
  background: #eaf5f7;
  transform: rotate(4deg);
}
.modal--document .modal-context {
  color: #2874a0;
}
.modal--help .modal-context {
  color: #448634;
}
.confirmation-dialog {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(201, 221, 226, 0.95);
  border-top: 0;
}
.confirmation-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #1599bb, #2baa83, #9bc636);
}
.confirmation-dialog.danger::before {
  background: linear-gradient(90deg, #ca4d43, #e07749, #efb34d);
}
.confirmation-kicker {
  display: block;
  margin-bottom: 3px;
  color: #208595;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 1px;
}
.confirmation-dialog.danger .confirmation-kicker {
  color: #c95146;
}
.confirmation-field-help,
.confirmation-reason-count {
  color: #8b746d;
  font-size: 10px;
  line-height: 1.45;
}
.confirmation-actions {
  margin: 2px -23px -23px;
  padding: 13px 23px 17px;
  border-top: 1px solid #e8eef0;
  background: #f9fbfb;
}
.confirmation-actions .button {
  min-height: 34px;
  border-radius: 7px;
}
.confirmation-actions .button:disabled {
  cursor: not-allowed;
  filter: saturate(0.55);
  opacity: 0.52;
}
.loading-card {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(17, 67, 87, 0.06);
}
.loading-steps {
  margin-top: 9px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.loading-steps i {
  padding: 4px 8px;
  border: 1px solid #d7e7e9;
  border-radius: 999px;
  color: #527582;
  background: rgba(255, 255, 255, 0.75);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}
.loading-steps i:nth-child(2) {
  border-color: #cce7e3;
  color: #337d70;
}
.loading-steps i:nth-child(3) {
  border-color: #dce7bf;
  color: #698235;
}
.data-table td.empty,
.line-table td.empty {
  min-height: 116px;
  padding-block: 36px;
  color: #718891;
  font-weight: 600;
}
.data-table td.empty::before,
.line-table td.empty::before {
  content: "⌕";
  width: 28px;
  height: 28px;
  margin-right: 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #bfd9de;
  border-radius: 9px;
  color: #2189a2;
  background: #edf7f8;
  font-size: 15px;
  font-weight: 800;
  vertical-align: middle;
}
@media (max-width: 900px) {
  .modal-head {
    min-height: 72px;
    padding-top: 21px;
  }
  .modal-head::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #d3dfe2;
    transform: translateX(-50%);
  }
  .modal-close:hover,
  .modal-close:focus-visible {
    transform: none;
  }
  .data-table td.empty,
  .line-table td.empty {
    padding-left: 18px;
    text-align: left;
  }
}
@media (max-width: 520px) {
  .confirmation-backdrop {
    align-items: end;
    padding: 0;
  }
  .confirmation-dialog {
    width: 100%;
    padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
  }
  .confirmation-dialog::after {
    content: "";
    position: absolute;
    top: 9px;
    left: 50%;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #d6e0e2;
    transform: translateX(-50%);
  }
  .confirmation-actions {
    margin: 3px -18px calc(-18px - env(safe-area-inset-bottom));
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  }
  .loading-steps {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal-close:hover,
  .modal-close:focus-visible {
    transform: none;
  }
}

/* Procurement risk radar */
.procurement-risk-panel {
  margin: 0 0 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9e8ed;
  background: linear-gradient(145deg, #fbfefe 0%, #fff 58%, #f8fbff 100%);
  box-shadow: 0 12px 30px rgba(31, 80, 105, 0.06);
}
.procurement-risk-head {
  min-height: 84px;
  padding: 15px 18px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #e4eef1;
  background:
    radial-gradient(circle at 84% 0, rgba(43, 180, 158, 0.11), transparent 34%),
    linear-gradient(100deg, rgba(21, 132, 188, 0.055), transparent 45%);
}
.procurement-risk-head h2 {
  margin: 3px 0 4px;
  color: #24566b;
  font-size: 16px;
  letter-spacing: 0.01em;
}
.procurement-risk-head p {
  margin: 0;
  color: #71858e;
  font-size: 11px;
  line-height: 1.6;
}
.procurement-risk-score {
  min-width: 106px;
  padding-left: 20px;
  display: grid;
  justify-items: center;
  border-left: 1px solid #d8e8eb;
}
.procurement-risk-score strong {
  color: #d95d67;
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.procurement-risk-score span {
  margin-top: 4px;
  color: #7b8d95;
  font-size: 10px;
}
.procurement-risk-metrics {
  padding: 9px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid #e8f0f2;
  background: rgba(247, 251, 252, 0.78);
}
.procurement-risk-metrics span {
  min-height: 27px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #dce8eb;
  border-radius: 999px;
  background: #fff;
  color: #667e88;
  font-size: 10px;
}
.procurement-risk-metrics b {
  color: #ca5964;
  font-size: 12px;
}
.procurement-risk-metrics .governance b {
  color: #2c8d83;
}
.procurement-risk-metrics .budget-over {
  border-color: #f0cbd0;
  background: #fff6f7;
}
.procurement-risk-metrics .budget-over b {
  color: #c94353;
}
.procurement-risk-list {
  display: grid;
}
.procurement-risk-item {
  position: relative;
  min-height: 73px;
  padding: 11px 18px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) minmax(210px, 32%);
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf2f4;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.procurement-risk-item:hover {
  z-index: 1;
  background: #fbfdfd;
  transform: translateX(2px);
}
.procurement-risk-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}
.severity-high .procurement-risk-icon {
  color: #c84f5c;
  background: #fff0f2;
  box-shadow: inset 0 0 0 1px #f4d4d8;
}
.severity-medium .procurement-risk-icon {
  color: #c97a23;
  background: #fff7e8;
  box-shadow: inset 0 0 0 1px #f2dfbd;
}
.severity-governance .procurement-risk-icon {
  color: #20877d;
  background: #edf9f6;
  box-shadow: inset 0 0 0 1px #cde9e3;
}
.procurement-risk-copy {
  min-width: 0;
}
.procurement-risk-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.procurement-risk-title strong {
  overflow: hidden;
  color: #315b6b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.procurement-risk-category {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 5px;
  background: #edf5f7;
  color: #50737f;
  font-size: 9px;
  font-weight: 800;
}
.procurement-risk-copy p {
  margin: 4px 0 2px;
  color: #667d87;
  font-size: 10px;
  line-height: 1.45;
}
.procurement-risk-copy small {
  display: block;
  overflow: hidden;
  color: #97a6ac;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.procurement-risk-reference {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
}
.procurement-risk-reference > span {
  grid-row: 1/3;
  min-width: 26px;
  min-height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1f6f7;
  color: #6a818a;
  font-size: 9px;
  font-weight: 900;
}
.procurement-risk-reference strong,
.procurement-risk-reference small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.procurement-risk-reference strong {
  color: #3b6979;
  font-size: 10px;
}
.procurement-risk-reference small {
  color: #83969d;
  font-size: 9px;
}
.procurement-risk-empty {
  min-height: 88px;
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  color: #6f868d;
}
.procurement-risk-empty strong {
  color: #2b8177;
  font-size: 13px;
}
.procurement-risk-empty span {
  font-size: 10px;
}
.procurement-risk-foot {
  padding: 8px 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  background: #f8fbfc;
  color: #899ba2;
  font-size: 9px;
  line-height: 1.5;
}
@media (max-width: 780px) {
  .procurement-risk-head {
    align-items: flex-start;
  }
  .procurement-risk-score {
    min-width: 78px;
    padding-left: 12px;
  }
  .procurement-risk-item {
    grid-template-columns: 26px minmax(0, 1fr);
  }
  .procurement-risk-reference {
    grid-column: 2;
  }
  .procurement-risk-foot {
    flex-direction: column;
    gap: 3px;
  }
}
.procurement-budget-workbench {
  max-height: min(86vh, 920px);
  overflow: auto;
}
.procurement-budget-stats {
  margin: 12px 0;
}
.procurement-budget-workbench .document-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 12px;
  padding: 0 0 12px;
}
.procurement-budget-workbench .document-toolbar-tip {
  flex: 1 1 420px;
  min-width: 240px;
  color: #607984;
  font-size: 11px;
  line-height: 1.55;
}
.procurement-budget-table {
  min-width: 1050px;
}
.procurement-budget-table td:nth-child(1) {
  min-width: 190px;
}
.procurement-budget-table td:nth-child(5) {
  min-width: 260px;
}
.procurement-budget-table td:nth-child(5) > div:first-child {
  line-height: 1.55;
}
.procurement-budget-warning-row {
  background: #fffaf0;
}
.procurement-budget-warning-row:hover {
  background: #fff5e5 !important;
}
.procurement-budget-over-row {
  background: #fff5f6;
}
.procurement-budget-over-row:hover {
  background: #ffedef !important;
}
@media (max-width: 600px) {
  .procurement-budget-workbench .document-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .procurement-budget-workbench .document-toolbar .button {
    width: 100%;
    min-height: 44px;
  }
  .procurement-budget-workbench .document-toolbar-tip {
    min-width: 0;
    padding: 0 2px;
  }
}
.sensitive-field-mask {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid #b8d8e2;
  border-radius: 999px;
  background: #edf6f8;
  color: #52727e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* High-privilege account security */
.mfa-login-page .login-panel {
  background:
    radial-gradient(
      circle at 50% 16%,
      rgba(66, 188, 174, 0.12),
      transparent 31%
    ),
    linear-gradient(145deg, #f7fbfc 0%, #eef6f8 100%);
}
.mfa-login-page .login-entry-card {
  box-shadow: 0 28px 72px rgba(8, 48, 71, 0.18);
}
.mfa-security-badge,
.mfa-security-intro,
.account-mfa-head,
.mfa-admin-reset-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.mfa-security-badge {
  padding: 13px 14px;
  border: 1px solid #cce6e3;
  border-radius: 12px;
  background: linear-gradient(135deg, #effaf8, #f7fbff);
  box-shadow: inset 3px 0 #2aa892;
}
.mfa-security-badge > span,
.mfa-security-intro > span,
.account-mfa-head > span,
.mfa-admin-reset-head > span {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #1589bd, #25a788);
  box-shadow: 0 7px 18px rgba(27, 139, 147, 0.2);
  font-weight: 900;
}
.mfa-security-badge strong,
.mfa-security-intro strong,
.account-mfa-head strong,
.mfa-admin-reset-head strong {
  display: block;
  color: #245b6e;
  font-size: 12px;
}
.mfa-security-badge small,
.account-mfa-head small,
.mfa-admin-reset-head small {
  display: block;
  margin-top: 3px;
  color: #69818b;
  font-size: 10px;
  line-height: 1.55;
}
.mfa-login-back {
  align-self: center;
  color: #577681;
}
.mfa-required-card {
  gap: 19px;
}
.mfa-required-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mfa-required-steps span {
  min-height: 50px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #deeaed;
  border-radius: 10px;
  color: #52717d;
  background: rgba(250, 253, 253, 0.9);
  font-size: 10px;
  line-height: 1.45;
}
.mfa-required-steps b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #218daa;
  font-size: 10px;
}
.mfa-security-intro {
  padding: 15px;
  border: 1px solid #d2e8e6;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0faf8, #f8fbfd);
}
.mfa-security-intro p {
  margin: 4px 0 0;
  color: #657f89;
  font-size: 11px;
  line-height: 1.55;
}
.mfa-enrollment-secret {
  padding: 16px;
  display: grid;
  gap: 7px;
  border: 1px solid #cce4e2;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0faf8, #f5faff);
}
.mfa-enrollment-secret > span {
  color: #64808a;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mfa-enrollment-secret code {
  overflow-wrap: anywhere;
  color: #135d78;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.mfa-enrollment-secret small {
  color: #758b93;
  font-size: 10px;
}
.mfa-recovery-grid {
  margin: 12px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mfa-recovery-grid code {
  padding: 10px 12px;
  border: 1px solid #d7e5e8;
  border-radius: 8px;
  color: #235f74;
  background: #f8fbfc;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
}
.account-mfa-section {
  margin: 17px 0;
  padding: 16px;
  border: 1px solid #d8e5e8;
  border-radius: 13px;
  background: linear-gradient(145deg, #f8fbfc, #f4f8fa);
}
.account-mfa-section.enabled {
  border-color: #c3e2dc;
  background: linear-gradient(145deg, #f0faf7, #f7fbfd);
  box-shadow: inset 3px 0 #28a489;
}
.account-mfa-section > p {
  margin: 12px 0 0;
  color: #607c87;
  font-size: 11px;
  line-height: 1.55;
}
.account-mfa-facts {
  margin-top: 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.account-mfa-facts span {
  padding: 9px 10px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(184, 218, 214, 0.75);
  border-radius: 8px;
  color: #6a818a;
  background: rgba(255, 255, 255, 0.68);
  font-size: 9px;
}
.account-mfa-facts b {
  color: #2a6776;
  font-size: 10px;
}
.account-mfa-actions {
  margin-top: 13px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.mfa-table-cell {
  display: grid;
  justify-items: start;
  gap: 3px;
}
.mfa-table-cell small {
  color: #85979e;
  font-size: 9px;
  white-space: nowrap;
}
.mfa-table-state {
  padding: 3px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #d8e5e8;
  border-radius: 999px;
  color: #6d8189;
  background: #f7fafb;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.mfa-table-state.enabled {
  border-color: #bfe0d8;
  color: #207969;
  background: #edf9f5;
}
.mfa-table-state.required {
  border-color: #edcf9e;
  color: #a76818;
  background: #fff8ea;
}
.mfa-admin-reset-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #eed5d7;
  border-radius: 12px;
  background: #fffafb;
}
.mfa-admin-reset-panel.inactive {
  border-color: #dbe6e8;
  background: #f8fbfc;
}
.mfa-admin-reset-panel .mfa-admin-reset-head > span {
  color: #ba5360;
  background: #fff0f2;
  box-shadow: inset 0 0 0 1px #f0cfd3;
}
.mfa-admin-reset-panel.inactive .mfa-admin-reset-head > span {
  color: #6f8790;
  background: #edf3f5;
  box-shadow: none;
}
.mfa-admin-reset-panel .form-grid {
  margin-top: 13px;
}
.mfa-admin-reset-panel .form-foot {
  margin-top: 11px;
  padding-top: 11px;
}
.user-security-table {
  min-width: 980px;
}
@media (max-width: 640px) {
  .mfa-required-steps,
  .mfa-recovery-grid,
  .account-mfa-facts {
    grid-template-columns: 1fr;
  }
  .mfa-enrollment-secret code {
    font-size: 14px;
  }
  .account-mfa-actions .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mfa-login-page *,
  .account-mfa-section * {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}

.top-global-search {
  height: 100%;
  border: 0;
  border-left: 1px solid #edf0f1;
  background: #f4fbfc;
  color: #117eae;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.top-global-search:hover,
.top-global-search:focus-visible {
  background: #e8f7f3;
  color: #087152;
  outline: 0;
}
.global-search-form {
  padding: 18px;
}
.global-search-intro {
  margin: 0 0 14px;
  color: #56717f;
  font-size: 12px;
  line-height: 1.6;
}
.global-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px auto;
  gap: 8px;
}
.global-search-controls input,
.global-search-controls select {
  width: 100%;
  min-height: 34px;
  border: 1px solid #bfd6df;
  border-radius: 3px;
  padding: 6px 9px;
  color: #284f65;
  background: #fff;
}
.global-search-shortcut {
  margin-top: 8px;
  color: #758a95;
  font-size: 11px;
}
.global-search-results {
  min-height: 148px;
  margin-top: 14px;
  border-top: 1px solid #deeaed;
}
.global-search-empty {
  min-height: 112px;
  display: grid;
  place-content: center;
  gap: 5px;
  color: #78909a;
  text-align: center;
  font-size: 12px;
}
.global-search-empty strong {
  color: #456371;
}
.global-search-empty.error {
  color: #bf4652;
}
.global-search-summary {
  padding: 10px 1px 8px;
  color: #54717e;
  font-size: 11px;
}
.global-search-result-list {
  display: grid;
  gap: 5px;
}
.global-search-result {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #d9e7eb;
  border-radius: 3px;
  background: #fff;
  color: #486370;
  text-align: left;
  cursor: pointer;
}
.global-search-result:hover,
.global-search-result:focus-visible {
  border-color: #74bfd9;
  background: #f5fbfc;
  outline: 0;
}
.global-search-kind {
  color: #0f83b7;
  font-size: 11px;
  font-weight: 800;
}
.global-search-record {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.global-search-record strong,
.global-search-record small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.global-search-record strong {
  color: #285267;
  font-size: 13px;
}
.global-search-record small {
  color: #78909b;
  font-size: 11px;
}
@media (max-width: 720px) {
  .company-meta {
    display: none;
  }
  .global-search-controls {
    grid-template-columns: 1fr auto;
  }
  .global-search-controls label:first-child {
    grid-column: 1 / -1;
  }
  .global-search-result {
    grid-template-columns: 78px minmax(0, 1fr) 12px;
  }
}
.recent-activity-panel {
  margin-top: 12px;
  border: 1px solid #dce9ec;
  background: #fff;
}
.recent-activity-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-bottom: 1px solid #e4eef0;
  background: linear-gradient(90deg, #f5fbfc, #fbfffa);
}
.recent-activity-panel header > div {
  display: grid;
  gap: 2px;
}
.recent-activity-eyebrow {
  color: #1785b7;
  font-size: 10px;
  font-weight: 800;
}
.recent-activity-panel header strong {
  color: #315b70;
  font-size: 14px;
}
.recent-activity-list {
  display: grid;
}
.recent-activity-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #edf2f3;
  background: #fff;
  color: #55707d;
  text-align: left;
  cursor: pointer;
}
.recent-activity-item:hover,
.recent-activity-item:focus-visible {
  background: #f2fbf8;
  outline: 2px solid #8ccfbd;
  outline-offset: -2px;
}
.recent-activity-kind {
  color: #0e82b5;
  font-size: 10px;
  font-weight: 800;
}
.recent-activity-item span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.recent-activity-item strong,
.recent-activity-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-activity-item strong {
  color: #365c6e;
  font-size: 12px;
}
.recent-activity-item small {
  color: #7f939b;
  font-size: 10px;
}
.recent-activity-panel footer {
  padding: 8px 12px;
  color: #81939a;
  background: #fafdfd;
  font-size: 10px;
}
.recent-activity-empty {
  padding: 20px 12px;
  color: #83969e;
  text-align: center;
  font-size: 12px;
}
.draft-resume-panel {
  margin-top: 12px;
  border: 1px solid #d7e8e4;
  background: #fff;
}
.draft-resume-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-bottom: 1px solid #e1efec;
  background: linear-gradient(90deg, #f3fbf8, #fbfffd);
}
.draft-resume-panel header > div {
  display: grid;
  gap: 2px;
}
.draft-resume-eyebrow {
  color: #19866e;
  font-size: 10px;
  font-weight: 800;
}
.draft-resume-panel header strong {
  color: #315b70;
  font-size: 14px;
}
.draft-resume-count {
  min-width: 36px;
  padding: 3px 7px;
  border-radius: 12px;
  background: #e8f6ef;
  color: #28765f;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.draft-resume-list {
  display: grid;
}
.draft-resume-item {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #edf4f1;
  background: #fff;
  color: #55707d;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--motion-fast) var(--ease-emphasized),
    transform var(--motion-fast) var(--ease-emphasized);
}
.draft-resume-item:hover,
.draft-resume-item:focus-visible {
  background: #f1faf6;
  outline: 2px solid #85cbb6;
  outline-offset: -2px;
  transform: translateX(2px);
}
.draft-resume-mark {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: linear-gradient(145deg, #238b72, #5daf82);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.draft-resume-item span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.draft-resume-item strong,
.draft-resume-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.draft-resume-item strong {
  color: #365c6e;
  font-size: 12px;
}
.draft-resume-item small {
  color: #7f939b;
  font-size: 10px;
}
.draft-resume-item b {
  color: #258269;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.draft-resume-panel footer {
  padding: 8px 12px;
  color: #81939a;
  background: #fafdfd;
  font-size: 10px;
}
.draft-resume-empty {
  padding: 20px 12px;
  color: #83969e;
  text-align: center;
  font-size: 12px;
}
@media (prefers-reduced-motion: reduce) {
  .draft-resume-item {
    transition: none;
  }
  .draft-resume-item:hover,
  .draft-resume-item:focus-visible {
    transform: none;
  }
}
