/* ads-panel theme. Brand theming (4 panels by Host header) will hang off this via Lumo variants. */
html {
  --lumo-font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/*
 * GAM API authorization grid: keep every cell vertically centred.
 *
 * One column holds a Button and a link while the rest are plain text. Grid cells stretch to the row
 * height, so without this the text sits at the top of the row and the buttons in the middle, which
 * reads as a misaligned row. Set on the cell part because the cells live in the grid's shadow DOM
 * and cannot be reached from the view.
 */
vaadin-grid.gam-auth-grid::part(cell) {
  align-items: center;
}

/*
 * A network whose monitoring has been switched off from the authorization screen.
 *
 * Faded rather than hidden: the row has to stay readable, because "why is this MCM not being
 * watched" is a question asked far more often than it is answered, and a row that vanished would
 * look like a network that was never declared. Only the colour is dimmed -- the buttons in it still
 * work, since re-enabling is done from exactly this row.
 */
vaadin-grid.gam-auth-grid::part(gam-auth-disabled) {
  color: var(--lumo-secondary-text-color);
  background-color: var(--lumo-contrast-5pct);
}
