.centered-org-chart {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.tree {
  transition: transform 0.3s ease;
  transform-origin: top left;
}

.controls {
  position: fixed;
  bottom: 20px;
  right: 10px;
  z-index: 99;
}

.controls .control-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.controls .control-btns div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background-color: white;
  height: 50px;
  width: 50px;
  border-radius: 5px;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
}

.controls .control-btns div::selection {
  color: initial;
  background-color: initial;
}

.controls i {
  font-size: 20px;
  color: #00497a;
}

.zoom-tip {
  background-color: #c8e4f8;
  color: #333;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: 5px;
  opacity: 1;
  transition: opacity 0.4s ease;
  width: 450px;
  display: flex;
  gap: 30px;
  align-items: start;
  margin-left: 40px;
  position: fixed;
  top: 100px;
  z-index: 8;
}

.zoom-tip.hide {
  opacity: 0;
  pointer-events: none;
}

.zoom-tip .close-btn {
  right: 12px;
  top: 8px;
  font-size: 18px;
  cursor: pointer;
  color: #888;
  font-weight: bold;
}

.zoom-tip .close-btn:hover {
  color: #00497a;
}

#tree > ul {
  padding-top: 0 !important;
}

.tree ul {
  padding-top: 20px;
  position: relative;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  padding-left: 0;
  transform: translateX(-15px);
}

.tree li {
  float: left;
  text-align: center;
  list-style-type: none;
  position: relative;
  padding: 20px 5px 0 5px;
  transition: all 0.5s;
  -webkit-transition: all 0.5s;
  -moz-transition: all 0.5s;
  margin-left: 35px;
  padding-left: 0 !important;
}

.tree li::before,
.tree li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 1px solid #12a2db;
  width: 92%;
  height: 20px;
}

.tree li::after {
  right: auto;
  left: 50%;
  border-left: 1px solid #12a2db;
}

.tree li:only-child::after,
.tree li:only-child::before {
  display: none !important;
}

.tree li:only-child {
  padding-top: 0;
}

.tree li:only-child .dataBox::after,
.tree li:only-child .dataBox::before {
  display: none;
}

.tree li:first-child::before,
.tree li:last-child::after {
  border: 0 none;
}

.tree li:last-child::before {
  border-right: 1px solid #12a2db;
  border-radius: 0 5px 0 0;
  -webkit-border-radius: 0 5px 0 0;
  -moz-border-radius: 0 5px 0 0;
}

.tree li:first-child::after {
  border-radius: 5px 0 0 0;
  -webkit-border-radius: 5px 0 0 0;
  -moz-border-radius: 5px 0 0 0;
}

.tree ul ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 1px solid #12a2db;
  width: 0;
  height: 20px;
}

.tree li .dataBox {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-decoration: none;
  color: #666;
  font-size: 14px;
  display: inline-block;
  transition: all 0.5s;
  position: relative;
}

.tree li .dataBox img {
  max-width: 60px;
  height: 60px;
  border-radius: 50%;
  display: block;
  margin-bottom: 5px;
}

.tree li .dataBox span {
  display: block;
  font-size: 12px;
}

.tree li .dataBox:hover,
.tree li .dataBox:hover + ul li .dataBox {
  background: #c8e4f8;
  color: #000;
  border: 1px solid #94a0b4;
}

.tree li .dataBox:hover + ul li::after,
.tree li .dataBox:hover + ul li::before,
.tree li .dataBox:hover + ul::before,
.tree li .dataBox:hover + ul ul::before {
  border-color: #94a0b4;
}

.tree .user-card {
  height: 70px;
  width: 70px;
  overflow: hidden;
  text-align: center;
}

.user-card .user-name {
  display: block;
  font-size: 15px;
  color: #333;
}

/* ========== Details Profile ======= */
.user {
  background-color: #eff3fc;
  /* width: fit-content; */
}

body {
  background-color: #eff3fc;
}

.user .user-image {
  width: 150px;
  height: 150px;
  border: 2px solid #12a2db;
  position: relative;
  z-index: 2;
}

.user .user-image img {
  width: 100%;
}

.user .user-information {
  background-color: #eff3fc;
  margin-top: -80px;
  padding-top: 100px;
}

.user .user-information .user-name {
  font-size: 18px;
}

.user .user-details {
  margin-top: 35px;
}

.user .information .user-info .title {
  color: #a3a3a3;
}

.user .info-card {
  width: 243px;
}

.user .info-card .icon-card {
  background-color: #eaf0ff;
  color: #2869ff;
  width: 70px;
  height: 70px;
}

.user .info-card.two .icon-card {
  background-color: #f7effe;
  color: #ac60f0;
}

.user .info-card.three .icon-card {
  background-color: #ffecf2;
  color: #ff4d84;
}

.other-information .list li {
  margin-block: 5px;
}

.other-information .name {
  color: #2869ff;
  font-weight: bold;
}

.responsibilities .user-resp {
  list-style: none;
  padding: 0;
}

.responsibilities .user-resp li {
  background-color: #f4f6f9;
}

.responsibilities .accordion-flush .accordion-item .accordion-button {
  background-color: white;
  box-shadow: 0px 1px 0px #e3e3e3;
}

.responsibilities .accordion-button:not(.collapsed) {
  color: #00497a;
  border-left: 2px solid #00497a;
}

.responsibilities .accordion-flush .accordion-collapse {
  border-left: 2px solid #00497a;
}

.responsibilities .accordion-button:not(.collapsed)::after {
  background-image: var(--bs-accordion-btn-icon);
}

/* ======== Org Chart ========== */
.filter-section {
  box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.1);
}

.org-chart {
  background-color: #eff3fc;
  padding-block: 50px;
  border-radius: 15px;
  width: max-content;
  padding-inline: 10%;
  padding-left: 250px;
}

.org-chart .org-chart-profile {
  display: flex !important;
  align-items: center !important;
  gap: 20px;
  margin-inline: auto;
  position: relative;
}

.org-chart .org-chart-profile img {
  border: 1px solid #ccc;
  padding: 3px;
}

.org-chart-department .user-show {
  display: none;
}

.org-chart-profile .user-show {
  right: 5px;
  top: 8px;
  color: #12a2db;
  font-size: 13px;
}

/* 
    .org-chart-profile li:first-child::before,
    .org-chart-profile li:last-child::after {
        border: 0 none;
    } */

.org-chart-department + ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 1px solid #00497a;
  width: 0;
  height: 20px;
}

/* .org-chart .org-chart-department[data-department-index="0"]+ul::before {
        left: 50% !important;
    } */

.org-chart .org-chart-profile h6 {
  text-align: start;
  font-size: 17px;
  margin-bottom: 4px;
  text-transform: capitalize;
  color: #00497a;
}

.org-chart .org-chart-profile h6 + div {
  color: #333;
  text-align: start !important;
}

.org-chart-department:last-of-type {
  display: none;
}

.org-chart .org-chart-department {
  width: 300px !important;
  display: block;
  padding-block: 15px !important;
  cursor: pointer;
  background-color: #00497a !important;
  color: white !important;
  margin: auto;
}

.org-chart .org-chart-department h6 {
  text-align: center;
  font-weight: bold;
  margin-bottom: 0;
}

/* +++++++++++++++ MULTIPLE PROFILE IN DEPARTMENT CODE ++++++++++++++++ */

/* 
    .org-chart .org-chart-department+ul>li {
        float: none;
        padding-top: 0;
        margin-bottom: 20px;
    }

    .org-chart .org-chart-department[data-department-index="0"]+ul::before {
        left: 50%;
    }

    .org-chart .org-chart-department+ul::before {
        left: 50%;
    }


    .org-chart-department+ul>li>div::before {
        display: none !important;
    }

    .org-chart-department+ul>li>div::after {
        display: none !important;
    }

    .org-chart-department+ul>li:last-of-type>div::before {
        display: none !important;
    }

    .org-chart .org-chart-department+ul>li::before,
    .org-chart .org-chart-department+ul>li::after {
        display: none;
    } */

/* +++++++++++++++ MULTIPLE PROFILE IN DEPARTMENT CODE ++++++++++++++++ */

.department img {
  display: none;
}

@media (min-width: 576px) {
  .profile-information .modal-dialog {
    --bs-modal-width: 800px;
  }
}

@media (min-width: 1150px) {
  .profile-information .modal-dialog {
    --bs-modal-width: 1150px;
  }
}

@media (min-width: 1200px) {
  .profile-information .modal-xl {
    --bs-modal-width: 1200px;
  }
}

.department-inline ul {
  padding-left: 0 !important;
}

.department-inline + ul {
  padding-left: 0 !important;
}

.first-profile {
  box-shadow: 0px 0px 5px #00497a !important;
}

.first-profile img,
.supervisor {
  border: 1px solid #12a2db !important;
}

.first-profile h6 {
  color: #00497a !important;
}

.first-profile h6 + div {
  color: #333 !important;
}

.collapse {
  display: none;
}

.collapse.show {
  display: block;
}

/* -------- Org-chart Sidebar ---------- */

.org-sidebar.show {
  width: 50px;
}

.org-chart .sidebar {
  width: 250px;
  position: fixed;
  transition: 300ms ease-in-out;
  background-color: white;
  padding-inline: 25px;
  left: 0px;
  top: 70px;
  z-index: 9;
  height: 100vh;
  box-shadow: 5px 0px 10px #eee;
}

.org-chart .sidebar-title {
  color: #00497a;
}

.org-chart .search-container {
  margin-block: 28px;
}

.org-chart .custom-input {
  position: relative;
  width: 100%;
}

.org-chart .custom-input input {
  border-radius: 3px !important;
  padding: 10px 40px 10px 15px !important;
}

.custom-input .icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
  pointer-events: none;
}

.custom-input input:focus + .icon {
  color: #fe554a;
}

.org-sidebar {
  max-height: 500px;
  overflow-y: auto;
}

.org-sidebar .nav-item {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-block: 4px;
  background-color: white;
  cursor: pointer;
  transition: 250ms ease-in-out;
  border-radius: 3px;
}

.org-sidebar .nav-item.active {
  color: #00497a;
}

.org-sidebar .nav-item:hover {
  color: #00497a;
}

/* Style the scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 12px;
  /* Width of the scrollbar */
}

/* Track - background of the scrollbar */
::-webkit-scrollbar-track {
  background: #f1f1f1;
  /* Light gray background */
}

/* Handle - the draggable part of the scrollbar */
/* ::-webkit-scrollbar-thumb {
        background: #2869ff;
        border-radius: 10px;
    } */

/* Handle on hover - when the user hovers over the scrollbar */
/* ::-webkit-scrollbar-thumb:hover {
        background: #2869ff;
    } */

/* Optional: Custom scrollable content area */
.scroll-container {
  height: 300px;
  overflow-y: scroll;
  border: 1px solid #ddd;
  padding: 5px;
  width: 100%;
}

.backup-item {
  background-color: #ffdfd8 !important;
  position: relative;
}

.backup-item::after {
  clear: both;
  content: " ";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent transparent #ffdfd8 transparent;
  position: absolute;
  left: 5px;
  top: 0;
  border-width: 0px 7px 6px 7px;
  margin-top: -5px;
  z-index: 1022;
}

.veda-cta {
  display: none;
}

.responsibilities .accordion-button-notcollapsable::after,
.teams .accordion-button-notcollapsable::after {
  background-image: none !important;
}

.bg-orange-clicked-list-item {
  font-weight: bold;
  color: #fd5d3e !important;
  background-color: white !important;
  border: 0px !important;
  border-left: 1px solid #fd5d3e !important;
}

.search-popup {
  position: fixed;
  top: 0;
  height: 900px;
  overflow: scroll;
  left: 280px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 220px;
  overflow-y: auto;
  display: none;
  padding-top: 100px;
  z-index: 9;
  /* 🔥 Hide scrollbar but keep scrolling */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.search-popup::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari */
}

.search-result-item {
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.search-result-item:hover {
  background: #f5f5f5;
}
