/* User Profile */
.user-status {
  width: 15px;
  height: 15px;
  border: 2px solid white;
  border-radius: 50%;
  position: absolute;
  right: 10px;
  top: 25px;
}

.bg-white {
  background-color: #fff;
}

[data-bs-theme='dark'] .bg-white {
  background-color: #fff !important;
}

.payment-logo {
  width: 100px;
  height: 100px;
  aspect-ratio: 1/1;
  object-fit: contain;
}

[data-bs-theme='dark'] .preloader {
  background: var(--bs-body-bg);
}

html[dir='rtl'] .input-group-text {
  border-top-right-radius: 0.5rem !important;
  border-top-left-radius: 0 !important;
  border-bottom-right-radius: 0.5rem !important;
  border-bottom-left-radius: 0 !important;
}

html[dir='rtl']
  .topbar
  .navbar
  .navbar-nav
  .nav-item.dropdown:hover
  .dropdown-menu-end {
  right: auto !important;
  left: 0 !important;
}

html[dir='rtl'] .edit-button {
  border-top-left-radius: 0.5rem !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0.5rem !important;
  border-bottom-right-radius: 0 !important;
}

.language-option:hover {
  background-color: var(--bs-primary-bg-subtle) !important;
}

html[dir='rtl']
  .country-list
  .select2-container--default
  .select2-selection--single {
  border-radius: 0.5rem 0 0 0.5rem !important;
}

html[dir='rtl'] .form-select {
  border-radius: 0.5rem 0 0 0.5rem !important;
}

html[dir='rtl'] .input-group > .form-control.border-start-0,
html[dir='rtl'] .edit-button {
  border-left: var(--bs-border-width) solid #aebcc3 !important;
}
html[dir='rtl'] .input-group > .form-control.border-start-0.border-end-0 {
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
}
html[dir='rtl'] .input-group > .form-control:not(:first-child) {
  border-top-left-radius: 0.5rem !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0.5rem !important;
  border-bottom-right-radius: 0 !important;
}

.card {
  --bs-card-box-shadow: 0px 2px 6px rgba(37, 83, 185, 0.2);
}

.select2-container--default.select2-container--disabled
  .select2-selection--single {
  background-color: #f5f8fb;
}

.left-sidebar .scroll-sidebar {
  /* height: 100%; */
  height: calc(100% - 100px);
}

.left-sidebar.admin .scroll-sidebar {
  height: calc(100% - 100px);
}

.tree-structure {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tree-structure .has-level {
  position: relative;
}
.tree-structure .has-level::after {
  position: absolute;
  content: '';
  border-right: 1px solid #ccc;
  bottom: 0px;
  left: 0;
  width: 50%;
  height: 20px;
  transform: translate(0%, 100%);
}
.tree-structure ul {
  padding-top: 20px;
  position: relative;
  padding-left: 0;
  display: flex;
}
.tree-structure ul li {
  position: relative;
  padding: 20px 5px 0 5px;
  min-width: 80px;
  text-align: center;
}
.tree-structure li::before,
.tree-structure li::after {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 1px solid #ccc;
  width: 50%;
  height: 20px;
}
.tree-structure li::after {
  right: auto;
  left: 50%;
  border-left: 1px solid #ccc;
}
.tree-structure li:only-child::before,
.tree-structure li:only-child::after {
  display: none;
}
.tree-structure li:only-child {
  padding-top: 0;
}
.tree-structure li:first-child::before,
.tree-structure li:first-child::after {
  border: none;
}
.tree-structure li:last-child::before,
.tree-structure li:last-child::after {
  border: none;
}
.tree-structure li:last-child::before {
  border-top: 1px solid #ccc;
  border-right: 1px solid #ccc;
}
.tree-structure li:first-child::after {
  border-top: 1px solid #ccc;
  border-left: 1px solid #ccc;
}
.profile {
  background-color: #fff;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  /* box-shadow: 0px 3px 15px rgba(0,0,0,0.1); */
  display: flex;
  max-width: 120px;
  height: auto;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}
.profile:hover {
  box-shadow: 0px 3px 15px rgba(0, 0, 0, 0.1);
}
.user-status {
  width: 15px;
  height: 15px;
  border: 2px solid white;
  border-radius: 50%;
  position: absolute;
  right: -1px;
  top: -7px;
}
@-webkit-keyframes sonarEffect {
  0% {
    opacity: 0.3;
  }
  40% {
    opacity: 0.5;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc,
      0 0 0 10px rgba(255, 255, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc,
      0 0 0 10px rgba(255, 255, 255, 0.5);
    -webkit-transform: scale(1.5);
    opacity: 0;
  }
}
@-moz-keyframes sonarEffect {
  0% {
    opacity: 0.3;
  }
  40% {
    opacity: 0.5;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc,
      0 0 0 10px rgba(255, 255, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc,
      0 0 0 10px rgba(255, 255, 255, 0.5);
    -moz-transform: scale(1.5);
    opacity: 0;
  }
}
@keyframes sonarEffect {
  0% {
    opacity: 0.3;
  }
  40% {
    opacity: 0.5;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc,
      0 0 0 10px rgba(255, 255, 255, 0.5);
  }
  100% {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 0 10px 10px #3851bc,
      0 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.5);
    opacity: 0;
  }
}
@media (max-width: 575px) {
  .tree-structure {
    display: inline-flex;
  }
}

#lead_list_table tfoot .form-control.t-seach {
  min-width: 50px;
  padding: 0.275em 0.5em;
  background-color: #fff;
  font-size: 14px;
}

#lead_list_table tfoot .form-control.t-seach::placeholder {
  color: #6c6c6c;
}

[data-bs-theme='dark'] #lead_list_table tfoot .form-control.t-seach {
  color: #000 !important;
  background-color: #ffffff;
}

/* Data Table Style */
.dt-search {
  max-width: 80%;
  margin: 0 auto;
}

.pagination {
  margin-bottom: 0px;
}

@media (max-width: 575px) {
  .pagination {
    justify-content: center;
  }
}

body div.dt-buttons > .dt-button,
body div.dt-buttons > div.dt-button-split .dt-button {
  background: var(--bs-dark);
  border-radius: 0.25rem;
  background-color: var(--bs-dark);
  border: 1px solid var(--bs-dark);
  color: #fff;
}
.table th {
  background-color: var(--bs-primary-bg-subtle) !important;
}
div.dataTables_wrapper div.dataTables_paginate {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.table-responsive .dataTables_wrapper .dataTables_filter input {
  font-size: 1rem;
  border: 1px solid var(--bs-dark-border-subtle);
}
div.dataTables_wrapper div.dataTables_filter label {
  display: block;
  text-align: center;
}
div.dataTables_wrapper div.dataTables_filter input {
  width: calc(100% - 30%);
  height: 40px;
}
div.dataTables_wrapper div.dataTables_info {
  padding-top: 0;
}
#file_export_info {
  display: block;
}
.table-responsive .dataTables_wrapper .dataTables_paginate .paginate_button {
  border: none;
}
.filter-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.table-responsive
  .dataTables_wrapper
  .dataTables_paginate
  .paginate_button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Dropzone styling */
.dropzone {
  display: block !important;
  border: var(--bs-border-width) solid #aebcc3 !important;
  border-radius: 0.5rem !important;
  background-color: transparent !important;
}
.dropzone-filename .filename {
  max-width: 200px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  display: block;
}

.form-switch .form-check-input {
  width: 40px;
  height: 20px;
}
.textarea-box {
  position: relative;
}
.textarea-box .word-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

/* Select2 */
.select-dropdown {
  position: static;
}
.select-dropdown .select-dropdown--above {
  margin-top: 336px;
}
.select2.select2-container {
  width: calc(100% - 53px) !important;
}
.select2-dropdown--below {
  top: -1.5675rem;
}
#create-client-modal .select2-dropdown--below {
  top: 0;
}
.select2-dropdown {
  z-index: 1;
}
body
  .select2-container--classic
  .select2-selection--single
  .select2-selection__arrow,
body
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  top: calc(100% - 40px);
}
.select2-container--default .select2-selection--single {
  border: var(--bs-border-width) solid #aebcc3 !important;
  border-radius: 0.5rem !important;
}

.country-list .select2-container--default .select2-selection--single {
  border: var(--bs-border-width) solid #aebcc3 !important;
  border-radius: 0 0.5rem 0.5rem 0 !important;
}

.left-sidebar .brand-logo .logo-img .mini-logo {
  display: none !important;
}

[data-layout='vertical']
  body[data-sidebartype='mini-sidebar']
  .left-sidebar
  .brand-logo
  .logo-img
  .mini-logo {
  display: flex !important;
}

[data-layout='vertical']
  body[data-sidebartype='mini-sidebar']
  .left-sidebar
  .brand-logo
  .logo-img
  .full-logo {
  display: none !important;
}

/* Extra styling */
.edit-button {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0px 0.5rem;
  border: var(--bs-border-width) solid #aebcc3;
  border-radius: 0.5rem;
}

.edit-button:hover {
  color: var(--bs-primary);
}

#country-code-with-flag-icons,
#alt-country-code,
#country-code-with-flag-icons-2,
#country-code-with-flag-icons-edit {
  max-width: 70px;
}

#country-code-with-flag-icons + .select2-container,
#alt-country-code + .select2-container,
#country-code-with-flag-icons-2 + .select2-container,
#country-code-with-flag-icons-edit + .select2-container {
  max-width: 100px;
}

#country-code-with-flag-icons
  + .select2-container--default
  .select2-selection--single,
#alt-country-code + .select2-container--default .select2-selection--single,
#country-code-with-flag-icons-2
  + .select2-container--default
  .select2-selection--single,
#country-code-with-flag-icons-edit
  + .select2-container--default
  .select2-selection--single {
  border-radius: unset !important;
}

#country-code-with-flag-icons.role-phone
  + .select2-container--default
  .select2-selection--single,
#country-code-with-flag-icons-edit
  + .select2-container--default
  .select2-selection--single {
  border-top-left-radius: 0.5rem !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-bottom-left-radius: 0.5rem !important;
}

/* .edit-modal.select2-dropdown--below {
  top: 0; 
} */

[data-bs-theme='light'] .form-control,
[data-bs-theme='light'] .form-select {
  color: #000 !important;
}

[data-bs-theme='dark'] .form-control,
[data-bs-theme='dark'] .form-select {
  color: #fff !important;
}

[data-bs-theme='light'] ::placeholder {
  color: #e4e4e4;
}

[data-bs-theme='dark'] ::placeholder {
  color: #5e5e5e !important;
}

/* .form-control::-moz-placeholder {
    color: #111c2d;
    opacity: 0.5;
}
.form-control::placeholder {
    color: #111c2d;
    opacity: 0.5;
} */

.mt5-detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.mt5-column {
  flex-grow: 1;
  margin-bottom: 10px;
}
.mt5-column:last-child {
  text-align: center;
}
.user-setting-bar {
  padding: 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: end;
}
.user-setting-bar .nav-item.dropdown:hover .dropdown-menu {
  display: block;
}
.user-setting-bar .nav-item.dropdown .dropdown-menu {
  right: 0;
  left: auto;
  top: 100%;
  position: absolute;
  min-width: 200px;
}
.user-setting-bar .nav-item {
  margin: 0 0 0 15px;
}

.user-profile.active::after {
  background-color: var(--bs-success);
}

.user-profile.pending::after {
  background-color: var(--bs-warning);
}

table.dataTable thead th {
  border-right: 1px solid rgb(156 156 156 / 29%);
}

table.dataTable thead > tr > th.sorting:after,
table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:after,
table.dataTable thead > tr > th.sorting_asc_disabled:after,
table.dataTable thead > tr > th.sorting_desc_disabled:after,
table.dataTable thead > tr > td.sorting:after,
table.dataTable thead > tr > td.sorting_asc:after,
table.dataTable thead > tr > td.sorting_desc:after,
table.dataTable thead > tr > td.sorting_asc_disabled:after,
table.dataTable thead > tr > td.sorting_desc_disabled:after {
  top: 55%;
}

table.dataTable thead th:last-child {
  border-right: none;
}

[data-bs-theme='dark'] .sidebar-nav ul .sidebar-item .sidebar-link {
  color: #fff;
}

[data-bs-theme='dark'] .primary-hover-bg.active .aside-icon,
[data-bs-theme='dark'] .primary-hover-bg.active .hide-menu {
  color: #fff;
}

[data-bs-theme='dark'] .table > :not(caption) > * > * {
  color: #fff !important;
}

[data-bs-theme='dark'] a {
  color: #fff;
}

[data-bs-theme='dark'] .form-control,
[data-bs-theme='dark'] .form-select {
  color: #fff;
  border-color: rgb(255 255 255) !important;
}

[data-bs-theme='dark']
  body
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: #fff;
}

[data-bs-theme='dark'][data-color-theme='Blue_Theme']:root,
[data-bs-theme='light'][data-color-theme='Blue_Theme']:root {
  --bs-primary-bg-subtle: rgb(0 135 230 / 27%);
}

.register-login.select2-dropdown--below {
  top: 0.4325rem;
}
#country-code-with-flag-icons {
  background-position: right 8px center;
  background-size: 10px;
  padding: 8px 2px 8px 8px;
  max-width: 75px;
}
.user-setting-bar {
  padding: 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: end;
}
.user-setting-bar .nav-item.dropdown:hover .dropdown-menu {
  display: block;
}
.user-setting-bar .nav-item.dropdown .dropdown-menu {
  right: 0;
  left: auto;
  top: 100%;
  position: absolute;
  min-width: 200px;
}
.user-setting-bar .nav-item {
  margin: 0 0 0 15px;
}
.wizard > .steps ul {
  display: flex;
  justify-content: center;
  text-align: center;
}
.wizard > .steps .current a,
.wizard > .steps .done a,
.wizard > .steps a:hover,
.wizard > .content > .body label.btn {
  border-radius: var(--bs-border-radius-sm) !important;
}
.wizard > .content > .body label.btn {
  width: 100%;
}
#open-acc-wizard .card:hover {
  border: 1px solid;
  --bs-border-opacity: 1;
  border-color: rgba(
    var(--bs-primary-rgb),
    var(--bs-border-opacity)
  ) !important;
}
.leverage_checkbox {
  width: 100px;
  padding: 0.5rem 1rem;
}
.wizard > .steps > ul > li {
  width: auto;
}
.acc_open_btns .btn {
  font-size: 0.825rem;
}

.swal2-popup {
  border-top: 5px solid var(--bs-primary) !important;
}
.btn-close {
  background: transparent var(--bs-btn-close-bg) center / 1.25em auto no-repeat;
  --bs-btn-close-opacity: 1;
}
body table.dataTable.table-striped > tbody > tr:nth-of-type(2n + 1) > * {
  box-shadow: inset 0 0 0 9999px #f7f7f7;
}
/* For webkit browsers (Chrome, Safari, etc.) */
.table-responsive::-webkit-scrollbar {
  height: 6px; /* Slim scrollbar for horizontal scroll */
  width: 8px; /* Slim scrollbar for vertical scroll */
  padding: 1px;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-track {
  background-color: #f5f5f5; /* Light gray for the track */
}

.table-responsive::-webkit-scrollbar-thumb {
  background-color: #0085db61; /* Gray color for the thumb */
  border-radius: 10px; /* Rounded edges */
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background-color: #555; /* Darker gray on hover */
}

.select2-dropdown.update-phone.select2-dropdown--below {
  top: 0;
  border-color: rgb(255 255 255) !important;
}

#country-code-with-flag-icons.phone-update
  + .select2-container--default
  .select2-selection--single {
  border-radius: 0.5rem !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

/* Light theme */
@media (prefers-color-scheme: light) {
  .table-responsive::-webkit-scrollbar-track {
    background-color: #e0e0e0; /* Light gray for the track in light mode */
  }

  .table-responsive::-webkit-scrollbar-thumb {
    background-color: #ccc; /* Lighter gray for thumb in light mode */
  }

  .table-responsive::-webkit-scrollbar-thumb:hover {
    background-color: #999; /* Slightly darker thumb on hover */
  }
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
  .table-responsive::-webkit-scrollbar-track {
    background-color: #e4e4e4; /* Dark gray for the track in dark mode */
  }

  .table-responsive::-webkit-scrollbar-thumb {
    background-color: #0083db61; /* Darker gray for thumb in dark mode */
  }

  .table-responsive::-webkit-scrollbar-thumb:hover {
    background-color: #666; /* Slightly lighter thumb on hover */
  }
}

[data-bs-theme='dark'] body div.dt-buttons > .dt-button,
[data-bs-theme='dark'] body div.dt-buttons > div.dt-button-split .dt-button {
  background: var(--bs-primary);
  border-radius: 0.25rem;
  background-color: var(--bs-primary);
  border: 1px solid var(--bs-primary);
  color: #fff;
}

@media (max-width: 575px) {
  .wizard > .steps ul {
    flex-direction: column;
  }
  .auth-login .card-body {
    padding: 0.5rem;
  }
  .form-select {
    background-size: 10px 8px;
    background-position: right 8px center;
    padding: 8px 0px 8px 10px;
  }
  .user-setting-bar .nav-item.dropdown .dropdown-menu {
    left: 0;
    top: 40px;
  }
}

#current-coutry-code {
  min-width: 100px;
}

[data-bs-theme='dark'] input.form-control,
[data-bs-theme='dark'] .select2-container--default .select2-selection--single,
[data-bs-theme='dark'] .form-select,
[data-bs-theme='dark'] .input-group-text,
[data-bs-theme='dark'] .edit-button {
  opacity: 1;
  color: #fff;
  border: 1px solid var(--bs-body-color) !important;
}
