.tw-table th button {
  display: flex;
  align-items: center;
  gap: .4rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tw-ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.tw-table th button:hover,
.tw-table th button:focus-visible {
  color: var(--tw-green);
}

.tw-table th button:focus-visible {
  outline: 3px solid rgba(77, 115, 95, .25);
  outline-offset: 4px;
  border-radius: 4px;
}

.tw-sort-indicator {
  font-size: .72rem;
  color: var(--tw-leaf);
}

.tw-directory-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.tw-directory-search {
  margin: 1rem 0;
}

.tw-directory-search label {
  display: grid;
  gap: .4rem;
  max-width: 34rem;
  font-weight: 800;
}

.tw-directory-search input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--tw-line);
  border-radius: 999px;
  background: #fff;
  color: var(--tw-ink);
  font: inherit;
}

.tw-directory-search input:focus {
  outline: 3px solid rgba(77, 115, 95, .22);
  border-color: var(--tw-leaf);
}

.tw-directory-view {
  display: flex;
  gap: .35rem;
  padding: .25rem;
  border: 1px solid var(--tw-line);
  border-radius: 999px;
  background: var(--tw-cream);
}

.tw-directory-view button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: .5rem .85rem;
  color: var(--tw-ink);
  font-weight: 750;
  cursor: pointer;
}

.tw-directory-view button.active {
  background: var(--tw-green);
  color: #fff;
}

.tw-unit-list {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

.tw-unit {
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: var(--tw-cream);
  color: var(--tw-green);
  font-weight: 800;
  white-space: nowrap;
}

.tw-unit-empty {
  color: #68736e;
  font-style: italic;
}

.tw-mailing-address {
  min-width: 13rem;
  margin: 0;
  font-style: normal;
  line-height: 1.45;
}

.tw-person {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 750;
}

.tw-person img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  object-fit: cover;
  background: var(--tw-cream);
}

.tw-ticket-worklist {
  display: grid;
  gap: 1rem;
}

.tw-ticket-work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, .8fr);
  gap: 1.5rem;
  align-items: start;
}

.tw-ticket-work h3 {
  margin: .25rem 0;
}

.tw-directory-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tw-unit-coverage strong small {
  font-size: .9rem;
  color: #68736e;
  font-weight: 750;
}

.tw-unit-coverage p {
  margin: .4rem 0 0;
  color: #68736e;
  font-size: .82rem;
  font-weight: 700;
}

.tw-progress {
  height: .45rem;
  margin-top: .65rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--tw-cream);
}

.tw-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--tw-leaf);
}

@media (max-width: 1050px) {
  .tw-directory-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .tw-directory-summary {
    grid-template-columns: 1fr;
  }

  .tw-ticket-work {
    grid-template-columns: 1fr;
  }
}
