/* V20: reference tables use available width; long fields and descriptions wrap. */
body .dubow-content .doc-schema-wrap {
  max-width: 100%;
  overflow-x: hidden !important;
  container: schemaReference / inline-size;
}
body .dubow-content .doc-schema-wrap > table.doc-schema-table {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  table-layout: fixed !important;
}
body .dubow-content table.doc-schema-table th,
body .dubow-content table.doc-schema-table td {
  min-width: 0 !important;
  max-width: none !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  hyphens: none !important;
}
body .dubow-content table.doc-schema-table code {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
/* Most schema tables have four columns. Give Description the largest share. */
body .dubow-content table.doc-schema-cols-4 th:nth-child(1) { width: 25%; }
body .dubow-content table.doc-schema-cols-4 th:nth-child(2) { width: 17%; }
body .dubow-content table.doc-schema-cols-4 th:nth-child(3) { width: 15%; }
body .dubow-content table.doc-schema-cols-4 th:nth-child(4) { width: 43%; }
body .dubow-content table.doc-schema-cols-3 th:nth-child(1) { width: 28%; }
body .dubow-content table.doc-schema-cols-3 th:nth-child(2) { width: 19%; }
body .dubow-content table.doc-schema-cols-3 th:nth-child(3) { width: 53%; }
body .dubow-content table.doc-schema-cols-5 th:nth-child(1) { width: 20%; }
body .dubow-content table.doc-schema-cols-5 th:nth-child(2) { width: 12%; }
body .dubow-content table.doc-schema-cols-5 th:nth-child(3) { width: 13%; }
body .dubow-content table.doc-schema-cols-5 th:nth-child(4) { width: 32%; }
body .dubow-content table.doc-schema-cols-5 th:nth-child(5) { width: 23%; }
/* A table with five columns needs more space before switching to labeled rows. */
@container schemaReference (max-width: 740px) {
  body .dubow-content table.doc-schema-cols-5,
  body .dubow-content table.doc-schema-cols-5 tbody { display: block; width: 100%; }
  body .dubow-content table.doc-schema-cols-5 thead { display: none; }
  body .dubow-content table.doc-schema-cols-5 tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    padding: 13px 14px;
    border-bottom: 1px solid #e7eef4;
  }
  body .dubow-content table.doc-schema-cols-5 tbody td {
    display: block;
    border: 0 !important;
    padding: 0 !important;
  }
  body .dubow-content table.doc-schema-cols-5 tbody td:first-child,
  body .dubow-content table.doc-schema-cols-5 tbody td:nth-child(n+4) { grid-column: 1 / -1; }
  body .dubow-content table.doc-schema-cols-5 tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font: 700 10px/1.4 'Segoe UI',Arial,sans-serif;
    color: #6c8296;
    text-transform: uppercase;
    letter-spacing: .015em;
  }
  body .dubow-content table.doc-schema-cols-5 tbody tr:last-child { border-bottom: 0; }
}
@container schemaReference (max-width: 615px) {
  body .dubow-content table.doc-schema-cols-3,
  body .dubow-content table.doc-schema-cols-4,
  body .dubow-content table.doc-schema-cols-3 tbody,
  body .dubow-content table.doc-schema-cols-4 tbody { display: block; width: 100%; }
  body .dubow-content table.doc-schema-cols-3 thead,
  body .dubow-content table.doc-schema-cols-4 thead { display: none; }
  body .dubow-content table.doc-schema-cols-3 tbody tr,
  body .dubow-content table.doc-schema-cols-4 tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    padding: 13px 14px;
    border-bottom: 1px solid #e7eef4;
  }
  body .dubow-content table.doc-schema-cols-3 tbody td,
  body .dubow-content table.doc-schema-cols-4 tbody td {
    display: block;
    border: 0 !important;
    padding: 0 !important;
  }
  body .dubow-content table.doc-schema-cols-3 tbody td:first-child,
  body .dubow-content table.doc-schema-cols-4 tbody td:first-child,
  body .dubow-content table.doc-schema-cols-4 tbody td:nth-child(4) { grid-column: 1 / -1; }
  body .dubow-content table.doc-schema-cols-3 tbody td:nth-child(3) { grid-column: 1 / -1; }
  body .dubow-content table.doc-schema-cols-3 tbody td::before,
  body .dubow-content table.doc-schema-cols-4 tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font: 700 10px/1.4 'Segoe UI',Arial,sans-serif;
    color: #6c8296;
    text-transform: uppercase;
    letter-spacing: .015em;
  }
  body .dubow-content table.doc-schema-cols-3 tbody tr:last-child,
  body .dubow-content table.doc-schema-cols-4 tbody tr:last-child { border-bottom: 0; }
}

/* Keep the Field Finder's Requirement text on one line when it is a full table. */
@container fieldFinder (min-width: 821px) {
  body .dubow-content .doc-field-index .field-finder-table th:nth-child(1) { width: 34%; }
  body .dubow-content .doc-field-index .field-finder-table th:nth-child(2) { width: 14%; }
  body .dubow-content .doc-field-index .field-finder-table th:nth-child(3) { width: 10%; }
  body .dubow-content .doc-field-index .field-finder-table th:nth-child(4) { width: 15%; }
  body .dubow-content .doc-field-index .field-finder-table th:nth-child(5) { width: 27%; }
  body .dubow-content .doc-field-index .field-finder-table td.doc-field-index-required { white-space: nowrap; overflow-wrap: normal; }
}
body .dubow-content a.doc-mill-help-link,
body .dubow-content a.doc-field-index-mill-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 0;
  font: 700 11.5px/1.4 'Segoe UI',Arial,sans-serif;
  color: #077ba5 !important;
  text-decoration: none;
}
body .dubow-content a.doc-mill-help-link:hover,
body .dubow-content a.doc-field-index-mill-help:hover { text-decoration: underline; }
body .dubow-content a.doc-mill-help-link i { font-size: 9px; }
body .dubow-content .doc-field-index-details a.doc-field-index-mill-help { display: flex; margin-top: 7px; }
#jsonBuilderOverlay a.doc-builder-mill-help {
  display: inline;
  margin-left: 4px;
  white-space: nowrap;
  color: #087fa9 !important;
  font: 700 10.5px/1.3 'Segoe UI',Arial,sans-serif;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#jsonBuilderOverlay a.doc-builder-mill-help:hover { color: #075b7e !important; }
