.glmp-browser {
  margin-top: 1.5rem;
  width: calc(100vw - 60px) !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw + 30px) !important;
  margin-right: 30px !important;
}

.glmp-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.glmp-filter label {
  display: block;
  font-weight: 600;
  margin-bottom: .4rem;
}

.glmp-filter input,
.glmp-filter select {
  width: 100%;
  box-sizing: border-box;
  padding: .65rem .7rem;
  font: inherit;
}

.glmp-help {
  margin: .25rem 0 .6rem;
}

.glmp-pop-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.glmp-pop-row label {
  font-weight: 400;
}

.glmp-pop-row input {
  margin-top: .35rem;
}

.glmp-check {
  margin-top: .7rem;
  font-weight: 400 !important;
}

.glmp-check input {
  width: auto;
  margin-right: .4rem;
}

#glmp-reset {
  align-self: end;
  padding: .65rem .9rem;
  font: inherit;
  cursor: pointer;
}

.glmp-downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1rem;
}

.glmp-download-button {
  padding: .65rem .9rem;
  font: inherit;
  cursor: pointer;
}

.glmp-download-button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.glmp-download-status {
  font-size: .92em;
}

.glmp-results-head {
  margin: 1rem 0 .75rem;
}

.glmp-results-help {
  margin: .4rem 0 0;
  font-size: .92em;
}

.glmp-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.glmp-table {
  font-size: 0.88em !important;
  width: 100%;
  min-width: 1100px;
  table-layout: fixed;
  border-collapse: collapse;
}

.glmp-table th,
.glmp-table td {
  text-align: left;
  vertical-align: top;
  padding: .5rem .35rem;
  border-bottom: 1px solid #ddd;
  overflow-wrap: normal;
  word-break: normal;
  font-size: inherit !important;
}

.glmp-table th {
  font-weight: 600;
  font-size: inherit !important;
}

.glmp-table th:nth-child(1) { width: 15%; }
.glmp-table th:nth-child(2) { width: 12%; }
.glmp-table th:nth-child(3) { width: 18%; }
.glmp-table th:nth-child(4) { width: 10%; }
.glmp-table th:nth-child(5) { width: 17%; }
.glmp-table th:nth-child(6) { width: 17%; }
.glmp-table th:nth-child(7) { width: 11%; }

.glmp-table td:last-child {
  white-space: nowrap;
}

.glmp-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.glmp-row-select {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.glmp-row-select input {
  width: auto;
  margin: 0;
}

/* On narrower screens, replace the wide table with readable record cards.
   This keeps all fields and the TXT link visible without requiring keyboard
   navigation or horizontal scrolling. */
@media (max-width: 800px) {
  .glmp-browser {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .glmp-table-wrap {
    overflow-x: auto;
  }

  .glmp-table {
    min-width: 900px;
  }
}

@media (max-width: 800px) {
  .glmp-filters {
    grid-template-columns: 1fr;
  }

  .glmp-pop-row {
    grid-template-columns: 1fr 1fr;
  }

  .glmp-table td {
    padding-left: 0;
  }

  .glmp-table td::before {
    position: static;
    display: block;
    width: auto;
    margin-bottom: .15rem;
  }
}
