.report-heading {
  margin-bottom: 16px;
}

.report-filter-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 16px;
}

.report-filter-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.report-filter-intro > div {
  display: grid;
  gap: 4px;
}

.report-filter-intro strong {
  font-size: 16px;
}

.report-filter-intro small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.report-active-period {
  padding: 8px 11px;
  border-radius: 999px;
  background: #edf8f1;
  color: #087a46;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.report-period-form {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.report-period-form label {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.report-period-form label > span {
  color: #4f5b54;
  font-size: 13px;
  font-weight: 800;
}

.report-period-form select,
.report-period-form input {
  min-height: 44px;
  font-size: 14px;
}

.report-period-field[hidden],
.report-range-fields[hidden] {
  display: none !important;
}

.report-range-fields {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  gap: 8px;
  align-items: end;
}

.report-range-separator {
  padding-bottom: 13px;
  color: var(--muted);
  font-weight: 800;
}

.report-apply-button {
  min-width: 170px;
}

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

.report-summary-grid,
.report-detail-grid {
  margin-bottom: 16px;
}

.report-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.report-payment-card,
.report-inventory-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
}

.report-card-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.report-card-header > div:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.report-card-header strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-card-header small {
  color: var(--muted);
  font-size: 12px;
}

.report-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 900;
}

.report-card-icon-payment {
  background: #e8f7ee;
  color: #087a46;
}

.report-card-icon-stock {
  background: #edf2ff;
  color: #315bd6;
  font-size: 18px;
}

.report-card-total {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.report-payment-list {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 16px;
  padding-top: 18px;
}

.report-payment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
}

.report-payment-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.report-payment-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.report-payment-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 999px;
  background: #7c8b82;
}

.report-payment-dot-cash,
.report-payment-fill-cash {
  background: #12a150;
}

.report-payment-dot-qris,
.report-payment-fill-qris {
  background: #4361ee;
}

.report-payment-value {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.report-payment-track {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1ee;
}

.report-payment-fill {
  display: block;
  min-width: 3px;
  height: 100%;
  border-radius: inherit;
  background: #7c8b82;
}

.report-compact-empty {
  min-height: 120px;
}

.report-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f0f8f3;
  color: #087a46;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.report-live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16b364;
  box-shadow: 0 0 0 4px rgba(22, 179, 100, .12);
}

.report-inventory-kpis {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0 14px;
}

.report-inventory-kpis article {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px;
  border: 1px solid #e1e8e3;
  border-radius: 14px;
  background: #fbfdfb;
}

.report-inventory-kpis article.is-warning {
  border-color: #f3d7a4;
  background: #fffaf1;
}

.report-inventory-kpis span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.report-inventory-kpis strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.report-inventory-kpis strong em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 750;
}

.report-inventory-kpis small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.report-inventory-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 11px;
  background: #f5f7f6;
  color: var(--muted);
}

.report-inventory-note span {
  flex: 0 0 auto;
  color: #087a46;
  font-weight: 900;
}

.report-inventory-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.report-table-card {
  margin-bottom: 16px;
}

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

.report-detail-grid .data-table {
  min-width: 720px;
}

@media (max-width: 1100px) {
  .report-period-form {
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  }

  .report-apply-button {
    grid-column: 1 / -1;
    justify-self: end;
  }

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

  .report-detail-grid {
    grid-template-columns: 1fr;
  }
}

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

  .report-payment-card,
  .report-inventory-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .report-filter-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-period-form,
  .report-range-fields {
    grid-template-columns: 1fr;
  }

  .report-range-separator {
    display: none;
  }

  .report-apply-button {
    width: 100%;
    justify-self: stretch;
  }

  .report-metrics,
  .report-inventory-kpis {
    grid-template-columns: 1fr;
  }

  .report-card-header {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .report-card-total,
  .report-live-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .report-payment-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
