.product-preview {
  padding-bottom: 65px;
}
.preview-caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.preview-caption > span:first-child {
  color: var(--ink);
  font-weight: 550;
}
.dashboard-screen {
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr);
  background: white;
  border: 1px solid #d7dfda;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 55px -30px #1d332c38;
}
.dashboard-sidebar {
  background: #f4f6f5;
  border-right: 1px solid #e0e5e2;
  padding: 26px 16px 22px;
  display: flex;
  flex-direction: column;
}
.dashboard-wordmark {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.055em;
  padding-inline: 8px;
}
.demo-store {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-block: 32px;
  font-size: 14px;
  font-weight: 550;
}
.store-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 34px;
  background: #dce9e1;
  color: #365e4b;
  border: 1px solid #cadbd0;
  border-radius: 5px;
}
.demo-store small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 400;
}
.sidebar-items {
  display: grid;
  gap: 5px;
  font-size: 14px;
}
.sidebar-items > span {
  padding: 12px 10px;
  color: #5a625e;
  border-radius: 5px;
}
.sidebar-items .sidebar-active {
  color: #244e3a;
  background: #dfebe2;
  font-weight: 600;
}
.dashboard-main {
  min-width: 0;
}
.dashboard-toolbar {
  min-height: 62px;
  padding: 18px 27px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid #e6e9e7;
}
.dashboard-toolbar strong {
  color: var(--ink);
  font-weight: 500;
}
.dashboard-toolbar > span > span {
  color: #727973;
  margin-inline: 13px;
}
.demo-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #40594b;
}
.demo-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #648570;
}
.dashboard-content {
  padding: 27px;
  background: #fbfcfb;
}
.dashboard-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.dashboard-heading h2 {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
  text-wrap: initial;
}
.dashboard-heading p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 7px;
}
.sample-period {
  padding: 9px 12px;
  border: 1px solid #dce3de;
  background: #fff;
  border-radius: 5px;
  color: #515c55;
  font-size: 14px;
  white-space: nowrap;
}
.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.dashboard-kpis > div {
  min-width: 0;
  border: 1px solid #e1e6e2;
  background: #fff;
  border-radius: 7px;
  padding: 17px 15px 15px;
}
.dashboard-kpis dt {
  font-size: 14px;
  min-height: 2.8em;
  line-height: 1.4;
  color: #5d665f;
}
.dashboard-kpis dd {
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dashboard-kpis dd > span {
  font-size: 21px;
}
.dashboard-kpis .kpi-note {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  white-space: normal;
  color: #646d67;
  margin-top: 7px;
  line-height: 1.4;
}

.detail-row.has-preview {
  grid-template-columns: 0.4fr 1fr 1.25fr;
  gap: 36px;
  align-items: start;
}
.detail-dashboard {
  min-width: 0;
  align-self: center;
}
.detail-dashboard figcaption {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.detail-screen {
  border: 1px solid #dce3dd;
  background: #fff;
  border-radius: 9px;
  padding: 24px;
  box-shadow: 0 12px 32px -24px #1d332c40;
}
.detail-screen-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 25px;
}
.screen-breadcrumb {
  color: #657069;
  font-size: 14px;
}
.detail-screen h4 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.025em;
  margin: 6px 0 0;
}
.screen-period {
  border: 1px solid #dce3de;
  border-radius: 4px;
  padding: 7px 9px;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  color: #626d65;
}
.channel-comparison {
  padding-top: 18px;
  border-top: 1px solid #e4e8e5;
}
.channel-comparison + .channel-comparison {
  margin-top: 22px;
}
.channel-heading {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
}
.channel-heading strong {
  font-weight: 600;
}
.channel-heading > span {
  color: #626d65;
  font-variant-numeric: tabular-nums;
}
.channel-roas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 19px;
}
.channel-roas dt {
  font-size: 14px;
  color: #626d65;
  line-height: 1.4;
}
.channel-roas dd {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin-top: 5px;
}
.channel-roas > div:last-child dd {
  color: #2c6046;
}
.roas-bar {
  height: 5px;
  border-radius: 2px;
  margin-top: 11px;
}
.reported-bar {
  background: #a5bccc;
}
.fulfilled-bar {
  background: #6d9d7d;
}
.channel-comparison > p {
  font-size: 14px;
  color: #626d65;
  margin-top: 13px;
}
.channel-comparison > p strong {
  color: #3b4940;
  margin-left: 7px;
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.unattributed-note {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 15px;
  margin-top: 23px;
  background: #f1f5f7;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
}
.unattributed-note strong {
  font-weight: 550;
  color: #3c5e73;
}
.unattributed-note span {
  color: #526877;
}
.payout-total {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.payout-total > span {
  color: #626d65;
  font-size: 14px;
}
.payout-total strong {
  font-size: 34px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.payout-calendar-label {
  font-size: 14px;
  color: #626d65;
  margin-top: 25px;
}
.payout-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 3px;
  margin-block: 12px;
}
.payout-calendar > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  background: #f7f8f7;
  border-radius: 4px;
  padding: 13px 2px;
  color: #626d65;
  font-size: 14px;
}
.payout-calendar .payout-day {
  background: #edf4ef;
}
.payout-calendar strong {
  font-weight: 550;
  font-size: 14px;
  color: #355641;
  font-variant-numeric: tabular-nums;
}
.payout-calendar i {
  height: 17px;
}
.payout-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-block: 19px;
  border-bottom: 1px solid #e5eae6;
  font-size: 14px;
}
.payout-list dt {
  display: flex;
  align-items: center;
  gap: 11px;
  line-height: 1.4;
}
.payout-symbol {
  width: 29px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid #d5e2d9;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: #f0f5f1;
  color: #3d614b;
  font-weight: 600;
}
.cod-symbol {
  border-color: #efd8c8;
  background: #fcf1e9;
  color: #88502c;
}
.amazon-symbol {
  border-color: #d5e0e6;
  background: #eff4f7;
  color: #3c5e73;
}
.payout-list small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #626d65;
}
.payout-list .overdue-label {
  color: #88502c;
}
.payout-list dd {
  font-weight: 550;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) {
  .detail-row.has-preview {
    grid-template-columns: 1fr 1.1fr;
    gap: 25px 35px;
  }
  .has-preview > .detail-label {
    grid-column: 1 / -1;
  }
  .detail-screen {
    padding: 20px;
  }
  .detail-screen-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .payout-calendar,
  .payout-calendar-label {
    display: none;
  }
  .payout-list {
    margin-top: 20px;
  }
}
@media (max-width: 800px) {
  .detail-row.has-preview {
    grid-template-columns: 1fr;
  }
  .detail-dashboard {
    width: 100%;
    max-width: 620px;
    margin-top: 12px;
  }
  .has-preview .detail-copy p {
    max-width: 620px;
  }
}
@media (max-width: 520px) {
  .detail-screen {
    padding: 20px 16px;
  }
  .channel-roas {
    gap: 15px;
  }
  .channel-roas dd {
    font-size: 27px;
  }
  .payout-symbol {
    display: none;
  }
  .payout-list > div {
    gap: 12px;
  }
}
.dashboard-kpis .profit-kpi {
  background: #f0f7f2;
  border-color: #cfded3;
}
.profit-kpi dd {
  color: #2c6046;
}
.dashboard-panels {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  margin-top: 20px;
}
.screen-panel {
  background: white;
  border: 1px solid #e1e6e2;
  border-radius: 7px;
  padding: 20px;
  min-width: 0;
}
.panel-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px 14px;
}
.panel-title h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.015em;
}
.panel-title > span {
  font-size: 14px;
  color: var(--muted);
}
.sales-chart {
  display: flex;
  gap: 10px;
  margin-top: 39px;
}
.chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 177px;
  padding-bottom: 1px;
  font-size: 14px;
  color: #67706a;
}
.chart-columns {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.chart-gridlines {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  inset: 7px 0 33px;
  pointer-events: none;
}
.chart-gridlines i {
  display: block;
  border-top: 1px dashed #e4e9e5;
}
.chart-day {
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  color: #626d65;
}
.chart-bar-track {
  height: 177px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.chart-bar {
  position: relative;
  background: #477c5d;
  border-radius: 4px 4px 0 0;
  width: 80%;
  max-width: 38px;
}
.chart-bar span {
  position: absolute;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 500;
  color: #4e6153;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}
.screen-margin-list {
  margin-top: 18px;
  font-size: 14px;
}
.screen-margin-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-block: 9px;
  line-height: 1.4;
}
.screen-margin-list dt {
  color: #69716c;
}
.screen-margin-list dd {
  font-weight: 500;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.screen-margin-list .screen-subtotal {
  border-top: 1px solid #e6eae7;
}
.screen-subtotal dt {
  color: #343f37;
  font-weight: 500;
}
.screen-margin-list .screen-net {
  background: #e7f1ea;
  margin: 8px -8px -4px;
  padding: 12px 8px;
  border-radius: 3px;
}
.screen-net dt,
.screen-net dd {
  color: #2b5e43;
  font-weight: 600;
}
.outcomes-panel {
  margin-top: 16px;
}
.outcomes-track {
  display: flex;
  gap: 3px;
  height: 8px;
  overflow: hidden;
  border-radius: 3px;
  margin-top: 20px;
}
.outcomes-delivered {
  width: 80%;
  background: #6f9d7f;
}
.outcomes-rto {
  width: 12%;
  background: #d8a07c;
}
.outcomes-pending {
  width: 8%;
  background: #95bad2;
}
.outcomes-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 28px;
  margin-top: 15px;
  font-size: 14px;
  color: #626d65;
}
.outcomes-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.outcomes-legend strong {
  color: #36473b;
  font-variant-numeric: tabular-nums;
}
.outcomes-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 3px;
}
.legend-delivered {
  background: #6f9d7f;
}
.legend-rto {
  background: #d8a07c;
}
.legend-pending {
  background: #95bad2;
}

@media (max-width: 1150px) {
  .dashboard-screen {
    grid-template-columns: 160px minmax(0, 1fr);
  }
  .dashboard-sidebar {
    padding-inline: 10px;
  }
  .dashboard-content {
    padding: 22px;
  }
  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-kpis dd {
    font-size: 28px;
  }
  .dashboard-panels {
    grid-template-columns: 1fr;
  }
  .sales-chart {
    margin-top: 35px;
  }
  .screen-margin-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 25px;
  }
  .screen-margin-list > div {
    border-bottom: 1px solid #edf0ed;
  }
  .screen-margin-list .screen-subtotal {
    border-top: 0;
  }
  .screen-margin-list .screen-net {
    grid-column: 1 / -1;
  }
}
@media (max-width: 800px) {
  .dashboard-screen {
    grid-template-columns: minmax(0, 1fr);
  }
  .dashboard-sidebar {
    display: none;
  }
  .product-preview {
    padding-bottom: 45px;
  }
  .preview-caption {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .dashboard-content {
    padding: 22px;
  }
  .dashboard-toolbar {
    padding-inline: 22px;
  }
  .dashboard-panels {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .dashboard-screen {
    border-radius: 8px;
  }
  .dashboard-toolbar {
    padding: 14px 16px;
    min-height: 49px;
  }
  .dashboard-toolbar > .demo-indicator {
    display: none;
  }
  .dashboard-content {
    padding: 20px 14px;
  }
  .dashboard-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
  .dashboard-heading h2 {
    font-size: 25px;
  }
  .dashboard-heading p {
    line-height: 1.5;
  }
  .sample-period {
    padding: 7px 9px;
  }
  .dashboard-kpis {
    gap: 9px;
  }
  .dashboard-kpis > div {
    padding: 14px 10px;
  }
  .dashboard-kpis dd {
    font-size: clamp(19px, 5.8vw, 26px);
    letter-spacing: -0.045em;
    margin-top: 10px;
  }
  .dashboard-kpis dt,
  .dashboard-kpis .kpi-note {
    font-size: 14px;
  }
  .dashboard-kpis dt {
    min-height: 4.2em;
  }
  .screen-panel {
    padding: 17px 12px;
  }
  .sales-chart {
    gap: 6px;
    margin-top: 35px;
  }
  .chart-columns {
    gap: 4px;
  }
  .chart-axis {
    font-size: 14px;
  }
  .chart-day {
    font-size: 14px;
  }
  .chart-bar {
    width: 77%;
  }
  .screen-margin-list {
    display: block;
  }
  .screen-margin-list .screen-subtotal {
    border-top: 1px solid #e6eae7;
    border-bottom: 0;
  }
  .screen-margin-list > div {
    border-bottom: 0;
  }
  .outcomes-legend {
    flex-direction: column;
    gap: 11px;
  }
}
