@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap");

:root {
  --bg: #edf1f7;
  --sidebar: #0f112e;
  --sidebar-alt: #090b1c;
  --panel: #f9fbff;
  --text: #14192b;
  --muted: #68708a;
  --border: #d4dce8;
  --shadow: none;
  --brand: #0f112e;
  --brand-soft: rgba(15, 17, 46, 0.06);
  --brand-soft-strong: rgba(15, 17, 46, 0.12);
  --brand-mid: rgba(15, 17, 46, 0.55);
  --brand-light: rgba(15, 17, 46, 0.22);
  --brand-line: rgba(15, 17, 46, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    linear-gradient(var(--brand-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand-line) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px, 48px 48px, auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html.is-embedded,
body.is-embedded {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

.cursor-ring,
.cursor-dot {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body.custom-cursor-enabled,
  body.custom-cursor-enabled * {
    cursor: none !important;
  }

  .cursor-ring,
  .cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    will-change: transform, opacity;
  }

  .cursor-ring {
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border: 1.5px solid rgba(15, 17, 46, 0.76);
    border-radius: 50%;
    background: rgba(15, 17, 46, 0.02);
    box-shadow: 0 0 0 5px rgba(15, 17, 46, 0.05);
    transition: opacity 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  }

  .cursor-ring::before,
  .cursor-ring::after {
    content: "";
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(15, 17, 46, 0.2);
    border-radius: 50%;
  }

  .cursor-ring::after {
    inset: 8px;
    border-color: rgba(15, 17, 46, 0.12);
  }

  .cursor-ring.is-hover {
    background: rgba(15, 17, 46, 0.06);
    box-shadow: 0 0 0 8px rgba(15, 17, 46, 0.08);
  }

  .cursor-ring.is-on-dark {
    border-color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08);
  }

  .cursor-ring.is-on-dark::before,
  .cursor-ring.is-on-dark::after {
    border-color: rgba(255, 255, 255, 0.22);
  }

  .cursor-ring.is-on-dark.is-hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.12);
  }

  .cursor-ring.is-on-dark.is-down {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
  }

  .cursor-ring.is-down {
    background: rgba(15, 17, 46, 0.08);
    box-shadow: 0 0 0 4px rgba(15, 17, 46, 0.1);
  }

  .cursor-dot {
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px;
    border-radius: 50%;
    background: var(--brand);
    transition: opacity 160ms ease;
  }

  .cursor-dot.is-on-dark {
    background: #ffffff;
  }
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  background: transparent;
  overflow: hidden;
}

body.is-embedded .app-shell {
  width: 100%;
  height: 100%;
  min-height: 100%;
  grid-template-columns: 224px minmax(0, 1fr);
}

body.is-embedded .sidebar {
  gap: 8px;
  padding: 14px 12px;
}

body.is-embedded .brand-header {
  height: 38px;
  flex-basis: 38px;
}

body.is-embedded .brand-logo {
  max-width: 158px;
  height: 70px;
}

body.is-embedded .sidebar-nav {
  gap: 8px;
}

body.is-embedded .nav-section-title {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

body.is-embedded .nav-list {
  gap: 4px;
}

body.is-embedded .nav-item a {
  gap: 8px;
  padding: 8px 9px;
  font-size: 0.76rem;
}

body.is-embedded .nav-main {
  gap: 8px;
}

body.is-embedded .nav-icon {
  width: 15px;
  height: 15px;
  flex-basis: 15px;
}

body.is-embedded .sidebar-footer {
  margin-top: auto;
  gap: 7px;
  padding: 7px 8px;
}

body.is-embedded .sidebar-footer strong {
  font-size: 0.72rem;
}

body.is-embedded .sidebar-footer p {
  font-size: 0.64rem;
}

body.is-embedded .main-panel {
  gap: 7px;
  padding: 8px 10px 9px;
}

body.is-embedded .stats-grid,
body.is-embedded .bottom-grid,
body.is-embedded .insights-grid,
body.is-embedded .wide-stats {
  gap: 6px;
}

body.is-embedded .topbar,
body.is-embedded .page-header {
  gap: 7px;
}

body.is-embedded .searchbar {
  gap: 8px;
  padding: 7px 9px;
}

body.is-embedded .topbar-actions {
  gap: 7px;
}

body.is-embedded .icon-button {
  width: 34px;
  height: 34px;
}

body.is-embedded .topbar-icon {
  width: 15px;
  height: 15px;
}

body.is-embedded .notification-dot {
  top: 10px;
  right: 10px;
}

body.is-embedded .language-pill {
  padding: 7px 9px;
  font-size: 0.74rem;
}

body.is-embedded .user-pill {
  min-height: 34px;
  gap: 6px;
  padding: 3px 5px 3px 8px;
}

body.is-embedded .user-pill strong {
  font-size: 0.76rem;
}

body.is-embedded .user-pill span {
  font-size: 0.62rem;
}

body.is-embedded .avatar {
  width: 24px;
  height: 24px;
  font-size: 0.6rem;
}

body.is-embedded .page-header h1 {
  font-size: clamp(1.06rem, 1.38vw, 1.38rem);
}

body.is-embedded .stat-card {
  min-height: 80px;
  padding: 10px;
  gap: 6px;
}

body.is-embedded .metric-value {
  font-size: 1.2rem;
}

body.is-embedded .metric-icon {
  width: 34px;
  height: 34px;
}

body.is-embedded .metric-icon svg,
body.is-embedded .wide-icon svg {
  width: 18px;
  height: 18px;
}

body.is-embedded .metric-label,
body.is-embedded .wide-label {
  margin-top: 5px;
  font-size: 0.67rem;
}

body.is-embedded .metric-note {
  font-size: 0.68rem;
}

body.is-embedded .wide-card {
  min-height: 82px;
  padding: 12px 14px;
  gap: 10px;
}

body.is-embedded .wide-value {
  font-size: clamp(1.3rem, 1.7vw, 1.7rem);
}

body.is-embedded .wide-icon {
  width: 44px;
  height: 44px;
}

body.is-embedded .panel {
  padding: 9px;
}

body.is-embedded .panel-header {
  gap: 8px;
  margin-bottom: 5px;
}

body.is-embedded .panel-header h2 {
  font-size: 0.8rem;
}

body.is-embedded .panel-header p {
  margin-top: 2px;
  font-size: 0.62rem;
}

body.is-embedded .line-chart-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
}

body.is-embedded .line-chart-meta {
  gap: 7px;
}

body.is-embedded .line-chart-meta div {
  min-width: 0;
  padding: 5px 7px;
}

body.is-embedded .line-chart-meta strong {
  font-size: 0.9rem;
}

body.is-embedded .line-chart-meta span {
  margin-top: 3px;
  font-size: 0.6rem;
}

body.is-embedded .line-chart-wrap {
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 7px;
}

body.is-embedded .chart-y-axis {
  padding: 3px 0 14px;
  font-size: 0.58rem;
}

body.is-embedded .line-chart-grid {
  padding: 6px 6px 4px;
}

body.is-embedded .line-chart {
  height: 88px;
}

body.is-embedded .chart-x-axis {
  gap: 5px;
  margin-top: 4px;
  font-size: 0.6rem;
}

body.is-embedded .chart-legend-inline {
  gap: 9px;
  font-size: 0.58rem;
}

body.is-embedded .bottom-grid {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  align-items: stretch;
}

body.is-embedded .bottom-grid > .panel {
  height: 100%;
}

body.is-embedded .mini-line-chart {
  height: 36px;
}

body.is-embedded .mini-line-panels {
  gap: 6px;
}

body.is-embedded .mini-line-panel {
  padding: 6px 7px;
}

body.is-embedded .mini-line-head {
  gap: 8px;
  margin-bottom: 2px;
}

body.is-embedded .mini-line-head span {
  font-size: 0.64rem;
}

body.is-embedded .mini-line-head strong {
  font-size: 0.74rem;
}

body.is-embedded .bar-chart {
  min-height: 214px;
}

body.is-embedded .bar-track {
  height: 162px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-alt) 100%);
  background-size: 32px 32px, 32px 32px, auto;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.brand-header {
  position: relative;
  height: 62px;
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 252px;
  height: 118px;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
}

.brand-logo-white {
  filter: brightness(0) invert(1);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-section-title {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: background-color 150ms ease, transform 150ms ease, color 150ms ease;
}

.nav-item a:hover,
.nav-item.active a {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: none;
}

.nav-item.active a {
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.75);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.nav-chevron {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.2rem;
  line-height: 1;
}

.sidebar-footer {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 2px;
  background: #ffffff;
}

.sidebar-footer strong {
  display: block;
  font-size: 0.92rem;
}

.sidebar-footer p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

.main-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 22px 20px;
  background:
    linear-gradient(var(--brand-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--brand-line) 1px, transparent 1px),
    linear-gradient(180deg, #f6f8fc 0%, #eef2f8 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

.topbar,
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.searchbar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: none;
}

.searchbar input {
  width: 100%;
  border: 0;
  outline: 0;
  font: inherit;
  color: var(--text);
  background: transparent;
}

.searchbar input::placeholder {
  color: #a9aebb;
}

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

.icon-button,
.language-pill,
.user-pill {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.icon-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #7f8590;
  cursor: pointer;
}

.topbar-icon {
  width: 19px;
  height: 19px;
}

.notification-dot {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
}

.language-pill {
  padding: 11px 14px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 4px 8px 4px 12px;
  border-radius: 4px;
}

.user-pill strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.05;
}

.user-pill span {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  line-height: 1.05;
  color: var(--muted);
}

.avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand) 0%, rgba(15, 17, 46, 0.72) 100%);
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a2a6b1;
}

.page-header h1 {
  margin: 0;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
  line-height: 1.02;
}

.header-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.84rem;
  font-weight: 600;
}

.chip-muted {
  color: #606570;
  background: rgba(255, 255, 255, 0.75);
}

.chip-accent {
  color: var(--brand);
  background: var(--brand-soft);
}

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

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

.panel,
.stat-card,
.wide-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: none;
  overflow: hidden;
}

.panel::before,
.stat-card::before,
.wide-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 2px;
  background: var(--brand);
}

.stat-card {
  min-height: 126px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-card::after {
  display: none;
}

.quality-pulse {
  animation: qualityPulse 3s ease-out;
}

@keyframes qualityPulse {
  0% {
    border-color: rgba(15, 17, 46, 0.22);
    box-shadow: 0 0 0 0 rgba(15, 17, 46, 0.14);
    background: var(--panel);
  }
  14% {
    border-color: rgba(15, 17, 46, 0.9);
    box-shadow: 0 0 0 10px rgba(15, 17, 46, 0.16);
    background: rgba(15, 17, 46, 0.05);
  }
  28% {
    border-color: rgba(15, 17, 46, 0.7);
    box-shadow: 0 0 0 18px rgba(15, 17, 46, 0);
    background: rgba(15, 17, 46, 0.03);
  }
  42% {
    border-color: rgba(15, 17, 46, 0.9);
    box-shadow: 0 0 0 8px rgba(15, 17, 46, 0.12);
    background: rgba(15, 17, 46, 0.04);
  }
  100% {
    border-color: var(--border);
    box-shadow: 0 0 0 0 rgba(15, 17, 46, 0);
    background: var(--panel);
  }
}

.theme-cyan {
  --icon-bg: rgba(15, 17, 46, 0.07);
  --icon-color: var(--brand);
}

.theme-amber {
  --icon-bg: rgba(15, 17, 46, 0.09);
  --icon-color: var(--brand);
}

.theme-lime {
  --icon-bg: rgba(15, 17, 46, 0.05);
  --icon-color: var(--brand);
}

.theme-rose {
  --icon-bg: rgba(15, 17, 46, 0.11);
  --icon-color: var(--brand);
}

.metric-icon,
.wide-icon {
  display: grid;
  place-items: center;
  color: var(--icon-color);
  background: var(--icon-bg);
}

.metric-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: none;
}

.metric-icon svg,
.wide-icon svg {
  width: 22px;
  height: 22px;
}

.metric-value,
.wide-value {
  display: block;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.04em;
}

.live-counter,
.chart-y-axis span,
.chart-x-axis span {
  font-variant-numeric: tabular-nums;
}

.metric-value {
  font-size: 1.8rem;
  line-height: 1;
}

.metric-label,
.metric-note,
.wide-label {
  margin: 8px 0 0;
}

.metric-label,
.wide-label {
  color: #666c77;
  font-size: 0.84rem;
}

.metric-note {
  font-size: 0.8rem;
  color: var(--brand);
  font-weight: 600;
}

.metric-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--brand);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.wide-card {
  min-height: 104px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.wide-value {
  margin-top: 8px;
  font-size: clamp(1.7rem, 2.3vw, 2.2rem);
  line-height: 1.06;
}

.wide-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.insights-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 16px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 12px;
}

.panel {
  padding: 14px;
}

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

.panel-header h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

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

.orders-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.orders-table th {
  padding: 0 0 14px;
  text-align: left;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a7acb7;
}

.orders-table td {
  padding: 15px 0;
  border-top: 1px solid var(--border);
  font-size: 0.93rem;
  color: #4f5560;
}

.orders-table a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-open {
  color: var(--brand);
  background: rgba(15, 17, 46, 0.05);
}

.status-processing {
  color: var(--brand);
  background: rgba(15, 17, 46, 0.08);
}

.status-shipped {
  color: var(--brand);
  background: rgba(15, 17, 46, 0.11);
}

.status-alert {
  color: var(--brand);
  background: rgba(15, 17, 46, 0.14);
}

.donut-wrap {
  display: grid;
  gap: 22px;
}

.donut-chart {
  position: relative;
  width: min(240px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--brand) 0 43.75%, rgba(15, 17, 46, 0.68) 43.75% 75%, rgba(15, 17, 46, 0.35) 75% 100%);
  box-shadow: none;
}

.donut-chart::before {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px var(--border);
}

.donut-center {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
}

.donut-center strong {
  display: block;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 2.2rem;
  line-height: 1;
}

.donut-center span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.legend li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 4px;
  background: #f7f9fd;
  border: 1px solid var(--border);
}

.line-chart-card {
  display: grid;
  gap: 12px;
}

.line-chart-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.line-chart-meta div {
  min-width: 120px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f6f8fc;
}

.line-chart-meta strong {
  display: block;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 1.15rem;
  line-height: 1;
}

.line-chart-meta span {
  display: block;
  margin-top: 4px;
  font-size: 0.76rem;
  color: var(--muted);
}

.line-chart-wrap {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px 0 22px;
  font-size: 0.68rem;
  color: #9ca2ad;
}

.line-chart-grid {
  position: relative;
  padding: 10px 10px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background:
    linear-gradient(to bottom, rgba(15, 17, 46, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(180deg, #fbfcff 0%, #f5f8fd 100%);
}

.line-chart {
  display: block;
  width: 100%;
  height: 180px;
}

.line-area {
  stroke: none;
}

.area-blue {
  fill: url(#blueArea);
}

.area-orange {
  fill: url(#orangeArea);
}

.line-path {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-blue {
  stroke: var(--brand);
}

.line-orange {
  stroke: var(--brand-mid);
  stroke-dasharray: 12 10;
}

.line-dots circle {
  stroke: #ffffff;
  stroke-width: 3;
}

.blue-dots circle {
  fill: var(--brand);
}

.orange-dots circle {
  fill: rgba(15, 17, 46, 0.45);
}

.chart-x-axis {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #7d8390;
  text-align: center;
}

.chart-legend-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #5a606a;
  font-size: 0.76rem;
  font-weight: 600;
}

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

.legend-line {
  width: 22px;
  height: 0;
  border-top: 3px solid currentColor;
}

.legend-line-blue {
  color: var(--brand);
}

.legend-line-orange {
  color: var(--brand-mid);
}

.mini-line-panels {
  display: grid;
  gap: 10px;
}

.mini-line-panel {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #f7f9fd;
}

.mini-line-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.mini-line-head span {
  color: #5a606a;
  font-size: 0.8rem;
  font-weight: 600;
}

.mini-line-head strong {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 0.92rem;
}

.mini-line-chart {
  display: block;
  width: 100%;
  height: 64px;
}

.mini-grid {
  fill: none;
  stroke: rgba(15, 17, 46, 0.1);
  stroke-width: 1;
  stroke-linecap: round;
}

.mini-area {
  stroke: none;
}

.mini-line {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-area-blue {
  fill: rgba(15, 17, 46, 0.12);
}

.mini-area-orange {
  fill: rgba(15, 17, 46, 0.09);
}

.mini-area-green {
  fill: rgba(15, 17, 46, 0.06);
}

.mini-line-blue {
  stroke: var(--brand);
}

.mini-line-orange {
  stroke: var(--brand-mid);
  stroke-dasharray: 10 8;
}

.mini-line-green {
  stroke: rgba(15, 17, 46, 0.35);
}

.legend-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #555b65;
  font-weight: 600;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-blue {
  background: var(--brand);
}

.legend-orange {
  background: var(--brand-mid);
}

.legend-green {
  background: rgba(15, 17, 46, 0.35);
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  min-height: 240px;
  padding-top: 8px;
}

.bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bar-track {
  width: 100%;
  max-width: 54px;
  height: 182px;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8f7f4 0%, #f2efe8 100%);
}

.bar-fill {
  width: 100%;
  border-radius: 14px;
}

.bar-blue {
  background: linear-gradient(180deg, rgba(15, 17, 46, 0.48) 0%, var(--brand) 100%);
  box-shadow: none;
}

.bar-orange {
  background: linear-gradient(180deg, rgba(15, 17, 46, 0.24) 0%, rgba(15, 17, 46, 0.55) 100%);
  box-shadow: none;
}

.bar-column span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #7e838e;
}

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

.progress-item {
  display: grid;
  gap: 10px;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  color: #555b65;
}

.progress-meta strong {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 1.05rem;
}

.progress-track {
  height: 12px;
  border-radius: 999px;
  background: #f1eee7;
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.progress-dark {
  background: linear-gradient(90deg, #2d2d2d 0%, #666873 100%);
}

.progress-orange {
  background: linear-gradient(90deg, rgba(15, 17, 46, 0.24) 0%, rgba(15, 17, 46, 0.55) 100%);
}

.progress-blue {
  background: linear-gradient(90deg, rgba(15, 17, 46, 0.48) 0%, var(--brand) 100%);
}

.progress-green {
  background: linear-gradient(90deg, rgba(15, 17, 46, 0.14) 0%, rgba(15, 17, 46, 0.35) 100%);
}

@media (max-width: 1260px) {
  .stats-grid,
  .secondary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .insights-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .app-shell {
    width: 100%;
    min-height: 100vh;
    grid-template-columns: 1fr;
  }

  .sidebar {
    gap: 20px;
  }

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

  .topbar,
  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .header-chips {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .app-shell {
    width: 100%;
    margin: 0;
    min-height: 100vh;
  }

  .main-panel {
    padding: 18px;
  }

  .stats-grid,
  .secondary-grid,
  .wide-stats,
  .nav-list {
    grid-template-columns: 1fr;
  }

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

  .user-pill {
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .panel,
  .stat-card,
  .wide-card {
    border-radius: 10px;
  }

  .bar-track {
    height: 148px;
  }

  .orders-table {
    min-width: 520px;
  }
}
