.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.census-directory {
  padding-top: 0;
  padding-bottom: 48px;
}

.census-directory-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.census-directory-head h2 {
  margin: 6px 0 8px;
  color: #1f2c43;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.census-directory-head p {
  margin: 0;
  color: #5d697a;
}

.census-directory-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e4e8ef;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(37, 55, 91, .08);
}

.census-table-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  background: #f8fafc;
  border-bottom: 1px solid #e7ebf1;
}

.census-search-field {
  position: relative;
}

.census-search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  color: #66758b;
  pointer-events: none;
}

.census-search-field input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px 10px 44px;
  border: 1px solid #cfd6e0;
  border-radius: 10px;
  background: #fff;
  color: #1f2c43;
  font: inherit;
}

.census-search-field input:focus {
  outline: 3px solid rgba(51, 81, 149, .14);
  border-color: #335195;
}

.census-table-status {
  min-height: 22px;
  padding: 14px 18px 8px;
  color: #66758b;
  font-size: 14px;
}

.census-table-wrapper {
  padding: 0 18px 18px;
}

.census-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e2e7ee;
  border-radius: 12px;
}

.census-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #fff;
}

.census-table th,
.census-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e9edf2;
  text-align: left;
  vertical-align: middle;
}

.census-table th {
  background: #335195;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}

.census-table tbody tr:last-child td {
  border-bottom: 0;
}

.census-table tbody tr:nth-child(even) {
  background: #f9fbfd;
}

.census-table tbody tr:hover {
  background: #f1f5fb;
}

.census-table td {
  color: #344258;
  font-size: 14px;
}

.census-table .census-name {
  min-width: 310px;
  color: #1f2c43;
  font-weight: 600;
}

.census-person-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.census-person-badge.legal {
  background: rgba(51, 81, 149, .10);
  color: #335195;
}

.census-person-badge.natural {
  background: rgba(121, 179, 58, .14);
  color: #537d20;
}

.census-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  padding-top: 16px;
}

.census-pagination button {
  min-width: 38px;
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid #d7dde7;
  border-radius: 8px;
  background: #fff;
  color: #335195;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.census-pagination button:hover:not(:disabled),
.census-pagination button:focus-visible {
  border-color: #335195;
  background: #eef3fb;
}

.census-pagination button.is-current {
  border-color: #335195;
  background: #335195;
  color: #fff;
}

.census-pagination button:disabled {
  opacity: .42;
  cursor: default;
}

.census-page-ellipsis {
  padding: 0 3px;
  color: #7a8798;
}

.census-table-loading,
.census-table-error,
.census-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 180px;
  padding: 30px;
  border: 1px dashed #d7dde7;
  border-radius: 12px;
  text-align: center;
  color: #5f6c7e;
}

.census-table-loading .spinner {
  width: 30px;
  height: 30px;
}

.census-table-error strong,
.census-empty strong {
  color: #1f2c43;
  font-size: 18px;
}

.census-table-error p,
.census-empty p {
  margin: 0 0 8px;
}

@media (max-width: 720px) {
  .census-directory {
    padding-bottom: 34px;
  }

  .census-table-toolbar {
    grid-template-columns: 1fr;
  }

  .census-table-toolbar .btn {
    width: 100%;
  }

  .census-table-wrapper,
  .census-table-status {
    padding-left: 12px;
    padding-right: 12px;
  }

  .census-pagination {
    justify-content: center;
  }

  .census-pagination button:first-child,
  .census-pagination button:last-child {
    flex: 1 1 100%;
  }
}
