.report-content {
  padding-top: 24px;
}

.report-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.report-top h1,
.report-top p,
.report-top small {
  margin: 0;
}

.report-top h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

.report-top p {
  margin-top: 6px;
  font-weight: 800;
}

.report-top span,
.report-top small {
  color: var(--muted);
}

.report-top small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

.report-actions {
  display: flex;
  gap: 10px;
}

.report-actions button,
.report-filter button,
.report-panel-head button,
.report-panel-head select,
.report-table button,
.report-footer button,
.report-footer select,
.top-products-report button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
}

.report-actions button {
  display: inline-flex;
  height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
}

.report-actions .primary,
.report-filter .primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--green-bright), var(--green));
}

/* Compact, clean stat cards */
.report-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.report-stats article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 88px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(23, 44, 39, 0.04);
}

.report-stats article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
}

.report-stats article > span.green {
  color: var(--green);
  background: #e8f8f0;
}

.report-stats article > span.blue {
  color: #1978df;
  background: #e8f2ff;
}

.report-stats article > span.yellow {
  color: #e49714;
  background: #fff3dc;
}

.report-stats article > span.purple {
  color: #9c36cc;
  background: #f5e8ff;
}

.report-stats article > span.red {
  color: #e43a46;
  background: #ffe8eb;
}

.report-stats p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.report-stats strong {
  display: block;
  margin: 4px 0 3px;
  overflow-wrap: anywhere;
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.report-stats small {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
}

/* Filter Section */
.report-filter {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}

.report-filter label > span {
  position: relative;
  display: block;
}

.report-filter input,
.report-filter select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  outline: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.report-filter input {
  padding: 0 36px 0 12px;
}

.report-filter select {
  padding: 0 10px;
  min-width: 130px;
}

.report-filter label > span i {
  position: absolute;
  right: 12px;
  top: 10px;
  color: var(--muted);
}

.report-filter button {
  display: inline-flex;
  height: 40px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}

/* Grid Layout */
.report-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 18px;
  align-items: start;
}

.report-left,
.report-side {
  display: grid;
  gap: 18px;
}

.report-chart,
.report-table,
.report-summary,
.top-products-report {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(23, 44, 39, 0.03);
}

.report-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 20px 0;
}

.report-panel-head h2,
.report-table h2,
.report-summary h2,
.top-products-report h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.report-panel-head > div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.report-panel-head select {
  height: 36px;
  padding: 0 28px 0 10px;
  font-size: 12.5px;
}

.report-panel-head button {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 6px;
}

.report-panel-head button.active {
  color: var(--green);
  border-color: rgba(15, 159, 99, 0.45);
  background: #eefaf4;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.chart-legend span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 4px;
}

.chart-legend .green-dot {
  background: var(--green);
}

.chart-legend .blue-dot {
  background: #2378dd;
}

.finance-chart {
  display: grid;
  grid-template-columns: 50px 1fr;
  min-height: 240px;
  padding: 8px 18px 16px;
  color: var(--muted);
  font-size: 11.5px;
}

.finance-chart > span {
  grid-column: 1;
  height: 34px;
  text-align: right;
  padding-right: 8px;
  font-weight: 600;
}

.finance-chart svg {
  grid-column: 2;
  grid-row: 1 / 7;
  width: 100%;
  height: 210px;
  background-image: linear-gradient(#edf1f0 1px, transparent 1px);
  background-size: 100% 34px;
}

.finance-chart polyline {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-chart .sales-line {
  stroke: var(--green);
}

.finance-chart .orders-line {
  stroke: #2378dd;
}

.chart-points circle {
  fill: var(--green);
  stroke: #fff;
  stroke-width: 2.5;
}

.finance-chart .x-axis {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 4px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  font-size: 11px;
}

.report-table h2 {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

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

.report-table table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.report-table th {
  background: #fbfcfc;
  color: var(--muted);
  font-weight: 800;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-bottom: 1px solid var(--line);
}

.report-table td,
.report-table th {
  padding: 11px 14px;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
}

.channel {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 11px;
}

.channel.web,
.channel.toko {
  color: var(--green);
  background: #eaf9f2;
}

.channel.cairo {
  color: #1978df;
  background: #e8f2ff;
}

.channel.shopee {
  color: #e66d2f;
  background: #fff0e8;
}

.channel.lazada,
.channel.tokopedia {
  color: #8942b8;
  background: #f6edfc;
}

.report-table button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  color: var(--muted);
}

.report-table button:hover {
  color: var(--green);
  border-color: var(--green);
}

.report-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.report-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.report-footer div {
  display: flex;
  gap: 8px;
  align-items: center;
}

.report-footer button,
.report-footer select {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.report-footer button.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

/* Sidebar Analytics */
.report-summary,
.top-products-report {
  padding: 18px 20px;
}

.report-summary p {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
}

.report-summary b {
  color: var(--ink);
  font-weight: 800;
}

.report-summary .net b {
  color: var(--green);
  font-size: 15px;
  font-weight: 900;
}

.top-products-report > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.top-products-report a {
  color: var(--green);
  font-weight: 800;
  font-size: 12px;
}

.top-products-report article {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.top-products-report article:last-of-type {
  border-bottom: 0;
}

.top-products-report i.sprite {
  display: block;
  width: 30px;
  height: 36px;
  background-image: url("assets/grocery-sprite.png");
  background-size: 800% 200%;
  background-position-y: 100%;
}

.top-products-report small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.top-products-report span {
  display: grid;
  gap: 2px;
  justify-items: end;
  font-weight: 800;
  font-size: 12.5px;
  color: var(--ink);
}

.top-products-report button {
  display: inline-flex;
  width: 100%;
  height: 38px;
  justify-content: center;
  align-items: center;
  margin-top: 14px;
  color: var(--green);
  border-color: rgba(15, 159, 99, 0.4);
}

.report-info {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid #cde4ff;
  border-radius: 7px;
  color: #376998;
  background: #eef7ff;
  font-weight: 700;
  font-size: 12.5px;
}

@media (max-width: 1500px) {
  .report-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1200px) {
  .report-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .report-filter {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .report-top {
    flex-direction: column;
  }
  .report-actions {
    width: 100%;
  }
  .report-actions button {
    flex: 1;
    justify-content: center;
  }
  .report-stats,
  .report-filter {
    grid-template-columns: 1fr;
  }
}
