details.excel-menu {
  position: relative;
  display: inline-block;
}
details.excel-menu > summary {
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}
details.excel-menu > summary::-webkit-details-marker { display: none; }
details.excel-menu[open] > excel-report {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 158px;
  padding: 6px;
  gap: 5px;
  background: var(--solid, #0F1828);
  border: 1px solid var(--line2, #2a3446);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}
excel-report {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: .4rem;
}

excel-report [hidden] { display: none !important; }
excel-report [aria-disabled="true"] { opacity: .65; }
excel-report .btn { white-space: nowrap; }
excel-report .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.excel-section { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.usage-exports { display: grid; gap: .65rem; }
.usage-exports .excel-section strong { flex-basis: 100%; }
.print-controls excel-report .btn { font: inherit; }

@media (max-width: 600px) {
  excel-report .excel-download { order: -1; }
}

@media (max-width: 600px) and (pointer: coarse) {
  excel-report :is([data-excel-open], [data-excel-prepare]) { display: none; }
}
