/* Tables (brandbook "Tables"): desktop lists. Sentence-case headers over a
   dark rule, light row rules, 56 px rows; .num for amounts (right-aligned,
   tabular), .no for note numbers, .act for the actions column. Core tables
   get it from templates/misc/table.html.twig, which wraps the table in
   .mm-table-scroll so a wide table scrolls inside itself, never the page. */
.mm-table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.mm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.mm-table caption {
  padding: 0 0 var(--mm-space-2);
  text-align: left;
  font-weight: 600;
}

.mm-table th {
  padding: 10px var(--mm-space-3);
  border-bottom: 1px solid var(--mm-text);
  color: var(--mm-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.mm-table th a {
  color: inherit;
  text-decoration: none;
}

.mm-table th a:hover,
.mm-table th.is-active {
  color: var(--mm-text);
}

.mm-table td {
  height: 56px;
  padding: var(--mm-space-2) var(--mm-space-3);
  border-bottom: 1px solid var(--mm-line);
  vertical-align: middle;
}

.mm-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mm-table td.num {
  font-weight: 700;
}

.mm-table .no {
  color: var(--mm-muted);
  font-variant-numeric: tabular-nums;
}

.mm-table .act {
  text-align: right;
  white-space: nowrap;
}

.mm-table .act .mm-btn {
  min-height: 36px;
  padding: 0 var(--mm-space-3);
  font-size: 14px;
}

.mm-table .act .mm-btn--icon {
  flex-basis: 36px;
  width: 36px;
  padding: 0;
}

/* The brandbook row hover: halfway between the page grey and the surface. */
.mm-table tbody tr:hover td {
  background: color-mix(in srgb, var(--mm-page) 50%, var(--mm-surface));
}

.mm-table__empty {
  color: var(--mm-muted);
}
