/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#sectionTitle {
  float: inline-start;
  display: none;
}

#refreshDiv {
  justify-content: flex-end;
  margin-bottom: 0.5em;
}

#refreshDiv > * {
  font-size: large;
  vertical-align: middle;
}

#refreshDiv > input {
  height: 1em;
  width: 1em;
}

#refreshButton {
  margin-top: 0;
}

/** Categories **/

#categories {
  display: inline-flex;
}

.category {
  font-size: larger;
  padding: 0.2em;
  text-align: center;
  cursor: pointer;
  /* Center category names */
  display: flex;
  align-items: center;
}

.category .category-name {
  pointer-events: none;
}

.category[selected] {
  font-weight: 700;
}

/** Content area **/

.main-content {
  flex: 1;
}

.tab {
  padding: 0.5em 0;
  overflow-x: auto;
}

.tab table {
  width: 100%;
  margin-block-end: 1em;
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  border-radius: 4px;
  border-spacing: 0;
  overflow: hidden;
  text-align: start;
}

th,
td {
  padding: 0.5em 1em;
  text-align: start;
}

th {
  background-color: AccentColor;
  color: AccentColorText;
  font-size: large;
  white-space: nowrap;
}

td {
  font-size: medium;
}

tbody tr:nth-child(even) {
  background-color: color-mix(in srgb, currentColor 6%, transparent);
}

#clearHTTPCache,
#clearDNSCache {
  margin-bottom: 1em;
}

.dns-lookup-controls {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
}

label {
  font-size: medium;
}

input {
  font-size: medium;
}

button {
  font-size: large;
}

#logging {
  font-size: medium;
}
