.panel ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color: transparent;
  border-left: 1px solid #dda3ff;
}

.panel ::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: #eed1ff;
}

.panel ::-webkit-scrollbar-thumb:hover {
  background-color: #dda3ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  outline: none;
  font-family: "Roboto", sans-serif;
}

html {
  filter: hue-rotate(-30deg); /* invert(0.9) */
}

body {
  background-color: #f9f0ff;
  /* overflow: hidden; */
  /* border: 1px solid #bc4cff; */
  box-shadow: inset 0 0 0 4px #eed1ff;
  min-height: 100vh;
}

label {
  margin-left: 8px;
  margin-bottom: 1px;
  font-size: 15px;
  font-weight: 400;
  color: #9475a7;
}

p {
  /* margin-bottom: 8px; */
  text-align: center;
  font-weight: 600;
  color: #9475a7;
}

button,
textarea,
input[type="submit"],
input {
  z-index: 1;
  color: #9475a7;
  font-size: 15px;
  font-weight: 500;
  height: 36px;
  min-width: 36px;
  border-radius: 12px;
  border: 1px solid #dda3ff;
  background-color: #fff;
  padding: 4px 12px;
  transition: box-shadow 0.2s, color 0.2s;
  text-overflow: ellipsis;
}

textarea::placeholder,
input::placeholder {
  user-select: none;
  color: #b294c2;
  font-weight: 400;
}

button {
  user-select: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

button:hover,
textarea:hover,
input:hover {
  z-index: 0;
  box-shadow: 0 0 0 3px #f9f0ff;
  background-color: #f9f0ff;
  transition: box-shadow 0.15s, color 0.15s;
}

#map-search-input:hover {
  box-shadow: none;
}

button:active {
  box-shadow: 0 0 0 3px #eed1ff;
  transition: 0.1s;
}

button:focus-visible,
textarea:focus,
input:not(#map-search-input):focus {
  z-index: 2;
  box-shadow: 0 0 0 3px #eed1ff;
}

#content {
  margin: auto;
  width: min(100%, 1200px);
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
  padding: 24px;
  transition: padding 0.2s;
}

#title {
  color: #9475a7;
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 16px;
}

#info {
  width: 100%;
  display: flex;
  justify-content: space-between;
  /* margin-bottom: 24px; */
}

#info .panel:not(:last-child) {
  margin-right: 24px;
}

#info .panel {
  width: 100%;
}

#info #login {
  flex-grow: 2;
  align-items: center;
  /* max-width: 250px; */
}

#login p {
  margin-bottom: 0;
  margin-right: 16px;
  text-align: right;
}

#login .col {
  width: 100%;
  min-width: 64px;
}

#submit {
  margin-top: 18px;
  margin-left: 16px;
  color: #bc4cff;
  background-color: #dda3ff;
  border-color: #bc4cff;
  /* box-shadow: 0 0 0 3px #eed1ff; */
}

#info .panel {
  flex-basis: 0;
  flex-grow: 1;
}

#status-panel {
  filter: hue-rotate(0deg);
  transition: filter 0.5s;
}

#warning {
  z-index: 9;
  position: absolute;
  min-height: 0px;
  padding: 16px 48px;
  justify-content: center;
  box-shadow: none;
}

/* #filter {
  position: absolute;
  z-index: 8;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
} */

#attribute-wrapper {
  width: 100%;
  /* justify-content: space-around; */
  justify-content: center;
}

#map-wrapper {
  position: relative;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#query-output {
  width: 100%;
  height: min(50vw, 600px);
  margin-bottom: 24px;
  align-items: center;
  justify-content: center;
}

#table-wrapper {
  height: 100%;
  width: 100%;
  overflow: hidden;
  padding: 0;
  margin-right: 24px;
}

#table {
  overflow-y: auto;
  height: 100%;
  width: 100%;
}

#graph-wrapper {
  position: relative;
  padding: 0;
  padding-left: 8px;
  padding-right: 8px;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

#graph {
  width: 100%;
  height: 100%;
}

#graph-warn {
  display: none;
  min-height: 24px;
  padding: 16px;
  position: absolute;
  justify-content: center;
}

#map {
  margin-bottom: 12px;
  scale: 1;
}

#map path {
  z-index: 0;
  fill: #9475a780;
  /* stroke-opacity: 0.5; */
  stroke-width: 2px;
  transition: fill 0.15s;
}

#map path:hover,
#map path:focus,
#map .map-focus {
  z-index: 1;
  fill: #dda3ff;
  stroke: #bc4cff;
  /* transition: fill 0.15s; */
}

#login-submit {
  /* margin-top: 4px; */
  height: 32px;
  min-width: 100px;
}

#map-toolbar {
  position: absolute;
  bottom: 12px;
  display: flex;
}

#map-search {
  border-radius: 12px;
  transition: box-shadow 0.2s, color 0.2s;
}

#map-search input {
  margin: 0;
}

#map-search:has(#map-search-input:focus) {
  box-shadow: 0 0 0 3px #eed1ff !important;
  transition: 0.1s;
}

#map-search:hover {
  box-shadow: 0 0 0 3px #f9f0ff;
  transition: box-shadow 0.15s, color 0.15s;
}

.panel {
  display: flex;
  flex-flow: column nowrap;
  min-width: 64px;
  min-height: 64px;
  margin-bottom: 24px;
  border: 1px solid #bc4cff;
  border-radius: 18px;
  background-color: #fff;
  box-shadow: 0 0 0 4px #eed1ff;
  padding: 8px;
}

.panel input,
.panel textarea {
  height: 32px;
  /* margin-bottom: 8px; */
  /* border-radius: 12px; */
}

.panel button {
  height: 32px;
}

.panel button:hover,
.panel input:not(#map-search-input):hover,
.panel textarea:hover {
  box-shadow: 0 0 0 3px #f9f0ff;
}

.panel button:focus-visible,
.panel input:not(#map-search-input):focus,
.panel textarea:focus {
  box-shadow: 0 0 0 3px #eed1ff;
}

.radio button {
  min-width: 100px;
}

.radio {
  border-radius: 12px;
  /* box-shadow: 0 0 0 3px #eed1ff; */
}

.radio .selected {
  z-index: 2;
  color: #bc4cff;
  background-color: #dda3ff;
  border: 1px solid #bc4cff;
  box-shadow: 0 0 0 3px #eed1ff;
}

.table {
  height: 100%;
  width: 100%;
}

.table:not(:last-child) ol {
  border-right: 1px solid #dda3ff;
}

.table p {
  font-weight: 500;
  margin: 8px;
  white-space: nowrap;
}

.table ol {
  display: flex;
  flex-flow: column wrap;
  height: 900px;
  padding: 0;
}

.table li {
  color: #9475a7;
  padding: 4px 0px;
  margin-bottom: -1px;
  border-top: 1px solid #eed1ff;
  border-bottom: 1px solid #eed1ff;
  list-style: none;
  text-align: center;
}

.table li:nth-child(even) {
  background-color: #f9f0ff;
}

/* .table li:not(:last-child) {
  border-right: 1px solid #eed1ff;
} */

.attributes {
  overflow: hidden;
  width: 100%;
  max-width: 200px;
  height: min-content;
  padding: 0;
  padding-top: 8px;
}

.attributes:not(:last-child) {
  margin-right: 24px;
}

.attributes p {
  margin-bottom: 8px;
}

.attributes ol {
  padding: 0;
  display: flex;
  flex-flow: column;
}

.attributes li {
  color: #9475a7;
  width: 100%;
  text-align: center;
  list-style: none;
  padding: 6px;
  border-top: 1px solid #eed1ff;
  border-bottom: 1px solid #eed1ff;
  margin-top: -1px;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.attributes li:hover {
  z-index: 1;
  font-weight: 500;
  border-color: #dda3ff;
  box-shadow: 0 0 0 3px #f9f0ff;
  background-color: #f9f0ff;
  transition: box-shadow 0.15s, color 0.15s;
}

.attributes .selected {
  z-index: 2;
  color: #bc4cff;
  /* font-weight: 500; */
  background-color: #dda3ff;
  border-color: #bc4cff;
  box-shadow: 0 0 0 3px #eed1ff;
}

.attributes .selected:hover {
  background-color: #eed1ff;
  box-shadow: 0 0 0 3px #eed1ff;
  transition: box-shadow 0.15s, background-color 0.15s;
}

.row {
  display: flex;
  flex-flow: row nowrap;
}

.col {
  display: flex;
  flex-flow: column nowrap;
}

.left {
  margin-right               : 0;
  border-top-right-radius    : 0;
  border-bottom-right-radius : 0;
}

.center {
  margin        : 0;
  border-left   : none;
  border-radius : 0;
}

.right {
  margin-left               : 0;
  border-left               : none;
  border-top-left-radius    : 0;
  border-bottom-left-radius : 0;
}

.top {
  margin-bottom: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.bottom {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
}

@media (max-width: 800px) {
  #info {
    flex-flow: column;
  }

  #info .panel:not(:last-child) {
    margin-bottom: 24px;
  }

  #login {
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  #content {
    width: 100%;
    padding: 0;
    padding-top: 24px;
    transition: 0.2s;
  }

  .panel {
    border-radius: 0;
    border-left: none;
    border-right: none;
    transition: 0.2s;
  }

  #warning {
    width: 100vw;
  }

  #info .panel {
    margin-right: 0 !important;
  }

  #attribute-wrapper .attributes {
    margin-right: 0;
    height: auto;
  }

  #table-wrapper {
    margin: 0;
  }

  #query-output {
    flex-direction: column;
    height: 100vw;
  }
}
