/* Minimal enhancement loaded after the stable Ordenatec frontend. */

.report-content .ordenatec-summary details.accordion > summary.section-title::before {
  margin: 0 16px 0 0 !important;
  vertical-align: middle !important;
}

#ordenatec-report-content > .report-pdf-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px clamp(14px, 2vw, 24px) 18px;
  background: linear-gradient(180deg, #f3f7fd 0%, #eaf2fb 100%);
  border-top: 1px solid #dbe6f4;
}

.report-pdf-button {
  display: inline-flex;
  min-width: 280px;
  min-height: 44px;
  padding: 7px 13px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #06233d;
  background: linear-gradient(135deg, #9af4ff 0%, #8ff1cf 100%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(16, 207, 232, 0.16);
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.report-pdf-button:hover {
  filter: brightness(1.035);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(16, 207, 232, 0.22);
}

.report-pdf-button:focus-visible {
  outline: 3px solid rgba(23, 92, 255, 0.24);
  outline-offset: 3px;
}

.report-pdf-button:disabled {
  cursor: wait;
  filter: saturate(0.7);
  opacity: 0.78;
  transform: none;
}

.report-pdf-button svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.report-pdf-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  text-align: left;
}

.report-pdf-copy strong {
  color: inherit;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
}

.report-pdf-copy small {
  color: #31526d;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.25;
}

.pdf-export-frame {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 1px;
  height: 1px;
  border: 0;
  pointer-events: none;
}

@media (max-width: 680px) {
  .report-content .ordenatec-summary details.accordion > summary.section-title::before {
    margin-right: 14px !important;
  }

  #ordenatec-report-content > .report-pdf-footer {
    padding: 13px 12px 15px;
  }

  .report-pdf-button {
    min-width: 0;
    width: 100%;
  }

  .report-pdf-copy {
    align-items: center;
    text-align: center;
  }
}

@media print {
  .report-pdf-footer,
  .pdf-export-frame {
    display: none !important;
  }
}
