/* Public reports.php — compact icon-only View / Download / Share */

/* Section titles + year banners — match page hero centering */
.report-section {
  text-align: center;
}

.report-section-header {
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--primary-color, #0d6efd);
  text-align: center;
}

.report-section-header h3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--primary-color, #0d6efd);
  font-size: 1.45rem;
  font-weight: 700;
  text-align: center;
}

.report-section-header h3 .lucide-icon,
.report-section-header h3 svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.report-year-block {
  text-align: center;
}

.report-year-block .year-title,
.report-section .year-title {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 0 auto 1rem;
  padding: 0.65rem 1.35rem;
  text-align: center;
  border-left: none;
  border-bottom: 3px solid var(--primary-color, #0d6efd);
  border-radius: 0.65rem;
  background: var(--bg-soft, #f5faf6);
  color: var(--text-color, #1f2937);
  font-size: 1.05rem;
  font-weight: 600;
}

.report-section .row {
  justify-content: center;
}

.report-card {
  text-align: center;
  align-items: center;
}

.report-card .report-icon {
  margin-left: auto;
  margin-right: auto;
}

.report-card .report-info {
  width: 100%;
  text-align: center;
}

.report-card .report-actions.report-actions-icons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  width: 100%;
  visibility: visible !important;
  opacity: 1 !important;
}

.report-card .report-actions.report-actions-icons .btn {
  display: none !important; /* legacy full-width text buttons */
}

.report-action-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  padding: 0 !important;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--primary-color, #1a5f2a) 28%, #d1d5db);
  background: var(--bg-card, #fff);
  color: var(--primary-ink, var(--primary-color, #1a5f2a)) !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(15, 31, 23, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
  cursor: pointer;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  line-height: 1;
}

.report-action-btn .lucide-icon,
.report-action-btn svg {
  width: 1.05rem !important;
  height: 1.05rem !important;
  stroke: currentColor !important;
  color: inherit !important;
  flex-shrink: 0;
}

.report-action-btn:hover,
.report-action-btn:focus-visible {
  background: var(--primary-color, #1a5f2a) !important;
  border-color: var(--primary-color, #1a5f2a) !important;
  color: var(--text-on-primary, #fff) !important;
  transform: translateY(-1px);
  outline: none;
}

.report-action-view {
  background: var(--primary-color, #1a5f2a) !important;
  border-color: var(--primary-color, #1a5f2a) !important;
  color: var(--text-on-primary, #fff) !important;
}

.report-action-view:hover,
.report-action-view:focus-visible {
  background: var(--primary-dark, #144a21) !important;
  border-color: var(--primary-dark, #144a21) !important;
  color: var(--text-on-primary, #fff) !important;
}

.report-action-missing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  opacity: 0.45;
}

.report-action-missing .lucide-icon,
.report-action-missing svg {
  width: 1.05rem !important;
  height: 1.05rem !important;
}

/* Type wells use brand gradients (app-public) — Lucide must use WCAG on-primary,
   not primary-ink (dark-on-dark after admin colour change). */
.report-card .report-icon {
  color: var(--icon-on-primary, var(--text-on-primary, #fff)) !important;
}
.report-card .report-icon .lucide-icon,
.report-card .report-icon svg,
.report-card .report-icon svg.lucide,
.report-card .report-icon i {
  color: var(--icon-on-primary, var(--text-on-primary, #fff)) !important;
  stroke: var(--icon-on-primary, var(--text-on-primary, #fff)) !important;
  -webkit-text-fill-color: var(--icon-on-primary, var(--text-on-primary, #fff)) !important;
  fill: none !important;
  opacity: 1 !important;
}

.report-share-menu {
  position: fixed;
  z-index: 1200;
  min-width: 11.5rem;
  max-width: min(18rem, calc(100vw - 1.5rem));
  padding: 0.35rem;
  background: var(--bg-card, #fff);
  border: 1px solid color-mix(in srgb, var(--primary-color, #1a5f2a) 14%, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 31, 23, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.report-share-menu[hidden] {
  display: none !important;
}

.report-share-menu button,
.report-share-menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary, #1a2e1f);
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.report-share-menu button:hover,
.report-share-menu a:hover,
.report-share-menu button:focus-visible,
.report-share-menu a:focus-visible {
  background: color-mix(in srgb, var(--primary-color, #1a5f2a) 8%, #fff);
  color: var(--primary-ink, var(--primary-color, #1a5f2a));
  outline: none;
}

.report-actions-icons {
  position: relative;
  overflow: visible !important;
}

.report-card {
  overflow: visible !important; /* share menu must not clip */
}

@media (max-width: 575.98px) {
  .report-action-btn,
  .report-action-missing {
    width: 2.6rem;
    height: 2.6rem;
  }
}

.report-action-lock {
  color: var(--primary-color, #0d6efd);
  border-color: color-mix(in srgb, var(--primary-color, #0d6efd) 35%, transparent);
  background: color-mix(in srgb, var(--primary-color, #0d6efd) 8%, transparent);
}

.report-member-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted, #6c757d);
  align-self: center;
}

.report-member-badge-open {
  display: inline-flex;
  align-items: center;
  opacity: 0.7;
}

.report-member-badge-open .lucide-icon,
.report-member-badge-open svg {
  width: 0.95rem;
  height: 0.95rem;
}

.report-pma-panel {
  margin-top: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid color-mix(in srgb, var(--primary-color, #0d6efd) 22%, transparent);
  background: color-mix(in srgb, var(--primary-color, #0d6efd) 5%, #fff);
}

.coop-pma-unlock {
  text-align: center;
}

.coop-pma-unlock-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.coop-pma-unlock-head .lucide-icon,
.coop-pma-unlock-head svg {
  width: 1rem;
  height: 1rem;
}

.coop-pma-unlock-hint {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  color: var(--text-muted, #6c757d);
  text-align: center;
}

.coop-pma-unlock-label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
  text-align: center;
}

.coop-pma-unlock-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: stretch;
}

.coop-pma-unlock-input {
  flex: 1 1 10rem;
  min-width: 0;
  max-width: 18rem;
  text-align: center;
}

.coop-pma-error {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #b02a37;
  text-align: center;
}

.coop-pma-unlock.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

.coop-pma-unlock.is-busy .coop-pma-unlock-btn {
  cursor: wait;
}

.report-card.is-share-target {
  outline: 2px solid color-mix(in srgb, var(--primary-color, #0d6efd) 55%, transparent);
  outline-offset: 3px;
  border-radius: 0.65rem;
}

