:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-soft: #f2f5fb;
  --primary: #2f68f5;
  --primary-dim: #5d85ff;
  --text: #1c2333;
  --muted: #8a93a8;
  --danger: #ff6b59;
  --safe: #20b26b;
  --warning: #ff9c3f;
  --shadow: 0 10px 28px rgba(69, 96, 159, 0.08);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(117, 157, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #f7f9fd 0%, #f3f6fb 100%);
}

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

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 18px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
  backdrop-filter: blur(20px);
  box-shadow:
    inset -1px 0 0 rgba(94, 118, 174, 0.08),
    10px 0 30px rgba(57, 79, 130, 0.035);
  overflow-y: auto;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 12px 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.94) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(94, 118, 174, 0.08),
    0 12px 24px rgba(57, 79, 130, 0.05);
}

.brand-mark {
  width: 58px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(145deg, #5e92ff 0%, #2f68f5 68%, #1358de 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 14px 26px rgba(47, 104, 245, 0.22);
}

.brand-title {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.brand-sub {
  margin-top: 4px;
  color: #8d9ab1;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

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

.nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 254, 0.98) 100%);
  color: #74819a;
  text-align: left;
  padding: 14px 14px 14px 16px;
  min-height: 84px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(104, 128, 182, 0.08),
    0 8px 18px rgba(63, 88, 145, 0.035);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.18s ease;
}

.nav-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(180deg, #f5f8ff 0%, #eef3fb 100%);
  color: #6075a8;
  font-size: 20px;
  font-weight: 900;
  box-shadow:
    inset 0 0 0 1px rgba(86, 115, 185, 0.08),
    0 6px 14px rgba(92, 121, 188, 0.06);
}

.nav-item-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: center;
}

.nav-item-copy strong {
  color: #2c3e63;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.01em;
  word-break: keep-all;
}

.nav-item-copy small {
  color: #96a3ba;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
}

.nav-item.active,
.nav-item:hover {
  background: linear-gradient(135deg, rgba(47, 104, 245, 0.12), rgba(47, 104, 245, 0.035));
  color: #0d57e8;
  transform: translateX(2px);
  box-shadow:
    inset 0 0 0 1px rgba(47, 104, 245, 0.12),
    0 12px 24px rgba(73, 111, 207, 0.1);
}

.nav-item.active::before,
.nav-item:hover::before {
  background: linear-gradient(180deg, #79a7ff 0%, #2f68f5 100%);
}

.nav-item.active .nav-item-icon,
.nav-item:hover .nav-item-icon {
  background: linear-gradient(145deg, #6a9aff 0%, #2f68f5 78%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(47, 104, 245, 0.16);
}

.nav-item.active .nav-item-copy strong,
.nav-item:hover .nav-item-copy strong {
  color: #0d57e8;
}

.nav-item.active .nav-item-copy small,
.nav-item:hover .nav-item-copy small {
  color: #6c83bb;
}

.main {
  padding: 22px 22px 34px;
}

body.sales-standalone-entry .layout {
  grid-template-columns: minmax(0, 1fr);
}

body.sales-standalone-entry .sidebar {
  display: none;
}

body.sales-standalone-entry .main {
  width: 100%;
  max-width: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(94, 118, 174, 0.08);
  box-shadow:
    0 18px 40px rgba(40, 65, 120, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
}

.topbar-context {
  display: grid;
  gap: 8px;
}

.topbar-breadcrumb {
  color: #9aa7bf;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-title-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

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

.user-chip {
  min-width: 210px;
  padding: 12px 15px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(94, 118, 174, 0.08);
  box-shadow: 0 12px 28px rgba(69, 96, 159, 0.08);
}

.user-chip strong {
  display: block;
}

.user-chip span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.topbar p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

#panel-sales-dashboard {
  margin-top: 0;
}

.ghost-btn,
.primary-btn {
  border: none;
  border-radius: 999px;
  min-height: 40px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 800;
}

.ghost-btn {
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  color: #2d61df;
  border: 1px solid rgba(94, 118, 174, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary-dim), var(--primary));
  color: #fff;
  box-shadow: var(--shadow);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.section-head,
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2,
.card-head h3 {
  margin: 0;
}

.section-head span,
.card-head span {
  color: var(--muted);
  font-size: 13px;
}

.card-grid,
.grid-two {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

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

.card-stack {
  display: grid;
  gap: 18px;
}

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

.compact-grid {
  margin-top: 0;
}

.scope-grid label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.scope-reset-btn {
  align-self: end;
  height: 48px;
}

.inventory-top-grid {
  margin-bottom: 18px;
}

.inventory-store-card {
  margin-bottom: 18px;
}

.card {
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(94, 118, 174, 0.08);
  box-shadow: var(--shadow);
}

.metric-card {
  background: linear-gradient(180deg, #ffffff 0%, #f5f6fb 100%);
}

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

.sales-kpi-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 246, 252, 0.96) 100%);
  min-height: 178px;
}

.sales-kpi-main {
  margin-top: 12px;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1px;
}

.sales-kpi-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.sales-kpi-change {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 800;
}

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

.sales-dashboard-control-shell {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 20px;
}

.sales-sticky-commander {
  position: sticky;
  top: 12px;
  z-index: 18;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow:
    0 16px 34px rgba(43, 58, 99, 0.08),
    inset 0 0 0 1px rgba(94, 118, 174, 0.06);
}

.sales-sticky-commander-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sales-sticky-commander-copy {
  display: grid;
  gap: 6px;
}

.sales-sticky-commander-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #96a2ba;
}

.sales-sticky-commander-copy strong {
  font-size: 18px;
}

.sales-sticky-commander-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sales-sticky-commander-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.sales-toggle-cluster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(242, 246, 252, 0.98) 0%, rgba(235, 241, 250, 0.96) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(94, 118, 174, 0.08),
    0 8px 16px rgba(78, 103, 160, 0.04);
}

.sales-toggle-cluster-primary {
  background: linear-gradient(180deg, rgba(241, 245, 252, 0.99) 0%, rgba(248, 250, 254, 0.99) 100%);
}

.sales-utility-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.sales-sticky-commander-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sales-dashboard-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.scope-card {
  display: none;
}

body[data-active-panel="sales-dashboard"] #panel-sales-dashboard > .section-head {
  display: none;
}

.sales-dashboard-reference-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 18px;
  align-items: start;
}

.sales-dashboard-main-column,
.sales-dashboard-side-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.sales-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 18px;
}

.sales-chart-card {
  min-height: 320px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 247, 252, 0.98) 100%);
}

.sales-chart-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(47, 104, 245, 0.9) 0%, rgba(79, 197, 216, 0.65) 100%);
}

.sales-employee-board-card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 248, 255, 0.98) 100%);
}

.sales-store-detail-card {
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 248, 255, 0.98) 100%);
}

.sales-store-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.sales-store-detail-head h3 {
  margin: 0;
  font-size: 18px;
}

.sales-store-detail-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.sales-store-detail-head-tools {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  min-width: min(100%, 560px);
}

.sales-store-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: min(100%, 460px);
}

.sales-store-detail-collapse-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(225, 37, 27, 0.24);
  border-radius: 999px;
  color: #ff6b63;
  background: rgba(225, 37, 27, 0.08);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.sales-store-detail-collapse-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(225, 37, 27, 0.44);
  background: rgba(225, 37, 27, 0.14);
}

.sales-store-detail-collapse-btn i {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(225deg) translate(-1px, -1px);
  transition: transform 0.2s ease;
}

.sales-store-detail-head.is-collapsed {
  align-items: center;
  margin-bottom: 0;
}

.sales-store-detail-head.is-collapsed .sales-store-detail-summary {
  display: none;
}

.sales-store-detail-head.is-collapsed .sales-store-detail-head-tools {
  min-width: 0;
}

.sales-store-detail-head.is-collapsed .sales-store-detail-collapse-btn i {
  transform: rotate(45deg) translate(-1px, -1px);
}

.sales-store-detail-table {
  width: 100%;
  min-width: 1420px;
  border-collapse: collapse;
}

.sales-store-detail-table th,
.sales-store-detail-table td {
  padding: 14px 10px;
  text-align: left;
  vertical-align: top;
}

.sales-store-detail-table thead th {
  font-size: 12px;
  font-weight: 800;
  color: #7f8da9;
  white-space: nowrap;
  border-bottom: 1px solid rgba(122, 144, 188, 0.18);
}

.sales-store-detail-table tbody td {
  border-top: 1px solid rgba(122, 144, 188, 0.14);
}

.sales-store-detail-table tbody tr {
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.sales-store-detail-table tbody tr:hover {
  background: rgba(225, 37, 27, 0.07);
  box-shadow: inset 3px 0 0 #e1251b;
}

.sales-store-detail-name {
  min-width: 180px;
  display: grid;
  gap: 5px;
}

.sales-store-detail-name strong {
  color: #1d3158;
  font-size: 14px;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

.sales-store-detail-name span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.sales-store-detail-table tbody tr:hover .sales-store-detail-name strong {
  color: #e1251b;
  text-shadow: 0 0 16px rgba(225, 37, 27, 0.18);
}

.sales-employee-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.sales-employee-head h3 {
  margin: 0;
  font-size: 18px;
}

.sales-employee-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.sales-employee-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: min(100%, 460px);
}

.sales-employee-summary-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.08);
}

.sales-employee-summary-item strong {
  font-size: 18px;
  color: #1f2d4d;
}

.sales-employee-summary-item span {
  font-size: 12px;
  color: var(--muted);
}

.sales-employee-note {
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 244, 212, 0.72);
  color: #8a5a00;
  font-size: 12px;
  line-height: 1.7;
}

.sales-employee-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.sales-employee-toolbar-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sales-employee-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sales-employee-toolbar-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sales-employee-title-field {
  display: grid;
  gap: 6px;
  min-width: 260px;
}

.sales-employee-title-field span {
  color: #50627f;
  font-size: 12px;
  font-weight: 700;
}

.sales-employee-title-field input {
  width: min(100%, 320px);
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(225, 37, 27, 0.18);
  border-radius: 12px;
  background: #fff;
  color: #2b221f;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sales-employee-title-field input:focus {
  border-color: rgba(225, 37, 27, 0.52);
  box-shadow: 0 0 0 3px rgba(225, 37, 27, 0.12);
}

.sales-employee-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #50627f;
  font-size: 12px;
  font-weight: 700;
}

.sales-employee-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2f68f5;
}

.sales-employee-table {
  width: 100%;
  min-width: 1560px;
  border-collapse: collapse;
}

.sales-employee-table th,
.sales-employee-table td {
  padding: 14px 10px;
  text-align: left;
  vertical-align: top;
}

.sales-employee-table thead th {
  font-size: 12px;
  font-weight: 800;
  color: #7f8da9;
  white-space: nowrap;
  border-bottom: 1px solid rgba(122, 144, 188, 0.18);
}

.sales-employee-table tbody td {
  border-top: 1px solid rgba(122, 144, 188, 0.14);
}

.sales-employee-rank {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #edf4ff 0%, #dfeaff 100%);
  color: #3567d6;
  font-size: 13px;
  font-weight: 900;
}

.sales-employee-person {
  display: grid;
  gap: 5px;
  min-width: 172px;
}

.sales-employee-person strong {
  font-size: 14px;
  color: #1f2d4d;
}

.sales-employee-person span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sales-employee-target-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sales-employee-target-summary span,
.sales-employee-target-summary.empty {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(225, 37, 27, 0.08);
  color: #9d2a23;
  font-size: 11px;
  font-weight: 700;
}

.sales-employee-target-summary.empty {
  background: rgba(122, 144, 188, 0.08);
  color: #7b879f;
}

.sales-employee-target-metric strong {
  color: #8f1714;
}

.sales-employee-person-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sales-employee-target-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff8f7 0%, #fff2f0 100%);
  border: 1px solid rgba(225, 37, 27, 0.12);
}

.sales-employee-target-editor label {
  display: grid;
  gap: 6px;
}

.sales-employee-target-editor label span {
  color: #7e4c47;
  font-size: 11px;
  font-weight: 700;
}

.sales-employee-target-editor input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(225, 37, 27, 0.15);
  border-radius: 10px;
  background: #fff;
  color: #2b221f;
  font-size: 12px;
  outline: none;
}

.sales-employee-target-editor input:focus {
  border-color: rgba(225, 37, 27, 0.42);
  box-shadow: 0 0 0 3px rgba(225, 37, 27, 0.1);
}

.sales-employee-target-editor-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sales-employee-unassigned {
  display: inline-flex;
  width: fit-content;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #915500;
  background: rgba(255, 232, 179, 0.72);
  border-radius: 999px;
  padding: 4px 8px;
}

.sales-employee-metric {
  display: grid;
  gap: 4px;
  min-width: 130px;
}

.sales-employee-metric strong {
  font-size: 15px;
  color: #1f2d4d;
}

.sales-employee-metric span {
  color: var(--muted);
  font-size: 12px;
}

.sales-employee-delta {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: #6f7d99;
}

.sales-employee-empty {
  padding: 24px 12px 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.sales-chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sales-chart-copy {
  display: grid;
  gap: 4px;
}

.sales-chart-eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #91a0bf;
}

.sales-chart-head h3 {
  margin: 0;
  font-size: 16px;
}

.sales-chart-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.sales-chart-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sales-chart-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sales-chart-tool {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: #f3f6fd;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(96, 120, 174, 0.08);
}

.sales-chart-tool.active {
  background: rgba(47, 104, 245, 0.12);
  color: var(--primary);
  border-color: rgba(47, 104, 245, 0.18);
}

.sales-chart-tool.action {
  cursor: pointer;
}

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

.sales-chart-summary-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8faff 0%, #f1f5fd 100%);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.06);
}

.sales-chart-summary-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.sales-chart-summary-item strong {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.3;
}

.sales-chart-summary-note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  font-style: normal;
}

.sales-chart-summary-item strong.hovering {
  color: var(--primary);
}

.sales-chart-selection-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(47, 104, 245, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.sales-chart-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.sales-dashboard-control-copy h3 {
  margin: 0;
  font-size: 22px;
}

.sales-dashboard-control-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.sales-dashboard-control-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.sales-dashboard-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2fb;
  color: var(--primary);
}

.sales-dashboard-meta-pill strong {
  font-size: 12px;
  font-weight: 800;
}

.sales-dashboard-meta-pill span {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}

.sales-dashboard-control-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sales-dashboard-top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
  align-items: stretch;
  gap: 18px;
  margin-top: 18px;
}

.sales-filter-card,
.sales-scope-card-page,
.sales-import-summary-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 246, 252, 0.96) 100%);
}

.sales-filter-card {
  display: grid;
  gap: 16px;
}

.sales-filter-head {
  display: grid;
  gap: 12px;
}

.sales-filter-range-banner {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(240, 244, 252, 0.95) 0%, rgba(247, 249, 254, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.08);
}

.sales-filter-range-banner span {
  color: #95a1b8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sales-filter-range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.sales-filter-range-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.08);
}

.sales-filter-range-item em {
  color: #95a1b8;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sales-filter-range-item strong {
  color: #667795;
  font-size: 15px;
  line-height: 1.45;
}

.sales-filter-preset-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sales-filter-preset-bar .sales-quick-range-row {
  flex: 1;
  margin: 0;
}

.sales-filter-reset-btn {
  flex-shrink: 0;
  align-self: auto;
  min-height: 44px;
  height: auto;
}

.sales-filter-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.sales-filter-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.08);
}

.sales-filter-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.sales-filter-section-head strong {
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sales-filter-section-head strong::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f68f5 0%, #74a2ff 100%);
  box-shadow: 0 0 0 6px rgba(47, 104, 245, 0.08);
}

.sales-filter-section-head span {
  color: var(--muted);
  font-size: 12px;
}

.sales-filter-grid.sales-filter-grid-primary,
.sales-filter-grid.sales-filter-grid-compare {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sales-filter-grid label {
  min-width: 0;
  gap: 9px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: rgba(244, 247, 253, 0.9);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.06);
  color: #5f6f8c;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.sales-filter-grid label select,
.sales-filter-grid label input {
  min-width: 0;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.08);
  font-size: 15px;
  font-weight: 800;
}

.sales-filter-date-field input[type="date"] {
  min-height: 48px;
  padding: 10px 9px;
  font-size: 14px;
  letter-spacing: -0.03em;
}

.sales-filter-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid rgba(94, 118, 174, 0.08);
}

.sales-filter-footer .sales-date-shortcuts,
.sales-filter-hint {
  margin-top: 0;
}

.sales-filter-hint {
  min-height: 100%;
  background: linear-gradient(180deg, rgba(244, 247, 253, 0.92) 0%, rgba(239, 244, 252, 0.92) 100%);
}

.sales-scope-grid {
  grid-template-columns: 1fr 1fr 1.2fr auto;
}

.sales-page-scope-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sales-dashboard-control-shell.collapsed {
  padding: 14px 18px;
}

.sales-dashboard-control-shell.collapsed .sales-dashboard-control-copy h3 {
  display: none;
}

.sales-dashboard-control-shell.collapsed .sales-dashboard-control-copy p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.sales-dashboard-control-shell.collapsed .sales-dashboard-control-meta {
  margin-top: 0;
}

.sales-dashboard-control-shell.collapsed #salesDashboardTopGrid {
  display: none;
}

.sales-decision-bar {
  position: static;
  margin-bottom: 0;
  padding: 20px 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fe 100%);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.05);
}

.sales-decision-bar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(94, 118, 174, 0.08);
}

.sales-decision-bar-copy {
  display: grid;
  gap: 8px;
}

.sales-decision-bar-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa5bc;
}

.sales-decision-bar-copy strong {
  font-size: 20px;
  line-height: 1.35;
}

.sales-decision-bar-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.sales-decision-bar-actions {
  display: grid;
  justify-items: end;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(246, 248, 253, 0.98) 0%, rgba(241, 245, 252, 0.98) 100%);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.08);
}

.sales-page-mode-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
  padding: 6px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(245, 248, 253, 0.92) 0%, rgba(239, 244, 251, 0.92) 100%);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.06);
}

.sales-page-mode-tab {
  border: none;
  border-radius: 18px;
  min-height: 86px;
  padding: 14px 16px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.sales-page-mode-tab strong {
  font-size: 15px;
}

.sales-page-mode-tab span {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.sales-page-mode-tab.active {
  background: linear-gradient(135deg, rgba(47, 104, 245, 0.13), rgba(47, 104, 245, 0.03));
  color: var(--primary);
  box-shadow:
    inset 0 0 0 1px rgba(47, 104, 245, 0.16),
    0 10px 20px rgba(78, 103, 160, 0.06);
}

.sales-page-mode-tab.active span {
  color: var(--muted);
}

.sales-next-step-strip {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(47, 104, 245, 0.08), rgba(47, 104, 245, 0.02));
  box-shadow: inset 0 0 0 1px rgba(47, 104, 245, 0.08);
}

.sales-next-step-copy {
  display: grid;
  gap: 6px;
}

.sales-next-step-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a0b8;
}

.sales-next-step-copy strong {
  font-size: 16px;
  line-height: 1.4;
}

.sales-next-step-copy span {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.sales-next-step-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.08);
}

.sales-decision-toggle,
.sales-decision-lite-btn {
  border: none;
  border-radius: 999px;
  min-height: 38px;
  padding: 8px 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.sales-decision-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #5c6e91;
}

.sales-decision-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(47, 104, 245, 0.08);
  font-size: 12px;
}

.sales-decision-toggle:hover,
.sales-decision-lite-btn:hover {
  transform: translateY(-1px);
}

.sales-decision-toggle.active {
  background: linear-gradient(135deg, #2f68f5 0%, #5f8cff 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(47, 104, 245, 0.16);
}

.sales-decision-toggle.active span {
  background: rgba(255, 255, 255, 0.2);
}

.sales-decision-toggle.queue-toggle {
  padding-right: 10px;
}

.sales-decision-lite-btn {
  background: transparent;
  color: var(--primary);
  padding: 6px 4px;
  min-height: auto;
  border-radius: 0;
  font-weight: 800;
  opacity: 0.9;
}

.sales-decision-lite-btn:hover {
  color: #1f57e8;
  box-shadow: none;
}

.sales-next-step-primary {
  min-width: 148px;
  justify-content: center;
}

.sales-next-step-secondary {
  padding-inline: 8px;
}

.sales-decision-bar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sales-decision-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f6fd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-gmv-daily-chip {
  gap: 8px;
}

.sales-gmv-daily-chip label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  white-space: nowrap;
}

.sales-gmv-store-count-input {
  width: 48px;
  min-height: 24px;
  padding: 2px 5px;
  border: 1px solid rgba(76, 156, 255, 0.35);
  border-radius: 7px;
  color: inherit;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-weight: 900;
  text-align: center;
}

.sales-gmv-store-count-input:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.sales-decision-chip.emphasis {
  background: rgba(255, 107, 89, 0.12);
  color: #f36a58;
}

.sales-decision-chip.queue {
  background: rgba(32, 178, 107, 0.12);
  color: #16995b;
}

.sales-hq-top-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 0;
}

.sales-chart-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.sales-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sales-chart-legend .line {
  width: 18px;
  height: 3px;
  border-radius: 999px;
  display: inline-block;
}

.sales-chart-legend .line.blue {
  background: #2f68f5;
}

.sales-chart-legend .line.green {
  background: #20b26b;
}

.sales-line-chart {
  position: relative;
  min-height: 248px;
  padding: 10px 12px 6px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(245, 248, 253, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%);
}

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

.sales-svg-grid line {
  stroke: rgba(94, 118, 174, 0.12);
  stroke-width: 1;
}

.sales-svg-hit-area {
  fill: transparent;
  cursor: pointer;
  pointer-events: all;
}

.sales-svg-hit-area.active {
  fill: rgba(47, 104, 245, 0.08);
}

.sales-svg-hit-area.hovered {
  fill: rgba(47, 104, 245, 0.12);
}

.sales-svg-line {
  fill: none;
  stroke-width: 3;
  pointer-events: none;
}

.sales-svg-line.blue {
  stroke: #2f68f5;
}

.sales-svg-line.green {
  stroke: #20b26b;
}

.sales-svg-dots circle.blue {
  fill: #2f68f5;
}

.sales-svg-dots circle.green {
  fill: #20b26b;
}

.sales-svg-dots circle[data-sales-chart-date] {
  cursor: pointer;
}

.sales-svg-dots circle.active {
  stroke: #fff;
  stroke-width: 3;
}

.sales-svg-dots circle.hovered {
  stroke: #fff;
  stroke-width: 3;
  filter: drop-shadow(0 0 3px rgba(47, 104, 245, 0.22));
}

.sales-svg-labels text {
  fill: #9aa5bc;
  font-size: 11px;
  pointer-events: none;
}

.sales-svg-axis text {
  fill: #adb6c9;
  font-size: 10px;
  pointer-events: none;
}

.sales-svg-highlight line {
  stroke: rgba(47, 104, 245, 0.16);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  pointer-events: none;
}

.sales-svg-highlight line.hovering {
  stroke: rgba(47, 104, 245, 0.3);
}

.sales-svg-highlight circle.focus {
  stroke: #fff;
  stroke-width: 3;
  pointer-events: none;
}

.sales-svg-highlight circle.focus.hovering {
  filter: drop-shadow(0 0 6px rgba(47, 104, 245, 0.26));
}

.sales-svg-highlight rect {
  fill: rgba(28, 35, 51, 0.88);
  pointer-events: none;
}

.sales-svg-highlight text {
  fill: #fff;
  font-size: 10px;
  pointer-events: none;
}

.sales-svg-highlight [data-sales-trend-highlight-callout].hovering rect {
  fill: rgba(22, 30, 45, 0.96);
}

.sales-trend-hover-tooltip,
.sales-chart-hover-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 148px;
  max-width: 220px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(28, 35, 51, 0.92);
  color: #fff;
  box-shadow: 0 16px 28px rgba(21, 28, 42, 0.18);
  pointer-events: none;
}

.sales-trend-hover-tooltip strong,
.sales-chart-hover-tooltip strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
}

.sales-trend-hover-tooltip span,
.sales-chart-hover-tooltip span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.sales-chart-footer {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.sales-chart-footer.compact {
  margin-top: 12px;
}

.sales-chart-footer strong {
  font-size: 13px;
}

.sales-chart-footer strong.hovering {
  color: var(--primary);
}

.sales-chart-footer span {
  color: var(--muted);
  font-size: 12px;
}

.sales-chart-action-note {
  color: var(--primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.sales-bar-chart-list {
  display: grid;
  gap: 12px;
}

.sales-bar-chart-item {
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8faff 0%, #f2f6fd 100%);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sales-bar-chart-item:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 18px rgba(78, 103, 160, 0.08),
    inset 0 0 0 1px rgba(47, 104, 245, 0.12);
}

.sales-bar-chart-item.hovered {
  transform: translateY(-1px);
  box-shadow:
    0 14px 22px rgba(78, 103, 160, 0.1),
    inset 0 0 0 1px rgba(47, 104, 245, 0.16);
}

.sales-bar-chart-item:focus-visible,
.sales-donut-legend-item.interactive:focus-visible,
.sales-chart-tool.action:focus-visible {
  outline: 2px solid rgba(47, 104, 245, 0.34);
  outline-offset: 2px;
}

.sales-bar-chart-item.active {
  box-shadow:
    0 12px 22px rgba(78, 103, 160, 0.1),
    inset 0 0 0 1px rgba(47, 104, 245, 0.2);
  background: linear-gradient(135deg, rgba(47, 104, 245, 0.12), rgba(47, 104, 245, 0.03));
}

.sales-bar-chart-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sales-bar-chart-copy strong {
  font-size: 13px;
}

.sales-bar-chart-copy span {
  color: var(--muted);
  font-size: 12px;
}

.sales-bar-chart-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #edf2fb;
  overflow: hidden;
}

.sales-bar-chart-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #5d85ff 0%, #2f68f5 100%);
}

.sales-bar-chart-value {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.sales-donut-layout {
  display: grid;
  gap: 14px;
  align-items: center;
}

.sales-donut-graphic {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}

.sales-donut-graphic svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sales-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  pointer-events: none;
}

.sales-donut-center strong {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.sales-donut-center span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
}

.sales-donut-center em {
  display: block;
  margin-top: 4px;
  color: #7f8da9;
  font-size: 11px;
  font-style: normal;
  line-height: 1.4;
}

.sales-donut-legend {
  display: grid;
  gap: 10px;
}

.sales-donut-legend-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.sales-donut-legend-item.interactive {
  width: 100%;
  border: none;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8faff 0%, #f2f6fd 100%);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.06);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.sales-donut-legend-item.interactive:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 18px rgba(78, 103, 160, 0.08),
    inset 0 0 0 1px rgba(47, 104, 245, 0.12);
}

.sales-donut-legend-item.interactive.hovered {
  transform: translateY(-1px);
  box-shadow:
    0 14px 22px rgba(78, 103, 160, 0.1),
    inset 0 0 0 1px rgba(47, 104, 245, 0.16);
}

.sales-donut-legend-item.interactive.muted {
  opacity: 0.48;
}

.sales-donut-legend-item.interactive.active {
  box-shadow:
    0 12px 22px rgba(78, 103, 160, 0.1),
    inset 0 0 0 1px rgba(47, 104, 245, 0.2);
  background: linear-gradient(135deg, rgba(47, 104, 245, 0.12), rgba(47, 104, 245, 0.03));
}

.sales-donut-legend-item.with-details {
  align-items: start;
}

.sales-donut-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-top: 7px;
}

.sales-donut-legend-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.sales-donut-legend-copy {
  min-width: 0;
}

.sales-donut-detail-toggle,
.sales-donut-focus-button {
  border: none;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(47, 104, 245, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.sales-donut-detail-toggle:hover,
.sales-donut-focus-button:hover {
  background: rgba(47, 104, 245, 0.16);
}

.sales-donut-other-detail-panel {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(124, 139, 174, 0.1);
}

.sales-donut-other-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #24324d;
  font-size: 11px;
  font-weight: 900;
}

.sales-donut-other-detail-head em {
  color: #7f8da9;
  font-style: normal;
  font-weight: 700;
}

.sales-donut-other-detail-list {
  display: grid;
  gap: 7px;
}

.sales-donut-other-detail-item {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 8px 9px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
  box-shadow: inset 0 0 0 1px rgba(124, 139, 174, 0.08);
  text-align: left;
  cursor: pointer;
}

.sales-donut-other-detail-item:hover {
  box-shadow:
    0 8px 16px rgba(78, 103, 160, 0.08),
    inset 0 0 0 1px rgba(47, 104, 245, 0.14);
}

.sales-donut-other-detail-item strong {
  font-size: 12px;
}

.sales-donut-other-detail-item span,
.sales-donut-other-detail-item em {
  display: block;
  margin-top: 3px;
  color: #7f8da9;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.sales-donut-segment {
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sales-donut-segment.muted {
  opacity: 0.24;
}

.sales-donut-segment.active {
  opacity: 1;
}

.sales-donut-segment.hovered {
  opacity: 1;
  filter: brightness(1.02);
}

.sales-donut-label {
  fill: #24324d;
  font-size: 11px;
  font-weight: 900;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

.sales-donut-legend-item strong {
  display: block;
  font-size: 13px;
}

.sales-donut-legend-item span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.sales-donut-legend-compare,
.sales-donut-legend-delta {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-style: normal;
  line-height: 1.45;
}

.sales-donut-legend-compare {
  color: #7f8da9;
}

.sales-donut-legend-delta {
  color: var(--primary);
  font-weight: 800;
}

.sales-hot-products-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 253, 0.98) 100%);
}

.sales-hot-products-list {
  display: grid;
  gap: 10px;
}

.sales-hot-product-item {
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8faff 0%, #f2f6fd 100%);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sales-hot-product-item:hover {
  transform: translateY(-1px);
  box-shadow:
    0 10px 18px rgba(78, 103, 160, 0.08),
    inset 0 0 0 1px rgba(47, 104, 245, 0.12);
}

.sales-hot-product-rank {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(47, 104, 245, 0.16) 0%, rgba(47, 104, 245, 0.08) 100%);
  color: #1e5af0;
  font-size: 12px;
  font-weight: 900;
}

.sales-hot-product-copy strong {
  display: block;
  font-size: 13px;
}

.sales-hot-product-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.sales-hot-product-metrics {
  text-align: right;
}

.sales-hot-product-metrics strong {
  display: block;
  font-size: 14px;
  color: var(--primary);
}

.sales-hot-product-metrics span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.sales-hq-command-card,
.sales-target-card,
.sales-freshness-card,
.sales-area-meeting-card,
.sales-action-history-card,
.sales-execution-card {
  margin-bottom: 0;
}

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

.sales-panel-eyebrow {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #91a0bf;
}

.sales-panel-head h3 {
  margin: 0;
  font-size: 18px;
}

.sales-panel-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.sales-panel-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.sales-side-module-head {
  align-items: flex-start;
}

.sales-side-module-kicker {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #91a0bf;
}

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

.sales-command-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sales-command-toolbar-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-command-section {
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8faff 0%, #f1f5fd 100%);
}

.sales-command-title {
  font-size: 13px;
  font-weight: 900;
}

.sales-command-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sales-command-item {
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
}

.sales-command-item.static {
  cursor: default;
}

.sales-command-item strong {
  display: block;
  font-size: 13px;
}

.sales-command-item span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sales-command-empty,
.sales-execution-empty {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
}

.sales-target-grid,
.sales-freshness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.sales-target-item,
.sales-freshness-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f9fe 0%, #eef3fd 100%);
}

.sales-target-item span,
.sales-freshness-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-target-item strong,
.sales-freshness-item strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  font-weight: 900;
}

.sales-target-meta,
.sales-target-foot,
.sales-freshness-item p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sales-freshness-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.sales-freshness-notes div {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7f9fd;
}

.sales-freshness-notes strong,
.sales-freshness-notes span {
  display: block;
}

.sales-freshness-notes span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sales-execution-list {
  display: grid;
  gap: 12px;
}

.sales-execution-item {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8faff 0%, #eef3fd 100%);
}

.sales-execution-main {
  width: 100%;
  border: none;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.sales-execution-item.overdue {
  box-shadow: inset 0 0 0 1px rgba(201, 42, 58, 0.24);
  background: linear-gradient(180deg, #fff7f8 0%, #fff0f2 100%);
}

.sales-execution-item.unassigned {
  box-shadow: inset 0 0 0 1px rgba(169, 106, 0, 0.24);
  background: linear-gradient(180deg, #fffaf1 0%, #fff3e1 100%);
}

.sales-execution-rank {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #14213d 0%, #2c4c87 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.sales-execution-copy strong {
  display: block;
  font-size: 15px;
}

.sales-execution-copy span,
.sales-execution-metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.sales-execution-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sales-execution-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sales-execution-filter {
  border: none;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  background: #eef2fb;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sales-execution-filter.active {
  background: linear-gradient(135deg, #2f68f5 0%, #5f8cff 100%);
  color: #fff;
}

.sales-execution-toolbar-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sales-execution-quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(96, 120, 174, 0.08);
}

.sales-execution-quick-copy {
  display: grid;
  gap: 6px;
}

.sales-execution-quick-copy strong {
  font-size: 13px;
}

.sales-execution-quick-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.sales-area-meeting-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.sales-area-meeting-card-item {
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8faff 0%, #eef3fd 100%);
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
}

.sales-area-meeting-card-item.active {
  background: linear-gradient(135deg, #14213d 0%, #2c4c87 100%);
  color: #fff;
}

.sales-area-meeting-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sales-area-meeting-head strong {
  font-size: 16px;
}

.sales-area-meeting-head span,
.sales-area-meeting-metrics span,
.sales-area-meeting-note span,
.sales-area-product-chip {
  font-size: 12px;
}

.sales-area-meeting-head span,
.sales-area-meeting-metrics span,
.sales-area-meeting-note span {
  color: var(--muted);
}

.sales-area-meeting-card-item.active .sales-area-meeting-head span,
.sales-area-meeting-card-item.active .sales-area-meeting-metrics span,
.sales-area-meeting-card-item.active .sales-area-meeting-note span {
  color: rgba(255, 255, 255, 0.78);
}

.sales-area-meeting-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.sales-area-meeting-note {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.sales-area-meeting-card-item.active .sales-area-meeting-note {
  background: rgba(255, 255, 255, 0.1);
}

.sales-area-meeting-note strong {
  font-size: 13px;
}

.sales-area-meeting-products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.sales-area-product-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(73, 95, 139, 0.08);
  color: var(--primary);
  font-weight: 800;
}

.sales-area-product-chip.static {
  cursor: default;
}

.sales-area-meeting-card-item.active .sales-area-product-chip {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.sales-history-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sales-history-column {
  padding: 14px;
  border-radius: 18px;
  background: #f7f9fd;
}

.sales-history-title {
  font-size: 13px;
  font-weight: 900;
}

.sales-history-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sales-history-item {
  width: 100%;
  border: none;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  text-align: left;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
}

.sales-history-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-history-copy strong {
  display: block;
  font-size: 13px;
}

.sales-history-copy span,
.sales-history-meta {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sales-quick-range-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 14px;
}

.sales-quick-range {
  border: none;
  border-radius: 16px;
  min-height: 48px;
  padding: 10px 12px;
  background: #eef2fb;
  color: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

.sales-quick-range.active {
  background: linear-gradient(135deg, #0b78ef 0%, #208fff 100%);
  color: #fff;
  box-shadow: 0 14px 24px rgba(11, 120, 239, 0.16);
}

.sales-date-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sales-filter-hint {
  margin-top: 14px;
}

.sales-strategy-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 0;
}

.sales-filter-summary-card {
  margin-bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 248, 254, 0.98) 100%);
}

.sales-hero-explainer-card {
  margin-bottom: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 247, 252, 0.98) 100%);
}

.sales-confidence-card {
  margin-bottom: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 248, 253, 0.98) 100%);
}

.sales-hq-alerts-card {
  margin-bottom: 0;
}

.sales-hq-alerts-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sales-dashboard-side-column .card {
  position: relative;
  overflow: hidden;
}

.sales-dashboard-side-column .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, rgba(47, 104, 245, 0.82) 0%, rgba(47, 104, 245, 0.08) 100%);
}

.sales-hq-alert-side-list {
  display: grid;
  gap: 10px;
}

.sales-hq-alert-side-item {
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8faff 0%, #f2f6fd 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.06);
}

.sales-hq-alert-side-item.active {
  background: linear-gradient(135deg, rgba(47, 104, 245, 0.12), rgba(47, 104, 245, 0.03));
  box-shadow: inset 0 0 0 1px rgba(47, 104, 245, 0.16);
}

.sales-hq-alert-side-item.detail {
  grid-template-columns: auto minmax(0, 1fr);
}

.sales-hq-alert-side-rank {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
}

.sales-hq-alert-side-rank.danger {
  background: linear-gradient(135deg, #ff816d 0%, #ff6b59 100%);
}

.sales-hq-alert-side-rank.warning {
  background: linear-gradient(135deg, #ffb869 0%, #ff9c3f 100%);
}

.sales-hq-alert-side-rank.safe {
  background: linear-gradient(135deg, #41cb89 0%, #20b26b 100%);
}

.sales-hq-alert-side-rank.primary {
  background: linear-gradient(135deg, #5d85ff 0%, #2f68f5 100%);
}

.sales-hq-alert-side-copy strong {
  display: block;
  font-size: 13px;
  line-height: 1.5;
}

.sales-hq-alert-side-copy span {
  display: block;
  margin-top: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.sales-hq-alert-side-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sales-hq-alert-side-count {
  align-self: center;
  color: var(--primary);
  font-size: 22px;
  font-weight: 900;
}

.sales-hq-alert-empty {
  padding: 18px;
  border-radius: 18px;
  background: #f4f6fb;
  color: var(--muted);
}

.sales-hq-alert-empty.small {
  min-height: 126px;
  display: grid;
  place-items: center;
  text-align: center;
}

.sales-hero-card {
  width: 100%;
  min-height: 154px;
  padding: 16px 16px 14px;
  border-radius: 20px;
  border: 1px solid rgba(94, 118, 174, 0.08);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  position: relative;
  overflow: hidden;
}

.sales-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: rgba(47, 104, 245, 0.18);
}

.sales-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sales-hero-card:hover {
  transform: translateY(-2px);
}

.sales-hero-card.active {
  transform: translateY(-2px);
  box-shadow:
    0 14px 26px rgba(69, 96, 159, 0.12),
    inset 0 0 0 1px rgba(47, 104, 245, 0.18);
  filter: none;
}

.sales-hero-card:focus-visible {
  outline: 3px solid rgba(47, 104, 245, 0.22);
  outline-offset: 2px;
}

.sales-hero-card.tone-blue {
  background: linear-gradient(180deg, rgba(47, 104, 245, 0.04) 0%, #ffffff 100%);
}

.sales-hero-card.tone-green {
  background: linear-gradient(180deg, rgba(32, 178, 107, 0.05) 0%, #ffffff 100%);
}

.sales-hero-card.tone-cyan {
  background: linear-gradient(180deg, rgba(76, 196, 213, 0.06) 0%, #ffffff 100%);
}

.sales-hero-card.tone-indigo {
  background: linear-gradient(180deg, rgba(104, 112, 255, 0.05) 0%, #ffffff 100%);
}

.sales-hero-card.tone-rose {
  background: linear-gradient(180deg, rgba(236, 110, 159, 0.06) 0%, #ffffff 100%);
}

.sales-hero-card.tone-violet {
  background: linear-gradient(180deg, rgba(146, 120, 255, 0.05) 0%, #ffffff 100%);
}

.sales-hero-card.tone-emerald {
  background: linear-gradient(180deg, rgba(24, 187, 139, 0.06) 0%, #ffffff 100%);
}

.sales-hero-card.tone-orange {
  background: linear-gradient(180deg, rgba(243, 138, 50, 0.07) 0%, #ffffff 100%);
}

.sales-hero-card.tone-slate {
  background: linear-gradient(180deg, rgba(144, 167, 202, 0.1) 0%, #ffffff 100%);
}

.sales-hero-card.tone-amber {
  background: linear-gradient(180deg, rgba(255, 156, 63, 0.07) 0%, #ffffff 100%);
}

.sales-hero-card.tone-red {
  background: linear-gradient(180deg, rgba(255, 107, 89, 0.07) 0%, #ffffff 100%);
}

.sales-hero-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.sales-hero-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(47, 104, 245, 0.08);
  box-shadow: inset 0 0 0 1px rgba(47, 104, 245, 0.08);
}

.sales-hero-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.sales-hero-value {
  margin-top: 14px;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.8px;
}

.sales-hero-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.sales-hero-compare-panel {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.08);
  display: grid;
  gap: 8px;
}

.sales-hero-compare-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 22px;
}

.sales-hero-compare-row > span {
  color: #8b98b4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.sales-hero-compare-period {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sales-hero-compare-dates {
  color: #6f7f9d;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.02em;
  text-align: left;
}

.sales-hero-compare-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(94, 118, 174, 0.08) 0%, rgba(94, 118, 174, 0.18) 20%, rgba(94, 118, 174, 0.08) 100%);
}

.sales-hero-compare-number {
  color: #51627f;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.sales-hero-submeta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  width: fit-content;
  max-width: 100%;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(47, 104, 245, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.sales-hero-sparkline {
  margin-top: 10px;
  min-height: 34px;
  padding: 6px 0 0;
}

.sales-hero-sparkline svg {
  width: 100%;
  height: 34px;
  display: block;
}

.sales-hero-hint {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(94, 118, 174, 0.08);
  font-size: 12px;
  font-weight: 800;
  color: #91a0bf;
}

.sales-hero-card.active .sales-hero-hint {
  color: var(--primary);
}

.sales-hero-card.tone-blue .sales-hero-value {
  color: #2f68f5;
}

.sales-hero-card.tone-blue .sales-hero-icon {
  color: #2f68f5;
  background: rgba(47, 104, 245, 0.12);
}

.sales-hero-card.tone-green .sales-hero-value {
  color: #20b26b;
}

.sales-hero-card.tone-green .sales-hero-icon {
  color: #20b26b;
  background: rgba(32, 178, 107, 0.14);
}

.sales-hero-card.tone-cyan .sales-hero-value {
  color: #1aa5c8;
}

.sales-hero-card.tone-cyan .sales-hero-icon {
  color: #1aa5c8;
  background: rgba(26, 165, 200, 0.14);
}

.sales-hero-card.tone-indigo .sales-hero-value {
  color: #5866ff;
}

.sales-hero-card.tone-indigo .sales-hero-icon {
  color: #5866ff;
  background: rgba(88, 102, 255, 0.14);
}

.sales-hero-card.tone-rose .sales-hero-value {
  color: #e36095;
}

.sales-hero-card.tone-rose .sales-hero-icon {
  color: #e36095;
  background: rgba(227, 96, 149, 0.14);
}

.sales-hero-card.tone-violet .sales-hero-value {
  color: #7f62ff;
}

.sales-hero-card.tone-violet .sales-hero-icon {
  color: #7f62ff;
  background: rgba(127, 98, 255, 0.14);
}

.sales-hero-card.tone-emerald .sales-hero-value {
  color: #0f9d78;
}

.sales-hero-card.tone-emerald .sales-hero-icon {
  color: #0f9d78;
  background: rgba(15, 157, 120, 0.14);
}

.sales-hero-card.tone-orange .sales-hero-value {
  color: #f38a32;
}

.sales-hero-card.tone-orange .sales-hero-icon {
  color: #f38a32;
  background: rgba(243, 138, 50, 0.16);
}

.sales-hero-card.tone-amber .sales-hero-value {
  color: #ff9c3f;
}

.sales-hero-card.tone-amber .sales-hero-icon {
  color: #ff9c3f;
  background: rgba(255, 156, 63, 0.16);
}

.sales-hero-card.tone-red .sales-hero-value {
  color: #ff6b59;
}

.sales-hero-card.tone-red .sales-hero-icon {
  color: #ff6b59;
  background: rgba(255, 107, 89, 0.16);
}

.sales-hero-card.tone-slate .sales-hero-icon {
  color: #7f91b4;
  background: rgba(127, 145, 180, 0.16);
}

.sales-hero-explainer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sales-filter-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sales-filter-summary-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}

.sales-filter-summary-head h3 {
  margin: 8px 0 6px;
  font-size: 24px;
}

.sales-filter-summary-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.sales-filter-summary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 120, 239, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

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

.sales-filter-summary-pill {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f9fe 0%, #eef3fd 100%);
  border: 1px solid rgba(100, 121, 160, 0.1);
}

.sales-filter-summary-pill span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-filter-summary-pill strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.3;
}

.sales-filter-summary-pill em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  font-style: normal;
}

.sales-velocity-board-card {
  margin-top: 0;
}

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

.sales-velocity-kpi-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f9fe 0%, #eef3fd 100%);
  border: 1px solid rgba(100, 121, 160, 0.1);
}

.sales-velocity-kpi-item span,
.sales-velocity-kpi-item strong,
.sales-velocity-kpi-item em {
  display: block;
}

.sales-velocity-kpi-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-velocity-kpi-item strong {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.25;
}

.sales-velocity-kpi-item em {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  font-style: normal;
}

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

.sales-velocity-column {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(100, 121, 160, 0.12);
  background: linear-gradient(180deg, #fbfcff 0%, #f4f7fe 100%);
}

.sales-velocity-column.tone-danger {
  background: linear-gradient(180deg, #fff8f8 0%, #fff1f2 100%);
  border-color: rgba(255, 107, 89, 0.18);
}

.sales-velocity-column.tone-safe {
  background: linear-gradient(180deg, #f7fff9 0%, #eefbf3 100%);
  border-color: rgba(32, 178, 107, 0.18);
}

.sales-velocity-column.tone-warning {
  background: linear-gradient(180deg, #fffaf1 0%, #fff4e3 100%);
  border-color: rgba(255, 156, 63, 0.2);
}

.sales-velocity-column-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sales-velocity-column-head strong,
.sales-velocity-column-head span,
.sales-velocity-column-total em,
.sales-velocity-column-total span {
  display: block;
}

.sales-velocity-column-head strong {
  font-size: 16px;
}

.sales-velocity-column-head span,
.sales-velocity-column-total span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sales-velocity-column-total {
  text-align: right;
}

.sales-velocity-column-total em {
  font-size: 18px;
  font-style: normal;
  font-weight: 900;
}

.sales-velocity-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.sales-velocity-item {
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sales-velocity-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(34, 40, 64, 0.08);
  background: #fff;
}

.sales-velocity-item-head,
.sales-velocity-item-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sales-velocity-item-copy {
  min-width: 0;
  flex: 1;
}

.sales-velocity-item-copy strong,
.sales-velocity-item-copy span,
.sales-velocity-item-metric strong,
.sales-velocity-item-metric span {
  display: block;
}

.sales-velocity-item-copy strong {
  font-size: 14px;
  line-height: 1.5;
}

.sales-velocity-item-copy > span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.sales-velocity-item-metric {
  min-width: 112px;
  text-align: right;
}

.sales-velocity-item-metric strong {
  font-size: 13px;
}

.sales-velocity-item-metric span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.sales-velocity-item-detail,
.sales-velocity-item-reason,
.sales-velocity-empty,
.sales-velocity-footer-note span {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.sales-velocity-item-reason {
  color: var(--text);
}

.sales-velocity-empty {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.sales-velocity-footer-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f6f8fc;
}

.sales-velocity-footer-note strong,
.sales-velocity-footer-note span {
  display: block;
}

.sales-velocity-footer-note strong {
  font-size: 13px;
}

.sales-hero-explainer-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}

.sales-hero-explainer-head h3 {
  margin: 8px 0 6px;
  font-size: 24px;
}

.sales-hero-explainer-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.sales-hero-explainer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 120, 239, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

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

.sales-hero-explainer-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f5f8fd;
  border: 1px solid rgba(100, 121, 160, 0.1);
}

.sales-hero-explainer-item span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.sales-hero-explainer-item strong {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

.sales-hero-explainer-item p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.sales-confidence-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sales-confidence-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}

.sales-confidence-head h3 {
  margin: 8px 0 6px;
  font-size: 24px;
}

.sales-confidence-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.sales-confidence-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(11, 120, 239, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.sales-confidence-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sales-confidence-toggle-btn {
  border: none;
  border-radius: 999px;
  min-height: 34px;
  padding: 6px 12px;
  background: #edf2fb;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sales-confidence-compact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.sales-confidence-compact-pill {
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7f9fe 0%, #eef3fd 100%);
}

.sales-confidence-compact-pill span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-confidence-compact-pill strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.4;
}

.sales-confidence-collapsed-note {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7f9fd;
}

.sales-confidence-collapsed-note strong {
  font-size: 13px;
}

.sales-confidence-collapsed-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

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

.sales-confidence-card-item {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f5f8fd;
  border: 1px solid rgba(100, 121, 160, 0.1);
}

.sales-confidence-card-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-confidence-card-item strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  font-weight: 900;
}

.sales-confidence-card-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 1500px) {
  .sales-strategy-kpi-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sales-filter-summary-grid,
  .sales-confidence-compact-strip,
  .sales-confidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.sales-confidence-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.sales-confidence-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.sales-confidence-list-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7f9fd;
}

.sales-confidence-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sales-confidence-list-head strong {
  font-size: 13px;
}

.sales-confidence-list-card span,
.sales-confidence-list-card em {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  font-style: normal;
}

.sales-confidence-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7f9fd;
}

.sales-confidence-note strong {
  display: block;
  font-size: 13px;
}

.sales-confidence-note span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sales-strategy-board {
  padding: 0;
  overflow: hidden;
}

.sales-strategy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 12px;
}

.sales-strategy-head h3 {
  margin: 0;
  font-size: 24px;
}

.sales-strategy-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sales-strategy-note {
  flex-shrink: 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(73, 95, 139, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

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

.sales-strategy-toolbar-primary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sales-strategy-toolbar-advanced {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px 18px;
}

.sales-strategy-inline-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sales-strategy-inline-field select {
  min-width: 220px;
}

.sales-strategy-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px 18px;
}

.sales-bulk-copy {
  display: grid;
  gap: 6px;
}

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

.sales-bulk-copy span {
  color: var(--muted);
  font-size: 12px;
}

.sales-bulk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sales-strategy-search {
  min-width: 240px;
}

.sales-strategy-summary-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0 22px 18px;
}

.sales-strategy-summary-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f9fe 0%, #eef3fd 100%);
}

.sales-strategy-summary-label {
  color: var(--muted);
  font-size: 12px;
}

.sales-strategy-summary-value {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 900;
}

.sales-strategy-summary-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.sales-strategy-focus-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 0 22px 14px;
}

.sales-strategy-focus-tab {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  background: #f1f4fb;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.sales-strategy-focus-tab span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
}

.sales-strategy-focus-tab.active {
  background: linear-gradient(135deg, rgba(47, 104, 245, 0.14), rgba(47, 104, 245, 0.05));
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(47, 104, 245, 0.14);
}

.sales-strategy-focus-tab.active span {
  color: var(--primary);
}

.sales-strategy-workbench {
  padding: 0 22px 18px;
}

.sales-workbench-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4fd 100%);
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
}

.sales-workbench-card.active {
  background: linear-gradient(180deg, rgba(47, 104, 245, 0.08) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(47, 104, 245, 0.12), var(--shadow);
}

.sales-workbench-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sales-workbench-copy {
  display: grid;
  gap: 6px;
}

.sales-workbench-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sales-workbench-card.active .sales-workbench-eyebrow {
  color: #6f7fa2;
}

.sales-workbench-copy strong {
  font-size: 22px;
  line-height: 1.35;
}

.sales-workbench-copy span {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.sales-workbench-card.active .sales-workbench-copy span {
  color: var(--muted);
}

.sales-workbench-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sales-workbench-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.sales-workbench-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sales-workbench-metric,
.sales-workbench-primary {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.sales-workbench-card.active .sales-workbench-metric,
.sales-workbench-card.active .sales-workbench-primary {
  background: rgba(255, 255, 255, 0.86);
}

.sales-workbench-metric span,
.sales-workbench-primary-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.sales-workbench-card.active .sales-workbench-metric span,
.sales-workbench-card.active .sales-workbench-primary-label {
  color: var(--muted);
}

.sales-workbench-metric strong,
.sales-workbench-primary strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.3;
}

.sales-workbench-primary span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.sales-workbench-card.active .sales-workbench-primary span {
  color: var(--muted);
}

.sales-workbench-recommend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.sales-workbench-recommend-item {
  border: none;
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.sales-workbench-rank {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #5d85ff 0%, #2f68f5 100%);
  color: #fff;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sales-workbench-recommend-copy strong {
  display: block;
  font-size: 15px;
}

.sales-workbench-recommend-copy span {
  display: block;
  margin-top: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.sales-workbench-recommend-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sales-category-tabs {
  display: flex;
  gap: 0;
  padding: 0 22px;
  border-bottom: 1px solid rgba(73, 95, 139, 0.08);
  overflow: auto;
}

.sales-category-tab {
  border: none;
  border-radius: 16px 16px 0 0;
  background: transparent;
  color: var(--text);
  padding: 14px 18px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.sales-category-tab span {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
}

.sales-category-tab.active {
  background: linear-gradient(135deg, #0971ec 0%, #1d8dff 100%);
  color: #fff;
}

.sales-category-tab.active span {
  color: rgba(255, 255, 255, 0.82);
}

.sales-strategy-table-wrap {
  margin-top: 0;
  padding: 18px 22px 22px;
}

.sales-strategy-table-wrap table {
  min-width: 1100px;
}

.sales-table-check-all,
.sales-row-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.sales-table-sort-btn {
  width: 100%;
  border: none;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 4px;
  color: #90a0bf;
}

.sales-table-sort-btn span,
.sales-table-sort-btn em {
  display: block;
}

.sales-table-sort-btn span {
  font-size: 12px;
  font-weight: 800;
}

.sales-table-sort-btn em {
  font-size: 11px;
  font-style: normal;
  color: var(--muted);
}

.sales-table-sort-btn.active span {
  color: var(--primary);
}

.sales-table-sort-btn.active em {
  color: var(--primary);
}

.sales-table-sort-btn:hover span {
  color: var(--text);
}

.sales-row-select span {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.sales-strategy-row {
  cursor: pointer;
}

.sales-strategy-row:hover {
  background: rgba(73, 95, 139, 0.03);
}

.sales-strategy-row.expanded {
  background: rgba(73, 95, 139, 0.04);
}

.sales-strategy-row.row-spotlight {
  animation: sales-row-spotlight 1.4s ease;
}

@keyframes sales-row-spotlight {
  0% {
    background: rgba(11, 120, 239, 0.18);
  }
  100% {
    background: rgba(73, 95, 139, 0.04);
  }
}

.sales-strategy-product {
  display: grid;
  gap: 8px;
}

.sales-strategy-product-name {
  font-size: 16px;
  font-weight: 900;
}

.sales-strategy-meta {
  color: var(--muted);
  font-size: 12px;
}

.sales-strategy-badges,
.sales-strategy-status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sales-mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.sales-mini-badge.primary {
  background: linear-gradient(135deg, #1b78e2 0%, #2c8fff 100%);
}

.sales-mini-badge.danger {
  background: linear-gradient(135deg, #ff2d41 0%, #ff4d57 100%);
}

.sales-mini-badge.safe {
  background: linear-gradient(135deg, #00a34b 0%, #10b962 100%);
}

.sales-mini-badge.warning {
  background: linear-gradient(135deg, #ff9f1a 0%, #ffb347 100%);
}

.sales-strategy-metric {
  display: grid;
  gap: 6px;
}

.sales-strategy-metric strong {
  font-size: 18px;
}

.sales-strategy-detail-row td {
  padding-top: 0;
  background: rgba(73, 95, 139, 0.02);
}

.sales-strategy-detail-panel {
  padding: 16px;
}

.sales-strategy-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sales-strategy-detail-head-copy {
  display: grid;
  gap: 6px;
}

.sales-strategy-detail-head span {
  color: var(--muted);
  font-size: 12px;
}

.sales-strategy-detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sales-store-sort-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sales-detail-mode-btn {
  border: none;
  border-radius: 999px;
  min-height: 34px;
  padding: 7px 14px;
  background: #edf2fb;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sales-detail-mode-btn.active {
  background: linear-gradient(135deg, #14213d 0%, #2c4c87 100%);
  color: #fff;
}

.sales-strategy-detail-title-copy {
  display: grid;
  gap: 6px;
}

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

.sales-store-overview-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
}

.sales-store-overview-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.sales-store-overview-card strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  font-weight: 900;
}

.sales-store-overview-card.danger {
  box-shadow: inset 0 0 0 1px rgba(201, 42, 58, 0.24);
  background: linear-gradient(180deg, #fff7f8 0%, #ffeef1 100%);
}

.sales-store-overview-card.warning {
  box-shadow: inset 0 0 0 1px rgba(169, 106, 0, 0.24);
  background: linear-gradient(180deg, #fffaf0 0%, #fff3df 100%);
}

.sales-store-overview-card.safe {
  box-shadow: inset 0 0 0 1px rgba(13, 138, 79, 0.2);
  background: linear-gradient(180deg, #f5fff9 0%, #eaf9f0 100%);
}

.sales-store-overview-card.normal {
  background: linear-gradient(180deg, #f7f9fe 0%, #eef3fd 100%);
}

.sales-strategy-priority-strip {
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: #f6f8fc;
}

.sales-strategy-executive-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(47, 104, 245, 0.08), rgba(47, 104, 245, 0.02));
}

.sales-strategy-executive-copy {
  display: grid;
  gap: 6px;
}

.sales-strategy-executive-copy strong {
  font-size: 13px;
}

.sales-strategy-executive-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sales-strategy-priority-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.sales-strategy-priority-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.sales-strategy-priority-chip {
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
}

.sales-strategy-detail-collapsed-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f6f8fc;
}

.sales-strategy-detail-collapsed-note strong {
  display: block;
  font-size: 13px;
}

.sales-strategy-detail-collapsed-note span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sales-strategy-priority-chip strong {
  font-size: 13px;
}

.sales-strategy-priority-chip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sales-strategy-priority-chip.out {
  box-shadow: inset 0 0 0 1px rgba(201, 42, 58, 0.24);
}

.sales-strategy-priority-chip.warning {
  box-shadow: inset 0 0 0 1px rgba(169, 106, 0, 0.24);
}

.sales-strategy-priority-chip.hot {
  box-shadow: inset 0 0 0 1px rgba(13, 138, 79, 0.2);
}

.sales-strategy-priority-empty {
  color: var(--muted);
  font-size: 12px;
}

.sales-store-action-focus {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 16px;
  color: #fff;
}

.sales-store-action-focus.primary {
  background: linear-gradient(135deg, #0b78ef 0%, #2f8fff 100%);
}

.sales-store-action-focus.warning {
  background: linear-gradient(135deg, #f39c12 0%, #ffb02c 100%);
}

.sales-store-action-focus.danger {
  background: linear-gradient(135deg, #ff2950 0%, #ff4a5d 100%);
}

.sales-store-action-focus.safe {
  background: linear-gradient(135deg, #00a34b 0%, #18bb67 100%);
}

.sales-store-action-focus strong {
  font-size: 13px;
}

.sales-store-action-focus span {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.84);
}

.sales-store-action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
}

.sales-store-action-badge.primary {
  background: rgba(11, 120, 239, 0.12);
  color: #0b78ef;
}

.sales-store-action-badge.warning {
  background: rgba(243, 156, 18, 0.14);
  color: #b06a00;
}

.sales-store-action-badge.danger {
  background: rgba(255, 41, 80, 0.12);
  color: #d9274a;
}

.sales-store-action-badge.safe {
  background: rgba(0, 163, 75, 0.12);
  color: #0b9650;
}

.sales-strategy-detail-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.sales-strategy-insight-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f7f9fd;
}

.sales-strategy-insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.sales-strategy-insight-head strong {
  font-size: 14px;
}

.sales-strategy-insight-head span {
  color: var(--muted);
  font-size: 12px;
}

.sales-strategy-area-list,
.sales-strategy-action-list {
  display: grid;
  gap: 10px;
}

.sales-strategy-area-chip {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
}

.sales-strategy-area-chip strong {
  font-size: 13px;
}

.sales-strategy-area-chip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sales-strategy-area-chip.danger {
  box-shadow: inset 0 0 0 1px rgba(201, 42, 58, 0.24);
  background: linear-gradient(180deg, #fff8f9 0%, #fff0f2 100%);
}

.sales-strategy-area-chip.safe {
  box-shadow: inset 0 0 0 1px rgba(13, 138, 79, 0.18);
  background: linear-gradient(180deg, #f7fff9 0%, #edf9f1 100%);
}

.sales-strategy-action-wrap {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
}

.sales-strategy-action-wrap.primary {
  background: linear-gradient(180deg, #f5faff 0%, #edf5ff 100%);
}

.sales-strategy-action-wrap.warning {
  background: linear-gradient(180deg, #fffaf0 0%, #fff4e1 100%);
}

.sales-strategy-action-wrap.danger {
  background: linear-gradient(180deg, #fff7f8 0%, #fff0f2 100%);
}

.sales-strategy-action-wrap.safe {
  background: linear-gradient(180deg, #f7fff9 0%, #eef9f2 100%);
}

.sales-strategy-action-card {
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.sales-strategy-action-card:hover {
  transform: translateY(-2px);
  filter: saturate(1.04);
}

.sales-strategy-action-card.active {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.58), 0 20px 34px rgba(34, 40, 64, 0.18);
}

.sales-strategy-action-card:focus-visible {
  outline: 2px solid rgba(11, 120, 239, 0.28);
  outline-offset: 2px;
}

.sales-strategy-action-card.primary {
  background: linear-gradient(135deg, #0b78ef 0%, #2f8fff 100%);
}

.sales-strategy-action-card.warning {
  background: linear-gradient(135deg, #f39c12 0%, #ffb02c 100%);
}

.sales-strategy-action-card.danger {
  background: linear-gradient(135deg, #ff2950 0%, #ff4a5d 100%);
}

.sales-strategy-action-card.safe {
  background: linear-gradient(135deg, #00a34b 0%, #18bb67 100%);
}

.sales-strategy-action-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}

.sales-strategy-action-card strong {
  font-size: 14px;
  line-height: 1.6;
}

.sales-strategy-action-card span {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.84);
}

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

.sales-strategy-action-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.sales-strategy-action-form textarea,
.sales-strategy-action-form select,
.sales-strategy-action-form input {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
}

.sales-strategy-action-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sales-strategy-action-status {
  display: grid;
  gap: 4px;
}

.sales-strategy-action-status strong {
  font-size: 12px;
}

.sales-strategy-action-status span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sales-strategy-action-status.primary strong {
  color: var(--primary);
}

.sales-strategy-action-status.warning strong {
  color: #a96a00;
}

.sales-strategy-action-status.safe strong {
  color: #0d8a4f;
}

.sales-strategy-action-decisions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sales-action-decision-btn {
  border: none;
  border-radius: 999px;
  min-height: 34px;
  padding: 6px 12px;
  background: #edf2fb;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sales-action-decision-btn.warning {
  background: #fff0d8;
  color: #a96a00;
}

.sales-action-decision-btn.neutral {
  background: #edf2fb;
  color: var(--primary);
}

.sales-action-decision-btn.neutral.active {
  background: linear-gradient(135deg, #14213d 0%, #2c4c87 100%);
  color: #fff;
}

.sales-action-decision-btn.active {
  background: linear-gradient(135deg, #00a34b 0%, #18bb67 100%);
  color: #fff;
}

.sales-action-decision-btn.warning.active {
  background: linear-gradient(135deg, #f39c12 0%, #ffb02c 100%);
  color: #fff;
}

.sales-strategy-insight-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.sales-strategy-detail-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
}

.sales-strategy-detail-card.out {
  box-shadow: inset 0 0 0 1px rgba(201, 42, 58, 0.24);
  background: linear-gradient(180deg, #fff8f9 0%, #fff1f3 100%);
}

.sales-strategy-detail-card.warning {
  box-shadow: inset 0 0 0 1px rgba(169, 106, 0, 0.24);
  background: linear-gradient(180deg, #fffaf1 0%, #fff3e1 100%);
}

.sales-strategy-detail-card.hot {
  box-shadow: inset 0 0 0 1px rgba(13, 138, 79, 0.2);
  background: linear-gradient(180deg, #f7fff9 0%, #eef9f2 100%);
}

.sales-strategy-detail-card.normal {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fe 100%);
}

.sales-strategy-detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sales-strategy-detail-title strong {
  font-size: 14px;
}

.sales-strategy-detail-risk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.sales-strategy-detail-risk.out {
  background: #ffe1e4;
  color: #c92a3a;
}

.sales-strategy-detail-risk.warning {
  background: #fff0d8;
  color: #a96a00;
}

.sales-strategy-detail-risk.hot {
  background: #def5e7;
  color: #0d8a4f;
}

.sales-strategy-detail-risk.normal {
  background: #edf2fb;
  color: var(--primary);
}

.sales-strategy-detail-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.sales-strategy-detail-stats {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
}

.sales-strategy-detail-reason {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 12px;
  line-height: 1.6;
}

.sales-strategy-detail-empty {
  padding: 16px;
  border-radius: 16px;
  background: #f4f6fb;
  color: var(--muted);
}

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

.sales-advice-card {
  min-height: 224px;
}

.sales-advice-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sales-advice-title-row h3 {
  margin: 0;
  font-size: 18px;
}

.sales-advice-title-row span {
  color: var(--muted);
  font-size: 12px;
}

.sales-advice-list {
  display: grid;
  gap: 12px;
}

.sales-advice-item {
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f4f6fb;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sales-advice-item:hover {
  transform: translateY(-2px);
  background: #edf3ff;
  box-shadow: 0 16px 28px rgba(34, 40, 64, 0.08);
}

.sales-advice-item.active {
  transform: translateY(-2px);
  background: #e8f1ff;
  box-shadow: 0 0 0 2px rgba(11, 120, 239, 0.16), 0 18px 28px rgba(11, 120, 239, 0.12);
}

.sales-advice-item:focus-visible {
  outline: 2px solid rgba(11, 120, 239, 0.28);
  outline-offset: 2px;
}

.sales-advice-item-title {
  font-weight: 900;
}

.sales-advice-item-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.sales-advice-empty {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: #f4f6fb;
}

.sales-advice-empty strong {
  font-size: 15px;
}

.sales-advice-empty span {
  color: var(--muted);
  font-size: 13px;
}

.sales-spotlight-card {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  background: linear-gradient(180deg, #fff6d8 0%, #fff1b7 100%);
  border: 1px solid rgba(243, 156, 18, 0.18);
}

.sales-spotlight-mark {
  min-width: 78px;
  height: 78px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2b7fff 0%, #49a1ff 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 18px 30px rgba(43, 127, 255, 0.18);
}

.sales-reverse-card {
  margin-top: 0;
}

.sales-reverse-head h3 {
  margin: 0;
  font-size: 22px;
}

.sales-reverse-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.sales-reverse-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.sales-reverse-store-list,
.sales-reverse-product-list {
  display: grid;
  gap: 12px;
}

.sales-reverse-store-card,
.sales-reverse-product-item {
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f6f8fc;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sales-reverse-store-card:hover,
.sales-reverse-product-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(34, 40, 64, 0.08);
}

.sales-reverse-store-card.active {
  background: linear-gradient(135deg, #14213d 0%, #2c4c87 100%);
  color: #fff;
}

.sales-reverse-store-card strong,
.sales-reverse-product-title strong {
  display: block;
  font-size: 14px;
}

.sales-reverse-store-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.sales-reverse-store-card.active span {
  color: rgba(255, 255, 255, 0.78);
}

.sales-reverse-store-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
}

.sales-reverse-product-panel {
  padding: 14px 16px;
  border-radius: 20px;
  background: #f9fbff;
}

.sales-reverse-product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sales-reverse-product-head > div {
  display: grid;
  gap: 6px;
}

.sales-reverse-product-head span {
  color: var(--muted);
  font-size: 12px;
}

.sales-reverse-product-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sales-reverse-product-title span {
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.sales-reverse-product-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.sales-reverse-product-reason {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
}

.sales-reverse-empty {
  padding: 18px;
  border-radius: 18px;
  background: #f4f6fb;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

#panel-sales-dashboard.meeting-mode .sales-hero-explainer-card,
#panel-sales-dashboard.meeting-mode .sales-confidence-card,
#panel-sales-dashboard.meeting-mode .sales-action-history-card,
#panel-sales-dashboard.meeting-mode .sales-spotlight-card,
#panel-sales-dashboard.meeting-mode .sales-reverse-card {
  display: none;
}

#panel-sales-dashboard.meeting-mode .sales-dashboard-control-shell {
  padding: 14px 18px;
}

#panel-sales-dashboard.meeting-mode #salesDashboardTopGrid {
  display: none;
}

#panel-sales-dashboard.meeting-mode .sales-dashboard-control-copy h3 {
  display: none;
}

#panel-sales-dashboard.meeting-mode .sales-dashboard-control-copy p {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.sales-spotlight-text {
  display: grid;
  gap: 8px;
}

.sales-spotlight-text strong {
  font-size: 32px;
  line-height: 1.1;
}

.sales-spotlight-text span {
  color: #7f6614;
  font-size: 15px;
  line-height: 1.7;
}

.trend-row {
  gap: 12px;
}

.trend-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.trend-row-head span {
  color: var(--muted);
  font-size: 13px;
}

.trend-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(73, 95, 139, 0.1);
}

.trend-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #80a1df 0%, #495f8b 100%);
}

.metric-label {
  color: var(--muted);
  font-size: 13px;
}

.metric-value {
  margin-top: 12px;
  font-size: 34px;
  font-weight: 800;
}

.stack-list {
  display: grid;
  gap: 12px;
}

.list-row {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f4f5fa;
}

.list-row strong {
  display: block;
  margin-bottom: 8px;
}

.list-row span {
  color: var(--muted);
  font-size: 13px;
}

.list-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.metric-inline {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tag.primary {
  background: #dce5fb;
  color: var(--primary);
}

.tag.danger {
  background: #f4dddd;
  color: var(--danger);
}

.tag.safe {
  background: #dde8db;
  color: var(--safe);
}

.tag.warning {
  background: #f7ebc9;
  color: var(--warning);
}

.form-card form,
.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.form-grid label span {
  color: var(--muted);
}

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

.hint-block {
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.readonly-card {
  position: relative;
}

.readonly-note {
  margin-bottom: 18px;
  background: rgba(247, 235, 201, 0.92);
  color: #8a6518;
}

input,
select,
textarea {
  width: 100%;
  border: none;
  border-radius: 16px;
  background: var(--surface-soft);
  padding: 12px 14px;
  color: var(--text);
}

.table-search {
  max-width: 240px;
}

.inventory-panel-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f7ff 100%);
  border: 1px solid rgba(94, 118, 174, 0.08);
}

.inventory-panel-filter {
  min-width: 260px;
  display: grid;
  gap: 6px;
}

.inventory-panel-filter span {
  color: #6f7f9d;
  font-size: 12px;
  font-weight: 700;
}

.inventory-panel-hint {
  color: #50627f;
  font-size: 12px;
  font-weight: 700;
}

.inventory-store-actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-wrap {
  overflow: auto;
  margin-top: 12px;
}

.transfer-head {
  justify-content: space-between;
  margin-bottom: 8px;
}

.transfer-head strong {
  margin-bottom: 0;
}

.transfer-route {
  margin-top: 8px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mini-btn {
  padding: 8px 14px;
  font-size: 12px;
}

.table-wrap .mini-btn {
  white-space: nowrap;
}

.danger-btn {
  color: var(--danger);
}

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

.metric-mini-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f4f5fa;
}

.metric-mini-label {
  color: var(--muted);
  font-size: 12px;
}

.metric-mini-value {
  margin-top: 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
}

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

.sales-cell-main {
  display: grid;
  gap: 6px;
}

.sales-cell-title {
  font-weight: 800;
  color: var(--text);
}

.sales-cell-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.sales-dual-metric {
  display: grid;
  gap: 6px;
}

.sales-dual-metric strong {
  font-size: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(73, 95, 139, 0.08);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 13px;
}

td strong {
  display: block;
}

.empty-cell {
  color: var(--muted);
  text-align: center;
  padding: 28px 10px;
}

.text-danger {
  color: var(--danger);
}

.text-safe {
  color: var(--safe);
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: rgba(32, 36, 44, 0.92);
  color: #fff;
  padding: 12px 16px;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.2s ease;
  pointer-events: none;
}

.login-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(123, 149, 205, 0.26), transparent 28%),
    radial-gradient(circle at bottom right, rgba(73, 95, 139, 0.22), transparent 26%),
    rgba(25, 31, 42, 0.32);
  backdrop-filter: blur(10px);
  z-index: 30;
}

.login-overlay.show {
  display: flex;
}

.login-card {
  position: relative;
  width: min(760px, 100%);
  padding: 32px;
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.96) 100%);
  box-shadow: 0 28px 70px rgba(32, 36, 44, 0.24);
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 160px;
  background:
    radial-gradient(circle at top left, rgba(110, 140, 199, 0.22), transparent 54%),
    linear-gradient(135deg, rgba(73, 95, 139, 0.12), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.login-card-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.login-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-dim), var(--primary));
  margin-bottom: 18px;
}

.login-card h2 {
  margin: 0;
  font-size: 28px;
}

.login-card p {
  margin: 10px 0 18px;
  color: var(--muted);
}

.login-summary {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 18px;
}

.login-stat {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(244, 246, 252, 0.9);
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
}

.login-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.login-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.login-switch-section {
  position: relative;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
}

.login-switch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.login-switch-head strong {
  font-size: 16px;
}

.login-switch-head span {
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.login-account-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.login-account-option {
  border: none;
  border-radius: 22px;
  padding: 16px;
  text-align: left;
  background: linear-gradient(180deg, #f8f9fd 0%, #eef2fb 100%);
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-account-option:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(73, 95, 139, 0.12),
    0 12px 24px rgba(73, 95, 139, 0.12);
}

.login-account-option.active {
  background: linear-gradient(135deg, rgba(93, 116, 161, 0.16), rgba(73, 95, 139, 0.08));
  box-shadow:
    inset 0 0 0 2px rgba(73, 95, 139, 0.32),
    0 16px 28px rgba(73, 95, 139, 0.14);
}

.login-account-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
}

.login-account-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(73, 95, 139, 0.12);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
}

.login-account-subtitle,
.login-account-note {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.login-account-empty {
  padding: 16px;
  border-radius: 18px;
  background: rgba(73, 95, 139, 0.06);
  color: var(--muted);
  line-height: 1.6;
}

.login-grid {
  margin-bottom: 14px;
}

.login-close-btn {
  flex-shrink: 0;
}

.login-account-meta {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(73, 95, 139, 0.07);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-card input,
.login-card select {
  background: rgba(241, 244, 251, 0.92);
  box-shadow: inset 0 0 0 1px rgba(73, 95, 139, 0.08);
}

.login-card .hint-block {
  background: rgba(241, 244, 251, 0.92);
}

.login-btn {
  width: 100%;
  margin-top: 14px;
  min-height: 56px;
  font-size: 20px;
  letter-spacing: 1px;
}

.ops-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(54, 124, 255, 0.24), transparent 28%),
    radial-gradient(circle at bottom left, rgba(30, 178, 122, 0.14), transparent 32%),
    linear-gradient(135deg, #0f1f48 0%, #1f4ea3 52%, #eef4ff 150%);
  color: #fff;
  box-shadow: 0 24px 48px rgba(24, 48, 104, 0.2);
}

.ops-hero-copy {
  display: grid;
  gap: 10px;
  align-content: center;
}

.ops-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.ops-hero-copy h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.05;
}

.ops-hero-copy p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  line-height: 1.7;
}

.ops-hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ops-hero-metric {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.ops-hero-metric span,
.ops-metric-card span,
.ops-sales-kpi span,
.ops-import-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ops-hero-metric span {
  color: rgba(255, 255, 255, 0.72);
}

.ops-hero-metric strong,
.ops-metric-card strong,
.ops-sales-kpi strong,
.ops-import-item strong {
  display: block;
  margin-top: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.ops-hero-metric strong {
  font-size: 28px;
}

.ops-hero-metric small,
.ops-metric-card small,
.ops-sales-kpi small,
.ops-import-item small,
.ops-signal-item small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.ops-hero-metric small {
  color: rgba(255, 255, 255, 0.78);
}

.ops-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 340px;
  gap: 18px;
  align-items: start;
}

.ops-dashboard-main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ops-dashboard-side {
  display: grid;
  gap: 18px;
}

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

.ops-import-grid {
  margin-bottom: 18px;
}

.ops-module-summary-card {
  display: grid;
  gap: 16px;
}

.ops-module-summary-metrics {
  display: grid;
  gap: 10px;
}

.ops-summary-mini-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.08);
}

.ops-summary-mini-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ops-summary-mini-card strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.15;
}

.ops-summary-mini-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.ops-detail-card-grid {
  margin-bottom: 18px;
}

.ops-recycle-analysis-grid {
  margin-bottom: 18px;
}

.recycle-dashboard-panel {
  background: #f6f9ff;
}

body[data-active-panel="recycle-dashboard"] .scope-card {
  display: none;
}

.recycle-hero-banner {
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(circle at 14% 20%, rgba(255,255,255,0.16), transparent 22%),
    radial-gradient(circle at 84% 18%, rgba(255,255,255,0.18), transparent 16%),
    linear-gradient(90deg, #0b4ccf 0%, #0b76ff 58%, #c7e3ff 100%);
  box-shadow: 0 14px 28px rgba(19, 83, 210, 0.18);
}

.recycle-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 38, 114, 0.26), rgba(7, 38, 114, 0.02) 44%, rgba(255,255,255,0.04) 100%),
    radial-gradient(circle at 72% 28%, rgba(255,255,255,0.16), transparent 30%);
}

.recycle-hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(350px, 0.82fr);
  min-height: 126px;
  align-items: stretch;
}

.recycle-hero-copy {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 28px 12px 22px;
  color: #fff;
}

.recycle-hero-copy h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: none;
}

.recycle-hero-copy p {
  margin: 0;
  max-width: none;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 600;
  opacity: 0.92;
}

.recycle-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

.recycle-hero-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.85;
}

.recycle-hero-side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding: 0 10px 0 0;
}

.recycle-hero-side::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.26), rgba(255,255,255,0.1));
}

.recycle-hero-summary {
  display: none;
}

.recycle-hero-summary-card {
  padding: 14px 16px 13px;
  border-radius: 18px;
  background: rgba(255,255,255,0.94);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45), 0 14px 24px rgba(14, 66, 182, 0.14);
}

.recycle-hero-summary-card span,
.recycle-hero-summary-card small {
  display: block;
}

.recycle-hero-summary-card span {
  color: #6580c4;
  font-size: 11px;
  font-weight: 900;
}

.recycle-hero-summary-card strong {
  display: block;
  margin-top: 6px;
  color: #13264f;
  font-size: 20px;
  line-height: 1.2;
}

.recycle-hero-summary-card small {
  margin-top: 6px;
  color: #8a97b0;
  font-size: 11px;
  font-weight: 800;
}

.recycle-hero-illustration {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 126px;
  border-radius: 0;
  background:
    radial-gradient(circle at 76% 30%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(8, 81, 226, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: none;
}

.recycle-hero-graphic {
  width: min(100%, 380px);
  height: auto;
  transform: translateX(0);
}

.recycle-hero-floor {
  fill: rgba(1, 57, 170, 0.18);
}

.recycle-hero-floor-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
}

.recycle-hero-trail {
  fill: none;
  stroke: url(#recycleHeroLineGradient);
  stroke-width: 2.1;
  stroke-linecap: round;
}

.recycle-hero-trail.muted {
  opacity: 0.62;
  stroke-width: 1.7;
}

.recycle-hero-trail.faint {
  opacity: 0.32;
  stroke-width: 1.35;
  stroke-dasharray: 7 10;
}

.recycle-hero-guide-columns path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 2 9;
}

.recycle-hero-orbits circle {
  fill: rgba(255, 255, 255, 0.92);
}

.recycle-hero-bars rect {
  fill: url(#recycleHeroBarGradient);
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1.1;
}

.recycle-hero-bar-caps circle {
  fill: #ffffff;
  stroke: #7dd7ff;
  stroke-width: 3;
}

.recycle-hero-arrow-shadow,
.recycle-hero-arrow-path,
.recycle-hero-arrow-glow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.recycle-hero-arrow-shadow {
  stroke: rgba(4, 44, 140, 0.24);
  stroke-width: 14;
}

.recycle-hero-arrow-path {
  stroke: url(#recycleHeroArrowGradient);
  stroke-width: 10;
}

.recycle-hero-arrow-glow {
  stroke: url(#recycleHeroArrowGlow);
  stroke-width: 3.2;
  opacity: 0.9;
}

.recycle-hero-arrow-head {
  fill: #0c69ff;
  filter: drop-shadow(0 10px 14px rgba(4, 58, 164, 0.24));
}

.recycle-hero-arrow-anchor {
  fill: #ffffff;
  stroke: #6ccfff;
  stroke-width: 4;
}

.recycle-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.recycle-kpi-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 208px;
  padding: 14px 14px 96px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 10px 22px rgba(26, 53, 104, 0.06);
  overflow: hidden;
}


.recycle-kpi-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(47, 104, 245, 0.08), transparent 35%);
  pointer-events: none;
}

.tone-blue { --recycle-tone: #1682ff; }
.tone-green { --recycle-tone: #10c5a4; }
.tone-purple { --recycle-tone: #8b5cf6; }
.tone-orange { --recycle-tone: #ff7a1a; }
.tone-teal { --recycle-tone: #10bfb8; }
.tone-sky { --recycle-tone: #35a7ff; }

.recycle-kpi-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.recycle-kpi-head {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.recycle-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: none;
}

.tone-blue .recycle-kpi-icon { background: #1682ff; }
.tone-green .recycle-kpi-icon { background: #10c5a4; }
.tone-purple .recycle-kpi-icon { background: #8b5cf6; }
.tone-orange .recycle-kpi-icon { background: #ff7a1a; }
.tone-teal .recycle-kpi-icon { background: #10bfb8; }
.tone-sky .recycle-kpi-icon { background: #35a7ff; }

.recycle-kpi-head strong {
  color: #263a64;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.recycle-kpi-value {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  color: #111b3a;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.recycle-kpi-meta {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: #a4b0c5;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
}

.recycle-kpi-subline {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  color: #9aa7bd;
  font-size: 10px;
  font-weight: 700;
  min-height: 14px;
}

.recycle-kpi-subtitle {
  color: #9aa7bd;
  font-size: 12px;
  font-weight: 900;
}

.recycle-kpi-foot {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.recycle-kpi-delta-group {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
}

.recycle-kpi-delta-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.recycle-kpi-delta-row em {
  color: #8a97b0;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.recycle-kpi-delta {
  font-size: 12px;
  font-weight: 900;
}

.recycle-kpi-delta.up {
  color: #00bd7e;
}

.recycle-kpi-delta.down {
  color: #ff4747;
}

.recycle-kpi-delta.flat {
  color: #8b98ae;
}

.recycle-kpi-sparkline {
  width: 100%;
  height: 100%;
}

.recycle-kpi-chart-zone {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  width: auto;
  height: 72px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}

.recycle-kpi-sparkline svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.recycle-sparkline-area {
  opacity: 1;
}

.recycle-sparkline-axis-x,
.recycle-sparkline-axis-y {
  fill: none;
  stroke: rgba(150, 163, 188, 0.35);
  stroke-width: 1;
  stroke-linecap: round;
}

.recycle-sparkline-grid path {
  fill: none;
  stroke: rgba(166, 178, 201, 0.35);
  stroke-width: 0.8;
  stroke-dasharray: 2 3;
}

.recycle-sparkline-grid text {
  fill: #99a7bd;
  font-size: 7px;
  font-weight: 700;
}

.recycle-sparkline-grid.recycle-sparkline-grid-x {
  opacity: 0.82;
}

.recycle-sparkline-grid-x text {
  text-anchor: middle;
}

.recycle-sparkline-grid-y text {
  text-anchor: end;
}

.recycle-sparkline-line {
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.98;
}

.recycle-sparkline-hit {
  fill: transparent;
  cursor: pointer;
}

.recycle-sparkline-dot-ring {
  fill: #fff;
  opacity: 0.5;
}

.recycle-sparkline-dot {
  stroke: #fff;
  stroke-width: 0.35;
  transition: transform 0.18s ease;
}

.recycle-sparkline-tooltip {
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.recycle-sparkline-tooltip rect {
  fill: rgba(255, 255, 255, 0.98);
  stroke: rgba(181, 196, 228, 0.7);
  stroke-width: 1;
  filter: drop-shadow(0 6px 14px rgba(57, 80, 130, 0.14));
}

.recycle-sparkline-tooltip text {
  text-anchor: middle;
  dominant-baseline: middle;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.recycle-sparkline-tooltip text.label {
  fill: #8290ab;
  font-size: 8px;
  font-weight: 800;
}

.recycle-sparkline-tooltip text.value {
  fill: #1f2d4f;
  font-size: 9px;
  font-weight: 900;
}

.recycle-sparkline-tooltip text.value.single {
  font-size: 8px;
}

.recycle-sparkline-node:hover .recycle-sparkline-tooltip,
.recycle-sparkline-node:focus .recycle-sparkline-tooltip,
.recycle-sparkline-node:focus-within .recycle-sparkline-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.recycle-sparkline-node:hover .recycle-sparkline-dot,
.recycle-sparkline-node:focus .recycle-sparkline-dot,
.recycle-sparkline-node:focus-within .recycle-sparkline-dot {
  transform: scale(1.02);
}

.recycle-sparkline-line.tone-blue { stroke: url(#recycleSparklineGradient-blue); }
.recycle-sparkline-line.tone-green { stroke: url(#recycleSparklineGradient-green); }
.recycle-sparkline-line.tone-purple { stroke: url(#recycleSparklineGradient-purple); }
.recycle-sparkline-line.tone-orange { stroke: url(#recycleSparklineGradient-orange); }
.recycle-sparkline-line.tone-teal { stroke: url(#recycleSparklineGradient-teal); }
.recycle-sparkline-line.tone-sky { stroke: url(#recycleSparklineGradient-sky); }

.recycle-sparkline-area.tone-blue { fill: url(#recycleSparklineArea-blue); }
.recycle-sparkline-area.tone-green { fill: url(#recycleSparklineArea-green); }
.recycle-sparkline-area.tone-purple { fill: url(#recycleSparklineArea-purple); }
.recycle-sparkline-area.tone-orange { fill: url(#recycleSparklineArea-orange); }
.recycle-sparkline-area.tone-teal { fill: url(#recycleSparklineArea-teal); }
.recycle-sparkline-area.tone-sky { fill: url(#recycleSparklineArea-sky); }

.recycle-sparkline-dot-ring.tone-blue,
.recycle-sparkline-dot-ring.tone-green,
.recycle-sparkline-dot-ring.tone-purple,
.recycle-sparkline-dot-ring.tone-orange,
.recycle-sparkline-dot-ring.tone-teal,
.recycle-sparkline-dot-ring.tone-sky {
  stroke-width: 0;
}

.recycle-sparkline-dot.tone-blue { fill: #1682ff; }
.recycle-sparkline-dot.tone-green { fill: #10c5a4; }
.recycle-sparkline-dot.tone-purple { fill: #8b5cf6; }
.recycle-sparkline-dot.tone-orange { fill: #ff7a1a; }
.recycle-sparkline-dot.tone-teal { fill: #10bfb8; }
.recycle-sparkline-dot.tone-sky { fill: #35a7ff; }

.recycle-filter-bar {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
  padding: 20px 24px 22px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(26, 53, 104, 0.07);
}

.recycle-filter-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.recycle-filter-kicker {
  display: block;
  color: #9aa7bf;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recycle-filter-header strong {
  display: block;
  margin-top: 6px;
  color: #182d57;
  font-size: 18px;
}

.recycle-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: start;
}

.recycle-filter-item {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.recycle-filter-item-range {
  grid-column: 1 / -1;
}

.recycle-filter-label {
  color: #6f7f9d;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.recycle-filter-bar select,
.recycle-filter-bar input[type="date"] {
  height: 46px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid #e4ebf7;
  border-radius: 14px;
  background: #fff;
  color: #263a64;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(245, 248, 255, 0.9);
}

.recycle-filter-bar input[type="date"] {
  min-width: 0;
}

.recycle-filter-bar input[type="date"]:disabled {
  opacity: 0.48;
  background: #f7f9fd;
}

.recycle-range-controls {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.recycle-range-mode-row {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.recycle-range-summary {
  min-width: 0;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7faff 0%, #f2f6fd 100%);
  color: #5971a5;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  box-shadow: inset 0 0 0 1px rgba(104, 128, 182, 0.1);
}

.recycle-range-quick-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.recycle-quick-range {
  border: none;
  border-radius: 14px;
  min-height: 42px;
  padding: 8px 10px;
  background: #eef2fb;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.recycle-quick-range.active {
  background: linear-gradient(135deg, #0b78ef 0%, #208fff 100%);
  color: #fff;
  box-shadow: 0 12px 20px rgba(11, 120, 239, 0.16);
}

.recycle-range-day-row {
  display: none;
}

.recycle-range-controls[data-mode="day"] .recycle-range-day-row {
  display: block;
}

.recycle-range-controls[data-mode="custom"] .recycle-range-date-row {
  display: grid;
}

.recycle-range-controls:not([data-mode="custom"]) .recycle-range-date-row {
  display: none;
}

.recycle-range-date-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.recycle-range-date-field {
  display: grid;
  gap: 6px;
}

.recycle-range-date-field small {
  color: #9aa7bf;
  font-size: 11px;
  font-weight: 900;
}

.recycle-range-separator {
  color: #8a97b0;
  font-weight: 900;
  white-space: nowrap;
  align-self: center;
  margin-top: 18px;
}

.recycle-reset-btn {
  min-width: 108px;
}

.recycle-table-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  gap: 20px;
}

.recycle-table-card {
  padding: 24px;
  border: 1px solid rgba(229, 236, 247, 0.9);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 18px 34px rgba(26, 53, 104, 0.07);
  overflow: hidden;
}

.recycle-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.recycle-table-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef5ff;
  color: #5b77ba;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.recycle-table-head h3 {
  margin: 10px 0 0;
  color: #142a55;
  font-size: 21px;
}

.recycle-table-head p {
  margin: 8px 0 0;
  color: #8a97b0;
  font-size: 12px;
  line-height: 1.6;
}

.recycle-table-info {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #f4f7fd;
  color: #7d8ba6;
  font-size: 11px;
  font-weight: 900;
}

.recycle-table-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid #edf2fb;
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(244, 247, 252, 0.9);
}

.recycle-rank-table {
  width: max(100%, 880px);
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.recycle-table-card:not(.expanded) .recycle-table-wrap {
  overflow: hidden;
}

.recycle-table-card.expanded .recycle-table-wrap {
  max-height: 620px;
  overflow: auto;
  overscroll-behavior: contain;
}

.recycle-rank-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f8fbff;
  box-shadow: inset 0 -1px 0 #e8eef9;
}

.recycle-rank-table th {
  padding: 14px 10px;
  color: #8a97b0;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.recycle-rank-table td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf1f8;
  color: #263a64;
  font-weight: 800;
  background: #fff;
}

.recycle-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #30405f;
  font-size: 13px;
  font-weight: 900;
}

.recycle-rank-badge.gold {
  color: #fff;
  background: linear-gradient(180deg, #ffc83d, #ff9e00);
}

.recycle-rank-badge.silver {
  color: #fff;
  background: linear-gradient(180deg, #cbd4e2, #8a98aa);
}

.recycle-rank-badge.bronze {
  color: #fff;
  background: linear-gradient(180deg, #ff9b66, #f06437);
}

.recycle-change-chip {
  font-weight: 900;
}

.recycle-change-chip.up {
  color: #00bd7e;
}

.recycle-change-chip.down {
  color: #ff4747;
}

.recycle-change-chip.flat {
  color: #96a3bc;
}

.recycle-employee-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.recycle-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  background: linear-gradient(180deg, #1a4bb0, #78a6ff);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.recycle-table-action {
  width: 100%;
  margin-top: 16px;
  color: #0d6dff;
  font-weight: 900;
}

.recycle-empty-cell {
  height: 180px;
  text-align: center;
  color: #8b98ae;
}

.recycle-config-card {
  margin-top: 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(26, 53, 104, 0.07);
}

.recycle-config-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
}

.recycle-config-card summary strong {
  display: block;
  color: #142a55;
  font-size: 18px;
}

.recycle-config-card summary small {
  display: block;
  margin-top: 6px;
  color: #8a97b0;
  font-weight: 800;
}

.recycle-config-card > .grid-two {
  padding: 0 24px 24px;
}

.ops-module-import-form,
.ops-module-parser-form,
.ops-module-import-summary-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 247, 255, 0.98) 100%);
}

.ops-board-card,
.ops-sales-board,
.ops-risk-board {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
}

.ops-board-card::before,
.ops-sales-board::before,
.ops-risk-board::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, transparent 24%);
}

.ops-recycle-card {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at top right, rgba(52, 211, 153, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 252, 248, 0.98) 100%);
}

.ops-visit-card {
  background:
    radial-gradient(circle at top right, rgba(248, 113, 113, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 246, 246, 0.98) 100%);
}

.ops-o2o-card {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 248, 255, 0.98) 100%);
}

.ops-wecom-card {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 252, 248, 0.98) 100%);
}

.ops-quality-card {
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 251, 240, 0.98) 100%);
}

.ops-sales-board {
  background:
    radial-gradient(circle at top right, rgba(47, 104, 245, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 247, 255, 0.99) 100%);
}

.ops-risk-board {
  background:
    radial-gradient(circle at top right, rgba(244, 63, 94, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 246, 248, 0.99) 100%);
}

.ops-board-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ops-board-head span {
  display: block;
  color: #8c98b1;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ops-board-head h3 {
  margin: 8px 0 0;
  font-size: 22px;
}

.ops-health-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ops-health-badge.safe {
  background: rgba(32, 178, 107, 0.12);
  color: var(--safe);
}

.ops-health-badge.primary {
  background: rgba(47, 104, 245, 0.12);
  color: var(--primary);
}

.ops-health-badge.warning {
  background: rgba(255, 156, 63, 0.14);
  color: #d87610;
}

.ops-health-badge.danger {
  background: rgba(255, 107, 89, 0.14);
  color: var(--danger);
}

.ops-metric-grid,
.ops-sales-kpis {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ops-metric-card,
.ops-sales-kpi,
.ops-import-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.08);
}

.ops-signal-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.ops-signal-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(94, 118, 174, 0.08);
}

.ops-signal-item strong {
  display: block;
  font-size: 14px;
}

.ops-signal-item span {
  display: block;
  margin-top: 8px;
  color: #54637f;
  font-size: 13px;
  font-weight: 700;
}

.ops-signal-item.empty {
  background: rgba(255, 255, 255, 0.58);
}

.ops-import-status {
  display: grid;
  gap: 10px;
}

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

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

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 14px 16px 18px;
    border-right: none;
    border-bottom: 1px solid rgba(73, 95, 139, 0.08);
    box-shadow: inset 0 -1px 0 rgba(94, 118, 174, 0.08);
  }

  .brand-block {
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
  }

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

  .nav-item {
    min-height: 80px;
  }

  .nav-item-copy strong {
    font-size: 15px;
  }

  .nav-item-copy small {
    font-size: 12px;
  }

  .sales-dashboard-reference-layout {
    grid-template-columns: 1fr;
  }

  .ops-hero-card,
  .ops-dashboard-layout,
  .ops-dashboard-main,
  .ops-module-summary-grid {
    grid-template-columns: 1fr;
  }

  .ops-recycle-card {
    grid-column: auto;
  }

  .card-grid,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .recycle-hero-shell,
  .recycle-table-grid {
    grid-template-columns: 1fr;
  }

  .recycle-hero-side {
    justify-content: center;
    padding: 0 24px 24px;
  }

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

  .recycle-hero-illustration {
    border-radius: 24px;
    min-height: 164px;
  }

  .recycle-hero-graphic {
    width: min(100%, 520px);
    transform: none;
  }

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

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

  .recycle-range-date-row {
    grid-template-columns: 1fr;
  }

  .recycle-range-mode-row {
    grid-template-columns: 1fr;
  }

  .recycle-range-quick-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recycle-range-separator {
    display: none;
  }

  .recycle-reset-btn {
    width: 100%;
  }

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

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

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

  .sales-filter-footer,
  .sales-filter-range-grid {
    grid-template-columns: 1fr;
  }

  .sales-dashboard-top-grid {
    grid-template-columns: 1fr;
  }

  .sales-hq-top-grid,
  .sales-analytics-grid,
  .sales-command-grid,
  .sales-area-meeting-grid,
  .sales-page-mode-strip,
  .sales-workbench-grid,
  .sales-workbench-recommend,
  .sales-target-grid,
  .sales-freshness-grid,
  .sales-strategy-summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-hq-alert-group-grid,
  .sales-strategy-detail-grid,
  .sales-filter-summary-grid,
  .sales-hero-explainer-grid,
  .sales-strategy-store-overview,
  .sales-strategy-detail-insights,
  .sales-chart-summary,
  .sales-confidence-list-grid,
  .sales-confidence-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-employee-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sales-store-detail-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sales-employee-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .sales-employee-toolbar-main {
    width: 100%;
  }

  .sales-employee-toolbar-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .sales-employee-title-field {
    width: 100%;
  }

  .sales-employee-title-field input {
    width: 100%;
  }

  .sales-employee-summary {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-store-detail-head-tools {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  .sales-store-detail-summary {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-employee-target-editor {
    grid-template-columns: 1fr;
  }

  .sales-strategy-kpi-strip,
  .sales-insights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1101px) and (max-width: 1440px) {
  .recycle-hero-shell {
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  }

  .recycle-hero-side {
    padding: 10px 24px 10px 0;
  }

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

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

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

  .sidebar {
    padding: 14px;
  }

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

  .nav-item {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 72px;
    padding: 13px 14px;
    border-radius: 20px;
  }

  .nav-item-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 18px;
  }

  .nav-item-copy {
    gap: 4px;
  }

  .nav-item-copy strong {
    font-size: 15px;
  }

  .nav-item-copy small {
    font-size: 12px;
  }

  .brand-block {
    gap: 12px;
    padding: 12px 14px 14px;
  }

  .brand-mark {
    width: 52px;
    height: 48px;
    border-radius: 18px;
    font-size: 20px;
  }

  .brand-title {
    font-size: 14px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .ops-hero-card {
    padding: 20px;
  }

  .ops-hero-copy h2 {
    font-size: 28px;
  }

  .login-card {
    padding: 24px;
  }

  .login-summary,
  .login-account-switcher,
  .ops-hero-metrics,
  .ops-metric-grid,
  .ops-sales-kpis,
  .ops-module-summary-grid {
    grid-template-columns: 1fr;
  }

  .login-card-top {
    flex-direction: column;
  }

  .login-switch-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .topbar-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .topbar-actions {
    width: 100%;
  }

  .user-chip {
    width: 100%;
  }

  .recycle-hero-copy {
    padding: 28px 22px 22px;
  }

  .recycle-hero-copy h2 {
    font-size: 30px;
  }

  .recycle-hero-copy p {
    white-space: normal;
  }

  .recycle-hero-side {
    padding: 0 18px 18px;
    justify-content: center;
  }

  .recycle-hero-illustration {
    border-radius: 24px;
    min-height: 154px;
  }

  .recycle-hero-graphic {
    width: 100%;
    transform: none;
  }

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

  .recycle-kpi-grid {
    grid-template-columns: 1fr;
  }

  .recycle-range-quick-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recycle-filter-bar {
    padding: 18px;
  }

  .recycle-filter-header {
    flex-direction: column;
  }

  .recycle-table-card {
    padding: 18px;
  }

  .recycle-table-head {
    flex-direction: column;
  }

  .recycle-table-info {
    align-self: flex-start;
  }

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

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

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

  .ops-board-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sales-filter-grid.sales-filter-grid-primary,
  .sales-filter-grid.sales-filter-grid-compare {
    grid-template-columns: 1fr;
  }

  .sales-quick-range-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-dashboard-control-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .sales-dashboard-control-actions,
  .sales-decision-bar-actions,
  .sales-next-step-actions,
  .sales-bulk-actions,
  .sales-command-toolbar,
  .sales-quick-range-row,
  .sales-date-shortcuts {
    width: 100%;
  }

  .sales-filter-preset-bar,
  .sales-filter-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sales-filter-reset-btn {
    width: 100%;
  }

  .sales-strategy-toolbar,
  .sales-strategy-toolbar-primary,
  .sales-strategy-toolbar-advanced,
  .sales-next-step-strip {
    width: 100%;
  }

  .sales-strategy-summary-row {
    grid-template-columns: 1fr;
  }

  .sales-hq-top-grid,
  .sales-analytics-grid,
  .sales-command-grid,
  .sales-page-mode-strip,
  .sales-area-meeting-grid,
  .sales-history-layout,
  .sales-dashboard-reference-layout,
  .sales-workbench-grid,
  .sales-workbench-recommend,
  .sales-target-grid,
  .sales-freshness-grid,
  .sales-velocity-kpi-grid,
  .sales-velocity-columns,
  .sales-filter-summary-grid,
  .sales-strategy-kpi-strip,
  .sales-hq-alert-group-grid,
  .sales-strategy-detail-grid,
  .sales-hero-explainer-grid,
  .sales-strategy-store-overview,
  .sales-strategy-detail-insights,
  .sales-chart-summary,
  .sales-confidence-list-grid,
  .sales-confidence-compact-strip,
  .sales-confidence-grid,
  .sales-confidence-notes {
    grid-template-columns: 1fr;
  }

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

  .trend-row-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .span-2 {
    grid-column: auto;
  }

  .metric-mini-grid {
    grid-template-columns: 1fr;
  }

  .sales-strategy-kpi-strip,
  .sales-insights-grid {
    grid-template-columns: 1fr;
  }

  .sales-strategy-head,
  .sales-decision-bar-head,
  .sales-next-step-strip,
  .sales-workbench-head,
  .sales-filter-summary-head,
  .sales-strategy-executive-strip,
  .sales-hero-explainer-head,
  .sales-confidence-head,
  .sales-sticky-commander-main,
  .sales-panel-head,
  .sales-strategy-bulk-bar,
  .sales-spotlight-card,
  .sales-strategy-detail-head,
  .sales-strategy-insight-head,
  .sales-velocity-column-head,
  .sales-velocity-item-head,
  .sales-velocity-item-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .sales-decision-bar-actions,
  .sales-sticky-commander-actions {
    width: 100%;
    justify-items: stretch;
  }

  .sales-toggle-cluster,
  .sales-utility-actions,
  .sales-next-step-actions {
    width: 100%;
  }

  .sales-execution-item {
    grid-template-columns: 1fr;
  }

  .sales-execution-main,
  .sales-execution-quick,
  .sales-execution-toolbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .sales-history-item {
    grid-template-columns: 1fr;
  }

  .sales-velocity-item-metric,
  .sales-velocity-column-total {
    min-width: 0;
    text-align: left;
  }

  .sales-strategy-action-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .sales-strategy-action-form,
  .sales-freshness-notes {
    grid-template-columns: 1fr;
  }

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

  .sales-reverse-product-head,
  .sales-reverse-product-title,
  .sales-velocity-item-metric {
    flex-direction: column;
    align-items: flex-start;
  }

  .sales-category-tabs {
    padding: 0 16px;
  }

  .sales-strategy-table-wrap {
    padding: 16px;
  }

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

  .sales-hero-value {
    font-size: 34px;
  }

  .sales-hero-compare-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .sales-spotlight-text strong {
    font-size: 26px;
  }
}

/* Modules explicitly removed from the streamlined sales page. */
html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard #salesHqTopGrid,
html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard #salesInsightsGrid,
html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard #salesDashboardSpotlight {
  display: none !important;
}

/* Ten sales KPI cards: keep process metrics aligned with the main sales cards. */
html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-strategy-kpi-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-hero-card:last-child,
html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-hero-card:last-child:nth-child(3n + 1),
html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-hero-card:last-child:nth-child(4n + 3) {
  grid-column: auto !important;
}

@media (max-width: 1500px) {
  html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-strategy-kpi-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-strategy-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-strategy-kpi-strip {
    grid-template-columns: 1fr;
  }
}

/* Sales homepage-inspired dark experience */
body[data-active-panel="sales-dashboard"] {
  --bg: #17191d;
  --surface: #202329;
  --surface-soft: #262a31;
  --text: #f4f6fb;
  --muted: #9299a7;
  --primary: #4c9cff;
  --primary-dim: #74b6ff;
  background:
    radial-gradient(circle at 68% 10%, rgba(50, 130, 225, 0.14), transparent 32%),
    linear-gradient(180deg, #181b20 0%, #141619 100%);
  color: var(--text);
}

body[data-active-panel="sales-dashboard"] .main {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
}

body[data-active-panel="sales-dashboard"] .sidebar {
  color: #eef2f8;
  background: linear-gradient(180deg, rgba(27, 30, 35, 0.99) 0%, rgba(20, 22, 26, 0.99) 100%);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

body[data-active-panel="sales-dashboard"] .brand-block,
body[data-active-panel="sales-dashboard"] .nav-item,
body[data-active-panel="sales-dashboard"] .user-chip {
  color: #e9edf5;
  background: linear-gradient(180deg, rgba(38, 42, 49, 0.94) 0%, rgba(27, 30, 35, 0.96) 100%);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body[data-active-panel="sales-dashboard"] .brand-sub,
body[data-active-panel="sales-dashboard"] .nav-item-copy small,
body[data-active-panel="sales-dashboard"] .user-chip span {
  color: #8e96a5;
}

body[data-active-panel="sales-dashboard"] .nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(50, 131, 232, 0.3) 0%, rgba(41, 70, 113, 0.22) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(80, 161, 255, 0.3),
    0 14px 28px rgba(0, 0, 0, 0.2);
}

body[data-active-panel="sales-dashboard"] .topbar {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(26, 29, 34, 0.76);
  backdrop-filter: blur(18px);
}

body[data-active-panel="sales-dashboard"] .topbar h1,
body[data-active-panel="sales-dashboard"] .topbar strong {
  color: #f6f7fa;
}

body[data-active-panel="sales-dashboard"] .topbar p,
body[data-active-panel="sales-dashboard"] .topbar-breadcrumb {
  color: #8f97a6;
}

body[data-active-panel="sales-dashboard"] .ghost-btn {
  color: #dce8fa;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(45, 49, 57, 0.96) 0%, rgba(31, 34, 40, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-active-panel="sales-dashboard"] .sales-home-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(460px, 1.04fr);
  align-items: center;
  gap: 48px;
  min-height: 438px;
  margin-bottom: 22px;
  padding: 46px 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 15%, rgba(49, 132, 232, 0.15), transparent 35%),
    linear-gradient(135deg, rgba(29, 32, 37, 0.98) 0%, rgba(24, 27, 31, 0.98) 100%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

body[data-active-panel="sales-dashboard"] .sales-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 64%);
}

body[data-active-panel="sales-dashboard"] .sales-home-hero-copy,
body[data-active-panel="sales-dashboard"] .sales-home-monitor-shell {
  position: relative;
  z-index: 1;
}

body[data-active-panel="sales-dashboard"] .sales-home-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-height: 30px;
  padding: 0 13px;
  border: 1px solid rgba(80, 159, 255, 0.3);
  border-radius: 999px;
  background: rgba(38, 113, 202, 0.1);
  color: #72b7ff;
  font-size: 12px;
  font-weight: 800;
}

body[data-active-panel="sales-dashboard"] .sales-home-badge i,
body[data-active-panel="sales-dashboard"] .sales-home-monitor-head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #50d6b0;
  box-shadow: 0 0 14px rgba(80, 214, 176, 0.72);
}

body[data-active-panel="sales-dashboard"] .sales-home-hero-copy h2 {
  margin: 26px 0 0;
  color: #f7f8fb;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

body[data-active-panel="sales-dashboard"] .sales-home-hero-copy > strong {
  display: block;
  margin-top: 8px;
  background: linear-gradient(90deg, #338df4 0%, #52c8e8 48%, #6d78ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

body[data-active-panel="sales-dashboard"] .sales-home-hero-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  color: #9ca3b0;
  font-size: 15px;
  line-height: 1.9;
}

body[data-active-panel="sales-dashboard"] .sales-home-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

body[data-active-panel="sales-dashboard"] .sales-home-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body[data-active-panel="sales-dashboard"] .sales-home-actions a:hover {
  transform: translateY(-2px);
}

body[data-active-panel="sales-dashboard"] .sales-home-primary {
  color: #fff;
  background: linear-gradient(135deg, #2f83df 0%, #4ba8f8 100%);
  box-shadow: 0 12px 26px rgba(47, 131, 223, 0.26);
}

body[data-active-panel="sales-dashboard"] .sales-home-secondary {
  color: #e2e7ef;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
}

body[data-active-panel="sales-dashboard"] .sales-home-capabilities {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 34px;
}

body[data-active-panel="sales-dashboard"] .sales-home-capabilities span {
  min-height: 36px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: #a9b0bc;
  font-size: 12px;
  font-weight: 700;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-shell {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(33, 36, 42, 0.88);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-head,
body[data-active-panel="sales-dashboard"] .sales-home-monitor-head > div,
body[data-active-panel="sales-dashboard"] .sales-home-monitor-row,
body[data-active-panel="sales-dashboard"] .sales-home-monitor-value {
  display: flex;
  align-items: center;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-head {
  justify-content: space-between;
  gap: 14px;
  padding: 2px 4px 12px;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-head > div {
  gap: 9px;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-head strong {
  color: #edf1f7;
  font-size: 14px;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-head > span {
  padding: 5px 9px;
  border: 1px solid rgba(80, 159, 255, 0.16);
  border-radius: 999px;
  color: #79baff;
  font-size: 10px;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-list {
  display: grid;
  gap: 9px;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-item {
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(20, 22, 27, 0.5);
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-row {
  justify-content: space-between;
  gap: 16px;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-row strong,
body[data-active-panel="sales-dashboard"] .sales-home-monitor-row span,
body[data-active-panel="sales-dashboard"] .sales-home-monitor-value em {
  display: block;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-row strong {
  color: #e7ebf2;
  font-size: 12px;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-row span {
  margin-top: 4px;
  color: #89919f;
  font-size: 10px;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-value {
  justify-content: flex-end;
  gap: 10px;
  text-align: right;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-value em {
  color: #dfe6ef;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-value small {
  min-width: 38px;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-item.safe .sales-home-monitor-value small {
  color: #4dd8aa;
  background: rgba(77, 216, 170, 0.1);
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-item.warning .sales-home-monitor-value small {
  color: #ff9a76;
  background: rgba(255, 111, 86, 0.1);
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-track {
  display: grid;
  grid-template-columns: repeat(38, minmax(2px, 1fr));
  gap: 2px;
  margin-top: 10px;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-track i {
  height: 5px;
  border-radius: 2px;
  background: #3a3e46;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-item.safe .sales-home-monitor-track i.active {
  background: linear-gradient(180deg, #56dcb1 0%, #2fb687 100%);
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-item.warning .sales-home-monitor-track i.active {
  background: linear-gradient(180deg, #ffb06d 0%, #ff6e59 100%);
}

body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .card,
body[data-active-panel="sales-dashboard"] .sales-dashboard-control-shell,
body[data-active-panel="sales-dashboard"] .sales-filter-card,
body[data-active-panel="sales-dashboard"] .sales-scope-card-page,
body[data-active-panel="sales-dashboard"] .sales-import-summary-card,
body[data-active-panel="sales-dashboard"] .sales-employee-board-card,
body[data-active-panel="sales-dashboard"] .sales-store-detail-card,
body[data-active-panel="sales-dashboard"] .sales-chart-card,
body[data-active-panel="sales-dashboard"] .sales-hot-products-card {
  color: #edf1f7;
  border-color: rgba(255, 255, 255, 0.075);
  background: linear-gradient(180deg, rgba(34, 37, 43, 0.97) 0%, rgba(27, 30, 35, 0.98) 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

body[data-active-panel="sales-dashboard"] #panel-sales-dashboard h3,
body[data-active-panel="sales-dashboard"] #panel-sales-dashboard strong,
body[data-active-panel="sales-dashboard"] .sales-employee-person strong,
body[data-active-panel="sales-dashboard"] .sales-store-detail-name strong,
body[data-active-panel="sales-dashboard"] .sales-employee-metric strong {
  color: #edf1f7;
}

body[data-active-panel="sales-dashboard"] #panel-sales-dashboard p,
body[data-active-panel="sales-dashboard"] #panel-sales-dashboard span,
body[data-active-panel="sales-dashboard"] .sales-employee-person span,
body[data-active-panel="sales-dashboard"] .sales-store-detail-name span,
body[data-active-panel="sales-dashboard"] .sales-employee-metric span {
  color: #9098a7;
}

body[data-active-panel="sales-dashboard"] .sales-dashboard-control-shell {
  border: 1px solid rgba(255, 255, 255, 0.07);
}

body[data-active-panel="sales-dashboard"] .sales-filter-range-banner,
body[data-active-panel="sales-dashboard"] .sales-filter-section,
body[data-active-panel="sales-dashboard"] .sales-filter-grid label,
body[data-active-panel="sales-dashboard"] .sales-employee-summary-item,
body[data-active-panel="sales-dashboard"] .sales-chart-summary-item,
body[data-active-panel="sales-dashboard"] .sales-line-chart,
body[data-active-panel="sales-dashboard"] .sales-target-item,
body[data-active-panel="sales-dashboard"] .sales-freshness-item,
body[data-active-panel="sales-dashboard"] .sales-freshness-notes div,
body[data-active-panel="sales-dashboard"] .metric-mini-card {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

body[data-active-panel="sales-dashboard"] #panel-sales-dashboard input,
body[data-active-panel="sales-dashboard"] #panel-sales-dashboard select,
body[data-active-panel="sales-dashboard"] #panel-sales-dashboard textarea {
  color: #edf1f7;
  border-color: rgba(255, 255, 255, 0.09);
  background: #1c1f24;
  color-scheme: dark;
}

body[data-active-panel="sales-dashboard"] .sales-sticky-commander {
  border: 1px solid rgba(82, 159, 255, 0.18);
  background: linear-gradient(135deg, rgba(31, 39, 53, 0.98) 0%, rgba(25, 31, 42, 0.98) 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

body[data-active-panel="sales-dashboard"] .sales-decision-chip {
  color: #aeb8c8;
  background: rgba(255, 255, 255, 0.045);
}

body[data-active-panel="sales-dashboard"] .sales-hero-card {
  color: #e9edf4;
  border-color: rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(36, 39, 46, 0.98) 0%, rgba(27, 30, 35, 0.98) 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

body[data-active-panel="sales-dashboard"] .sales-hero-card:nth-child(-n + 2) {
  background: linear-gradient(145deg, rgba(38, 60, 91, 0.72) 0%, rgba(29, 33, 40, 0.98) 72%);
}

body[data-active-panel="sales-dashboard"] .sales-hero-label,
body[data-active-panel="sales-dashboard"] .sales-hero-meta,
body[data-active-panel="sales-dashboard"] .sales-hero-hint,
body[data-active-panel="sales-dashboard"] .sales-hero-compare-row > span,
body[data-active-panel="sales-dashboard"] .sales-hero-compare-dates {
  color: #8f98a8;
}

body[data-active-panel="sales-dashboard"] .sales-hero-compare-panel {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body[data-active-panel="sales-dashboard"] .sales-hero-compare-divider,
body[data-active-panel="sales-dashboard"] .sales-employee-table tbody td,
body[data-active-panel="sales-dashboard"] .sales-store-detail-table tbody td {
  border-color: rgba(255, 255, 255, 0.065);
}

body[data-active-panel="sales-dashboard"] .sales-employee-board-card {
  border-top-color: #429ef5;
}

body[data-active-panel="sales-dashboard"] .sales-store-detail-card {
  border-top-color: #e1251b;
}

body[data-active-panel="sales-dashboard"] .sales-employee-table thead th {
  color: #9ca6b8;
  background: #242830;
  border-color: rgba(255, 255, 255, 0.07);
}

body[data-active-panel="sales-dashboard"] .sales-store-detail-table thead th {
  color: #e0a29d;
  background: #30272a;
  border-color: rgba(225, 37, 27, 0.2);
}

body[data-active-panel="sales-dashboard"] .sales-employee-table tbody tr:hover {
  background: rgba(68, 143, 232, 0.055);
}

body[data-active-panel="sales-dashboard"] .sales-store-detail-table tbody tr:hover {
  background: rgba(225, 37, 27, 0.055);
}

body[data-active-panel="sales-dashboard"] .sales-chart-card::before,
body[data-active-panel="sales-dashboard"] .sales-dashboard-side-column .card::before {
  background: linear-gradient(90deg, #328bea 0%, rgba(84, 195, 224, 0.72) 100%);
}

body[data-active-panel="sales-dashboard"] .sales-line-chart {
  border: 1px solid rgba(255, 255, 255, 0.055);
}

body[data-active-panel="sales-dashboard"] .sales-svg-grid line {
  stroke: rgba(255, 255, 255, 0.08);
}

body[data-active-panel="sales-dashboard"] .sales-svg-labels text,
body[data-active-panel="sales-dashboard"] .sales-svg-axis text {
  fill: #7e8797;
}

body[data-active-panel="sales-dashboard"] .sales-bar-chart-item,
body[data-active-panel="sales-dashboard"] .sales-donut-legend-item,
body[data-active-panel="sales-dashboard"] .sales-hot-product-item {
  color: #e6eaf1;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
}

body[data-active-panel="sales-dashboard"] .sales-bar-chart-track {
  background: #353942;
}

body[data-active-panel="sales-dashboard"] .sales-donut-center {
  background: #23262c;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

body[data-active-panel="sales-dashboard"] .sales-quick-range {
  color: #aab2c0;
  border-color: rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}

body[data-active-panel="sales-dashboard"] .sales-quick-range.active {
  color: #fff;
  background: linear-gradient(135deg, #2f83df 0%, #4ba8f8 100%);
}

body[data-active-panel="sales-dashboard"] .hint-block {
  color: #929baa;
  background: rgba(255, 255, 255, 0.035);
}

@media (max-width: 1200px) {
  body[data-active-panel="sales-dashboard"] .sales-home-hero {
    grid-template-columns: 1fr;
    padding: 38px;
  }
}

@media (max-width: 720px) {
  body[data-active-panel="sales-dashboard"] .sales-home-hero {
    min-height: auto;
    padding: 26px 20px;
    border-radius: 24px;
  }

  body[data-active-panel="sales-dashboard"] .sales-home-monitor-shell {
    padding: 10px;
  }

  body[data-active-panel="sales-dashboard"] .sales-home-monitor-track {
    gap: 1px;
  }

  body[data-active-panel="sales-dashboard"] .sales-home-capabilities {
    margin-top: 24px;
  }
}

/* Sales dashboard visual refresh */
body[data-active-panel="sales-dashboard"] {
  background:
    radial-gradient(circle at 92% 4%, rgba(96, 139, 255, 0.16), transparent 24%),
    linear-gradient(180deg, #f7f9fd 0%, #eef3fa 100%);
}

body[data-active-panel="sales-dashboard"] .main {
  background: transparent;
}

body[data-active-panel="sales-dashboard"] #panel-sales-dashboard {
  max-width: 1680px;
}

body[data-active-panel="sales-dashboard"] .topbar {
  margin-bottom: 20px;
}

body[data-active-panel="sales-dashboard"] .sales-dashboard-control-shell {
  padding: 20px;
  border: 1px solid rgba(91, 122, 188, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 246, 255, 0.96) 100%);
  box-shadow: 0 18px 42px rgba(48, 76, 136, 0.08);
}

body[data-active-panel="sales-dashboard"] .sales-dashboard-control-copy h3 {
  color: #1c2d50;
  letter-spacing: -0.02em;
}

body[data-active-panel="sales-dashboard"] .sales-dashboard-control-copy p {
  color: #71809d;
}

body[data-active-panel="sales-dashboard"] .sales-dashboard-top-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

body[data-active-panel="sales-dashboard"] .sales-filter-card {
  grid-column: 1 / -1;
}

body[data-active-panel="sales-dashboard"] .sales-filter-card,
body[data-active-panel="sales-dashboard"] .sales-scope-card-page,
body[data-active-panel="sales-dashboard"] .sales-import-summary-card {
  border: 1px solid rgba(91, 122, 188, 0.1);
  box-shadow: 0 12px 30px rgba(48, 76, 136, 0.06);
}

body[data-active-panel="sales-dashboard"] .sales-filter-card {
  gap: 14px;
}

body[data-active-panel="sales-dashboard"] .sales-filter-range-banner {
  background: linear-gradient(135deg, #edf4ff 0%, #f8fbff 100%);
  box-shadow: inset 0 0 0 1px rgba(47, 104, 245, 0.1);
}

body[data-active-panel="sales-dashboard"] .sales-scope-card-page,
body[data-active-panel="sales-dashboard"] .sales-import-summary-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

body[data-active-panel="sales-dashboard"] .sales-sticky-commander {
  padding: 18px 20px;
  border: 0;
  background: linear-gradient(135deg, #172a50 0%, #244b88 62%, #2f68c7 100%);
  box-shadow: 0 18px 38px rgba(33, 65, 123, 0.2);
}

body[data-active-panel="sales-dashboard"] .sales-sticky-commander-eyebrow,
body[data-active-panel="sales-dashboard"] .sales-sticky-commander-copy span {
  color: rgba(235, 243, 255, 0.72);
}

body[data-active-panel="sales-dashboard"] .sales-sticky-commander-copy strong {
  color: #fff;
  letter-spacing: -0.02em;
}

body[data-active-panel="sales-dashboard"] .sales-toggle-cluster {
  background: rgba(7, 23, 55, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

body[data-active-panel="sales-dashboard"] .sales-decision-toggle {
  color: rgba(238, 245, 255, 0.78);
}

body[data-active-panel="sales-dashboard"] .sales-decision-toggle.active {
  background: linear-gradient(135deg, #ffffff 0%, #dceaff 100%);
  color: #2359bd;
  box-shadow: 0 8px 18px rgba(4, 19, 53, 0.18);
}

body[data-active-panel="sales-dashboard"] .sales-decision-toggle span {
  background: rgba(255, 255, 255, 0.14);
}

body[data-active-panel="sales-dashboard"] .sales-decision-toggle.active span {
  background: rgba(35, 89, 189, 0.12);
}

body[data-active-panel="sales-dashboard"] .sales-decision-lite-btn {
  color: #e7f0ff;
}

body[data-active-panel="sales-dashboard"] .sales-dashboard-reference-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

body[data-active-panel="sales-dashboard"] .sales-dashboard-side-column {
  display: none;
}

body[data-active-panel="sales-dashboard"] .sales-dashboard-main-column,
body[data-active-panel="sales-dashboard"] .sales-dashboard-side-column {
  gap: 22px;
}

body[data-active-panel="sales-dashboard"] .sales-strategy-kpi-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body[data-active-panel="sales-dashboard"] .sales-hero-card:last-child:nth-child(4n + 3) {
  grid-column: span 2;
}

body[data-active-panel="sales-dashboard"] .sales-hero-card {
  min-height: 214px;
  padding: 18px;
  border-color: rgba(91, 122, 188, 0.11);
  border-radius: 22px;
  box-shadow: 0 12px 26px rgba(48, 76, 136, 0.07);
}

body[data-active-panel="sales-dashboard"] .sales-hero-card:nth-child(-n + 2) {
  background: linear-gradient(145deg, #eef4ff 0%, #ffffff 72%);
}

body[data-active-panel="sales-dashboard"] .sales-hero-card:nth-child(-n + 2)::before {
  background: linear-gradient(90deg, #2f68f5 0%, #70a5ff 100%);
}

body[data-active-panel="sales-dashboard"] .sales-hero-value {
  font-size: 30px;
}

body[data-active-panel="sales-dashboard"] .sales-hero-compare-panel {
  background: rgba(255, 255, 255, 0.64);
}

body[data-active-panel="sales-dashboard"] .sales-employee-board-card,
body[data-active-panel="sales-dashboard"] .sales-store-detail-card,
body[data-active-panel="sales-dashboard"] .sales-filter-summary-card,
body[data-active-panel="sales-dashboard"] .sales-chart-card,
body[data-active-panel="sales-dashboard"] .sales-velocity-board-card,
body[data-active-panel="sales-dashboard"] .sales-strategy-board,
body[data-active-panel="sales-dashboard"] .sales-reverse-card {
  border: 1px solid rgba(91, 122, 188, 0.1);
  box-shadow: 0 14px 34px rgba(48, 76, 136, 0.07);
}

body[data-active-panel="sales-dashboard"] .sales-employee-board-card {
  padding: 24px;
  border-top: 4px solid #2f68f5;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

body[data-active-panel="sales-dashboard"] .sales-store-detail-card {
  padding: 24px;
  border-top: 4px solid #e1251b;
  background: linear-gradient(180deg, #ffffff 0%, #fff9f8 100%);
}

body[data-active-panel="sales-dashboard"] .sales-employee-head h3,
body[data-active-panel="sales-dashboard"] .sales-store-detail-head h3,
body[data-active-panel="sales-dashboard"] .sales-chart-head h3 {
  color: #1d3158;
  letter-spacing: -0.02em;
}

body[data-active-panel="sales-dashboard"] .sales-employee-summary-item {
  background: linear-gradient(135deg, #edf4ff 0%, #f9fbff 100%);
  box-shadow: inset 0 0 0 1px rgba(47, 104, 245, 0.08);
}

body[data-active-panel="sales-dashboard"] .sales-employee-table thead th {
  background: #f5f8fe;
  color: #6f80a2;
}

body[data-active-panel="sales-dashboard"] .sales-store-detail-table thead th {
  background: #fff5f3;
  color: #9a6b68;
}

body[data-active-panel="sales-dashboard"] .sales-store-detail-table tbody tr:hover {
  background: #fff8f7;
}

body[data-active-panel="sales-dashboard"] .sales-employee-table tbody tr:hover {
  background: #f8fbff;
}

body[data-active-panel="sales-dashboard"] .sales-analytics-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

body[data-active-panel="sales-dashboard"] .sales-chart-card {
  min-height: 342px;
  padding: 22px;
  border-radius: 22px;
}

body[data-active-panel="sales-dashboard"] .sales-line-chart {
  border: 1px solid rgba(91, 122, 188, 0.08);
  background: linear-gradient(180deg, #f2f6ff 0%, #ffffff 100%);
}

body[data-active-panel="sales-dashboard"] .sales-hot-products-card {
  border: 1px solid rgba(91, 122, 188, 0.1);
  box-shadow: 0 14px 34px rgba(48, 76, 136, 0.07);
}

body[data-active-panel="sales-dashboard"] .sales-hot-products-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

body[data-active-panel="sales-dashboard"] .sales-freshness-notes {
  grid-template-columns: 1fr;
}

body[data-active-panel="sales-dashboard"] .sales-dashboard-side-column .card {
  border: 1px solid rgba(91, 122, 188, 0.1);
  box-shadow: 0 14px 32px rgba(48, 76, 136, 0.07);
}

body[data-active-panel="sales-dashboard"] .sales-dashboard-side-column .card::before {
  left: 22px;
  right: 22px;
  background: linear-gradient(90deg, #2f68f5 0%, rgba(47, 104, 245, 0.06) 100%);
}

@media (max-width: 1500px) and (min-width: 1101px) {
  body[data-active-panel="sales-dashboard"] .sales-strategy-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-active-panel="sales-dashboard"] .sales-hero-card:last-child:nth-child(4n + 3) {
    grid-column: auto;
  }

  body[data-active-panel="sales-dashboard"] .sales-hero-card:last-child:nth-child(3n + 1) {
    grid-column: span 3;
  }
}

@media (max-width: 1100px) {
  body[data-active-panel="sales-dashboard"] .sales-dashboard-top-grid,
  body[data-active-panel="sales-dashboard"] .sales-dashboard-reference-layout {
    grid-template-columns: 1fr;
  }

  body[data-active-panel="sales-dashboard"] .sales-strategy-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-active-panel="sales-dashboard"] .sales-hero-card:last-child,
  body[data-active-panel="sales-dashboard"] .sales-hero-card:last-child:nth-child(3n + 1),
  body[data-active-panel="sales-dashboard"] .sales-hero-card:last-child:nth-child(4n + 3) {
    grid-column: span 2;
  }

  body[data-active-panel="sales-dashboard"] .sales-hot-products-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body[data-active-panel="sales-dashboard"] .sales-dashboard-control-shell,
  body[data-active-panel="sales-dashboard"] .sales-employee-board-card,
  body[data-active-panel="sales-dashboard"] .sales-store-detail-card,
  body[data-active-panel="sales-dashboard"] .sales-chart-card {
    padding: 16px;
  }

  body[data-active-panel="sales-dashboard"] .sales-strategy-kpi-strip {
    grid-template-columns: 1fr;
  }

  body[data-active-panel="sales-dashboard"] .sales-hero-card:last-child,
  body[data-active-panel="sales-dashboard"] .sales-hero-card:last-child:nth-child(3n + 1),
  body[data-active-panel="sales-dashboard"] .sales-hero-card:last-child:nth-child(4n + 3) {
    grid-column: auto;
  }

  body[data-active-panel="sales-dashboard"] .sales-hot-products-list {
    grid-template-columns: 1fr;
  }

  body[data-active-panel="sales-dashboard"] .sales-hero-card {
    min-height: 196px;
  }
}

/* Keep the dark sales theme above the legacy light overrides. */
html body[data-active-panel="sales-dashboard"] {
  background:
    radial-gradient(circle at 68% 10%, rgba(50, 130, 225, 0.14), transparent 32%),
    linear-gradient(180deg, #181b20 0%, #141619 100%);
  color: #f4f6fb;
}

html body[data-active-panel="sales-dashboard"] .main {
  background-color: transparent;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
}

html body[data-active-panel="sales-dashboard"] .sales-dashboard-control-shell,
html body[data-active-panel="sales-dashboard"] .sales-filter-card,
html body[data-active-panel="sales-dashboard"] .sales-scope-card-page,
html body[data-active-panel="sales-dashboard"] .sales-import-summary-card,
html body[data-active-panel="sales-dashboard"] .sales-employee-board-card,
html body[data-active-panel="sales-dashboard"] .sales-chart-card,
html body[data-active-panel="sales-dashboard"] .sales-hot-products-card,
html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .card {
  color: #edf1f7;
  border-color: rgba(255, 255, 255, 0.075);
  background: linear-gradient(180deg, rgba(34, 37, 43, 0.97) 0%, rgba(27, 30, 35, 0.98) 100%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

html body[data-active-panel="sales-dashboard"] .sales-sticky-commander {
  border: 1px solid rgba(82, 159, 255, 0.18);
  background: linear-gradient(135deg, rgba(31, 39, 53, 0.98) 0%, rgba(25, 31, 42, 0.98) 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

html body[data-active-panel="sales-dashboard"] .sales-hero-card,
html body[data-active-panel="sales-dashboard"] .sales-hero-card:nth-child(-n + 2) {
  color: #e9edf4;
  border-color: rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(36, 39, 46, 0.98) 0%, rgba(27, 30, 35, 0.98) 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

html body[data-active-panel="sales-dashboard"] .sales-hero-card:nth-child(-n + 2) {
  background: linear-gradient(145deg, rgba(38, 60, 91, 0.72) 0%, rgba(29, 33, 40, 0.98) 72%);
}

html body[data-active-panel="sales-dashboard"] .sales-filter-range-banner,
html body[data-active-panel="sales-dashboard"] .sales-filter-section,
html body[data-active-panel="sales-dashboard"] .sales-filter-grid label,
html body[data-active-panel="sales-dashboard"] .sales-employee-summary-item,
html body[data-active-panel="sales-dashboard"] .sales-chart-summary-item,
html body[data-active-panel="sales-dashboard"] .sales-line-chart,
html body[data-active-panel="sales-dashboard"] .sales-target-item,
html body[data-active-panel="sales-dashboard"] .sales-freshness-item,
html body[data-active-panel="sales-dashboard"] .sales-freshness-notes div,
html body[data-active-panel="sales-dashboard"] .metric-mini-card {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

html body[data-active-panel="sales-dashboard"] .sales-employee-table thead th {
  color: #9ca6b8;
  background: #242830;
  border-color: rgba(255, 255, 255, 0.07);
}

html body[data-active-panel="sales-dashboard"] .sales-line-chart {
  border: 1px solid rgba(255, 255, 255, 0.055);
}

@keyframes salesHomeRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes salesHomePulse {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes salesHomeTrackGlow {
  0%, 100% {
    filter: brightness(0.92);
  }
  50% {
    filter: brightness(1.18);
  }
}

body[data-active-panel="sales-dashboard"] .sales-home-hero-copy {
  animation: salesHomeRise 0.55s ease-out both;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-shell {
  animation: salesHomeRise 0.62s 0.08s ease-out both;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-item {
  animation: salesHomeRise 0.42s ease-out both;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-item:nth-child(2) {
  animation-delay: 0.06s;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-item:nth-child(3) {
  animation-delay: 0.12s;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-item:nth-child(4) {
  animation-delay: 0.18s;
}

body[data-active-panel="sales-dashboard"] .sales-home-badge i,
body[data-active-panel="sales-dashboard"] .sales-home-monitor-head i {
  animation: salesHomePulse 2.4s ease-in-out infinite;
}

body[data-active-panel="sales-dashboard"] .sales-home-monitor-track i.active {
  animation: salesHomeTrackGlow 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  body[data-active-panel="sales-dashboard"] .sales-home-hero-copy,
  body[data-active-panel="sales-dashboard"] .sales-home-monitor-shell,
  body[data-active-panel="sales-dashboard"] .sales-home-monitor-item,
  body[data-active-panel="sales-dashboard"] .sales-home-badge i,
  body[data-active-panel="sales-dashboard"] .sales-home-monitor-head i,
  body[data-active-panel="sales-dashboard"] .sales-home-monitor-track i.active {
    animation: none;
  }
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-home-hero-copy > strong {
  background: linear-gradient(90deg, #338df4 0%, #52c8e8 48%, #6d78ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-home-primary span {
  color: #fff;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-home-monitor-head > span {
  color: #79baff;
}

/* High-contrast comparison block with JD red data. */
html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-hero-compare-panel {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(225, 37, 27, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff8f7 0%, #fff0ee 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(74, 12, 9, 0.12);
  gap: 10px;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-hero-compare-row {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  min-height: 24px;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-hero-compare-row > span,
html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-hero-compare-dates,
html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-hero-compare-number {
  color: #e1251b;
  opacity: 1;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-hero-compare-row > span {
  font-size: 11px;
  font-weight: 900;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-hero-compare-dates {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-hero-compare-number {
  font-size: 15px;
  font-weight: 900;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-hero-compare-divider {
  background: linear-gradient(90deg, rgba(225, 37, 27, 0.08) 0%, rgba(225, 37, 27, 0.3) 50%, rgba(225, 37, 27, 0.08) 100%);
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-hero-submeta {
  min-height: 28px;
  margin-top: 10px;
  padding: 0 11px;
  border: 1px solid rgba(225, 37, 27, 0.2);
  background: #fff0ee;
  color: #e1251b;
  box-shadow: 0 6px 14px rgba(74, 12, 9, 0.1);
  font-weight: 900;
}

/* Restore the sales-mix donut: keep the center card inside the ring. */
html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-donut-graphic {
  isolation: isolate;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(54, 60, 70, 0.38) 0 38%, transparent 39%);
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-donut-graphic svg {
  position: relative;
  z-index: 1;
  overflow: visible;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-donut-graphic svg > circle:first-child {
  stroke: #343a44;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-donut-center {
  z-index: 2;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  width: 118px;
  height: 118px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #2c3139 0%, #20242a 72%);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-donut-center strong {
  color: #f4f7fb;
  font-size: 17px;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-donut-center span {
  color: #a9b2c1;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-donut-center em {
  max-width: 102px;
  color: #8490a2;
  font-size: 9px;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-donut-segment:not(.muted) {
  opacity: 1;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-donut-segment.muted {
  opacity: 0.24;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-donut-label {
  fill: #ffffff;
  paint-order: stroke;
  stroke: rgba(21, 24, 29, 0.72);
  stroke-width: 3px;
  stroke-linejoin: round;
  font-size: 10px;
}

/* Collapsible employee detail board and red personnel hover state. */
html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-employee-head-tools {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  min-width: min(100%, 560px);
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-employee-collapse-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(225, 37, 27, 0.24);
  border-radius: 999px;
  color: #ff6b63;
  background: rgba(225, 37, 27, 0.08);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-employee-collapse-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(225, 37, 27, 0.44);
  background: rgba(225, 37, 27, 0.14);
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-employee-collapse-btn i {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(225deg) translate(-1px, -1px);
  transition: transform 0.2s ease;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-employee-head.is-collapsed {
  align-items: center;
  margin-bottom: 0;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-employee-head.is-collapsed .sales-employee-summary {
  display: none;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-employee-head.is-collapsed .sales-employee-head-tools {
  min-width: 0;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-employee-head.is-collapsed .sales-employee-collapse-btn i {
  transform: rotate(45deg) translate(-1px, -1px);
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-employee-person > strong {
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-employee-table tbody tr {
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-employee-table tbody tr:hover {
  background: rgba(225, 37, 27, 0.07);
  box-shadow: inset 3px 0 0 #e1251b;
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-employee-table tbody tr:hover .sales-employee-person > strong {
  color: #e1251b;
  text-shadow: 0 0 16px rgba(225, 37, 27, 0.18);
}

@media (max-width: 1100px) {
  html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-employee-head-tools {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }
}

@media (max-width: 720px) {
  html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-employee-head-tools {
    flex-direction: column;
    align-items: stretch;
  }

  html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-employee-collapse-btn {
    align-self: flex-start;
  }
}

/* Final KPI grid sizing after all legacy responsive rules. */
html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-strategy-kpi-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-hero-card:last-child,
html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-hero-card:last-child:nth-child(3n + 1),
html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-hero-card:last-child:nth-child(4n + 3) {
  grid-column: auto !important;
}

@media (max-width: 1500px) {
  html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-strategy-kpi-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-strategy-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  html body[data-active-panel="sales-dashboard"] #panel-sales-dashboard .sales-strategy-kpi-strip {
    grid-template-columns: 1fr;
  }
}
