/* TicketingReportsComponent (packs/ticketing/app/components/ticketing_reports_component.rb): the four reports as a row of links that wraps, the heading with the
   download beside it, the form that says what the report covers (its fields side by side where there is room, one under the other on a phone), then the shared
   figure strip and tables, which bring their own look.

   Tokens only and logical properties only, both enforced (test/styles/tokens_test.rb, test/styles/components_test.rb), so it reads on the light shell
   and the console, in light and in dark, and mirrors in a right-to-left language. Nothing pinned to an edge, no height in vh, and everything that holds
   words may shrink and wrap, so a language 40% longer never widens the page (WCAG 1.4.10). */

.ticketing-reports {
  display: grid;
  gap: var(--density-gap);
  min-inline-size: 0;
}

.ticketing-reports__kind-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticketing-reports__kind {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--target-min);
  padding-block: var(--space-1);
  padding-inline: var(--space-3);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--fg1);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.ticketing-reports__kind:hover {
  border-color: var(--accent-line);
}

.ticketing-reports__kind[aria-current="page"] {
  border-color: var(--accent);
  font-weight: 600;
}

.ticketing-reports__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-inline-size: 0;
}

.ticketing-reports__title {
  margin-block: 0;
  overflow-wrap: anywhere;
}

.ticketing-reports__presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-inline-size: 0;
}

.ticketing-reports__preset {
  display: inline-flex;
  align-items: center;
  min-block-size: var(--target-min);
  padding-block: var(--space-1);
  padding-inline: var(--space-3);
  border: 1px solid var(--control-line);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--fg1);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  max-inline-size: 100%;
}

.ticketing-reports__preset:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.ticketing-reports__preset[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: 650;
}

.ticketing-reports__filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  align-items: end;
  gap: var(--space-3);
  min-inline-size: 0;
}

.ticketing-reports__note {
  margin-block: 0;
  color: var(--fg2);
  font-size: var(--text-sm);
  overflow-wrap: anywhere;
}
