:root {
  --blue2: #2f72ef;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.muted {
  color: var(--muted);
}
body.processing:after {
  content: "Processing organization data…";
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--navy);
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  z-index: 200;
  box-shadow: 0 8px 25px #1235;
}
.logo {
  width: 38px;
  height: 38px;
  border-width: 3px;
  position: relative;
  border-radius: 2px;
}
.logo:after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 2px solid #2368d9;
  border-radius: 2px;
}
.directory-card {
  padding: 16px;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 14px;
  min-height: 150px;
  transition: 0.16s;
  position: relative;
}
.directory-card:hover {
  border-color: #79a9eb;
  box-shadow: 0 8px 24px #173c7018;
  transform: translateY(-1px);
}
.directory-card b {
  color: var(--navy);
  font-size: 15px;
}
.directory-card p {
  margin: 5px 0;
  color: #38536f;
}
.directory-card small {
  line-height: 1.55;
  color: var(--muted);
}
.directory-card .badge {
  margin-top: 9px;
}
.directory-photo,
.search-photo,
.drawer-photo,
.employee-photo {
  display: block;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-color: #e7eef6;
}
.directory-photo {
  width: 58px;
  height: 58px;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px #1233;
}
.search-results button {
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-photo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}
.search-results button > span:last-child {
  display: flex;
  flex-direction: column;
}
.search-results small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  text-transform: capitalize;
}
.search-type {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf2ff;
  color: var(--blue);
  font-weight: 800;
}
.search-empty {
  padding: 15px;
  color: var(--muted);
}
.register-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 14px;
  padding: 12px;
  background: #f7f9fc;
  border-radius: 12px;
}
.register-toolbar input,
.register-toolbar select,
.register-toolbar button {
  height: 39px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 0 11px;
}
.register-toolbar input {
  width: 260px;
}
.table-wrap {
  max-height: 620px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.table-wrap tr[data-id] {
  cursor: pointer;
}
.table-wrap tr[data-id]:hover,
.table-wrap tr[data-id]:focus {
  background: #eef5ff;
  outline: none;
}
.table-link,
.entity-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  text-align: left;
}
.table-link:hover {
  text-decoration: underline;
}
.empty-cell {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}
.quality-groups {
  display: grid;
  gap: 10px;
}
.quality-groups details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}
.quality-groups summary {
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
}
.quality-groups li {
  margin: 8px 0;
}
.quality-pass,
.empty-inline {
  padding: 14px;
  border-radius: 10px;
  background: #e8f7ef;
  color: #126b41;
  font-weight: 700;
}
.empty-state {
  min-width: 420px;
  padding: 42px;
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.as-of,
.secondary-toggle {
  height: 39px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 0 11px;
  font-size: 12px;
}
.as-of input {
  border: 0;
}
.node {
  padding-bottom: 24px;
  transition: 0.15s;
}
.node:hover {
  border-color: #76a8e9;
  box-shadow: 0 8px 22px #1233;
}
.avatar {
  box-shadow: 0 2px 7px #1233;
  background-repeat: no-repeat;
}
.toggle:hover {
  background: #dfeeff;
  border-color: #75a8df;
}
.incumbent-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 11px;
  margin: 6px 0 12px;
  padding: 2px 4px;
}
.incumbent-link:hover {
  text-decoration: underline;
}
.vacant-label {
  font-size: 11px;
  color: #8b6100;
  margin-top: 6px;
}
.position-avatar {
  font-size: 20px;
}
.org-node {
  min-height: 136px;
}
.unit-mark {
  font-size: 25px;
  color: var(--blue);
  line-height: 1;
}
.structure-position {
  border-top: 3px solid #6d86a5;
}
.node.highlight {
  outline: 4px solid #ffbd35;
  outline-offset: 3px;
}
.secondary-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.secondary-lines path {
  fill: none;
  stroke: #8e5bc7;
  stroke-width: 2;
  stroke-dasharray: 8 6;
}
.chart-canvas {
  position: relative;
}
.tree {
  z-index: 1;
}
.drawer {
  width: min(500px, 100vw);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.drawer > header {
  flex: 0 0 58px;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}
.drawer > header b {
  text-align: center;
}
.drawer header button[hidden] {
  visibility: hidden;
  display: block;
}
#drawerContent {
  overflow: auto;
  flex: 1;
  padding-bottom: 28px;
}
.drawer-identity {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  padding: 20px;
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 12px #1231;
}
.drawer-photo {
  width: 78px;
  height: 78px;
  border: 4px solid #fff;
  box-shadow: 0 3px 12px #1233;
  display: grid;
  place-items: center;
  background-repeat: no-repeat;
}
.drawer-identity h2 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 21px;
}
.drawer-identity p {
  margin: 0 0 7px;
  color: #38536f;
}
.drawer-identity small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.4;
}
.position-icon,
.unit-icon {
  border-radius: 18px;
  background: #e8f1ff;
  color: var(--blue);
  font-size: 35px;
}
.drawer-section {
  margin: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.drawer-section > summary {
  padding: 13px 15px;
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
  background: #fbfcfe;
}
.drawer-section > div {
  padding: 14px 15px;
  border-top: 1px solid #e6edf4;
}
.drawer .detail-grid {
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 10px;
  margin: 0;
}
.drawer dt {
  color: #5780aa;
}
.drawer dd {
  margin: 0;
  font-weight: 600;
  word-break: break-word;
}
.drawer h4 {
  color: var(--navy);
  margin: 14px 0 8px;
}
.entity-list {
  display: grid;
  gap: 7px;
}
.entity-link {
  width: 100%;
  border: 1px solid #dce6f0;
  background: #f8fbff;
  border-radius: 9px;
  padding: 9px 10px !important;
  display: flex;
  flex-direction: column;
  color: var(--navy);
}
.entity-link span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.entity-link:hover {
  border-color: #7aabe8;
  background: #eef5ff;
}
.drawer a {
  color: var(--blue);
}
@media (max-width: 1050px) {
  main {
    padding: 14px;
  }
  .filters select {
    min-width: 145px;
  }
  .summary {
    overflow: auto;
  }
  .view-tabs button {
    padding: 13px 10px;
  }
  .brand {
    font-size: 17px;
  }
}
.chart-shell {
  cursor: grab;
}
.chart-shell.panning {
  cursor: grabbing;
  user-select: none;
}
.chart-canvas {
  transition: none;
}
