/* orbita:verkaufsexport - the download box on the report pages
   (components/report_export.html). Tokens only, so the dark theme follows. */

.rp-export {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px 14px 20px;
  margin-bottom: 16px;
  animation: fadeIn var(--dur) ease both;
}
.rp-export-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
}
.rp-export-icon .ico { width: 20px; height: 20px; }
.rp-export-title {
  margin: 0;
  min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy-900);
}
.rp-export-actions { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
/* the scope menu: the portal dropdown (custom-select.js), as wide as its longest entry */
.rp-export-scope { width: 200px; }
.rp-export-scope .custom-select-trigger { height: 40px; }
.rp-export-btn {
  min-height: 40px;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease,
              border-color var(--dur-fast) ease;
}
.rp-export-btn .ico { width: 18px; height: 18px; }
.rp-export-btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* admin preview of one customer's statements */
.rp-vorschau { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 16px; }
.rp-vorschau strong { color: var(--navy-900); overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .rp-export { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 12px; }
  .rp-export-icon { display: none; }
  .rp-export-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .rp-export-scope { grid-column: 1 / -1; width: auto; }
  .rp-export-btn { justify-content: center; }
}
