.reports-page {
  display: grid;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}

.reports-hero-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(circle at top right, rgba(77, 160, 255, 0.15), transparent 32%),
    #ffffff;
}

.reports-kicker {
  margin: 0 0 4px;
  color: #1d6ff2;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.reports-hero-card h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.reports-hero-card p {
  margin: 6px 0 0;
  color: #6d7788;
  font-weight: 700;
}

.reports-filter-card {
  display: grid;
  grid-template-columns: 170px 170px auto;
  gap: 10px;
  align-items: end;
  min-width: 520px;
}

.report-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-summary-card {
  background: #ffffff;
  border: 1px solid #dbe3f0;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(33, 54, 94, 0.06);
  position: relative;
  overflow: hidden;
}

.report-summary-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(29, 111, 242, 0.08);
}

.report-summary-card.green::after {
  background: rgba(23, 128, 74, 0.1);
}

.report-summary-card.orange::after {
  background: rgba(255, 154, 0, 0.13);
}

.report-summary-card.red::after {
  background: rgba(214, 48, 49, 0.1);
}

.report-summary-title {
  color: #6d7788;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 10px;
}

.report-summary-value {
  color: #152033;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 2;
}

.report-summary-note {
  color: #8a95a8;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
  position: relative;
  z-index: 2;
}

.report-section-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.report-section-header h3 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.report-section-header p {
  margin: 4px 0 0;
  color: #6d7788;
  font-size: 13px;
  font-weight: 700;
}

.report-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-width: 0;
}

.report-table-block {
  min-width: 0;
  max-width: 100%;
}

.reports-page table {
  min-width: 720px;
}

.reports-page th,
.reports-page td {
  white-space: nowrap;
}

.reports-page th.left,
.reports-page td.left {
  text-align: left;
}

.reports-page th.right,
.reports-page td.right,
.reports-page .right {
  text-align: right;
}

.reports-page th.right {
  padding-right: 18px;
}

.reports-page td.right {
  padding-right: 18px;
}

.reports-page th.left {
  padding-left: 14px;
}

.reports-page td.left,
.reports-page td:first-child {
  padding-left: 14px;
}

.profit-text {
  color: #17804a;
}

.loss-text {
  color: #d63031;
}

.expense-text {
  color: #9a5b00;
}

.report-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.report-pagination-info {
  color: #6d7788;
  font-size: 12px;
  font-weight: 800;
}

.report-pagination-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-btn {
  border: 1px solid #d5deea;
  background: #fff;
  color: #30415c;
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  padding: 0 10px;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
}

.pagination-btn:hover:not(:disabled) {
  background: #eef6ff;
  border-color: #9ecbff;
}

.pagination-btn.active {
  background: #1d6ff2;
  border-color: #1d6ff2;
  color: #fff;
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination-ellipsis {
  color: #8a95a8;
  font-weight: 900;
  padding: 0 4px;
}

.empty-box {
  border: 1px dashed #ccd3dd;
  padding: 14px;
  border-radius: 10px;
  color: #666;
  background: #fff;
}

@media (max-width: 1180px) {
  .report-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reports-hero-card,
  .report-two-columns {
    grid-template-columns: 1fr;
    display: grid;
  }

  .reports-filter-card {
    min-width: 0;
    grid-template-columns: 1fr;
  }
}

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

  .report-pagination {
    align-items: stretch;
  }

  .report-pagination-buttons,
  .report-pagination-info {
    width: 100%;
  }
}
