.custom-reports-section {
  min-width: 0;
  margin: 20px 0;
}

.custom-reports-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.custom-reports-heading h2 {
  margin: 0;
  color: #193b2c;
  font-size: 1.08rem;
}

.custom-reports-heading p {
  margin: 4px 0 0;
  color: #687a6d;
  font-size: .84rem;
}

.custom-reports-create,
.custom-report-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #24563a;
  border-radius: 7px;
  background: #24563a;
  color: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.custom-reports-create:hover,
.custom-report-open:hover {
  background: #193f2b;
}

.custom-reports-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 240px));
  gap: 14px;
  margin-top: 18px;
}

.custom-report-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 9px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dde8dc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(25, 48, 32, .07);
}

.custom-report-card h2 {
  margin: 0;
  color: #193b2c;
  font-size: .98rem;
  overflow-wrap: anywhere;
}

.custom-report-card p,
.custom-reports-empty {
  margin: 0;
  color: #64786a;
  font-size: .84rem;
  line-height: 1.45;
}

.custom-report-card p {
  flex: 1;
}

.custom-report-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eaf6ea;
  font-size: 1.25rem;
}

.custom-report-card .custom-report-open {
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: #eaf3eb;
  color: #1f2a1f;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}

.custom-report-card .custom-report-open:hover {
  background: #dfeee1;
}

.custom-reports-empty.error {
  color: #a52f2f;
}

@media (max-width: 560px) {
  .custom-reports-heading { align-items: flex-start; flex-direction: column; }
}

@media print {
  .custom-reports-section { display: none !important; }
}
