/* ---- Address directory --------------------------------------------------------------- */

.dir-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 14px;
  margin-bottom: 14px;
}
.dir-search {
  position: relative;
  flex: 1 1 320px;
  max-width: 520px;
}
.dir-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--text-4);
  pointer-events: none;
}
.dir-input,
.dir-select {
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--night-1);
  color: var(--text);
  font: 400 14.5px var(--font-sans);
  transition: border-color 160ms ease, box-shadow 220ms ease;
}
.dir-input {
  padding-left: 40px;
}
.dir-input::placeholder {
  color: var(--text-4);
}
.dir-input:hover,
.dir-select:hover {
  border-color: var(--line-3);
}
.dir-input:focus-visible,
.dir-select:focus-visible {
  outline: none;
  border-color: var(--cream);
  box-shadow: 0 0 18px -6px rgba(255, 214, 128, 0.6);
}
.dir-sel {
  flex: 0 1 240px;
}
.dir-select {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.dir-select option {
  background: var(--night-2);
  color: var(--text);
}
.dir-count {
  margin-left: auto;
  font-size: 13.5px;
  color: var(--text-4);
}
.dir-scroll {
  max-height: min(78vh, 900px);
}
.dir-none {
  padding: 28px 20px;
  color: var(--text-3);
}
.dir-table td {
  vertical-align: middle;
}
.dir-table th,
.dir-table td {
  padding-inline: 10px;
}
.dir-table .cell-g {
  white-space: nowrap;
}
.dir-table td:nth-child(2) {
  min-width: 250px;
}
.dir-table td:nth-child(6) {
  min-width: 130px;
}
.dir-table td:nth-child(7) {
  min-width: 100px;
}
.dir-table .btn {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .dir-count {
    margin-left: 0;
    flex-basis: 100%;
  }
}
