[data-role="results"] {
  max-width: 42rem;
  width: 42rem;
  min-width: 9rem;
}

[data-role="results"][data-is-mobile="1"] {
  width: 100%;
  max-width: 100vw;
  min-width: 0;
  box-sizing: border-box;
}

[data-role="results"][data-is-mobile="1"] #frmSearch {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

[data-role="results"][data-is-mobile="1"] .help-panel {
  max-width: 100%;
  box-sizing: border-box;
}

.search-row {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
  align-items: center;
}

.help-btn {
  width: 2em;
  height: 2em;
  background-color: white;
  color: #666;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.help-btn:hover {
  background-color: #0070C0;
  color: white;
  border-color: #0070C0;
}

.help-panel {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  max-width: 42rem;
}

.help-panel h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #333;
}

.help-content p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.help-content strong {
  color: #333;
}

.help-content code {
  background-color: #e8e8e8;
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: monospace;
  font-size: 1rem;
}

.help-content em {
  color: #666;
  font-style: normal;
}

.close-help-btn {
  background-color: #0070C0;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

.close-help-btn:hover {
  background-color: #005a9e;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-label {
  font-size: 0.8em;
  color: #999;
}

.date-filter {
  padding: 0.25rem 0.4rem;
  border: 1px solid #ddd;
  border-radius: 3px;
  background-color: white;
  color: #666;
  font-size: 0.8em;
  cursor: pointer;
}

.date-filter:focus {
  outline: none;
  border-color: #999;
}

#frmSearch {
  outline: none;
  padding-left: 0.5rem;
  max-width: 38rem;
  width: 38rem;
  min-width: 7rem;
  border: 1px solid #999;
  color: #444;
}

.frmSearchSubmit {
  background-color: #999;
  color: #fff;
  border: solid #999 1px;
  cursor: pointer;
}

#frmSearch, .frmSearchSubmit {
  height: 2em;
  box-sizing: border-box;
}

#frmSearch input:focus {
  outline: 0;
}

main .linkToMemo {
  display: inline-block;
}

.lighter {
  margin-top: 0.7rem;
}

.no-results {
  margin-top: 2rem;
  color: #666;
  font-style: italic;
}

.date-deci:before {
  content: ': ';
}
.more:hover, .more:visited {
  color: #0070C0;
}
.pdf-icon {
  width: 0.9rem;
  height: 0.9rem;
  vertical-align: middle;
}
.search-icon {
  width: 0.7rem;
  height: 0.7rem;
  vertical-align: middle;
}

.tab-loading {
  color: #999;
  font-style: italic;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.no-results-tab {
  color: #666;
  font-style: italic;
  margin-top: 0.75rem;
}

.tabs {
  margin-top: 1rem;
}

.tab-bar {
  display: flex;
  border-bottom: 2px solid #0070C0;
  margin-bottom: 1rem;
}

.tab-btn {
  padding: 0.35rem 0.9rem;
  border: 1px solid #ddd;
  border-bottom: none;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 0.85rem;
  color: #555;
  border-radius: 3px 3px 0 0;
}

.tab-btn.active {
  background: white;
  color: #0070C0;
  border-color: #0070C0;
  font-weight: bold;
  margin-bottom: -2px;
}

.tab-btn:hover:not(.active) {
  background: #e8f0fe;
  color: #0070C0;
}

.pagination {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.page-nav {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}

.page-nav:hover {
  color: #333;
}

.page-info {
  color: #999;
  font-size: 0.85rem;
}
