:root {
  --sidebar-width: 184px;
  --sidebar-collapsed-width: 58px;
  --primary: #0054a6;
  --primary-deep: #0050a8;
  --cyan: #00b0f0;
  --success: #00b0f0;
  --bg: #e9ebee;
  --panel: #ffffff;
  --text: #1f2a37;
  --muted: #697586;
  --line: #dce3ec;
  --border: #dce3ec;
  --surface-soft: #f8fafc;
  --surface-muted: #f2f6fa;
  --ink-strong: #101828;
  --ink-subtle: #475467;
  --focus: #1d70b8;
  --shadow-panel: 0 1px 2px rgb(15 23 42 / 6%);
  --shadow-popover: 0 18px 48px rgb(15 42 68 / 18%);
  --sidebar: #0054a6;
  --sidebar-deep: #0050a8;
  --sidebar-hover: #0068c8;
  --sidebar-active: #004b96;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

button,
select {
  font: inherit;
}

.signin-page {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 520px) minmax(340px, 390px);
  align-content: center;
  justify-content: center;
  gap: 0;
  padding: 36px;
  background: #f3f6fb;
}

.signin-visual-panel {
  position: relative;
  display: flex;
  min-height: 560px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 30px 34px;
  border-radius: 18px 0 0 18px;
  color: #fff;
  background:
    radial-gradient(circle at 70% 18%, rgba(78, 143, 255, 0.32), transparent 30%),
    radial-gradient(circle at 8% 82%, rgba(5, 84, 166, 0.26), transparent 34%),
    linear-gradient(145deg, #081827 0%, #0b2b55 52%, #0f4f95 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.signin-visual-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 92%);
  pointer-events: none;
}

.signin-brand-row,
.signin-mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.signin-brand-row {
  position: relative;
  z-index: 2;
  font-size: 18px;
}

.signin-brand-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.signin-character-stage {
  position: relative;
  z-index: 2;
  width: min(390px, 100%);
  height: 282px;
  align-self: center;
  margin: 8px 0;
}

.signin-character {
  position: absolute;
  bottom: 0;
  transform: translateX(var(--body-x, 0)) skewX(var(--body-skew, 0deg));
  transform-origin: bottom center;
  transition: transform 220ms ease, filter 220ms ease, height 220ms ease;
  will-change: transform;
}

.signin-character.is-alert {
  filter: saturate(1.08) contrast(1.02);
}

.character-purple {
  left: 50px;
  z-index: 1;
  width: 126px;
  height: 282px;
  border-radius: 10px 10px 0 0;
  background: #6550e8;
}

.is-typing .character-purple,
.is-password-filled .character-purple {
  height: 302px;
}

.character-black {
  left: 170px;
  z-index: 2;
  width: 84px;
  height: 218px;
  border-radius: 8px 8px 0 0;
  background: #232936;
}

.character-orange {
  left: 0;
  z-index: 3;
  width: 170px;
  height: 142px;
  border-radius: 85px 85px 0 0;
  background: #f49a6a;
}

.character-yellow {
  left: 220px;
  z-index: 4;
  width: 100px;
  height: 162px;
  border-radius: 50px 50px 0 0;
  background: #e5d259;
}

.character-face {
  position: absolute;
  display: flex;
  gap: 26px;
  transform: translate(var(--face-x, 0), var(--face-y, 0));
  transition: transform 180ms ease;
  will-change: transform;
}

.purple-face {
  top: 32px;
  left: 35px;
}

.black-face {
  top: 25px;
  left: 20px;
  gap: 18px;
}

.orange-face {
  top: 70px;
  left: 64px;
  gap: 24px;
}

.yellow-face {
  top: 31px;
  left: 40px;
  gap: 18px;
}

.character-eye {
  display: inline-flex;
  width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background: #fff;
  transition: height 100ms ease;
}

.small-eye {
  width: 13px;
  height: 13px;
}

.character-eye.is-blinking {
  height: 2px;
}

.character-eye span,
.simple-eye span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #232936;
  transition: transform 80ms linear;
}

.small-eye span {
  width: 5px;
  height: 5px;
}

.simple-eye {
  display: inline-flex;
  width: 10px;
  height: 10px;
  align-items: center;
  justify-content: center;
}

.simple-eye span {
  width: 10px;
  height: 10px;
}

.character-mouth {
  position: absolute;
  top: 68px;
  left: 31px;
  width: 62px;
  height: 4px;
  border-radius: 999px;
  background: #232936;
  transform: translate(var(--face-x, 0), var(--face-y, 0));
  transition: transform 180ms ease, width 180ms ease;
}

.is-typing .character-mouth {
  width: 50px;
}

.signin-visual-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  max-width: 430px;
}

.signin-visual-copy strong {
  font-size: 19px;
  line-height: 1.25;
}

.signin-visual-copy span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.signin-panel {
  display: flex;
  width: 100%;
  min-height: 560px;
  flex-direction: column;
  justify-content: center;
  justify-self: center;
  padding: 44px 42px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 18px 18px 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

.signin-mobile-brand {
  display: none;
  margin-bottom: 34px;
  color: #0f172a;
  font-size: 17px;
}

.signin-mobile-brand .signin-brand-mark {
  color: #fff;
  background: var(--primary);
}

.signin-eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.signin-panel h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.signin-note {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.signin-error {
  margin-bottom: 14px;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 10px 12px;
  color: #b91c1c;
  background: #fef2f2;
  font-size: 13px;
}

.signin-form {
  display: grid;
  gap: 13px;
}

.signin-form label {
  display: grid;
  gap: 6px;
  color: #475569;
  font-size: 13px;
}

.signin-form input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font: inherit;
  outline: none;
  background: rgba(255, 255, 255, 0.86);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.signin-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 84, 166, 0.14);
  background: #fff;
}

.signin-password-field {
  min-width: 0;
}

.signin-password-control {
  display: flex;
  align-items: stretch;
}

.signin-password-control input {
  min-width: 0;
  border-radius: 8px 0 0 8px;
}

.signin-password-toggle {
  min-width: 52px;
  border: 1px solid #cbd5e1;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  color: var(--primary);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  background: #eef6ff;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.signin-password-toggle:hover {
  background: #dcecff;
}

.signin-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  min-height: 40px;
  border-radius: 8px;
}

@media (max-width: 1024px) {
  .signin-page {
    grid-template-columns: 1fr;
    place-items: center;
    padding: 24px;
  }

  .signin-visual-panel {
    display: none;
  }

  .signin-panel {
    min-height: auto;
    width: min(390px, 100%);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  }

  .signin-mobile-brand {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signin-character,
  .character-face,
  .character-mouth,
  .character-eye span,
  .simple-eye span {
    transition: none;
  }
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #dcefff;
  background: var(--sidebar);
  transition: width 200ms ease;
}

.app-shell.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed-width);
}

.sidebar-main {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-nav {
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 58px;
  padding: 0 15px;
  color: #fff;
  background: var(--sidebar-deep);
  font-weight: 700;
}

.brand-logo-wrap {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
}

.brand-logo-wrap img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-name {
  font-size: 16px;
  line-height: 1;
}

.sidebar-group {
  color: #dcefff;
}

.sidebar-group-label,
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 39px;
  margin: 0;
  padding: 0 18px;
  color: #dcefff;
  background: transparent;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-group.active > .sidebar-group-label {
  color: #fff;
  background: linear-gradient(90deg, #0078d4, #0054a6);
}

.sidebar-group-label:hover,
.sidebar-link:hover {
  background: var(--sidebar-hover);
}

.sidebar-link.active {
  color: #fff;
  background: linear-gradient(90deg, var(--sidebar-active), #0054a6);
  border-left-color: var(--success);
}

.sidebar-subnav {
  display: none;
  padding: 2px 0 4px;
  background: var(--sidebar-deep);
}

.sidebar-group.expanded .sidebar-subnav {
  display: block;
}

.sidebar-sublink {
  height: 34px;
  padding-left: 32px;
  font-size: 13px;
}

.sidebar-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.sidebar-expand-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  margin-left: auto;
}

.sidebar-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 120ms ease;
}

.sidebar-footer {
  background: var(--sidebar-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar-user {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 6px;
  padding: 8px 12px 8px 16px;
}

.sidebar-user-name {
  flex: 1;
  color: #f9fafb;
  font-size: 14px;
  font-weight: 700;
}

.sidebar-icon-button,
.sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  color: #f9fafb;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.sidebar-icon-button {
  width: 30px;
  height: 30px;
}

.sidebar-toggle {
  width: 58px;
  height: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.sidebar-action-icon {
  width: 17px;
  height: 17px;
}

.sidebar-icon-button:hover,
.sidebar-toggle:hover {
  background: var(--sidebar-hover);
}

.app-shell.sidebar-collapsed .brand-link,
.app-shell.sidebar-collapsed .sidebar-link,
.app-shell.sidebar-collapsed .sidebar-group-label {
  justify-content: center;
  gap: 0;
  padding-right: 0;
  padding-left: 0;
  border-left-width: 0;
}

.app-shell.sidebar-collapsed .sidebar-sublink {
  padding-left: 0;
}

.app-shell.sidebar-collapsed .sidebar-subnav {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-label,
.app-shell.sidebar-collapsed .sidebar-expand-icon {
  width: 0;
  flex-basis: 0;
  opacity: 0;
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-user {
  justify-content: center;
  padding-right: 0;
  padding-left: 0;
}

.app-shell.sidebar-collapsed .sidebar-icon-button {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-link.active {
  box-shadow: inset 3px 0 0 var(--success);
}

.main {
  min-width: 0;
  margin-left: var(--sidebar-width);
  transition: margin-left 200ms ease;
}

.app-shell.sidebar-collapsed .main {
  margin-left: var(--sidebar-collapsed-width);
}

select {
  height: 32px;
  padding: 0 28px 0 10px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: var(--primary-deep);
  background: #e8f4ff;
  border: 1px solid #c5e4ff;
  border-radius: 3px;
  font-size: 12px;
}

.page-content {
  padding: 14px;
}

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

.metric-card,
.panel,
.source-card,
.module-card {
  background: var(--panel);
  border: 1px solid #e4e7ec;
  border-radius: 3px;
}

.metric-card {
  padding: 15px 16px;
}

.metric-card span,
.source-card span {
  color: var(--muted);
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 28px;
}

.metric-card small,
.source-card small {
  color: var(--primary);
}

.dashboard-workbench {
  display: grid;
  gap: 12px;
}

.dashboard-template-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 126px;
  padding: 20px;
}

.dashboard-template-hero span,
.dashboard-role-chip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-template-hero h2 {
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 24px;
}

.dashboard-template-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-role-chip {
  flex: none;
  min-width: 168px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e4e9f0;
  border-radius: 6px;
}

.dashboard-role-chip strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 16px;
}

.dashboard-template-metrics {
  margin-bottom: 0;
}

.dashboard-template-grid {
  align-items: start;
}

.dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px 16px;
}

.dashboard-action-card {
  display: grid;
  gap: 6px;
  min-height: 88px;
  padding: 13px;
  text-align: left;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 6px;
  cursor: pointer;
}

.dashboard-action-card:hover {
  border-color: #b9d9f5;
  box-shadow: inset 3px 0 0 var(--primary);
}

.dashboard-action-card span,
.dashboard-action-card small {
  color: var(--muted);
  font-size: 12px;
}

.dashboard-action-card strong {
  color: var(--ink);
  font-size: 15px;
}

.dashboard-focus-list {
  display: grid;
  gap: 10px;
  padding: 14px 16px 16px;
}

.dashboard-focus-list p {
  margin: 0;
  padding: 12px;
  color: #344054;
  background: #f8fafc;
  border: 1px solid #e4e9f0;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.55;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 12px;
  margin-bottom: 12px;
}

.panel {
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin: 0;
  font-size: 16px;
}

.panel-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.primary-button,
.ghost-button {
  min-width: 86px;
  height: 32px;
  padding: 0 13px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.primary-button {
  color: #ffffff;
  background: var(--primary);
  border: 1px solid var(--primary);
}

.primary-button:hover {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  box-shadow: 0 6px 14px rgb(0 84 166 / 16%);
}

.ghost-button {
  color: var(--primary);
  background: #ffffff;
  border: 1px solid #b9d9f5;
}

.ghost-button:hover {
  color: var(--primary-deep);
  border-color: #8fc5f0;
  background: #f5fbff;
}

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

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

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid #e8edf3;
  text-align: left;
  white-space: nowrap;
}

th {
  color: #526173;
  background: #f8fafc;
  font-weight: 600;
}

.role-card {
  padding: 16px;
}

.role-card strong {
  font-size: 18px;
}

.role-card p {
  color: var(--muted);
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  padding: 5px 8px;
  color: var(--primary-deep);
  background: #eef7ff;
  border: 1px solid #cce7ff;
  border-radius: 3px;
  font-size: 12px;
}

.source-grid,
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px 16px;
}

.source-card {
  padding: 14px;
}

.source-card strong {
  display: block;
  margin: 7px 0;
}

.source-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 12px;
}

.module-panel {
  min-height: 420px;
}

.module-framework-page .module-grid {
  border-bottom: 1px solid #eef2f6;
}

.module-framework-badge {
  flex: none;
  min-height: 32px;
  padding: 7px 12px;
  color: #175cd3;
  background: #eff8ff;
  border: 1px solid #b2ddff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.module-framework-body {
  padding: 16px;
}

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

.module-framework-section {
  min-width: 0;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e4e9f0;
  border-radius: 6px;
}

.module-framework-section span {
  display: block;
  margin-bottom: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.module-framework-section strong {
  display: block;
  color: #101828;
  font-size: 14px;
  line-height: 1.5;
}

.inventory-monitor-page {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.sales-dashboard-page {
  display: grid;
  gap: 14px;
}

.inventory-monitor-hero,
.inventory-overview-grid article,
.inventory-overview-grid .inventory-overview-card,
.inventory-filter-panel,
.inventory-source-panel {
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
  box-shadow: var(--shadow-panel);
}

.inventory-filter-panel {
  min-width: 0;
}

.inventory-monitor-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.inventory-monitor-hero h2,
.inventory-section-title h3 {
  margin: 0;
  color: #101828;
}

.inventory-monitor-hero p,
.inventory-section-title p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
  font-weight: 600;
}

.inventory-snapshot-status {
  display: inline-flex;
  max-width: min(560px, 60%);
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #b2ddff;
  border-radius: 6px;
  color: #175cd3;
  background: #eff8ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.inventory-snapshot-status.is-loading {
  color: #475467;
  background: #f8fafc;
  border-color: #d0d5dd;
}

.inventory-snapshot-status.is-warning {
  color: #b54708;
  background: #fffaeb;
  border-color: #fedf89;
}

.inventory-snapshot-status.is-error {
  color: #b42318;
  background: #fef3f2;
  border-color: #fecdca;
}

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

.inventory-overview-grid article,
.inventory-overview-grid .inventory-overview-card {
  min-width: 0;
  padding: 14px;
}

.inventory-overview-grid .inventory-overview-card {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.inventory-overview-grid .inventory-overview-card:hover,
.inventory-overview-grid .inventory-overview-card.is-active {
  border-color: #84adff;
}

.inventory-overview-grid .inventory-overview-card.is-active {
  box-shadow: inset 0 0 0 1px #2f80ed;
}

.inventory-overview-grid span,
.inventory-overview-grid small {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.inventory-overview-grid .inventory-overview-action {
  display: block;
  margin-top: 8px;
  color: #175cd3;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.inventory-overview-grid strong {
  display: block;
  margin: 6px 0 4px;
  color: #101828;
  font-size: 24px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.inventory-overview-grid .inventory-overview-risk {
  border-color: #b2ddff;
  background: #f5faff;
}

.inventory-overview-grid .inventory-overview-risk strong {
  color: #175cd3;
}

.inventory-overview-grid .inventory-overview-critical {
  border-color: #fed7aa;
  background: #fffaf5;
}

.inventory-overview-grid .inventory-overview-critical strong {
  color: #c2410c;
}

.sales-overview-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.inventory-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #edf1f5;
}

.inventory-section-title.compact {
  padding-bottom: 12px;
}

.inventory-section-title > span {
  flex: none;
  min-height: 28px;
  padding: 6px 10px;
  color: #175cd3;
  background: #eff8ff;
  border: 1px solid #b2ddff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.inventory-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid #edf1f5;
  background: #f8fafc;
}

.inventory-filter-group {
  min-width: 0;
  gap: 8px;
}

.inventory-filter-group-locate {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 180px minmax(280px, 1fr);
}

.inventory-filter-group-locate select {
  min-width: 0;
}

.inventory-filter-group-locate input {
  min-width: 0;
}

.inventory-filter-group-primary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inventory-filter-group-primary select,
.inventory-filter-group-more select,
.inventory-filter-group-more input {
  min-width: 0;
}

.inventory-filter-group-more {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inventory-filter-group-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.inventory-filter-group-action select {
  min-width: 0;
}

.inventory-filter-group-action button {
  min-height: 36px;
  white-space: nowrap;
}

.inventory-filter-bar input,
.inventory-filter-bar select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  color: #101828;
  background: #fff;
  border: 1px solid #cfd9e6;
  border-radius: 6px;
  font-size: 13px;
}

.sales-filter-bar {
  grid-template-columns: 180px minmax(260px, 1fr) 170px 140px;
}

.inventory-table-wrap {
  overflow-x: auto;
}

.inventory-monitor-table {
  width: calc(
    2336px
    + var(--inventory-msku-width, 208px)
    + var(--inventory-sales-triple-width, 180px)
    + var(--inventory-average-triple-width, 210px)
    + var(--inventory-ad-triple-width, 180px)
  );
  min-width: calc(
    2336px
    + var(--inventory-msku-width, 208px)
    + var(--inventory-sales-triple-width, 180px)
    + var(--inventory-average-triple-width, 210px)
    + var(--inventory-ad-triple-width, 180px)
  );
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.inventory-monitor-table-wrap {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  contain: inline-size;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  isolation: isolate;
}

.inventory-monitor-sticky-header {
  position: fixed;
  top: 0;
  z-index: 30;
  overflow: hidden;
  pointer-events: none;
  border-bottom: 1px solid #d8e2ee;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.inventory-monitor-sticky-header-scroll {
  overflow: hidden;
}

.inventory-monitor-sticky-header .inventory-monitor-table {
  margin: 0;
  background: #f8fafc;
  transform-origin: left top;
}

.inventory-monitor-sticky-header .inventory-monitor-table th {
  background: #f8fafc;
}

.inventory-monitor-sticky-header .inventory-monitor-table th:nth-child(-n + 4) {
  position: relative;
  z-index: 1;
}

.inventory-monitor-sticky-header .inventory-monitor-table th:nth-child(4) {
  box-shadow: 8px 0 10px -10px rgba(16, 24, 40, 0.42);
}

.inventory-monitor-table th,
.inventory-monitor-table td {
  box-sizing: border-box;
  height: 44px;
  padding: 10px 12px;
  border-bottom: 1px solid #e6edf5;
  text-align: center;
  vertical-align: middle;
}

.inventory-monitor-table .inventory-asin-link {
  color: #0067b8;
  font-weight: 700;
  text-decoration: none;
}

.inventory-monitor-table .inventory-asin-link:hover {
  text-decoration: underline;
}

.inventory-monitor-table th {
  color: #475467;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.inventory-monitor-table th:nth-child(1),
.inventory-monitor-table td:nth-child(1) {
  min-width: 96px;
  width: 96px;
  max-width: 96px;
}

.inventory-monitor-table th:nth-child(2),
.inventory-monitor-table td:nth-child(2) {
  min-width: var(--inventory-msku-width, 208px);
  width: var(--inventory-msku-width, 208px);
  max-width: var(--inventory-msku-width, 208px);
}

.inventory-monitor-table th:nth-child(3),
.inventory-monitor-table td:nth-child(3) {
  min-width: 116px;
  width: 116px;
  max-width: 116px;
}

.inventory-monitor-table th:nth-child(4),
.inventory-monitor-table td:nth-child(4) {
  min-width: 68px;
  width: 68px;
  max-width: 68px;
}

.inventory-monitor-table th:nth-child(5),
.inventory-monitor-table td:nth-child(5) {
  width: 84px;
}

.inventory-monitor-table th:nth-child(6),
.inventory-monitor-table td:nth-child(6),
.inventory-monitor-table th:nth-child(7),
.inventory-monitor-table td:nth-child(7),
.inventory-monitor-table th:nth-child(8),
.inventory-monitor-table td:nth-child(8),
.inventory-monitor-table th:nth-child(9),
.inventory-monitor-table td:nth-child(9),
.inventory-monitor-table th:nth-child(12),
.inventory-monitor-table td:nth-child(12),
.inventory-monitor-table th:nth-child(13),
.inventory-monitor-table td:nth-child(13),
.inventory-monitor-table th:nth-child(14),
.inventory-monitor-table td:nth-child(14),
.inventory-monitor-table th:nth-child(25),
.inventory-monitor-table td:nth-child(25),
.inventory-monitor-table th:nth-child(27),
.inventory-monitor-table td:nth-child(27) {
  width: 88px;
}

.inventory-monitor-table th:nth-child(10),
.inventory-monitor-table td:nth-child(10),
.inventory-monitor-table th:nth-child(16),
.inventory-monitor-table td:nth-child(16),
.inventory-monitor-table th:nth-child(23),
.inventory-monitor-table td:nth-child(23),
.inventory-monitor-table th:nth-child(24),
.inventory-monitor-table td:nth-child(24) {
  width: 76px;
}

.inventory-monitor-table th:nth-child(11),
.inventory-monitor-table td:nth-child(11) {
  width: 100px;
}

.inventory-monitor-table th:nth-child(15),
.inventory-monitor-table td:nth-child(15) {
  width: 72px;
}

.inventory-monitor-table th:nth-child(17),
.inventory-monitor-table td:nth-child(17) {
  width: var(--inventory-sales-triple-width, 180px);
  white-space: nowrap;
}

.inventory-monitor-table th:nth-child(18),
.inventory-monitor-table td:nth-child(18) {
  width: var(--inventory-average-triple-width, 210px);
  white-space: nowrap;
}

.inventory-monitor-table th:nth-child(19),
.inventory-monitor-table td:nth-child(19) {
  width: var(--inventory-ad-triple-width, 180px);
  white-space: nowrap;
}

.inventory-monitor-table th:nth-child(20),
.inventory-monitor-table td:nth-child(20) {
  width: 104px;
}

.inventory-monitor-table th:nth-child(21),
.inventory-monitor-table td:nth-child(21),
.inventory-monitor-table th:nth-child(22),
.inventory-monitor-table td:nth-child(22),
.inventory-monitor-table th:nth-child(26),
.inventory-monitor-table td:nth-child(26) {
  width: 96px;
}

.inventory-monitor-table th:nth-child(28),
.inventory-monitor-table td:nth-child(28) {
  width: 112px;
}

.inventory-monitor-table th:nth-child(29),
.inventory-monitor-table td:nth-child(29) {
  width: 100px;
}

.inventory-monitor-table th:nth-child(30),
.inventory-monitor-table td:nth-child(30) {
  width: 104px;
}

.inventory-monitor-table-wrap .inventory-monitor-table th:nth-child(-n + 4),
.inventory-monitor-table-wrap .inventory-monitor-table td:nth-child(-n + 4) {
  position: sticky;
}

.inventory-monitor-table-wrap .inventory-monitor-table th:nth-child(-n + 4) {
  z-index: 3;
  background: #f8fafc;
}

.inventory-monitor-table-wrap .inventory-monitor-table td:nth-child(-n + 4) {
  z-index: 2;
  background: #fff;
}

.inventory-monitor-table-wrap .inventory-monitor-table th:nth-child(1),
.inventory-monitor-table-wrap .inventory-monitor-table td:nth-child(1) {
  left: 0;
}

.inventory-monitor-table-wrap .inventory-monitor-table th:nth-child(2),
.inventory-monitor-table-wrap .inventory-monitor-table td:nth-child(2) {
  left: 96px;
}

.inventory-monitor-table-wrap .inventory-monitor-table th:nth-child(3),
.inventory-monitor-table-wrap .inventory-monitor-table td:nth-child(3) {
  left: calc(96px + var(--inventory-msku-width, 208px));
}

.inventory-monitor-table-wrap .inventory-monitor-table th:nth-child(4),
.inventory-monitor-table-wrap .inventory-monitor-table td:nth-child(4) {
  left: calc(212px + var(--inventory-msku-width, 208px));
  box-shadow: 8px 0 10px -10px rgba(16, 24, 40, 0.42);
}

.inventory-inbound-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.inventory-shipment-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 20px;
  margin: -2px -4px;
  padding: 2px 4px 1px;
  color: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed #175cd3;
  border-radius: 4px;
  font: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  text-decoration: none;
}

.inventory-shipment-link-button::after {
  content: "\203A";
  color: #175cd3;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.inventory-shipment-link-button:hover {
  color: inherit;
  background: #eff6ff;
  border-bottom-color: #0b5cad;
  text-decoration: none;
}

.inventory-shipment-link-button:focus-visible {
  outline: 2px solid #84adff;
  outline-offset: 2px;
}

.inventory-sales-trend-link-button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 0;
  color: #101828;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.inventory-sales-trend-link-button::after {
  content: "\203A";
  color: #175cd3;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.inventory-sales-trend-link-button:hover {
  color: #175cd3;
  background: #eff6ff;
}

.inventory-sales-trend-link-button:focus-visible {
  outline: 2px solid #84adff;
  outline-offset: 2px;
}

.inventory-warehouse-conflict-warning {
  display: block;
  margin: 4px 0 0;
  padding: 0;
  color: #b54708;
  background: transparent;
  border: 0;
  border-bottom: 1px dashed #d97706;
  font: inherit;
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
}

.inventory-warehouse-conflict-warning:hover {
  color: #92400e;
  background: #fffaeb;
}

.inventory-warehouse-conflict-warning:focus-visible {
  outline: 2px solid #fdb022;
  outline-offset: 2px;
}

.inventory-shipment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inventory-shipment-tabs button {
  height: 32px;
  padding: 0 10px;
  color: #344054;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.inventory-shipment-tabs button.is-active {
  color: #ffffff;
  background: #111827;
  border-color: #111827;
}

.inventory-shipment-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.inventory-shipment-table th,
.inventory-shipment-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #eef2f6;
  font-size: 11px;
  text-align: center;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.inventory-shipment-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #667085;
  background: #f8fafc;
  font-weight: 800;
  text-align: center;
}

.inventory-shipment-table td.numeric {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.inventory-shipment-col-id {
  width: 21%;
}

.inventory-shipment-col-status {
  width: 16%;
}

.inventory-shipment-col-bucket {
  width: 14%;
}

.inventory-shipment-col-number {
  width: 8%;
}

.inventory-shipment-col-date {
  width: 25%;
}

.inventory-table-sort-control {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: inherit;
}

.inventory-sort-label-button,
.inventory-sort-icon-button,
.inventory-sales-sort-label-trigger,
.inventory-sales-sort-glyph-button,
.inventory-sales-sort-option-label,
.inventory-sales-sort-option-glyph-button {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.inventory-sort-label-button:hover,
.inventory-sort-icon-button:hover,
.inventory-sales-sort-label-trigger:hover,
.inventory-sales-sort-glyph-button:hover,
.inventory-sales-sort-option-label:hover,
.inventory-sales-sort-option-glyph-button:hover {
  color: #175cd3;
}

.inventory-sort-icon-button {
  display: inline-grid;
  flex: 0 0 16px;
  place-items: center;
  width: 16px;
  min-height: 22px;
}

.inventory-sort-indicator {
  display: inline-grid;
  gap: 0;
  color: #98a2b3;
  font-size: 8px;
  line-height: 7px;
}

.inventory-sort-indicator .is-active {
  color: #175cd3;
}

.inventory-sales-sort-menu {
  position: relative;
  display: inline-flex;
}

.inventory-sales-sort-trigger {
  gap: 2px;
}

.inventory-sales-sort-label-trigger {
  display: inline-flex;
  flex: 0 0 auto;
  text-align: left;
}

.inventory-sales-sort-label .is-active {
  color: #175cd3;
}

.inventory-sales-sort-glyph-button {
  display: inline-grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
}

.inventory-sales-sort-glyph {
  display: inline-grid;
  grid-template-columns: 9px 11px;
  align-items: center;
  justify-items: center;
  width: 28px;
  height: 28px;
  margin-left: 0;
  border-radius: 6px;
  color: #98a2b3;
  background: #f2f4f7;
  line-height: 1;
}

.inventory-sales-sort-glyph.is-asc,
.inventory-sales-sort-glyph.is-desc {
  color: #175cd3;
  background: #eff6ff;
}

.inventory-sales-sort-glyph-axis {
  font-size: 15px;
  transform: translateY(-1px);
}

.inventory-sales-sort-glyph-lines {
  display: grid;
  gap: 2px;
  justify-items: start;
  width: 10px;
}

.inventory-sales-sort-glyph-lines span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.inventory-sales-sort-glyph-lines span:nth-child(1) {
  width: 8px;
}

.inventory-sales-sort-glyph-lines span:nth-child(2) {
  width: 8px;
}

.inventory-sales-sort-glyph-lines span:nth-child(3) {
  width: 8px;
}

.inventory-sales-sort-glyph.is-asc .inventory-sales-sort-glyph-lines span:nth-child(1) {
  width: 4px;
}

.inventory-sales-sort-glyph.is-asc .inventory-sales-sort-glyph-lines span:nth-child(2) {
  width: 7px;
}

.inventory-sales-sort-glyph.is-asc .inventory-sales-sort-glyph-lines span:nth-child(3) {
  width: 10px;
}

.inventory-sales-sort-glyph.is-desc .inventory-sales-sort-glyph-lines span:nth-child(1) {
  width: 10px;
}

.inventory-sales-sort-glyph.is-desc .inventory-sales-sort-glyph-lines span:nth-child(2) {
  width: 7px;
}

.inventory-sales-sort-glyph.is-desc .inventory-sales-sort-glyph-lines span:nth-child(3) {
  width: 4px;
}

.inventory-sales-sort-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 8;
  width: max-content;
  min-width: 122px;
  padding: 8px 0;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.14);
}

.inventory-sales-sort-options::before {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 1px solid #d0d5dd;
  border-left: 1px solid #d0d5dd;
  background: #fff;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.inventory-sales-sort-option {
  display: grid;
  grid-template-columns: max-content 18px;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  color: #101828;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.inventory-sales-sort-option:hover,
.inventory-sales-sort-option:focus-within {
  color: #175cd3;
  background: #eff6ff;
}

.inventory-sales-sort-option.is-active {
  color: #175cd3;
}

.inventory-sales-sort-option-label {
  width: auto;
  min-height: 40px;
  text-align: left;
  white-space: nowrap;
}

.inventory-sales-sort-option-glyph-button {
  display: inline-grid;
  justify-self: start;
  width: 18px;
  place-items: center;
  min-height: 40px;
}

.inventory-sales-sort-option-glyph {
  display: inline-grid;
  grid-template-columns: 8px 8px;
  align-items: center;
  justify-content: center;
  width: 16px;
  color: #98a2b3;
  font-size: 14px;
  line-height: 1;
}

.inventory-sales-sort-option-arrow {
  color: #98a2b3;
}

.inventory-sales-sort-option-glyph.is-asc .inventory-sales-sort-option-arrow-up,
.inventory-sales-sort-option-glyph.is-desc .inventory-sales-sort-option-arrow-down {
  color: #175cd3;
}

.inventory-product-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid #e6edf5;
  border-radius: 6px;
  background: #fff;
}

.inventory-value {
  color: inherit;
  font-weight: inherit;
}

.inventory-suggested-purchase {
  display: inline-flex;
  justify-content: flex-end;
  min-width: 32px;
  color: #344054;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.inventory-suggested-purchase.is-needed {
  color: #175cd3;
}

.inventory-delta-indicator {
  display: inline-flex;
  margin-left: 5px;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.inventory-delta-up {
  color: #dc2626;
}

.inventory-delta-down {
  color: #16a34a;
}

.inventory-separator {
  margin: 0 3px;
  color: #94a3b8;
}

.sales-dashboard-table {
  min-width: 1380px;
}

.sales-dashboard-table th:nth-child(n + 5),
.sales-dashboard-table td:nth-child(n + 5) {
  text-align: right;
}

.sales-dashboard-table th:first-child,
.sales-dashboard-table td:first-child {
  width: 76px;
  text-align: left;
}

.sales-parent-row td {
  background: #fff;
  font-weight: 700;
}

.sales-parent-row small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.sales-parent-toggle {
  height: 30px;
  min-width: 52px;
  padding: 0 10px;
  color: #0056b3;
  background: #eff8ff;
  border: 1px solid #b2ddff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sales-child-row td {
  height: 38px;
  background: #fbfdff;
  color: #344054;
}

.sales-child-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sales-child-product strong,
.sales-child-product span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-child-product span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.inventory-source-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px 20px 20px;
}

.inventory-source-panel dl div {
  min-width: 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e4e9f0;
  border-radius: 6px;
}

.inventory-source-panel dt {
  color: #101828;
  font-size: 13px;
  font-weight: 800;
}

.inventory-source-panel dd {
  margin: 6px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.operations-sop-page {
  display: grid;
  gap: 14px;
}

.operations-sop-hero,
.operations-sop-overview article,
.operations-sop-group,
.operations-sop-side section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-panel);
}

.operations-sop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.section-eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.operations-sop-hero h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 24px;
  line-height: 1.25;
}

.operations-sop-hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.operations-sop-progress {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid #dce8f5;
  border-radius: 8px;
}

.operations-sop-progress span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.operations-sop-progress strong {
  color: var(--ink-strong);
  font-size: 24px;
  line-height: 1;
}

.operations-sop-progress-bar {
  height: 8px;
  overflow: hidden;
  background: #dce8f5;
  border-radius: 999px;
}

.operations-sop-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
  border-radius: inherit;
}

.operations-sop-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.operations-sop-overview article {
  min-height: 126px;
  padding: 16px;
}

.operations-sop-overview span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.operations-sop-overview strong {
  display: block;
  margin-top: 8px;
  color: var(--ink-strong);
  font-size: 17px;
}

.operations-sop-overview p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.operations-sop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}

.operations-sop-checklist,
.operations-sop-side {
  display: grid;
  gap: 12px;
}

.operations-sop-group {
  overflow: hidden;
}

.operations-sop-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #f6f9fc;
  border-bottom: 1px solid var(--line);
}

.operations-sop-group-title h3,
.operations-sop-side h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 15px;
}

.operations-sop-group-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.operations-sop-task {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.operations-sop-task:last-child {
  border-bottom: 0;
}

.operations-sop-task.is-high {
  border-left: 4px solid #f59e0b;
}

.operations-sop-task.is-watch {
  border-left: 4px solid var(--primary);
}

.operations-sop-task input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--primary);
}

.operations-sop-task strong,
.operations-sop-task small {
  display: block;
}

.operations-sop-task strong {
  color: var(--ink-strong);
  font-size: 14px;
  line-height: 1.45;
}

.operations-sop-task small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.operations-sop-side section {
  padding: 16px;
}

.operations-sop-side ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.module-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px;
}

.module-card.active {
  border-color: #b9d9f5;
  box-shadow: inset 3px 0 0 var(--primary);
}

.module-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--primary));
  border-radius: 4px;
  font-weight: 700;
}

.module-card strong {
  display: block;
}

.module-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.shipment-dashboard {
  display: grid;
  gap: 14px;
}

.shipment-card,
.shipment-list-section {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-panel);
}

.shipment-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.shipment-section-header h2,
.shipment-list-title h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 18px;
  line-height: 1.25;
}

.shipment-section-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.shipment-search,
.shipment-filter-bar input,
.shipment-filter-bar select {
  height: 36px;
  color: var(--ink-subtle);
  background: #ffffff;
  border: 1px solid #cfdae6;
  border-radius: 6px;
  outline: 0;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.shipment-search:focus,
.shipment-filter-bar input:focus,
.shipment-filter-bar select:focus,
.shipment-provider-select:focus,
.shipment-tracking-input:focus,
.arrival-filter-bar select:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgb(29 112 184 / 12%);
}

.shipment-search {
  width: 260px;
  padding: 0 14px;
}

.arrival-source-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: #175cd3;
  background: #eff8ff;
  border: 1px solid #b2ddff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.arrival-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.arrival-collapse-button {
  height: 32px;
}

.arrival-summary-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.arrival-metric-card {
  min-height: 76px;
  padding: 12px 14px;
  background: var(--surface-soft);
  border: 1px solid #e1e8f0;
  border-radius: 6px;
}

.arrival-metric-card span,
.arrival-metric-card small {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.arrival-metric-card strong {
  display: block;
  margin: 5px 0;
  color: var(--ink-strong);
  font-size: 23px;
  line-height: 1.1;
}

.arrival-filter-bar {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(240px, 1fr);
  gap: 10px;
  padding: 12px 20px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.arrival-filter-bar select {
  min-width: 150px;
  height: 36px;
  padding: 0 12px;
  color: var(--ink-subtle);
  background: #fff;
  border: 1px solid #cfdae6;
  border-radius: 6px;
  outline: 0;
}

.arrival-table-wrap,
.shipment-table-wrap {
  overflow-x: auto;
}

.arrival-table,
.shipment-table {
  min-width: 1120px;
  table-layout: fixed;
}

.arrival-table {
  min-width: 1232px;
}

.arrival-table th,
.arrival-table td {
  height: 42px;
  padding: 9px 12px;
  text-align: center;
  border-right: 1px solid #e4e9f0;
}

.arrival-table th:first-child,
.arrival-table td:first-child {
  width: 300px;
  text-align: left;
}

.arrival-table th:last-child,
.arrival-table td:last-child {
  width: 96px;
  font-weight: 700;
  background: #f8fafc;
}

.arrival-table th.is-current {
  color: #075985;
  background: #e8f4ff;
}

.arrival-table th.arrival-overdue-column,
.arrival-table td.arrival-overdue-column {
  width: 112px;
  color: #b42318;
  background: #fff7f6;
}

.arrival-group-row td,
.arrival-total-row td {
  background: #f8fafc;
  font-weight: 700;
}

.disclosure {
  margin-right: 10px;
  color: #475467;
}

.asin-code {
  display: block;
  margin-bottom: 3px;
  color: #a3adba;
  font-size: 12px;
  font-weight: 700;
}

.arrival-product-main {
  display: block;
  color: var(--ink-strong);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.arrival-product-meta {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.quantity-chip,
.product-chip {
  margin: 0;
  color: #2f66d8;
  background: #edf5ff;
  border: 1px solid #edf5ff;
  border-radius: 5px;
  font-weight: 700;
}

.quantity-chip {
  min-width: 44px;
  height: 24px;
  padding: 0 8px;
}

.arrival-detail-button {
  cursor: pointer;
}

.arrival-detail-button:hover {
  color: #ffffff;
  background: #0b5cad;
  border-color: #0b5cad;
}

.arrival-overdue-button {
  min-height: 30px;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #b42318;
  background: #fff1f0;
  border-color: #fecdca;
}

.arrival-overdue-button small {
  font-size: 10px;
  font-weight: 700;
}

.arrival-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.arrival-pagination-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.arrival-pagination-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.arrival-pagination-controls select {
  height: 32px;
  padding: 0 8px;
  color: #344054;
  background: #ffffff;
  border: 1px solid #d9e1ea;
  border-radius: 6px;
}

.arrival-pagination-controls strong {
  min-width: 52px;
  color: #101828;
  text-align: center;
}

.arrival-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 22;
  display: flex;
  justify-content: flex-end;
  background: rgb(15 23 42 / 24%);
}

.arrival-detail-drawer {
  width: min(920px, 100vw);
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  overflow: auto;
  background: #ffffff;
  box-shadow: -18px 0 42px rgb(15 23 42 / 16%);
}

.arrival-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 15px;
  border-bottom: 1px solid var(--line);
}

.arrival-detail-header h3 {
  margin: 0;
  color: #101828;
  font-size: 20px;
}

.arrival-detail-header p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.arrival-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 24px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
}

.arrival-detail-summary article {
  min-width: 0;
  padding: 11px 12px;
  background: #ffffff;
  border: 1px solid #e1e8f0;
  border-radius: 6px;
}

.arrival-detail-summary span,
.arrival-detail-table td span {
  display: block;
  color: #667085;
  font-size: 12px;
}

.arrival-detail-summary strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 4px;
  color: #101828;
  font-size: 15px;
}

.arrival-detail-table-wrap {
  overflow: auto;
  padding: 16px 24px 24px;
}

.arrival-detail-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 12px;
}

.arrival-detail-table.is-overdue {
  min-width: 1100px;
}

.arrival-detail-table th,
.arrival-detail-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e4e7ec;
  vertical-align: top;
}

.arrival-detail-table th {
  color: #667085;
  background: var(--surface-soft);
  font-weight: 800;
}

.arrival-detail-table td strong {
  display: block;
  color: #101828;
  font-size: 12px;
}

.arrival-detail-table td .arrival-overdue-days {
  color: #b42318;
}

.arrival-shipment-link {
  display: block;
  margin: 0;
  padding: 0;
  color: #0b5cad;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.arrival-shipment-link:hover {
  text-decoration: underline;
}

.empty-cell {
  color: #c4ccd8;
}

.shipment-list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px 10px;
}

.shipment-board-toolbar {
  justify-content: flex-end;
  padding: 12px 20px 8px;
}

.shipment-list-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.shipment-dashboard-message {
  margin: 0 20px 12px;
}

.shipment-table tr.active-row td {
  background: #f2f8ff;
}

.shipment-table tr[data-select-shipment-id] {
  cursor: pointer;
}

.shipment-table tr[data-select-shipment-id]:hover td {
  background: #f8fbff;
}

.shipment-product-table {
  min-width: 760px;
  table-layout: fixed;
  border-top: 1px solid var(--line);
}

.shipment-product-table th,
.shipment-product-table td {
  height: 32px;
  padding: 7px 10px;
  vertical-align: middle;
}

.shipment-product-table th:first-child,
.shipment-product-table td:first-child {
  width: 38%;
}

.shipment-product-table th:nth-child(2),
.shipment-product-table td:nth-child(2) {
  width: 22%;
}

.shipment-product-table th:nth-child(n+3),
.shipment-product-table td:nth-child(n+3) {
  width: 13.333%;
  text-align: right;
}

.shipment-product-msku {
  display: block;
  color: var(--ink-strong);
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.shipment-product-asin {
  display: block;
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.shipment-product-qty {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.shipment-product-qty span {
  display: inline-flex;
  justify-content: flex-end;
  min-width: 44px;
  padding: 2px 0;
  font-weight: 800;
}

.shipment-product-qty.is-abnormal {
  color: #b42318;
  background: #fff4f2;
}

.shipment-product-state,
.shipment-product-state-row {
  color: #667085;
  font-size: 13px;
}

.shipment-product-state {
  margin: 0 0 10px;
  padding: 9px 12px;
  background: #f8fbff;
  border: 1px solid #d7e7ff;
  border-radius: 6px;
}

.shipment-product-state-row {
  height: 68px;
  text-align: center;
  background: #f8fafc;
}

.shipment-tabs {
  display: flex;
  gap: 8px;
  padding: 0;
}

.shipment-tabs button {
  min-width: 84px;
  height: 36px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-subtle);
  font-weight: 700;
}

.shipment-tabs button.active {
  color: #fff;
  background: #111827;
  border-color: #111827;
}

.shipment-board-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 20px 12px;
}

.shipment-board-count {
  flex: 0 0 auto;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.shipment-detail-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: #175cd3;
  background: #eff8ff;
  border: 1px solid #b2ddff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.shipment-filter-panel {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.shipment-filter-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.shipment-filter-title strong {
  color: #101828;
  font-size: 14px;
}

.shipment-filter-title span {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 700;
}

.shipment-filter-bar {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(220px, 1.25fr) repeat(5, minmax(132px, 0.7fr));
  gap: 10px;
  padding: 0;
}

.shipment-filter-bar input,
.shipment-filter-bar select {
  width: 100%;
  margin: 0;
  padding: 0 12px;
}

.shipment-table {
  min-width: 1640px;
}

.shipment-table.shipment-table-readonly {
  min-width: 1524px;
}

.shipment-board-table-wrap {
  border-top: 1px solid var(--line);
}

.shipment-board-table-wrap .shipment-table {
  table-layout: fixed;
}

.shipment-board-table-wrap th:nth-child(1),
.shipment-board-table-wrap td:nth-child(1),
.shipment-board-table-wrap th:nth-child(2),
.shipment-board-table-wrap td:nth-child(2),
.shipment-board-table-wrap th:nth-child(12),
.shipment-board-table-wrap td:nth-child(12) {
  position: sticky;
}

.shipment-board-table-wrap th:nth-child(1),
.shipment-board-table-wrap th:nth-child(2),
.shipment-board-table-wrap th:nth-child(12) {
  z-index: 3;
  background: var(--surface-soft);
}

.shipment-board-table-wrap td:nth-child(1),
.shipment-board-table-wrap td:nth-child(2),
.shipment-board-table-wrap td:nth-child(12) {
  z-index: 2;
  background: #fff;
}

.shipment-board-table-wrap th:nth-child(1),
.shipment-board-table-wrap td:nth-child(1) {
  left: 0;
}

.shipment-board-table-wrap th:nth-child(2),
.shipment-board-table-wrap td:nth-child(2) {
  left: 112px;
  box-shadow: 8px 0 10px -10px rgba(16, 24, 40, 0.35);
}

.shipment-board-table-wrap th:nth-child(12),
.shipment-board-table-wrap td:nth-child(12) {
  right: 0;
  box-shadow: -8px 0 10px -10px rgba(16, 24, 40, 0.35);
}

.shipment-board-table-wrap tr.active-row td:nth-child(1),
.shipment-board-table-wrap tr.active-row td:nth-child(2),
.shipment-board-table-wrap tr.active-row td:nth-child(12) {
  background: #f2f8ff;
}

.shipment-board-table-wrap tr[data-select-shipment-id]:hover:not(.active-row) td:nth-child(1),
.shipment-board-table-wrap tr[data-select-shipment-id]:hover:not(.active-row) td:nth-child(2),
.shipment-board-table-wrap tr[data-select-shipment-id]:hover:not(.active-row) td:nth-child(12) {
  background: #f8fbff;
}

.shipment-table th {
  height: 42px;
  color: #5f6f83;
  background: var(--surface-soft);
  white-space: nowrap;
  font-size: 12px;
  letter-spacing: 0;
}

.shipment-table td {
  height: 70px;
  padding-top: 8px;
  padding-bottom: 8px;
  vertical-align: middle;
}

.shipment-table td:first-child,
.shipment-table th:first-child {
  width: 112px;
}

.shipment-board-table-wrap th:nth-child(2),
.shipment-board-table-wrap td:nth-child(2) {
  width: 128px;
}

.shipment-board-table-wrap th:nth-child(3),
.shipment-board-table-wrap td:nth-child(3) {
  width: 230px;
}

.shipment-board-table-wrap th:nth-child(4),
.shipment-board-table-wrap td:nth-child(4) {
  width: 76px;
}

.shipment-board-table-wrap th:nth-child(5),
.shipment-board-table-wrap td:nth-child(5),
.shipment-board-table-wrap th:nth-child(6),
.shipment-board-table-wrap td:nth-child(6) {
  width: 118px;
}

.shipment-board-table-wrap th:nth-child(7),
.shipment-board-table-wrap td:nth-child(7) {
  width: 138px;
}

.shipment-board-table-wrap th:nth-child(8),
.shipment-board-table-wrap td:nth-child(8) {
  width: 104px;
}

.shipment-board-table-wrap th:nth-child(9),
.shipment-board-table-wrap td:nth-child(9),
.shipment-board-table-wrap th:nth-child(10),
.shipment-board-table-wrap td:nth-child(10) {
  width: 142px;
}

.shipment-board-table-wrap th:nth-child(11),
.shipment-board-table-wrap td:nth-child(11) {
  width: 224px;
}

.shipment-board-table-wrap th:nth-child(12),
.shipment-board-table-wrap td:nth-child(12) {
  width: 124px;
}

.shipment-board-table-wrap td:nth-child(12) {
  padding-right: 5px;
  padding-left: 5px;
}

.shipment-shop-name,
.shipment-id-text {
  display: block;
  color: var(--ink-strong);
  font-weight: 800;
}

.shipment-id-text {
  white-space: nowrap;
}

.shipment-id-stack {
  display: grid;
  gap: 5px;
  min-width: 124px;
}

.shipment-id-stack span {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 600;
}

.shipment-time-stack {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #344054;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.shipment-time-stack > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 5px;
  min-width: 0;
}

.shipment-time-label {
  min-width: 0;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
}

.shipment-time-value {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.warehouse-code {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: var(--ink-subtle);
  background: var(--surface-muted);
  border-radius: 6px;
  font-weight: 800;
}

.arrival-window-text {
  display: inline-block;
  min-width: 124px;
  color: #344054;
  line-height: 1.45;
  white-space: pre-line;
}

.shipment-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 28px;
  padding: 0 12px;
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  font-weight: 700;
}

.shipment-status-cell {
  display: flex;
  align-items: center;
  min-height: 42px;
}

.shipment-provider-cell,
.shipment-tracking-cell,
.shipment-track-cell {
  display: grid;
  gap: 6px;
  align-content: start;
  min-width: 0;
}

.shipment-provider-select,
.shipment-tracking-input {
  width: 100%;
  max-width: 138px;
  height: 34px;
  margin: 0;
  padding: 0 10px;
  color: var(--ink-subtle);
  background: #fff;
  border: 1px solid #cfdae6;
  border-radius: 6px;
}

.shipment-tracking-input {
  max-width: 146px;
  font-weight: 700;
}

.shipment-logistics-detail {
  display: grid;
  gap: 4px;
  margin-top: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
  min-width: 0;
}

.shipment-logistics-detail strong {
  color: #344054;
}

.shipment-logistics-detail span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shipment-manual-notice {
  margin-top: 6px;
  color: #b42318;
  font-size: 12px;
  line-height: 1.35;
}

.shipment-sync-error {
  color: #b42318;
}

.shipment-quantity-summary {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(34px, 1fr));
  min-width: 138px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 7px;
  background: #ffffff;
}

.shipment-quantity-summary span {
  display: grid;
  gap: 2px;
  min-height: 40px;
  padding: 5px 7px;
  text-align: center;
  border-right: 1px solid #e4e7ec;
}

.shipment-quantity-summary small {
  color: #98a2b3;
  font-size: 11px;
  font-weight: 700;
}

.shipment-quantity-summary strong {
  color: #101828;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.shipment-quantity-summary span:last-child {
  border-right: 0;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  max-width: 110px;
  min-height: 48px;
  padding: 0 10px;
  white-space: normal;
  background: #f2f4f7;
  border-radius: 7px;
  line-height: 1.4;
}

.alert-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  color: #b42318;
  background: #fff1f0;
  border: 1px solid #ffccc7;
  border-radius: 6px;
  font-size: 12px;
}

.product-chip {
  min-width: 128px;
  height: 32px;
  border-color: #b7e4ff;
  background: #effaff;
  color: #0070b8;
}

.latest-text {
  max-width: 220px;
  overflow: hidden;
  color: #344054;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shipment-name-text {
  max-width: 220px;
  color: var(--ink-subtle);
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.muted-text {
  margin-top: 5px;
  color: #98a2b3;
  font-size: 12px;
}

.notify-button {
  height: 30px;
  margin: 0;
  padding: 0 10px;
  color: var(--primary);
  background: #fff;
  border: 1px solid #b9d9f5;
  border-radius: 6px;
  font-weight: 700;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.notify-button:hover {
  color: var(--primary-deep);
  background: #f5fbff;
  border-color: #8fc5f0;
}

.notify-button::before {
  content: "";
  display: none;
}

.shipment-row-actions {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 104px;
  max-width: 112px;
  padding: 6px;
  background: #f6f9fc;
  border: 1px solid #dce7f2;
  border-radius: 8px;
}

.shipment-row-actions .notify-button {
  width: 100%;
  height: 31px;
  white-space: nowrap;
}

.shipment-action-primary {
  color: #0b5cad;
  background: #eaf4ff;
  border-color: #9dccf3;
}

.shipment-action-primary:hover {
  color: #084a8c;
  background: #dceeff;
  border-color: #78b7eb;
}

.shipment-invoice-button,
.shipment-invoice-button:hover {
  color: #fff;
  background: #0b5cab;
  border-color: #0b5cab;
}

.shipment-invoice-button:hover {
  background: #084986;
  border-color: #084986;
}

.shipment-row-actions .notify-button:active {
  transform: translateY(1px);
}

.shipment-row-actions .notify-button:focus-visible,
.shipment-invoice-field select:focus-visible,
.shipment-invoice-footer button:focus-visible {
  outline: 3px solid rgb(47 128 237 / 24%);
  outline-offset: 2px;
}

.shipment-action-muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: 100%;
  padding: 0 8px;
  color: #667085;
  background: var(--surface-muted);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.shipment-provider-readonly,
.shipment-tracking-readonly {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.saihu-sync-panel {
  min-height: 560px;
}

.saihu-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.shipment-board-actions {
  align-items: center;
}

.shipment-action-group {
  display: flex;
  gap: 6px;
}

.shipment-action-group + .shipment-action-group {
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.shipment-exception-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 20px;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.shipment-exception-grid article,
.shipment-batch-result {
  min-width: 0;
  padding: 11px 12px;
  background: var(--surface-soft);
  border: 1px solid #e1e8f0;
  border-radius: 6px;
}

.shipment-exception-grid article.active {
  border-color: #8ec5ff;
  background: #eef7ff;
}

.shipment-exception-grid button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.shipment-exception-grid button:focus-visible {
  outline: 2px solid #7ab8ff;
  outline-offset: 3px;
}

.shipment-exception-grid span,
.shipment-exception-grid small {
  display: block;
  color: #667085;
  font-size: 12px;
}

.shipment-exception-grid strong {
  display: block;
  margin: 4px 0;
  color: var(--ink-strong);
  font-size: 22px;
}

.shipment-batch-result {
  margin: 0 20px 12px;
}

.shipment-batch-result-title,
.shipment-batch-result-summary,
.shipment-batch-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.shipment-batch-result-title strong {
  color: #101828;
}

.shipment-batch-result-title span,
.shipment-batch-result-row small {
  color: #667085;
  font-size: 12px;
}

.shipment-batch-result-summary {
  justify-content: flex-start;
  margin: 10px 0;
}

.shipment-batch-result-summary span {
  padding: 4px 8px;
  color: #0b5cad;
  background: #eef6ff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.shipment-batch-result-list {
  display: grid;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
}

.shipment-batch-result-row {
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  font-size: 12px;
}

.shipment-batch-result-row.failed {
  border-color: #fecaca;
  background: #fff7f7;
}

.shipment-batch-result-row.skipped {
  opacity: 0.72;
}

.shipment-id-button {
  padding: 0;
  color: #0b5cad;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.shipment-id-button:hover {
  text-decoration: underline;
}

.saihu-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.shipment-upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  background: rgb(15 23 42 / 24%);
}

.shipment-upload-drawer {
  width: min(560px, 100vw);
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  overflow: auto;
  background: #ffffff;
  box-shadow: -18px 0 42px rgb(15 23 42 / 16%);
}

.shipment-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 21;
  display: flex;
  justify-content: flex-end;
  background: rgb(15 23 42 / 24%);
}

.shipment-detail-drawer {
  width: min(880px, 100vw);
  height: 100%;
  overflow: auto;
  background: #ffffff;
  box-shadow: -18px 0 42px rgb(15 23 42 / 16%);
}

.shipment-invoice-overlay {
  position: fixed;
  inset: 0;
  z-index: 22;
  display: flex;
  justify-content: flex-end;
  background: rgb(15 23 42 / 28%);
}

.shipment-invoice-drawer {
  width: min(480px, 100vw);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #fff;
  box-shadow: -18px 0 42px rgb(15 23 42 / 18%);
}

.shipment-invoice-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  color: #fff;
  background: #12395f;
  border-bottom: 3px solid #2f80ed;
}

.shipment-invoice-header h3 {
  margin: 5px 0 6px;
  font-size: 22px;
}

.shipment-invoice-header p {
  margin: 0;
  color: #d6e5f5;
  font-size: 12px;
}

.shipment-invoice-header .ghost-button {
  color: #fff;
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 35%);
}

.shipment-invoice-kicker {
  color: #9fc7ef;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.shipment-invoice-body {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  overflow: auto;
}

.shipment-invoice-source {
  display: grid;
  gap: 4px;
  padding: 15px 16px;
  background: #f4f8fc;
  border: 1px solid #d9e6f2;
  border-radius: 8px;
}

.shipment-invoice-source span,
.shipment-invoice-field > span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.shipment-invoice-source strong {
  color: #12395f;
  font-size: 18px;
}

.shipment-invoice-source small {
  color: #667085;
}

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

.shipment-invoice-field select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: #101828;
  background: #fff;
  border: 1px solid #b9c7d5;
  border-radius: 7px;
}

.shipment-invoice-rules {
  display: grid;
  border-top: 1px solid #e4e7ec;
}

.shipment-invoice-rules div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e4e7ec;
  font-size: 13px;
}

.shipment-invoice-rules strong {
  color: #344054;
}

.shipment-invoice-rules span {
  color: #667085;
}

.shipment-invoice-error {
  padding: 11px 12px;
  color: #b42318;
  background: #fff3f2;
  border: 1px solid #fecdca;
  border-radius: 7px;
  font-size: 13px;
}

.shipment-invoice-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid #e4e7ec;
}

.shipment-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 15px;
  border-bottom: 1px solid var(--line);
}

.shipment-detail-header h3 {
  margin: 0;
  color: #101828;
  font-size: 20px;
}

.shipment-detail-header p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 12px;
}

.shipment-detail-section {
  padding: 16px 24px;
  border-bottom: 1px solid #eef2f6;
}

.shipment-detail-section h4 {
  margin: 0 0 12px;
  color: #101828;
  font-size: 15px;
}

.shipment-detail-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.shipment-detail-section-title h4 {
  margin-bottom: 4px;
}

.shipment-detail-section-title p {
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
}

.shipment-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  color: #344054;
  font-size: 13px;
}

.shipment-detail-grid span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.shipment-detail-shipping-grid span {
  display: grid;
  gap: 4px;
  min-height: 48px;
  padding: 9px 12px;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
}

.shipment-detail-shipping-grid strong {
  color: #667085;
  font-size: 12px;
  line-height: 1.2;
}

.shipment-detail-meta-line {
  margin-top: 10px;
  color: #667085;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.shipment-detail-empty-state {
  padding: 12px 14px;
  color: #667085;
  background: #f8fafc;
  border: 1px dashed #cfd8e3;
  border-radius: 6px;
  font-size: 13px;
}

.shipment-detail-table-wrap {
  overflow: auto;
}

.shipment-detail-table-wrap .shipment-product-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.shipment-detail-table-wrap .shipment-product-table th,
.shipment-detail-table-wrap .shipment-product-table td {
  height: 30px;
  padding: 5px 8px;
  white-space: normal;
  vertical-align: middle;
  font-size: 12px;
}

.shipment-detail-table-wrap .shipment-product-table th:first-child,
.shipment-detail-table-wrap .shipment-product-table td:first-child {
  width: 44%;
}

.shipment-detail-table-wrap .shipment-product-table th:nth-child(2),
.shipment-detail-table-wrap .shipment-product-table td:nth-child(2) {
  width: 22%;
}

.shipment-detail-table-wrap .shipment-product-table th:nth-child(n+3),
.shipment-detail-table-wrap .shipment-product-table td:nth-child(n+3) {
  width: 11.333%;
  text-align: right;
  white-space: nowrap;
}

.shipment-detail-overview-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.shipment-detail-overview-cards article {
  min-width: 0;
  padding: 9px 12px;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
}

.shipment-detail-overview-cards article span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.shipment-detail-overview-cards article strong {
  display: block;
  margin-top: 4px;
  color: #101828;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.shipment-detail-quantity-card {
  grid-column: span 2;
}

.shipment-detail-product-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}

.shipment-detail-product-summary span {
  min-width: 0;
  padding: 7px 9px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
}

.shipment-detail-product-summary strong {
  display: block;
  margin-top: 3px;
  color: #101828;
  font-size: 15px;
  line-height: 1.1;
}

.shipment-detail-table-wrap .shipment-product-msku,
.shipment-detail-table-wrap .shipment-product-asin {
  line-height: 1.25;
}

.shipment-detail-table-wrap .shipment-product-qty span {
  min-width: 36px;
  padding: 0;
}

.shipment-detail-compact-track {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shipment-detail-compact-track li {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f6;
}

.shipment-detail-compact-track li:last-child {
  border-bottom: 0;
}

.shipment-detail-compact-track time {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.shipment-detail-compact-track strong,
.shipment-detail-compact-track span {
  display: block;
  overflow-wrap: anywhere;
}

.shipment-detail-compact-track strong {
  color: #101828;
  font-size: 13px;
  line-height: 1.45;
}

.shipment-detail-compact-track span {
  margin-top: 2px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.shipment-upload-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 15px;
  border-bottom: 1px solid var(--line);
}

.shipment-upload-header h3 {
  margin: 0;
  color: #101828;
  font-size: 20px;
}

.shipment-upload-header p,
.shipment-upload-dropzone p,
.shipment-upload-preview-title span {
  margin: 6px 0 0;
  color: #667085;
  font-size: 12px;
}

.shipment-upload-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 24px 0;
}

.shipment-upload-tabs button {
  height: 34px;
  padding: 0 12px;
  color: #475467;
  background: #ffffff;
  border: 1px solid #d9e1ea;
  border-radius: 6px;
  font-weight: 700;
}

.shipment-upload-tabs button.active {
  color: #ffffff;
  background: #111827;
  border-color: #111827;
}

.shipment-upload-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 24px;
}

.shipment-upload-steps span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #667085;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.shipment-upload-steps span.active {
  color: #0b5cad;
  background: #eef6ff;
  border-color: #b9d9f5;
}

.shipment-upload-dropzone {
  margin: 0 24px 16px;
  padding: 20px;
  text-align: center;
  border: 1px dashed #98c7f0;
  border-radius: 8px;
  background: #f8fbff;
}

.shipment-upload-dropzone strong {
  display: block;
  color: #101828;
}

.shipment-upload-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px 16px;
}

.shipment-upload-summary div {
  min-height: 72px;
  padding: 11px 12px;
  background: var(--surface-soft);
  border: 1px solid #e1e8f0;
  border-radius: 6px;
}

.shipment-upload-summary strong {
  display: block;
  color: #101828;
  font-size: 22px;
}

.shipment-upload-summary span {
  color: #667085;
  font-size: 12px;
}

.shipment-upload-preview {
  margin: 0 24px 20px;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
}

.shipment-upload-preview-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e4e7ec;
}

.shipment-upload-preview table {
  width: 100%;
}

.shipment-upload-preview th,
.shipment-upload-preview td {
  padding: 10px 12px;
  text-align: left;
}

.upload-status {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  color: #0b5cad;
  background: #eef6ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.shipment-upload-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid #e4e7ec;
  background: #ffffff;
}

.saihu-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.saihu-status-card {
  min-height: 98px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e4e7ec;
  border-radius: 4px;
}

.saihu-status-card span,
.saihu-status-card small {
  color: var(--muted);
  font-size: 12px;
}

.saihu-status-card strong {
  display: block;
  margin: 9px 0 6px;
  font-size: 22px;
}

.saihu-status-card strong.ok {
  color: #027a48;
}

.saihu-status-card strong.warn {
  color: #b54708;
}

.saihu-message,
.saihu-error {
  margin: 14px 16px 0;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
}

.saihu-message {
  color: #026aa2;
  background: #eef8ff;
  border: 1px solid #b9e6fe;
}

.saihu-error {
  color: #b42318;
  background: #fff1f0;
  border: 1px solid #ffccc7;
}

.saihu-source-tabs {
  display: flex;
  gap: 8px;
  padding: 14px 16px 0;
  overflow-x: auto;
}

.saihu-source-tab {
  min-width: 150px;
  padding: 10px 12px;
  text-align: left;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}

.saihu-source-tab.active {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.saihu-source-tab strong,
.saihu-source-tab span {
  display: block;
}

.saihu-source-tab span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.saihu-table-wrap {
  margin-top: 14px;
}

.saihu-table {
  min-width: 960px;
}

.saihu-shop-table {
  min-width: 980px;
}

.saihu-product-table {
  min-width: 6200px;
}

.saihu-inventory-table {
  min-width: 6200px;
}

.saihu-warehouse-table {
  min-width: 2600px;
}

.saihu-shipment-table {
  min-width: 4200px;
}

.saihu-shipment-item-table {
  min-width: 3000px;
}

.saihu-inline-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.saihu-inline-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.saihu-inline-form input {
  min-width: 260px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text);
}

.saihu-inline-form select {
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--text);
}

.logistics-inline-form input {
  min-width: min(520px, 100%);
}

.linchuang-track-table {
  min-width: 1320px;
}

.fedex-track-table {
  min-width: 980px;
}

.hangyueda-track-table {
  min-width: 920px;
}

.saihu-section-divider {
  height: 1px;
  margin: 24px 0;
  background: var(--border);
}

.logistics-subpanel-header {
  margin-bottom: 12px;
}

.saihu-table td,
.saihu-table th {
  height: 44px;
}

.saihu-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.shipment-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.shipment-pagination-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shipment-pagination-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shipment-pagination-controls select {
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 8px;
  color: var(--text);
  background: #fff;
}

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

.shipment-page-indicator {
  min-width: 56px;
  text-align: center;
  color: var(--text);
  font-weight: 700;
}

.shipment-board-table-wrap,
.arrival-table-wrap,
.shipment-table-wrap {
  background: #ffffff;
}

.shipment-table th,
.shipment-table td,
.arrival-table th,
.arrival-table td {
  border-bottom: 1px solid #e6edf5;
}

.shipment-table tr.active-row td {
  background: #edf7ff;
}

.shipment-table tr[data-select-shipment-id]:hover td {
  background: #f6fbff;
}

.shipment-detail-drawer,
.shipment-upload-drawer,
.arrival-detail-drawer {
  border-left: 1px solid #d9e3ee;
}

.inventory-shipment-overlay {
  box-sizing: border-box;
  display: block;
  padding: 0;
}

.inventory-shipment-drawer {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--inventory-shipment-drawer-top, 82px);
  right: var(--inventory-shipment-drawer-right, 64px);
  left: var(--inventory-shipment-drawer-left, auto);
  width: min(680px, calc(100vw - 88px));
  height: min(670px, calc(100vh - 106px));
  max-height: calc(100vh - 106px);
  overflow: hidden;
}

.inventory-shipment-drawer .shipment-detail-header,
.inventory-shipment-drawer .shipment-detail-section:first-of-type {
  flex: 0 0 auto;
}

.inventory-shipment-drawer .shipment-detail-section:last-of-type {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.inventory-shipment-drawer .shipment-detail-table-wrap {
  height: 100%;
  overflow: auto;
}

.inventory-sales-trend-drawer {
  width: min(540px, calc(100vw - 64px));
  height: min(390px, calc(100vh - 88px));
  border-radius: 10px;
  overflow: hidden;
}

.inventory-sales-trend-summary {
  display: grid;
  gap: 6px;
  padding: 12px 24px 10px;
}

.inventory-sales-trend-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inventory-sales-trend-tabs {
  display: flex;
  gap: 6px;
}

.inventory-sales-trend-tabs button {
  min-width: 50px;
  height: 30px;
  color: #344054;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 800;
}

.inventory-sales-trend-tabs button.is-active {
  color: #ffffff;
  background: #175cd3;
  border-color: #175cd3;
}

.inventory-sales-trend-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.inventory-sales-trend-metrics span {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e6edf5;
}

.inventory-sales-trend-metrics small {
  color: #667085;
  font-size: 12px;
}

.inventory-sales-trend-metrics strong {
  color: #101828;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.inventory-sales-trend-body {
  display: flex;
  flex: 0 0 auto;
  min-height: 0;
  padding: 10px 18px;
}

.inventory-sales-trend-chart,
.inventory-sales-trend-empty {
  width: 100%;
}

.inventory-sales-trend-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.inventory-sales-trend-grid-line {
  stroke: #d0ddeb;
  stroke-width: 1;
}

.inventory-sales-trend-axis-label {
  color: #98a2b3;
  fill: #98a2b3;
  font-size: 12px;
}

.inventory-sales-trend-above-average { fill: #fef3f2; }
.inventory-sales-trend-below-average { fill: #f0fdf4; }

.inventory-sales-trend-average-line {
  stroke: #98a2b3;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.inventory-sales-trend-average-tag {
  fill: #f8fafc;
  stroke: #d0d5dd;
  stroke-width: 1;
}

.inventory-sales-trend-average-tag-text {
  fill: #475467;
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.inventory-sales-trend-axis-date,
.inventory-sales-trend-axis-weekday {
  fill: #98a2b3;
  font-size: 10px;
}

.inventory-sales-trend-axis-weekday { fill: #b2bccb; }
.inventory-sales-trend-day-hit-area { fill: transparent; cursor: default; }

.inventory-sales-trend-line {
  fill: none;
  stroke: #d92d20;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.inventory-sales-trend-point {
  fill: #d92d20;
  stroke: #d92d20;
  stroke-width: 0.5;
}

.inventory-sales-trend-value {
  fill: #101828;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.inventory-sales-trend-day.is-active .inventory-sales-trend-point {
  stroke: #7a271a;
  stroke-width: 2;
  transform: scale(1.2);
  transform-box: fill-box;
  transform-origin: center;
}

.inventory-sales-trend-day.is-active .inventory-sales-trend-value {
  fill: #b42318;
}

.inventory-sales-trend-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: #667085;
  font-size: 13px;
  text-align: center;
}

.inventory-sales-trend-empty.is-error {
  color: #b42318;
}

.inventory-warehouse-conflict-drawer {
  width: min(520px, calc(100vw - 88px));
  height: auto;
  max-height: min(460px, calc(100vh - 106px));
}

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

.inventory-warehouse-conflict-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  background: #f8fafc;
  border: 1px solid #e6edf5;
  border-radius: 6px;
}

.inventory-warehouse-conflict-grid small {
  color: #667085;
  font-size: 11px;
}

.inventory-warehouse-conflict-grid strong {
  color: #344054;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.inventory-warehouse-conflict-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.inventory-warehouse-conflict-table th,
.inventory-warehouse-conflict-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #eef2f6;
  text-align: left;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.inventory-warehouse-conflict-table th {
  color: #667085;
  background: #f8fafc;
  font-weight: 800;
}

.shipment-detail-grid span,
.shipment-logistics-detail,
.latest-text,
.muted-text {
  letter-spacing: 0;
}

.finance-dashboard {
  display: grid;
  gap: 14px;
}

.finance-header-card {
  overflow: hidden;
}

.finance-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 20px 16px;
}

.finance-view-tabs {
  padding: 14px 20px 0;
}

.finance-shipment-link {
  padding: 0;
  color: #0b5cad;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.finance-shipment-link:hover {
  text-decoration: underline;
}

.finance-filter-bar {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) repeat(5, minmax(150px, 1fr)) auto;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.finance-filter-bar input,
.finance-filter-bar select,
.finance-bulk-bar select,
.finance-compensation-input {
  height: 34px;
  margin: 0;
  padding: 0 10px;
  color: var(--text);
  background: #fff;
  border: 1px solid #d9e1ea;
  border-radius: 7px;
}

.finance-month-filter {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.finance-month-presets {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  background: #f4f7fb;
  border: 1px solid #d9e1ea;
  border-radius: 7px;
  white-space: nowrap;
}

.finance-month-presets button {
  height: 28px;
  border: 0;
  padding: 0 8px;
  color: var(--muted);
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.finance-month-presets button.is-active {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.finance-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.finance-active-filters em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: #175cd3;
  background: #eff8ff;
  border: 1px solid #b2ddff;
  border-radius: 999px;
  font-style: normal;
  font-weight: 700;
}

.finance-active-filters strong {
  color: var(--text);
}

.finance-bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.finance-table {
  min-width: 2060px;
  table-layout: fixed;
}

.finance-table th {
  height: 46px;
  color: #667085;
  background: #fff;
}

.finance-table td {
  height: 54px;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.finance-table th:first-child,
.finance-table td:first-child {
  width: 54px;
  text-align: center;
}

.finance-table th:nth-child(2),
.finance-table td:nth-child(2) {
  width: 96px;
}

.finance-table th:nth-child(3),
.finance-table td:nth-child(3) {
  width: 140px;
}

.finance-table th:nth-child(4),
.finance-table td:nth-child(4) {
  width: 220px;
}

.finance-table th:nth-child(5),
.finance-table td:nth-child(5),
.finance-table th:nth-child(6),
.finance-table td:nth-child(6),
.finance-table th:nth-child(7),
.finance-table td:nth-child(7),
.finance-table th:nth-child(8),
.finance-table td:nth-child(8) {
  width: 120px;
}

.finance-table th:nth-child(9),
.finance-table td:nth-child(9),
.finance-table th:nth-child(10),
.finance-table td:nth-child(10),
.finance-table th:nth-child(11),
.finance-table td:nth-child(11),
.finance-table th:nth-child(12),
.finance-table td:nth-child(12) {
  width: 92px;
  text-align: right;
}

.finance-table th:nth-child(13),
.finance-table td:nth-child(13) {
  width: 132px;
}

.finance-table th:nth-child(14),
.finance-table td:nth-child(14),
.finance-table th:nth-child(15),
.finance-table td:nth-child(15) {
  width: 104px;
  text-align: right;
}

.finance-table th:nth-child(16),
.finance-table td:nth-child(16) {
  width: 180px;
}

.finance-table th:nth-child(17),
.finance-table td:nth-child(17) {
  width: 112px;
}

.finance-table th:nth-child(18),
.finance-table td:nth-child(18) {
  width: 84px;
  text-align: center;
}

.finance-number-cell {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.finance-edit-button {
  min-width: 64px;
}

.finance-editor-drawer {
  width: min(680px, 100vw);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.finance-editor-content {
  flex: 1;
  overflow: auto;
  padding: 0 24px 24px;
}

.finance-editor-section {
  padding: 20px 0;
  border-bottom: 1px solid #eef2f6;
}

.finance-editor-section h4 {
  margin: 0 0 12px;
  color: #101828;
  font-size: 15px;
}

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

.finance-editor-summary article {
  display: grid;
  gap: 5px;
  min-height: 64px;
  padding: 11px 12px;
  border: 1px solid #dfe7f2;
  background: #f8fafc;
}

.finance-editor-summary span,
.finance-editor-field span {
  color: #667085;
  font-size: 12px;
}

.finance-editor-summary strong {
  color: #101828;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.finance-editor-summary-wide,
.finance-editor-field-wide {
  grid-column: 1 / -1;
}

.finance-editor-field {
  display: grid;
  gap: 6px;
}

.finance-editor-field input,
.finance-editor-field select {
  min-width: 0;
  height: 36px;
}

.finance-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid #eef2f6;
  background: #ffffff;
}

.finance-payment-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  color: #175cd3;
  background: #eff8ff;
  border-radius: 999px;
  font-weight: 700;
}

.track-toggle-button {
  margin-top: 6px;
  border: 0;
  padding: 0;
  color: var(--primary);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.shipment-track-row td {
  padding: 0;
  background: #f3f8ff;
}

.shipment-track-cell {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.shipment-track-cell .status-pill {
  max-width: 100%;
  justify-self: start;
}

.shipment-track-cell .latest-text {
  display: block;
  max-width: 100%;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shipment-track-popover {
  position: fixed;
  top: var(--track-popover-top, 92px);
  left: var(--track-popover-left, 28px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 14px 16px 16px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d5e1ed;
  border-radius: 8px;
  box-shadow: var(--shadow-popover);
}

.shipment-track-title {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  color: var(--ink-strong);
  border-bottom: 1px solid var(--line);
}

.shipment-track-scroll {
  min-height: 0;
  height: min(568px, calc(100vh - 104px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.shipment-track-title span {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.shipment-track-close-button {
  margin-left: auto;
  min-width: 42px;
  height: 26px;
  padding: 0 8px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid #d7e2ef;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.shipment-track-close-button:hover {
  color: #101828;
}

.shipment-track-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shipment-track-timeline li {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 12px;
  position: relative;
  padding: 0 0 12px 18px;
  border-left: 2px solid #cfe4ff;
}

.shipment-track-timeline li > div {
  min-width: 0;
  max-width: 100%;
}

.shipment-track-timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border: 2px solid #ffffff;
  border-radius: 999px;
}

.shipment-track-timeline time {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.shipment-track-timeline strong,
.shipment-track-timeline span {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.shipment-track-timeline span,
.empty-track {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.shipment-track-timeline strong {
  color: #101828;
  font-size: 13px;
  line-height: 1.45;
}

.saihu-value-cell {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.saihu-table-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
}

.saihu-table-title h3 {
  margin: 0;
  font-size: 15px;
}

.saihu-table-title span {
  color: var(--muted);
  font-size: 12px;
}

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

.settings-hero,
.settings-section {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
}

.settings-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.settings-hero h2,
.settings-section-header h3 {
  margin: 0;
  color: #101828;
}

.settings-hero p,
.settings-section-header p {
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
  font-weight: 600;
}

.settings-stage-badge,
.settings-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: #175cd3;
  background: #eff8ff;
  border: 1px solid #b2ddff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.settings-status.ok {
  color: #027a48;
  background: #ecfdf3;
  border-color: #abefc6;
}

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

.settings-overview-card {
  min-width: 0;
  min-height: 92px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
}

.settings-overview-card span,
.settings-overview-card small {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.settings-overview-card strong {
  display: block;
  margin: 8px 0 6px;
  color: #101828;
  font-size: 24px;
  line-height: 1.15;
}

.settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 8px;
}

.settings-page-tab,
.settings-role-list button {
  height: 34px;
  margin: 0;
  padding: 0 14px;
  color: #344054;
  background: #fff;
  border: 1px solid #d9e1ea;
  border-radius: 8px;
  font-weight: 700;
}

.settings-page-tab.active,
.settings-role-list button.active {
  color: #fff;
  background: #111827;
  border-color: #111827;
}

.settings-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #edf1f5;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.settings-actions button:disabled,
.settings-section-header button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.settings-create-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #edf1f5;
  background: #f8fafc;
}

.settings-table-wrap {
  overflow-x: auto;
}

.settings-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.settings-table th,
.settings-table td {
  height: 48px;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #edf1f5;
}

.settings-table th {
  color: #667085;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
}

.settings-link-button {
  margin: 0;
  padding: 0;
  color: #0b5cad;
  background: transparent;
  border: 0;
  font-weight: 800;
}

.settings-inline-select {
  width: 100%;
  min-width: 112px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d7e2ef;
  border-radius: 6px;
  color: #172033;
  background: #fff;
  font-weight: 700;
}

.settings-inline-input {
  width: 100%;
  min-width: 120px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d7e2ef;
  border-radius: 6px;
  color: #172033;
  background: #fff;
  font-weight: 700;
}

.settings-inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
}

.settings-store-scope {
  display: grid;
  grid-template-columns: minmax(112px, 1fr);
  gap: 6px;
  min-width: 250px;
}

.settings-store-scope-picker {
  display: grid;
  gap: 8px;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #d7e2ef;
  border-radius: 6px;
}

.settings-store-scope-tools {
  display: flex;
  gap: 6px;
}

.settings-store-scope-tools .settings-inline-input {
  min-width: 0;
  flex: 1;
}

.settings-store-scope-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-height: 150px;
  overflow-y: auto;
}

.settings-store-scope-option {
  display: flex;
  align-items: center;
  min-height: 30px;
  gap: 7px;
  padding: 0 8px;
  color: #344054;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 5px;
  font-size: 12px;
}

.settings-store-scope-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-store-scope-empty {
  color: #667085;
  font-size: 12px;
}

.settings-password-input {
  min-width: 136px;
}

.settings-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 20px 20px;
}

.settings-role-card {
  min-width: 0;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
}

.settings-role-card.active {
  background: #f2f8ff;
  border-color: #b2ddff;
}

.settings-role-card strong {
  display: block;
  color: #101828;
  font-size: 15px;
}

.settings-role-card p {
  min-height: 42px;
  margin: 8px 0 12px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.settings-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.settings-tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  color: #344054;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.settings-permission-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 520px;
}

.settings-permission-framework {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #edf1f5;
}

.settings-permission-framework article {
  min-height: 86px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
}

.settings-permission-framework strong {
  display: block;
  margin-bottom: 8px;
  color: #101828;
  font-size: 14px;
}

.settings-permission-framework span {
  display: block;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.settings-role-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  background: #fbfcfe;
  border-right: 1px solid #edf1f5;
}

.settings-permission-matrix {
  display: grid;
  gap: 10px;
  padding: 16px 20px 20px;
}

.settings-operation-matrix {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px 20px 20px;
}

.settings-operation-note {
  padding: 10px 12px;
  color: #475467;
  background: #f8fafc;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  font-size: 13px;
}

.settings-permission-group {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
}

.settings-operation-group {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
}

.settings-permission-group strong,
.settings-permission-group span,
.settings-operation-group strong,
.settings-operation-group span {
  display: block;
}

.settings-permission-group > div > span,
.settings-operation-group > div > span {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
}

.settings-operation-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}

.settings-operation-check {
  display: flex;
  align-items: center;
  min-height: 32px;
  gap: 8px;
  padding: 0 10px;
  color: #667085;
  background: #f8fafc;
  border: 1px solid #e4e9f0;
  border-radius: 8px;
  font-size: 12px;
}

.settings-operation-check.enabled {
  color: #175cd3;
  background: #eff8ff;
  border-color: #b2ddff;
}

.settings-data-scope-form {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px 20px 20px;
}

.settings-data-scope-form label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

.settings-data-scope-form small {
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.settings-scope-textarea {
  min-height: 148px;
  padding: 10px;
  color: #172033;
  resize: vertical;
  background: #fff;
  border: 1px solid #d7e2ef;
  border-radius: 6px;
  font: inherit;
  line-height: 1.45;
}

.settings-log-filter {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #edf1f5;
}

.settings-log-filter .settings-inline-input {
  max-width: 360px;
}

.settings-log-filter .settings-inline-select {
  max-width: 200px;
}

.settings-log-count {
  color: #175cd3;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.settings-child-menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.settings-child-menu-item {
  display: flex;
  align-items: center;
  min-height: 32px;
  gap: 8px;
  padding: 0 10px;
  color: #344054;
  background: #fff;
  border: 1px solid #e4e9f0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.settings-child-menu-item input {
  margin: 0;
}

.empty-state {
  height: 120px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1100px) {
  .metric-grid,
  .source-grid,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .dashboard-template-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-role-chip {
    width: 100%;
  }

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

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

  .inventory-filter-group-primary,
  .inventory-filter-group-more,
  .inventory-filter-group-action {
    grid-column: 1;
  }

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

  .shipment-board-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .shipment-board-count {
    padding-left: 2px;
  }

  .shipment-detail-product-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shipment-detail-overview-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shipment-detail-quantity-card {
    grid-column: span 2;
  }

  .saihu-status-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

  .settings-role-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid #edf1f5;
  }

  .settings-log-filter {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: 100%;
  }

  .app-shell.sidebar-collapsed .sidebar {
    width: 100%;
  }

  .main,
  .app-shell.sidebar-collapsed .main {
    margin-left: 0;
  }

  .metric-grid,
  .source-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }

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

  .module-framework-section-grid {
    grid-template-columns: 1fr;
  }

  .inventory-monitor-hero,
  .inventory-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .inventory-snapshot-status {
    max-width: 100%;
  }

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

  .inventory-filter-group,
  .inventory-filter-group-locate,
  .inventory-filter-group-primary,
  .inventory-filter-group-more,
  .inventory-filter-group-action {
    grid-template-columns: 1fr;
  }

  .inventory-filter-group-action button {
    width: 100%;
  }

  .operations-sop-hero,
  .operations-sop-overview {
    grid-template-columns: 1fr;
  }

  .shipment-section-header,
  .shipment-tabs {
    align-items: flex-start;
    flex-direction: column;
  }

  .shipment-board-actions,
  .shipment-action-group {
    width: 100%;
  }

  .shipment-action-group {
    flex-wrap: wrap;
  }

  .shipment-action-group + .shipment-action-group {
    padding-top: 10px;
    padding-left: 0;
    border-top: 1px solid #e4e7ec;
    border-left: 0;
  }

  .shipment-filter-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .shipment-search {
    width: 100%;
  }

  .shipment-filter-bar {
    grid-template-columns: 1fr;
  }

  .shipment-detail-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .shipment-detail-overview-cards,
  .shipment-detail-shipping-grid {
    grid-template-columns: 1fr;
  }

  .shipment-detail-quantity-card {
    grid-column: auto;
  }

  .shipment-detail-compact-track li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .settings-hero,
  .settings-section-header,
  .settings-permission-group,
  .settings-operation-group {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .settings-actions {
    justify-content: flex-start;
  }

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

  .settings-create-row {
    grid-template-columns: 1fr;
  }

  .settings-role-grid,
  .settings-role-list {
    grid-template-columns: 1fr;
  }
}

.listing-copy-page {
  display: grid;
  gap: 18px;
}

.listing-copy-header,
.listing-copy-actions,
.listing-copy-result-panel .panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.listing-copy-header h2,
.listing-copy-header p,
.listing-copy-result-panel h3,
.listing-copy-result-panel h4 {
  margin-top: 0;
}

.listing-copy-config,
.listing-copy-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.listing-copy-kicker {
  display: block;
  margin-bottom: 6px;
  color: #175cd3;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.listing-copy-config.ok,
.listing-copy-status.completed {
  color: #18794e;
  background: #e9f7ef;
}

.listing-copy-config.warn,
.listing-copy-status.failed {
  color: #b54708;
  background: #fff3e8;
}

.listing-copy-status.running,
.listing-copy-status.queued,
.listing-copy-status.preparing {
  color: #175cd3;
  background: #eff6ff;
}

.listing-copy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .85fr);
  gap: 18px;
  align-items: start;
}

.listing-copy-workbench {
  display: grid;
  grid-template-columns: minmax(270px, .86fr) minmax(460px, 1.7fr) minmax(260px, .8fr);
  align-items: start;
  gap: 16px;
}

.listing-copy-create-column,
.listing-copy-history-column {
  position: sticky;
  top: 16px;
}

.listing-copy-results-column {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.listing-copy-empty-result {
  padding: 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: #fafcff;
  color: #475467;
}

.listing-copy-form-sections {
  display: grid;
  gap: 22px;
}

.listing-copy-input-section {
  display: grid;
  gap: 14px;
}

.listing-copy-create-details,
.listing-copy-output-card {
  overflow: hidden;
  border: 1px solid #dbe5f0;
  border-radius: 6px;
  background: #fff;
}

.listing-copy-create-details summary,
.listing-copy-output-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
  color: #1d2939;
  font-size: 14px;
  font-weight: 750;
}

.listing-copy-create-details summary::-webkit-details-marker,
.listing-copy-output-card summary::-webkit-details-marker {
  display: none;
}

.listing-copy-create-details[open] summary,
.listing-copy-output-card[open] summary {
  background: #eff6ff;
}

.listing-copy-create-details-body {
  padding: 0 16px 16px;
}

.listing-copy-section-heading,
.listing-copy-profile-heading,
.listing-copy-result-heading,
.listing-copy-bullet-sets section > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.listing-copy-section-heading {
  justify-content: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1f5;
}

.listing-copy-section-heading span,
.listing-copy-profile-heading span,
.listing-copy-step-index {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 4px;
  background: #eef4ff;
  color: #175cd3;
  font-size: 11px;
  font-weight: 800;
}

.listing-copy-section-heading h4,
.listing-copy-output-grid h4 {
  margin: 0;
  color: #1d2939;
  font-size: 14px;
}

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

.listing-copy-form-grid label,
.listing-copy-profile-list label {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.listing-copy-form-grid input,
.listing-copy-form-grid select,
.listing-copy-form-grid textarea,
.listing-copy-profile-list input,
.listing-copy-profile-list textarea {
  width: 100%;
  box-sizing: border-box;
}

.listing-copy-form-full,
.listing-copy-output-wide {
  grid-column: 1 / -1;
}

.listing-copy-form-grid small {
  color: #667085;
  font-weight: 400;
}

.listing-copy-actions {
  margin-top: 16px;
  align-items: center;
}

.listing-copy-job-list,
.listing-copy-profile-list {
  display: grid;
  gap: 8px;
}

.listing-copy-job-row {
  display: grid;
  width: 100%;
  gap: 5px;
  padding: 10px;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  background: #fff;
  color: #1d2939;
  text-align: left;
}

.listing-copy-job-row:hover {
  border-color: #b2ccff;
  background: #fafcff;
}

.listing-copy-job-asins {
  overflow: hidden;
  color: #1d2939;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-copy-job-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.listing-copy-job-row.active {
  border-color: #84adff;
  background: #f4f8ff;
}

.listing-copy-history-column .listing-copy-job-row {
  border-color: #dbe5f0;
}

.listing-copy-job-row small,
.listing-copy-input-evidence small {
  color: #667085;
}

.listing-copy-progress {
  display: grid;
  gap: 8px;
  margin: 2px 0 8px;
  padding: 12px;
  border: 1px solid #e4e7ec;
  background: #fafcff;
}

.listing-copy-progress > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #344054;
  font-size: 13px;
}

.listing-copy-progress > div span,
.listing-copy-result-heading small,
.listing-copy-bullet-sets small,
.listing-copy-profiles-panel summary small {
  color: #667085;
  font-size: 12px;
  font-weight: 500;
}

.listing-copy-progress > span {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e7ec;
}

.listing-copy-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2e90fa;
}

.listing-copy-output-grid {
  margin-top: 12px;
}

.listing-copy-result-heading {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e4e7ec;
  color: #1d2939;
  font-size: 15px;
  font-weight: 800;
}

.listing-copy-output-grid article {
  min-width: 0;
  padding: 14px;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #fff;
}

.listing-copy-output-empty {
  margin-top: 14px;
  padding: 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: #fafcff;
  color: #344054;
}

.listing-copy-output-empty strong,
.listing-copy-output-empty p {
  display: block;
  margin: 0;
}

.listing-copy-output-empty p {
  margin-top: 5px;
  color: #667085;
  font-size: 13px;
}

.listing-copy-final-panel {
  margin-top: 12px;
}

.listing-copy-final-grid {
  gap: 10px;
}

.listing-copy-final-grid article {
  padding: 14px 16px;
}

.listing-copy-output-card summary h4 {
  margin: 0;
}

.listing-copy-output-copy {
  flex: 0 0 auto;
}

.listing-copy-output-card-body {
  padding: 0 16px 16px;
}

.listing-copy-admin-panel {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #f8fafc;
}

.listing-copy-admin-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.listing-copy-admin-heading h4,
.listing-copy-admin-heading p {
  margin: 0;
}

.listing-copy-admin-heading h4 {
  margin-top: 2px;
  color: #1d2939;
  font-size: 15px;
}

.listing-copy-admin-heading p {
  margin-top: 4px;
  color: #667085;
  font-size: 13px;
}

.listing-copy-input-evidence,
.listing-copy-raw-result,
.listing-copy-step-card {
  border: 1px solid #dfe5ec;
  border-radius: 6px;
  background: #fff;
}

.listing-copy-input-evidence summary,
.listing-copy-raw-result summary,
.listing-copy-step-card summary {
  cursor: pointer;
  list-style: none;
}

.listing-copy-input-evidence summary::-webkit-details-marker,
.listing-copy-raw-result summary::-webkit-details-marker,
.listing-copy-step-card summary::-webkit-details-marker {
  display: none;
}

.listing-copy-input-evidence summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #1d2939;
  font-size: 14px;
  font-weight: 750;
}

.listing-copy-input-evidence summary small {
  font-size: 12px;
  font-weight: 500;
}

.listing-copy-input-evidence-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.listing-copy-input-evidence-body > section {
  display: grid;
  gap: 7px;
}

.listing-copy-input-evidence-body > section > span,
.listing-copy-step-content > span {
  color: #475467;
  font-size: 12px;
  font-weight: 750;
}

.listing-copy-input-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.listing-copy-input-meta div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #edf1f5;
  border-radius: 4px;
  background: #fafcff;
}

.listing-copy-input-meta dt {
  color: #667085;
  font-size: 12px;
}

.listing-copy-input-meta dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: #1d2939;
  font-size: 13px;
}

.listing-copy-input-evidence pre,
.listing-copy-step-content pre,
.listing-copy-raw-result pre {
  overflow: auto;
  max-height: 360px;
  margin: 0;
  padding: 12px;
  border-radius: 4px;
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.listing-copy-input-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.listing-copy-input-images a {
  display: block;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 1px solid #dfe5ec;
  border-radius: 4px;
  background: #fff;
}

.listing-copy-input-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-copy-step-cards {
  display: grid;
  gap: 8px;
}

.listing-copy-step-card summary {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  color: #1d2939;
}

.listing-copy-step-card[open] {
  border-color: #98a2b3;
}

.listing-copy-step-card.running[open] {
  border-color: #84adff;
}

.listing-copy-step-card.failed[open] {
  border-color: #fecdca;
}

.listing-copy-step-content {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px 52px;
  border-top: 1px solid #edf1f5;
}

.listing-copy-step-error {
  margin: 10px 0 0;
  color: #b42318;
  font-size: 13px;
  line-height: 1.5;
}

.listing-copy-raw-result summary {
  padding: 12px 14px;
  color: #344054;
  font-size: 13px;
  font-weight: 750;
}

.listing-copy-raw-result pre {
  margin: 0 14px 14px;
}

.listing-copy-output-grid ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: #344054;
  line-height: 1.55;
}

.listing-copy-output-grid pre {
  overflow: auto;
  max-height: 460px;
  margin: 0;
  padding: 12px;
  border-radius: 4px;
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
  line-height: 1.5;
}

.listing-copy-output-titles ol {
  counter-reset: titles;
  list-style: none;
  padding-left: 0;
}

.listing-copy-output-titles li {
  position: relative;
  padding-left: 28px;
}

.listing-copy-output-titles li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: #175cd3;
  content: counter(titles, decimal-leading-zero);
  counter-increment: titles;
  font-weight: 800;
}

.listing-copy-search-terms {
  margin: 0;
  padding: 12px;
  border-left: 3px solid #2e90fa;
  background: #f8fbff;
  color: #344054;
  line-height: 1.6;
  word-break: break-word;
}

.listing-copy-title-options {
  display: grid;
  gap: 12px;
}

.listing-copy-title-option {
  overflow: hidden;
  border: 1px solid #dbe5f0;
  border-radius: 6px;
  background: #fff;
}

.listing-copy-title-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #e9eef5;
  background: #f7faff;
  color: #1d2939;
}

.listing-copy-title-option-header > span {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.listing-copy-limit,
.listing-copy-output-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.listing-copy-limit.is-valid {
  background: #ecfdf3;
  color: #027a48;
}

.listing-copy-limit.is-over {
  background: #fff3e8;
  color: #b54708;
}

.listing-copy-title-option dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.listing-copy-title-option dl > div {
  min-width: 0;
  padding: 12px;
}

.listing-copy-title-option dl > div + div {
  border-left: 1px solid #e9eef5;
}

.listing-copy-title-option dt,
.listing-copy-product-details span {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.listing-copy-title-option dd {
  margin: 0;
  color: #1d2939;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.listing-copy-title-analysis,
.listing-copy-product-summary {
  margin: 0;
  padding: 10px 12px;
  border-top: 1px solid #e9eef5;
  background: #fcfcfd;
  color: #475467;
  font-size: 12px;
  line-height: 1.55;
}

.listing-copy-bullet-sets {
  display: grid;
  gap: 18px;
}

.listing-copy-bullet-sets section + section {
  padding-top: 18px;
  border-top: 1px solid #edf1f5;
}

.listing-copy-bullet-sets section > div {
  margin-bottom: 10px;
  justify-content: flex-start;
}

.listing-copy-bullet-sets section > div small {
  margin-left: auto;
}

.listing-copy-output-badge {
  width: 24px;
  justify-content: center;
  padding: 0;
  background: #eff6ff;
  color: #175cd3;
}

.listing-copy-bullet-sets ol {
  gap: 10px;
}

.listing-copy-bullet-sets li {
  padding: 10px 12px;
  border: 1px solid #edf1f5;
  border-radius: 4px;
  background: #fcfcfd;
}

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

.listing-copy-product-details > section,
.listing-copy-product-summary {
  min-width: 0;
  padding: 12px;
  border: 1px solid #edf1f5;
  border-radius: 4px;
  background: #fcfcfd;
}

.listing-copy-product-details > .listing-copy-product-summary {
  grid-column: 1 / -1;
  border-color: #dbe5f0;
  background: #f8fbff;
}

.listing-copy-product-details p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.listing-copy-raw-result {
  margin-top: 14px;
}

.listing-copy-raw-result summary {
  cursor: pointer;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
}

.listing-copy-raw-result pre {
  overflow: auto;
  max-height: 460px;
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid #edf1f5;
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
  line-height: 1.5;
}

.listing-copy-profiles-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  color: #344054;
  font-weight: 700;
}

.listing-copy-profile-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}

.listing-copy-profile-list article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #edf1f5;
  border-radius: 6px;
  background: #fff;
}

.listing-copy-profile-heading {
  justify-content: flex-start;
  color: #1d2939;
  font-size: 14px;
}

@media (max-width: 1280px) {
  .listing-copy-layout,
  .listing-copy-workbench,
  .listing-copy-profile-list {
    grid-template-columns: 1fr;
  }

  .listing-copy-create-column,
  .listing-copy-history-column {
    position: static;
  }
}

@media (max-width: 760px) {
  .listing-copy-header,
  .listing-copy-result-panel .panel-header {
    flex-direction: column;
  }

  .listing-copy-form-grid,
  .listing-copy-output-grid,
  .listing-copy-input-meta,
  .listing-copy-title-option dl,
  .listing-copy-product-details {
    grid-template-columns: 1fr;
  }

  .listing-copy-title-option dl > div + div {
    border-top: 1px solid #e9eef5;
    border-left: 0;
  }

  .listing-copy-title-option-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .listing-copy-title-option-header > span {
    justify-content: flex-start;
  }

  .listing-copy-form-full,
  .listing-copy-output-wide {
    grid-column: auto;
  }

  .listing-copy-admin-heading,
  .listing-copy-input-evidence summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .listing-copy-step-card summary {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .listing-copy-step-card summary .listing-copy-status {
    grid-column: 2;
  }

  .listing-copy-step-content {
    padding-left: 14px;
  }

  .listing-copy-output-card summary {
    flex-wrap: wrap;
  }

  .listing-copy-output-copy {
    margin-left: auto;
  }
}

.amazon-fit-check-page {
  display: grid;
  gap: 18px;
}

.amazon-fit-check-header,
.amazon-fit-check-progress,
.amazon-fit-check-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.amazon-fit-check-header h2 {
  margin: 4px 0 6px;
}

.amazon-fit-check-header p,
.amazon-fit-check-progress span,
.amazon-fit-check-pagination {
  color: #667085;
}

.amazon-fit-check-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.amazon-fit-check-summary-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
}

.amazon-fit-check-summary-card strong {
  color: #101828;
  font-size: 26px;
}

.amazon-fit-check-summary-card.passed {
  border-color: #abefc6;
}

.amazon-fit-check-summary-card.exception {
  border-color: #fecdca;
}

.amazon-fit-check-summary-card.scrape_failed {
  border-color: #fedf89;
}

.amazon-fit-check-progress,
.amazon-fit-check-filters,
.amazon-fit-check-pagination {
  padding: 14px 16px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
}

.amazon-fit-check-progress > div {
  display: grid;
  gap: 3px;
}

.amazon-fit-check-filters {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(280px, 1fr);
  gap: 14px;
}

.amazon-fit-check-filters label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}

.amazon-fit-check-filters input,
.amazon-fit-check-filters select {
  width: 100%;
}

.amazon-fit-check-table-wrap {
  overflow-x: auto;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background: #fff;
}

.amazon-fit-check-table {
  width: 100%;
  min-width: 1460px;
  border-collapse: collapse;
}

.amazon-fit-check-table th,
.amazon-fit-check-table td {
  padding: 12px;
  border-bottom: 1px solid #eaecf0;
  text-align: left;
  vertical-align: middle;
}

.amazon-fit-check-table th {
  color: #475467;
  background: #f9fafb;
  font-size: 12px;
  white-space: nowrap;
}

.amazon-fit-check-breadcrumb {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.amazon-fit-check-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.amazon-fit-check-status.passed {
  color: #067647;
  background: #ecfdf3;
}

.amazon-fit-check-status.exception {
  color: #b42318;
  background: #fef3f2;
}

.amazon-fit-check-status.scrape_failed {
  color: #b54708;
  background: #fffaeb;
}

.amazon-fit-check-status.queued {
  color: #344054;
  background: #f2f4f7;
}

.amazon-fit-check-error {
  display: block;
  max-width: 240px;
  margin-top: 5px;
  color: #b54708;
}

.amazon-fit-check-pagination > div {
  display: flex;
  gap: 8px;
}

@media (max-width: 760px) {
  .amazon-fit-check-header,
  .amazon-fit-check-progress,
  .amazon-fit-check-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .amazon-fit-check-summary,
  .amazon-fit-check-filters {
    grid-template-columns: 1fr;
  }
}
