html.qn-pc-theme {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --surface-soft: #f7f8fa;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #d8dde6;
  --primary: #1677ff;
  --primary-strong: #0f62d6;
  --primary-soft: #eaf3ff;
  --success: #00a870;
  --warning: #ff9f18;
  --danger: #f53f3f;
  --shadow: 0 8px 20px rgba(15, 23, 42, .06);
  --font-rounded: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Segoe UI", Arial, sans-serif;
}

html.qn-pc-theme,
html.qn-pc-theme body {
  background: #eef1f5;
  color: #1f2937;
  font-family: var(--font-rounded);
  letter-spacing: 0;
}

html.qn-pc-theme body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0) 220px),
    #eef1f5;
}

html.qn-pc-theme button,
html.qn-pc-theme input,
html.qn-pc-theme select,
html.qn-pc-theme textarea {
  font-family: var(--font-rounded);
}

html.qn-pc-theme button {
  min-height: 32px;
  height: 32px;
  padding: 0 13px;
  border-radius: 4px;
  border-color: #cfd6e3;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

html.qn-pc-theme button:hover {
  border-color: #8bbcff;
  color: #0f62d6;
  background: #f8fbff;
  box-shadow: none;
}

html.qn-pc-theme .primary,
html.qn-pc-theme button.primary {
  border-color: #1677ff;
  background: #1677ff;
  color: #fff;
  font-weight: 700;
}

html.qn-pc-theme .primary:hover,
html.qn-pc-theme button.primary:hover {
  border-color: #0f62d6;
  background: #0f62d6;
  color: #fff;
}

html.qn-pc-theme .download-list-btn {
  border-color: #ff7a00;
  background: #ff7a00;
  color: #fff;
  font-weight: 800;
}

html.qn-pc-theme .download-list-btn:hover {
  border-color: #e65f00;
  background: #e65f00;
  color: #fff;
}

html.qn-pc-theme .notice-btn {
  border-color: #f53f3f;
  background: #fff;
  color: #f53f3f;
}

html.qn-pc-theme input,
html.qn-pc-theme select,
html.qn-pc-theme textarea,
html.qn-pc-theme .custom-select-trigger {
  min-height: 32px;
  border-radius: 4px;
  border-color: #cfd6e3;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  box-shadow: none;
}

html.qn-pc-theme input:focus,
html.qn-pc-theme select:focus,
html.qn-pc-theme textarea:focus,
html.qn-pc-theme .custom-select-shell.open .custom-select-trigger {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, .12);
}

html.qn-pc-theme .login-shell,
html.qn-pc-theme .boot-screen {
  background:
    radial-gradient(circle at 12% 18%, rgba(22,119,255,.08), transparent 28%),
    linear-gradient(135deg, #f6f8fb 0%, #eef2f7 100%);
}

html.qn-pc-theme .login-form,
html.qn-pc-theme .boot-card {
  width: 430px;
  border: 1px solid #d9e0ea;
  border-radius: 6px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 46px rgba(15,23,42,.10);
}

html.qn-pc-theme .login-form h1 {
  font-size: 30px;
  font-weight: 800;
  color: #111827;
}

html.qn-pc-theme .login-form .app-version {
  color: #748094;
  font-size: 13px;
}

html.qn-pc-theme .login-form label {
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

html.qn-pc-theme .login-form button[type="submit"] {
  height: 40px;
  border-radius: 4px;
  font-size: 15px;
}

html.qn-pc-theme .app-shell {
  grid-template-columns: 208px minmax(0, 1fr);
  min-height: 100vh;
  background: #eef1f5;
}

html.qn-pc-theme .sidebar {
  gap: 12px;
  padding: 0;
  background: #ffffff;
  border-right: 1px solid #d9e0ea;
  box-shadow: 2px 0 8px rgba(15,23,42,.03);
  backdrop-filter: none;
}

html.qn-pc-theme .brand {
  min-height: 64px;
  padding: 12px 16px;
  border-bottom: 1px solid #edf0f5;
  background: linear-gradient(180deg, #ffffff, #fbfcfe);
}

html.qn-pc-theme .brand-mark {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(22,119,255,.18);
}

html.qn-pc-theme .brand strong {
  display: grid;
  gap: 2px;
  align-items: start;
  font-size: 15px;
  color: #111827;
}

html.qn-pc-theme .brand .app-version {
  margin: 0;
  color: #8a94a6;
  font-size: 11px;
  font-weight: 800;
}

html.qn-pc-theme nav {
  gap: 2px;
  padding: 8px 8px 0;
}

html.qn-pc-theme nav button {
  position: relative;
  min-height: 38px;
  height: 38px;
  padding: 0 14px 0 38px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
}

html.qn-pc-theme nav button::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: #b8c0cc;
}

html.qn-pc-theme nav button:hover {
  background: #f3f7ff;
  color: #0f62d6;
}

html.qn-pc-theme nav button:hover::before,
html.qn-pc-theme nav button.active::before {
  background: #1677ff;
}

html.qn-pc-theme nav button.active {
  background: #eaf3ff;
  color: #0f62d6;
  font-weight: 800;
}

html.qn-pc-theme nav button.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #1677ff;
}

html.qn-pc-theme nav button.nav-sub-action {
  background: #fff7e8;
  color: #c45a00;
}

html.qn-pc-theme #passwordBtn,
html.qn-pc-theme #systemInitBtn,
html.qn-pc-theme #logoutBtn {
  width: calc(100% - 24px);
  margin: 0 12px;
  border-color: #d9e0ea;
  background: #fff;
  color: #4b5563;
}

html.qn-pc-theme .current-account,
html.qn-pc-theme .online-status-btn {
  width: calc(100% - 24px);
  max-width: calc(100% - 24px);
  margin-left: 12px;
  margin-right: 12px;
  border-radius: 4px;
  box-sizing: border-box;
}

html.qn-pc-theme .current-account {
  padding: 10px 12px;
  border-color: #d9e0ea;
  background: #f8fafc;
  color: #374151;
  overflow: hidden;
}

html.qn-pc-theme .content {
  padding: 0;
  min-width: 0;
  background: #eef1f5;
}

html.qn-pc-theme .topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  min-height: 64px;
  margin: 0;
  padding: 12px 18px;
  border-bottom: 1px solid #d9e0ea;
  background: rgba(255,255,255,.96);
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
  backdrop-filter: blur(12px);
}

html.qn-pc-theme .topbar h2 {
  margin: 0 0 3px;
  font-size: 22px;
  font-weight: 800;
  color: #111827;
}

html.qn-pc-theme .topbar p {
  color: #778195;
  font-size: 13px;
}

html.qn-pc-theme .toolbar {
  gap: 8px;
}

html.qn-pc-theme .toolbar button {
  height: 32px;
  min-height: 32px;
}

html.qn-pc-theme .view:not(.hidden) {
  padding: 16px 18px 28px;
  animation: qnViewIn .18s ease-out both;
}

@keyframes qnViewIn {
  from { opacity: .72; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

html.qn-pc-theme .panel,
html.qn-pc-theme .metric,
html.qn-pc-theme .dashboard-panel,
html.qn-pc-theme .job-card,
html.qn-pc-theme .inventory-grid,
html.qn-pc-theme .filter-bar,
html.qn-pc-theme .inventory-filter,
html.qn-pc-theme .outbound-filter-bar,
html.qn-pc-theme .completed-toolbar,
html.qn-pc-theme .purchase-board,
html.qn-pc-theme .outbound-card,
html.qn-pc-theme .batch-group,
html.qn-pc-theme .flow-row {
  border: 1px solid #d9e0ea;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

html.qn-pc-theme .panel,
html.qn-pc-theme .dashboard-panel {
  padding: 14px;
}

html.qn-pc-theme .section-head,
html.qn-pc-theme .dashboard-panel-head {
  padding-bottom: 10px;
  border-bottom: 1px solid #edf0f5;
}

html.qn-pc-theme .section-head h3,
html.qn-pc-theme .dashboard-panel h3 {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
}

html.qn-pc-theme .metric {
  min-height: 78px;
  padding: 12px 14px;
  border-left: 3px solid #1677ff;
}

html.qn-pc-theme .metric::before {
  display: none;
}

html.qn-pc-theme .metric span {
  color: #6b7280;
  font-weight: 700;
}

html.qn-pc-theme .metric strong {
  margin-top: 6px;
  color: #111827;
  font-size: 24px;
}

html.qn-pc-theme .metric-grid,
html.qn-pc-theme .dashboard-top-grid,
html.qn-pc-theme .dashboard-main-grid,
html.qn-pc-theme .dashboard-bottom-grid,
html.qn-pc-theme .inventory-summary,
html.qn-pc-theme .two-col {
  gap: 12px;
}

html.qn-pc-theme table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #d9e0ea;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

html.qn-pc-theme th,
html.qn-pc-theme td {
  border-bottom: 1px solid #e5eaf1;
  color: #334155;
  font-size: 13px;
}

html.qn-pc-theme th {
  height: 38px;
  background: #f7f8fa;
  color: #344054;
  font-weight: 800;
}

html.qn-pc-theme tr:hover td {
  background: #f8fbff;
}

html.qn-pc-theme .filter-bar,
html.qn-pc-theme .inventory-filter,
html.qn-pc-theme .outbound-filter-bar,
html.qn-pc-theme .completed-toolbar {
  gap: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

html.qn-pc-theme .filter-bar label,
html.qn-pc-theme .inventory-filter label,
html.qn-pc-theme .outbound-filter-bar label,
html.qn-pc-theme .completed-toolbar label {
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

html.qn-pc-theme .inventory-batch-actions {
  gap: 8px;
}

html.qn-pc-theme .inventory-batch-btn {
  min-width: 108px;
  height: 34px;
  border-radius: 4px;
  font-weight: 800;
}

html.qn-pc-theme .inventory-month-tabs {
  align-items: center;
  padding: 2px 0;
}

html.qn-pc-theme .inventory-month-tabs button {
  min-width: auto;
  height: 30px;
  min-height: 30px;
  border-radius: 4px;
}

html.qn-pc-theme .inventory-month-tabs button.active,
html.qn-pc-theme .date-pill.active {
  border-color: #1677ff;
  background: #1677ff;
  color: #fff;
}

html.qn-pc-theme .inventory-price-pending-inline {
  border-color: #ff9f18;
  background: #fff8eb;
  color: #b95b00;
}

html.qn-pc-theme .flow-list {
  gap: 10px;
}

html.qn-pc-theme .batch-group {
  overflow: hidden;
  border-width: 1px;
  border-left-width: 3px;
  border-left-color: var(--batch-rail, #1677ff);
}

html.qn-pc-theme .batch-head {
  min-height: 48px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #edf0f5;
}

html.qn-pc-theme .batch-lines {
  padding: 9px 12px;
  background: #fbfcfe;
}

html.qn-pc-theme .batch-line {
  border-radius: 12px;
  background: #fff;
  border: 1px solid #edf0f5;
  color: #a13b00;
}

html.qn-pc-theme .batch-status-summary {
  gap: 8px;
}

html.qn-pc-theme .batch-status-chip {
  height: 22px;
  min-width: 52px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

html.qn-pc-theme .flow-row {
  padding: 10px 12px;
  border-radius: 4px;
}

html.qn-pc-theme .flow-thumb,
html.qn-pc-theme .inventory-thumb,
html.qn-pc-theme .purchase-thumb,
html.qn-pc-theme .recycle-thumb,
html.qn-pc-theme .notice-image {
  border-radius: 4px;
  border-color: #e5eaf1;
  background: #fff;
}

html.qn-pc-theme .flow-title,
html.qn-pc-theme .inventory-name strong,
html.qn-pc-theme .purchase-name {
  color: #111827;
  font-weight: 800;
}

html.qn-pc-theme .flow-meta,
html.qn-pc-theme .muted,
html.qn-pc-theme small {
  color: #6b7280;
}

html.qn-pc-theme .status-badge,
html.qn-pc-theme .pill,
html.qn-pc-theme .batch-progress-pill,
html.qn-pc-theme .batch-download-count {
  border-radius: 999px;
  font-weight: 800;
}

html.qn-pc-theme .status-select {
  border-radius: 4px;
}

html.qn-pc-theme .inventory-grid {
  overflow: auto;
}

html.qn-pc-theme .inventory-grid table {
  min-width: 1240px;
  border: 0;
  border-radius: 0;
}

html.qn-pc-theme .inventory-grid th {
  position: sticky;
  top: 0;
  z-index: 2;
}

html.qn-pc-theme .inventory-grid td {
  min-height: 58px;
  padding-top: 10px;
  padding-bottom: 10px;
}

html.qn-pc-theme .inventory-actions-grid {
  gap: 6px;
}

html.qn-pc-theme .inventory-actions-grid button {
  height: 28px;
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
}

html.qn-pc-theme .purchase-board {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

html.qn-pc-theme .purchase-row,
html.qn-pc-theme .purchase-card {
  border: 1px solid #d9e0ea;
  border-radius: 4px;
  background: #fff;
}

html.qn-pc-theme .purchase-status-pill {
  border-radius: 999px;
}

html.qn-pc-theme .outbound-summary-grid article,
html.qn-pc-theme .inventory-summary article,
html.qn-pc-theme .dashboard-kpi-strip article {
  border: 1px solid #d9e0ea;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

html.qn-pc-theme .outbound-batch-card,
html.qn-pc-theme .completed-batch-group,
html.qn-pc-theme .outbound-draft-card {
  border: 1px solid #d9e0ea;
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
}

html.qn-pc-theme dialog::backdrop {
  background: rgba(17,24,39,.28);
  backdrop-filter: blur(2px);
}

html.qn-pc-theme .modal-box {
  border: 1px solid #d9e0ea;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(15,23,42,.18);
}

html.qn-pc-theme .modal-head,
html.qn-pc-theme .modal-foot {
  background: #fff;
  border-color: #edf0f5;
}

html.qn-pc-theme .custom-select-menu,
html.qn-pc-theme .custom-select-menu-floating,
html.qn-pc-theme .dashboard-shop-menu,
html.qn-pc-theme .dashboard-year-menu,
html.qn-pc-theme .saved-login-dropdown,
html.qn-pc-theme .online-users-panel {
  border-radius: 4px;
  border-color: #d9e0ea;
  box-shadow: 0 12px 30px rgba(15,23,42,.12);
}

html.qn-pc-theme .custom-select-option:hover,
html.qn-pc-theme .custom-select-option.selected {
  background: #eaf3ff;
  color: #0f62d6;
}

html.qn-pc-theme .danger-btn,
html.qn-pc-theme button.danger-btn {
  border-color: #ffd4d4;
  background: #fff;
  color: #f53f3f;
}

html.qn-pc-theme .danger-btn:hover,
html.qn-pc-theme button.danger-btn:hover {
  border-color: #f53f3f;
  background: #fff5f5;
  color: #d92d20;
}

html.qn-pc-theme .notify-badge {
  background: #f53f3f;
}

html.qn-pc-theme .empty-state,
html.qn-pc-theme .placeholder {
  color: #8a94a6;
  background: #f7f8fa;
}

@media (max-width: 900px) {
  html.qn-pc-theme .app-shell {
    grid-template-columns: 1fr;
  }
  html.qn-pc-theme .sidebar {
    position: static;
    height: auto;
  }
  html.qn-pc-theme nav {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  }
}

/* B-end platform preview pass: inspired by mainstream PC seller/admin consoles. */
html.qn-pc-theme {
  --qn-blue: #2f7cf6;
  --qn-blue-strong: #1768e8;
  --qn-blue-soft: #eef5ff;
  --qn-orange: #ff7a1a;
  --qn-green: #10b981;
  --qn-red: #f04438;
  --qn-ink: #162033;
  --qn-muted: #667085;
  --qn-border: #e4e9f2;
  --qn-card: rgba(255,255,255,.96);
  --qn-shadow: 0 10px 28px rgba(19, 42, 84, .07);
}

html.qn-pc-theme,
html.qn-pc-theme body {
  background: #f3f6fb;
  color: var(--qn-ink);
}

html.qn-pc-theme body::before {
  background:
    radial-gradient(circle at 16% 8%, rgba(47,124,246,.13), transparent 25%),
    radial-gradient(circle at 92% 10%, rgba(120,160,255,.13), transparent 24%),
    linear-gradient(180deg, #f7faff 0%, #f2f5fa 260px, #eef2f7 100%);
}

html.qn-pc-theme .login-form,
html.qn-pc-theme .boot-card {
  border: 1px solid rgba(198, 209, 226, .86);
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 26px 70px rgba(24, 38, 66, .13);
}

html.qn-pc-theme .login-form h1 {
  letter-spacing: 0;
}

html.qn-pc-theme .login-form input,
html.qn-pc-theme .login-form .login-account-wrap,
html.qn-pc-theme .login-form button[type="submit"] {
  border-radius: 8px;
}

html.qn-pc-theme .login-form button[type="submit"],
html.qn-pc-theme .primary,
html.qn-pc-theme button.primary {
  background: linear-gradient(180deg, #3b85ff 0%, #226ff4 100%);
  border-color: #226ff4;
  box-shadow: 0 6px 16px rgba(34, 111, 244, .20);
}

html.qn-pc-theme .app-shell {
  grid-template-columns: 196px minmax(0, 1fr);
}

html.qn-pc-theme .sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,251,255,.98));
  border-right: 1px solid var(--qn-border);
  box-shadow: 8px 0 26px rgba(28, 45, 80, .04);
}

html.qn-pc-theme .brand {
  min-height: 70px;
  border-bottom: 1px solid #edf1f7;
  background: rgba(255,255,255,.72);
}

html.qn-pc-theme .brand-mark {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(33, 111, 244, .16);
}

html.qn-pc-theme .brand strong {
  font-size: 15px;
  line-height: 1.2;
}

html.qn-pc-theme nav {
  padding: 10px 8px 2px;
}

html.qn-pc-theme nav button {
  height: 40px;
  min-height: 40px;
  margin: 1px 0;
  padding-left: 14px;
  border-radius: 8px;
  justify-content: flex-start;
}

html.qn-pc-theme nav button::before {
  display: none;
}

html.qn-pc-theme nav button span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

html.qn-pc-theme nav button span::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 42%, #aab4c4 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 42%, #aab4c4 42% 58%, transparent 58%),
    #eef2f7;
  box-shadow: inset 0 0 0 1px #c9d2df;
}

html.qn-pc-theme nav button.active span::before,
html.qn-pc-theme nav button:hover span::before {
  background:
    linear-gradient(90deg, transparent 42%, #fff 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 42%, #fff 42% 58%, transparent 58%),
    var(--qn-blue);
  box-shadow: none;
}

html.qn-pc-theme nav button:hover {
  background: #f1f6ff;
}

html.qn-pc-theme nav button.active {
  background: linear-gradient(90deg, #e7f1ff 0%, #f3f8ff 100%);
  color: #145fd9;
}

html.qn-pc-theme nav button.active::after {
  top: 8px;
  bottom: 8px;
  background: var(--qn-blue);
}

html.qn-pc-theme .current-account,
html.qn-pc-theme .online-status-btn,
html.qn-pc-theme #passwordBtn,
html.qn-pc-theme #systemInitBtn,
html.qn-pc-theme #logoutBtn {
  border-radius: 8px;
}

html.qn-pc-theme .content {
  background: transparent;
}

html.qn-pc-theme .topbar {
  min-height: 70px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(218, 226, 238, .9);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
}

html.qn-pc-theme .topbar h2 {
  font-size: 24px;
}

html.qn-pc-theme .topbar p {
  color: #667085;
}

html.qn-pc-theme .view:not(.hidden) {
  padding: 18px 20px 32px;
}

html.qn-pc-theme .panel,
html.qn-pc-theme .dashboard-panel,
html.qn-pc-theme .filter-bar,
html.qn-pc-theme .inventory-filter,
html.qn-pc-theme .outbound-filter-bar,
html.qn-pc-theme .completed-toolbar,
html.qn-pc-theme .purchase-filter-panel,
html.qn-pc-theme .purchase-board,
html.qn-pc-theme .inventory-grid,
html.qn-pc-theme .outbound-card {
  border: 1px solid var(--qn-border);
  border-radius: 12px;
  background: var(--qn-card);
  box-shadow: var(--qn-shadow);
}

html.qn-pc-theme .filter-bar,
html.qn-pc-theme .inventory-filter,
html.qn-pc-theme .outbound-filter-bar,
html.qn-pc-theme .completed-toolbar,
html.qn-pc-theme .purchase-filter-panel {
  padding: 14px;
}

html.qn-pc-theme input,
html.qn-pc-theme select,
html.qn-pc-theme textarea,
html.qn-pc-theme .custom-select-trigger {
  border-color: #ccd6e4;
  border-radius: 8px;
  background: #fff;
}

html.qn-pc-theme input:focus,
html.qn-pc-theme select:focus,
html.qn-pc-theme textarea:focus,
html.qn-pc-theme .custom-select-shell.open .custom-select-trigger {
  border-color: var(--qn-blue);
  box-shadow: 0 0 0 3px rgba(47,124,246,.12);
}

html.qn-pc-theme button {
  border-radius: 8px;
  border-color: #cfd8e6;
  color: #344054;
}

html.qn-pc-theme .download-list-btn,
html.qn-pc-theme .inventory-batch-btn,
html.qn-pc-theme #newStockBtn {
  border-color: var(--qn-orange);
  background: linear-gradient(180deg, #ff8d28, #ff7317);
  color: #fff;
  box-shadow: 0 6px 14px rgba(255,122,26,.18);
}

html.qn-pc-theme .metric,
html.qn-pc-theme .inventory-summary article,
html.qn-pc-theme .outbound-summary-grid article,
html.qn-pc-theme .dashboard-kpi-strip article {
  border: 1px solid #dce5f2;
  border-left: 4px solid var(--qn-blue);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: none;
}

html.qn-pc-theme .metric strong,
html.qn-pc-theme .inventory-summary strong,
html.qn-pc-theme .outbound-summary-grid strong,
html.qn-pc-theme .dashboard-kpi-strip strong {
  color: #182033;
}

html.qn-pc-theme table,
html.qn-pc-theme .purchase-table {
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
}

html.qn-pc-theme th,
html.qn-pc-theme .purchase-table th {
  height: 42px;
  background: #f5f7fb;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
}

html.qn-pc-theme td,
html.qn-pc-theme .purchase-table td {
  border-bottom: 1px solid #e8edf5;
}

html.qn-pc-theme tr:hover td,
html.qn-pc-theme .purchase-table tbody tr:hover td {
  background: #f7fbff;
}

html.qn-pc-theme .batch-group,
html.qn-pc-theme .completed-batch-group,
html.qn-pc-theme .outbound-batch-card {
  border: 1px solid #dbe4f0;
  border-left: 4px solid #2ecb72;
  border-radius: 12px;
  background: rgba(255,255,255,.97);
  box-shadow: var(--qn-shadow);
}

html.qn-pc-theme .batch-head,
html.qn-pc-theme .completed-batch-head {
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f6;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

html.qn-pc-theme .batch-lines,
html.qn-pc-theme .batch-line {
  background: #fffaf6;
  border-color: #ffe1c5;
}

html.qn-pc-theme .batch-status-summary {
  gap: 14px;
  align-items: center;
}

html.qn-pc-theme .batch-status-chip {
  min-width: auto;
  height: 22px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  box-shadow: none;
}

html.qn-pc-theme .batch-status-chip.status-waiting {
  border-color: #b7e5cc;
  background: #effaf4;
  color: #13794b !important;
}

html.qn-pc-theme .batch-status-chip.status-purchase {
  border-color: #f6dfa4;
  background: #fff7df;
  color: #9a6500 !important;
}

html.qn-pc-theme .batch-status-chip.status-schedule,
html.qn-pc-theme .batch-status-chip.status-production,
html.qn-pc-theme .batch-status-chip.status-outsourced {
  border-color: #ffd2d2;
  background: #fff1f1;
  color: #cf3030 !important;
}

html.qn-pc-theme .batch-status-chip.status-completed {
  border-color: #d7dfe9;
  background: #f3f6fa;
  color: #526070 !important;
}

html.qn-pc-theme .batch-status-number,
html.qn-pc-theme .batch-status-chip .batch-status-number {
  margin-left: 5px;
  color: currentColor !important;
  font-size: 13px;
  font-weight: 900;
}

html.qn-pc-theme .flow-row,
html.qn-pc-theme .inventory-grid tr,
html.qn-pc-theme .outbound-draft-card {
  border-radius: 10px;
}

html.qn-pc-theme .flow-thumb,
html.qn-pc-theme .inventory-thumb,
html.qn-pc-theme .purchase-image-thumb,
html.qn-pc-theme .notice-image {
  border-radius: 10px;
  border-color: #dde5f0;
  background: #fff;
}

html.qn-pc-theme .status-badge,
html.qn-pc-theme .pill,
html.qn-pc-theme .batch-progress-pill,
html.qn-pc-theme .batch-download-count,
html.qn-pc-theme .purchase-status-pill,
html.qn-pc-theme .purchase-type-pill {
  border-radius: 999px;
}

html.qn-pc-theme .outbound-metric.outbound-money-metric strong {
  color: #dc2626 !important;
}

html.qn-pc-theme .outbound-metric.outbound-money-metric.historical-settlement-metric strong {
  color: #16a34a !important;
}

html.qn-pc-theme .batch-collapsed-summary {
  border-color: #d9e3f2 !important;
  background: #f8fbff !important;
}

html.qn-pc-theme .batch-collapsed-summary span {
  border: 1px solid #e4ebf5 !important;
  background: #ffffff !important;
  color: #40516a !important;
}

html.qn-pc-theme .batch-lines,
html.qn-pc-theme .batch-line {
  border-color: #d9e3f2 !important;
  background: #f8fbff !important;
}

html.qn-pc-theme .batch-line,
html.qn-pc-theme .batch-form-line {
  background: #ffffff !important;
  border-color: #e3ebf6 !important;
}

html.qn-pc-theme .inventory-summary .inventory-total-money strong {
  color: #dc2626 !important;
}

html.qn-pc-theme .inventory-summary .inventory-total-money span {
  color: #b42318 !important;
}

html.qn-pc-theme .purchase-group {
  border-radius: 12px;
  overflow: hidden;
}

html.qn-pc-theme .purchase-group-head {
  min-height: 48px;
}

html.qn-pc-theme .purchase-status-pending .purchase-group-head {
  background: #eef5ff;
}

html.qn-pc-theme .purchase-status-approved .purchase-group-head {
  background: #effaf5;
}

html.qn-pc-theme .purchase-status-completed .purchase-group-head {
  background: #fff7ed;
}

html.qn-pc-theme .custom-select-menu,
html.qn-pc-theme .custom-select-menu-floating,
html.qn-pc-theme .dashboard-shop-menu,
html.qn-pc-theme .dashboard-year-menu,
html.qn-pc-theme .saved-login-dropdown,
html.qn-pc-theme .online-users-panel {
  border-radius: 10px;
  border: 1px solid #d8e1ee;
  background: rgba(255,255,255,.98);
  box-shadow: 0 18px 42px rgba(23, 40, 73, .14);
}

html.qn-pc-theme .custom-select-option,
html.qn-pc-theme .saved-login-option {
  border-radius: 7px;
}

html.qn-pc-theme .custom-select-option:hover,
html.qn-pc-theme .custom-select-option.selected {
  background: #edf5ff;
}

html.qn-pc-theme dialog::backdrop {
  background: rgba(20, 34, 56, .26);
  backdrop-filter: blur(4px);
}

html.qn-pc-theme .modal-box {
  border-radius: 12px;
  border: 1px solid #dde6f2;
  box-shadow: 0 24px 80px rgba(18, 32, 58, .22);
}

html.qn-pc-theme .modal-head,
html.qn-pc-theme .modal-foot {
  background: #fff;
}

/* Real production-flow status elements in the current app markup. */
html.qn-pc-theme .batch-status-count {
  width: auto !important;
  gap: 5px !important;
  color: #344054 !important;
}

html.qn-pc-theme .batch-status-item {
  min-width: 36px !important;
  min-height: 22px !important;
  padding: 3px 8px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: currentColor !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

html.qn-pc-theme .batch-status-count.status-waiting .batch-status-item {
  border-color: #c9dfd8 !important;
  background: #f0f8f5 !important;
  color: #2f6f5d !important;
}

html.qn-pc-theme .batch-status-count.status-purchase .batch-status-item {
  border-color: #ead7aa !important;
  background: #fff8e8 !important;
  color: #8a6418 !important;
}

html.qn-pc-theme .batch-status-count.status-schedule .batch-status-item {
  border-color: #cad8f2 !important;
  background: #f0f5ff !important;
  color: #315d9f !important;
}

html.qn-pc-theme .batch-status-count.status-production .batch-status-item {
  border-color: #c2dfdf !important;
  background: #edf8f8 !important;
  color: #247070 !important;
}

html.qn-pc-theme .batch-status-count.status-outsourced .batch-status-item {
  border-color: #d8d1e8 !important;
  background: #f6f3fb !important;
  color: #66528d !important;
}

html.qn-pc-theme .batch-status-count.status-completed .batch-status-item {
  border-color: #d2dae6 !important;
  background: #f2f5f9 !important;
  color: #566274 !important;
}

html.qn-pc-theme .batch-status-count.status-waiting .batch-status-number,
html.qn-pc-theme .batch-status-count.status-purchase .batch-status-number,
html.qn-pc-theme .batch-status-count.status-schedule .batch-status-number,
html.qn-pc-theme .batch-status-count.status-production .batch-status-number,
html.qn-pc-theme .batch-status-count.status-outsourced .batch-status-number,
html.qn-pc-theme .batch-status-count.status-completed .batch-status-number {
  color: #344054 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

html.qn-pc-theme .status-waiting {
  background: #f0f8f5 !important;
  color: #2f6f5d !important;
}

html.qn-pc-theme .status-purchase {
  background: #fff8e8 !important;
  color: #8a6418 !important;
}

html.qn-pc-theme .status-schedule {
  background: #f0f5ff !important;
  color: #315d9f !important;
}

html.qn-pc-theme .status-production {
  background: #edf8f8 !important;
  color: #247070 !important;
}

html.qn-pc-theme .status-outsourced {
  background: #f6f3fb !important;
  color: #66528d !important;
}

html.qn-pc-theme .status-completed {
  background: #f2f5f9 !important;
  color: #566274 !important;
}

/* Official SaaS polish: cleaner hierarchy, calmer surfaces, denser workbench feel. */
html.qn-pc-theme {
  --qn-page: #f5f7fb;
  --qn-sidebar: #ffffff;
  --qn-panel: #ffffff;
  --qn-panel-soft: #f8fafd;
  --qn-line: #e5ebf3;
  --qn-line-dark: #d6dfeb;
  --qn-text: #182033;
  --qn-sub: #6b7485;
  --qn-blue-main: #236ff2;
  --qn-blue-light: #eef5ff;
  --qn-orange-main: #ff7a18;
  --qn-radius: 10px;
}

html.qn-pc-theme body::before {
  background:
    linear-gradient(180deg, rgba(239,245,255,.94) 0, rgba(246,248,252,.98) 150px, var(--qn-page) 100%),
    var(--qn-page);
}

html.qn-pc-theme .app-shell {
  grid-template-columns: 188px minmax(0, 1fr);
  background: var(--qn-page);
}

html.qn-pc-theme .sidebar {
  background: var(--qn-sidebar);
  border-right: 1px solid var(--qn-line);
  box-shadow: none;
}

html.qn-pc-theme .brand {
  min-height: 64px;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid var(--qn-line);
}

html.qn-pc-theme .brand-mark {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  box-shadow: none;
}

html.qn-pc-theme .brand strong {
  font-size: 14px;
  color: var(--qn-text);
}

html.qn-pc-theme .brand .app-version {
  color: #98a2b3;
  font-size: 10px;
}

html.qn-pc-theme nav {
  padding: 10px 8px 4px;
  gap: 3px;
}

html.qn-pc-theme nav button {
  height: 38px;
  min-height: 38px;
  border-radius: 7px;
  color: #42526a;
  font-size: 13px;
  font-weight: 700;
}

html.qn-pc-theme nav button span::before {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 43%, #a8b3c3 43% 57%, transparent 57%),
    linear-gradient(0deg, transparent 43%, #a8b3c3 43% 57%, transparent 57%),
    #f1f4f8;
}

html.qn-pc-theme nav button:hover {
  background: #f6f9ff;
  color: #236ff2;
}

html.qn-pc-theme nav button.active {
  background: #edf4ff;
  color: #1e63d7;
}

html.qn-pc-theme nav button.active::after {
  top: 9px;
  bottom: 9px;
  width: 3px;
  background: #236ff2;
}

html.qn-pc-theme .topbar {
  min-height: 64px;
  padding: 10px 18px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--qn-line);
  box-shadow: 0 1px 0 rgba(16,24,40,.02);
}

html.qn-pc-theme .topbar h2 {
  font-size: 22px;
  letter-spacing: 0;
}

html.qn-pc-theme .topbar p {
  margin-top: 2px;
  color: var(--qn-sub);
}

html.qn-pc-theme .toolbar {
  gap: 8px;
}

html.qn-pc-theme button {
  height: 32px;
  min-height: 32px;
  border-radius: 7px;
  border-color: #cfd8e6;
  background: #fff;
  color: #344054;
  font-size: 13px;
  box-shadow: none !important;
}

html.qn-pc-theme button:hover {
  border-color: #8eb9ff;
  background: #f7fbff;
  color: #1e63d7;
}

html.qn-pc-theme .primary,
html.qn-pc-theme button.primary {
  border-color: var(--qn-blue-main);
  background: var(--qn-blue-main);
  color: #fff;
}

html.qn-pc-theme .download-list-btn,
html.qn-pc-theme .inventory-batch-btn,
html.qn-pc-theme #newStockBtn {
  border-color: var(--qn-orange-main);
  background: var(--qn-orange-main);
  color: #fff;
}

html.qn-pc-theme .view:not(.hidden) {
  padding: 16px 18px 28px;
}

html.qn-pc-theme .panel,
html.qn-pc-theme .dashboard-panel,
html.qn-pc-theme .filter-bar,
html.qn-pc-theme .inventory-filter,
html.qn-pc-theme .outbound-filter-bar,
html.qn-pc-theme .completed-toolbar,
html.qn-pc-theme .purchase-filter-panel,
html.qn-pc-theme .purchase-board,
html.qn-pc-theme .inventory-grid,
html.qn-pc-theme .outbound-card,
html.qn-pc-theme .batch-group,
html.qn-pc-theme .completed-batch-group,
html.qn-pc-theme .outbound-batch-card {
  border: 1px solid var(--qn-line);
  border-radius: var(--qn-radius);
  background: var(--qn-panel);
  box-shadow: 0 1px 2px rgba(16,24,40,.03);
}

html.qn-pc-theme .filter-bar,
html.qn-pc-theme .inventory-filter,
html.qn-pc-theme .outbound-filter-bar,
html.qn-pc-theme .completed-toolbar,
html.qn-pc-theme .purchase-filter-panel {
  padding: 12px;
  background: #fff;
}

html.qn-pc-theme .filter-bar label,
html.qn-pc-theme .inventory-filter label,
html.qn-pc-theme .outbound-filter-bar label,
html.qn-pc-theme .completed-toolbar label,
html.qn-pc-theme .purchase-filter-grid label {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

html.qn-pc-theme input,
html.qn-pc-theme select,
html.qn-pc-theme textarea,
html.qn-pc-theme .custom-select-trigger {
  min-height: 32px;
  border-radius: 7px;
  border-color: #d3dce9;
  background: #fff;
}

html.qn-pc-theme .metric,
html.qn-pc-theme .inventory-summary article,
html.qn-pc-theme .outbound-summary-grid article,
html.qn-pc-theme .dashboard-kpi-strip article {
  border: 1px solid var(--qn-line);
  border-left: 3px solid #3a7bf4;
  border-radius: 9px;
  background: #fff;
}

html.qn-pc-theme .metric span,
html.qn-pc-theme .inventory-summary span,
html.qn-pc-theme .outbound-summary-grid span,
html.qn-pc-theme .dashboard-kpi-strip span {
  color: #667085;
  font-weight: 700;
}

html.qn-pc-theme table {
  border: 1px solid var(--qn-line);
  border-radius: 8px;
  overflow: hidden;
}

html.qn-pc-theme th,
html.qn-pc-theme .purchase-table th {
  height: 38px;
  background: #f6f8fb;
  border-bottom: 1px solid var(--qn-line);
  color: #344054;
}

html.qn-pc-theme td,
html.qn-pc-theme .purchase-table td {
  border-bottom: 1px solid #edf1f6;
}

html.qn-pc-theme tr:hover td {
  background: #f7faff;
}

html.qn-pc-theme .batch-group,
html.qn-pc-theme .completed-batch-group {
  border-left: 4px solid #3a7bf4;
  overflow: hidden;
}

html.qn-pc-theme .batch-head,
html.qn-pc-theme .completed-batch-head {
  padding: 11px 13px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  border-bottom: 1px solid var(--qn-line);
}

html.qn-pc-theme .batch-owner-shop,
html.qn-pc-theme .batch-date-pill,
html.qn-pc-theme .batch-progress-pill,
html.qn-pc-theme .batch-download-count {
  border-color: #dce5f2;
  background: #fff;
  box-shadow: none;
}

html.qn-pc-theme .batch-lines,
html.qn-pc-theme .batch-line {
  background: #fffaf5;
  border-color: #f2dfcb;
}

html.qn-pc-theme .batch-status-counts,
html.qn-pc-theme .batch-status-summary {
  gap: 13px !important;
}

html.qn-pc-theme .batch-status-count {
  gap: 4px !important;
}

html.qn-pc-theme .batch-status-item {
  min-height: 21px !important;
  min-width: 34px !important;
  padding: 2px 8px !important;
  font-size: 12px !important;
}

html.qn-pc-theme .batch-status-count.status-waiting .batch-status-item {
  background: #eef8f4 !important;
  border-color: #cfe5dc !important;
  color: #276653 !important;
}

html.qn-pc-theme .batch-status-count.status-purchase .batch-status-item {
  background: #fff8e8 !important;
  border-color: #eadbb8 !important;
  color: #7a5a19 !important;
}

html.qn-pc-theme .batch-status-count.status-schedule .batch-status-item {
  background: #eef4ff !important;
  border-color: #cbdaf4 !important;
  color: #31598f !important;
}

html.qn-pc-theme .batch-status-count.status-production .batch-status-item {
  background: #eef8f8 !important;
  border-color: #c9dfdf !important;
  color: #24696b !important;
}

html.qn-pc-theme .batch-status-count.status-outsourced .batch-status-item {
  background: #f6f3fb !important;
  border-color: #d9d1e9 !important;
  color: #615180 !important;
}

html.qn-pc-theme .batch-status-count.status-completed .batch-status-item {
  background: #f3f6fa !important;
  border-color: #d8e0ea !important;
  color: #566274 !important;
}

html.qn-pc-theme .batch-status-number {
  color: #334155 !important;
  font-size: 13px !important;
}

html.qn-pc-theme .inventory-grid table {
  border: 0;
}

html.qn-pc-theme .inventory-grid th {
  position: sticky;
  top: 64px;
  z-index: 5;
}

html.qn-pc-theme .inventory-actions-grid button {
  border-radius: 6px;
}

html.qn-pc-theme .custom-select-menu,
html.qn-pc-theme .custom-select-menu-floating,
html.qn-pc-theme .dashboard-shop-menu,
html.qn-pc-theme .dashboard-year-menu {
  border-radius: 9px;
  border-color: #d9e2ef;
  box-shadow: 0 14px 38px rgba(16,24,40,.13);
}

html.qn-pc-theme .modal-box {
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(16,24,40,.22);
}

/* Disabled final refinement to return to the previous preview.
html.qn-pc-theme {
  --qn-page: #f3f6fb;
  --qn-sidebar: #fbfcff;
  --qn-card: #ffffff;
  --qn-border: #dfe7f2;
  --qn-border-strong: #cfd9e8;
  --qn-text: #172033;
  --qn-muted: #667085;
  --qn-blue: #1677ff;
  --qn-blue-dark: #0958d9;
  --qn-orange: #f28c18;
  --qn-green: #16875a;
  --qn-red: #d64545;
  --qn-gray: #64748b;
}

html.qn-pc-theme body {
  background: var(--qn-page);
  color: var(--qn-text);
}

html.qn-pc-theme body::before {
  background:
    linear-gradient(180deg, #eef5ff 0, rgba(245,248,252,.98) 120px, var(--qn-page) 360px),
    var(--qn-page);
}

html.qn-pc-theme .app-shell {
  grid-template-columns: 188px minmax(0, 1fr);
  background: transparent;
}

html.qn-pc-theme .sidebar {
  background: var(--qn-sidebar);
  border-right: 1px solid var(--qn-border);
  box-shadow: none;
}

html.qn-pc-theme .brand {
  min-height: 62px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--qn-border);
  background: #fff;
}

html.qn-pc-theme .brand-mark {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 9px;
  box-shadow: none;
}

html.qn-pc-theme .brand strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

html.qn-pc-theme .brand .app-version {
  color: #98a2b3;
  font-size: 10px;
  font-weight: 800;
}

html.qn-pc-theme nav {
  padding: 10px 8px 6px;
  gap: 2px;
}

html.qn-pc-theme nav button {
  height: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #42526a;
  font-size: 13px;
  font-weight: 750;
}

html.qn-pc-theme nav button:hover {
  background: #f1f6ff;
  color: var(--qn-blue-dark);
}

html.qn-pc-theme nav button.active {
  background: #e8f2ff;
  color: var(--qn-blue-dark);
}

html.qn-pc-theme nav button.active::after {
  top: 9px;
  bottom: 9px;
  width: 3px;
  background: var(--qn-blue);
}

html.qn-pc-theme .current-account,
html.qn-pc-theme .online-status-btn,
html.qn-pc-theme #passwordBtn,
html.qn-pc-theme #systemInitBtn,
html.qn-pc-theme #logoutBtn {
  border: 1px solid var(--qn-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: none !important;
}

html.qn-pc-theme .topbar {
  min-height: 62px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--qn-border);
  background: rgba(255,255,255,.96);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

html.qn-pc-theme .topbar h2 {
  color: #111827;
  font-size: 22px;
  font-weight: 900;
}

html.qn-pc-theme .topbar p {
  color: var(--qn-muted);
  font-size: 13px;
}

html.qn-pc-theme .view:not(.hidden) {
  padding: 16px 18px 28px;
}

html.qn-pc-theme .panel,
html.qn-pc-theme .dashboard-panel,
html.qn-pc-theme .filter-bar,
html.qn-pc-theme .inventory-filter,
html.qn-pc-theme .outbound-filter-bar,
html.qn-pc-theme .completed-toolbar,
html.qn-pc-theme .purchase-filter-panel,
html.qn-pc-theme .purchase-board,
html.qn-pc-theme .inventory-grid,
html.qn-pc-theme .outbound-card,
html.qn-pc-theme .batch-group,
html.qn-pc-theme .completed-batch-group,
html.qn-pc-theme .outbound-batch-card {
  border: 1px solid var(--qn-border);
  border-radius: 10px;
  background: var(--qn-card);
  box-shadow: 0 1px 2px rgba(16,24,40,.035);
}

html.qn-pc-theme .filter-bar,
html.qn-pc-theme .inventory-filter,
html.qn-pc-theme .outbound-filter-bar,
html.qn-pc-theme .completed-toolbar,
html.qn-pc-theme .purchase-filter-panel {
  padding: 12px;
  background: #fff;
}

html.qn-pc-theme label,
html.qn-pc-theme .filter-bar label,
html.qn-pc-theme .inventory-filter label,
html.qn-pc-theme .outbound-filter-bar label,
html.qn-pc-theme .completed-toolbar label,
html.qn-pc-theme .purchase-filter-grid label {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

html.qn-pc-theme input,
html.qn-pc-theme select,
html.qn-pc-theme textarea,
html.qn-pc-theme .custom-select-trigger {
  min-height: 32px;
  border: 1px solid #ccd6e4;
  border-radius: 7px;
  background: #fff;
  color: #172033;
  box-shadow: none;
}

html.qn-pc-theme input:focus,
html.qn-pc-theme select:focus,
html.qn-pc-theme textarea:focus,
html.qn-pc-theme .custom-select-shell.open .custom-select-trigger {
  border-color: var(--qn-blue);
  box-shadow: 0 0 0 3px rgba(22,119,255,.12);
}

html.qn-pc-theme button {
  height: 32px;
  min-height: 32px;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none !important;
}

html.qn-pc-theme button:hover {
  border-color: #9ec5ff;
  background: #f5f9ff;
  color: var(--qn-blue-dark);
}

html.qn-pc-theme .primary,
html.qn-pc-theme button.primary {
  border-color: var(--qn-blue);
  background: var(--qn-blue);
  color: #fff;
}

html.qn-pc-theme .primary:hover,
html.qn-pc-theme button.primary:hover {
  border-color: var(--qn-blue-dark);
  background: var(--qn-blue-dark);
  color: #fff;
}

html.qn-pc-theme .download-list-btn,
html.qn-pc-theme .inventory-batch-btn,
html.qn-pc-theme #newStockBtn {
  border-color: var(--qn-orange);
  background: var(--qn-orange);
  color: #fff;
}

html.qn-pc-theme .metric,
html.qn-pc-theme .inventory-summary article,
html.qn-pc-theme .outbound-summary-grid article,
html.qn-pc-theme .dashboard-kpi-strip article {
  border: 1px solid var(--qn-border);
  border-left: 3px solid var(--qn-blue);
  border-radius: 9px;
  background: #fff;
  box-shadow: none;
}

html.qn-pc-theme .metric span,
html.qn-pc-theme .inventory-summary span,
html.qn-pc-theme .outbound-summary-grid span,
html.qn-pc-theme .dashboard-kpi-strip span {
  color: var(--qn-muted);
  font-size: 12px;
  font-weight: 750;
}

html.qn-pc-theme .metric strong,
html.qn-pc-theme .inventory-summary strong,
html.qn-pc-theme .outbound-summary-grid strong,
html.qn-pc-theme .dashboard-kpi-strip strong {
  color: #111827;
}

html.qn-pc-theme table,
html.qn-pc-theme .purchase-table {
  border: 1px solid var(--qn-border);
  border-radius: 8px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  background: #fff;
}

html.qn-pc-theme th,
html.qn-pc-theme .purchase-table th {
  height: 38px;
  border-bottom: 1px solid var(--qn-border-strong);
  background: #f6f8fb;
  color: #344054;
  font-size: 13px;
  font-weight: 850;
}

html.qn-pc-theme td,
html.qn-pc-theme .purchase-table td {
  border-bottom: 1px solid #edf1f6;
}

html.qn-pc-theme tr:hover td,
html.qn-pc-theme .purchase-table tbody tr:hover td {
  background: #f7fbff;
}

html.qn-pc-theme .batch-group,
html.qn-pc-theme .completed-batch-group {
  border: 1px solid #dce5f0;
  border-left: 5px solid #2fbf71;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.035);
}

html.qn-pc-theme .batch-head,
html.qn-pc-theme .completed-batch-head {
  min-height: 46px;
  padding: 10px 13px;
  border-bottom: 1px solid #edf1f6;
  background: #fff;
}

html.qn-pc-theme .batch-lines,
html.qn-pc-theme .batch-line {
  background: #fffaf5;
  border-color: #f0ddc8;
}

html.qn-pc-theme .batch-owner-shop,
html.qn-pc-theme .batch-date-pill,
html.qn-pc-theme .batch-progress-pill,
html.qn-pc-theme .batch-download-count {
  border-color: #d8e1ee;
  background: #fff;
  color: #344054;
  box-shadow: none;
}

html.qn-pc-theme .batch-status-counts,
html.qn-pc-theme .batch-status-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px !important;
}

html.qn-pc-theme .batch-status-count {
  display: inline-flex;
  align-items: center;
  width: auto !important;
  gap: 6px !important;
  line-height: 1;
}

html.qn-pc-theme .batch-status-item {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 38px !important;
  min-height: 22px !important;
  padding: 3px 9px !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

html.qn-pc-theme .batch-status-count.status-waiting .batch-status-item {
  background: #1f8f5f !important;
}

html.qn-pc-theme .batch-status-count.status-purchase .batch-status-item {
  background: #d99000 !important;
}

html.qn-pc-theme .batch-status-count.status-schedule .batch-status-item,
html.qn-pc-theme .batch-status-count.status-production .batch-status-item,
html.qn-pc-theme .batch-status-count.status-outsourced .batch-status-item {
  background: #d64a45 !important;
}

html.qn-pc-theme .batch-status-count.status-completed .batch-status-item {
  background: #64748b !important;
}

html.qn-pc-theme .batch-status-number {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 14px;
  color: #344054 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
}

html.qn-pc-theme .custom-select-menu,
html.qn-pc-theme .custom-select-menu-floating,
html.qn-pc-theme .dashboard-shop-menu,
html.qn-pc-theme .dashboard-year-menu,
html.qn-pc-theme .saved-login-dropdown,
html.qn-pc-theme .online-users-panel {
  border: 1px solid #d8e1ee;
  border-radius: 9px;
  background: rgba(255,255,255,.99);
  box-shadow: 0 16px 38px rgba(18,32,58,.13);
}

html.qn-pc-theme .custom-select-option,
html.qn-pc-theme .saved-login-option {
  border-radius: 6px;
  color: #27364a;
}

html.qn-pc-theme .custom-select-option:hover,
html.qn-pc-theme .custom-select-option.selected {
  background: #edf5ff;
  color: var(--qn-blue-dark);
}

html.qn-pc-theme dialog::backdrop {
  background: rgba(17, 24, 39, .24);
  backdrop-filter: blur(4px);
}

html.qn-pc-theme .modal-box {
  border: 1px solid #dce5f0;
  border-radius: 12px;
  box-shadow: 0 24px 72px rgba(18,32,58,.22);
}
*/

/* Preview soft-rounding layer, matching the main ERP roundness without changing data. */
html.qn-pc-theme {
  --qn-radius-soft-sm: 10px;
  --qn-radius-soft-md: 12px;
  --qn-radius-soft-lg: 16px;
  --qn-radius-soft-xl: 20px;
}

html.qn-pc-theme button,
html.qn-pc-theme input,
html.qn-pc-theme select,
html.qn-pc-theme textarea,
html.qn-pc-theme .custom-select-trigger,
html.qn-pc-theme .login-account-wrap {
  border-radius: var(--qn-radius-soft-md);
}

html.qn-pc-theme .login-form,
html.qn-pc-theme .boot-card,
html.qn-pc-theme .panel,
html.qn-pc-theme .dashboard-panel,
html.qn-pc-theme .filter-bar,
html.qn-pc-theme .inventory-filter,
html.qn-pc-theme .outbound-filter-bar,
html.qn-pc-theme .completed-toolbar,
html.qn-pc-theme .purchase-filter-panel,
html.qn-pc-theme .purchase-board,
html.qn-pc-theme .inventory-grid,
html.qn-pc-theme .outbound-card,
html.qn-pc-theme .batch-group,
html.qn-pc-theme .completed-batch-group,
html.qn-pc-theme .outbound-batch-card,
html.qn-pc-theme .purchase-group,
html.qn-pc-theme .job-card {
  border-radius: var(--qn-radius-soft-lg);
}

html.qn-pc-theme .modal-box,
html.qn-pc-theme .custom-select-menu,
html.qn-pc-theme .custom-select-menu-floating,
html.qn-pc-theme .dashboard-shop-menu,
html.qn-pc-theme .dashboard-year-menu,
html.qn-pc-theme .saved-login-dropdown,
html.qn-pc-theme .online-users-panel {
  border-radius: var(--qn-radius-soft-xl);
}

html.qn-pc-theme .brand-mark,
html.qn-pc-theme .flow-thumb,
html.qn-pc-theme .inventory-thumb,
html.qn-pc-theme .purchase-image-thumb,
html.qn-pc-theme .notice-image,
html.qn-pc-theme .batch-line,
html.qn-pc-theme .batch-form-line,
html.qn-pc-theme .flow-row,
html.qn-pc-theme .custom-select-option,
html.qn-pc-theme .saved-login-option {
  border-radius: var(--qn-radius-soft-md);
}

html.qn-pc-theme .batch-status-item,
html.qn-pc-theme .batch-date-pill,
html.qn-pc-theme .batch-owner-shop,
html.qn-pc-theme .batch-progress-pill,
html.qn-pc-theme .batch-download-count,
html.qn-pc-theme .status-badge,
html.qn-pc-theme .pill,
html.qn-pc-theme .purchase-status-pill,
html.qn-pc-theme .purchase-type-pill {
  border-radius: 999px;
}

/* Preview toolbar width tune: keep filters compact on wide desktops. */
html.qn-pc-theme #jobsView > .filter-bar {
  grid-template-columns: 280px 280px 280px minmax(320px, 520px) max-content !important;
  justify-content: start !important;
  align-items: end;
}

html.qn-pc-theme #jobsView > .filter-bar label,
html.qn-pc-theme #purchaseView .purchase-filter-grid label {
  min-width: 0;
}

html.qn-pc-theme #jobsView > .filter-bar select,
html.qn-pc-theme #jobsView > .filter-bar input,
html.qn-pc-theme #jobsView > .filter-bar .custom-select-trigger,
html.qn-pc-theme #purchaseView .purchase-filter-grid select,
html.qn-pc-theme #purchaseView .purchase-filter-grid input,
html.qn-pc-theme #purchaseView .purchase-filter-grid .custom-select-trigger {
  width: 100%;
  max-width: 100%;
}

html.qn-pc-theme #jobsView > .filter-bar .filter-button-pair {
  width: max-content;
}

html.qn-pc-theme #jobsView > .filter-bar .download-list-btn {
  grid-column: 1 / 2 !important;
  width: 280px !important;
  max-width: 280px !important;
}

html.qn-pc-theme #purchaseView .purchase-filter-grid {
  grid-template-columns: 220px 300px minmax(360px, 560px) max-content !important;
  justify-content: start !important;
  align-items: end;
}

html.qn-pc-theme #purchaseView .purchase-filter-actions {
  justify-content: flex-start !important;
}

html.qn-pc-theme #purchaseView .purchase-filter-actions button {
  width: auto;
  min-width: 68px;
  white-space: nowrap;
}

html.qn-pc-theme .batch-collapsed-summary,
html.qn-pc-theme .batch-lines {
  background: #eef5ff !important;
}

html.qn-pc-theme .batch-group {
  border-color: #dce5f0 !important;
  border-left-color: var(--batch-rail, #22c55e) !important;
  box-shadow: inset 3px 0 0 var(--batch-rail, #22c55e), 0 1px 2px rgba(16, 24, 40, .035) !important;
}

html.qn-pc-theme .batch-group .flow-row,
html.qn-pc-theme .batch-group .job-card {
  border-left-color: var(--batch-rail, #22c55e) !important;
}

@media (max-width: 1180px) {
  html.qn-pc-theme #jobsView > .filter-bar,
  html.qn-pc-theme #purchaseView .purchase-filter-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  }

  html.qn-pc-theme #jobsView > .filter-bar .download-list-btn {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
  }
}

html.qn-pc-theme .inventory-table-tools {
  border-color: #dce5f0;
  background: #f5f8fc;
}

html.qn-pc-theme .inventory-table-tools.has-price,
html.qn-pc-theme .inventory-table-tools.no-price {
  min-width: 1240px;
}

html.qn-pc-theme .inventory-table-tools + .inventory-grid {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

html.qn-pc-theme .inventory-grid thead tr:first-child th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8fafc;
}

html.qn-pc-theme .batch-group {
  border-width: 1px 1px 1px 3px !important;
  border-style: solid !important;
  border-color: #dce5f0 !important;
  border-left-color: var(--batch-rail, #22c55e) !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .035) !important;
}

html.qn-pc-theme .batch-collapsed-summary .product-summary-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  max-width: 320px !important;
  min-width: 0 !important;
}

html.qn-pc-theme .batch-collapsed-summary .summary-name {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 118px !important;
  overflow: hidden !important;
  color: #60708a !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 850 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html.qn-pc-theme .batch-collapsed-summary .summary-fnsku {
  flex: 0 0 auto !important;
  color: #1f2937 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  white-space: nowrap !important;
}

html.qn-pc-theme .batch-status-count {
  justify-content: center !important;
  gap: 0 !important;
}

html.qn-pc-theme .batch-status-count .batch-status-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-width: 58px !important;
  min-height: 23px !important;
  padding: 4px 9px !important;
  color: #fff !important;
}

html.qn-pc-theme .batch-status-count .batch-status-number {
  display: inline-flex !important;
  align-items: center !important;
  min-width: 12px !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

/* Final production-flow status pills: keep color only inside the pill, never on the outer button. */
html.qn-pc-theme .batch-status-count,
html.qn-pc-theme .batch-status-count.status-waiting,
html.qn-pc-theme .batch-status-count.status-purchase,
html.qn-pc-theme .batch-status-count.status-schedule,
html.qn-pc-theme .batch-status-count.status-production,
html.qn-pc-theme .batch-status-count.status-outsourced,
html.qn-pc-theme .batch-status-count.status-completed {
  min-width: 58px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  overflow: visible !important;
}

html.qn-pc-theme .batch-status-count .batch-status-item,
html.qn-pc-theme .batch-status-count:hover .batch-status-item,
html.qn-pc-theme .batch-status-count.active .batch-status-item {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-width: 58px !important;
  min-height: 24px !important;
  padding: 4px 10px !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  color: #111827 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease !important;
}

html.qn-pc-theme .batch-status-count:hover .batch-status-item,
html.qn-pc-theme .batch-status-count.active .batch-status-item {
  transform: translateY(-1px) !important;
  box-shadow: 0 0 0 1px rgba(47, 128, 237, .22), 0 3px 8px rgba(15, 23, 42, .08) !important;
}

html.qn-pc-theme .batch-status-count.status-waiting .batch-status-item {
  background: #edf8f3 !important;
}

html.qn-pc-theme .batch-status-count.status-purchase .batch-status-item {
  background: #fff6de !important;
}

html.qn-pc-theme .batch-status-count.status-schedule .batch-status-item,
html.qn-pc-theme .batch-status-count.status-production .batch-status-item,
html.qn-pc-theme .batch-status-count.status-outsourced .batch-status-item {
  background: #ffeded !important;
}

html.qn-pc-theme .batch-status-count.status-completed .batch-status-item {
  background: #f1f4f8 !important;
}

html.qn-pc-theme .batch-status-count .batch-status-label,
html.qn-pc-theme .batch-status-count .batch-status-number {
  display: inline-flex !important;
  align-items: center !important;
  color: #111827 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}
