/* ODSAS browsing panels. Scoped to category navigation only. */
.browse-browser {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
  color: #334155;
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.browse-browser *, .browse-browser *::before, .browse-browser *::after { box-sizing: border-box; }
.browse-browser [hidden] { display: none !important; }
.browse-directory, .browse-results {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(28, 46, 68, .03);
}
.browse-directory-header, .browse-results-header { padding: 20px 22px 14px; border-bottom: 1px solid #e5eaf0; }
.browse-browser h2, .odsas-public #generalContent .browse-browser h2 {
  margin: 0 0 12px;
  padding: 0;
  color: #23374d;
  font-size: 19px;
  line-height: 1.4;
}
.browse-directory-header label { display: block; margin-bottom: 6px; font-weight: 600; text-align: left; }
.browse-filter-control { position: relative; }
#generalContent .browse-browser #browse-filter { width: 100%; padding: 9px 38px 9px 10px; font: inherit; border: 1px solid #a9bacb; border-radius: 5px; background: #fff; }
#generalContent .browse-browser #browse-filter-clear {
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 0;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  color: #52677c;
  background: transparent;
  font-size: 23px;
  cursor: pointer;
}
#browse-filter::-webkit-search-cancel-button { display: none; }
.browse-browser #browse-count { margin: 8px 0 0; color: #64748b; font-size: 12px; line-height: 1.5; }
.browse-list { max-height: 320px; overflow-y: auto; padding: 8px; scrollbar-gutter: stable; }
#generalContent .browse-browser button.browse-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 2px 0;
  padding: 10px 12px;
  color: #245e91;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  box-shadow: none;
  text-align: left;
  text-shadow: none;
  font: inherit;
  line-height: 1.5;
  cursor: pointer;
}
.browse-name { overflow-wrap: anywhere; }
.browse-arrow { flex-shrink: 0; color: #8498ad; }
#generalContent .browse-browser button.browse-choice:hover { background: #f0f5fa; border-color: #dce3eb; text-decoration: none; }
#generalContent .browse-browser button.browse-choice[aria-pressed="true"] { color: #163e63; background: #e3edf7; border-color: #b5cce0; font-weight: 600; }
.browse-choice[aria-pressed="true"] .browse-arrow { color: #245e91; }
#generalContent .browse-browser button:focus-visible, .browse-browser input:focus-visible { outline: 3px solid #86b3d9; outline-offset: 1px; }
.browse-browser #browse-selection-status { margin: 0; color: #64748b; line-height: 1.6; }
.browse-results-content { min-height: 180px; padding: 22px; overflow: auto; overflow-wrap: anywhere; }
.browse-results-content:empty::before { content: "→"; display: block; margin-top: 30px; color: #c6d4e2; font-size: 38px; text-align: center; }
.browse-results-content[aria-busy="true"]::before { content: "…"; }
.browse-results-content table { width: 100%; border-collapse: collapse; }
.browse-results-content td { white-space: normal; }
#browse-no-match { padding: 12px; color: #64748b; }
@media screen and (min-width: 1000px) {
  .browse-browser { grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); align-items: stretch; }
  .browse-directory, .browse-results { display: flex; flex-direction: column; height: calc(100vh - 320px); min-height: 420px; max-height: 780px; }
  .browse-directory-header, .browse-results-header { flex-shrink: 0; }
  /* Compact category rows on desktop; keep other lists and touch targets unchanged. */
  #generalContent .browse-browser .browse-list button.browse-choice {
    margin: 0;
    padding: 3px 12px;
    line-height: 1.4;
  }
  .browse-list { flex: 1; min-height: 0; max-height: none; }
  .browse-results-content { flex: 1; min-height: 0; }
}
