/* The plain table, the filter row above a list and the paging below it. They
   began in the Kairo admin's stylesheet; the dashboard's lists (customers,
   catalog, audit log) took them up, then the admin, Kairo Data and Kairo
   Tools each carried a copy. One copy now; an app adds its own columns
   (`.table__number`, `.table__actions`) beside it. */

/* Selects share the text input's shell; only the native chrome differs. */
select.field__input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--k-color-control-border) 50%),
    linear-gradient(135deg, var(--k-color-control-border) 50%, transparent 50%);
  background-position: calc(100% - 1.125rem) 55%, calc(100% - 0.75rem) 55%;
  background-size: 0.375rem 0.375rem;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.table th {
  padding: 0.625rem 0.75rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--k-color-muted);
  border-bottom: 1px solid var(--k-color-line);
}

.table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--k-color-line);
  vertical-align: middle;
}

/* On the row, not the cells: a row background paints beneath the cells', so a
   tinted row still reads through the hover instead of being replaced by it.
   Worth having at all because carrying a value across a wide table by eye is
   the common mistake. */
.table tbody tr:hover {
  background-color: var(--k-color-lavender-soft);
}

.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
}

.pagination__controls {
  display: flex;
  gap: 1.25rem;
}

/* A filter input is one of several on a line: narrower and shorter than a
   form's field, which has the line to itself. */
.filters__input {
  width: auto;
  min-width: 9rem;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
