/* 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; }
}

/* orbita:tagesverkaeufe - the card with the copies chart (report_live.html and admin/sales_overview.html);
   drawn by static/js/live-chart.js */
.lv-card { padding: 0; margin-bottom: 16px; }
.lv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; padding: 16px 20px 0; }
.lv-head h2 { font-size: 1.05rem; font-weight: 600; margin: 0; }
.lv-head-sub { display: block; font-size: 0.85rem; font-weight: 400; color: var(--text-muted); margin-top: 2px; }
.lv-ctrl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; max-width: 100%; }
.lv-ctrl .segmented > button { cursor: pointer; border: 0; background: transparent; font-family: inherit; white-space: nowrap; }
.lv-ctrl .segmented, .lv-period-ctrl .segmented { max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.lv-ctrl .segmented::-webkit-scrollbar, .lv-period-ctrl .segmented::-webkit-scrollbar { display: none; }
.lv-ctrl .segmented > button:hover:not(.active) { color: var(--text); }
.lv-chart { position: relative; padding: 12px 20px 16px; }
.lv-chart svg { display: block; width: 100%; height: 280px; overflow: visible; }
.lv-chart .lv-empty { height: 280px; display: grid; place-items: center; color: var(--text-muted); font-size: 0.9rem; }
.lv-axis { font-size: 11px; fill: var(--text-muted); font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.lv-grid { stroke: var(--border); stroke-width: 1; shape-rendering: crispEdges; }
.lv-bar { fill: var(--blue-500); }
.lv-bar.hl { fill: var(--blue-700); }
.lv-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); padding: 8px 12px; font-size: 0.85rem; color: var(--text); min-width: 150px; opacity: 0; transition: opacity 120ms ease; }
.lv-tip.show { opacity: 1; }
.lv-tip .d { font-weight: 600; margin-bottom: 4px; }
.lv-tip .r { display: flex; justify-content: space-between; gap: 14px; color: var(--text-muted); }
.lv-tip .r b { color: var(--text); font-variant-numeric: tabular-nums; }
.lv-tip .r.sub { padding-left: 10px; font-size: 0.8rem; }
@media (max-width: 560px) {
  .lv-head { padding-left: 12px; padding-right: 12px; }
  .lv-chart { padding: 10px 8px 12px; }
  .lv-chart svg, .lv-chart .lv-empty { height: 250px; }
  .lv-ctrl .segmented > button { padding: 0 10px; }
}
