:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #eef4f8;
  --ink: #17202a;
  --muted: #667085;
  --line: #d9e1e8;
  --brand: #d71920;
  --brand-dark: #a90f16;
  --teal: #087f8c;
  --success: #168251;
  --green: #168251;
  --amber: #b7791f;
  --danger: #c0392b;
  --shadow: 0 8px 22px rgba(20, 34, 50, 0.06);
  --radius: 8px;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.wechat-channels-store-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.wechat-channels-store-item {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) repeat(4, minmax(110px, 1fr));
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #dbe5ed;
  background: #fff;
}

.wechat-channels-store-item > div {
  min-width: 0;
}

.wechat-channels-store-item strong,
.wechat-channels-store-item b,
.wechat-channels-store-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wechat-channels-store-item span {
  color: #76869a;
  font-size: 12px;
}

.wechat-channels-store-item b {
  margin-top: 3px;
  font-size: 13px;
}

@media (max-width: 900px) {
  .wechat-channels-store-item {
    grid-template-columns: 1fr 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}

body.auth-pending .app-shell,
body.auth-locked .app-shell {
  display: none;
}

body.auth-ready .login-screen {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.login-screen {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 40px;
  overflow: hidden;
  color: #eef7ff;
  background:
    radial-gradient(circle at 12% 18%, rgba(225, 19, 36, 0.24), transparent 28%),
    radial-gradient(circle at 78% 16%, rgba(20, 142, 158, 0.28), transparent 30%),
    linear-gradient(135deg, #07101a 0%, #101a26 100%);
}

.login-screen::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.login-screen::after {
  position: absolute;
  right: 10%;
  bottom: 7%;
  width: 430px;
  height: 210px;
  content: "";
  opacity: 0.55;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(34, 184, 200, 0.65) 8% 9%, transparent 9% 20%, rgba(225, 19, 36, 0.65) 20% 21%, transparent 21%),
    linear-gradient(180deg, transparent 0 54%, rgba(255, 255, 255, 0.14) 54% 55%, transparent 55%);
  clip-path: polygon(0 72%, 10% 60%, 20% 65%, 32% 38%, 44% 50%, 54% 31%, 66% 41%, 77% 21%, 90% 26%, 100% 10%, 100% 100%, 0 100%);
}

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 430px);
  gap: 70px;
  align-items: center;
  width: min(1120px, 100%);
}

.login-intro {
  min-width: 0;
}

.login-eyebrow {
  margin: 0 0 16px;
  color: #22b8c8;
  font-size: 14px;
  font-weight: 900;
}

.login-intro h1 {
  margin: 0;
  color: #fff;
  font-size: 46px;
  line-height: 1.08;
}

.login-copy {
  max-width: 480px;
  margin: 18px 0 30px;
  color: #9fb1c3;
  font-size: 16px;
  line-height: 1.7;
}

.login-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 520px;
}

.login-stat-grid > div {
  min-height: 92px;
  padding: 14px 16px;
  border: 1px solid rgba(180, 205, 225, 0.18);
  border-radius: 10px;
  background: rgba(8, 18, 30, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-stat-grid span {
  display: block;
  color: #9aaec0;
  font-size: 12px;
  font-weight: 800;
}

.login-stat-grid strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
}

.login-card {
  display: grid;
  position: relative;
  width: min(430px, 100%);
  gap: 16px;
  padding: 32px;
  border: 1px solid rgba(220, 235, 246, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(22px);
}

.login-brand {
  margin-bottom: 10px;
  color: #fff;
}

.login-brand span {
  color: #9aaec0;
}

.login-brand .brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #e31324, #bd101d);
  box-shadow: 0 16px 34px rgba(227, 19, 36, 0.35);
}

.login-card .form-field label {
  color: #d8e4ef;
  font-size: 13px;
  font-weight: 850;
}

.login-card .form-field input {
  height: 46px;
  border-color: rgba(200, 220, 235, 0.26);
  border-radius: 10px;
  color: #fff;
  background: rgba(6, 14, 24, 0.55);
}

.login-card .form-field input:focus {
  border-color: rgba(34, 184, 200, 0.8);
  box-shadow: 0 0 0 4px rgba(34, 184, 200, 0.14);
}

.login-card .primary-button {
  height: 48px;
  margin-top: 4px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e31324, #bd101d);
  box-shadow: 0 18px 34px rgba(227, 19, 36, 0.3);
  font-size: 15px;
  font-weight: 900;
}

.login-error {
  min-height: 20px;
  margin: 0;
  color: #ff9aa4;
  font-size: 13px;
}

.login-footnote {
  display: flex;
  justify-content: space-between;
  color: #9aaec0;
  font-size: 12px;
  font-weight: 750;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 18px;
  color: #fff;
  background: #121820;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin-bottom: 28px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand);
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 4px;
  color: #aab4c0;
  font-size: 12px;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  color: #d9e1e8;
  background: transparent;
  text-align: left;
}

.nav-parent b {
  margin-left: auto;
  color: #93a4b7;
  font-size: 13px;
}

.nav-item span {
  display: grid;
  width: 22px;
  place-items: center;
  color: #93a4b7;
  font-weight: 700;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: #252f3b;
}

.nav-item.active span {
  color: #ffce6a;
}

.nav-submenu {
  display: none;
  gap: 6px;
  margin: -2px 0 8px 33px;
}

.nav-submenu.open {
  display: grid;
}

.nav-subitem {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius);
  color: #b8c5d2;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.nav-subitem:hover,
.nav-subitem.active {
  color: #fff;
  background: #1f2935;
}

.nav-submenu a.nav-subitem {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.all-store-nav > summary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius);
  color: #d9e1e8;
  cursor: pointer;
  list-style: none;
}
.all-store-nav > summary::-webkit-details-marker { display: none; }
.all-store-nav > summary span { display: grid; width: 22px; place-items: center; color: #93a4b7; font-weight: 700; }
.all-store-nav > summary b { margin-left: auto; color: #93a4b7; font-size: 13px; }
.all-store-nav > summary:hover,.all-store-nav[open] > summary { color: #fff; background: #252f3b; }
.all-store-nav[open] > summary b { transform: rotate(180deg); }
.all-store-nav[open] .nav-submenu { display: grid; }

.shop-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workspace {
  min-width: 0;
  padding: 20px 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 23px;
  line-height: 1.2;
}

h2 {
  margin-bottom: 0;
  font-size: 16px;
}

.topbar-actions,
.toolbar,
.report-actions,
.subnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.global-scope-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 12px;
  margin: -4px 0 0;
  padding: 12px 14px 10px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #fff;
  box-shadow: 0 10px 26px rgba(22, 42, 65, 0.05);
}

.global-scope-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-scope-bar label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.global-scope-bar select {
  min-width: 250px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #314255;
  background: #f8fbfd;
  font-weight: 750;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #314255;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
}

.permission-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.subnav {
  margin: 4px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.subnav-item {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #314255;
  background: #fff;
  font-weight: 750;
}

.subnav-item:hover,
.subnav-item.active {
  color: #fff;
  border-color: var(--teal);
  background: var(--teal);
}

.operation-panel,
.finance-panel {
  display: none;
}

.operation-panel.active,
.finance-panel.active {
  display: block;
}

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

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

.daily-profit-kpis {
  margin-top: 14px;
}

.daily-profit-kpis .dashboard-kpi-card {
  min-height: 112px;
}

.daily-profit-kpis .dashboard-kpi-card strong {
  color: var(--ink);
  font-size: 22px !important;
  white-space: nowrap;
  overflow-wrap: normal;
}

.daily-profit-kpis .dashboard-kpi-card.positive strong {
  color: var(--success);
}

.daily-profit-kpis .dashboard-kpi-card.negative strong {
  color: var(--danger);
}

.daily-profit-method-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #dbe8f4;
  border-radius: 8px;
  color: #56657a;
  background: #f8fbff;
  font-size: 13px;
  line-height: 1.55;
}

.daily-profit-method-note b {
  color: var(--ink);
  white-space: nowrap;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-card {
  min-height: 104px;
  padding: 12px 13px;
  border-top: 3px solid var(--teal);
}

.metric-card.alert {
  border-top-color: var(--danger);
}

.metric-card span,
.metric-card small,
.panel-heading span {
  color: var(--muted);
}

.metric-card span {
  display: block;
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 19px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.dashboard-layout,
.report-grid,
.operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  padding: 12px;
}

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

.panel-heading h2 {
  font-size: 14px;
}

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

.ghost-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  font-weight: 750;
}

.ghost-button:hover {
  color: var(--ink);
  border-color: var(--line);
  background: #f8fbfd;
}

.panel-heading span {
  align-self: end;
  font-size: 12px;
  white-space: nowrap;
}

.chart-panel canvas {
  display: block;
  width: 100%;
  height: 320px;
}

.dashboard-filter-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 10px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(22, 42, 65, 0.05);
  position: relative;
}

.dashboard-filter-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  height: 1px;
  background: #edf2f7;
}

.dashboard-filter-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 0;
}

.dashboard-filter-top h2 {
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.dashboard-filter-top span {
  position: absolute;
  right: 14px;
  bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.dashboard-filter-toolbar {
  gap: 8px;
  padding-right: 170px;
}

.dashboard-filter-toolbar .secondary-button,
.dashboard-filter-toolbar select,
.dashboard-filter-toolbar .date-field {
  border-color: var(--line);
  color: #17324d;
  background: #f8fafc;
  min-height: 32px;
  font-size: 12px;
}

.dashboard-filter-toolbar select {
  min-width: 150px;
}

.dashboard-filter-toolbar .date-field {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  min-width: 154px;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}

.dashboard-filter-toolbar .date-field input {
  width: 154px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #cfd8e3;
  border-radius: 0;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  font-weight: 650;
}

.secondary-button.active,
.dashboard-filter-toolbar .secondary-button.active {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.dashboard-filter-toolbar .date-field span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

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

.dashboard-kpi-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 96px;
  padding: 10px 11px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 5px 16px rgba(20, 34, 50, 0.045);
  align-content: start;
  gap: 6px;
  overflow: visible;
}

.dashboard-kpi-card span,
.dashboard-kpi-card small {
  display: block;
  color: var(--muted);
}

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

.dashboard-kpi-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-detail-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid #dfe8f1;
  border-radius: 999px;
  color: #667085;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  cursor: default;
  user-select: none;
}

.dashboard-detail-trigger:hover,
.dashboard-detail-trigger:focus {
  color: var(--teal);
  border-color: #9fd7df;
  background: #f0fbfd;
  outline: 0;
}

.dashboard-detail-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: -12px;
  z-index: 30;
  display: grid;
  width: min(330px, 72vw);
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid #d8e3ec;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 16px 36px rgba(20, 34, 50, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.dashboard-detail-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 22px;
  width: 10px;
  height: 10px;
  border-top: 1px solid #d8e3ec;
  border-left: 1px solid #d8e3ec;
  background: #fff;
  transform: rotate(45deg);
}

.dashboard-detail-trigger:hover .dashboard-detail-popover,
.dashboard-detail-trigger:focus .dashboard-detail-popover,
.dashboard-detail-trigger:focus-within .dashboard-detail-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dashboard-detail-popover > strong {
  color: var(--ink);
  font-size: 12px !important;
  line-height: 1.25;
}

.dashboard-detail-popover-row {
  display: grid !important;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  color: var(--muted);
}

.dashboard-detail-popover-row em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 750;
}

.dashboard-detail-popover-row b {
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.45;
}

.dashboard-kpi-head i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #cbd8e3;
}

.dashboard-kpi-card.positive .dashboard-kpi-head i {
  background: var(--success);
}

.dashboard-kpi-card.negative .dashboard-kpi-head i {
  background: var(--danger);
}

.dashboard-kpi-head span {
  color: #56657a;
  font-size: 12px;
  font-weight: 800;
}

.dashboard-kpi-body {
  min-width: 0;
}

.dashboard-kpi-card strong {
  display: block;
  margin: 0 0 4px;
  max-width: 100%;
  color: var(--ink);
  font-size: 17px !important;
  line-height: 1.15;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.dashboard-kpi-card small {
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.dashboard-kpi-card.positive strong {
  color: var(--success);
}

.dashboard-kpi-card.negative strong {
  color: var(--danger);
}

.dashboard-sparkline {
  display: block;
  width: 100%;
  height: 14px;
  margin-top: 1px;
}

.dashboard-sparkline polyline {
  fill: none;
  stroke: #087f8c;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.dashboard-detail-modal {
  display: grid;
  gap: 8px;
}

.dashboard-detail-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.dashboard-detail-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.dashboard-detail-row strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.boss-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  gap: 10px;
  margin-top: 12px;
}

.boss-overview-grid .panel {
  min-width: 0;
  padding: 11px;
  box-shadow: 0 5px 16px rgba(20, 34, 50, 0.045);
}

.boss-overview-grid .panel-heading {
  align-items: center;
  margin-bottom: 9px;
}

.boss-overview-grid .panel-heading h2 {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.boss-overview-grid .panel-heading span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.boss-summary-panel,
.boss-table-panel,
.boss-approval-panel {
  grid-column: 1 / -1;
}

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

.boss-channel-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 8px 9px;
  border: 1px solid #dfe8f1;
  border-radius: var(--radius);
  background: #fbfdff;
}

.boss-channel-card span,
.boss-channel-card dt,
.boss-product-warning span,
.boss-product-warning small,
.boss-approval-card span,
.boss-approval-card small {
  color: var(--muted);
}

.boss-channel-card strong {
  display: block;
  margin-top: 3px;
  color: #bf2f26;
  font-size: 15px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.boss-channel-card dl,
.boss-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.boss-channel-card dl {
  flex: 1;
}

.boss-channel-card div,
.boss-channel-card dl div,
.boss-mini-metrics span {
  min-width: 0;
}

.boss-channel-card dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.boss-channel-card dt,
.boss-channel-card span {
  font-size: 10px;
}

.boss-mini-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 6px;
}

.boss-mini-metrics span {
  min-height: 58px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.boss-mini-metrics em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.boss-mini-metrics b {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.boss-alert-list {
  display: grid;
  gap: 6px;
}

.boss-alert-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.boss-alert-list strong {
  display: block;
  color: var(--danger);
  font-size: 15px;
  line-height: 1.1;
}

.boss-alert-list span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
}

.boss-product-warning-list,
.boss-approval-list {
  display: grid;
  gap: 6px;
}

.boss-product-warning,
.boss-approval-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdff;
}

.boss-approval-card {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.boss-product-image {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid #e5edf5;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
}

.boss-approval-card .boss-product-image {
  width: 48px;
  height: 48px;
}

.boss-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.boss-product-warning strong,
.boss-approval-card strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.boss-product-warning span,
.boss-approval-card span,
.boss-product-warning small,
.boss-approval-card small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.boss-suggestion {
  min-width: 40px;
  padding: 4px 7px;
  border-radius: 8px;
  text-align: center;
  font-size: 11px;
}

.boss-suggestion.red {
  color: #b91c1c;
  background: #fee2e2;
}

.boss-suggestion.blue {
  color: #0369a1;
  background: #e0f2fe;
}

.boss-suggestion.green {
  color: #047857;
  background: #d1fae5;
}

.boss-approval-actions {
  display: flex;
  gap: 6px;
}

.boss-approval-actions .primary-button,
.boss-approval-actions .danger-button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
}

.boss-overview-grid table {
  min-width: 720px;
  font-size: 11px;
}

.boss-overview-grid th,
.boss-overview-grid td {
  padding: 7px 9px;
}

.boss-overview-grid .badge {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.erp-sync-hero {
  display: grid;
  gap: 14px;
}

.erp-sync-config,
.erp-sync-task-grid {
  display: grid;
  gap: 12px;
}

.erp-sync-config {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.erp-sync-config article,
.erp-sync-task {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.erp-sync-config span,
.erp-sync-config small,
.erp-sync-task span {
  display: block;
  color: var(--muted);
}

.erp-sync-config strong {
  display: block;
  overflow: hidden;
  margin: 6px 0;
  color: var(--ink);
  font-size: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.erp-sync-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-left: 4px solid #dbe7ef;
}

.erp-sync-task strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.erp-sync-task-main {
  min-width: 0;
}

.erp-sync-task-main span {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
}

.erp-sync-task-side {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
}

.erp-sync-task b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #0369a1;
  background: #e0f2fe;
  font-size: 12px;
  white-space: nowrap;
}

.erp-sync-task button {
  min-width: 70px;
}

.erp-sync-check-panel {
  background: #fbfdff;
}

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

.erp-sync-check-card {
  min-width: 0;
  min-height: 112px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #cbd5e1;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.erp-sync-check-card.ok {
  border-left-color: var(--success);
}

.erp-sync-check-card.pending {
  border-left-color: #f59e0b;
}

.erp-sync-check-card.bad {
  border-left-color: var(--danger);
}

.erp-sync-check-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.erp-sync-check-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.erp-sync-check-card b {
  color: var(--success);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.erp-sync-check-card.pending b {
  color: #b45309;
}

.erp-sync-check-card.bad b {
  color: var(--danger);
}

.erp-sync-check-card strong {
  display: block;
  min-height: 34px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 850;
}

.erp-sync-check-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.todo-list,
.reason-list,
.workflow-list {
  display: grid;
  gap: 10px;
}

.todo-item,
.reason-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.todo-item strong,
.reason-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.todo-item span,
.reason-item span {
  color: var(--muted);
  font-size: 12px;
}

.workflow-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.workflow-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workflow-heading strong {
  font-size: 15px;
}

.workflow-item ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

.daily-workbench {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
}

.daily-module-menu {
  display: grid;
  align-content: start;
  gap: 10px;
}

.daily-module-button {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--surface-soft);
  text-align: left;
  cursor: pointer;
}

.daily-module-button:hover,
.daily-module-button.active {
  border-color: var(--teal);
  background: #eef8f8;
}

.daily-module-button strong {
  font-size: 14px;
}

.daily-module-button span {
  color: var(--muted);
  font-size: 12px;
}

.daily-module-detail {
  min-width: 0;
  padding: 4px 2px 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #0f1720;
  background: #e7edf3;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.green {
  color: #0d5135;
  background: #dff4e9;
}

.badge.amber {
  color: #66420f;
  background: #faefd9;
}

.badge.red {
  color: #7c1f17;
  background: #fde3df;
}

.badge.blue {
  color: #0b4c68;
  background: #dff1f6;
}

.toolbar {
  margin-bottom: 12px;
}

.toolbar.compact {
  justify-content: flex-end;
}

#productManagement > .toolbar:first-child {
  display: grid;
  grid-template-columns: minmax(280px, 520px) max-content;
  align-items: center;
  justify-content: start;
  gap: 8px;
  margin-bottom: 10px;
}

#productManagement > .toolbar:first-child .search-box {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 5px;
}

#productManagement > .toolbar:first-child .search-box input {
  min-height: 32px;
  padding: 0 4px;
  font-size: 12px;
}

#productManagement > .toolbar:first-child .search-box span {
  font-size: 13px;
}

#productManagement > .toolbar:first-child select,
#productManagement > .toolbar:first-child .secondary-button {
  min-height: 34px;
  font-size: 12px;
}

#productManagement > .toolbar:first-child .secondary-button {
  padding: 0 12px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  #productManagement > .toolbar:first-child {
    grid-template-columns: minmax(220px, 1fr) max-content;
  }

  #productManagement > .toolbar:first-child .secondary-button {
    justify-self: start;
  }
}

.date-filter-toolbar {
  align-items: center;
  gap: 8px;
  margin-top: -4px;
}

.date-field {
  display: inline-grid;
  grid-template-columns: 1fr;
  gap: 3px;
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.date-field input {
  width: 154px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #cfd8e3;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}

.column-settings {
  margin-bottom: 14px;
}

.column-settings-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.column-setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.column-setting-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #233142;
  font-size: 13px;
  font-weight: 750;
}

.column-setting-item input {
  min-height: auto;
}

.column-order-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 280px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
}

select,
input,
textarea {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

select,
input {
  padding: 0 11px;
}

textarea {
  min-height: 78px;
  padding: 10px 11px;
  resize: vertical;
}

.primary-button,
.secondary-button,
.danger-button,
.icon-button,
.table-action {
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 750;
}

.primary-button {
  padding: 0 14px;
  color: #fff;
  background: var(--brand);
}

.primary-button:hover {
  background: var(--brand-dark);
}

.secondary-button {
  padding: 0 12px;
  color: #17324d;
  background: #dfeaf2;
}

.danger-button {
  padding: 0 12px;
  color: #fff;
  background: var(--danger);
}

.icon-button {
  display: inline-grid;
  width: 40px;
  padding: 0;
  place-items: center;
  color: #17202a;
  background: #dfeaf2;
  font-size: 20px;
}

.table-panel {
  padding: 0;
  overflow: hidden;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.shops-table-wrap {
  max-width: 100%;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.shops-table {
  min-width: 1280px;
}

.shops-table th,
.shops-table td {
  white-space: nowrap;
}

.shops-table .wide-cell {
  min-width: 260px;
}

.order-table-wrap {
  max-height: calc(100vh - 330px);
  overflow: auto;
}

table {
  width: 100%;
  min-width: max-content;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  position: sticky;
  top: 0;
  z-index: 2;
  min-width: 96px;
  color: #4b5a6a;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.table-filter-row th {
  top: 46px;
  z-index: 1;
  padding: 8px;
  background: #fff;
}

.table-filter {
  width: 100%;
  min-width: 92px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
}

.table-filter-range {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) minmax(64px, 1fr);
  gap: 6px;
  min-width: 146px;
}

td {
  min-width: 96px;
  font-size: 14px;
}

.wide-cell {
  min-width: 220px;
  line-height: 1.5;
}

.finance-bill-tabs {
  display: flex;
  gap: 16px;
  align-items: end;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface);
}

.finance-bill-tabs button {
  height: 46px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.finance-bill-tabs button.active {
  color: var(--danger);
  border-color: var(--danger);
}

.finance-notice {
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #f7f9fb;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.finance-notice strong {
  margin-right: 6px;
  color: var(--ink);
}

.finance-bill-query {
  display: grid;
  grid-template-columns: repeat(4, minmax(136px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
}

.finance-bill-query label span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.finance-query-actions {
  display: flex;
  gap: 10px;
}

.finance-bill-actions {
  margin-top: 10px;
}

.finance-bill-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 12px;
  border: 1px solid #ff9db7;
  border-radius: 8px;
  overflow: hidden;
}

.finance-bill-summary > div {
  min-width: 0;
  min-height: 78px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.finance-bill-summary > div:last-child {
  border-right: 0;
}

.finance-bill-summary span,
.finance-bill-summary small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.finance-bill-summary strong {
  display: block;
  max-width: 100%;
  margin: 6px 0 3px;
  color: var(--danger);
  font-size: clamp(15px, 1.5vw, 20px);
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#settlementDateRange {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.finance-status-heading,
.finance-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 10px;
}

.finance-status-heading h2,
.finance-detail-heading h2 {
  margin: 0;
  font-size: 14px;
}

.finance-status-heading span,
.finance-detail-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.order-status-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.order-status-card {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--danger);
  border-radius: 8px;
  background: #fff;
}

.order-status-card.aftersale {
  border-top-color: var(--teal);
}

.order-status-card.pending {
  border-top-color: #f59e0b;
}

.order-status-card.only-refund {
  border-top-color: #d946ef;
}

.order-status-card.confirmed {
  border-top-color: #16a34a;
}

.order-status-card span,
.order-status-card small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.order-status-card strong {
  display: block;
  margin: 6px 0 3px;
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.finance-summary-table {
  margin-bottom: 12px;
}

.daily-profit-toolbar {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.daily-profit-store-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 10px;
}

.daily-profit-store {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 82px;
  padding: 12px 14px;
  border: 1px solid #dfe8f1;
  border-radius: var(--radius);
  background: #fbfdff;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.daily-profit-store:hover,
.daily-profit-store.active {
  border-color: var(--teal);
  box-shadow: 0 8px 20px rgba(12, 99, 114, 0.12);
  transform: translateY(-1px);
}

.daily-profit-store span,
.daily-profit-store strong,
.daily-profit-store small {
  display: block;
}

.daily-profit-store span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.daily-profit-store strong {
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.1;
  white-space: nowrap;
}

.daily-profit-store small {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 7px;
  margin-top: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.daily-profit-store small b {
  color: var(--muted);
  font-weight: 850;
}

.empty-card {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.tmall-account-panel {
  margin-bottom: 14px;
}

.tmall-account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 14px;
  margin-bottom: 14px;
}

.tmall-account-cards {
  margin-bottom: 0;
}

.tmall-account-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 16px 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.tmall-account-filters label {
  display: grid;
  gap: 6px;
  min-width: 180px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tmall-account-filters input,
.tmall-account-filters select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.tmall-account-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tmall-account-import-hint {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tmall-account-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--ink);
}

.tmall-account-formula > b {
  color: var(--muted);
  font-size: 18px;
}

.tmall-account-method-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: -4px 0 18px;
  padding: 13px 14px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.tmall-account-method-note b {
  flex: 0 0 auto;
  color: var(--ink);
  white-space: nowrap;
}

.tmall-account-method-note span {
  min-width: 0;
}

.product-management-note {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 10px;
  line-height: 1.5;
  margin: 0;
  padding: 12px 14px;
}

.product-management-note b {
  color: var(--ink);
  flex: 0 0 auto;
  white-space: nowrap;
}

.product-management-note span {
  min-width: 0;
}

.product-management-note em {
  display: inline;
  margin-left: 8px;
  color: #087f8c;
  font-style: normal;
  font-weight: 800;
}

.product-management-info-band {
  display: grid;
  grid-template-columns: minmax(330px, 0.95fr) minmax(560px, 1.45fr);
  align-items: stretch;
  margin: 0 0 8px;
  overflow: hidden;
  border: 1px solid #cfe3ec;
  border-left: 3px solid #1599a8;
  border-radius: 6px;
  background: #f8fcfd;
}

.product-management-audit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  margin: 0;
  border: 0;
  border-left: 1px solid #dce8ee;
  background: transparent;
}

.product-management-audit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
}

.product-management-audit-head div {
  display: grid;
  gap: 2px;
}

.product-management-audit-head strong {
  color: var(--ink);
  font-size: 13px;
}

.product-management-audit-head span {
  color: var(--muted);
  font-size: 11px;
}

.product-management-audit-head .secondary-button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #d7e2ea;
  background: #fff;
  font-size: 11px;
  white-space: nowrap;
}

.product-management-audit-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 0;
  padding: 5px 6px 5px 0;
}

.product-management-audit-counts span {
  padding: 2px 8px;
  border: 0;
  border-left: 1px solid #dce6ef;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.product-management-audit-counts b {
  display: block;
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 15px;
}

.product-management-audit-counts .audit-warning {
  color: #9a6500;
  background: transparent;
}

.product-management-audit-counts .audit-danger {
  color: #c83939;
  background: transparent;
}

.product-management-audit-panel {
  grid-column: 1 / -1;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.compact-toolbar {
  min-height: 0;
  margin-bottom: 10px;
  padding: 0;
}

.audit-table-wrap {
  max-height: 330px;
}

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

body[data-active-view="productManagement"] .workspace {
  padding-top: 9px;
}

body[data-active-view="productManagement"] .topbar {
  min-height: 42px;
  margin-bottom: 7px;
}

body[data-active-view="productManagement"] .topbar .eyebrow {
  margin-bottom: 2px;
  font-size: 10px;
}

body[data-active-view="productManagement"] .topbar h1 {
  font-size: 20px;
  line-height: 1.15;
}

body[data-active-view="productManagement"] .topbar-actions {
  gap: 7px;
}

body[data-active-view="productManagement"] .topbar-actions .user-chip,
body[data-active-view="productManagement"] .topbar-actions button {
  min-height: 32px;
  font-size: 12px;
}

body[data-active-view="productManagement"] .topbar-actions .icon-button {
  width: 34px;
  font-size: 17px;
}

body[data-active-view="productManagement"] .global-scope-bar {
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(300px, 1fr) auto;
  gap: 7px 12px;
  padding: 7px 10px;
}

body[data-active-view="productManagement"] .global-scope-bar label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

body[data-active-view="productManagement"] .global-scope-bar select {
  width: 100%;
  min-width: 0;
  height: 32px;
  font-size: 12px;
}

body[data-active-view="productManagement"] #globalScopeHint {
  font-size: 11px;
  white-space: nowrap;
}

body[data-active-view="productManagement"] #productManagement > .toolbar:first-child {
  grid-template-columns: minmax(300px, 1fr) 170px max-content;
  margin-bottom: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: #fff;
}

.product-management-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(20, 34, 50, 0.035);
}

.product-management-metrics .metric-card {
  position: relative;
  min-height: 68px;
  padding: 9px 14px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.product-management-metrics .metric-card + .metric-card {
  border-left: 1px solid var(--line);
}

.product-management-metrics .metric-card span {
  font-size: 11px;
  font-weight: 750;
}

.product-management-metrics .metric-card strong {
  margin: 3px 0 2px;
  font-size: 21px;
  line-height: 1;
  white-space: nowrap;
}

.product-management-metrics .metric-card small {
  font-size: 10px;
}

@media (max-width: 1320px) {
  .product-management-info-band {
    grid-template-columns: 1fr;
  }

  .product-management-audit {
    border-top: 1px solid #dce8ee;
    border-left: 0;
  }

  body[data-active-view="productManagement"] .global-scope-bar {
    grid-template-columns: repeat(2, minmax(250px, 1fr));
  }

  body[data-active-view="productManagement"] #globalScopeHint {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .product-management-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-management-note em {
    display: block;
    margin: 3px 0 0;
  }

  .product-management-audit {
    grid-template-columns: 1fr;
  }

  .product-management-audit-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0 10px 10px;
  }

  .product-management-audit-counts span {
    border-top: 1px solid #dce6ef;
  }

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

  .product-management-metrics .metric-card:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .product-management-metrics .metric-card:nth-child(4) {
    border-top: 1px solid var(--line);
  }
}

.product-management-tabs {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  margin: 0 0 8px;
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
}

.product-management-tabs button {
  min-height: 34px;
  padding: 0 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.product-management-tabs button.active {
  border-bottom-color: #1585dd;
  color: #0870c9;
}

.product-field-toolbar {
  display: grid;
  gap: 6px;
  margin: 0 0 8px;
  padding: 7px 9px;
  border: 1px solid #d8e3ed;
  border-radius: 6px;
  background: #fff;
}

.product-field-groups,
.product-field-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.product-field-groups button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 0 7px;
  border: 1px solid #d6e1eb;
  border-radius: 5px;
  color: #334b64;
  background: #f8fafc;
  font: inherit;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.product-field-groups button:hover {
  border-color: #9fc9e8;
  color: #0870c9;
  background: #f1f8fd;
}

.product-field-groups button b {
  color: #74869a;
  font-size: 9px;
  font-weight: 700;
}

.product-field-actions {
  padding-top: 6px;
  border-top: 1px solid #edf2f6;
}

.product-field-actions > label:not(.product-daily-toggle) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #607287;
  font-size: 10px;
  font-weight: 750;
}

.product-field-actions input[type="date"] {
  min-height: 29px;
  padding: 0 8px;
  border: 1px solid #cbd8e5;
  border-radius: 5px;
  color: #253b52;
  background: #fff;
  font-size: 11px;
}

.product-date-separator {
  color: #7b8999;
  font-size: 10px;
}

.product-daily-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 29px;
  padding: 0 8px;
  color: #334b64;
  font-size: 11px;
  font-weight: 750;
}

.product-field-toolbar > p {
  margin: 0;
  color: #738398;
  font-size: 10px;
}

.product-field-drawer {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  width: min(410px, 94vw);
  height: 100vh;
  overflow: hidden;
  border-left: 1px solid #cad8e4;
  background: #fff;
  box-shadow: -16px 0 38px rgba(29, 47, 66, 0.16);
}

.product-field-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 14px;
  border-bottom: 1px solid #e2e9ef;
}

.product-field-drawer-head > div {
  display: grid;
  gap: 2px;
}

.product-field-drawer-head h2 {
  margin: 0;
  color: #1e334a;
  font-size: 15px;
}

.product-field-drawer-head span {
  color: #748398;
  font-size: 10px;
}

.product-field-drawer-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 6px;
  padding: 8px 10px;
  border-bottom: 1px solid #e7edf2;
}

.product-field-drawer-tools input {
  min-width: 0;
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid #cad7e3;
  border-radius: 5px;
  font-size: 11px;
}

.product-field-drawer-tools .text-button {
  border: 0;
  color: #0870c9;
  background: transparent;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.product-field-drawer-body {
  height: calc(100vh - 103px);
  overflow-y: auto;
  padding: 0 12px 24px;
}

.product-field-group {
  padding: 9px 0;
  border-bottom: 1px solid #edf2f6;
  scroll-margin-top: 10px;
}

.product-field-group > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.product-field-group > div strong {
  color: #263d54;
  font-size: 12px;
}

.product-field-group > div span {
  color: #7b8999;
  font-size: 10px;
}

.product-field-group label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-height: 25px;
  color: #40546a;
  font-size: 11px;
  cursor: pointer;
}

.product-unified-filters {
  margin: 0 0 8px;
  border: 1px solid #d8e3ed;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.product-filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  padding: 7px 12px;
  border-bottom: 1px solid #e3eaf1;
  background: #f7fafc;
}

.product-filter-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.product-filter-heading strong {
  color: #19324a;
  font-size: 13px;
}

.product-filter-heading span {
  color: #708096;
  font-size: 11px;
}

.product-filter-heading .text-button {
  border: 0;
  color: #0870c9;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.product-filter-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-filter-toggle {
  display: none;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #b9d4e7;
  border-radius: 5px;
  color: #0870c9;
  background: #f3f9fd;
  font-size: 11px;
  font-weight: 800;
}

.product-quick-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid #e3eaf1;
  background: #fff;
}

.product-quick-filter {
  min-width: 0;
  padding: 10px 12px;
}

.product-quick-filter + .product-quick-filter {
  border-left: 1px solid #e3eaf1;
}

.product-quick-filter-title {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 6px;
}

.product-quick-filter-title strong {
  color: #19324a;
  font-size: 12px;
}

.product-quick-filter-title span {
  overflow: hidden;
  color: #7a899b;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-quick-filter-controls {
  display: grid;
  grid-template-columns: minmax(88px, 1fr) minmax(94px, 1fr) minmax(64px, 0.7fr) minmax(64px, 0.7fr) auto;
  gap: 5px;
}

.product-quick-filter-controls.inventory {
  grid-template-columns: minmax(110px, 1fr) minmax(70px, 0.7fr) minmax(70px, 0.7fr) auto;
}

.product-quick-filter-controls select,
.product-quick-filter-controls input,
.product-quick-filter-controls button {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 10px;
}

.product-quick-filter-controls button {
  width: auto;
  color: #0870c9;
  border-color: #9fc9e8;
  background: #f4faff;
  font-weight: 800;
  white-space: nowrap;
}

.product-advanced-filters {
  border-bottom: 1px solid #e3eaf1;
}

.product-advanced-filters summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  color: #41566e;
  background: #fbfdff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.product-advanced-filters summary::-webkit-details-marker {
  display: none;
}

.product-advanced-filters summary::before {
  content: "\25b8";
  color: #7890a7;
}

.product-advanced-filters[open] summary::before {
  content: "\25be";
}

.product-advanced-filters summary span {
  color: #8795a7;
  font-size: 10px;
  font-weight: 500;
}

.product-filter-builder {
  display: grid;
  grid-template-columns: 136px minmax(150px, 1fr) 126px minmax(130px, 0.8fr) minmax(120px, 0.7fr) auto 174px;
  align-items: end;
  gap: 8px;
  padding: 9px 12px;
}

.product-filter-builder label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.product-filter-builder label > span {
  overflow: hidden;
  color: #64748b;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-filter-builder select,
.product-filter-builder input {
  width: 100%;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid #cbd8e5;
  border-radius: 5px;
  color: #22364d;
  background: #fff;
  font-size: 11px;
}

.product-filter-add {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #0870c9;
  border-radius: 5px;
  color: #fff;
  background: #0870c9;
  font-size: 11px;
  white-space: nowrap;
}

.product-filter-add:hover {
  background: #075fa9;
}

.product-filter-date {
  padding-left: 8px;
  border-left: 1px solid #e3eaf1;
}

.product-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 35px;
  padding: 6px 12px;
  border-top: 1px solid #edf1f5;
  background: #fbfdff;
}

.product-active-filter-label {
  color: #506279;
  font-size: 11px;
  font-weight: 800;
}

.product-active-filters button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid #bcd9ee;
  border-radius: 4px;
  color: #145c87;
  background: #eef8fe;
  font-size: 10px;
  cursor: pointer;
}

.product-active-filters button b {
  color: #52667c;
  font-size: 14px;
  line-height: 1;
}

.product-column-filter {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
}

.product-column-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.product-column-sort {
  display: inline-grid;
  width: 18px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 3px;
  color: #7890a7;
  background: transparent;
  cursor: pointer;
}

.product-column-sort:hover {
  color: #0870c9;
  background: #eef7fd;
}

.product-column-sort.active {
  color: #0870c9;
  background: #e8f5fd;
}

.product-sort-arrows {
  display: grid;
  grid-template-rows: 8px 8px;
  align-items: center;
  justify-items: center;
  width: 14px;
  height: 17px;
  color: #9aabbb;
  line-height: 8px;
}

.product-sort-arrows i {
  height: 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 8px;
}

.product-sort-arrows i.active {
  color: #0870c9;
}

.product-column-filter b {
  color: #7890a7;
  font-size: 10px;
}

.product-column-filter.active {
  color: #0870c9;
}

.product-column-filter.active b {
  color: #0870c9;
}

.product-column-filter-popover {
  position: fixed;
  z-index: 1200;
  width: 286px;
  padding: 12px;
  border: 1px solid #b9cad9;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 50, 77, 0.2);
}

.product-column-filter-popover-head,
.product-column-filter-popover-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-column-filter-popover-head {
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e4ebf1;
}

.product-column-filter-popover-head > div {
  display: grid;
  gap: 2px;
}

.product-column-filter-popover-head small {
  color: #718198;
  font-size: 10px;
}

.product-column-filter-popover-head strong {
  color: #18324a;
  font-size: 13px;
}

.product-column-filter-popover-head button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #51657a;
  background: #eef3f7;
  font-size: 18px;
  cursor: pointer;
}

.product-column-filter-popover > label,
.product-column-filter-value {
  display: grid;
  gap: 4px;
}

.product-column-filter-popover label > span {
  color: #65778c;
  font-size: 10px;
  font-weight: 750;
}

.product-column-filter-popover select,
.product-column-filter-popover input {
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid #c9d6e2;
  border-radius: 5px;
  color: #20364d;
  background: #fff;
  font-size: 12px;
}

.product-column-filter-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.product-column-filter-values .product-column-filter-value:only-child {
  grid-column: 1 / -1;
}

.product-column-filter-popover-actions {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e4ebf1;
}

.product-column-filter-popover-actions button {
  min-height: 32px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}

.product-column-filter-popover-actions .text-button {
  border: 0;
  color: #53687c;
  background: transparent;
}

.product-column-filter-popover-actions .text-button:disabled {
  color: #a0adba;
}

#productManagement:not(.portrait-mode) .product-filter-heading,
#productManagement:not(.portrait-mode) .product-filter-controls {
  display: none;
}

#productManagement:not(.portrait-mode) .product-unified-filters {
  border: 0;
  background: transparent;
}

#productManagement:not(.portrait-mode) .product-active-filters {
  display: none;
  border: 1px solid #d8e3ed;
  border-radius: 6px;
}

#productManagement:not(.portrait-mode) .product-active-filters:has(button) {
  display: flex;
}

@media (max-width: 1320px) {
  .product-quick-filters {
    grid-template-columns: 1fr;
  }

  .product-quick-filter + .product-quick-filter {
    border-top: 1px solid #edf1f5;
    border-left: 0;
  }

  .product-filter-builder {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .product-filter-date {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .product-filter-heading > div {
    display: grid;
    gap: 2px;
  }

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

  .product-quick-filter-controls,
  .product-quick-filter-controls.inventory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

#productManagementTableView table {
  width: max-content;
  min-width: 100%;
}

#productManagementTableView th,
#productManagementTableView td {
  padding: 7px 8px;
  font-size: 11px;
  line-height: 1.35;
  vertical-align: middle;
  white-space: nowrap;
}

#productManagementTableView .wide-cell {
  min-width: 220px;
  width: 240px;
  max-width: 260px;
  white-space: normal;
}

#productManagementTableView th:nth-child(1),
#productManagementTableView td:nth-child(1) {
  min-width: 96px;
  width: auto;
  max-width: none;
}

#productManagementTableView th:nth-child(2),
#productManagementTableView td:nth-child(2) {
  min-width: 96px;
  width: auto;
  max-width: none;
  overflow-wrap: anywhere;
  white-space: normal;
}

#productManagementTableView th:nth-child(3),
#productManagementTableView td:nth-child(3) {
  min-width: 112px;
}

#productManagementTableView th:nth-child(4),
#productManagementTableView td:nth-child(4) {
  min-width: 108px;
}

#productManagementTableView th {
  min-width: 88px;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

#productManagementTableView .product-group-header th {
  min-width: 0;
  padding: 5px 8px;
  border-bottom-color: #c9d8e5;
  color: #31516d;
  background: #eef5fa;
  text-align: center;
}

#productManagementTableView .sticky-product-cell {
  position: sticky;
  z-index: 2;
  left: 0;
  border-right: 1px solid #c7d7e4;
  background: #fff;
}

#productManagementTableView thead tr:nth-child(2) th:first-child {
  position: sticky;
  z-index: 4;
  left: 0;
  border-right: 1px solid #c7d7e4;
  background: #f7fafc;
}

#productManagementTableView td:nth-child(2) strong {
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

#productManagementTableView [data-column-type="number"] {
  min-width: 68px;
  width: 72px;
  max-width: 82px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

#productManagementTableView th[data-column-type="number"] .product-column-head {
  justify-content: flex-end;
}

#productManagementTableView [data-column-type="date"] {
  min-width: 92px;
  width: 96px;
  max-width: 104px;
}

#productManagementTableView [data-column-type="id"] {
  min-width: 112px;
  width: 124px;
  max-width: 142px;
}

#productManagementTableView [data-column-id="overview.title"] {
  min-width: 176px;
  width: 196px;
  max-width: 220px;
}

#productManagementTableView [data-column-id="overview.image"] {
  min-width: 54px;
  width: 54px;
  max-width: 54px;
  padding: 4px 9px;
  text-align: center;
}

#productManagementTableView .product-image-cell img {
  display: block;
  width: 34px;
  height: 44px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  object-fit: cover;
}

#productManagementTableView .product-image-cell .muted {
  font-size: 10px;
  white-space: nowrap;
}

.inline-badges,
.product-management-card-title {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.product-management-card-title strong {
  flex: 1;
}

.product-management-detail {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  width: min(460px, 94vw);
  height: 100vh;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -16px 0 38px rgba(29, 47, 66, 0.16);
}

.product-management-detail-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.product-management-detail-head h2 {
  margin: 0;
  font-size: 17px;
}

#productManagementDetailBody {
  padding: 16px 18px 28px;
}

.product-detail-summary {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
}

.product-detail-summary img {
  width: 92px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
}

.product-detail-summary > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.product-detail-summary strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.product-detail-summary span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.product-detail-section {
  margin-top: 18px;
}

.product-detail-section h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 14px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.product-detail-grid div {
  padding: 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-detail-grid dt,
.product-detail-list dt {
  color: var(--muted);
  font-size: 11px;
}

.product-detail-grid dd,
.product-detail-list dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.product-detail-list div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #edf2f7;
}

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

.product-metric-summary div {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border: 1px solid #dce6ef;
  background: #f8fbfd;
}

.product-metric-summary span {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.product-metric-summary strong {
  color: #18324c;
  font-size: 16px;
}

.product-metric-trend {
  display: grid;
  overflow: hidden;
  border: 1px solid #dce6ef;
  background: #fff;
}

.product-metric-trend-day {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 6px 9px;
  border-bottom: 1px solid #edf2f7;
}

.product-metric-trend-day:last-child {
  border-bottom: 0;
}

.product-metric-trend-day time {
  color: #475569;
  font-size: 11px;
  font-weight: 800;
}

.product-metric-day-values {
  display: grid;
  gap: 5px;
}

.product-metric-line {
  display: grid;
  grid-template-columns: 30px 38px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.product-metric-line span {
  color: #64748b;
  font-size: 10px;
}

.product-metric-line strong {
  color: #263b52;
  font-size: 11px;
  text-align: right;
}

.product-metric-line > i {
  display: block;
  height: 7px;
  overflow: hidden;
  background: #edf2f7;
}

.product-metric-line > i b {
  display: block;
  height: 100%;
}

.product-metric-line.visitor > i b {
  background: #0f9aa8;
}

.product-metric-line.sales > i b {
  background: #ef6f6c;
}

.product-metric-rate {
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.product-metric-trend-note {
  margin-top: 6px;
  color: #64748b;
  font-size: 10px;
  text-align: right;
}

.formula-step {
  display: grid;
  gap: 3px;
  min-width: 138px;
}

.formula-step span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.formula-step strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

.formula-step.result {
  padding-left: 12px;
  border-left: 2px solid var(--teal);
}

.formula-step .good {
  color: var(--success);
}

.formula-step .bad {
  color: var(--danger);
}

.tmall-account-cards .metric-card strong {
  font-size: 18px;
}

.tmall-account-cards .metric-card {
  overflow: visible;
}

.tmall-account-cards .metric-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.tmall-account-cards .dashboard-detail-trigger {
  flex: 0 0 auto;
}

.tmall-account-cards .dashboard-detail-popover {
  right: -8px;
}

.account-check-list {
  display: grid;
  gap: 0;
}

.account-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #edf2f7;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.account-line:last-child {
  border-bottom: 0;
}

.account-line b {
  color: var(--ink);
  overflow-wrap: anywhere;
  text-align: right;
}

.account-line b.good,
.tmall-account-cards .good {
  color: var(--success);
}

.account-line b.bad,
.tmall-account-cards .bad {
  color: var(--danger);
}

.tmall-account-cards .blue {
  color: var(--teal);
}

.account-notes {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.jst-auto-sync-panel {
  margin-bottom: 14px;
}

.jst-auto-sync-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.jst-auto-sync-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.jst-auto-sync-card.ok {
  border-left-color: var(--success);
}

.jst-auto-sync-card.bad {
  border-left-color: var(--danger);
}

.jst-auto-sync-card.pending {
  border-left-color: #f59e0b;
}

.jst-auto-sync-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.jst-auto-sync-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.jst-auto-sync-card strong {
  color: var(--ink);
  font-size: 14px;
}

.jst-auto-sync-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.jst-auto-sync-card p {
  margin: 6px 0 0;
  color: #4b5a6a;
  font-size: 12px;
  line-height: 1.45;
}

.finance-summary-table table {
  min-width: 980px;
}

.finance-summary-table th,
.finance-summary-table td {
  min-width: 84px;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.35;
}

.finance-summary-table .money-plus,
.finance-summary-table .money-minus {
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

#finance .shops-table th,
#finance .shops-table td {
  padding: 9px 10px;
  font-size: 12px;
}

#finance .summary-pills span {
  padding: 5px 8px;
  font-size: 11px;
}

.product-analysis-panel {
  margin-top: 14px;
}

.product-analysis-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.product-analysis-summary span {
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--surface-soft);
}

.view-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.view-mode-toggle .secondary-button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  background: transparent;
}

.view-mode-toggle .secondary-button.active {
  color: #17324d;
  background: var(--surface-soft);
}

.product-management-portrait-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
}

.product-management-portrait-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.product-management-portrait-image {
  display: grid;
  aspect-ratio: 9 / 16;
  width: 100%;
  place-items: center;
  overflow: hidden;
  background: #f3f6f9;
}

.product-management-portrait-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-management-portrait-image.image-load-error::after {
  content: "图片加载失败";
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.product-management-portrait-body {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 8px;
}

.product-management-portrait-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-management-portrait-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.product-management-portrait-meta span {
  overflow-wrap: anywhere;
}

.product-management-portrait-meta b {
  color: #405168;
}

.product-management-id-scope {
  color: #087f8c;
  font-size: 11px;
  font-weight: 800;
}

.product-portrait-groups {
  display: grid;
  border-top: 1px solid var(--line);
}

.product-portrait-groups details {
  border-bottom: 1px solid var(--line);
}

.product-portrait-groups summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  padding: 0 6px;
  color: #334b64;
  background: #f8fafc;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.product-portrait-groups summary span {
  color: #8290a0;
  font-size: 9px;
}

.product-management-id-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.product-management-id-metrics > div {
  min-width: 0;
  padding: 6px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-management-id-metrics dt,
.product-management-id-metrics dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.product-management-id-metrics dt {
  color: var(--muted);
  font-size: 10px;
}

.product-management-id-metrics dd {
  padding-top: 2px;
  color: #8793a4;
  font-size: 11px;
}

.product-management-id-metrics .metric-ready dd {
  color: var(--ink);
  font-weight: 800;
}

.product-management-id-metrics .filtered-metric {
  background: #eef8fe;
  box-shadow: inset 3px 0 0 #1585dd;
}

.product-management-id-metrics .filtered-metric dt,
.product-management-id-metrics .filtered-metric dd {
  color: #0870c9;
}

#productManagement.portrait-mode .product-unified-filters {
  border-color: #c9dcea;
}

#productManagement.portrait-mode .product-filter-heading {
  background: #f5faff;
}

#productManagement.portrait-mode .product-filter-toggle {
  display: inline-flex;
  align-items: center;
}

#productManagement.portrait-mode .product-filter-controls {
  display: none;
}

#productManagement.portrait-mode.portrait-filters-open .product-filter-controls {
  display: block;
}

#productManagement.portrait-mode .product-management-portrait-grid {
  align-items: start;
}

.product-management-portrait-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 3px;
}

.product-management-portrait-footer .money-plus,
.product-management-portrait-footer .money-minus {
  font-size: 13px;
}

@media (max-width: 700px) {
  .product-management-portrait-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.product-gallery-horizontal {
  display: block;
  min-width: 0;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.product-image-frame {
  display: grid;
  aspect-ratio: 9 / 16;
  width: 100%;
  place-items: center;
  overflow: hidden;
  background: #f3f6f9;
}

.product-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image-frame.image-load-error::after {
  content: "图片加载失败";
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.product-row-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.product-analysis-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  scrollbar-width: thin;
}

.product-analysis-table {
  min-width: 1460px;
}

.product-analysis-table th {
  top: 0;
  height: 40px;
  font-size: 12px;
  white-space: nowrap;
}

.product-analysis-table td {
  height: 76px;
  white-space: nowrap;
}

.product-analysis-table th,
.product-analysis-table td {
  min-width: 116px;
}

.product-analysis-product-th,
.product-analysis-product-cell {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 360px;
  background: #fff;
}

.product-analysis-product-th {
  z-index: 4;
  background: #f8fafc;
}

.product-row-product {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 340px;
}

.product-row-image-frame {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f3f6f9;
}

.product-row-image-frame img {
  width: 58px;
  height: 58px;
  object-fit: cover;
}

.product-row-image-frame.image-load-error::after {
  content: "图片失败";
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.product-row-content {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.product-row-title {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.product-row-title strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-row-title span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-row-title small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sort-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #4b5a6a;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.sort-header span {
  color: #9eb0c2;
  font-size: 13px;
}

.sort-header.active,
.sort-header.active span {
  color: var(--brand);
}

.product-row-scroll {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.product-row-cell,
.product-row-actions {
  flex: 0 0 108px;
  min-height: 50px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.product-row-cell {
  display: grid;
  align-content: center;
  gap: 5px;
}

.product-row-cell-wide {
  flex-basis: 220px;
}

.product-row-cell span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.product-row-cell b {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-row-cell .metric-danger {
  color: var(--brand);
}

.product-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-basis: 286px;
}

.product-analysis-table .product-row-actions {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  flex-basis: auto;
}

.product-row-actions button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 10px;
  font-size: 13px;
  white-space: nowrap;
}

.product-card-body {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.product-card-body strong {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.product-id-lines {
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.product-id-lines span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

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

.product-metric-grid div {
  display: grid;
  gap: 7px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.product-metric-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.product-metric-grid b {
  color: var(--ink);
  font-size: 19px;
}

.product-metric-grid .metric-danger {
  color: var(--brand);
}

.product-card-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.product-sku-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-sku-chips span {
  max-width: 46%;
  overflow: hidden;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.product-card-actions button {
  min-height: 36px;
  padding: 0 8px;
  font-size: 13px;
  white-space: nowrap;
}

.insight-anchor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-insight-hero-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.product-insight-image {
  display: grid;
  width: 180px;
  aspect-ratio: 9 / 16;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.product-insight-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-insight-hero h2 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.25;
}

.product-insight-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.product-insight-metrics div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.product-insight-metrics span,
.product-insight-metrics b {
  display: block;
}

.product-insight-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-insight-metrics b {
  margin-top: 8px;
  font-size: 18px;
}

.product-insight-sections {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.product-insight-section {
  scroll-margin-top: 22px;
}

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

.product-ai-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.product-ai-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-ai-panel-header strong {
  font-size: 16px;
}

.product-ai-result {
  min-height: 92px;
  white-space: pre-wrap;
  line-height: 1.7;
  color: var(--text);
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 750;
}

.pagination-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

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

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

.money-plus {
  color: var(--green);
  font-weight: 800;
}

.money-minus {
  color: var(--danger);
  font-weight: 800;
}

.table-action {
  min-height: 32px;
  padding: 0 10px;
  color: #17324d;
  background: #e8eff5;
  font-size: 12px;
}

.table-actions {
  display: flex;
  gap: 7px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  background: rgba(18, 24, 32, 0.52);
  overflow: auto;
}

.modal {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  margin: auto 0;
  max-height: min(760px, 92vh);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.28);
}

.modal-heading {
  z-index: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  overflow: auto;
}

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

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: #3b4652;
  font-size: 13px;
  font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.form-section-title {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--teal);
  font-size: 14px;
  font-weight: 850;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  grid-column: 1 / -1;
  padding-top: 6px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 15px;
  border-radius: var(--radius);
  color: #fff;
  background: #17202a;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.data-loading-bar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 35;
  width: min(460px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -18px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.data-loading-bar.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.data-loading-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #17202a;
  font-size: 14px;
}

.data-loading-copy strong,
.data-loading-copy span {
  white-space: nowrap;
}

.data-loading-track {
  height: 8px;
  margin: 9px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3f8;
}

.data-loading-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #087f8c, #d71920);
  transition: width 0.2s ease;
}

.data-loading-bar small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.data-loading-bar.error .data-loading-track i {
  background: #d43f31;
}

.import-progress {
  margin: -4px 0 18px;
  padding: 13px 14px;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.import-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #17202a;
  font-size: 14px;
}

.import-progress-copy strong,
.import-progress-copy span {
  white-space: nowrap;
}

.import-progress-track {
  height: 8px;
  margin: 9px 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf3f8;
}

.import-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #087f8c, #d71920);
  transition: width 0.2s ease;
}

.import-progress small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.import-progress.error .import-progress-track i {
  background: #d43f31;
}

.import-progress.done .import-progress-track i {
  background: #16a05d;
}

.hidden {
  display: none !important;
}

.report-actions {
  justify-content: flex-end;
}

.image-tool {
  display: grid;
  gap: 12px;
}

.image-tool input[type="file"] {
  width: 100%;
  padding: 8px 10px;
}

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

.image-options label {
  display: grid;
  gap: 6px;
  color: #3b4652;
  font-size: 13px;
  font-weight: 750;
}

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

.image-job {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.image-job span {
  color: var(--muted);
  font-size: 12px;
}

.ai-panel {
  margin-top: 12px;
  padding: 11px;
}

.ai-panel .panel-heading {
  align-items: center;
  margin-bottom: 9px;
}

.ai-panel .panel-heading h2 {
  font-size: 14px;
  line-height: 1.2;
}

.ai-panel .panel-heading span {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
}

.ai-actions .primary-button {
  min-height: 32px;
  padding: 0 13px;
  font-size: 12px;
  border-radius: var(--radius);
}

.ai-actions .muted {
  font-size: 11px;
  line-height: 1.4;
}

.ai-result {
  min-height: 72px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.55;
}

.ai-chat {
  display: grid;
  gap: 9px;
  max-height: 320px;
  margin-top: 12px;
  overflow: auto;
}

.ai-chat-message {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.ai-chat-message strong {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font-size: 13px;
}

.ai-chat-message p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
}

.ai-chat-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 12px;
}

.product-mini {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 34px minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}

.product-mini img {
  aspect-ratio: 3 / 4;
  border: 1px solid #e2e8f0;
  border-radius: 5px;
  height: 44px;
  object-fit: cover;
  width: 34px;
}

.product-mini-info {
  display: grid;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.product-mini-info strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-mini-info span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.product-mini-info b {
  margin-right: 6px;
  color: #334155;
  font-weight: 800;
}

.needs-attention-row {
  background: #fff7f7;
}

.app-shell.erp-layout {
  grid-template-columns: 156px 252px minmax(0, 1fr);
  background: #f4f8fb;
}

.erp-layout .sidebar {
  width: 156px;
  padding: 18px 10px;
  overflow-y: auto;
  overflow-x: hidden;
  color: #26384f;
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 10px 0 28px rgba(21, 39, 63, 0.04);
}

.erp-layout .brand {
  justify-content: flex-start;
  min-height: 64px;
  margin: 0 4px 16px;
}

.erp-layout .brand > div:not(.brand-mark) {
  display: block;
}

.erp-layout .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(215, 25, 32, 0.18);
}

.erp-layout .nav-list {
  gap: 5px;
}

.erp-layout .nav-item {
  justify-content: flex-start;
  flex-direction: row;
  gap: 9px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 8px;
  color: #26384f;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
  word-break: keep-all;
  overflow: hidden;
}

.erp-layout .nav-item span {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: #91a0b4;
  font-size: 11px;
  line-height: 1;
}

.erp-layout .nav-item b,
.erp-layout .nav-submenu {
  display: none !important;
}

.erp-layout .all-store-nav > summary {
  min-height: 42px;
  padding: 0 10px;
  color: #26384f;
  font-size: 13px;
  font-weight: 750;
}
.erp-layout .all-store-nav > summary span,
.erp-layout .all-store-nav > summary b { color: #91a0b4; }
.erp-layout .all-store-nav > summary:hover,
.erp-layout .all-store-nav[open] > summary { color: #0876cb; background: #eaf6ff; }
.erp-layout .all-store-nav[open] .nav-submenu {
  display: grid !important;
  margin: 2px 0 6px 12px;
}
.erp-layout .all-store-nav .nav-subitem { color: #26384f; }
.erp-layout .all-store-nav .nav-subitem:hover { color: #0876cb; background: #eaf6ff; }

.erp-layout .nav-item:hover,
.erp-layout .nav-item.active {
  color: #0876cb;
  background: #eaf6ff;
  box-shadow: inset 3px 0 0 #0784d8;
}

.erp-layout .nav-item:hover span,
.erp-layout .nav-item.active span {
  color: #0784d8;
}

.module-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 18px 24px;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 12px 0 32px rgba(21, 39, 63, 0.04);
}

.module-rail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: #192332;
}

.module-rail-heading strong {
  font-size: 16px;
}

.module-rail-settings {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  color: #506174;
  background: #f1f5f9;
}

.module-quick-list {
  display: grid;
  gap: 4px;
}

.module-quick-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  color: #273445;
  background: transparent;
  font-weight: 650;
  text-align: left;
}

.module-quick-item:hover,
.module-quick-item.active {
  color: #0784d8;
  background: #edf7ff;
}

.module-quick-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
}

.module-rail-empty {
  margin-top: 8px;
  padding: 14px 12px;
  border-radius: 8px;
  color: #7a8797;
  background: #f4f8fb;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.module-rail-fold {
  position: absolute;
  top: 50%;
  right: -15px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #7b8794;
  background: #fff;
  box-shadow: 0 8px 22px rgba(30, 49, 75, 0.12);
}

.erp-layout .workspace {
  padding: 24px 28px 34px;
  background: #f4f8fb;
}

.erp-layout .topbar {
  align-items: center;
  min-height: 58px;
  margin-bottom: 22px;
}

.erp-layout .global-scope-bar,
.erp-layout .panel,
.erp-layout .metric-card,
.erp-function-workbench {
  border-color: #dfe8ef;
  box-shadow: 0 10px 28px rgba(22, 42, 65, 0.04);
}

.erp-function-workbench {
  margin-bottom: 18px;
  padding: 28px 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.erp-workbench-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.erp-workbench-heading h2 {
  margin: 0 0 5px;
  font-size: 22px;
}

.erp-workbench-heading span {
  color: var(--muted);
  font-weight: 650;
}

.erp-function-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 46px;
}

.erp-function-group {
  display: grid;
  align-content: start;
  gap: 9px;
}

.erp-function-group h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.erp-function-link {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  color: #273445;
  background: transparent;
  font-weight: 700;
  text-align: left;
}

.erp-function-link:hover {
  color: #0784d8;
}

.erp-function-link span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1.7px solid currentColor;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 850;
}

.erp-function-link b {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 7px;
  border-radius: 999px;
  color: #e12835;
  background: #fff0f2;
  font-size: 12px;
  line-height: 1;
}

@media (max-width: 1080px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.erp-layout {
    grid-template-columns: 132px 220px minmax(720px, 1fr);
    overflow-x: auto;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .erp-layout .sidebar {
    position: sticky;
    height: 100vh;
    width: 132px;
  }

  .module-rail {
    display: block;
    min-width: 220px;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .erp-layout .nav-list {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .dashboard-kpi-grid,
  .dashboard-layout,
  .report-grid,
  .operations-grid,
  .daily-workbench,
  .erp-function-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-filter-panel {
    grid-template-columns: 1fr;
  }

  .dashboard-filter-toolbar {
    padding-right: 0;
  }

  .dashboard-filter-top span {
    position: static;
    margin-left: auto;
  }
}

@media (max-width: 720px) {
  .login-screen {
    padding: 28px 18px;
  }

  .login-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .login-intro h1 {
    font-size: 34px;
  }

  .login-copy {
    font-size: 14px;
  }

  .login-stat-grid {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 24px;
  }

  .workspace {
    padding: 18px;
  }

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

  .global-scope-bar,
  .global-scope-bar label,
  .global-scope-bar select,
  .dashboard-filter-toolbar .secondary-button,
  .dashboard-filter-toolbar select,
  .dashboard-filter-toolbar .date-field,
  .dashboard-filter-toolbar .date-field input {
    width: 100%;
  }

  .nav-list,
  .metric-grid,
  .dashboard-kpi-grid,
  .jst-auto-sync-grid,
  .erp-sync-config,
  .erp-sync-task-grid,
  .erp-sync-check-grid,
    .dashboard-layout,
    .report-grid,
    .operations-grid,
    .erp-function-grid,
    .daily-workbench,
    .image-options,
    .form-grid {
    grid-template-columns: 1fr;
  }

  .app-shell.erp-layout {
    grid-template-columns: 1fr;
  }

  .erp-layout .sidebar {
    position: static;
    width: auto;
    height: auto;
  }

  .erp-layout .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .erp-workbench-heading {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-heading span {
    align-self: start;
    white-space: normal;
  }

  h1 {
    font-size: 25px;
  }

  .erp-sync-task {
    align-items: flex-start;
    flex-direction: column;
  }

  .erp-sync-task-side {
    width: 100%;
    justify-content: space-between;
  }
}

/* DAILY_PROFIT_COMPACT */
[data-finance-panel="dailyProfit"] { font-size: 13px; }
[data-finance-panel="dailyProfit"] > .panel { padding: 14px 16px; margin-bottom: 12px; }
[data-finance-panel="dailyProfit"] .panel-heading { margin-bottom: 12px; gap: 12px; }
[data-finance-panel="dailyProfit"] .panel-heading h2 { font-size: 16px; }
[data-finance-panel="dailyProfit"] .panel-heading > span { font-size: 12px; }
[data-finance-panel="dailyProfit"] .daily-profit-toolbar { padding: 0; gap: 8px; margin: 0 0 12px; }
[data-finance-panel="dailyProfit"] .toolbar :is(input,select,button) { min-height: 34px; height: 34px; font-size: 13px; padding: 5px 10px; }
[data-finance-panel="dailyProfit"] .daily-profit-kpis { gap: 10px; margin: 0 0 10px; }
[data-finance-panel="dailyProfit"] .dashboard-kpi-card { min-height: 100px; padding: 12px; border-radius: 6px; }
[data-finance-panel="dailyProfit"] .dashboard-kpi-head { font-size: 13px; margin-bottom: 6px; }
[data-finance-panel="dailyProfit"] .dashboard-kpi-body { gap: 4px; }
[data-finance-panel="dailyProfit"] .dashboard-kpi-body strong { font-size: 25px; line-height: 1.25; }
[data-finance-panel="dailyProfit"] .dashboard-kpi-body small { font-size: 12px; min-height: 0; }
[data-finance-panel="dailyProfit"] .dashboard-sparkline { display: none; }
[data-finance-panel="dailyProfit"] .daily-profit-method-note { padding: 8px 10px; gap: 8px; font-size: 12px; }
[data-finance-panel="dailyProfit"] .daily-profit-store-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
[data-finance-panel="dailyProfit"] .daily-profit-store { padding: 10px 12px; min-height: 0; gap: 6px; border-radius: 6px; }
[data-finance-panel="dailyProfit"] .daily-profit-store > span { font-size: 13px; }
[data-finance-panel="dailyProfit"] .daily-profit-store > strong { font-size: 19px; }
[data-finance-panel="dailyProfit"] .daily-profit-store small { font-size: 12px; gap: 4px 8px; }
[data-finance-panel="dailyProfit"] .finance-summary-table table { width: max-content; min-width: 100%; table-layout: auto; }
[data-finance-panel="dailyProfit"] .finance-summary-table :is(th,td) { padding: 8px 10px; height: auto; font-size: 13px; white-space: nowrap; }
[data-finance-panel="dailyProfit"] .finance-summary-table td:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; }
.profit-column-filter { display: inline-flex; align-items: center; border: 0; padding: 0; background: transparent; color: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.profit-column-filter.filtered { color: #087fc0; }
.profit-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.profit-filter-chips:empty { display: none; }
.profit-filter-chips button { border: 1px solid #b4d7ec; background: #eff8ff; color: #185b83; border-radius: 4px; padding: 4px 8px; font-size: 12px; cursor: pointer; }
.profit-filter-popup { position: fixed; z-index: 3000; width: 300px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow: auto; padding: 16px; box-sizing: border-box; background: #fff; border: 1px solid #c9d8e3; border-radius: 6px; box-shadow: 0 8px 30px #182c4526; color: #203446; font-size: 13px; }
.profit-filter-popup > strong { display: block; margin-bottom: 12px; font-size: 15px; }
.profit-filter-popup > label { display: block; margin-bottom: 10px; }
.profit-filter-popup > label > :is(input,select) { display: block; width: 100%; height: 34px; padding: 5px 8px; margin-top: 5px; border: 1px solid #cbd7e1; border-radius: 4px; box-sizing: border-box; font-size: 13px; }
.profit-filter-popup [hidden] { display: none !important; }
.profit-store-options { max-height: 220px; overflow: auto; margin: 8px 0; }
.profit-store-options label { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.profit-store-options input { width: 15px; height: 15px; }
.profit-filter-error { color: #bf3030; font-size: 12px; margin: 8px 0; }
.profit-filter-actions { display: flex; justify-content: flex-end; gap: 6px; }
.profit-filter-actions button { font-size: 12px; padding: 6px 10px; border: 1px solid #cbd7e1; background: #fff; border-radius: 4px; cursor: pointer; }
.profit-filter-actions button[type="submit"] { background: #087fc0; border-color: #087fc0; color: #fff; }
@media(max-width:1000px) { [data-finance-panel="dailyProfit"] .daily-profit-store-list { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { [data-finance-panel="dailyProfit"] .daily-profit-store-list { grid-template-columns: 1fr; } [data-finance-panel="dailyProfit"] .daily-profit-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); } }

/* DAILY_PROFIT_LEDGER */
[data-finance-panel="dailyProfit"] { font-size:12px; }
[data-finance-panel="dailyProfit"] > .panel { padding:6px 8px; margin:0 0 6px; border-radius:0; box-shadow:none; border:0; }
[data-finance-panel="dailyProfit"] .panel-heading { margin:0 0 6px; min-height:22px; gap:8px; }
[data-finance-panel="dailyProfit"] .panel-heading h2 { font-size:14px; line-height:20px; margin:0; }
[data-finance-panel="dailyProfit"] .panel-heading > span { font-size:11px; line-height:16px; }
[data-finance-panel="dailyProfit"] .daily-profit-toolbar { margin:0 0 6px; gap:6px; }
[data-finance-panel="dailyProfit"] .toolbar :is(input,select,button) { height:28px; min-height:28px; padding:3px 8px; font-size:12px; border-radius:4px; }
[data-finance-panel="dailyProfit"] .daily-profit-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin:0; border-top:1px solid #e2e8ee; border-bottom:1px solid #e2e8ee; }
[data-finance-panel="dailyProfit"] .dashboard-kpi-card { display:flex; align-items:center; gap:10px; min-height:44px; padding:6px 12px; border:0; border-right:1px solid #e2e8ee; border-radius:0; box-shadow:none; background:transparent; }
[data-finance-panel="dailyProfit"] .dashboard-kpi-card:last-child { border-right:0; }
[data-finance-panel="dailyProfit"] .dashboard-kpi-head { margin:0; gap:6px; font-size:12px; flex-shrink:0; }
[data-finance-panel="dailyProfit"] .dashboard-kpi-tools { display:none; }
[data-finance-panel="dailyProfit"] .dashboard-kpi-body { display:block; margin:0; min-width:0; }
[data-finance-panel="dailyProfit"] .dashboard-kpi-body strong { font-size:18px; line-height:24px; white-space:nowrap; }
[data-finance-panel="dailyProfit"] .dashboard-kpi-body small { display:none; }
[data-finance-panel="dailyProfit"] .daily-profit-method-note { margin:4px 0 0; padding:3px 0; border:0; background:none; font-size:11px; line-height:16px; }
[data-finance-panel="dailyProfit"] .daily-profit-store-list { display:block; }
[data-finance-panel="dailyProfit"] .profit-store-table { width:100%; border-collapse:collapse; table-layout:auto; font-size:12px; }
[data-finance-panel="dailyProfit"] .profit-store-table :is(th,td) { padding:2px 6px; height:24px; line-height:18px; border-bottom:1px solid #e5ebf0; white-space:nowrap; }
[data-finance-panel="dailyProfit"] .profit-store-table th { font-size:12px; font-weight:600; background:#f3f6f9; }
[data-finance-panel="dailyProfit"] .profit-store-table :is(th,td):not(:first-child) { text-align:right; font-variant-numeric:tabular-nums; }
[data-finance-panel="dailyProfit"] .profit-store-table button { border:0; padding:0; background:none; color:inherit; font-size:12px; text-align:left; cursor:pointer; }
[data-finance-panel="dailyProfit"] .profit-store-table button.active { color:#087fc0; font-weight:600; }
[data-finance-panel="dailyProfit"] .table-wrap { margin:0; }
[data-finance-panel="dailyProfit"] .finance-summary-table table { width:max-content; min-width:100%; table-layout:auto; }
[data-finance-panel="dailyProfit"] .finance-summary-table th { padding:3px 5px; height:26px; font-size:12px; line-height:18px; }
[data-finance-panel="dailyProfit"] .finance-summary-table td { padding:2px 5px; height:24px; font-size:12px; line-height:18px; }
[data-finance-panel="dailyProfit"] .profit-column-filter { font-size:12px; }
[data-finance-panel="dailyProfit"] .profit-filter-chips { gap:4px; margin:0 0 4px; }
[data-finance-panel="dailyProfit"] .profit-filter-chips button { padding:2px 6px; font-size:11px; }
.profit-filter-popup { width:240px; padding:10px; font-size:12px; }
.profit-filter-popup > strong { font-size:13px; margin-bottom:8px; }
.profit-filter-popup > label { margin-bottom:6px; }
.profit-filter-popup > label > :is(input,select) { height:28px; font-size:12px; margin-top:3px; padding:3px 6px; }
.profit-filter-actions { gap:4px; }
.profit-filter-actions button { padding:4px 6px; font-size:11px; }
@media(max-width:1100px) { [data-finance-panel="dailyProfit"] .dashboard-kpi-card { flex-direction:column; align-items:flex-start; gap:0; } }
@media(max-width:650px) { [data-finance-panel="dailyProfit"] .daily-profit-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } [data-finance-panel="dailyProfit"] .dashboard-kpi-card { border-bottom:1px solid #e2e8ee; padding:6px 8px; } [data-finance-panel="dailyProfit"] .daily-profit-store-list { overflow-x:auto; } [data-finance-panel="dailyProfit"] .panel-heading { flex-wrap:wrap; } }

/* 生意参谋商品日数据 */
.sycm-hero { background:linear-gradient(135deg,#fff 0%,#f2f7ff 100%); }
.sycm-sync-state { display:inline-flex; align-items:center; min-height:32px; padding:0 14px; border-radius:999px; color:#2259c7; background:#eaf1ff; font-size:13px; font-weight:700; }
.sycm-filter-grid { display:grid; grid-template-columns:repeat(5,minmax(140px,1fr)) auto; gap:12px; align-items:end; }
.sycm-filter-grid label { display:grid; gap:7px; color:#5a6780; font-size:13px; font-weight:700; }
.sycm-filter-grid :is(input,select) { width:100%; min-height:42px; padding:0 12px; border:1px solid #d8e0ef; border-radius:10px; color:#18233a; background:#fff; }
.sycm-filter-actions { display:flex; gap:8px; }
.sycm-metric-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
.sycm-chart { min-height:280px; overflow-x:auto; }
.sycm-chart svg { width:100%; min-width:720px; height:270px; }
.sycm-grid line { stroke:#e6ebf4; stroke-width:1; }
.sycm-grid text,.sycm-axis-labels text { fill:#7a879d; font-size:11px; }
.sycm-pay-line,.sycm-visitor-line { fill:none; stroke-linecap:round; stroke-linejoin:round; stroke-width:3; }
.sycm-pay-line { stroke:#2d6cdf; }
.sycm-visitor-line { stroke:#16a085; }
.pay-dot { fill:#2d6cdf; }
.visitor-dot { fill:#16a085; }
.sycm-chart-legend { display:flex; justify-content:flex-end; gap:22px; margin-bottom:-6px; color:#65728a; font-size:13px; }
.sycm-chart-legend span::before { content:""; display:inline-block; width:18px; height:3px; margin-right:7px; vertical-align:middle; border-radius:3px; }
.sycm-chart-legend .pay::before { background:#2d6cdf; }
.sycm-chart-legend .visitors::before { background:#16a085; }
.sycm-empty { display:grid; place-items:center; min-height:240px; color:#8995a9; }
.sycm-detail-table .sycm-product-name { min-width:300px; max-width:460px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media(max-width:1300px) { .sycm-filter-grid { grid-template-columns:repeat(3,minmax(160px,1fr)); } .sycm-metric-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:820px) { .sycm-filter-grid,.sycm-metric-grid { grid-template-columns:1fr; } .sycm-filter-actions { justify-content:stretch; } .sycm-filter-actions button { flex:1; } }
