.phone-directory-page {
  --phone-navy: #072c47;
  --phone-blue: #00769a;
  --phone-line: #c8d9e4;
  --phone-soft: #f2f7fa;
}

.phone-directory {
  width: 100%;
}

.phone-directory__general-phone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 16px;
  padding: 11px 15px;
  color: var(--phone-navy);
  background: #eef7fa;
  border: 1px solid #bfd9e3;
  border-radius: 8px;
  font-weight: 750;
}

.phone-directory__general-phone i {
  color: var(--phone-blue);
}

.phone-directory__general-phone a {
  color: #075b7a;
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.phone-directory__filters {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(260px, 1fr) auto auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid var(--phone-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(7 44 71 / 7%);
}

.phone-directory__field label {
  display: block;
  margin-bottom: 7px;
  color: var(--phone-navy);
  font-weight: 750;
  font-size: .9rem;
}

.phone-directory__field input,
.phone-directory__clear,
.phone-directory__print {
  min-height: 46px;
  border-radius: 7px;
  font: inherit;
}

.phone-directory__field input {
  width: 100%;
  border: 1px solid #aebfcb;
  padding: 0 42px 0 13px;
  color: var(--phone-navy);
  background: #fff;
}

.phone-directory__field input:focus,
.phone-directory__clear:focus-visible,
.phone-directory__print:focus-visible,
.phone-directory__page-link:focus-visible,
.phone-directory__unit-option:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 2px;
}

.phone-directory__combobox {
  position: relative;
}

.phone-directory__unit-clear {
  position: absolute;
  inset-inline-end: 7px;
  top: 7px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #27465c;
  background: transparent;
  font-size: 1.3rem;
  cursor: pointer;
}

.phone-directory__unit-clear:hover {
  background: #e4eef4;
}

.phone-directory__unit-options {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #9db5c7;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 16px 32px rgb(7 44 71 / 16%);
}

.phone-directory__unit-option,
.phone-directory__unit-status {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 5px;
  color: var(--phone-navy);
  background: transparent;
  text-align: start;
}

.phone-directory__unit-option {
  cursor: pointer;
}

.phone-directory__unit-option:hover {
  color: #fff;
  background: #075b7a;
}

.phone-directory__clear,
.phone-directory__print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid #075b7a;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.phone-directory__clear {
  color: #075b7a;
  background: #fff;
}

.phone-directory__print {
  color: #fff;
  background: #075b7a;
}

.phone-directory__clear:hover,
.phone-directory__print:hover {
  color: #fff;
  background: #06435b;
}

.phone-directory__count {
  margin: 0 0 12px;
  color: #425d70;
  font-size: .92rem;
}

.phone-directory__table-wrap {
  overflow-x: auto;
  border: 1px solid var(--phone-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(7 44 71 / 6%);
}

.phone-directory__table {
  width: 100%;
  border-collapse: collapse;
  color: var(--phone-navy);
}

.phone-directory__table th,
.phone-directory__table td {
  padding: 15px 17px;
  border-bottom: 1px solid #d6e2e9;
  text-align: start;
  vertical-align: middle;
}

.phone-directory__table th {
  color: #fff;
  background: #083b59;
  font-size: .9rem;
  letter-spacing: .01em;
}

.phone-directory__table tbody tr:nth-child(even) {
  background: var(--phone-soft);
}

.phone-directory__table tbody tr:hover {
  background: #e3f1f6;
}

.phone-directory__table tbody tr:last-child td {
  border-bottom: 0;
}

.phone-directory__table th:first-child { width: 23%; }
.phone-directory__table th:nth-child(2) { width: 21%; }
.phone-directory__table th:nth-child(3) { width: 36%; }
.phone-directory__table th:last-child { width: 20%; }

.phone-directory__unit,
.phone-directory__subunit,
.phone-directory__extension {
  display: block;
}

.phone-directory__name-title {
  margin-inline-end: .28em;
  color: #075b7a;
}

.phone-directory__unit {
  font-weight: 700;
}

.phone-directory__subunit {
  margin-top: 4px;
  color: #4d6678;
  font-size: .88rem;
}

.phone-directory__phone a {
  color: #075b7a;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.phone-directory__extension {
  color: var(--phone-navy);
  font-weight: 850;
}

.phone-directory__empty {
  padding: 28px;
  border: 1px solid var(--phone-line);
  border-radius: 9px;
  color: #455f72;
  background: var(--phone-soft);
  text-align: center;
}

.phone-directory__pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
}

.phone-directory__page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid #a9c0ce;
  border-radius: 6px;
  color: #075b7a;
  background: #fff;
  font-weight: 750;
  text-decoration: none;
}

.phone-directory__page-link:hover,
.phone-directory__page-link.is-active {
  color: #fff;
  border-color: #075b7a;
  background: #075b7a;
}

.phone-directory__page-link.is-disabled {
  opacity: .42;
  pointer-events: none;
}

@media (max-width: 920px) {
  .phone-directory__filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .phone-directory__filters {
    grid-template-columns: 1fr;
  }

  .phone-directory__table,
  .phone-directory__table tbody,
  .phone-directory__table tr,
  .phone-directory__table td {
    display: block;
    width: 100%;
  }

  .phone-directory__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .phone-directory__table tr {
    padding: 13px 15px;
    border-bottom: 1px solid var(--phone-line);
  }

  .phone-directory__table td {
    display: grid;
    grid-template-columns: minmax(100px, 35%) 1fr;
    gap: 12px;
    padding: 8px 0;
    border: 0;
  }

  .phone-directory__table td::before {
    content: attr(data-label);
    color: #526779;
    font-weight: 700;
  }

  .phone-directory__phone a,
  .phone-directory__extension {
    font-size: 1.02rem;
  }
}

@media print {
  .page-shell-hero,
  .phone-directory__filters,
  header,
  footer,
  .back-to-top {
    display: none !important;
  }
}
