@font-face {
  font-family: "Satoshi Variable";
  src: url("assets/Satoshi-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --page: #f4fbff;
  --surface: #ffffff;
  --ink: #090a0d;
  --muted: #2f3238;
  --line: #deedf6;
  --line-strong: #b4bec7;
  --soft: #eef9ff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: auto;
  background: #ffffff;
  color: var(--ink);
  font-family: "Satoshi Variable", Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.dashboard-frame {
  display: grid;
  grid-template-columns: 290px 1fr;
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow: hidden;
  margin: 0 auto;
  background: var(--page);
  transition: grid-template-columns 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e8ef;
  background: #fff;
  padding: 37px 0;
  min-height: 100vh;
}

.sidebar-toggle {
  position: absolute;
  z-index: 5;
  top: 25px;
  right: -15px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d7e1e9;
  border-radius: 50%;
  background: #fff;
  padding: 0;
  color: #566273;
  box-shadow: 0 2px 7px rgba(23, 42, 58, 0.08);
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
  border-color: #1683f8;
  color: #1683f8;
}

.sidebar-toggle:focus-visible {
  outline: 3px solid rgba(22, 131, 248, 0.16);
  outline-offset: 2px;
}

.sidebar-toggle svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.brand {
  width: max-content;
  margin: 0 0 31px 24px;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.menu,
.account {
  display: grid;
  gap: 2px;
}

.account {
  margin-top: 41px;
}

.menu-label {
  margin: 0 0 11px 24px;
  color: #7e8b9c;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 44px;
  border-radius: 6px;
  padding: 0 24px;
  color: #566273;
  font-size: 15px;
  font-weight: 400;
}

.menu-link:hover {
  background: #f6f9fc;
}

.menu-link.active {
  position: relative;
  isolation: isolate;
  border-radius: 0;
  background: transparent;
  padding-left: 22px;
  box-shadow: none;
  color: #fff;
  font-size: 14px;
}

.menu-link.active::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4px 8px;
  border: 0;
  border-radius: 9999px;
  background: #17191b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 10px rgba(23, 25, 27, 0.18);
}

.menu-link.active svg,
.sidebar-collapsed .menu-link.active svg {
  width: 16px;
  height: 16px;
}

.saas-overview-page .menu-link.active {
  padding-left: 22px;
}

.saas-overview-page .sidebar-collapsed .menu-link.active {
  padding-left: 0;
}

.menu-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2;
}

.dashboard-frame.sidebar-collapsed {
  grid-template-columns: 82px minmax(0, 1fr);
}

.sidebar-collapsed .brand {
  width: 34px;
  overflow: hidden;
  font-size: 0;
  white-space: nowrap;
}

.sidebar-collapsed .brand::after {
  content: "YF";
  font-size: 20px;
}

.sidebar-collapsed .menu-label {
  height: 14px;
  margin-left: 0;
  overflow: hidden;
  font-size: 0;
}

.sidebar-collapsed .menu-link {
  justify-content: center;
  gap: 0;
  padding-right: 0;
  padding-left: 0;
  overflow: hidden;
  font-size: 0;
}

.sidebar-collapsed .menu-link svg {
  width: 20px;
  height: 20px;
}

.sidebar-collapsed .sidebar-toggle {
  transform: rotate(180deg);
}

.workspace {
  display: grid;
  grid-template-rows: 81px 1fr;
  min-width: 0;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 81px;
  background: #fff;
  padding: 0 72px 0 29px;
}

.search {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 262px;
  height: 43px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  padding: 0 15px;
}

.search input {
  min-width: 0;
  width: 100%;
  height: 20px;
  border: 0;
  outline: 0;
  background: transparent;
  padding-left: 0;
  caret-color: #111;
}

.search input::placeholder {
  color: #8b929b;
  opacity: 1;
}

.search:focus-within {
  border-color: #1683f8;
  box-shadow: 0 0 0 3px rgba(22, 131, 248, 0.12);
}

.search-hidden {
  display: none !important;
}

.content .kpi-card,
.content .card {
  position: relative;
}

@media (hover: hover) and (pointer: fine) {
  .saas-overview-page:not(.analytics-detail-page):not(.orders-detail-page):not(.customers-detail-page):not(.sales-detail-page):not(.notifications-detail-page) .content :is(.kpi-card, .card) {
    --card-tilt-x: 0deg;
    --card-tilt-y: 0deg;
    --card-shift-x: 0px;
    --card-shift-y: 0px;
    transform: perspective(900px) translate3d(
      var(--card-shift-x),
      var(--card-shift-y),
      0
    ) rotateX(var(--card-tilt-x)) rotateY(var(--card-tilt-y));
    transform-style: preserve-3d;
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
  }

  .saas-overview-page:not(.analytics-detail-page):not(.orders-detail-page):not(.customers-detail-page):not(.sales-detail-page):not(.notifications-detail-page) .content :is(.kpi-card, .card).card-is-tilting {
    z-index: 200;
    transition: transform 80ms ease-out;
  }
}

.card-user-collapsed {
  align-self: start;
  justify-self: start;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  border: 1px solid #d6e0e7 !important;
  border-radius: 15px !important;
  background: #fff !important;
  padding: 0 !important;
  box-shadow: 0 6px 16px rgba(37, 55, 68, 0.1) !important;
}

.card-user-collapsed::before,
.card-user-collapsed::after {
  display: none !important;
}

.card-user-collapsed > :not(.card-hide-button) {
  display: none !important;
}

.card-hide-button {
  position: absolute !important;
  z-index: 20 !important;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid #ced8df;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  padding: 0;
  color: #4f5b65;
  opacity: 0;
  transform: translateY(-3px) scale(0.9);
  box-shadow: 0 3px 9px rgba(37, 55, 68, 0.12);
  transition:
    opacity 160ms ease,
    transform 180ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.content .kpi-card:hover > .card-hide-button,
.content .card:hover > .card-hide-button,
.card-hide-button:focus-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card-hide-button:hover,
.card-hide-button:focus-visible {
  border-color: #2789ed;
  color: #2789ed;
}

.card-hide-button:focus-visible {
  outline: 3px solid rgba(39, 137, 237, 0.16);
  outline-offset: 2px;
}

.card-hide-button svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.card-drag-handle {
  position: absolute;
  z-index: 21;
  top: 9px;
  left: 9px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid rgba(194, 211, 223, 0.9);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  padding: 0;
  color: #596773;
  opacity: 0;
  cursor: grab;
  transform: translateY(-3px) scale(0.9);
  box-shadow: 0 3px 9px rgba(37, 55, 68, 0.1);
  transition:
    opacity 160ms ease,
    transform 180ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.content :is(.kpi-card, .card):hover > .card-drag-handle,
.card-drag-handle:focus-visible,
.card-is-dragging > .card-drag-handle {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card-drag-handle:hover,
.card-drag-handle:focus-visible {
  border-color: #2789ed;
  color: #2789ed;
}

.card-drag-handle:active {
  cursor: grabbing;
}

.card-drag-handle:focus-visible {
  outline: 3px solid rgba(39, 137, 237, 0.16);
  outline-offset: 2px;
}

.card-drag-handle svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}

.card-drag-preview {
  z-index: 300 !important;
  opacity: 0.58;
}

.card-drag-target {
  outline: 2px solid rgba(39, 137, 237, 0.42);
  outline-offset: 3px;
  box-shadow: 0 12px 30px rgba(39, 137, 237, 0.14) !important;
}

.card-user-collapsed > .card-hide-button,
.content .card-user-collapsed:hover > .card-hide-button {
  top: 50%;
  right: auto;
  left: 50%;
  width: 32px;
  height: 32px;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (hover: none) {
  .card-hide-button,
  .card-drag-handle {
    opacity: 1;
    transform: none;
  }
}

.search-results-status {
  margin: -15px 0 18px;
  color: #69717c;
  font-size: 14px;
  font-weight: 500;
}

.search-empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  row-gap: 7px;
  min-height: 330px;
  border: 1px dashed #cbd8e2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  padding: 48px 24px;
  text-align: center;
}

.search-empty-state svg {
  width: 34px;
  height: 34px;
  margin-bottom: 9px;
  color: #7a8591;
  stroke-width: 1.6;
}

.search-empty-state h2 {
  margin-bottom: 0;
  font-size: 20px;
  font-weight: 650;
}

.search-empty-state p {
  color: #69717c;
  font-size: 15px;
}

.search-empty-state[hidden],
.search-results-status[hidden],
.dashboard-no-data[hidden],
.saas-overview-page .kpi-grid[hidden],
.saas-overview-page .panel-grid[hidden] {
  display: none;
}

.dashboard-no-data {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 19px;
  background-color: rgba(255, 255, 255, 0.46);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(232, 243, 250, 0.24));
  padding: 48px 24px;
  text-align: center;
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 0 0 1px rgba(198, 216, 229, 0.24),
    0 12px 28px rgba(45, 70, 88, 0.08);
}

.dashboard-no-data > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(224, 238, 247, 0.82);
  color: #657684;
}

.dashboard-no-data svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.7;
}

.dashboard-no-data h2 {
  margin-bottom: 6px;
  font-size: 23px;
  font-weight: 540;
}

.dashboard-no-data p {
  color: #687681;
  font-size: 14px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  background: #050505 url("assets/avatar.png") center / cover no-repeat;
}

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

.profile strong {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 650;
}

.profile span {
  color: #25272d;
  font-size: 16px;
  font-weight: 400;
}

.content {
  padding: 39px 40px 47px 33px;
}

.title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 32px;
}

h1 {
  margin-bottom: 14px;
  font-size: 31px;
  font-weight: 680;
  letter-spacing: 0;
}

.title-row p {
  color: #282b31;
  font-size: 17px;
  font-weight: 400;
}

.filters {
  display: flex;
  gap: 13px;
  padding-top: 12px;
}

.filters button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  height: 43px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 14px;
  color: #1c1f24;
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
}

.filters button:first-child {
  width: 210px;
}

.filters button:last-child {
  width: 190px;
  font-size: 16px;
}

.filters svg {
  width: 20px;
  height: 20px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 21px;
}

.kpi-card,
.card {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.88);
}

.kpi-card {
  display: grid;
  grid-template-columns: 55px 1fr;
  align-items: center;
  gap: 17px;
  height: 95px;
  padding: 16px 16px;
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border-radius: 999px;
  background: #030303;
  color: #fff;
  transform: translateY(-5px);
}

.kpi-card > div {
  transform: translateY(4px);
}

.metric-icon svg {
  width: 24px;
  height: 24px;
}

.kpi-card h2 {
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 650;
}

.kpi-card p {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.kpi-card strong {
  font-size: 29px;
  font-weight: 740;
  letter-spacing: 0;
}

.kpi-card span {
  font-size: 16px;
  font-weight: 590;
  white-space: nowrap;
}

.kpi-card .trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.kpi-card .trend svg {
  width: 18px;
  height: 16px;
  stroke-width: 1.6;
}

.panel-grid {
  display: grid;
  grid-template-columns: 647px minmax(0, 1fr);
  grid-template-rows: 342px 282px;
  gap: 23px 20px;
}

.card {
  min-width: 0;
}

.revenue-card {
  padding: 21px 20px 17px 22px;
}

.card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.card h2 {
  margin-bottom: 7px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 0;
}

.card-top p {
  color: #2d3036;
  font-size: 16px;
  font-weight: 400;
}

.card-top button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #030303;
  color: #fff;
  padding: 0 15px;
  font-size: 15px;
  font-weight: 640;
}

.revenue-card .card-top button {
  margin-right: -7px;
}

.card-top button svg {
  width: 19px;
  height: 19px;
}

.revenue-chart {
  width: 100%;
  height: 258px;
  margin-top: 1px;
  overflow: visible;
}

.grid-lines path {
  stroke: #c5cbd0;
  stroke-dasharray: 1 4;
  stroke-linecap: round;
}

.chart-labels text {
  fill: #090a0d;
  font-family: "Satoshi Variable", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 550;
  stroke: none;
}

.comparison-line {
  fill: none;
  stroke: #c2c6ca;
  stroke-dasharray: 2 3;
  stroke-width: 1.3;
}

.solid-line {
  fill: none;
  stroke: #030303;
  stroke-width: 3;
}

.chart-dots circle {
  fill: #030303;
  stroke: none;
}

.category-card {
  padding: 25px 26px;
}

.category-content {
  display: grid;
  grid-template-columns: 201px 1fr;
  align-items: center;
  gap: 22px;
  max-width: 440px;
  margin-top: 30px;
  margin-left: 5px;
}

.donut {
  width: 191px;
  height: 191px;
  border-radius: 999px;
  background:
    radial-gradient(circle, #fff 0 32%, transparent 33%),
    conic-gradient(#030303 0 48%, #5f6265 48% 80%, #d7d7d7 80% 100%);
}

.legend {
  display: grid;
  gap: 30px;
}

.legend p {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  font-weight: 570;
}

.legend i {
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.legend .black {
  background: #030303;
}

.legend .gray {
  background: #5f6265;
}

.legend .light {
  background: #d7d7d7;
}

.legend strong {
  font-size: 19px;
  font-weight: 660;
}

.orders-card {
  padding: 21px 23px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 5px;
  font-size: 16px;
}

th,
td {
  height: 57px;
  border-bottom: 1px solid #d7d7d7;
  text-align: left;
}

th {
  height: 49px;
}

th {
  font-weight: 580;
}

td {
  color: #25272d;
  font-weight: 400;
}

th:last-child,
td:last-child {
  text-align: right;
}

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

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  height: 29px;
  border: 1px solid #aeb4ba;
  border-radius: 8px;
  color: #1a1c20;
  font-size: 14px;
  font-weight: 400;
}

.products-card {
  padding: 22px 27px 20px;
}

.product-row {
  display: grid;
  grid-template-columns: 51px 138px 180px 33px;
  align-items: center;
  gap: 12px;
  min-height: 71px;
}

.product-row h3 {
  margin-bottom: 7px;
  font-size: 16px;
  font-weight: 670;
}

.product-row p {
  color: #282b31;
  font-size: 15px;
  font-weight: 430;
}

.product-row strong {
  color: #3e4249;
  font-size: 15px;
  font-weight: 430;
  text-align: right;
}

.thumb {
  width: 51px;
  height: 55px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.thumb.phone {
  background: #fff url("assets/iphone.png") center / contain no-repeat;
}

.thumb.pods {
  background: #fff url("assets/airpods.png") center / contain no-repeat;
}

.thumb.laptop {
  background: #fff url("assets/macbook.png") center / contain no-repeat;
}

.bar {
  position: relative;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #d3d3d3;
}

.bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: #030303;
}

/* Analytics page */
.analytics-page .dashboard-frame {
  width: 100%;
  min-height: 100vh;
  height: auto;
}

.analytics-page .title-row {
  margin-bottom: 31px;
}

.analytics-page .analytics-content {
  padding-right: 42px;
  padding-left: 32px;
}

.analytics-page .filters button:last-child {
  width: 177px;
}

.analytics-page .analytics-kpis {
  display: flex;
  gap: 0;
  margin-bottom: 21px;
}

.analytics-page .analytics-kpis .kpi-card {
  flex: 0 0 auto;
  flex-grow: 1;
}

.analytics-page .analytics-kpis .kpi-card:nth-child(1) { width: 278px; }
.analytics-page .analytics-kpis .kpi-card:nth-child(2) { width: 280px; margin-left: 15px; }
.analytics-page .analytics-kpis .kpi-card:nth-child(3) { width: 279px; margin-left: 17px; }
.analytics-page .analytics-kpis .kpi-card:nth-child(4) { width: 271px; margin-left: 21px; }

.analytics-page .kpi-card {
  padding-left: 16px;
}

.analytics-page .kpi-card h2 {
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 560;
}

.analytics-page .kpi-card strong {
  font-size: 29px;
  font-weight: 620;
}

.analytics-page .kpi-card p {
  gap: 16px;
}

.analytics-page .kpi-card .trend {
  font-size: 15px;
  font-weight: 520;
}

.analytics-page .analytics-kpis .kpi-card:nth-child(2) p {
  gap: 16px;
}

.analytics-page .analytics-kpis .kpi-card:nth-child(4) p {
  gap: 12px;
}

.analytics-page .analytics-kpis .kpi-card:nth-child(3),
.analytics-page .analytics-kpis .kpi-card:nth-child(4) {
  grid-template-columns: 55px 1fr;
  gap: 25px;
}

.analytics-page .metric-icon {
  transform: translateY(-3px);
}

.analytics-panels {
  display: grid;
  gap: 20px;
}

.analytics-top-panels {
  grid-template-columns: 623px minmax(0, 1fr);
  height: 306px;
  margin-bottom: 20px;
}

.analytics-bottom-panels {
  grid-template-columns: 549px minmax(0, 1fr);
  grid-template-rows: 301px;
  height: 301px;
}

.analytics-panels .card {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
}

.analytics-panels .card h2 {
  font-size: 22px;
  font-weight: 560;
}

.funnel-card {
  position: relative;
  padding: 18px 14px 14px 21px;
}

.funnel-card .card-top {
  display: block;
}

.funnel-card .card-top button {
  position: absolute;
  top: 12px;
  right: 14px;
  height: 37px;
  gap: 11px;
  border-radius: 8px;
  padding: 0 14px 0 17px;
}

.funnel {
  margin-top: 26px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 96px 322px 70px 83px;
  align-items: center;
  height: 30px;
  font-size: 16px;
}

.funnel-row .stage {
  font-size: 15px;
  font-weight: 460;
  white-space: nowrap;
}

.funnel-row strong {
  color: #2a2d32;
  font-size: 16px;
  font-weight: 430;
  text-align: right;
}

.funnel-bar {
  display: block;
  height: 30px;
  border-radius: 2px;
}

.funnel-bar.level-1 {
  width: 286px;
  background: linear-gradient(90deg, #090909, #000);
}

.funnel-bar.level-2 {
  width: 211px;
  background: linear-gradient(90deg, #494949, #333);
}

.funnel-bar.level-3 {
  width: 138px;
  background: linear-gradient(90deg, #858585, #696969);
}

.funnel-bar.level-4 {
  width: 89px;
  background: linear-gradient(90deg, #bbb, #a9a9a9);
}

.funnel-bar.level-5 {
  width: 72px;
  background: linear-gradient(90deg, #ddd, #d0d0d0);
}

.funnel .rate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 50px;
  height: 25px;
  border: 1px solid #b8bec4;
  border-radius: 6px;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 420;
}

.stage-arrow {
  display: block;
  width: 30px;
  height: 15px;
  margin-left: 2px;
  color: #6e7277;
  font-family: "Satoshi Variable", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 15px;
  text-align: center;
}

.segments-card {
  padding: 19px 25px 12px 25px;
}

.segments-chart {
  width: 100%;
  height: 239px;
  margin-top: -1px;
  overflow: visible;
}

.segments-chart text {
  fill: #090a0d;
  font-family: "Satoshi Variable", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 430;
  stroke: none;
}

.segments-chart .axis-label,
.segments-chart .segment-name {
  font-weight: 570;
}

.segments-chart circle {
  stroke: none;
}

.segment-axis {
  fill: none;
  stroke: #adb2b7;
  stroke-width: 1.2;
}

.segment-grid {
  fill: none;
  stroke: #b6bbc0;
  stroke-dasharray: 4 4;
  stroke-width: 1.3;
}

.segment-new {
  fill: #a8a8a8;
}

.segment-high {
  fill: #030303;
}

.segment-risk {
  fill: #d0d0d0;
}

.segment-loyal {
  fill: #666;
}

.cohort-card {
  padding: 20px 21px 18px;
}

.cohort-table {
  display: grid;
  grid-template-columns: 57px repeat(6, 1fr);
  grid-template-rows: 29px repeat(5, 36px);
  width: 507px;
  margin-top: 16px;
  font-size: 14px;
}

.cohort-head,
.cohort-month,
.heat {
  display: grid;
  place-items: center;
}

.cohort-head {
  align-items: start;
  font-size: 12px;
  font-weight: 520;
}

.cohort-month {
  justify-content: start;
  padding-left: 11px;
  font-size: 16px;
  font-weight: 500;
}

.heat {
  border-right: 1px solid rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.78);
  font-weight: 430;
}

.heat.h100 { background: #050505; color: #fff; }
.heat.h62 { background: #aaa; }
.heat.h60 { background: #aeaeae; }
.heat.h57 { background: #b5b5b5; }
.heat.h55 { background: #bababa; }
.heat.h53 { background: #bfbfbf; }
.heat.h45 { background: #c7c7c7; }
.heat.h43 { background: #cbcbcb; }
.heat.h40 { background: #d1d1d1; }
.heat.h37 { background: #d6d6d6; }
.heat.h34 { background: #dcdcdc; }
.heat.h31 { background: #dfdfdf; }
.heat.h29 { background: #e2e2e2; }
.heat.h26 { background: #e5e5e5; }
.heat.h25 { background: #e7e7e7; }
.heat.h22 { background: #e9e9e9; }
.heat.h20 { background: #ebebeb; }
.heat.h18 { background: #ededed; }
.heat.h17 { background: #eee; }
.heat.h16 { background: #efefef; }
.heat.h15 { background: #f0f0f0; }
.heat.h14 { background: #f1f1f1; }
.heat.h12 { background: #f2f2f2; }
.heat.h10 { background: #f4f4f4; }

.channel-card {
  padding: 20px 21px 16px 23px;
}

.channel-card table {
  margin-top: 19px;
  table-layout: fixed;
  font-size: 14px;
}

.channel-card th {
  height: 38px;
  font-size: 14px;
  font-weight: 560;
}

.channel-card td {
  height: 49px;
  color: #191b1f;
  font-size: 14px;
  font-weight: 430;
}

.channel-card th:last-child,
.channel-card td:last-child {
  padding-right: 17px;
}

.conversion {
  display: grid;
  grid-template-columns: 39px 119px;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.conversion i {
  position: relative;
  display: block;
  width: 119px;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #d2d2d2;
}

.conversion b {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: #030303;
}

/* Customers page */
.customers-page .dashboard-frame {
  width: 100%;
  min-height: 100vh;
  height: auto;
}

.customers-content {
  padding: 39px 44px 56px 31px;
}

.customers-page .title-row {
  margin-bottom: 31px;
}

.customer-actions {
  display: flex;
  gap: 16px;
  padding-top: 12px;
}

.customer-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 7px;
  font-size: 17px;
  font-weight: 400;
  white-space: nowrap;
}

.customer-actions svg {
  width: 20px;
  height: 20px;
}

.date-button {
  gap: 11px;
  width: 210px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
  color: #1c1f24;
}

.add-customer {
  gap: 11px;
  width: 171px;
  border: 0;
  background: #030303;
  color: #fff;
}

.customer-kpis {
  gap: 15px;
  margin-bottom: 20px;
}

.customer-kpis .kpi-card {
  height: 109px;
  padding-left: 16px;
}

.customer-kpis .kpi-card h2 {
  font-size: 15px;
  font-weight: 520;
}

.customer-kpis .kpi-card strong {
  font-size: 29px;
  font-weight: 560;
}

.customer-kpis .kpi-card p {
  gap: 17px;
}

.customer-kpis .kpi-card:nth-child(4) p {
  gap: 10px;
}

.customer-kpis .kpi-card .trend {
  font-size: 15px;
  font-weight: 480;
}

.customer-layout {
  display: grid;
  grid-template-columns: 724px minmax(0, 1fr);
  gap: 20px;
  height: 620px;
}

.directory-card {
  height: 620px;
  overflow: hidden;
  padding: 20px 22px 18px 21px;
}

.directory-card h2,
.customer-segments-card h2,
.customer-value-card h2 {
  font-size: 23px;
  font-weight: 560;
}

.directory-tools {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-top: 14px;
}

.directory-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 313px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid #acb3b9;
  border-radius: 6px;
  padding: 0 14px;
}

.directory-search svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.directory-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #17191d;
  font-size: 16px;
  font-weight: 400;
}

.directory-search input::placeholder {
  color: #50545a;
  opacity: 1;
}

.directory-tabs {
  display: flex;
  gap: 15px;
}

.directory-tabs button {
  height: 43px;
  border: 1px solid #adb4ba;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  padding: 0 16px;
  color: #15171b;
  font-size: 16px;
  font-weight: 400;
}

.directory-tabs button.selected {
  border-color: #030303;
  background: #030303;
  color: #fff;
}

.customer-table {
  width: 100%;
  table-layout: fixed;
  margin-top: 21px;
  font-size: 14px;
}

.customer-table th {
  height: 42px;
  font-size: 14px;
  font-weight: 540;
}

.customer-table td {
  height: 63px;
  color: #131519;
  font-size: 14px;
  font-weight: 400;
}

.customer-table th:last-child,
.customer-table td:last-child {
  padding: 0;
  text-align: center;
  white-space: nowrap;
}

.customer-table td:first-child {
  white-space: nowrap;
}

.customer-avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(145deg, #e2e2e2, #bdbdbd);
  font-size: 13px;
  font-weight: 540;
  vertical-align: middle;
}

.customer-name {
  display: inline-block;
  min-width: 0;
  width: calc(100% - 55px);
  margin-left: 14px;
  vertical-align: middle;
}

.customer-name strong,
.customer-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-name strong {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 590;
}

.customer-name small {
  font-size: 13px;
  font-weight: 400;
}

.customer-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  height: 30px;
  border: 1px solid #b2b8bd;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
}

.directory-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  font-size: 15px;
}

.pagination {
  display: flex;
  gap: 14px;
}

.pagination button {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid #c0c5ca;
  border-radius: 5px;
  background: #fff;
  font-size: 15px;
}

.pagination svg {
  width: 18px;
  height: 18px;
}

.customer-side {
  display: grid;
  grid-template-rows: 304px 302px;
  gap: 14px;
}

.customer-segments-card {
  padding: 21px 24px;
}

.customer-segment-list {
  display: grid;
  gap: 29px;
  margin-top: 30px;
}

.customer-segment-row {
  display: grid;
  grid-template-columns: 84px 231px 61px;
  align-items: center;
  gap: 0;
  min-height: 28px;
  font-size: 16px;
}

.customer-segment-row > span {
  font-weight: 430;
}

.customer-segment-row > strong {
  font-size: 15px;
  font-weight: 430;
  text-align: right;
}

.customer-segment-bar {
  display: block;
  width: 231px;
  height: 23px;
}

.customer-segment-bar b {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: 2px;
  background: #030303;
}

.customer-segment-row:nth-child(2) .customer-segment-bar b { background: #595959; }
.customer-segment-row:nth-child(3) .customer-segment-bar b { background: #9f9f9f; }
.customer-segment-row:nth-child(4) .customer-segment-bar b { background: #d1d1d1; }

.customer-value-card {
  padding: 20px 20px 20px 24px;
}

.customer-value-grid {
  display: grid;
  grid-template-columns: 177px 1fr;
  grid-template-rows: 1fr 1fr;
  height: 212px;
  margin-top: 16px;
}

.value-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.value-metric:nth-child(odd) {
  border-right: 1px solid #d7d7d7;
}

.value-metric:nth-child(-n + 2) {
  border-bottom: 1px solid #d7d7d7;
}

.value-metric > span {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 430;
}

.value-metric > strong {
  margin-bottom: 7px;
  font-size: 30px;
  font-weight: 520;
}

.value-metric .trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
  font-weight: 430;
}

.value-metric .trend svg {
  width: 17px;
  height: 15px;
  stroke-width: 1.5;
}

/* Orders page */
.orders-page .dashboard-frame {
  width: 100%;
  min-height: 100vh;
  height: auto;
}

.orders-page .topbar {
  padding-right: 61px;
}

.orders-content {
  padding: 39px 29px 34px 35px;
}

.orders-page .title-row {
  margin-bottom: 30px;
}

.orders-page .filters {
  padding-top: 10px;
}

.orders-page .filters button:first-child {
  width: 210px;
}

.orders-page .filters button:last-child {
  width: 177px;
}

.orders-main-grid {
  display: grid;
  grid-template-columns: 566px minmax(565px, 1fr);
  gap: 24px;
  height: 389px;
  margin-bottom: 28px;
}

.order-stats-grid {
  display: grid;
  grid-template-columns: 276px 276px;
  grid-template-rows: 177px 177px;
  gap: 34px 14px;
}

.order-stat-card {
  height: 177px;
  padding: 14px 13px;
  border-radius: 11px;
}

.order-stat-actions {
  display: grid;
  grid-template-columns: 57px 115px 1fr;
  align-items: center;
  gap: 15px;
}

.order-stat-icon {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  border-radius: 999px;
  background: #030303;
  color: #fff;
}

.order-stat-icon svg {
  width: 24px;
  height: 24px;
}

.order-stat-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 115px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #030303;
  color: #fff;
  font-size: 15px;
  font-weight: 520;
}

.order-stat-actions button svg {
  width: 20px;
  height: 20px;
}

.order-stat-actions .more {
  color: #121418;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
}

.order-stat-card h2 {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 540;
}

.order-stat-card p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 1px;
}

.order-stat-card p > strong {
  font-size: 51px;
  font-weight: 520;
  line-height: 0.92;
}

.order-stat-card:nth-child(4) p > strong {
  font-size: 35px;
}

.order-stat-card .trend {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding-right: 5px;
  font-size: 15px;
  font-weight: 520;
}

.order-stat-card .trend svg {
  width: 19px;
  height: 16px;
  stroke-width: 1.5;
}

.inventory-card {
  height: 389px;
  padding: 15px 14px 8px 14px;
  overflow: hidden;
}

.inventory-card h2 {
  margin-bottom: 5px;
  font-size: 26px;
  font-weight: 610;
}

.inventory-card > p {
  font-size: 16px;
  font-weight: 520;
}

.inventory-chart {
  width: 100%;
  height: 294px;
  margin-top: 0;
  overflow: visible;
}

.inventory-grid path {
  fill: none;
  stroke: #c4c9ce;
  stroke-dasharray: 1 4;
  stroke-linecap: round;
}

.inventory-labels text {
  fill: #090a0d;
  font-family: "Satoshi Variable", Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 560;
  stroke: none;
}

.inventory-labels text:nth-child(-n + 5) {
  font-size: 18px;
  font-weight: 600;
}

.inventory-ghost {
  fill: none;
  stroke: #d4d7da;
  stroke-dasharray: 2 2;
  stroke-width: 1;
}

.inventory-area {
  fill: url("#inventory-fill");
  opacity: 0.48;
}

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

.inventory-dots circle {
  fill: #030303;
  stroke: none;
}

.inventory-line-tip {
  fill: #fff;
  stroke: #030303;
  stroke-width: 3;
  opacity: 0;
}

.orders-bottom-grid {
  display: grid;
  grid-template-columns: 276px minmax(565px, 1fr) 276px;
  gap: 19px;
  height: 352px;
}

.orders-bottom-grid > .card {
  height: 352px;
  overflow: hidden;
}

.orders-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.orders-section-title h2 {
  font-size: 22px;
  font-weight: 570;
}

.orders-section-title > button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.orders-section-title > button svg {
  width: 22px;
  height: 22px;
}

.countries-card {
  padding: 22px 17px 16px 14px;
}

.country-list {
  display: grid;
  gap: 28px;
  margin-top: 24px;
}

.country-row p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 15px;
}

.country-row p span,
.country-row p strong {
  font-weight: 540;
}

.country-row > i {
  display: block;
  width: 244px;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #898989;
}

.country-row > i b {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: #030303;
}

.best-products-card {
  padding: 16px 22px 14px;
}

.filter-button {
  display: inline-flex !important;
  grid-template-columns: none;
  flex-direction: row;
  gap: 16px;
  width: 98px;
  height: 43px;
  border: 1px solid #adb4ba !important;
  border-radius: 6px;
  font-size: 15px;
}

.order-product-list {
  display: grid;
  gap: 26px;
  margin-top: 19px;
  margin-right: 7px;
  margin-left: 7px;
}

.order-product-row {
  display: grid;
  grid-template-columns: 52px 1fr 111px;
  align-items: center;
  gap: 14px;
  min-height: 66px;
}

.order-product-row .thumb {
  width: 52px;
  height: 58px;
}

.order-product-row h3 {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.order-product-row p {
  font-size: 15px;
  font-weight: 400;
}

.order-product-row time {
  color: #34373c;
  font-size: 13px;
  text-align: right;
}

.calendar-card {
  padding: 23px 22px 17px;
}

.appointment-button {
  width: 230px;
  height: 41px;
  border: 0;
  border-radius: 999px;
  background: #030303;
  color: #fff;
  font-size: 16px;
  font-weight: 550;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 37px 7px 15px 15px;
}

.calendar-head h2 {
  font-size: 18px;
  font-weight: 600;
}

.calendar-head > div {
  display: flex;
  gap: 14px;
}

.calendar-head button {
  border: 0;
  background: transparent;
  padding: 0;
}

.calendar-head svg {
  width: 18px;
  height: 18px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 34px;
  align-items: center;
  text-align: center;
  font-size: 15px;
}

.calendar-grid b {
  font-weight: 560;
}

.calendar-grid .muted-day {
  color: #777b80;
}

.calendar-grid .active-day {
  color: #ff2525;
}

/* First-load data build */
@keyframes dashboard-card-build {
  from {
    opacity: 0;
    scale: 0.94;
    translate: 0 12px;
  }

  to {
    opacity: 1;
    scale: 1;
    translate: 0 0;
  }
}

@keyframes dashboard-card-activate {
  0% {
    scale: 0.985;
    translate: 0 1px;
  }

  58% {
    scale: 1.008;
    translate: 0 -0.5px;
  }

  100% {
    scale: 1;
    translate: 0 0;
  }
}

.dashboard-navigation-card {
  cursor: pointer;
}

.dashboard-navigation-card.card-navigation-pressed {
  scale: 0.985 !important;
  translate: 0 1px !important;
  transition:
    scale 80ms ease-out,
    translate 80ms ease-out;
}

.dashboard-navigation-card:focus-visible {
  outline: 3px solid rgba(39, 137, 237, 0.2);
  outline-offset: 3px;
}

.saas-overview-page.is-animating .content .dashboard-navigation-card.card-navigation-bounce,
.saas-overview-page .content .dashboard-navigation-card.card-navigation-bounce {
  animation: dashboard-card-activate 220ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
  transform-origin: center;
  pointer-events: none;
}

.saas-overview-page.is-animating .content :is(.kpi-card, .card, .analytics-raw-data):not([hidden]) {
  animation: dashboard-card-build 1400ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(70ms + var(--card-animation-index, 0) * 90ms);
  transform-origin: center;
}

.is-animating .kpi-card h2,
.is-animating .kpi-card strong,
.is-animating .kpi-card .trend {
  opacity: 0;
  transform: translateY(6px) scale(0.88);
  transform-origin: left center;
  transition:
    opacity 700ms ease,
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(120ms + var(--animation-index, 0) * 110ms);
}

.is-animating.is-visible .kpi-card h2,
.is-animating.is-visible .kpi-card strong,
.is-animating.is-visible .kpi-card .trend {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.is-animating .metric-icon {
  opacity: 0;
  transform: translateY(-5px) scale(0.55);
  transition:
    opacity 600ms ease,
    transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(60ms + var(--animation-index, 0) * 110ms);
}

.analytics-page.is-animating .metric-icon {
  transform: translateY(-3px) scale(0.55);
}

.is-animating.is-visible .metric-icon {
  opacity: 1;
  transform: translateY(-5px) scale(1);
}

.analytics-page.is-animating.is-visible .metric-icon {
  transform: translateY(-3px) scale(1);
}

.is-animating .comparison-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1900ms cubic-bezier(0.33, 1, 0.68, 1) 350ms;
}

.is-animating.is-visible .comparison-line {
  stroke-dashoffset: 0;
}

.revenue-line-tip {
  fill: #fff;
  stroke: #030303;
  stroke-width: 3;
  opacity: 0;
  transition: opacity 240ms ease;
}

.is-drawing-revenue .revenue-line-tip {
  opacity: 1;
}

.is-drawing-inventory .inventory-line-tip {
  opacity: 1;
}

.is-animating .chart-dots circle {
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 300ms ease,
    transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.is-animating .inventory-dots circle {
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 120ms ease,
    transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.is-animating .chart-dots circle.is-reached {
  opacity: 1;
  transform: scale(1);
}

.is-animating .inventory-dots circle.is-reached {
  opacity: 1;
  transform: scale(1);
}

.is-animating .donut {
  opacity: 0;
  transform: rotate(-35deg) scale(0.48);
  transition:
    opacity 700ms ease 280ms,
    transform 1600ms cubic-bezier(0.16, 1, 0.3, 1) 280ms;
}

.is-animating.is-visible .donut {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.is-animating .legend p,
.is-animating .product-row,
.is-animating .channel-card tbody tr,
.is-animating .customer-table tbody tr,
.is-animating .customer-segment-row,
.is-animating .value-metric,
.is-animating .country-row,
.is-animating .order-product-row,
.is-animating .calendar-grid span {
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  transform-origin: left center;
  transition:
    opacity 550ms ease,
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(460ms + var(--animation-index, 0) * 130ms);
}

.is-animating.is-visible .legend p,
.is-animating.is-visible .product-row,
.is-animating.is-visible .channel-card tbody tr,
.is-animating.is-visible .customer-table tbody tr,
.is-animating.is-visible .customer-segment-row,
.is-animating.is-visible .value-metric,
.is-animating.is-visible .country-row,
.is-animating.is-visible .order-product-row,
.is-animating.is-visible .calendar-grid span {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.is-animating .bar i,
.is-animating .funnel-bar,
.is-animating .conversion b,
.is-animating .customer-segment-bar b,
.is-animating .country-row > i b {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1500ms cubic-bezier(0.16, 1, 0.3, 1);
}

.is-animating .bar i {
  transition-delay: calc(520ms + var(--animation-index, 0) * 130ms);
}

.is-animating .funnel-bar {
  transition-delay: calc(320ms + var(--animation-index, 0) * 145ms);
}

.is-animating .conversion b {
  transition-delay: calc(560ms + var(--animation-index, 0) * 130ms);
}

.is-animating .customer-segment-bar b {
  transition-delay: calc(420ms + var(--animation-index, 0) * 170ms);
}

.is-animating .country-row > i b {
  transition-delay: calc(420ms + var(--animation-index, 0) * 170ms);
}

.is-animating.is-visible .bar i,
.is-animating.is-visible .funnel-bar,
.is-animating.is-visible .conversion b,
.is-animating.is-visible .customer-segment-bar b,
.is-animating.is-visible .country-row > i b {
  transform: scaleX(1);
}

.is-animating .order-stat-card h2,
.is-animating .order-stat-card p,
.is-animating .order-stat-actions {
  opacity: 0;
  transform: translateY(7px) scale(0.9);
  transform-origin: left center;
  transition:
    opacity 650ms ease,
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(100ms + var(--animation-index, 0) * 115ms);
}

.is-animating.is-visible .order-stat-card h2,
.is-animating.is-visible .order-stat-card p,
.is-animating.is-visible .order-stat-actions {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.is-animating .inventory-ghost {
  opacity: 0;
  transition: opacity 1000ms ease 400ms;
}

.is-animating .inventory-area {
  opacity: 0;
  transition: opacity 600ms ease 1700ms;
}

.is-animating.is-visible .inventory-area {
  opacity: 0.48;
}

.is-animating.is-visible .inventory-ghost {
  opacity: 1;
}

.is-animating .funnel-row {
  opacity: 0;
  transform: scale(0.96);
  transform-origin: left center;
  transition:
    opacity 600ms ease,
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(230ms + var(--animation-index, 0) * 145ms);
}

.is-animating.is-visible .funnel-row {
  opacity: 1;
  transform: scale(1);
}

.is-animating .segments-chart circle {
  opacity: 0;
  transform: scale(0);
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 500ms ease,
    transform 1100ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(330ms + var(--animation-index, 0) * 170ms);
}

.is-animating.is-visible .segments-chart circle {
  opacity: 1;
  transform: scale(1);
}

.is-animating .heat {
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 450ms ease,
    transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(260ms + var(--animation-index, 0) * 32ms);
}

.is-animating.is-visible .heat {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

@media (max-width: 1200px) {
  .title-row {
    flex-wrap: wrap;
    gap: 18px;
  }

  .filters,
  .customer-actions {
    padding-top: 0;
  }

  .content,
  .analytics-content,
  .customers-content,
  .orders-content {
    padding-right: 24px;
    padding-left: 24px;
  }

  .kpi-grid,
  .analytics-page .analytics-kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .analytics-page .analytics-kpis .kpi-card,
  .analytics-page .analytics-kpis .kpi-card:nth-child(n) {
    width: auto;
    margin-left: 0;
  }

  .panel-grid,
  .analytics-top-panels,
  .analytics-bottom-panels,
  .customer-layout,
  .orders-main-grid,
  .orders-bottom-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    height: auto;
  }

  .panel-grid {
    grid-auto-rows: auto;
  }

  .revenue-card,
  .category-card {
    min-height: 342px;
  }

  .orders-card,
  .products-card {
    min-height: 283px;
  }

  .analytics-top-panels,
  .analytics-bottom-panels {
    grid-auto-rows: minmax(301px, auto);
  }

  .analytics-top-panels {
    margin-bottom: 20px;
  }

  .customer-layout {
    gap: 20px;
  }

  .directory-card {
    width: 100%;
  }

  .directory-tools {
    flex-wrap: wrap;
  }

  .customer-side {
    grid-template-rows: 304px 302px;
  }

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

  .inventory-card,
  .orders-bottom-grid > .card {
    width: 100%;
  }

  .orders-bottom-grid {
    gap: 20px;
  }
}

@media (max-width: 1526px), (max-height: 1029px) {
  .dashboard-frame {
    margin: 0;
  }
}

/* Nexa overview dashboard */
.nexa-page {
  min-height: 100vh;
  background: #f6f7f8;
  padding: 34px;
  color: #17202a;
}

.nexa-shell {
  width: min(1400px, 100%);
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 34px;
  background: #dceefa;
  padding: 24px 26px 28px;
  box-shadow: 0 28px 62px rgba(38, 58, 74, 0.22);
}

.nexa-header {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) auto;
  align-items: center;
  height: 62px;
  border: 1px solid rgba(218, 227, 235, 0.85);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  padding: 0 18px 0 20px;
  box-shadow: 0 6px 18px rgba(71, 95, 116, 0.06);
}

.nexa-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  font-size: 27px;
  font-weight: 500;
  white-space: nowrap;
}

.nexa-mark {
  display: flex;
  align-items: end;
  gap: 2px;
  width: 20px;
  height: 19px;
}

.nexa-mark i {
  display: block;
  width: 5px;
  border-radius: 2px 2px 0 0;
  background: #2f89eb;
}

.nexa-mark i:nth-child(1) { height: 10px; opacity: 0.42; }
.nexa-mark i:nth-child(2) { height: 15px; opacity: 0.72; }
.nexa-mark i:nth-child(3) { height: 19px; }

.nexa-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 42px);
}

.nexa-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 18px;
  padding: 0 3px;
  color: #4f5c68;
  font-size: 12px;
  font-weight: 450;
  white-space: nowrap;
}

.nexa-nav a:hover {
  color: #111820;
}

.nexa-nav a.active {
  min-width: 96px;
  background: #202833;
  padding: 0 20px;
  color: #fff;
}

.nexa-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nexa-actions a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #25313c;
  font-size: 12px;
  white-space: nowrap;
}

.nexa-actions svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.55;
}

.nexa-actions .action-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 5px;
  height: 5px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #2786ea;
}

.nexa-intro {
  display: grid;
  grid-template-columns: minmax(470px, 1fr) minmax(540px, 0.92fr);
  align-items: end;
  gap: 50px;
  min-height: 182px;
  padding: 34px 0 25px;
}

.nexa-welcome h1 {
  margin-bottom: 29px;
  font-size: clamp(31px, 2.8vw, 43px);
  font-weight: 430;
  line-height: 1;
}

.efficiency-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 470px;
}

.efficiency-strip > div {
  display: grid;
  grid-template-rows: 18px 38px;
  text-align: center;
}

.efficiency-strip span {
  font-size: 11px;
}

.efficiency-strip strong {
  display: grid;
  place-items: center;
  border: 1px solid #1f2933;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  font-weight: 560;
}

.efficiency-strip .blue-pill {
  border-color: #2c89ed;
  background: #2c89ed;
  color: #fff;
}

.efficiency-strip .dark-pill {
  border-color: #202833;
  background: #202833;
  color: #fff;
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 33px;
  padding-bottom: 5px;
}

.summary-stat span,
.summary-stat small {
  display: block;
  color: #3a4652;
}

.summary-stat span {
  margin-bottom: 2px;
  font-size: 11px;
}

.summary-stat strong {
  display: block;
  margin-bottom: 1px;
  font-size: 46px;
  font-weight: 350;
  line-height: 0.92;
}

.summary-stat small {
  font-size: 9px;
}

.nexa-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 214px 140px 230px;
  gap: 8px;
}

.nexa-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(208, 222, 233, 0.94);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 5px 14px rgba(58, 83, 103, 0.08);
}

.nexa-card h2 {
  font-size: 23px;
  font-weight: 470;
  line-height: 0.98;
}

.nexa-card p {
  color: #37424c;
  font-size: 11px;
}

.headline-value {
  display: block;
  font-size: 37px;
  font-weight: 430;
  line-height: 1;
}

.round-action {
  position: absolute;
  z-index: 2;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  padding: 0;
  color: #17202a;
  box-shadow: 0 2px 8px rgba(33, 47, 59, 0.08);
}

.round-action.dark {
  background: #202833;
  color: #fff;
}

.round-action svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.7;
}

.forecast-card { grid-column: span 5; padding: 20px 22px; }
.savings-card { grid-column: span 4; padding: 20px 22px; }
.assistant-card { grid-column: span 3; grid-row: span 2; }
.automation-card { grid-column: span 3; }
.growth-card { grid-column: span 6; }
.cost-card { grid-column: span 4; }
.margin-card { grid-column: span 5; }
.customer-growth-card { grid-column: span 3; }

.forecast-card > p,
.savings-card > p {
  margin-top: 5px;
}

.forecast-card > small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
}

.forecast-chart {
  position: absolute;
  right: 20px;
  bottom: 9px;
  left: 20px;
  width: calc(100% - 40px);
  height: 95px;
  overflow: visible;
}

.forecast-bars,
.growth-bars {
  fill: none;
  stroke: #86bdf7;
  stroke-width: 8;
  stroke-linecap: butt;
  opacity: 0.62;
}

.forecast-area,
.growth-area,
.margin-area {
  fill: #3f94ee;
  opacity: 0.08;
  stroke: none;
}

.forecast-line,
.growth-line,
.margin-line {
  fill: none;
  stroke: #2d86e8;
  stroke-width: 2.3;
}

.forecast-badge {
  position: absolute;
  right: 24px;
  bottom: 13px;
  border-radius: 11px;
  background: rgba(76, 151, 232, 0.45);
  padding: 5px 10px;
  color: #fff;
  font-size: 9px;
}

.savings-list {
  display: grid;
  gap: 11px;
  margin-top: 15px;
}

.savings-list > div {
  display: grid;
  grid-template-columns: 126px minmax(70px, 1fr) 36px;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}

.savings-list i {
  position: relative;
  height: 7px;
  overflow: hidden;
  border-radius: 5px;
  background: #cbd8e3;
}

.savings-list b {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  border-radius: inherit;
  background: #398ce6;
}

.savings-list strong {
  font-weight: 450;
}

.assistant-card {
  display: grid;
  grid-template-rows: 60px 1fr 46px;
  background: rgba(255, 255, 255, 0.74);
}

.assistant-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #d7e4ee;
  padding: 0 14px 0 17px;
}

.assistant-card header h2 {
  margin-bottom: 5px;
  font-size: 14px;
}

.assistant-card header p {
  color: #6a7681;
  font-size: 8px;
}

.assistant-card header p i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #378de9;
}

.assistant-card header > div:last-child {
  display: flex;
  gap: 8px;
}

.assistant-card header button,
.assistant-card footer button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  padding: 0;
}

.assistant-card button svg {
  width: 14px;
  height: 14px;
}

.assistant-thread {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px 13px 9px;
}

.assistant-message {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 11px 12px;
  box-shadow: 0 4px 12px rgba(69, 96, 116, 0.07);
}

.assistant-message p {
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 520;
}

.assistant-message small,
.assistant-message strong {
  display: block;
  font-size: 8px;
  line-height: 1.35;
}

.assistant-message small { color: #5c6873; }
.assistant-message strong { margin: 9px 0 5px; }

.assistant-message ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 13px;
  font-size: 8px;
}

.assistant-message li b {
  margin-left: 5px;
  color: #2b7fda;
  font-weight: 500;
}

.assistant-tags {
  display: flex;
  gap: 4px;
  margin-top: 9px;
}

.assistant-tags span {
  border: 1px solid #c7d4df;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  padding: 3px 7px;
  color: #5f6b76;
  font-size: 7px;
}

.assistant-prompt {
  margin-top: 8px;
  padding-left: 3px;
  font-size: 8px !important;
}

.assistant-card footer {
  display: grid;
  grid-template-columns: 28px 1fr 28px 28px;
  align-items: center;
  gap: 5px;
  margin: 0 12px 10px;
  border: 1px solid #cbd8e2;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
  color: #71808c;
}

.assistant-card footer span {
  font-size: 8px;
}

.automation-card {
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: center;
  padding: 17px 18px;
}

.automation-card h2 {
  margin-bottom: 10px;
}

.automation-ring,
.growth-ring {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.automation-ring {
  width: 94px;
  height: 94px;
  background: conic-gradient(#2e88e9 0 72%, #c7d4df 72% 100%);
}

.automation-ring::after,
.growth-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #f6fbff;
}

.automation-ring::after { inset: 8px; }

.automation-ring strong,
.growth-ring strong {
  position: relative;
  z-index: 1;
  font-weight: 430;
}

.automation-ring strong { font-size: 29px; }
.automation-ring small { font-size: 17px; }
.automation-ring strong > span { display: inline; }

.growth-card {
  padding: 18px 23px;
}

.growth-card .headline-value {
  margin-top: 3px;
  font-size: 34px;
}

.growth-chart {
  position: absolute;
  right: 12px;
  bottom: 0;
  width: 69%;
  height: 118px;
}

.growth-bars {
  stroke-width: 7;
}

.cost-card,
.margin-card,
.customer-growth-card {
  padding: 20px 22px;
}

.cost-content {
  display: grid;
  grid-template-columns: 155px 1fr;
  align-items: center;
  height: 165px;
}

.cost-donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  border-radius: 50%;
  background: conic-gradient(#2f86e7 0 27%, #8fbceb 27% 62%, #1c5d9f 62% 100%);
}

.cost-donut::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background: #fff;
}

.cost-donut strong {
  position: relative;
  z-index: 1;
  font-size: 27px;
  font-weight: 430;
}

.cost-legend {
  display: grid;
  gap: 19px;
}

.cost-legend p {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.cost-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f86e7;
}

.cost-legend p:nth-child(2) i { background: #8fbceb; }
.cost-legend p:nth-child(3) i { background: #1c5d9f; }

.margin-value {
  position: absolute;
  top: 19px;
  right: 52px;
  color: #3288e6;
  font-size: 36px;
  font-weight: 380;
}

.margin-chart {
  width: 100%;
  height: 140px;
  margin-top: 15px;
  overflow: visible;
}

.margin-grid {
  fill: none;
  stroke: #c8d9e6;
  stroke-width: 1;
}

.margin-dots circle {
  fill: #fff;
  stroke: #2d86e8;
  stroke-width: 3;
}

.margin-labels {
  fill: #697985;
  font-size: 9px;
  stroke: none;
}

.margin-note {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: -5px;
}

.margin-note span {
  border-radius: 11px;
  background: #e6f1fa;
  padding: 5px 10px;
  color: #3788df;
  font-size: 9px;
}

.margin-note small {
  font-size: 9px;
}

.customer-growth-card h2 {
  margin-bottom: 18px;
}

.customer-growth-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
}

.customer-growth-content > div:first-child > strong {
  display: block;
  font-size: 37px;
  font-weight: 400;
}

.growth-ring {
  width: 112px;
  height: 112px;
  background: conic-gradient(#2e88e9 0 24%, #cbd8e2 24% 100%);
}

.growth-ring::after { inset: 10px; }

.growth-ring strong {
  display: grid;
  gap: 5px;
  text-align: center;
}

.growth-ring strong > span {
  font-size: 22px;
  line-height: 1;
}

.growth-ring small {
  font-size: 9px;
  font-weight: 420;
  line-height: 1.2;
}

.is-animating .nexa-card,
.is-animating .summary-stat,
.is-animating .efficiency-strip > div {
  opacity: 0;
  transform: scale(0.94);
  transition:
    opacity 650ms ease,
    transform 1050ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(180ms + var(--animation-index, 0) * 80ms);
}

.is-animating.is-visible .nexa-card,
.is-animating.is-visible .summary-stat,
.is-animating.is-visible .efficiency-strip > div {
  opacity: 1;
  transform: scale(1);
}

.is-animating .forecast-bars,
.is-animating .growth-bars {
  transform: scaleY(0);
  transform-origin: center bottom;
  transition: transform 1500ms cubic-bezier(0.16, 1, 0.3, 1) 380ms;
}

.is-animating.is-visible .forecast-bars,
.is-animating.is-visible .growth-bars {
  transform: scaleY(1);
}

.is-animating .savings-list b {
  width: 0;
  transition: width 1450ms cubic-bezier(0.16, 1, 0.3, 1) 430ms;
}

.is-animating.is-visible .savings-list b {
  width: var(--value);
}

.is-animating .automation-ring,
.is-animating .cost-donut,
.is-animating .growth-ring {
  transform: scale(0.25) rotate(-35deg);
  transition: transform 1500ms cubic-bezier(0.16, 1, 0.3, 1) 320ms;
}

.is-animating.is-visible .automation-ring,
.is-animating.is-visible .cost-donut,
.is-animating.is-visible .growth-ring {
  transform: scale(1) rotate(0);
}

@media (max-width: 1100px) {
  .nexa-page { padding: 18px; }
  .nexa-shell { border-radius: 24px; padding: 18px; }
  .nexa-header { grid-template-columns: auto 1fr auto; }
  .nexa-nav { gap: 10px; }
  .nexa-nav a { font-size: 10px; }
  .nexa-actions a span { display: none; }
  .nexa-intro { grid-template-columns: 1fr; gap: 24px; padding: 30px 0; }
  .summary-stats { max-width: 620px; }
  .nexa-grid { grid-template-rows: auto; }
  .forecast-card,
  .savings-card,
  .automation-card,
  .growth-card,
  .cost-card,
  .margin-card { grid-column: span 6; min-height: 220px; }
  .assistant-card,
  .customer-growth-card { grid-column: span 6; min-height: 360px; grid-row: auto; }
}

@media (max-width: 760px) {
  .nexa-page { padding: 0; }
  .nexa-shell { border-radius: 0; padding: 12px; }
  .nexa-header { height: auto; min-height: 60px; grid-template-columns: 1fr auto; }
  .nexa-brand { font-size: 22px; }
  .nexa-nav { grid-column: 1 / -1; justify-content: start; overflow-x: auto; padding: 8px 0 12px; }
  .nexa-actions { grid-column: 2; grid-row: 1; }
  .nexa-intro { min-height: 0; }
  .nexa-welcome h1 { font-size: 31px; }
  .efficiency-strip { width: 100%; }
  .summary-stats { gap: 12px; }
  .summary-stat strong { font-size: 34px; }
  .nexa-grid { display: block; }
  .nexa-card { min-height: 220px; margin-bottom: 10px; }
  .assistant-card { min-height: 380px; }
  .automation-card { min-height: 150px; }
  .growth-card { min-height: 150px; }
  .customer-growth-card { min-height: 220px; }
}

/* Full-width SaaS overview */
.saas-overview-page {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  font-family: "Satoshi Variable", Arial, Helvetica, sans-serif;
}

.saas-overview-page .dashboard-frame {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  grid-template-columns: 290px minmax(0, 1fr);
  background: #f4faff;
}

.saas-overview-page .dashboard-frame.sidebar-collapsed {
  grid-template-columns: 82px minmax(0, 1fr);
}

.saas-overview-page .sidebar {
  align-self: start;
  height: calc(100vh - 20px);
  height: calc(100dvh - 20px);
  min-height: 0;
  overflow: visible;
  margin: 10px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 22px;
  background-color: rgba(255, 255, 255, 0.48);
  background-image: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.62),
    rgba(230, 242, 249, 0.28)
  );
  padding-top: 27px;
  padding-bottom: 27px;
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px rgba(190, 211, 226, 0.24),
    0 14px 34px rgba(39, 64, 82, 0.12);
}

.saas-overview-page .brand {
  width: min(224px, calc(100% - 46px));
  height: 60px;
  max-width: none;
  margin-left: 14px;
  white-space: nowrap;
}

.saas-overview-page .brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.saas-overview-page .sidebar-collapsed .brand::after {
  content: "SX";
  font-size: 11px;
  font-weight: 650;
  line-height: 24px;
}

.saas-overview-page .sidebar-collapsed .brand {
  width: 34px;
  height: 24px;
  max-width: 34px;
  font-size: 0;
}

.saas-overview-page .sidebar-collapsed .brand img {
  display: none;
}

.saas-overview-page .menu-label {
  margin-left: 14px;
}

.saas-overview-page .menu-link {
  padding-right: 14px;
  padding-left: 14px;
}

.saas-overview-page .workspace {
  grid-template-rows: 1fr;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
}

.saas-overview-page .sidebar-search {
  width: auto;
  height: 40px;
  margin: 0 14px 24px;
  border-color: rgba(186, 205, 219, 0.78);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  padding: 0 11px;
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 12px rgba(42, 66, 84, 0.06);
}

.saas-overview-page .sidebar-search svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.saas-overview-page .sidebar-search input {
  font-size: 12px;
}

.saas-overview-page .sidebar-profile {
  min-width: 0;
  margin: auto 14px 0;
  padding-top: 15px;
  border-top: 1px solid rgba(190, 208, 221, 0.66);
  gap: 9px;
}

.saas-overview-page .sidebar-profile .avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.saas-overview-page .sidebar-profile > div:last-child {
  min-width: 0;
}

.saas-overview-page .sidebar-profile strong {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 560;
}

.saas-overview-page .sidebar-profile span {
  overflow: hidden;
  color: #59656f;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saas-overview-page .sidebar-collapsed .sidebar-search {
  justify-content: center;
  margin-right: 11px;
  margin-left: 11px;
  padding: 0;
}

.saas-overview-page .sidebar-collapsed .sidebar-search input {
  display: none;
}

.saas-overview-page .sidebar-collapsed .sidebar-profile {
  justify-content: center;
  margin-right: 11px;
  margin-left: 11px;
}

.saas-overview-page .sidebar-collapsed .sidebar-profile .avatar {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
}

.saas-overview-page .sidebar-collapsed .sidebar-profile > div:last-child {
  display: none;
}

.saas-overview-page .content {
  padding: 30px 30px 34px;
}

.analytics-detail-page .content {
  min-width: 0;
}

.analytics-filter-bar {
  display: flex;
  align-items: center;
  min-height: 56px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  overflow-x: auto;
  padding: 9px 12px;
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 0 0 1px rgba(198, 216, 229, 0.24),
    0 8px 20px rgba(45, 70, 88, 0.08);
}

.saas-overview-page .analytics-date-picker {
  position: relative;
  z-index: 20;
  display: block;
}

.saas-overview-page .filters .analytics-date-trigger {
  width: auto !important;
  min-width: 236px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.46);
  padding: 0 16px;
  color: #313a42;
  font-size: 13px;
  font-weight: 500;
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 0 0 1px rgba(198, 216, 229, 0.24),
    0 8px 20px rgba(45, 70, 88, 0.08);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.saas-overview-page .filters .analytics-date-trigger:hover,
.saas-overview-page .filters .analytics-date-trigger:focus-visible,
.saas-overview-page .filters.analytics-date-picker.is-open .analytics-date-trigger {
  background: rgba(245, 251, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px rgba(170, 202, 224, 0.3),
    0 10px 24px rgba(45, 70, 88, 0.11);
}

.saas-overview-page .filters .analytics-date-trigger:focus-visible {
  outline: 3px solid rgba(22, 140, 242, 0.16);
  outline-offset: 2px;
}

.saas-overview-page .analytics-date-trigger svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.saas-overview-page .analytics-date-trigger .analytics-date-chevron {
  width: 15px;
  height: 15px;
  margin-left: 2px;
  transition: transform 180ms ease;
}

.saas-overview-page .analytics-date-picker.is-open .analytics-date-chevron {
  transform: rotate(180deg);
}

.analytics-date-popover {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  right: 0;
  width: min(570px, calc(100vw - 350px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background-color: rgba(244, 250, 254, 0.84);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(227, 241, 250, 0.46));
  padding: 10px;
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 1px rgba(190, 211, 226, 0.26),
    0 20px 46px rgba(40, 65, 83, 0.16);
}

.analytics-date-popover[hidden],
.analytics-date-popover [data-date-fields][hidden] {
  display: none !important;
}

.analytics-date-modes {
  display: flex;
  gap: 7px;
  min-width: max-content;
  overflow-x: auto;
}

.saas-overview-page .analytics-date-popover .analytics-date-modes button {
  width: auto;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 15px;
  color: #4e5b67;
  font-size: 13px;
  font-weight: 500;
}

.saas-overview-page .analytics-date-popover .analytics-date-modes button:hover,
.saas-overview-page .analytics-date-popover .analytics-date-modes button:focus-visible {
  background: rgba(225, 238, 247, 0.74);
  color: #111416;
}

.saas-overview-page .analytics-date-popover .analytics-date-modes button.active {
  background: #1c1d1e;
  color: #fff;
  box-shadow: 0 5px 11px rgba(28, 29, 30, 0.16);
}

.analytics-date-fields {
  min-height: 86px;
  margin-top: 10px;
  border: 1px solid rgba(205, 220, 231, 0.72);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.48);
  padding: 13px 14px;
}

.analytics-date-fields label,
.analytics-date-range-fields {
  display: grid;
  gap: 9px;
}

.analytics-date-range-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.analytics-date-fields label > span {
  color: #66737e;
  font-size: 10px;
  font-weight: 500;
}

.analytics-date-fields input {
  width: 100%;
  height: 40px;
  border: 1px solid rgba(194, 211, 223, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
  padding: 0 11px;
  color: #22282d;
  font: 500 12px "Satoshi Variable", Arial, Helvetica, sans-serif;
  color-scheme: light;
}

.analytics-date-fields input:focus {
  border-color: rgba(22, 140, 242, 0.55);
  outline: 3px solid rgba(22, 140, 242, 0.12);
}

.analytics-date-preset {
  min-height: 58px;
  margin: 0;
  color: #56636e;
  font-size: 13px;
  line-height: 58px;
}

.analytics-date-error {
  margin: 9px 0 0;
  color: #b03939;
  font-size: 10px;
}

.analytics-date-popover footer {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  padding-top: 10px;
}

.saas-overview-page .analytics-date-popover footer button {
  width: auto;
  height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 17px;
  font-size: 12px;
  font-weight: 500;
}

.saas-overview-page .analytics-date-popover .analytics-date-cancel {
  background: transparent;
  color: #56636e;
}

.saas-overview-page .analytics-date-popover .analytics-date-apply {
  background: #1c1d1e;
  color: #fff;
  box-shadow: 0 5px 11px rgba(28, 29, 30, 0.16);
}

.analytics-filter-bar > div {
  display: flex;
  gap: 7px;
  min-width: max-content;
}

.analytics-filter-bar button {
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 16px;
  color: #4e5b67;
  font-size: 13px;
  font-weight: 500;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.analytics-filter-bar button:hover,
.analytics-filter-bar button:focus-visible {
  background: rgba(225, 238, 247, 0.74);
  color: #111416;
}

.analytics-filter-bar button:focus-visible {
  outline: 3px solid rgba(22, 140, 242, 0.16);
  outline-offset: 1px;
}

.analytics-filter-bar button.active {
  background: #1c1d1e;
  color: #fff;
  box-shadow: 0 5px 11px rgba(28, 29, 30, 0.16);
}

.analytics-raw-data {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 19px;
  background-color: rgba(255, 255, 255, 0.46);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(232, 243, 250, 0.24));
  padding: 9px;
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 0 0 1px rgba(198, 216, 229, 0.24),
    0 12px 28px rgba(45, 70, 88, 0.1);
}

.analytics-raw-data[hidden],
.analytics-insight-group[hidden],
.analytics-filterable[hidden] {
  display: none !important;
}

.analytics-raw-data > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  border: 1px solid rgba(218, 226, 232, 0.88);
  border-radius: 14px 14px 0 0;
  background: rgba(242, 244, 245, 0.66);
  padding: 12px 16px;
}

.analytics-raw-data > header p {
  margin-bottom: 4px;
  color: #92999f;
  font-size: 9px;
}

.analytics-raw-data > header h2 {
  font-size: 21px;
  font-weight: 520;
}

.analytics-raw-data > header > span {
  border: 1px solid #d5dde3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 6px 10px;
  color: #68737c;
  font-size: 9px;
  white-space: nowrap;
}

.analytics-raw-table-scroll {
  max-height: calc(100dvh - 260px);
  overflow: auto;
  border: 1px solid rgba(218, 226, 232, 0.88);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: rgba(255, 255, 255, 0.4);
}

.analytics-raw-data table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  font-size: 11px;
  white-space: nowrap;
}

.analytics-raw-data th,
.analytics-raw-data td {
  height: 46px;
  border-bottom: 1px solid rgba(216, 226, 233, 0.86);
  padding: 0 14px;
  text-align: left;
}

.analytics-raw-data th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: rgba(247, 251, 253, 0.96);
  color: #64717c;
  font-weight: 520;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.analytics-raw-data td {
  color: #252b30;
}

.analytics-detail-group {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.analytics-detail-table {
  min-height: 0 !important;
  overflow: hidden;
  padding: 9px;
}

.analytics-detail-table > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border: 1px solid rgba(218, 226, 232, 0.88);
  border-radius: 14px 14px 0 0;
  background: rgba(242, 244, 245, 0.66);
  padding: 12px 16px;
}

.analytics-detail-table > header p {
  margin-bottom: 4px;
  color: #92999f;
  font-size: 9px;
}

.analytics-detail-table > header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 520;
}

.analytics-detail-table > header > span {
  margin-right: 34px;
  border: 1px solid #d5dde3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 6px 10px;
  color: #68737c;
  font-size: 9px;
  white-space: nowrap;
}

.analytics-detail-table > div {
  overflow-x: auto;
  border: 1px solid rgba(218, 226, 232, 0.88);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: rgba(255, 255, 255, 0.4);
}

.analytics-detail-table table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}

.analytics-detail-table th,
.analytics-detail-table td {
  height: 43px;
  border-bottom: 1px solid rgba(216, 226, 233, 0.86);
  padding: 0 16px;
  text-align: left;
}

.analytics-detail-table tr:last-child td {
  border-bottom: 0;
}

.analytics-detail-table th {
  background: rgba(247, 251, 253, 0.9);
  color: #64717c;
  font-size: 10px;
  font-weight: 520;
}

.analytics-detail-table td {
  color: #252b30;
}

.analytics-detail-page .analytics-filterable {
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
}

.analytics-detail-page .analytics-filterable.analytics-card-resized {
  justify-self: start;
}

.analytics-resize-handle {
  position: absolute;
  z-index: 22;
  right: 9px;
  bottom: 9px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(177, 194, 207, 0.88);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  padding: 0;
  color: #62717d;
  cursor: nwse-resize;
  opacity: 0.76;
  touch-action: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 3px 9px rgba(37, 55, 68, 0.12);
  transition:
    opacity 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.analytics-resize-handle:hover,
.analytics-resize-handle:focus-visible,
.analytics-card-resizing > .analytics-resize-handle {
  border-color: #2789ed;
  color: #2789ed;
  opacity: 1;
  transform: scale(1.06);
}

.analytics-resize-handle:focus-visible {
  outline: 3px solid rgba(39, 137, 237, 0.16);
  outline-offset: 2px;
}

.analytics-resize-handle svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
  stroke-width: 1.9;
}

.analytics-card-resizing {
  user-select: none;
}

.analytics-detail-table.analytics-card-resized > div {
  max-height: calc(100% - 72px);
  overflow: auto;
}

.analytics-detail-page .revenue-dark-footer {
  padding-right: 38px;
}

.analytics-detail-page .category-dark-pane {
  padding-bottom: 42px;
}

.saas-overview-page.analytics-detail-page .category-pie-wrap {
  height: calc(var(--category-pie-size, 160px) + 26px);
  min-height: 154px;
  transition: height 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.saas-overview-page.analytics-detail-page .category-pie-wrap::before {
  width: calc(var(--category-pie-size, 160px) + 18px);
  height: calc(var(--category-pie-size, 160px) + 18px);
  transition:
    width 140ms cubic-bezier(0.22, 1, 0.36, 1),
    height 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

.saas-overview-page.analytics-detail-page .category-pie {
  width: var(--category-pie-size, 160px);
  height: var(--category-pie-size, 160px);
  transition:
    width 140ms cubic-bezier(0.22, 1, 0.36, 1),
    height 140ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 650ms ease 350ms,
    transform 1450ms cubic-bezier(0.16, 1, 0.3, 1) 350ms;
}

.saas-overview-page.analytics-detail-page .category-pie::before {
  inset: 22.5%;
}

.saas-overview-page.analytics-detail-page .category-pie strong {
  font-size: var(--category-pie-value-size, 18px);
}

.saas-overview-page.analytics-detail-page .category-pie span {
  font-size: var(--category-pie-caption-size, 7px);
}

.saas-overview-page.analytics-detail-page .pie-label {
  width: var(--category-pie-label-width, 82px);
}

.saas-overview-page.analytics-detail-page .pie-label b {
  font-size: var(--category-pie-label-size, 6px);
}

.saas-overview-page.analytics-detail-page .pie-label strong {
  font-size: var(--category-pie-percent-size, 8px);
}

.saas-overview-page.analytics-detail-page .pie-label-one {
  top: calc(50% - var(--category-pie-radius, 80px) + 14px);
  right: auto;
  left: calc(50% + var(--category-pie-radius, 80px) + 17px);
}

.saas-overview-page.analytics-detail-page .pie-label-two {
  right: auto;
  bottom: calc(50% - var(--category-pie-radius, 80px) + 14px);
  left: calc(50% + var(--category-pie-radius, 80px) + 17px);
}

.saas-overview-page.analytics-detail-page .pie-label-three {
  right: calc(50% + var(--category-pie-radius, 80px) + 17px);
  bottom: calc(50% - var(--category-pie-radius, 80px) + 18px);
  left: auto;
}

.analytics-detail-page .orders-data-pane tbody tr:last-child td:last-child,
.analytics-detail-page .analytics-detail-table tbody tr:last-child td:last-child {
  padding-right: 44px;
}

.analytics-detail-page .products-data-pane .product-row:last-child {
  padding-right: 34px;
}

.analytics-detail-page .card-user-collapsed > .analytics-resize-handle {
  display: none !important;
}

.analytics-detail-page.has-analytics-filter .kpi-grid {
  grid-template-columns: minmax(260px, 380px);
}

.analytics-detail-page.has-analytics-filter .panel-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto;
}

.analytics-detail-page.has-analytics-filter .panel-grid > .card {
  min-height: 355px;
}

@media (max-width: 1200px) {
  .analytics-date-popover {
    right: auto;
    left: 0;
  }
}

@media (max-width: 760px) {
  .analytics-filter-bar {
    padding-inline: 9px;
  }

  .saas-overview-page .analytics-date-trigger {
    min-width: 220px;
  }

  .analytics-date-popover {
    width: min(410px, calc(100vw - 350px));
  }

  .analytics-date-range-fields {
    grid-template-columns: 1fr;
  }

  .analytics-detail-page.has-analytics-filter .kpi-grid {
    grid-template-columns: 1fr;
  }
}

.saas-overview-page .title-row {
  margin-bottom: 24px;
}

.saas-overview-page h1 {
  margin-bottom: 9px;
  font-size: 34px;
  font-weight: 520;
}

.saas-overview-page .title-row p {
  color: #586675;
  font-size: 15px;
}

.saas-overview-page .filters {
  padding-top: 4px;
}

.saas-overview-page .filters button {
  border-color: #c7d6e1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.saas-overview-page .kpi-grid {
  gap: 12px;
  margin-bottom: 14px;
}

.saas-overview-page .kpi-card,
.saas-overview-page .card {
  border: 1px solid rgba(202, 220, 233, 0.88);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 16px rgba(57, 84, 104, 0.06);
}

.saas-overview-page .kpi-card {
  height: 98px;
  padding: 15px 18px;
}

.saas-overview-page .metric-icon {
  width: 52px;
  height: 52px;
  background: #202833;
}

.saas-overview-page .kpi-card h2 {
  font-size: 14px;
  font-weight: 520;
}

.saas-overview-page .kpi-card strong {
  font-size: 28px;
  font-weight: 540;
}

.saas-overview-page .kpi-card span {
  font-size: 14px;
  font-weight: 480;
}

.saas-overview-page .panel-grid {
  grid-template-columns: minmax(620px, 1.65fr) minmax(400px, 1fr);
  grid-template-rows: 355px 278px;
  gap: 12px;
}

.saas-overview-page .card h2 {
  font-size: 22px;
  font-weight: 520;
}

.saas-overview-page .card-top p {
  color: #657380;
  font-size: 13px;
}

.saas-overview-page .card-top button {
  height: 34px;
  background: #202833;
  font-size: 13px;
  font-weight: 520;
}

.saas-overview-page .revenue-card {
  padding: 18px 20px 12px;
}

.saas-overview-page .revenue-chart {
  height: 278px;
  margin-top: -2px;
}

.saas-overview-page .grid-lines path {
  stroke: #d8e2e9;
  stroke-dasharray: 2 7;
  stroke-width: 1;
}

.saas-overview-page .chart-labels text {
  fill: #8a97a2;
  font-size: 12px;
  font-weight: 430;
}

.saas-overview-page .revenue-bars rect {
  fill: #dce2e7;
  opacity: 0.72;
  stroke: none;
}

.saas-overview-page .revenue-bars rect.active {
  fill: url(#active-revenue-bar);
  opacity: 1;
  filter: drop-shadow(0 4px 6px rgba(22, 136, 245, 0.25));
}

.saas-overview-page .solid-line {
  fill: none;
  stroke: #2789ed;
  stroke-width: 3.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.saas-overview-page .chart-dots circle {
  fill: #fff;
  stroke: #2789ed;
  stroke-width: 2;
}

.saas-overview-page .revenue-line-tip {
  fill: #fff;
  stroke: #2789ed;
  stroke-width: 3;
}

.saas-overview-page .category-card {
  padding: 20px 22px;
}

.saas-overview-page .category-content {
  grid-template-columns: minmax(130px, 0.8fr) minmax(150px, 1fr);
  gap: 18px;
  max-width: none;
  margin: 30px 0 0;
}

.saas-overview-page .donut {
  width: min(175px, 100%);
  height: auto;
  aspect-ratio: 1;
  background:
    radial-gradient(circle, #fff 0 33%, transparent 34%),
    conic-gradient(#2789ed 0 48%, #8ebce9 48% 80%, #d6e1e9 80% 100%);
}

.saas-overview-page .legend {
  gap: 25px;
}

.saas-overview-page .legend p {
  grid-template-columns: 10px 1fr auto;
  gap: 9px;
  font-size: 13px;
  font-weight: 480;
}

.saas-overview-page .legend i {
  width: 10px;
  height: 10px;
}

.saas-overview-page .legend .black { background: #2789ed; }
.saas-overview-page .legend .gray { background: #8ebce9; }
.saas-overview-page .legend .light { background: #d6e1e9; }
.saas-overview-page .legend strong { font-size: 15px; font-weight: 520; }

.saas-overview-page .orders-card,
.saas-overview-page .products-card {
  padding: 18px 22px;
}

.saas-overview-page table {
  margin-top: 2px;
  font-size: 14px;
}

.saas-overview-page th,
.saas-overview-page td {
  height: 50px;
  border-color: #dae4eb;
}

.saas-overview-page th {
  color: #6d7984;
  font-weight: 480;
}

.saas-overview-page .status {
  border-radius: 12px;
  background: #e7f3fc;
  padding: 6px 11px;
  color: #277dcf;
}

.saas-overview-page .product-row {
  grid-template-columns: 44px minmax(105px, 1fr) minmax(70px, 0.8fr) 36px;
  min-height: 67px;
}

.saas-overview-page .product-row h3 {
  font-size: 14px;
  font-weight: 520;
}

.saas-overview-page .product-row p,
.saas-overview-page .product-row strong {
  font-size: 13px;
}

.saas-overview-page .bar {
  height: 8px;
  background: #d7e1e8;
}

.saas-overview-page .bar i {
  background: #2789ed;
}

.is-animating .saas-overview-page .revenue-bars rect,
.saas-overview-page.is-animating .revenue-bars rect {
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: center bottom;
  transition: transform 1350ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(260ms + var(--animation-index, 0) * 55ms);
}

.is-animating.is-visible .saas-overview-page .revenue-bars rect,
.saas-overview-page.is-animating.is-visible .revenue-bars rect {
  transform: scaleY(1);
}

@media (max-width: 1280px) {
  .saas-overview-page .panel-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
  }

  .saas-overview-page .revenue-card,
  .saas-overview-page .category-card {
    min-height: 355px;
  }
}

.saas-overview-page .category-card {
  padding: 9px;
  border-color: rgba(255, 255, 255, 0.95);
  background: #fff;
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.72),
    0 10px 24px rgba(38, 54, 66, 0.11);
}

.saas-overview-page .category-shell {
  display: grid;
  grid-template-columns: minmax(86px, 170px) minmax(270px, 1fr);
  gap: 8px;
  height: 100%;
}

.saas-overview-page .category-light-pane,
.saas-overview-page .category-dark-pane {
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
}

.saas-overview-page .category-light-pane {
  display: flex;
  flex-direction: column;
  border: 1px solid #dde0e2;
  background: #f2f2f2;
  padding: 20px 14px 15px;
}

.saas-overview-page .category-eyebrow {
  margin-bottom: 2px;
  color: #9a9da0;
  font-size: 11px;
  font-weight: 450;
}

.saas-overview-page .category-light-pane h2 {
  margin-bottom: 13px;
  font-size: 20px;
  font-weight: 520;
  line-height: 1.02;
}

.saas-overview-page .category-summary {
  color: #697078;
  font-size: 10px;
  line-height: 1.35;
}

.saas-overview-page .category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  margin-bottom: 12px;
}

.saas-overview-page .category-chips span {
  border: 1px solid #d8dadd;
  border-radius: 12px;
  background: #fff;
  padding: 4px 7px;
  color: #33383d;
  font-size: 8px;
  white-space: nowrap;
}

.saas-overview-page .category-report {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  min-height: 30px;
  border: 0;
  border-radius: 16px;
  background: #1c1d1e;
  padding: 0 12px;
  color: #fff;
  font-size: 9px;
}

.saas-overview-page .category-report i {
  width: 10px;
  height: 10px;
  border: 1px solid #2b8ff3;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #1c1d1e;
  background: #2b8ff3;
}

.saas-overview-page .category-dark-pane {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid #dde0e2;
  background: #fff;
  padding: 20px 13px 14px;
  color: #17191b;
  box-shadow: inset 0 0 34px rgba(20, 28, 34, 0.018);
}

.saas-overview-page .category-dark-copy h3 {
  margin: 0 0 8px;
  color: #17191b;
  font-size: 17px;
  font-weight: 450;
  line-height: 1.08;
}

.saas-overview-page .category-dark-copy p {
  max-width: 180px;
  color: #60676d;
  font-size: 9px;
  line-height: 1.35;
}

.saas-overview-page .category-rings {
  position: relative;
  align-self: center;
  height: 126px;
  overflow: hidden;
  border: 1px solid #dfe3e6;
}

.saas-overview-page .category-rings i {
  position: absolute;
  top: 5px;
  width: 112px;
  height: 112px;
  border: 1px solid #cdd2d6;
  border-radius: 50%;
}

.saas-overview-page .category-rings i:nth-child(1) {
  left: -7px;
  border-color: #75bafa;
  border-style: dotted;
}

.saas-overview-page .category-rings i:nth-child(2) { left: 45px; }
.saas-overview-page .category-rings i:nth-child(3) { left: 95px; }
.saas-overview-page .category-rings i:nth-child(4) { left: 145px; }

.saas-overview-page .category-rings > span {
  position: absolute;
  top: 50%;
  left: 17px;
  transform: translateY(-50%);
  border: 1px solid #bfdcf5;
  border-radius: 11px;
  background: #f7faf3;
  padding: 5px 9px;
  color: #2789ed;
  font-size: 8px;
}

.saas-overview-page .category-dark-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 10px;
}

.saas-overview-page .category-dark-legend p {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  min-width: 0;
  border: 1px solid #d9dde0;
  border-radius: 10px;
  padding: 5px 3px;
  color: #626a70;
  text-align: center;
}

.saas-overview-page .category-dark-legend p > i {
  display: none;
}

.saas-overview-page .category-dark-legend span {
  overflow: hidden;
  font-size: 7px;
  text-overflow: ellipsis;
}

.saas-overview-page .category-dark-legend strong {
  color: #17191b;
  font-size: 12px;
  font-weight: 480;
}

.saas-overview-page.is-animating .category-rings {
  opacity: 0;
  transform: scale(0.72);
  transition:
    opacity 650ms ease 350ms,
    transform 1350ms cubic-bezier(0.16, 1, 0.3, 1) 350ms;
}

.saas-overview-page.is-animating.is-visible .category-rings {
  opacity: 1;
  transform: scale(1);
}

.saas-overview-page .category-pie-wrap {
  position: relative;
  align-self: center;
  display: grid;
  place-items: center;
  width: 100%;
  height: 170px;
}

.saas-overview-page .category-pie-wrap::before {
  content: "";
  position: absolute;
  width: 128px;
  height: 128px;
  border: 1px solid #d9dfe4;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 7px 18px rgba(43, 83, 112, 0.08);
}

.saas-overview-page .category-pie {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.saas-overview-page .category-pie::before {
  display: none;
}

.saas-overview-page .category-pie-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.saas-overview-page .category-pie-track,
.saas-overview-page .category-pie-segment {
  fill: none;
  stroke-width: 15;
}

.saas-overview-page .category-pie-track {
  stroke: rgba(225, 235, 242, 0.72);
}

.saas-overview-page .category-pie-segment {
  stroke-linecap: round;
  transition:
    stroke-dasharray 700ms cubic-bezier(0.16, 1, 0.3, 1),
    stroke-dashoffset 700ms cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 3px 5px rgba(34, 92, 137, 0.1));
}

.saas-overview-page .category-pie-segment-one { stroke: #25b9ff; }
.saas-overview-page .category-pie-segment-two { stroke: #168cf2; }
.saas-overview-page .category-pie-segment-three { stroke: #596cff; }

.saas-overview-page .pie-label {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 5px;
  row-gap: 2px;
  width: var(--category-pie-label-width, 60px);
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: #22272b;
  font-size: 7px;
  text-align: left;
  box-shadow: none;
}

.saas-overview-page .pie-label::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  width: 8px;
  border-top: 2px dotted #b9cbd7;
}

.saas-overview-page .pie-label > i {
  grid-row: 1 / 3;
  width: 6px;
  height: 6px;
  margin-top: 2px;
  border-radius: 50%;
  background: #25b9ff;
}

.saas-overview-page .pie-label-two > i { background: #168cf2; }
.saas-overview-page .pie-label-three > i { background: #596cff; }

.saas-overview-page .pie-label b,
.saas-overview-page .pie-label strong {
  grid-column: 2;
  overflow: hidden;
  font-size: var(--category-pie-label-size, 9px);
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saas-overview-page .pie-label strong {
  color: #76828b;
  font-size: var(--category-pie-percent-size, 10px);
  font-weight: 450;
}

.saas-overview-page .pie-label-one {
  top: calc(50% - var(--category-pie-radius, 55px) + 10px);
  right: auto;
  left: calc(50% + var(--category-pie-radius, 55px) + 17px);
}

.saas-overview-page .pie-label-two {
  right: auto;
  bottom: calc(50% - var(--category-pie-radius, 55px) + 10px);
  left: calc(50% + var(--category-pie-radius, 55px) + 17px);
}

.saas-overview-page .pie-label-three {
  right: calc(50% + var(--category-pie-radius, 55px) + 17px);
  bottom: calc(50% - var(--category-pie-radius, 55px) + 14px);
  left: auto;
}

.saas-overview-page .pie-label-three::before {
  right: auto;
  left: 100%;
}

.saas-overview-page .category-dark-legend {
  display: none;
}

.saas-overview-page.is-animating .category-pie {
  opacity: 0;
  transform: rotate(-55deg) scale(0.45);
  transition:
    opacity 650ms ease 350ms,
    transform 1450ms cubic-bezier(0.16, 1, 0.3, 1) 350ms;
}

.saas-overview-page.is-animating.is-visible .category-pie {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.saas-overview-page .revenue-card {
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: #fff;
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.72),
    0 10px 24px rgba(38, 54, 66, 0.11);
}

.saas-overview-page .revenue-shell {
  display: grid;
  grid-template-columns: minmax(118px, 230px) minmax(390px, 1fr);
  gap: 8px;
  height: 100%;
}

.saas-overview-page .revenue-light-pane,
.saas-overview-page .revenue-dark-pane {
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
}

.saas-overview-page .revenue-light-pane {
  display: flex;
  flex-direction: column;
  border: 1px solid #dde0e2;
  background: #f2f2f2;
  padding: 20px 17px 15px;
}

.saas-overview-page .revenue-eyebrow {
  margin-bottom: 2px;
  color: #9a9da0;
  font-size: 11px;
  font-weight: 450;
}

.saas-overview-page .revenue-light-pane h2 {
  margin-bottom: 13px;
  font-size: 22px;
  font-weight: 520;
  line-height: 1.02;
}

.saas-overview-page .revenue-summary {
  max-width: 200px;
  color: #697078;
  font-size: 10px;
  line-height: 1.4;
}

.saas-overview-page .revenue-highlight {
  margin-top: 18px;
}

.saas-overview-page .revenue-highlight strong,
.saas-overview-page .revenue-highlight span {
  display: block;
}

.saas-overview-page .revenue-highlight strong {
  margin-bottom: 4px;
  font-size: 28px;
  font-weight: 470;
}

.saas-overview-page .revenue-highlight span {
  color: #66717a;
  font-size: 9px;
}

.saas-overview-page .revenue-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
  margin-bottom: 12px;
}

.saas-overview-page .revenue-chips span {
  border: 1px solid #d8dadd;
  border-radius: 12px;
  background: #fff;
  padding: 4px 8px;
  color: #33383d;
  font-size: 8px;
  white-space: nowrap;
}

.saas-overview-page .revenue-report {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  min-height: 30px;
  border: 0;
  border-radius: 16px;
  background: #1c1d1e;
  padding: 0 12px;
  color: #fff;
  font-size: 9px;
}

.saas-overview-page .revenue-report i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2b8ff3;
  box-shadow: inset 0 0 0 3px #1c1d1e, 0 0 0 1px #2b8ff3;
}

.saas-overview-page .revenue-dark-pane {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid #dde0e2;
  background: #fff;
  padding: 17px 14px 12px;
  color: #17191b;
  box-shadow: inset 0 0 34px rgba(20, 28, 34, 0.018);
}

.saas-overview-page .revenue-dark-copy h3 {
  margin: 0 0 5px;
  color: #17191b;
  font-size: 18px;
  font-weight: 450;
}

.saas-overview-page .revenue-dark-copy p {
  color: #60676d;
  font-size: 9px;
}

.saas-overview-page .revenue-timeline {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
  border: 0;
  background: transparent;
  padding: 0;
}

.saas-overview-page .revenue-timeline button {
  min-width: 49px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 7px;
  color: #68737c;
  font-size: 8px;
  white-space: nowrap;
}

.saas-overview-page .revenue-timeline button.active {
  background: #1c1d1e;
  color: #fff;
  box-shadow: 0 3px 8px rgba(28, 29, 30, 0.14);
}

.saas-overview-page .revenue-timeline button:focus-visible {
  outline: 2px solid rgba(22, 140, 242, 0.28);
  outline-offset: 1px;
}

.saas-overview-page .revenue-chart-stage {
  position: relative;
  display: grid;
  align-items: stretch;
  min-height: 0;
}

.saas-overview-page .revenue-dark-pane .revenue-chart {
  width: 100%;
  height: 100%;
  min-height: 178px;
  margin: 0;
  overflow: visible;
  cursor: crosshair;
}

.saas-overview-page .revenue-dark-pane .grid-lines path {
  stroke: #dfe5e9;
}

.saas-overview-page .revenue-dark-pane .chart-labels text {
  fill: #737b82;
}

.saas-overview-page .revenue-dark-pane .revenue-bars rect {
  fill: #dce2e7;
  opacity: 0.8;
}

.saas-overview-page .revenue-dark-pane .revenue-bars rect.active {
  fill: url(#active-revenue-bar);
  opacity: 1;
}

.saas-overview-page .revenue-dark-pane .revenue-glow-line {
  fill: none;
  stroke: url(#revenue-line-gradient);
  stroke-width: 18;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.42;
  pointer-events: none;
  filter: blur(10px);
}

.saas-overview-page .revenue-dark-pane .solid-line {
  stroke: url(#revenue-line-gradient);
  stroke-width: 6.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(41, 148, 255, 0.78));
}

.saas-overview-page .revenue-average-line {
  stroke: rgba(123, 151, 171, 0.25);
  stroke-width: 1.25;
  stroke-dasharray: 6 9;
  pointer-events: none;
}

.saas-overview-page .revenue-hover-point {
  fill: #168cf2;
  stroke: none;
  pointer-events: none;
  filter:
    drop-shadow(0 0 4px rgba(53, 179, 255, 0.85))
    drop-shadow(0 0 11px rgba(22, 140, 242, 0.5));
}

.saas-overview-page .revenue-hover-point[hidden] {
  display: none;
}

.saas-overview-page .revenue-hover-tooltip {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 2px;
  min-width: 70px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(24, 28, 31, 0.94);
  padding: 6px 8px;
  color: #fff;
  text-align: center;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  box-shadow: 0 7px 18px rgba(24, 36, 45, 0.18);
}

.saas-overview-page .revenue-hover-tooltip strong,
.saas-overview-page .revenue-hover-tooltip span {
  display: block;
}

.saas-overview-page .revenue-hover-tooltip strong {
  font-size: 10px;
  font-weight: 520;
  white-space: nowrap;
}

.saas-overview-page .revenue-hover-tooltip span {
  color: #a9d4fb;
  font-size: 8px;
}

.saas-overview-page .revenue-hover-tooltip[hidden] {
  display: none;
}

.saas-overview-page .revenue-dark-pane .chart-dots circle,
.saas-overview-page .revenue-dark-pane .revenue-line-tip {
  fill: #fff;
  stroke: #58aaf6;
}

.saas-overview-page .revenue-dark-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.saas-overview-page .revenue-dark-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 13px;
  background: #eaf5ff;
  padding: 6px 9px;
  color: #2789ed;
  font-size: 8px;
  white-space: nowrap;
}

.saas-overview-page .revenue-dark-footer > span i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #2789ed;
}

.saas-overview-page .revenue-dark-footer button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  border: 0;
  border-radius: 15px;
  background: #1c1d1e;
  padding: 0 11px;
  color: #fff;
  font-size: 8px;
  white-space: nowrap;
}

.saas-overview-page .revenue-dark-footer b {
  font-size: 12px;
  font-weight: 400;
}

@media (max-width: 900px) {
  .saas-overview-page .revenue-shell {
    grid-template-columns: 1fr;
  }

  .saas-overview-page .revenue-card {
    min-height: 660px;
  }
}

.saas-overview-page .upload-data-button {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #35b3ff 0%, #168cf2 52%, #086fd3 100%);
  padding: 0;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.46),
    0 10px 24px rgba(22, 140, 242, 0.3);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.saas-overview-page .upload-data-button:hover,
.saas-overview-page .upload-data-button:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.52),
    0 14px 30px rgba(22, 140, 242, 0.36);
}

.saas-overview-page .upload-data-button:focus-visible {
  outline: 3px solid rgba(22, 140, 242, 0.18);
  outline-offset: 3px;
}

.saas-overview-page .upload-data-button svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.9;
}

.uploaded-data-card {
  margin-top: 12px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: #fff;
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.72),
    0 10px 24px rgba(38, 54, 66, 0.08);
}

.uploaded-data-card[hidden] {
  display: none !important;
}

.uploaded-data-shell {
  display: grid;
  grid-template-columns: minmax(112px, 240px) minmax(600px, 1fr);
  gap: 8px;
  min-height: 310px;
}

.uploaded-data-summary,
.uploaded-table-pane {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dde0e2;
  border-radius: 14px;
}

.uploaded-data-summary {
  display: flex;
  flex-direction: column;
  background: #f2f2f2;
  padding: 19px 16px 14px;
}

.uploaded-data-summary h2 {
  margin-bottom: 11px;
  font-size: 21px;
  line-height: 1.02;
}

.uploaded-data-description {
  color: #697078;
  font-size: 10px;
  line-height: 1.35;
}

.uploaded-data-summary > div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}

.uploaded-data-summary > div span {
  border: 1px solid #d3d9de;
  border-radius: 12px;
  background: #fff;
  padding: 5px 8px;
  color: #606970;
  font-size: 8px;
}

.replace-data-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  min-height: 31px;
  margin-top: auto;
  border: 0;
  border-radius: 16px;
  background: #1c1d1e;
  padding: 0 12px;
  color: #fff;
  font-size: 8px;
}

.replace-data-button i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2b8ff3;
  box-shadow: inset 0 0 0 3px #1c1d1e, 0 0 0 1px #2b8ff3;
}

.uploaded-table-pane {
  background: #fff;
  padding: 8px 13px;
}

.uploaded-table-scroll {
  width: 100%;
  max-height: 360px;
  overflow: auto;
}

.uploaded-table-pane table {
  min-width: 100%;
  margin: 0;
  font-size: 12px;
  white-space: nowrap;
}

.uploaded-table-pane th,
.uploaded-table-pane td {
  height: 44px;
  padding: 0 18px 0 4px;
  border-color: #e0e7ec;
}

.uploaded-table-pane th {
  position: sticky;
  z-index: 2;
  top: 0;
  background: #fff;
  color: #63717d;
  font-weight: 520;
}

.uploaded-pie-view[hidden],
.uploaded-table-scroll[hidden] {
  display: none !important;
}

.uploaded-pie-view {
  display: grid;
  grid-template-columns: minmax(210px, 0.8fr) minmax(280px, 1.2fr);
  align-items: center;
  gap: 34px;
  min-height: 292px;
  padding: 24px 30px;
}

.uploaded-pie-chart {
  position: relative;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  justify-self: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 0%, rgba(71, 190, 255, 0.86) 0, rgba(22, 140, 242, 0.24) 48%, rgba(8, 111, 211, 0.06) 76%, transparent 100%),
    conic-gradient(from -90deg, #0b7ee9 0 48%, #72afea 48% 80%, #d6e1e9 80% 100%);
  box-shadow: 0 10px 24px rgba(31, 74, 112, 0.14);
}

.uploaded-pie-chart::before {
  content: "";
  position: absolute;
  inset: 42px;
  border: 1px solid #dce2e7;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.28);
}

.uploaded-pie-chart > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  text-align: center;
}

.uploaded-pie-chart strong {
  font-size: 24px;
  font-weight: 520;
}

.uploaded-pie-chart span {
  color: #7a838a;
  font-size: 10px;
}

.uploaded-pie-legend {
  display: grid;
  align-content: center;
  max-height: 250px;
  overflow: auto;
}

.uploaded-pie-legend article {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  border-bottom: 1px solid #e1e7eb;
}

.uploaded-pie-legend article:last-child {
  border-bottom: 0;
}

.uploaded-pie-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.uploaded-pie-legend div {
  min-width: 0;
}

.uploaded-pie-legend b,
.uploaded-pie-legend small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uploaded-pie-legend b {
  font-size: 12px;
  font-weight: 520;
}

.uploaded-pie-legend small {
  margin-top: 2px;
  color: #7a838a;
  font-size: 9px;
}

.uploaded-pie-legend strong {
  color: #2789ed;
  font-size: 12px;
  font-weight: 520;
}

.csv-display-dialog {
  width: min(570px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 1px solid #d7e2e9;
  border-radius: 18px;
  background: #fff;
  padding: 0;
  color: #14181c;
  box-shadow: 0 24px 70px rgba(28, 48, 63, 0.2);
}

.csv-display-dialog::backdrop {
  background: rgba(29, 43, 54, 0.28);
  backdrop-filter: blur(3px);
}

.csv-display-form {
  padding: 24px;
}

.csv-display-form > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.csv-display-form > header p {
  margin-bottom: 5px;
  color: #7f8991;
  font-size: 10px;
}

.csv-display-form > header h2 {
  font-size: 24px;
  font-weight: 520;
}

.csv-dialog-close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid #d7e0e6;
  border-radius: 50%;
  background: #fff;
  padding: 0;
  color: #59656f;
}

.csv-dialog-close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.csv-file-summary {
  margin: 18px 0;
  border-radius: 10px;
  background: #f2f2f2;
  padding: 10px 12px;
  color: #606b74;
  font-size: 11px;
}

.csv-headline-field {
  display: block;
  margin-bottom: 17px;
}

.csv-headline-field > span {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 520;
}

.csv-headline-field input {
  width: 100%;
  height: 39px;
  border: 1px solid #ced9e0;
  border-radius: 9px;
  background: #fff;
  padding: 0 11px;
  color: #20262b;
  font: inherit;
  font-size: 12px;
}

.csv-headline-field input:focus {
  border-color: #2789ed;
  outline: 3px solid rgba(39, 137, 237, 0.13);
  outline-offset: 1px;
}

.csv-display-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border: 0;
  padding: 0;
}

.csv-display-modes legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 520;
}

.csv-display-modes label {
  position: relative;
}

.csv-display-modes input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.csv-display-modes label > span {
  display: grid;
  gap: 4px;
  min-height: 65px;
  align-content: center;
  border: 1px solid #d8e1e7;
  border-radius: 10px;
  background: #fff;
  padding: 10px 13px;
}

.csv-display-modes label > span strong {
  font-size: 13px;
  font-weight: 520;
}

.csv-display-modes label > span small {
  color: #77828a;
  font-size: 10px;
}

.csv-display-modes input:checked + span {
  border-color: #2789ed;
  background: #eff7ff;
  box-shadow: inset 0 0 0 1px #2789ed;
}

.csv-display-modes input:focus-visible + span {
  outline: 3px solid rgba(39, 137, 237, 0.16);
  outline-offset: 2px;
}

.csv-display-modes input:disabled + span {
  cursor: not-allowed;
  opacity: 0.45;
}

.csv-pie-mapping {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
  border: 1px solid #dce4e9;
  border-radius: 12px;
  background: #f7f9fa;
  padding: 13px;
}

.csv-pie-mapping[hidden] {
  display: none !important;
}

.csv-pie-mapping label {
  min-width: 0;
}

.csv-pie-mapping label > span {
  display: block;
  margin-bottom: 6px;
  color: #5e6972;
  font-size: 9px;
}

.csv-pie-mapping select {
  width: 100%;
  height: 35px;
  border: 1px solid #ced9e0;
  border-radius: 8px;
  background: #fff;
  padding: 0 8px;
  color: #20262b;
  font: inherit;
  font-size: 11px;
}

.csv-mapping-error {
  grid-column: 1 / -1;
  color: #a43e3e;
  font-size: 10px;
}

.csv-display-form > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

.csv-display-form > footer button {
  min-height: 38px;
  border-radius: 10px;
  padding: 0 15px;
  font-size: 11px;
  font-weight: 520;
}

.csv-dialog-cancel {
  border: 1px solid #d2dce3;
  background: #fff;
  color: #4f5c66;
}

.csv-dialog-apply {
  border: 1px solid #168cf2;
  background: #168cf2;
  color: #fff;
}

.csv-dialog-apply:hover,
.csv-dialog-apply:focus-visible {
  background: #0878db;
}

.upload-status {
  position: fixed;
  z-index: 110;
  right: 24px;
  bottom: 94px;
  max-width: 320px;
  border: 1px solid #c9d9e5;
  border-radius: 16px;
  background: #fff;
  padding: 12px 15px;
  color: #33414c;
  font-size: 12px;
  box-shadow: 0 9px 26px rgba(35, 53, 67, 0.16);
}

.upload-status.is-error {
  border-color: #e0bcbc;
  color: #9b3434;
}

.upload-status[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .uploaded-data-shell {
    grid-template-columns: 1fr;
  }

  .uploaded-data-summary {
    min-height: 220px;
  }

  .uploaded-pie-view {
    grid-template-columns: 1fr;
  }

  .csv-pie-mapping {
    grid-template-columns: 1fr;
  }
}

.saas-overview-page .kpi-card {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: #fff;
  padding: 15px 18px;
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, 0.8),
    0 7px 18px rgba(38, 54, 66, 0.08);
}

.saas-overview-page .kpi-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6px;
  border: 1px solid #dde0e2;
  border-radius: 14px;
  background: #f2f2f2;
}

.saas-overview-page .kpi-card > * {
  position: relative;
  z-index: 1;
}

.saas-overview-page .kpi-card {
  grid-template-columns: minmax(88px, max-content) minmax(112px, 1fr);
  gap: 6px;
  padding: 6px;
}

.saas-overview-page .kpi-card::before {
  display: none;
}

.saas-overview-page .kpi-card > div {
  transform: none;
}

.saas-overview-page .kpi-description,
.saas-overview-page .kpi-value {
  min-width: 0;
  height: 84px;
  border: 1px solid #dde0e2;
  border-radius: 14px;
}

.saas-overview-page .kpi-description {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f2f2f2;
  padding: 5px 15px;
}

.saas-overview-page .kpi-description .metric-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  transform: none;
}

.saas-overview-page .kpi-description .metric-icon svg {
  width: 20px;
  height: 20px;
}

.saas-overview-page .kpi-description h2 {
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 520;
  line-height: 1.05;
  text-overflow: ellipsis;
}

.saas-overview-page .kpi-description small {
  display: block;
  overflow: hidden;
  color: #7a838a;
  font-size: 8px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saas-overview-page .kpi-value {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 8px 10px;
}

.saas-overview-page .kpi-value p {
  display: grid;
  justify-items: end;
  gap: 4px;
  width: 100%;
  text-align: right;
}

.saas-overview-page .kpi-value strong {
  overflow: visible;
  font-size: clamp(20px, 1.65vw, 26px);
  font-weight: 540;
  line-height: 1;
  text-overflow: clip;
  white-space: nowrap;
}

.saas-overview-page .kpi-card:first-child .kpi-value strong {
  font-size: 20px;
}

.saas-overview-page .kpi-card:first-child {
  grid-template-columns: minmax(88px, max-content) minmax(122px, 1fr);
}

.saas-overview-page .kpi-value .trend {
  gap: 1px;
  color: #2789ed;
  font-size: 10px;
}

.saas-overview-page .kpi-value .trend svg {
  width: 13px;
  height: 12px;
}

.saas-overview-page.is-animating .kpi-description .metric-icon {
  opacity: 0;
  transform: scale(0.55);
}

.saas-overview-page.is-animating.is-visible .kpi-description .metric-icon {
  opacity: 1;
  transform: scale(1);
}

.saas-overview-page .orders-card,
.saas-overview-page .products-card {
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: #fff;
  box-shadow:
    inset 0 0 0 6px rgba(255, 255, 255, 0.72),
    0 10px 24px rgba(38, 54, 66, 0.08);
}

.saas-overview-page .orders-shell,
.saas-overview-page .products-shell {
  display: grid;
  gap: 8px;
  height: 100%;
}

.saas-overview-page .orders-shell {
  grid-template-columns: minmax(112px, 210px) minmax(430px, 1fr);
}

.saas-overview-page .products-shell {
  grid-template-columns: minmax(92px, 180px) minmax(235px, 1fr);
}

.saas-overview-page .orders-summary-pane,
.saas-overview-page .products-summary-pane,
.saas-overview-page .orders-data-pane,
.saas-overview-page .products-data-pane {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dde0e2;
  border-radius: 14px;
}

.saas-overview-page .orders-summary-pane,
.saas-overview-page .products-summary-pane {
  display: flex;
  flex-direction: column;
  background: #f2f2f2;
  padding: 17px 14px 13px;
}

.saas-overview-page .data-eyebrow {
  margin-bottom: 3px;
  color: #9a9da0;
  font-size: 9px;
}

.saas-overview-page .orders-summary-pane h2,
.saas-overview-page .products-summary-pane h2 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.03;
}

.saas-overview-page .orders-summary-pane > p:not(.data-eyebrow),
.saas-overview-page .products-summary-pane > p:not(.data-eyebrow) {
  color: #697078;
  font-size: 9px;
  line-height: 1.35;
}

.saas-overview-page .data-count {
  width: max-content;
  margin-top: 15px;
  border: 1px solid #d3d9de;
  border-radius: 12px;
  background: #fff;
  padding: 5px 8px;
  color: #606970;
  font-size: 8px;
}

.saas-overview-page .orders-summary-pane button,
.saas-overview-page .products-summary-pane button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  min-height: 30px;
  margin-top: auto;
  border: 0;
  border-radius: 16px;
  background: #1c1d1e;
  padding: 0 11px;
  color: #fff;
  font-size: 8px;
}

.saas-overview-page .orders-summary-pane button i,
.saas-overview-page .products-summary-pane button i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2b8ff3;
  box-shadow: inset 0 0 0 3px #1c1d1e, 0 0 0 1px #2b8ff3;
}

.saas-overview-page .orders-data-pane,
.saas-overview-page .products-data-pane {
  background: #fff;
}

.saas-overview-page .orders-data-pane {
  padding: 8px 13px;
}

.saas-overview-page .orders-data-pane table {
  height: 100%;
  margin: 0;
  table-layout: fixed;
  font-size: 12px;
}

.saas-overview-page .orders-data-pane th,
.saas-overview-page .orders-data-pane td {
  height: 47px;
  padding-right: 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saas-overview-page .orders-data-pane th:nth-child(1) { width: 15%; }
.saas-overview-page .orders-data-pane th:nth-child(2) { width: 20%; }
.saas-overview-page .orders-data-pane th:nth-child(3) { width: 25%; }
.saas-overview-page .orders-data-pane th:nth-child(4) { width: 23%; }
.saas-overview-page .orders-data-pane th:nth-child(5) { width: 17%; text-align: right; }
.saas-overview-page .orders-data-pane td:last-child { text-align: right; }

.saas-overview-page .orders-data-pane .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  height: auto;
  max-width: 100%;
  border: 0;
  border-radius: 13px;
  background: #eaf5ff;
  overflow: hidden;
  padding: 6px 9px;
  color: #2789ed;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saas-overview-page .orders-data-pane .status::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 2px;
  background: #2789ed;
}

.saas-overview-page .products-data-pane {
  display: grid;
  align-content: center;
  padding: 6px 15px;
}

.saas-overview-page .products-data-pane .product-row {
  --product-bar-color: 39, 137, 237;
  grid-template-columns: 32px minmax(68px, 110px) minmax(50px, 1fr) 30px;
  grid-template-rows: 1fr;
  gap: 6px;
  min-height: 67px;
  padding: 0;
}

.saas-overview-page .products-data-pane .product-row:nth-child(2) {
  --product-bar-color: 73, 151, 224;
}

.saas-overview-page .products-data-pane .product-row:nth-child(3) {
  --product-bar-color: 103, 166, 216;
}

.saas-overview-page .products-data-pane .thumb {
  grid-row: 1;
  width: 32px;
  height: 48px;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}

.saas-overview-page .products-data-pane .product-row > div:nth-child(2) {
  align-self: center;
  min-width: 0;
}

.saas-overview-page .products-data-pane .product-row h3 {
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saas-overview-page .products-data-pane .product-row p,
.saas-overview-page .products-data-pane .product-row strong {
  align-self: center;
  min-width: 34px;
  font-size: 10px;
  color: #2789ed;
  font-weight: 540;
}

.saas-overview-page .products-data-pane .bar {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  width: 100%;
  height: 18px;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.saas-overview-page .products-data-pane .bar > i {
  display: none;
  background: none;
}

.saas-overview-page .products-data-pane .product-segments {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 2px;
}

.saas-overview-page .products-data-pane .product-segment {
  position: relative;
  inset: auto;
  width: 4px;
  min-width: 4px;
  max-width: 5px;
  height: 100%;
  flex: 1 1 4px;
  overflow: hidden;
  border: 0;
  border-radius: 9999px;
  background: #dce8f0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.saas-overview-page .products-data-pane .product-segment.is-filled {
  background: rgb(var(--product-bar-color));
  box-shadow: none;
}

.saas-overview-page.is-animating .products-data-pane .product-segment {
  opacity: 0;
  transform: scaleY(0.35);
  transform-origin: center bottom;
  transition:
    opacity 420ms ease,
    transform 780ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(420ms + var(--segment-index, 0) * 12ms);
}

.saas-overview-page.is-animating.is-visible .products-data-pane .product-segment {
  opacity: 1;
  transform: scaleY(1);
}

@media (max-width: 900px) {
  .saas-overview-page .orders-shell,
  .saas-overview-page .products-shell {
    grid-template-columns: 1fr;
  }

  .saas-overview-page .orders-card,
  .saas-overview-page .products-card {
    min-height: 500px;
  }
}

/* Frosted card material */
.saas-overview-page .kpi-card,
.saas-overview-page .card {
  border-color: rgba(255, 255, 255, 0.88);
  background-color: rgba(255, 255, 255, 0.46);
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.56),
    rgba(232, 243, 250, 0.24)
  );
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 0 0 1px rgba(198, 216, 229, 0.24),
    0 12px 28px rgba(45, 70, 88, 0.1);
}

.saas-overview-page .kpi-value,
.saas-overview-page .revenue-dark-pane,
.saas-overview-page .category-dark-pane,
.saas-overview-page .orders-data-pane,
.saas-overview-page .products-data-pane,
.saas-overview-page .uploaded-table-pane {
  border-color: rgba(255, 255, 255, 0.76);
  background-color: rgba(255, 255, 255, 0.4);
  background-image: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.48),
    rgba(235, 246, 252, 0.2)
  );
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(190, 211, 226, 0.26);
}

.saas-overview-page .uploaded-table-pane th {
  background-color: rgba(247, 251, 253, 0.84);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

@media (max-width: 1200px) {
  .saas-overview-page .kpi-description {
    gap: 6px;
    padding-inline: 8px;
  }

  .saas-overview-page .kpi-description .metric-icon,
  .customers-detail-page .customer-detail-kpi-grid .kpi-card:last-child .metric-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .saas-overview-page .kpi-description .metric-icon svg {
    width: 16px;
    height: 16px;
  }
}

.saas-overview-page .card-user-collapsed {
  background-color: rgba(255, 255, 255, 0.54) !important;
  background-image: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.62),
    rgba(232, 243, 250, 0.28)
  ) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

/* Uploaded CSV pie follows the category chart language. */
.uploaded-pie-view {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 360px;
  overflow: hidden;
  padding: 30px 38px;
}

.uploaded-pie-chart {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(180px, 24vw, 250px);
  height: auto;
  aspect-ratio: 1;
  justify-self: center;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none;
}

.uploaded-pie-chart::before {
  content: "";
  position: absolute;
  inset: -9px;
  border: 1px solid #dce2e7;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 8px 22px rgba(31, 74, 112, 0.1);
}

.uploaded-pie-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.uploaded-pie-track,
.uploaded-pie-segment {
  fill: none;
  stroke-width: 15;
}

.uploaded-pie-track {
  stroke: rgba(225, 235, 242, 0.72);
}

.uploaded-pie-segment {
  stroke: var(--uploaded-segment-color);
  stroke-linecap: round;
  filter: drop-shadow(0 3px 5px rgba(34, 92, 137, 0.1));
  transition:
    stroke-dasharray 700ms cubic-bezier(0.16, 1, 0.3, 1),
    stroke-dashoffset 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.uploaded-pie-legend {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  max-height: none;
  overflow: visible;
  pointer-events: none;
}

.uploaded-pie-legend article {
  position: absolute;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: start;
  column-gap: 7px;
  row-gap: 2px;
  width: 118px;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #22272b;
}

.uploaded-pie-legend article::before,
.uploaded-pie-legend article::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  border-top: 2px dotted #b9cbd7;
}

.uploaded-pie-legend article[data-side="right"]::before {
  right: 100%;
}

.uploaded-pie-legend article[data-side="left"]::before,
.uploaded-pie-legend article[data-side="right"]::after {
  display: none;
}

.uploaded-pie-legend article[data-side="left"]::after {
  left: 100%;
}

.uploaded-pie-legend i {
  grid-row: 1 / 4;
  width: 9px;
  height: 9px;
  margin-top: 2px;
  border-radius: 50%;
}

.uploaded-pie-legend div {
  grid-column: 2;
  min-width: 0;
}

.uploaded-pie-legend b,
.uploaded-pie-legend small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uploaded-pie-legend b {
  font-size: 11px;
  font-weight: 520;
}

.uploaded-pie-legend small {
  margin-top: 2px;
  color: #7a838a;
  font-size: 9px;
}

.uploaded-pie-legend strong {
  grid-column: 2;
  color: #76828b;
  font-size: 12px;
  font-weight: 450;
}

@media (max-width: 900px) {
  .uploaded-pie-view {
    grid-template-columns: 1fr;
    min-height: 330px;
    padding-inline: 18px;
  }

  .uploaded-pie-chart {
    width: clamp(160px, 40vw, 210px);
  }

  .uploaded-pie-legend article {
    width: 96px;
  }
}

/* Orders detail page */
.orders-detail-page .orders-content {
  min-width: 0;
  width: 100%;
  padding: 30px 30px 34px;
}

.orders-detail-page .orders-kpi-grid {
  margin-bottom: 12px;
}

.orders-detail-page .kpi-card .order-share {
  width: max-content;
  border: 1px solid rgba(178, 215, 241, 0.74);
  border-radius: 999px;
  background: rgba(229, 244, 255, 0.82);
  padding: 4px 7px;
  color: #168cf2;
  font-size: 9px;
  font-weight: 520;
}

.orders-detail-page .orders-insight-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.12fr) minmax(480px, 0.88fr);
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.orders-detail-page .orders-card,
.orders-detail-page .orders-status-card {
  min-width: 0;
  min-height: 300px;
}

.orders-detail-page .orders-shell {
  grid-template-columns: minmax(150px, 0.44fr) minmax(355px, 1.56fr);
}

.orders-detail-page .orders-status-card table {
  min-width: 520px;
}

.orders-detail-page .orders-status-card > div {
  height: calc(100% - 72px);
}

.orders-detail-page .orders-status-card table,
.orders-detail-page .orders-status-card tbody {
  height: 100%;
}

.orders-detail-page .orders-ledger-card {
  margin-top: 12px;
}

.orders-detail-page .orders-ledger-card .analytics-raw-table-scroll {
  max-height: 430px;
}

.orders-detail-page .orders-ledger-card table {
  min-width: 980px;
}

.orders-detail-page :is(.orders-status-card, .orders-ledger-card) .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 13px;
  background: #eaf5ff;
  padding: 6px 9px;
  color: #2789ed;
  font-size: 9px;
  white-space: nowrap;
}

.orders-detail-page :is(.orders-status-card, .orders-ledger-card) .status::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 2px;
  background: #2789ed;
}

.saas-overview-page .status:is(.status-completed, .status-pending, .status-shipped) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  height: 22px;
  min-width: 0;
  border: 0;
  border-radius: 13px;
  padding: 0 9px;
  font-size: 8px;
  line-height: 1;
}

.saas-overview-page .status:is(.status-completed, .status-pending, .status-shipped)::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 0;
}

.saas-overview-page .status.status-completed {
  background: #e8f7ef;
  color: #188653;
}

.saas-overview-page .status.status-completed::before {
  background: #20a968;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.saas-overview-page .status.status-pending {
  background: #eaf5ff;
  color: #2789ed;
}

.saas-overview-page .status.status-pending::before {
  border-radius: 50%;
  background: #2789ed;
}

.saas-overview-page .status.status-shipped {
  background: #fff1e4;
  color: #c96817;
}

.saas-overview-page .status.status-shipped::before {
  background: #ef8128;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.orders-detail-page .orders-ledger-card tbody tr[hidden] {
  display: none;
}

@media (max-width: 1280px) {
  .orders-detail-page .orders-insight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .orders-detail-page .orders-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .orders-detail-page .orders-card {
    min-height: 500px;
  }
}

@media (max-width: 900px) {
  .orders-detail-page .orders-content {
    padding-inline: 20px;
  }

  .orders-detail-page .orders-insight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .orders-detail-page .orders-status-card {
    overflow: hidden;
  }
}

/* Customers detail page */
.customers-detail-page .customer-detail-content {
  min-width: 0;
  width: 100%;
  padding: 30px 30px 34px;
}

.customers-detail-page .customer-detail-kpi-grid {
  margin-bottom: 12px;
}

.customers-detail-page .kpi-card .customer-share {
  width: max-content;
  border: 1px solid rgba(178, 215, 241, 0.74);
  border-radius: 999px;
  background: rgba(229, 244, 255, 0.82);
  padding: 4px 7px;
  color: #168cf2;
  font-size: 9px;
  font-weight: 520;
}

.customers-detail-page .customer-detail-kpi-grid .kpi-card:last-child {
  grid-template-columns: minmax(0, 1fr) 98px;
}

.customers-detail-page .customer-detail-kpi-grid .kpi-card:last-child .kpi-description {
  padding-inline: 10px;
}

.customers-detail-page .customer-detail-kpi-grid .kpi-card:last-child .kpi-description > div {
  min-width: 0;
}

.customers-detail-page .customer-detail-kpi-grid .kpi-card:last-child .metric-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.customers-detail-page .customer-detail-kpi-grid .kpi-card:last-child h2 {
  font-size: 11px;
  white-space: normal;
}

.customers-detail-page .customer-detail-kpi-grid .kpi-card:last-child .kpi-value {
  padding-inline: 8px;
}

.customers-detail-page .customer-detail-kpi-grid .kpi-card:last-child .kpi-value strong {
  font-size: 20px;
}

.customers-detail-page .customer-insight-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.12fr) minmax(480px, 0.88fr);
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.customers-detail-page .customer-activity-card,
.customers-detail-page .customer-conversion-card {
  min-width: 0;
  min-height: 300px;
}

.customers-detail-page .customer-shell {
  grid-template-columns: minmax(150px, 0.44fr) minmax(355px, 1.56fr);
}

.customers-detail-page .customer-data-pane th:nth-child(1) { width: 24%; }
.customers-detail-page .customer-data-pane th:nth-child(2) { width: 19%; }
.customers-detail-page .customer-data-pane th:nth-child(3) { width: 14%; }
.customers-detail-page .customer-data-pane th:nth-child(4) { width: 21%; }
.customers-detail-page .customer-data-pane th:nth-child(5) { width: 22%; }

.customers-detail-page .customer-conversion-card table {
  min-width: 470px;
}

.customers-detail-page .customer-conversion-card > div {
  height: calc(100% - 72px);
}

.customers-detail-page .customer-conversion-card table,
.customers-detail-page .customer-conversion-card tbody {
  height: 100%;
}

.customers-detail-page .customer-state {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 22px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
}

.customers-detail-page .customer-state-full {
  background: #e8f7ef;
  color: #188653;
}

.customers-detail-page .customer-state-mixed {
  background: #eaf5ff;
  color: #2789ed;
}

.customers-detail-page .customer-state-none {
  background: #f0f1f2;
  color: #66717a;
}

.customers-detail-page .customer-ledger-card {
  margin-top: 12px;
}

.customers-detail-page .customer-ledger-card .analytics-raw-table-scroll {
  max-height: 430px;
}

.customers-detail-page .customer-ledger-card table {
  min-width: 900px;
}

.customers-detail-page .customer-ledger-card tbody tr[hidden] {
  display: none;
}

@media (max-width: 1280px) {
  .customers-detail-page .customer-insight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .customers-detail-page .customer-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .customers-detail-page .customer-activity-card {
    min-height: 500px;
  }
}

@media (max-width: 900px) {
  .customers-detail-page .customer-detail-content {
    padding-inline: 20px;
  }

  .customers-detail-page .customer-insight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .customers-detail-page .customer-conversion-card {
    overflow: hidden;
  }
}

/* Sales detail page */
.sales-detail-page .sales-content {
  min-width: 0;
  width: 100%;
  padding: 30px 30px 34px;
}

.sales-detail-page .sales-kpi-grid {
  margin-bottom: 12px;
}

.sales-detail-page .kpi-card .sales-share {
  width: max-content;
  border: 1px solid rgba(178, 215, 241, 0.74);
  border-radius: 999px;
  background: rgba(229, 244, 255, 0.82);
  padding: 4px 7px;
  color: #168cf2;
  font-size: 9px;
  font-weight: 520;
}

.sales-detail-page .sales-kpi-grid .kpi-card:first-child {
  grid-template-columns: minmax(0, 1fr) 104px;
}

.sales-detail-page .sales-kpi-grid .kpi-card:first-child .kpi-value strong,
.sales-detail-page .sales-kpi-grid .kpi-card:nth-child(3) .kpi-value strong {
  font-size: 20px;
}

.sales-detail-page .sales-insight-grid {
  display: grid;
  grid-template-columns: minmax(540px, 1.15fr) minmax(470px, 0.85fr);
  gap: 12px;
  min-width: 0;
  width: 100%;
}

.sales-detail-page .sales-products-card,
.sales-detail-page .sales-category-card {
  min-width: 0;
  min-height: 330px;
}

.sales-detail-page .sales-products-shell {
  grid-template-columns: minmax(150px, 0.42fr) minmax(380px, 1.58fr);
}

.sales-detail-page .sales-products-pane {
  padding-inline: 13px;
}

.sales-detail-page .sales-products-pane th,
.sales-detail-page .sales-products-pane td {
  height: 50px;
}

.sales-detail-page .sales-products-pane th:nth-child(1) { width: 42%; }
.sales-detail-page .sales-products-pane th:nth-child(2) { width: 17%; }
.sales-detail-page .sales-products-pane th:nth-child(3) { width: 23%; }
.sales-detail-page .sales-products-pane th:nth-child(4) { width: 18%; text-align: right; }
.sales-detail-page .sales-products-pane td:last-child { text-align: right; }

.sales-detail-page .sales-category-card table {
  min-width: 460px;
}

.sales-detail-page .sales-category-card > div {
  height: calc(100% - 72px);
}

.sales-detail-page .sales-category-card table,
.sales-detail-page .sales-category-card tbody {
  height: 100%;
}

.sales-detail-page .sales-category {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  height: 22px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
}

.sales-detail-page .sales-category-electronics {
  background: #e7f5ff;
  color: #168cf2;
}

.sales-detail-page .sales-category-accessories {
  background: #eef0ff;
  color: #596cff;
}

.sales-detail-page .sales-category-other {
  background: #edf3f7;
  color: #647681;
}

.sales-detail-page .sales-ledger-card {
  margin-top: 12px;
}

.sales-detail-page .sales-ledger-card .analytics-raw-table-scroll {
  max-height: 430px;
}

.sales-detail-page .sales-ledger-card table {
  min-width: 980px;
}

.sales-detail-page .sales-ledger-card tbody tr[hidden] {
  display: none;
}

@media (max-width: 1280px) {
  .sales-detail-page .sales-insight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-detail-page .sales-products-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-detail-page .sales-products-card {
    min-height: 660px;
  }
}

@media (max-width: 900px) {
  .sales-detail-page .sales-content {
    padding-inline: 20px;
  }

  .sales-detail-page .sales-insight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-detail-page .sales-category-card {
    overflow: hidden;
  }
}

/* Notifications detail page */
.notifications-detail-page .notifications-content {
  min-width: 0;
  width: 100%;
  padding: 30px 30px 34px;
}

.notifications-detail-page .notifications-kpi-grid {
  margin-bottom: 12px;
}

.notifications-detail-page .kpi-card .notification-share {
  width: max-content;
  border: 1px solid rgba(178, 215, 241, 0.74);
  border-radius: 999px;
  background: rgba(229, 244, 255, 0.82);
  padding: 4px 7px;
  color: #168cf2;
  font-size: 9px;
  font-weight: 520;
}

.notifications-detail-page .notifications-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.notifications-detail-page .notification-feed-card,
.notifications-detail-page .notification-summary-card,
.notifications-detail-page .notification-preferences-card {
  min-width: 0;
  padding: 9px;
}

.notifications-detail-page .notification-feed-header,
.notifications-detail-page :is(.notification-summary-card, .notification-preferences-card) > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  border: 1px solid rgba(218, 226, 232, 0.88);
  border-radius: 14px 14px 0 0;
  background: rgba(242, 244, 245, 0.66);
  padding: 12px 16px;
}

.notifications-detail-page :is(.notification-feed-header, .notification-summary-card header, .notification-preferences-card header) p {
  margin-bottom: 4px;
  color: #92999f;
  font-size: 9px;
}

.notifications-detail-page :is(.notification-feed-header, .notification-summary-card header, .notification-preferences-card header) h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 520;
}

.notifications-detail-page .notification-feed-header > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 30px;
}

.notifications-detail-page .notification-visible-count {
  border: 1px solid #d5dde3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 6px 10px;
  color: #68737c;
  font-size: 9px;
  white-space: nowrap;
}

.notifications-detail-page .mark-all-read {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  border: 0;
  border-radius: 999px;
  background: #1c1d1e;
  padding: 0 12px;
  color: #fff;
  font-size: 9px;
}

.notifications-detail-page .mark-all-read:disabled {
  cursor: default;
  opacity: 0.38;
}

.notifications-detail-page .mark-all-read svg {
  width: 13px;
  height: 13px;
}

.notifications-detail-page .notification-filter-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  border-right: 1px solid rgba(218, 226, 232, 0.88);
  border-left: 1px solid rgba(218, 226, 232, 0.88);
  background: rgba(255, 255, 255, 0.38);
  padding: 9px 12px;
}

.notifications-detail-page .notification-filter-bar button {
  min-height: 29px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 12px;
  color: #66737d;
  font-size: 11px;
  white-space: nowrap;
}

.notifications-detail-page .notification-filter-bar button.active {
  background: #1c1d1e;
  color: #fff;
}

.notifications-detail-page .notification-list {
  overflow: hidden;
  border: 1px solid rgba(218, 226, 232, 0.88);
  border-radius: 0 0 14px 14px;
  background: rgba(255, 255, 255, 0.4);
}

.notifications-detail-page .notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 82px;
  border-bottom: 1px solid rgba(216, 226, 233, 0.86);
  padding: 12px 14px;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.notifications-detail-page .notification-item:last-of-type {
  border-bottom: 0;
}

.notifications-detail-page .notification-item.is-unread {
  background: rgba(232, 245, 255, 0.58);
  padding-left: 24px;
}

.notifications-detail-page .notification-item.is-unread::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 8px;
  width: 3px;
  height: 24px;
  border-radius: 999px;
  background: #2789ed;
  transform: translateY(-50%);
}

.notifications-detail-page .notification-item[hidden],
.notifications-detail-page .notification-feed-empty[hidden] {
  display: none;
}

.notifications-detail-page .notification-item:hover {
  background-color: rgba(238, 247, 253, 0.72);
}

.notifications-detail-page .notification-item:focus-visible {
  z-index: 1;
  outline: 3px solid rgba(39, 137, 237, 0.2);
  outline-offset: -3px;
}

.notifications-detail-page .notification-type-icon,
.notifications-detail-page .notification-mix-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
}

.notifications-detail-page :is(.notification-type-icon, .notification-mix-icon) svg {
  width: 18px;
  height: 18px;
}

.notifications-detail-page .type-orders {
  background: #e7f5ff;
  color: #168cf2;
}

.notifications-detail-page .type-sales {
  background: #eef0ff;
  color: #596cff;
}

.notifications-detail-page .type-customers {
  background: #e8f7ef;
  color: #188653;
}

.notifications-detail-page .type-system {
  background: #edf3f7;
  color: #647681;
}

.notifications-detail-page .notification-item > div {
  min-width: 0;
}

.notifications-detail-page .notification-item-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 5px;
}

.notifications-detail-page .notification-item h3 {
  overflow: hidden;
  font-size: 13px;
  font-weight: 540;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notifications-detail-page .notification-item p {
  overflow: hidden;
  margin-bottom: 5px;
  color: #65717a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notifications-detail-page .notification-item time {
  color: #949ca2;
  font-size: 9px;
}

.notifications-detail-page .notification-topic {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 7px;
  font-size: 8px;
}

.notifications-detail-page .topic-orders {
  background: #e7f5ff;
  color: #168cf2;
}

.notifications-detail-page .topic-sales {
  background: #eef0ff;
  color: #596cff;
}

.notifications-detail-page .topic-customers {
  background: #e8f7ef;
  color: #188653;
}

.notifications-detail-page .topic-system {
  background: #edf3f7;
  color: #647681;
}

.notifications-detail-page .notification-feed-empty {
  padding: 42px 20px;
  text-align: center;
}

.notifications-detail-page .notification-feed-empty h3 {
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 540;
}

.notifications-detail-page .notification-feed-empty p {
  color: #75818a;
  font-size: 11px;
}

.notifications-detail-page .notification-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.notifications-detail-page :is(.notification-summary-card, .notification-preferences-card) > header {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-right: 44px;
}

.notifications-detail-page .notification-summary-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.notifications-detail-page .notification-summary-card > header {
  min-height: 76px;
  border-radius: 14px 0 0 14px;
}

.notifications-detail-page .notification-summary-card .notification-mix-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(218, 226, 232, 0.88);
  border-radius: 0 14px 14px 0;
}

.notifications-detail-page .notification-summary-card .notification-mix-list article {
  min-width: 0;
  min-height: 76px;
  border-right: 1px solid rgba(216, 226, 233, 0.86);
  border-bottom: 0;
}

.notifications-detail-page .notification-summary-card .notification-mix-list article:last-child {
  border-right: 0;
}

.notifications-detail-page .notification-mix-list,
.notifications-detail-page .notification-preference-list {
  overflow: hidden;
  border: 1px solid rgba(218, 226, 232, 0.88);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: rgba(255, 255, 255, 0.4);
}

.notifications-detail-page .notification-mix-list article {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  border-bottom: 1px solid rgba(216, 226, 233, 0.86);
  padding: 9px 12px;
}

.notifications-detail-page .notification-mix-list article:last-child,
.notifications-detail-page .notification-preference-list label:last-child {
  border-bottom: 0;
}

.notifications-detail-page .notification-mix-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.notifications-detail-page .notification-mix-list strong,
.notifications-detail-page .notification-mix-list small {
  display: block;
}

.notifications-detail-page .notification-mix-list strong {
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 540;
}

.notifications-detail-page .notification-mix-list small {
  overflow: hidden;
  color: #7a858d;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notifications-detail-page .notification-mix-list b {
  font-size: 16px;
  font-weight: 540;
}

.notifications-detail-page .notification-preference-list label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 67px;
  border-bottom: 1px solid rgba(216, 226, 233, 0.86);
  padding: 10px 13px;
  cursor: pointer;
}

.notifications-detail-page .notification-preference-list strong,
.notifications-detail-page .notification-preference-list small {
  display: block;
}

.notifications-detail-page .notification-preference-list strong {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 540;
}

.notifications-detail-page .notification-preference-list small {
  color: #7a858d;
  font-size: 9px;
}

.notifications-detail-page .notification-preference-list input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.notifications-detail-page .notification-preference-list i {
  position: relative;
  width: 32px;
  height: 18px;
  flex: 0 0 32px;
  border-radius: 999px;
  background: #cbd6de;
  transition: background-color 160ms ease;
}

.notifications-detail-page .notification-preference-list i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 47, 58, 0.2);
  transition: transform 160ms ease;
}

.notifications-detail-page .notification-preference-list input:checked + i {
  background: #2789ed;
}

.notifications-detail-page .notification-preference-list input:checked + i::after {
  transform: translateX(14px);
}

.notifications-detail-page .notification-preference-list input:focus-visible + i {
  outline: 3px solid rgba(39, 137, 237, 0.18);
  outline-offset: 2px;
}

@media (max-width: 1280px) {
  .notifications-detail-page .notifications-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .notifications-detail-page .notifications-content {
    padding-inline: 20px;
  }

  .notifications-detail-page .notification-feed-header {
    align-items: flex-start;
    gap: 10px;
  }

  .notifications-detail-page .notification-feed-header > div:last-child {
    flex-direction: column;
    align-items: flex-end;
  }

  .notifications-detail-page .notification-summary-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .notifications-detail-page .notification-summary-card > header {
    border-radius: 14px 14px 0 0;
  }

  .notifications-detail-page .notification-summary-card .notification-mix-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 0;
    border-radius: 0 0 14px 14px;
  }

  .notifications-detail-page .notification-summary-card .notification-mix-list article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(216, 226, 233, 0.86);
  }

  .notifications-detail-page .notification-summary-card .notification-mix-list article:nth-child(2n) {
    border-right: 0;
  }
}

/* Shared mobile dashboard layout */
.mobile-sidebar-toggle,
.sidebar-backdrop {
  display: none;
}

@media (max-width: 760px) {
  .saas-overview-page {
    width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .saas-overview-page .dashboard-frame,
  .saas-overview-page .dashboard-frame.sidebar-collapsed {
    display: block;
    width: 100%;
    min-width: 0;
    height: 100dvh;
    overflow: hidden;
  }

  .saas-overview-page .workspace {
    width: 100%;
    min-width: 0;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .saas-overview-page .sidebar {
    position: fixed;
    z-index: 100;
    top: max(8px, env(safe-area-inset-top));
    right: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    width: min(316px, calc(100vw - 28px));
    height: auto;
    margin: 0;
    padding-top: 24px;
    padding-bottom: 20px;
    border-radius: 20px;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(calc(-100% - 24px));
    transition:
      transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 260ms;
  }

  .saas-overview-page .sidebar-mobile-open .sidebar {
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
  }

  .saas-overview-page .sidebar .brand {
    width: min(218px, calc(100% - 72px));
    height: 58px;
    margin: 0 0 24px 14px;
  }

  .saas-overview-page .sidebar-search {
    height: 42px;
    margin-bottom: 21px;
  }

  .saas-overview-page .sidebar-search input {
    min-width: 0;
    font-size: 13px;
  }

  .saas-overview-page .sidebar .menu-label {
    margin-bottom: 8px;
    font-size: 10px;
  }

  .saas-overview-page .sidebar .menu-link {
    height: 43px;
    gap: 11px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 14px;
  }

  .saas-overview-page .sidebar .menu-link svg {
    width: 17px;
    height: 17px;
  }

  .saas-overview-page .sidebar-profile {
    padding-top: 13px;
  }

  .saas-overview-page .sidebar-profile .avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .saas-overview-page .sidebar-profile strong {
    font-size: 12px;
  }

  .saas-overview-page .sidebar-profile span {
    font-size: 9px;
  }

  .saas-overview-page .sidebar-toggle {
    top: 16px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-color: rgba(190, 208, 221, 0.72);
    background: rgba(255, 255, 255, 0.68);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .saas-overview-page .sidebar-toggle svg {
    width: 17px;
    height: 17px;
  }

  .saas-overview-page .mobile-sidebar-toggle {
    position: fixed;
    z-index: 70;
    top: max(16px, env(safe-area-inset-top));
    left: max(14px, env(safe-area-inset-left));
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.64);
    padding: 0;
    color: #29333b;
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.94),
      0 7px 18px rgba(43, 70, 90, 0.12);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .saas-overview-page .mobile-sidebar-toggle:active {
    transform: scale(0.96);
  }

  .saas-overview-page .mobile-sidebar-toggle:focus-visible {
    outline: 3px solid rgba(22, 140, 242, 0.2);
    outline-offset: 2px;
  }

  .saas-overview-page .mobile-sidebar-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.9;
  }

  .saas-overview-page .sidebar-mobile-open .mobile-sidebar-toggle {
    opacity: 0;
    pointer-events: none;
  }

  .saas-overview-page .sidebar-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: rgba(37, 54, 66, 0.22);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    transition:
      opacity 220ms ease,
      visibility 0s linear 220ms;
  }

  .saas-overview-page .sidebar-mobile-open .sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .saas-overview-page .content,
  .orders-detail-page .orders-content,
  .customers-detail-page .customer-detail-content,
  .sales-detail-page .sales-content,
  .notifications-detail-page .notifications-content {
    width: 100%;
    min-width: 0;
    padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(86px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }

  .saas-overview-page .title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    margin-bottom: 18px;
  }

  .saas-overview-page .title-row > div:first-child {
    min-height: 42px;
    padding-left: 54px;
  }

  .saas-overview-page h1 {
    margin-bottom: 5px;
    font-size: 27px;
    line-height: 1.05;
  }

  .saas-overview-page .title-row p {
    max-width: 270px;
    font-size: 12px;
    line-height: 1.3;
  }

  .saas-overview-page .filters,
  .saas-overview-page .analytics-date-picker,
  .saas-overview-page .filters .analytics-date-trigger {
    width: 100% !important;
    min-width: 0;
  }

  .saas-overview-page .filters .analytics-date-trigger {
    justify-content: flex-start;
    height: 48px;
    border-radius: 15px;
    padding: 0 13px;
    font-size: 12px;
  }

  .saas-overview-page .analytics-date-trigger > span {
    min-width: 0;
    overflow: hidden;
    margin-right: auto;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .saas-overview-page .analytics-date-popover {
    right: 0;
    left: 0;
    width: 100%;
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
    border-radius: 16px;
  }

  .saas-overview-page .analytics-date-popover .analytics-date-modes button {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .saas-overview-page .analytics-date-fields {
    padding: 11px;
  }

  .saas-overview-page .analytics-date-range-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .saas-overview-page .analytics-filter-bar {
    min-height: 52px;
    margin-bottom: 12px;
    border-radius: 15px;
    padding: 7px;
  }

  .saas-overview-page .analytics-filter-bar button {
    min-height: 38px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .saas-overview-page .kpi-grid,
  .saas-overview-page .panel-grid,
  .orders-detail-page .orders-insight-grid,
  .customers-detail-page .customer-insight-grid,
  .sales-detail-page .sales-insight-grid,
  .notifications-detail-page .notifications-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 10px;
  }

  .saas-overview-page .kpi-grid {
    margin-bottom: 10px;
  }

  .saas-overview-page .kpi-card,
  .saas-overview-page .kpi-card:first-child,
  .customers-detail-page .customer-detail-kpi-grid .kpi-card:last-child,
  .sales-detail-page .sales-kpi-grid .kpi-card:first-child {
    grid-template-columns: minmax(88px, max-content) minmax(118px, 1fr);
    width: 100%;
    height: 88px;
    min-width: 0;
    padding: 5px;
    border-radius: 17px;
  }

  .saas-overview-page .kpi-description,
  .saas-overview-page .kpi-value {
    height: 76px;
    border-radius: 12px;
  }

  .saas-overview-page .kpi-description {
    gap: 6px;
    padding: 6px 8px;
  }

  .saas-overview-page .kpi-description .metric-icon,
  .customers-detail-page .customer-detail-kpi-grid .kpi-card:last-child .metric-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .saas-overview-page .kpi-description .metric-icon svg {
    width: 16px;
    height: 16px;
  }

  .saas-overview-page .kpi-description h2,
  .customers-detail-page .customer-detail-kpi-grid .kpi-card:last-child h2 {
    font-size: 11px;
    white-space: normal;
  }

  .saas-overview-page .kpi-description small {
    font-size: 7px;
  }

  .saas-overview-page .kpi-value {
    align-items: flex-start;
    padding: 27px 9px 6px;
  }

  .saas-overview-page .kpi-card > .card-hide-button {
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
  }

  .saas-overview-page .kpi-card > .card-hide-button svg {
    width: 13px;
    height: 13px;
  }

  .saas-overview-page .kpi-value strong,
  .saas-overview-page .kpi-card:first-child .kpi-value strong,
  .customers-detail-page .customer-detail-kpi-grid .kpi-card:last-child .kpi-value strong,
  .sales-detail-page .sales-kpi-grid .kpi-card:first-child .kpi-value strong,
  .sales-detail-page .sales-kpi-grid .kpi-card:nth-child(3) .kpi-value strong {
    font-size: 20px;
  }

  .saas-overview-page .card,
  .saas-overview-page .panel-grid > .card,
  .saas-overview-page .panel-grid > .card:nth-child(n),
  .saas-overview-page .analytics-filterable,
  .saas-overview-page .analytics-filterable.analytics-card-resized {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    height: auto !important;
  }

  .saas-overview-page .card-hide-button,
  .saas-overview-page .card-drag-handle {
    width: 30px;
    height: 30px;
  }

  .saas-overview-page .card-drag-handle,
  .analytics-detail-page .analytics-resize-handle {
    display: none;
  }

  .saas-overview-page .revenue-card,
  .saas-overview-page .category-card,
  .saas-overview-page .orders-card,
  .saas-overview-page .products-card,
  .orders-detail-page .orders-card,
  .customers-detail-page .customer-activity-card,
  .sales-detail-page .sales-products-card {
    min-height: 0;
    padding: 7px;
    border-radius: 17px;
  }

  .saas-overview-page .revenue-shell,
  .saas-overview-page .category-shell,
  .saas-overview-page .orders-shell,
  .saas-overview-page .products-shell,
  .orders-detail-page .orders-shell,
  .customers-detail-page .customer-shell,
  .sales-detail-page .sales-products-shell,
  .uploaded-data-shell {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    gap: 7px;
  }

  .saas-overview-page .revenue-light-pane,
  .saas-overview-page .category-light-pane,
  .saas-overview-page .orders-summary-pane,
  .saas-overview-page .products-summary-pane,
  .uploaded-data-summary {
    min-height: 188px;
    padding: 17px 14px 13px;
    border-radius: 12px;
  }

  .saas-overview-page .revenue-light-pane h2,
  .saas-overview-page .category-light-pane h2,
  .saas-overview-page .orders-summary-pane h2,
  .saas-overview-page .products-summary-pane h2 {
    font-size: 20px;
  }

  .saas-overview-page .revenue-highlight {
    margin-top: 14px;
  }

  .saas-overview-page .revenue-highlight strong {
    font-size: 25px;
  }

  .saas-overview-page .revenue-report,
  .saas-overview-page .category-report,
  .saas-overview-page .orders-summary-pane button,
  .saas-overview-page .products-summary-pane button {
    min-height: 36px;
    padding-inline: 14px;
    font-size: 10px;
  }

  .saas-overview-page .revenue-dark-pane {
    min-height: 352px;
    padding: 16px 12px 12px;
    border-radius: 12px;
  }

  .saas-overview-page .revenue-dark-copy h3,
  .saas-overview-page .category-dark-copy h3 {
    font-size: 17px;
  }

  .saas-overview-page .revenue-dark-copy p,
  .saas-overview-page .category-dark-copy p {
    font-size: 10px;
  }

  .saas-overview-page .revenue-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 3px;
  }

  .saas-overview-page .revenue-timeline button {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding-inline: 4px;
    font-size: 9px;
  }

  .saas-overview-page .revenue-chart-stage {
    min-height: 208px;
  }

  .saas-overview-page .revenue-dark-pane .revenue-chart {
    min-height: 208px;
  }

  .saas-overview-page .revenue-dark-footer button {
    min-height: 34px;
    padding-inline: 12px;
    font-size: 9px;
  }

  .saas-overview-page .category-dark-pane {
    min-height: 336px;
    padding: 16px 10px 12px;
    border-radius: 12px;
  }

  .saas-overview-page .category-pie-wrap,
  .saas-overview-page.analytics-detail-page .category-pie-wrap {
    --category-pie-size: 114px !important;
    --category-pie-radius: 57px !important;
    --category-pie-label-width: 72px !important;
    --category-pie-label-size: 9px !important;
    --category-pie-percent-size: 10px !important;
    height: 190px;
    min-height: 190px;
  }

  .saas-overview-page .category-pie-wrap::before,
  .saas-overview-page.analytics-detail-page .category-pie-wrap::before {
    width: 132px;
    height: 132px;
  }

  .saas-overview-page .pie-label-one,
  .saas-overview-page.analytics-detail-page .pie-label-one {
    top: 43px;
    left: calc(50% + 75px);
  }

  .saas-overview-page .pie-label-two,
  .saas-overview-page.analytics-detail-page .pie-label-two {
    right: auto;
    bottom: 42px;
    left: calc(50% + 75px);
  }

  .saas-overview-page .pie-label-three,
  .saas-overview-page.analytics-detail-page .pie-label-three {
    right: calc(50% + 75px);
    bottom: 46px;
    left: auto;
  }

  .saas-overview-page .orders-data-pane,
  .saas-overview-page .products-data-pane,
  .analytics-detail-page .analytics-detail-table > div,
  .analytics-raw-table-scroll {
    -webkit-overflow-scrolling: touch;
  }

  .saas-overview-page .orders-data-pane {
    min-height: 190px;
    overflow-x: auto;
    padding: 7px 10px;
  }

  .saas-overview-page .orders-data-pane table {
    width: 620px;
    min-width: 620px;
    table-layout: fixed;
  }

  .saas-overview-page .orders-data-pane th,
  .saas-overview-page .orders-data-pane td {
    height: 46px;
    font-size: 11px;
  }

  .saas-overview-page .products-data-pane {
    min-height: 220px;
    padding: 7px 10px;
  }

  .saas-overview-page .products-data-pane .product-row {
    grid-template-columns: 30px minmax(84px, 0.7fr) minmax(88px, 1.3fr) 30px;
    gap: 5px;
    min-height: 66px;
  }

  .saas-overview-page .products-data-pane .thumb {
    width: 30px;
    height: 44px;
  }

  .saas-overview-page .products-data-pane .product-row h3 {
    font-size: 10px;
  }

  .saas-overview-page .products-data-pane .product-segments {
    gap: 1px;
  }

  .saas-overview-page .products-data-pane .product-segment {
    min-width: 3px;
    max-width: 4px;
  }

  .saas-overview-page .uploaded-data-card {
    padding: 7px;
  }

  .saas-overview-page .uploaded-table-pane {
    min-height: 260px;
    overflow: hidden;
  }

  .saas-overview-page .uploaded-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .saas-overview-page .analytics-raw-data,
  .saas-overview-page .analytics-detail-table {
    padding: 7px;
    border-radius: 17px;
  }

  .saas-overview-page .analytics-raw-data > header,
  .saas-overview-page .analytics-detail-table > header {
    min-height: 68px;
    padding: 10px 12px;
  }

  .saas-overview-page .analytics-raw-data > header h2,
  .saas-overview-page .analytics-detail-table > header h2 {
    font-size: 17px;
  }

  .saas-overview-page .analytics-raw-data > header > span,
  .saas-overview-page .analytics-detail-table > header > span {
    margin-right: 28px;
    padding: 5px 8px;
    font-size: 8px;
  }

  .saas-overview-page .analytics-raw-table-scroll {
    max-height: 470px;
  }

  .saas-overview-page .analytics-raw-data table {
    font-size: 10px;
  }

  .saas-overview-page .analytics-raw-data th,
  .saas-overview-page .analytics-raw-data td {
    height: 42px;
    padding-inline: 11px;
  }

  .orders-detail-page .orders-status-card,
  .customers-detail-page .customer-conversion-card,
  .sales-detail-page .sales-category-card {
    min-height: 330px;
    overflow: hidden;
  }

  .orders-detail-page .orders-status-card > div,
  .customers-detail-page .customer-conversion-card > div,
  .sales-detail-page .sales-category-card > div {
    height: auto;
    max-height: 270px;
    overflow: auto;
  }

  .notifications-detail-page .notification-summary-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .notifications-detail-page .notification-summary-card > header {
    min-height: 70px;
    border-radius: 12px 12px 0 0;
  }

  .notifications-detail-page .notification-summary-card .notification-mix-list {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 0 0 12px 12px;
  }

  .notifications-detail-page .notification-summary-card .notification-mix-list article,
  .notifications-detail-page .notification-summary-card .notification-mix-list article:nth-child(n) {
    min-height: 62px;
    border-right: 0;
    border-bottom: 1px solid rgba(216, 226, 233, 0.86);
  }

  .notifications-detail-page .notification-summary-card .notification-mix-list article:last-child {
    border-bottom: 0;
  }

  .notifications-detail-page .notification-feed-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: 13px 12px;
  }

  .notifications-detail-page .notification-feed-header > div:last-child {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-right: 28px;
  }

  .notifications-detail-page .mark-all-read {
    min-height: 36px;
  }

  .notifications-detail-page .notification-item,
  .notifications-detail-page .notification-item.is-unread {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    min-height: 86px;
    padding: 11px 10px;
  }

  .notifications-detail-page .notification-item.is-unread {
    padding-left: 18px;
  }

  .notifications-detail-page .notification-type-icon {
    width: 36px;
    height: 36px;
  }

  .notifications-detail-page .notification-item h3 {
    font-size: 12px;
  }

  .notifications-detail-page .notification-item p {
    font-size: 10px;
    white-space: normal;
  }

  .saas-overview-page .upload-data-button {
    right: max(15px, env(safe-area-inset-right));
    bottom: max(15px, env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
  }

  .saas-overview-page .upload-data-button svg {
    width: 21px;
    height: 21px;
  }

  .saas-overview-page .csv-display-dialog {
    width: calc(100vw - 24px);
    max-width: none;
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
  }

  .saas-overview-page .csv-display-form {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 16px;
  }

  .saas-overview-page .csv-display-modes,
  .saas-overview-page .csv-pie-mapping {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 374px) {
  .saas-overview-page .content,
  .orders-detail-page .orders-content,
  .customers-detail-page .customer-detail-content,
  .sales-detail-page .sales-content,
  .notifications-detail-page .notifications-content {
    padding-right: 10px;
    padding-left: 10px;
  }

  .saas-overview-page .title-row > div:first-child {
    padding-left: 50px;
  }

  .saas-overview-page h1 {
    font-size: 25px;
  }

  .saas-overview-page .kpi-card,
  .saas-overview-page .kpi-card:first-child,
  .customers-detail-page .customer-detail-kpi-grid .kpi-card:last-child,
  .sales-detail-page .sales-kpi-grid .kpi-card:first-child {
    grid-template-columns: minmax(0, 1fr);
  }

  .saas-overview-page .kpi-description {
    display: none;
  }

  .saas-overview-page .kpi-value {
    align-items: center;
    padding: 8px 12px;
  }

  .saas-overview-page .kpi-value strong,
  .saas-overview-page .kpi-card:first-child .kpi-value strong,
  .customers-detail-page .customer-detail-kpi-grid .kpi-card:last-child .kpi-value strong,
  .sales-detail-page .sales-kpi-grid .kpi-card:first-child .kpi-value strong,
  .sales-detail-page .sales-kpi-grid .kpi-card:nth-child(3) .kpi-value strong {
    font-size: clamp(18px, 8vw, 24px);
  }

  .saas-overview-page .revenue-shell,
  .saas-overview-page .category-shell,
  .saas-overview-page .orders-shell,
  .saas-overview-page .products-shell,
  .orders-detail-page .orders-shell,
  .customers-detail-page .customer-shell,
  .sales-detail-page .sales-products-shell,
  .uploaded-data-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .saas-overview-page .revenue-light-pane,
  .saas-overview-page .category-light-pane,
  .saas-overview-page .orders-summary-pane,
  .saas-overview-page .products-summary-pane,
  .uploaded-data-summary {
    display: none;
  }

  .saas-overview-page .category-pie-wrap,
  .saas-overview-page.analytics-detail-page .category-pie-wrap {
    --category-pie-size: 104px !important;
    --category-pie-radius: 52px !important;
    --category-pie-label-width: 66px !important;
  }

  .saas-overview-page .pie-label-one,
  .saas-overview-page.analytics-detail-page .pie-label-one,
  .saas-overview-page .pie-label-two,
  .saas-overview-page.analytics-detail-page .pie-label-two {
    left: calc(50% + 68px);
  }

  .saas-overview-page .pie-label-three,
  .saas-overview-page.analytics-detail-page .pie-label-three {
    right: calc(50% + 68px);
  }
}
