/* Shared screen layout; print reports retain their existing paper layout. */
@media screen and (max-width: 900px) {
  body .uj-mobile-table-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  body:is(.uj-role-nds, .uj-page-admin-common, .uj-page-admin-coordinator-notes, .uj-page-admin-approvals, body) .uj-mobile-table-wrap table.uj-mobile-columns-table {
    display: table !important;
    width: 100% !important;
    min-width: 640px !important;
    max-width: none !important;
    table-layout: auto !important;
  }

  body:is(.uj-role-nds, .uj-page-admin-common, .uj-page-admin-coordinator-notes, .uj-page-admin-approvals, body) .uj-mobile-table-wrap table.uj-mobile-columns-table:has(thead tr > th:nth-child(4)) {
    min-width: 820px !important;
  }

  body:is(.uj-role-nds, .uj-page-admin-common, .uj-page-admin-coordinator-notes, .uj-page-admin-approvals, body) .uj-mobile-table-wrap table.uj-mobile-columns-table:has(thead tr > th:nth-child(7)) {
    min-width: 1100px !important;
  }

  body:is(.uj-role-nds, .uj-page-admin-common, .uj-page-admin-coordinator-notes, .uj-page-admin-approvals, body) .uj-mobile-table-wrap table.uj-mobile-columns-table:has(thead tr > th:nth-child(10)) {
    min-width: 1400px !important;
  }

  body:is(.uj-role-nds, .uj-page-admin-common, .uj-page-admin-coordinator-notes, .uj-page-admin-approvals, body) .uj-mobile-table-wrap table.uj-mobile-columns-table thead {
    display: table-header-group !important;
  }

  body:is(.uj-role-nds, .uj-page-admin-common, .uj-page-admin-coordinator-notes, .uj-page-admin-approvals, body) .uj-mobile-table-wrap table.uj-mobile-columns-table :is(th, td) {
    width: auto !important;
    min-width: 96px;
    max-width: none !important;
    box-sizing: border-box;
    writing-mode: horizontal-tb !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    line-height: 1.6 !important;
  }

  body:is(.uj-role-nds, .uj-page-admin-common, .uj-page-admin-coordinator-notes, .uj-page-admin-approvals, body) .uj-mobile-table-wrap table.uj-mobile-columns-table th {
    overflow-wrap: normal !important;
    padding: 10px !important;
  }

  body:is(.uj-role-nds, .uj-page-admin-common, .uj-page-admin-coordinator-notes, .uj-page-admin-approvals, body) .uj-mobile-table-wrap table.uj-mobile-columns-table :is(th, td):first-child {
    min-width: 52px !important;
  }

  body:is(.uj-role-nds, .uj-page-admin-common, body) .uj-mobile-table-wrap table.uj-mobile-columns-table:has(th[data-table-column="index"]) :is(th, td):first-child:not([colspan]) {
    width: 52px !important;
    white-space: nowrap !important;
  }

  body:is(.uj-role-nds, .uj-page-admin-common, body) .uj-mobile-table-wrap table.uj-mobile-columns-table:has(th[data-table-column="index"]) col:first-child {
    width: 52px !important;
  }

  body:is(.uj-role-nds, .uj-page-admin-common, .uj-page-admin-coordinator-notes, .uj-page-admin-approvals, body) .uj-mobile-table-wrap table.uj-mobile-columns-table :is(a, button, input, select, textarea, .badge, .file-chip, .attachment-gallery, .thumb-btn) {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  body:is(.uj-role-nds, .uj-page-admin-common, .uj-page-admin-coordinator-notes, .uj-page-admin-approvals, body) .uj-mobile-table-wrap table.uj-mobile-columns-table :is(.attachment-gallery, .row-actions, .form-actions) {
    flex-wrap: wrap;
  }

  body.uj-role-nds.uj-page-evaluator-form .uj-mobile-table-wrap table.uj-mobile-columns-table.evaluator-items-table {
    min-width: 1800px !important;
    border-collapse: collapse !important;
  }

  body.uj-role-nds.uj-page-evaluator-form .uj-mobile-table-wrap table.uj-mobile-columns-table.evaluator-items-table tbody {
    display: table-row-group !important;
  }

  body.uj-role-nds.uj-page-evaluator-form .uj-mobile-table-wrap table.uj-mobile-columns-table.evaluator-items-table thead {
    display: table-header-group !important;
  }

  body.uj-role-nds.uj-page-evaluator-form .uj-mobile-table-wrap table.uj-mobile-columns-table.evaluator-items-table tr {
    display: table-row !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.uj-role-nds.uj-page-evaluator-form .uj-mobile-table-wrap table.uj-mobile-columns-table.evaluator-items-table td {
    display: table-cell !important;
    border-radius: 0 !important;
    vertical-align: top !important;
    padding: 12px !important;
    min-height: 0 !important;
  }

  body.uj-role-nds.uj-page-evaluator-form .uj-mobile-table-wrap table.uj-mobile-columns-table.evaluator-items-table td::before {
    display: none !important;
  }
}

@media print {
  .uj-mobile-table-wrap {
    display: contents;
  }
}
