/* ========================================================================
   Exists In Check field reference tables

   Used by:
     docs/data-quality-checks/exists-in/how-tos/create-a-check.md

   The Field column never wraps so each name reads on one line, Required and
   Type stay as narrow as their icons, and Description takes the remaining
   width with a floor that keeps it readable when the table scrolls sideways.
   ======================================================================== */

.exists-in-fields-table table {
  width: 100%;
}

/* The theme puts min-width: 5rem on every th, which fights the narrow columns. */
.exists-in-fields-table table th {
  min-width: 0;
}

.exists-in-fields-table table th,
.exists-in-fields-table table td {
  vertical-align: top;
}

.exists-in-fields-table table th:nth-child(1),
.exists-in-fields-table table td:nth-child(1) {
  white-space: nowrap;
  padding-right: 1.5rem;
}

.exists-in-fields-table table th:nth-child(2):not(:last-child),
.exists-in-fields-table table td:nth-child(2):not(:last-child),
.exists-in-fields-table table th:nth-child(3):not(:last-child),
.exists-in-fields-table table td:nth-child(3):not(:last-child) {
  white-space: nowrap;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.exists-in-fields-table table th:last-child,
.exists-in-fields-table table td:last-child {
  width: 100%;
  min-width: 28rem;
}
