/* Host connection diagnostics */

.clients-panel {
  padding: var(--panel-inset);
}

.clients-heading,
.clients-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.clients-heading {
  justify-content: space-between;
  margin-bottom: 12px;
}

.clients-heading h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
}

.clients-summary,
.clients-note,
.clients-empty,
.clients-error {
  margin: 6px 0 0;
  color: #a9b4c5;
  font-size: 13px;
}

.clients-error {
  color: #f3b4af;
  margin-bottom: 12px;
}

.clients-note {
  margin-top: 12px;
}

.clients-table-scroll {
  min-height: 0;
  overflow: auto;
  border-radius: 8px;
}

.clients-table-scroll:focus-visible {
  outline: 2px solid #a8b7d4;
  outline-offset: 2px;
}

.clients-table {
  width: 100%;
  min-width: 1090px;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 12px;
}

.clients-table th,
.clients-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #343943;
}

.clients-table :is(th, td):last-child {
  border-right: 0;
}

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

.clients-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #242932;
  color: #dce4f2;
  font-size: 13px;
}

.clients-table th:first-child {
  width: 20%;
}

.clients-table th:nth-child(3) {
  width: 30%;
}

.clients-table td {
  vertical-align: top;
  background: #171a20;
}

.clients-table tr:nth-child(even) td {
  background: #1c2027;
}

.clients-table dl {
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
}

.clients-table dt {
  color: #a9b4c5;
}

.clients-table dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.clients-table .clients-name {
  font-weight: 650;
  color: #dce7fb;
}

.clients-table .clients-missing {
  color: #8390a2;
}

@media (max-width: 1100px) {
  .clients-table,
  .clients-table tbody,
  .clients-table td {
    display: block;
    min-width: 0;
  }

  .clients-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .clients-table tr {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    border-bottom: 1px solid #41454f;
  }

  .clients-table td { border: 0; }
  .clients-table td::before {
    content: attr(data-section);
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
  }
}

@media (max-width: 760px) {
  .clients-panel > * { flex-shrink: 0; }
  .clients-table-scroll { overflow: visible; }
}
