* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #2f3440;
}

button {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.phone {
  position: relative;
  width: min(390px, 100%);
  min-height: 844px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
}

.top-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #eef1f5;
}

.top-bar .top-tabs {
  flex: 1 1 auto;
  min-width: 0;
  padding-inline: 6px;
  border-bottom: 0;
}

.top-bar .settings-slot {
  flex: 0 0 auto;
  margin-right: 10px;
}

.module-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  border-bottom: 1px solid #f0f2f6;
}

.module-bar .module-tabs {
  flex: 1 1 auto;
  min-width: 0;
  border-bottom: 0;
}

.date-bar {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #fff;
  border-bottom: 1px solid #f0f2f6;
  padding-right: 10px;
}

.date-bar .date-tabs {
  flex: 1 1 auto;
  min-width: 0;
  border-bottom: 0;
  padding-right: 0;
}

.settings-button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #f3f5f9;
  color: #667085;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.settings-button:active {
  background: #edf3ff;
  color: #244bdf;
}

.locale-en .top-tabs .tab {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  padding: 0 4px;
  font-size: 12px;
}

.prototype-notes {
  display: none;
}

.top-tabs,
.sub-tabs {
  display: flex;
  gap: 20px;
  height: 42px;
  padding: 0 16px;
  overflow-x: auto;
  white-space: nowrap;
  background: #fff;
  border-bottom: 1px solid #eef1f5;
}

.top-tabs::-webkit-scrollbar,
.sub-tabs::-webkit-scrollbar {
  display: none;
}

.top-tabs {
  align-items: center;
  justify-content: space-between;
  height: 50px;
  gap: 0;
  padding: 0 8px;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 8px;
}

.tab,
.sub-tabs button {
  position: relative;
  flex: 0 0 auto;
  font-size: 13.52px;
  line-height: 42px;
  color: #333;
}

.top-tabs .tab {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  height: 50px;
  padding: 0 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 50px;
  color: #4c5565;
  cursor: pointer;
  scroll-snap-align: center;
  white-space: nowrap;
}

.tab.active {
  background: transparent;
  color: #244bdf;
  font-weight: 600;
}

.sub-tabs .active {
  color: #244bdf;
  font-weight: 400;
}

.tab.active::after,
.sub-tabs .active::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #244bdf;
}

.tab.active::after {
  display: block;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
}

.module-tabs {
  display: flex;
  gap: 6px;
  height: 38px;
  padding: 5px 12px 7px;
  overflow-x: auto;
  white-space: nowrap;
  background: #fff;
  border-bottom: 1px solid #f0f2f6;
}

.module-tabs::-webkit-scrollbar {
  display: none;
}

.pill {
  flex: 0 0 auto;
  width: auto;
  min-width: 64px;
  height: 26px;
  padding: 0 12px;
  border-radius: 13px;
  background: #f7f8fb;
  color: #4c5565;
  font-size: 12px;
  font-weight: 400;
  line-height: 26px;
  white-space: nowrap;
}

.pill.active {
  background: #edf3ff;
  color: #244bdf;
  font-weight: 500;
}

.locale-en .module-tabs {
  gap: 3px;
  padding-inline: 6px;
}

.locale-en .pill {
  min-width: 52px;
  padding: 0 8px;
  font-size: 10px;
}

.date-tabs .active {
  background: #244bdf;
  color: #fff;
}

.filters {
  display: flex;
  justify-content: space-between;
  height: 42px;
  padding: 10px 17px;
  background: #fff;
  border-bottom: 1px solid #f0f2f6;
}

.filters button {
  height: 22px;
  padding: 0;
  background: transparent;
  font-size: 13.52px;
  line-height: 22px;
  color: #343b49;
}

.filters span {
  font-size: 10px;
  color: #8b95a5;
}

.filters.single {
  display: block;
  padding-top: 8px;
}

.filters.single button {
  width: 104px;
}

.date-tabs {
  display: flex;
  gap: 7px;
  height: 44px;
  padding: 0 17px 13px;
  background: #fff;
  border-bottom: 1px solid #f0f2f6;
}

.date-tabs button {
  width: 50px;
  height: 31px;
  border-radius: 2px;
  background: #f7f8fb;
  font-size: 12.48px;
  color: #343b49;
}

.date-tabs button:last-child {
  width: 64px;
}

.locale-en .filters {
  gap: 8px;
  justify-content: space-between;
}

.locale-en .filters button {
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(50% - 4px);
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.locale-en .date-tabs {
  gap: 6px;
  padding-right: 8px;
  padding-left: 12px;
  overflow-x: auto;
}

.locale-en .date-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  font-size: 12px;
  line-height: 14px;
  white-space: nowrap;
}

.locale-en .date-tabs button:nth-child(3),
.locale-en .date-tabs button:nth-child(4) {
  width: 44px;
}

.locale-en .date-tabs button:last-child {
  width: 58px;
}

.compact {
  padding-bottom: 2px;
}

.card {
  width: 353px;
  margin: 0 0 8px 17px;
  background: #fff;
  border: 1px solid #eef1f5;
}

.table-head,
.row {
  display: grid;
  grid-template-columns: 194px 76px 83px;
  align-items: center;
  min-height: 35px;
  padding: 0;
  border-bottom: 1px solid #eef1f5;
  font-size: 12.48px;
}

.table-head {
  height: 35px;
  color: #7b8494;
  background: #f7f8fb;
  font-weight: 500;
}

.table-head span:nth-child(n + 2) {
  text-align: right;
  line-height: 16px;
}

.row {
  color: #5b6472;
}

.locale-en .table-head,
.locale-en .row {
  grid-template-columns: 202px 72px 79px;
  font-size: 12px;
}

.locale-en .table-head span:first-child {
  padding-left: 2px;
}

.locale-en .metric-label {
  max-width: 160px;
}

.locale-en .metric-info-wrap {
  margin-left: 3px;
}

.locale-en .metric-value,
.locale-en .metric-change {
  font-size: 12.4px;
}

.metric-row {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.metric-row:focus {
  outline: 2px solid rgba(36, 75, 223, 0.24);
  outline-offset: -2px;
}

.row > span:nth-child(n + 2),
.row > b {
  text-align: right;
  font-weight: 500;
  line-height: 17px;
}

.row i {
  font-style: normal;
  color: #244bdf;
}

.arrow {
  display: inline-block;
  width: 13px;
  color: #98a2b3;
}

.metric-name {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 100%;
  padding-right: 4px;
}

.metric-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-info-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin-left: 4px;
}

.metric-info {
  width: 15px;
  height: 15px;
  padding: 0;
  border: 1px solid #9aa8c0;
  border-radius: 50%;
  background: #fff;
  color: #244bdf;
  font-size: 10px;
  font-weight: 600;
  line-height: 13px;
  text-align: center;
}

.metric-info:focus {
  outline: 2px solid rgba(36, 75, 223, 0.24);
  outline-offset: 1px;
}

.metric-tooltip {
  position: absolute;
  left: -64px;
  top: 23px;
  z-index: 20;
  width: 228px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(32, 37, 52, 0.96);
  box-shadow: 0 8px 22px rgba(21, 28, 43, 0.22);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translateY(-4px);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
  white-space: normal;
}

.metric-tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 68px;
  width: 10px;
  height: 10px;
  background: rgba(32, 37, 52, 0.96);
  transform: rotate(45deg);
}

.metric-info-wrap.open .metric-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.row em {
  display: inline-block;
  min-width: 63px;
  height: 24px;
  border-radius: 2px;
  background: #244bdf;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  line-height: 24px;
  text-align: center;
}

.highlight,
.metric-row.active {
  background: #eef4ff;
  font-weight: 500;
}

.trend-card {
  position: relative;
  height: 252px;
  overflow: hidden;
  background: #fff;
  color: #999;
  font-size: 13.52px;
  text-align: center;
}

.trend-card.collapsed {
  display: none;
}

.overview-kpi-summary {
  padding: 11px 4px 3px;
  text-align: left;
}

.overview-kpi-title {
  margin: 0 0 4px;
  color: #717b8d;
  font-size: 11px;
  line-height: 18px;
}

.overview-kpi-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overview-kpi-value {
  color: #1f2633;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 38px;
}

.overview-kpi-comparisons {
  display: grid;
  gap: 5px;
  min-width: 142px;
}

.overview-kpi-comparisons p {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 5px;
  align-items: center;
  margin: 0;
  font-size: 10px;
  line-height: 15px;
}

.overview-kpi-comparisons b {
  text-align: right;
}

.overview-kpi-comparisons span {
  color: #70798a;
  white-space: nowrap;
}

.overview-mini-trend {
  height: 110px;
  padding: 0 2px 5px;
}

.overview-mini-trend svg {
  display: block;
  width: 100%;
  height: 70px;
}

.overview-mini-trend .period-switch {
  margin-top: 4px;
}

.overview-trend-grid {
  stroke: #e9eff9;
  stroke-width: 1;
}

.overview-trend-line {
  fill: none;
  stroke: #2f68e8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.chart-panel {
  position: relative;
  height: 216px;
  background: #fff;
}

.chart-legend-top {
  position: absolute;
  top: 7px;
  right: 6px;
  z-index: 1;
  display: flex;
  gap: 7px;
  color: #666;
  font-size: 9.6px;
}

.chart-legend-top span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.chart-legend-top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.svg-chart {
  display: block;
  width: 100%;
  height: 216px;
}

.grid-line {
  stroke: #edf0f6;
  stroke-width: 1;
}

.axis-line {
  stroke: #dfe4ef;
  stroke-width: 1;
}

.dash-line {
  stroke: #bcc4d5;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.axis-label {
  fill: #989fac;
  font-size: 8.8px;
}

.trend-card.realtime .x-label {
  font-size: 6.8px;
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(-35deg);
}

.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line.dashed {
  stroke-dasharray: 4 4;
}

.chart-point {
  fill: #fff;
  stroke-width: 1.8;
}

.period-switch {
  display: inline-flex;
  height: 26px;
  margin-top: 5px;
  border: 1px solid #244bdf;
  border-radius: 2px;
  overflow: hidden;
}

.period-switch button {
  min-width: 64px;
  padding: 0 11px;
  color: #244bdf;
  background: #fff;
  font-size: 11.44px;
  font-weight: 500;
}

.period-switch button + button {
  border-left: 1px solid #244bdf;
}

.period-switch .active {
  color: #fff;
  background: #244bdf;
}

.change-up {
  color: #ff4d4f;
}

.change-down {
  color: #1fbf75;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.sub-tabs {
  height: 42px;
  margin-top: 0;
}

.sub-tabs button {
  line-height: 42px;
}

.analysis {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 22px 8px;
  background: #fff;
  font-size: 12px;
  color: #8b95a5;
  border-bottom: 1px solid #f0f2f6;
}

.product-sub-tabs {
  display: flex;
  gap: 8px;
  padding: 8px 17px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #f0f2f6;
}

.product-sub-tabs[hidden] {
  display: none;
}

.product-sub-tabs::-webkit-scrollbar {
  display: none;
}

.product-sub-tabs button {
  flex: 0 0 auto;
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: #f7f8fb;
  color: #4c5565;
  font-size: 13px;
}

.product-sub-tabs button.active {
  background: #edf3ff;
  color: #244bdf;
  font-weight: 600;
}

.switch {
  display: flex;
  gap: 24px;
}

.switch button {
  height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #343b49;
}

.switch .active {
  color: #244bdf;
  font-weight: 600;
}

.table-icon,
.trend-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
}

.table-icon {
  border: 2px solid #244bdf;
  border-radius: 2px;
  background:
    linear-gradient(#244bdf, #244bdf) 0 50% / 100% 2px no-repeat,
    linear-gradient(#244bdf, #244bdf) 50% 0 / 2px 100% no-repeat;
}

.trend-icon {
  border-bottom: 2px solid #888;
  background:
    linear-gradient(90deg, transparent 2px, #888 2px 4px, transparent 4px 7px) 2px 12px / 16px 4px no-repeat,
    linear-gradient(90deg, transparent 2px, #888 2px 4px, transparent 4px 7px) 4px 7px / 16px 4px no-repeat;
  opacity: 0.75;
}

.data-card {
  width: 366px;
  margin: 8px 0 30px 22px;
  overflow: hidden;
  border: 1px solid #eef1f5;
  background: #fff;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.table-scroll::-webkit-scrollbar {
  display: none;
}

.dimension-trend {
  min-width: 100%;
  background: #fff;
  text-align: center;
}

.dimension-metric-tabs {
  display: flex;
  gap: 22px;
  height: 42px;
  padding: 0 4px;
  overflow-x: auto;
  border-bottom: 1px solid #eef1f5;
  white-space: nowrap;
}

.dimension-metric-tabs::-webkit-scrollbar {
  display: none;
}

.dimension-metric-tabs button {
  position: relative;
  flex: 0 0 auto;
  height: 42px;
  color: #2f3440;
  font-size: 14px;
}

.dimension-metric-tabs button.active {
  color: #244bdf;
  font-weight: 600;
}

.dimension-metric-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #244bdf;
}

.dimension-trend .chart-panel {
  height: 246px;
}

.dimension-trend .svg-chart {
  height: 216px;
}

.dimension-trend.realtime .x-label {
  font-size: 6.8px;
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(-35deg);
}

.frozen-table {
  width: max-content;
  min-width: 608px;
  border-collapse: separate;
  border-spacing: 0;
  color: #666;
  font-size: 13.52px;
}

.frozen-table th,
.frozen-table td {
  height: 36px;
  min-width: 112px;
  padding: 0 12px;
  border-right: 1px solid #eef1f5;
  border-bottom: 1px solid #eef1f5;
  background: #fff;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.frozen-table th {
  height: 43px;
  background: #f7f8fb;
  font-weight: 400;
}

.frozen-table td.numeric-cell {
  text-align: right;
}

.frozen-table .sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 160px;
  max-width: 160px;
  text-align: left;
  box-shadow: 10px 0 18px rgba(79, 88, 108, 0.08);
}

.frozen-table th.sticky-col {
  z-index: 3;
  text-align: center;
}

.frozen-table .hierarchy-col {
  min-width: 180px;
  max-width: 180px;
  overflow: hidden;
}

.frozen-table .sticky-col-0 {
  left: 0;
}

.frozen-table .sticky-col-1 {
  left: 180px;
}

.frozen-table .sticky-col-2 {
  left: 360px;
  box-shadow: 10px 0 18px rgba(79, 88, 108, 0.08);
}

.frozen-table td.hierarchy-col {
  height: auto;
  min-height: 36px;
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 19px;
  overflow-wrap: anywhere;
  word-break: normal;
  white-space: normal;
}

.frozen-table th.hierarchy-col {
  line-height: 18px;
  white-space: normal;
}

.frozen-table .tree-cell {
  position: sticky;
  left: 0;
  min-width: 180px;
  max-width: 180px;
  text-align: left;
  box-shadow: 10px 0 18px rgba(79, 88, 108, 0.08);
}

.frozen-table .tree-cell {
  padding-left: 8px;
  color: #687180;
  font-weight: 400;
}

.home-overview .date-bar {
  align-items: center;
  padding-right: 10px;
}

.home-overview .date-bar .date-tabs {
  height: 40px;
  padding: 4px 12px 6px;
}

.home-overview .date-tabs:not(.compact) button {
  height: 29px;
}

.home-overview .metrics {
  width: calc(100% - 24px);
  margin: 0 12px;
  border: 0;
  border-bottom: 1px solid #e5ebf5;
}

.home-overview .metrics .table-head,
.home-overview .date-tabs.compact,
.home-overview .analysis {
  display: none;
}

.tree-node {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.tree-node[data-tree-level="1"] {
  padding-left: 16px;
}

.tree-node[data-tree-level="2"] {
  padding-left: 32px;
}

.tree-node[data-tree-level="3"] {
  padding-left: 48px;
}

.tree-node-toggle,
.tree-node-leaf {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 28px;
  text-align: left;
}

.tree-node-toggle {
  padding: 0;
  color: #244bdf;
  cursor: pointer;
}

.tree-node-toggle:focus-visible {
  border-radius: 4px;
  outline: 2px solid #aebcf5;
  outline-offset: -2px;
}

.tree-node-arrow,
.tree-node-spacer {
  position: relative;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

.tree-node-arrow::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transform-origin: center;
}

.tree-node-toggle[aria-expanded="true"] .tree-node-arrow::before {
  transform: rotate(45deg);
}

.tree-node-label {
  flex: 1;
  min-width: 0;
  color: #687180;
  font-weight: 400;
  line-height: 19px;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: normal;
}

.tree-node-toggle .tree-node-label {
  color: #2f3440;
  font-weight: 600;
}

.ecommerce-pl-name-cell {
  display: flex;
  align-items: center;
  min-width: 0;
}

.summary-table.ecommerce-pl-summary-table {
  min-width: 100%;
  table-layout: fixed;
  font-size: 11px;
}

.ecommerce-pl-summary-table th,
.ecommerce-pl-summary-table td {
  padding-right: 4px;
  padding-left: 4px;
}

.ecommerce-pl-summary-table th:first-child,
.ecommerce-pl-summary-table td:first-child {
  width: 28%;
  white-space: normal;
}

.ecommerce-pl-summary-table th:not(:first-child),
.ecommerce-pl-summary-table td:not(:first-child) {
  width: 24%;
  white-space: nowrap;
}

.summary-table.store-pl-core-table,
.detail-table.store-pl-detail-table,
.summary-table.store-pl-category-table {
  min-width: 700px;
  table-layout: fixed;
  font-size: 11px;
}

.store-pl-core-table th,
.store-pl-core-table td,
.store-pl-detail-table th,
.store-pl-detail-table td,
.store-pl-category-table th,
.store-pl-category-table td {
  padding-right: 6px;
  padding-left: 6px;
}

.store-pl-core-table th:first-child,
.store-pl-core-table td:first-child,
.store-pl-detail-table th:first-child,
.store-pl-detail-table td:first-child,
.store-pl-category-table th:first-child,
.store-pl-category-table td:first-child {
  width: 22%;
}

.store-pl-core-table th:not(:first-child),
.store-pl-core-table td:not(:first-child),
.store-pl-detail-table th:not(:first-child),
.store-pl-detail-table td:not(:first-child),
.store-pl-category-table th:not(:first-child),
.store-pl-category-table td:not(:first-child) {
  width: 19.5%;
}

.store-pl-detail-table .tree-node[data-tree-level="0"] .tree-node-label {
  color: #2f3440;
  font-weight: 600;
}

.store-pl-detail-table .tree-node[data-tree-level="1"] .tree-node-label {
  font-weight: 400;
}

.store-pl-efficiency-wrap {
  margin-top: 12px;
}

.summary-table.store-pl-efficiency-table {
  min-width: 100%;
  table-layout: fixed;
  font-size: 11px;
}

.store-pl-efficiency-table th:first-child,
.store-pl-efficiency-table td:first-child {
  width: 40%;
}

.store-pl-efficiency-table th:not(:first-child),
.store-pl-efficiency-table td:not(:first-child) {
  width: 30%;
  padding-right: 6px;
  padding-left: 6px;
}

.detail-table.ecommerce-pl-detail-table {
  min-width: 100%;
  table-layout: fixed;
}

.ecommerce-pl-detail-table th:first-child,
.ecommerce-pl-detail-table td:first-child {
  width: 38%;
  white-space: normal;
}

.ecommerce-pl-detail-table th:not(:first-child),
.ecommerce-pl-detail-table td:not(:first-child) {
  width: 31%;
  padding-right: 4px;
  padding-left: 4px;
  white-space: nowrap;
}

.daypart-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.daypart-name {
  color: #303744;
  font-weight: 500;
  line-height: 18px;
}

.daypart-range {
  display: inline-flex;
  padding: 1px 7px;
  border-radius: 9px;
  background: #f1f4fa;
  color: #788396;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

.frozen-table tr.total td {
  height: 43px;
  background: #fafbfe;
}

.frozen-table tr.total .sticky-col {
  text-align: center;
}

.weather-modules {
  overflow-x: hidden;
}

.weather-module {
  padding: 12px 13px 0;
  background: #fff;
}

.weather-module + .weather-module {
  padding-top: 10px;
}

.weather-module-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.weather-module h3 {
  position: relative;
  margin: 0 0 8px;
  padding-left: 9px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
}

.weather-module h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: #244bdf;
}

.weather-module p {
  margin: 0 0 14px;
  color: #8b95a5;
  font-size: 12px;
  line-height: 18px;
}

.weather-switch {
  gap: 22px;
  padding-top: 30px;
}

.weather-switch button {
  height: 24px;
  font-size: 13px;
}

.weather-detail-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.weather-detail-scroll::-webkit-scrollbar {
  display: none;
}

.weather-detail-table {
  font-size: 12.48px;
}

.data-head,
.tree-row {
  display: grid;
  grid-template-columns: 211px 155px;
  padding: 0;
  border-bottom: 1px solid #eef1f5;
  font-size: 13.52px;
}

.data-head {
  height: 43px;
  align-items: center;
  color: #666;
  background: #f7f8fb;
  text-align: center;
}

.data-head span:nth-child(2),
.tree-row span:nth-child(2) {
  box-shadow: -12px 0 22px rgba(60, 68, 85, 0.12);
}

.tree-row {
  height: 36px;
  align-items: center;
  color: #666;
  background: #fff;
}

.tree-row span {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 8px;
}

.tree-row span:nth-child(1) {
  justify-content: flex-start;
}

.tree-row span:nth-child(2) {
  justify-content: center;
}

.tree-row.child span:nth-child(1) {
  padding-left: 15px;
}

.tree-row.total {
  height: 43px;
  background: #fafbfe;
}

.tree-row.total span:first-child {
  justify-content: center;
}

.table-filter {
  height: 42px;
  padding-left: 22px;
  padding-top: 0;
  align-items: flex-start;
}

.table-filter button {
  width: 112px;
  height: 28px;
  border: 1px solid #e1e6ef;
  border-radius: 3px;
  background: #f7f8fb;
  font-size: 13.52px;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 1000;
  display: none;
  align-items: flex-end;
  width: 390px;
  transform: translateX(-50%);
}

.drawer.open {
  display: flex;
}

.mask {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(15, 23, 42, 0.24);
}

.panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 78vh;
  overflow-y: auto;
  border-radius: 14px 14px 0 0;
  background: #fff;
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.12);
}

.panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 16px;
  border-bottom: 1px solid #eef1f5;
}

.panel h3 {
  margin: 0;
  font-size: 17px;
}

.panel header button {
  font-size: 24px;
  color: #7d8796;
}

.panel section {
  padding: 14px 16px 0;
}

.panel h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
}

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

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

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

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

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

.options button {
  height: 34px;
  border-radius: 4px;
  background: #f7f8fb;
  color: #4d5868;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.options .selected {
  background: #edf3ff;
  color: #244bdf;
  font-weight: 600;
}

.wheel-picker-section {
  padding-bottom: 14px !important;
}

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

.wheel-picker.single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 180px;
  margin: 0 auto;
}

.wheel-picker-column h4 {
  text-align: center;
}

.wheel-picker-viewport {
  position: relative;
  height: 132px;
  overflow: hidden;
}

.wheel-picker-viewport::before {
  position: absolute;
  top: 44px;
  right: 0;
  left: 0;
  z-index: 0;
  height: 44px;
  border-top: 1px solid #e4e8f0;
  border-bottom: 1px solid #e4e8f0;
  border-radius: 8px;
  background: #f7f8fb;
  content: "";
}

.wheel-picker-list {
  position: relative;
  z-index: 1;
  height: 132px;
  padding: 44px 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

.wheel-picker-list::-webkit-scrollbar {
  display: none;
}

.wheel-picker-option {
  display: block;
  width: 100%;
  height: 44px;
  color: #9299a5;
  font-size: 14px;
  scroll-snap-align: center;
  transition: color 0.15s ease, font-size 0.15s ease;
}

.wheel-picker-option.selected {
  color: #273142;
  font-size: 16px;
  font-weight: 600;
}

.multi-options .selected::before {
  content: "✓ ";
}

.panel input {
  width: 100%;
  height: 34px;
  margin-bottom: 10px;
  padding: 0 12px;
  border: 1px solid #e0e5ef;
  border-radius: 4px;
  outline: 0;
}

.panel footer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid #eef1f5;
}

.panel footer button {
  height: 40px;
  border-radius: 4px;
  background: #f7f8fb;
  font-weight: 600;
}

.panel footer .primary {
  background: #244bdf;
  color: #fff;
}

.pl-module {
  min-height: 806px;
  padding-bottom: 24px;
  background: #f7f8fb;
}

.pl-business-panel {
  display: none;
}

.pl-business-panel.active {
  display: block;
}

.pl-ownership {
  display: flex;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
}

.pl-segment button {
  min-width: 52px;
  height: 30px;
  padding: 0 12px;
  border-radius: 7px;
  background: #f5f6f9;
  color: #4e5665;
  font-size: 13px;
}

.pl-segment button.active {
  background: #2f55e7;
  color: #fff;
}

.pl-directory {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 9px 14px 11px;
  background: #fff;
  border-bottom: 1px solid #eceff4;
}

.pl-directory > span {
  grid-column: 1 / -1;
  color: #9aa2af;
  font-size: 10px;
}

.pl-directory a {
  padding: 8px 4px;
  border: 1px solid #e9ecf2;
  border-radius: 7px;
  background: #fafbfe;
  color: #4f5969;
  font-size: 11px;
  text-align: center;
  text-decoration: none;
}

.pl-tabs,
.pl-sub-tabs {
  display: flex;
  height: 42px;
  padding: 0 14px;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #eceff4;
}

.pl-tabs::-webkit-scrollbar,
.pl-sub-tabs::-webkit-scrollbar,
.pl-table-wrap::-webkit-scrollbar {
  display: none;
}

.pl-tabs button,
.pl-sub-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-width: 74px;
  padding: 0 10px;
  color: #444c5a;
  font-size: 13px;
}

.pl-tabs button.active,
.pl-sub-tabs button.active {
  color: #2f55e7;
  font-weight: 500;
}

.pl-tabs button.active::after,
.pl-sub-tabs button.active::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  border-radius: 2px;
  background: #2f55e7;
}

.pl-filter-row,
.pl-period-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
}

.pl-filter-row {
  border-bottom: 1px solid #f0f2f6;
}

.pl-filter-row > button {
  flex: 1;
  height: 30px;
  color: #4c5564;
  font-size: 13px;
  text-align: left;
}

.pl-period-row {
  padding-top: 4px;
  padding-bottom: 10px;
}

.pl-period-row .pl-segment {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: #f4f5f8;
}

.pl-period-row .pl-segment button {
  min-width: 46px;
  height: 28px;
  padding: 0 9px;
  background: transparent;
}

.pl-period-row .pl-segment button.active {
  background: #fff;
  color: #303744;
  box-shadow: 0 1px 5px rgba(51, 61, 80, 0.12);
}

.pl-month {
  height: 32px;
  color: #4c5564;
  font-size: 13px;
}

.pl-panel {
  display: block;
  scroll-margin-top: 12px;
}

.pl-panel + .pl-panel {
  margin-top: 12px;
}

.pl-page-section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  background: #fff;
  border-top: 1px solid #e8ebf1;
  border-bottom: 1px solid #eef0f4;
}

.pl-page-section-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #eef1ff;
  color: #2f55e7;
  font-size: 11px;
}

.pl-page-section-head h2 {
  margin: 0;
  color: #303744;
  font-size: 15px;
  font-weight: 600;
}

.pl-block {
  margin-top: 9px;
  padding: 0 14px 14px;
  background: #fff;
  border-top: 1px solid #f0f2f6;
  border-bottom: 1px solid #f0f2f6;
}

.pl-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
}

.pl-block-head h2,
.pl-section-title {
  margin: 0;
  color: #303744;
  font-size: 15px;
  font-weight: 600;
}

.pl-block-head span,
.pl-table-meta {
  color: #98a0ae;
  font-size: 11px;
}

.ecommerce-pl-note {
  margin: -3px 0 10px;
  color: #98a0ae;
  font-size: 11px;
  line-height: 18px;
}

.pl-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #edf0f4;
}

.pl-table {
  width: 100%;
  min-width: 520px;
  border-collapse: separate;
  border-spacing: 0;
  color: #5c6573;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.pl-table th,
.pl-table td {
  height: 38px;
  padding: 0 10px;
  border-right: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
  text-align: right;
  white-space: nowrap;
}

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

.pl-table th:last-child,
.pl-table td:last-child {
  border-right: 0;
}

.pl-table th {
  background: #f5f5fa;
  color: #8a92a0;
  font-weight: 500;
}

.pl-table th:first-child,
.pl-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 142px;
  max-width: 142px;
  text-align: left;
  white-space: normal;
  box-shadow: 5px 0 10px rgba(65, 75, 94, 0.05);
}

.pl-table th:first-child {
  z-index: 3;
  background: #f5f5fa;
  text-align: center;
}

.pl-table small {
  color: #a1a8b3;
  font-size: 10px;
  font-weight: 400;
}

.pl-positive {
  color: #27b78a !important;
}

.pl-negative {
  color: #ee7d86 !important;
}

.store-pl-core-table .pl-positive,
.store-pl-efficiency-table .pl-positive,
.store-pl-detail-table .pl-positive,
.store-pl-category-table .pl-positive {
  color: #ee7d86 !important;
}

.store-pl-core-table .pl-negative,
.store-pl-efficiency-table .pl-negative,
.store-pl-detail-table .pl-negative,
.store-pl-category-table .pl-negative {
  color: #27b78a !important;
}

.pl-sub-tabs {
  margin: 0 -14px 10px;
  padding: 0 14px;
}

.pl-chip-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
}

.pl-chip-row button {
  flex: 0 0 auto;
}

.pl-table-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.pl-control-panel {
  padding: 8px 14px 10px;
  background: #fff;
  border-bottom: 1px solid #edf0f4;
}

.pl-control-panel > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.pl-control-panel > div > span {
  flex: 0 0 50px;
  color: #5e6674;
  font-size: 12px;
}

.pl-control-panel .pl-segment,
.pl-selects {
  display: flex;
  gap: 5px;
  overflow-x: auto;
}

.pl-selects button {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 10px;
  border: 1px solid #e8ebf0;
  border-radius: 6px;
  color: #606978;
  font-size: 12px;
}

.detail-table {
  min-width: 680px;
}

.pl-section-title {
  padding: 14px 0 10px;
}

.month-table {
  min-width: 690px;
}

.pl-compare-row td {
  background: #fafbfc;
  color: #8b94a2;
}

.pl-compare-row td:first-child {
  padding-left: 30px;
  background: #fafbfc;
}

@media (max-width: 389px) {
  .data-card {
    width: calc(100% - 24px);
    margin-left: 12px;
  }

  .drawer {
    width: 100%;
  }
}

@media (min-width: 430px) {
  body {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    padding: 24px 0;
    background: #f5f7fa;
  }

  .phone {
    flex: 0 0 390px;
    border-radius: 32px;
    box-shadow:
      0 0 0 1px rgba(108, 117, 133, 0.18),
      0 0 0 10px #252b36,
      0 18px 46px rgba(39, 46, 59, 0.18);
  }

  .drawer {
    top: 24px;
    right: auto;
    bottom: auto;
    left: 50%;
    height: min(844px, calc(100vh - 48px));
    overflow: hidden;
    border-radius: 32px;
    transform: translateX(-50%);
  }
}

@media (min-width: 1050px) {
  .prototype-notes {
    position: fixed;
    top: 48px;
    left: calc(50% + 260px);
    display: block;
    width: min(320px, calc(50vw - 280px));
    overflow: hidden;
    border: 1px solid #e3e8f0;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(41, 51, 70, 0.1);
    color: #303744;
  }

  .notes-header {
    padding: 22px 22px 18px;
    background: linear-gradient(145deg, #f5f7ff 0%, #fff 72%);
    border-bottom: 1px solid #edf0f5;
  }

  .notes-badge {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 3px 9px;
    border-radius: 10px;
    background: #e9edff;
    color: #244bdf;
    font-size: 11px;
    line-height: 18px;
  }

  .notes-header h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 650;
    line-height: 28px;
  }

  .notes-header p,
  .notes-section p {
    margin: 0;
    color: #6d7788;
    font-size: 13px;
    line-height: 20px;
  }

  .notes-section {
    padding: 17px 22px;
    border-bottom: 1px solid #f0f2f6;
  }

  .notes-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 9px;
    color: #343b48;
    font-size: 14px;
    font-weight: 600;
  }

  .notes-section h3 span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #eef1ff;
    color: #244bdf;
    font-size: 11px;
  }

  .notes-section ul,
  .notes-section ol {
    margin: 0;
    padding-left: 20px;
    color: #667184;
    font-size: 13px;
    line-height: 22px;
  }

  .notes-section li + li {
    margin-top: 6px;
  }

  .critical-issue {
    padding: 7px 9px 7px 3px;
    border-radius: 8px;
    background: #fff6f5;
  }

  .critical-text {
    color: #d92d20;
    font-weight: 650;
  }

  .notes-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    color: #8791a0;
    font-size: 11px;
  }

  .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #36b37e;
    box-shadow: 0 0 0 3px rgba(54, 179, 126, 0.12);
  }
}
