.ciheam-hrdb-root {
  --ciheam-hrdb-primary: #0b549e;
  --ciheam-hrdb-primary-dark: #0a4683;
  --ciheam-hrdb-bg: #f3f4fb;
  --ciheam-hrdb-panel: #ffffff;
  --ciheam-hrdb-soft: #eef0f7;
  --ciheam-hrdb-border: #d8dde8;
  --ciheam-hrdb-text: #1f2430;
  --ciheam-hrdb-muted: #697386;
  --ciheam-hrdb-success: #198754;
  --ciheam-hrdb-warning: #b26a00;
  --ciheam-hrdb-danger: #b42318;
  position: relative;
}

.ciheam-hrdb-root.ciheam-hrdb-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 2000;
}

.ciheam-hrdb-root.ciheam-hrdb-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.75rem;
  height: 2.75rem;
  margin-top: -1.375rem;
  margin-left: -1.375rem;
  border: 0.28rem solid #cfd9ea;
  border-top-color: var(--ciheam-hrdb-primary);
  border-radius: 50%;
  animation: ciheam-hrdb-spin 0.7s linear infinite;
  z-index: 2001;
}

.ciheam-hrdb-root.ciheam-hrdb-loading .ciheam-hrdb-wrapper {
  pointer-events: none;
}

@keyframes ciheam-hrdb-spin {
  to {
    transform: rotate(360deg);
  }
}

.ciheam-hrdb-root .ciheam-hrdb-wrapper {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ciheam-hrdb-text);
  background: var(--ciheam-hrdb-bg);
  border: 1px solid var(--ciheam-hrdb-border);
  border-radius: 0.75rem;
  overflow: hidden;
}

.ciheam-hrdb-root .ciheam-hrdb-topbar {
  background: #fff;
  border-bottom: 1px solid var(--ciheam-hrdb-border);
}

.ciheam-hrdb-root .ciheam-hrdb-brand {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #173d85;
}

.ciheam-hrdb-root .ciheam-hrdb-subtitle {
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
  color: #4a5b78;
  font-size: 0.92rem;
}

.ciheam-hrdb-root .ciheam-hrdb-sidebar {
  background: #edf0f5;
  border-right: 1px solid var(--ciheam-hrdb-border);
  min-height: 100%;
}

.ciheam-hrdb-root .ciheam-hrdb-nav-title {
  text-transform: uppercase;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: #55637f;
  font-weight: 700;
}

.ciheam-hrdb-root .ciheam-hrdb-nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.5rem;
  color: #445571;
  font-size: 1.05rem;
}

.ciheam-hrdb-root .ciheam-hrdb-nav-link:hover,
.ciheam-hrdb-root .ciheam-hrdb-nav-link:focus {
  text-decoration: none;
  color: var(--ciheam-hrdb-primary);
  background: #e1e7f1;
}

.ciheam-hrdb-root .ciheam-hrdb-nav-link.active {
  background: #fff;
  color: #214fbe;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(16, 32, 64, 0.08);
}

.ciheam-hrdb-root .ciheam-hrdb-main {
  background: var(--ciheam-hrdb-bg);
}

.ciheam-hrdb-root .ciheam-hrdb-page-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.ciheam-hrdb-root .ciheam-hrdb-lead {
  color: #454d5b;
  font-size: 1.15rem;
}

.ciheam-hrdb-root .ciheam-hrdb-card {
  border: 1px solid #e0e4ed;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
}

.ciheam-hrdb-root .ciheam-hrdb-soft-card {
  background: #f8f9fd;
  border: 1px solid #e5e8f0;
  border-radius: 0.75rem;
}

.ciheam-hrdb-root .ciheam-hrdb-metric-value {
  font-size: 2.8rem;
  line-height: 1;
  font-weight: 700;
  color: #151b28;
}

.ciheam-hrdb-root .ciheam-hrdb-metric-label {
  font-size: 1.95rem;
  font-weight: 600;
  line-height: 1.05;
}

.ciheam-hrdb-root .ciheam-hrdb-stat-icon {
  width: 3.9rem;
  height: 3.9rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.ciheam-hrdb-root .ciheam-hrdb-tree-zone {
  border-radius: 1rem;
  border: 1px solid #e4e8f2;
  background: #f4f5fc;
  padding: 1.5rem;
}

.ciheam-hrdb-root .ciheam-hrdb-node-hq {
  background: var(--ciheam-hrdb-primary);
  color: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 10px 24px rgba(11, 84, 158, 0.25);
}

.ciheam-hrdb-root .ciheam-hrdb-node-inst {
  background: #fff;
  border-top: 6px solid var(--ciheam-hrdb-primary);
  border-radius: 0.8rem;
  border-left: 1px solid #dde2eb;
  border-right: 1px solid #dde2eb;
  border-bottom: 1px solid #dde2eb;
}

.ciheam-hrdb-root .ciheam-hrdb-branch {
  border-left: 2px solid #c6ccda;
  padding-left: 0.65rem;
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}

.ciheam-hrdb-root .ciheam-hrdb-chip {
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-block;
}

.ciheam-hrdb-root .ciheam-hrdb-chip-light {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.ciheam-hrdb-root .ciheam-hrdb-chip-info {
  background: #dbe6fb;
  color: #102d5f;
}

.ciheam-hrdb-root .ciheam-hrdb-chip-success {
  background: #d4f2e2;
  color: #0f6f3f;
}

.ciheam-hrdb-root .ciheam-hrdb-chip-warning {
  background: #fbe7ce;
  color: #934d00;
}

.ciheam-hrdb-root .ciheam-hrdb-chip-muted {
  background: #e7ebf3;
  color: #3e4655;
}

.ciheam-hrdb-root .ciheam-hrdb-chip-primary {
  background: var(--ciheam-hrdb-primary);
  color: #fff;
}

.ciheam-hrdb-root .ciheam-hrdb-btn-primary {
  background: var(--ciheam-hrdb-primary);
  border-color: var(--ciheam-hrdb-primary);
  color: #fff;
}

.ciheam-hrdb-root .ciheam-hrdb-btn-primary:hover,
.ciheam-hrdb-root .ciheam-hrdb-btn-primary:focus {
  background: var(--ciheam-hrdb-primary-dark);
  border-color: var(--ciheam-hrdb-primary-dark);
  color: #fff;
}

.ciheam-hrdb-root .ciheam-hrdb-btn-soft {
  background: #d7d9e3;
  border-color: #d7d9e3;
  color: #445878;
}

.ciheam-hrdb-root .ciheam-hrdb-table {
  margin-bottom: 0;
  background: #fff;
}

.ciheam-hrdb-root .ciheam-hrdb-table thead th {
  background: #dee2ec;
  border-bottom-width: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #3f4553;
  font-weight: 700;
}

.ciheam-hrdb-root .ciheam-hrdb-table tbody td {
  vertical-align: middle;
  border-top: 1px solid #e4e8ef;
}

.ciheam-hrdb-root .ciheam-hrdb-search-list .ciheam-hrdb-table {
  font-size: 0.95rem;
}

.ciheam-hrdb-root .ciheam-hrdb-search-list .ciheam-hrdb-table tbody p,
.ciheam-hrdb-root .ciheam-hrdb-search-list .ciheam-hrdb-table tbody span {
  font-size: 0.95rem;
  line-height: 1.35;
}

.ciheam-hrdb-root .ciheam-hrdb-avatar {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  object-fit: cover;
  border: 1px solid #d6dde8;
}

.ciheam-hrdb-root .ciheam-hrdb-avatar-lg {
  width: 11rem;
  height: 11rem;
  border-radius: 1rem;
  object-fit: cover;
  border: 1px solid #d6dde8;
}

.ciheam-hrdb-root .ciheam-hrdb-initial {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  font-weight: 700;
  color: #1f3358;
  background: #cdd9f4;
}

.ciheam-hrdb-root .ciheam-hrdb-initial-alt-a {
  background: #d8e4ff;
}

.ciheam-hrdb-root .ciheam-hrdb-initial-alt-b {
  background: #f2d9cb;
}

.ciheam-hrdb-root .ciheam-hrdb-stat-icon-blue {
  background: #dce7fb;
  color: #0b549e;
}

.ciheam-hrdb-root .ciheam-hrdb-stat-icon-blue-soft {
  background: #dae7f3;
  color: #0b549e;
}

.ciheam-hrdb-root .ciheam-hrdb-stat-icon-steel {
  background: #e2e6f8;
  color: #4d5f85;
}

.ciheam-hrdb-root .ciheam-hrdb-stat-icon-sand {
  background: #f6e9df;
  color: #8f4e09;
}

.ciheam-hrdb-root .ciheam-hrdb-map-panel {
  min-height: 270px;
  background: #d7d9df;
  position: relative;
}

.ciheam-hrdb-root .ciheam-hrdb-map-legend {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: 290px;
}

.ciheam-hrdb-root .ciheam-hrdb-form .form-control,
.ciheam-hrdb-root .ciheam-hrdb-form .custom-select {
  border-color: #d4dae5;
  min-height: 46px;
}

.ciheam-hrdb-root .ciheam-hrdb-form .form-control:focus,
.ciheam-hrdb-root .ciheam-hrdb-form .custom-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(11, 84, 158, 0.15);
  border-color: #8ab3df;
}

.ciheam-hrdb-root .ciheam-hrdb-divider {
  border-top: 1px solid #d8dde8;
}

.ciheam-hrdb-root .ciheam-hrdb-pagination .page-link {
  color: #4e5c77;
  border-color: #cfd5e2;
}

.ciheam-hrdb-root .ciheam-hrdb-pagination .page-item.active .page-link {
  background: var(--ciheam-hrdb-primary);
  border-color: var(--ciheam-hrdb-primary);
}

.ciheam-hrdb-root .ciheam-hrdb-alert-tile {
  background: var(--ciheam-hrdb-primary);
  color: #fff;
  border-radius: 0.75rem;
}

.ciheam-hrdb-root .ciheam-hrdb-state {
  border: 1px dashed #bec8d9;
  border-radius: 0.75rem;
  background: #f8faff;
}

.ciheam-hrdb-root .ciheam-hrdb-print-fab {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1040;
}

.ciheam-hrdb-root .ciheam-hrdb-accordion-card .card-header {
  background: #c7d4ea;
  border-bottom: 1px solid #adbed8;
}

.ciheam-hrdb-root .ciheam-hrdb-accordion-card .btn-link {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0b457d;
}

.ciheam-hrdb-root .ciheam-hrdb-accordion-card .btn-link:hover,
.ciheam-hrdb-root .ciheam-hrdb-accordion-card .btn-link:focus {
  text-decoration: none;
}

.ciheam-hrdb-root .ciheam-hrdb-note-box {
  border: 1px solid #bbc4d4;
  border-radius: 0.5rem;
  background: #f0f4fa;
}

@media (max-width: 991.98px) {
  .ciheam-hrdb-root .ciheam-hrdb-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--ciheam-hrdb-border);
  }

  .ciheam-hrdb-root .ciheam-hrdb-page-title {
    font-size: 2.1rem;
  }

  .ciheam-hrdb-root .ciheam-hrdb-metric-label {
    font-size: 1.45rem;
  }

  .ciheam-hrdb-root .ciheam-hrdb-metric-value {
    font-size: 2.2rem;
  }

  .ciheam-hrdb-root .ciheam-hrdb-avatar-lg {
    width: 7rem;
    height: 7rem;
  }
}

@media (max-width: 767.98px) {
  .ciheam-hrdb-root .ciheam-hrdb-wrapper {
    border-radius: 0.5rem;
  }

  .ciheam-hrdb-root .ciheam-hrdb-topbar {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .ciheam-hrdb-root .ciheam-hrdb-brand {
    font-size: 1.45rem;
  }

  .ciheam-hrdb-root .ciheam-hrdb-page-title {
    font-size: 1.85rem;
  }

  .ciheam-hrdb-root .ciheam-hrdb-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .ciheam-hrdb-root .ciheam-hrdb-print-fab {
    width: 3.2rem;
    height: 3.2rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }
}


