span.select2-selection.select2-selection--single {
    height: auto !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
}

input[type="file"] {
    /* padding: 0; */
    height: 100%;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #5884fc !important;
    border-color: #5884fc !important;
    color: #fff !important;
}

[class*=sidebar-light-] .nav-treeview > .nav-item > .nav-link.active {
    background-color: rgba(88, 132, 252, 0.51);
}

body {
    color: #000000 !important;
}

[class*=sidebar-light-] .sidebar a {
    color: #000000;
}

.table:not(.table-dark) {
    color: #000000;
}

.breadcrumb-item.active {
    color: #000000;
}

.text-dark {
    color: #000000 !important;
}

.has-error .select2-selection {
    border-color: #dc3545 !important;
}

/*.fileclear {*/
/*    color: black !important;*/
/*    border-color: transparent !important;*/
/*    text-decoration: none !important;*/
/*}*/
/*.fileclear:hover {*/
/*    background-color: transparent;*/
/*}*/

.card-body-overflow-auto {
    overflow: auto;
}

.table td, .table th {
    padding: .5rem;
    vertical-align: middle;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">>";
}

.height-67 {
    height: 67% !important;
}

.region-tabs .card.card-outline-tabs .card-header a {
    border-top: 3px solid #dee2e6;
}

.region-tabs .card.card-outline-tabs .card-header a.active {
    border-top: 3px solid #28a745;
}

.region-tabs .nav-tabs .nav-link, .nav-tabs .nav-link {
    border-color: #e9ecef #e9ecef #dee2e6;
}

.table-col-fit-content {
    white-space: nowrap;
    width: 1%;
}

.bg-primary {
    background-color: #5884fc !important;
}

.btn-primary {
    background-color: #5884fc !important;
    border-color: #5884fc !important;
}

.navbar-primary {
    background-color: #5884fc !important;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active, .sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active {
    background-color: #5884fc !important;
}

.bg-primary-sp {
    background-color: #2596be !important;
    color: white !important;
}

.btn-primary-sp {
    background-color: #2596be !important;
    border-color: #2596be !important;
    color: white !important;
}

.btn-primary-sp:hover {
    color: white;
}

.navbar-primary-sp {
    background-color: #2596be !important;
}

.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link-sp.active, .sidebar-light-primary .nav-sidebar > .nav-item > .nav-link-sp.active {
    background-color: #2596be !important;
}

[class*=sidebar-light-] .nav-treeview > .nav-item > .nav-link-sp.active {
    background-color: #2596be78 !important;
}

.bg-secondary-custom {
    background-color: rgb(108 117 125 / 40%) !important;
    color: white;
}

/*----------------genealogy-scroll----------*/
.genealogy-scroll::-webkit-scrollbar {
    width: 5px;
    height: 8px;
}

.genealogy-scroll::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #e4e4e4;
}

.genealogy-scroll::-webkit-scrollbar-thumb {
    background: #212121;
    border-radius: 10px;
    transition: 0.5s;
}

.genealogy-scroll::-webkit-scrollbar-thumb:hover {
    background: #007bff;
    transition: 0.5s;
}

/*----------------genealogy-tree----------*/
.genealogy-body {
    white-space: nowrap;
    overflow: auto;
    /*min-height: 500px;*/
    padding: 10px 50px 50px;
    text-align: center;
}

.genealogy-tree {
    display: inline-block;
}

.genealogy-tree ul {
    padding-top: 20px;
    position: relative;
    padding-left: 0;
    display: flex;
    justify-content: center;
}

.genealogy-tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 17px 0 23px;
}

.genealogy-tree li::before, .genealogy-tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #ccc;
    width: 50%;
    height: 18px;
}

.genealogy-tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #ccc;
}

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

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

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

.genealogy-tree li:last-child::before {
    border-right: 2px solid #ccc;
    border-radius: 0 5px 0 0;
    -webkit-border-radius: 0 5px 0 0;
    -moz-border-radius: 0 5px 0 0;
}

.genealogy-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;
}

.genealogy-tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #ccc;
    width: 0;
    height: 20px;
}

.genealogy-tree li a {
    text-decoration: none;
    color: #666;
    font-family: arial, verdana, tahoma, sans-serif;
    font-size: 11px;
    display: inline-block;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
}

.genealogy-tree li a:hover + ul li::after,
.genealogy-tree li a:hover + ul li::before,
.genealogy-tree li a:hover + ul::before,
.genealogy-tree li a:hover + ul ul::before {
    border-color: #007bff;
}

/*--------------memeber-card-design----------*/
.member-view-box {
    padding: 0 20px;
    text-align: center;
    border-radius: 4px;
    position: relative;
}

.member-image {
    width: 60px;
    position: relative;
}

.member-image img {
    z-index: 1;
}

#genealogy-body.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
}

#fullscreenBtn.fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1060;
}

.popover {
    z-index: 1000000 !important;
}

.node-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

i.fas.fa-caret-up {
    color: darkgrey;
}

div.member-image, i[class^="fas fa-caret-"] {
    cursor: pointer;
}

.sp-light {
    background-color: rgba(37, 150, 190, 0.49) !important;
}

.img-dashboard{
    height: 90px;
    width: 90px;
    border: 3px solid rgba(255, 255, 255, .2);
}

.label-title {
    background-color: rgba(0, 0, 0, .05);
}
/* side-canvas css */
.bs-canvas-overlay {
    opacity: 0;
    z-index: -1;
}

.bs-canvas-overlay.show {
    opacity: 0.85;
    z-index: 1100;
}

.bs-canvas-overlay, .bs-canvas {
    transition: all .4s ease-out;
    -webkit-transition: all .4s ease-out;
    -moz-transition: all .4s ease-out;
    -ms-transition: all .4s ease-out;
}

.bs-canvas {
    top: 0;
    z-index: 1110;
    overflow-x: hidden;
    overflow-y: auto;
    width: 50%;
}
.bs-canvas-right {
    right: 0;
    margin-right: -50%;
}
/* skeleton loading css*/
.skeleton {
    border-radius: 4px;   /* Slightly rounded corners */
    margin-bottom: 10px;  /* Spacing between skeleton elements */
    animation: loading 1.0s infinite alternate; /* Basic animation */
}

.skeleton-profile-pic{
    content: " ";
    display: block;
    background-color: #ced4da;
    height: 101px !important;
    border-radius: 50% !important;
    animation: side-by;
}

@keyframes loading {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}
/*Pre selected filters*/

.card:not(.collapsed-card) .pre-selected-filters {
    display: none;
}

@media (max-width: 575.98px) {
    .filter-pill {
        font-size: 0.75rem;
    }
}

.filter-pill {
    margin: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    background-color: #f0f0f0;
    font-size: 0.875rem;
    line-height: 1.25;
}

.pre-selected-filters {
    display: flex;
    flex-wrap: wrap;
    margin-left: 1rem;
}

.text-node {
    font-size: 11px !important;
    white-space: break-spaces;
    overflow: auto;
    text-overflow: ellipsis;
    width: 120px;
}
/**/
.iti.iti--allow-dropdown{
    width: 100% !important;
}
/* ajax loading indicator */
.loading-indicator {
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.19), 0 6px 8px rgba(0, 0, 0, 0.23);
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200px;
    margin: -21px -117px;
    padding: 10px 16px;
    border: 1px solid #ccb37b;
    background-color: #fff9c8;
    color: #755e40;
    font-weight: bold;
    text-align: center;
    opacity: .9;
    z-index: 100;
}
.swal2-popup.swal2-modal.w-50.swal2-show {
    font-size: inherit !important;
    font-style: inherit !important;
    font-family: inherit !important;
    color: inherit !important;
}

.select-month {
    padding-right: 30px;
}

.clear-month-year {
    top: 0;
    bottom: 0;
    border: none;
    padding: 0;
    margin: 0;
    background: none;
    cursor: pointer !important;
    right: 21px !important;
}

.clear-month-year:focus {
    outline: none;
    box-shadow: none;
}

.clear-month-year:hover {
    color: #666;
    outline: none;
    box-shadow: none;
}

.clear-btn-icon{
    font-size: 10px !important;
}

.table-scrollable {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.sticky-header, .sticky-col-and-header, .sticky-column {
    position: sticky;
    background: #f9f9f9;
    z-index: 2;
}

.sticky-header {
    top: 0;
}

.sticky-header.main-header {
    top: 0;
    z-index: 3;
}

.sticky-col-and-header {
    left: 0;
    top: 0;
    z-index: 4;
}

.sticky-column {
    left: 0;
}

.sticky-header::after, .sticky-col-and-header::after, .sticky-column::after,
.sticky-header::before, .sticky-col-and-header::before, .sticky-column::before {
    content: '';
    position: absolute;
    background-color: #dee2e6;
    z-index: -1;
}

.sticky-header::after, .sticky-col-and-header::after, .sticky-column::after {
    left: 0; right: 0; bottom: 0;
    height: 0.5px;
}

.sticky-col-and-header::before, .sticky-column::before {
    top: 0; right: 0; bottom: 0;
    width: 0.5px;
}

tr:nth-child(2) .sticky-header {
    top: 38px;
    z-index: 2;
}

.sticky-header, .sticky-col-and-header, .sticky-column {
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
}

.sticky-col-and-header, .sticky-column {
    box-shadow: 2px 0 2px rgba(0, 0, 0, 0.1);
}

/*.table-scrollable td, .table-scrollable th {*/
/*    background: #fff;*/
/*}*/

.table-scrollable .sticky-header,
.table-scrollable .sticky-col-and-header,
.table-scrollable .sticky-column {
    background: #f9f9f9;
}

tr.expanded-details{
    background-color: #007bff14;
}

.font-12-px{
    font-size: 12px !important;
}

.table.table-footer-fixed tfoot tr:nth-child(1) td {
    background-color: #fff;
    border-bottom: 0;
    box-shadow: inset 0 1px 0 #dee2e6, inset 0 -1px 0 #dee2e6;
    position: sticky;
    bottom: 0;
    z-index: 10
}

.table.table-footer-fixed.table-dark tfoot tr:nth-child(1) td {
    background-color: #212529;
    box-shadow: inset 0 1px 0 #383f45, inset 0 -1px 0 #383f45
}

@media (max-width: 768px) {
    .bs-canvas {
        width: 100%; /* Full width for small screens */
    }
    .bs-canvas-right {
        margin-right: -100%; /* Adjust margin to match full width */
    }
}

.table-wrap-text {
    white-space: normal !important;
    word-wrap: break-word;
    word-break: break-word;
}
