.pull-right {
    float: right;
}

.pull-left {
    float: left;
}

.btn-block {
    width: 100%;
}

.btn-div {
    margin-top: 11%;
}

/* Modal righ and left side css start */
.modal-left-side {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    min-height: 100%;
    margin: 0 !important;
}

.modal-left-side .modal-content {
    border-width: 0;
    border-radius: 0;
}

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    .modal-left-side .modal-content {
        min-height: 100vh;
    }
}

.modal.fade .modal-left-side {
    transform: translate(-100px, 0);
}

.modal-right-side {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: 100%;
    min-height: 100%;
    margin: 0 !important;
}

.modal-right-side .modal-content {
    border-width: 0;
    border-radius: 0;
    height: 100vh;
    overflow-y: scroll;
}

.modal-right-side form {
    height: 100%;
    overflow-y: scroll;
}

@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    .modal-right-side .modal-content {
        min-height: 100vh;
    }
}

.modal.fade .modal-right-side {
    transform: translate(0px, 0);
}

@media (min-width: 576px) {
    .modal-left-side:not(.modal-lg):not(.modal-xl) .modal-content {
        border-width: 0 1px 0 0;
    }

    .modal-right-side:not(.modal-lg):not(.modal-xl) .modal-content {
        border-width: 0 0 0 1px;
    }
}

@media (min-width: 992px) {
    .modal-lg.modal-left-side .modal-content {
        border-width: 0 1px 0 0;
    }

    .modal-lg.modal-right-side .modal-content {
        border-width: 0 0 0 1px;
    }
}

@media (min-width: 1200px) {
    .modal-xl.modal-left-side .modal-content {
        border-width: 0 1px 0 0;
    }

    .modal-xl.modal-right-side .modal-content {
        border-width: 0 0 0 1px;
    }
}

/* Loader css  */
.universal-loader-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.5s ease-out;
    opacity: 1;
}

.universal-loader-wrap.fade-out {
    opacity: 0;
}

.universal-loader {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid rgba(102, 144, 244, 0.2);
    border-top-color: #6690F4;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loader css  end*/

.tab-p {
    padding: 10px 0px !important;
}

.mm-inner-icon i {
    font-size: 14px !important;
}

.clear-cache-div {
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.editable-input {
    width: 85%;
}

.edit-pen {
    cursor: pointer;
}


.select2-container,
.select2-container--default .select2-search--dropdown .select2-search__field {
    z-index: 99999;
}

.ui-sortable-handle {
    width: 100% !important;
}

.vertical-collpsed .logo span.logo-sm {
    margin-left: -20px !important;
}

/* Select2-nin Bootstrap 5 teması ilə tam uyğunluğunu təmin etmək üçün */
.select2-container--bootstrap-5 .select2-selection--single {
    height: calc(1.5em + 0.75rem + 2px);
    /* Bu, Bootstrap-in standart .form-control hündürlüyüdür */
    padding: 0.375rem 0.75rem;
    display: flex !important;
    align-items: center !important;
}

/* Placeholder və seçilmiş mətnin düzgün görünüşü üçün */
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: inherit;
    /* Valideynin line-height'ını alsın */
    padding-left: 0 !important;
}

/* Ox işarəsinin mövqeyi */
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0.75rem;
}


/* ================================================== */
/*         SELECT2 MULTIPLE TAGS/PILLS STYLE          */
/* ================================================== */

/* Əsas konteyneri Bootstrap .form-control kimi göstər */
.select2-container--bootstrap-5 .select2-selection--multiple {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.2rem 0.4rem;
    /* Daxili boşluğu azaldırıq ki, tag-lər yerləşsin */
    min-height: calc(1.5em + 0.94rem + 2px);
}

/* Hər bir seçilmiş "tag" (pill) üçün stil */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice {
    display: flex;
    align-items: center;
    background-color: #e9ecef;
    /* Bootstrap-in "light" rəngi */
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 0.47rem;
    /* Səliqəli yumru kənarlar */
    padding: 2px 8px;
    margin: 2px;
    font-size: 0.875rem;
    /* Kiçik şrift */
}

/* "Tag"-in içindəki "Sil" (x) düyməsi */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove {
    order: 2;
    /* "x" həmişə sağda olsun */
    margin-left: 8px;
    color: #6c757d;
    font-size: 1.1em;
    font-weight: bold;
    transition: color 0.2s ease;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #dc3545;
    /* Qırmızı rəng hover zamanı */
}

/* Axtarış xanasının stilini təmizləyirik */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field {
    border: 0;
    outline: 0;
    margin: 2px;
    padding: 0;
    width: 100%;
    flex-grow: 1;
    /* Qalan boşluğu doldursun */
}

/* Placeholder üçün stil */
.select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field::placeholder {
    color: #6c757d;
}

.modal {
    z-index: 10000000000000;
}

.swal2-container {
    z-index: 10000000000001 !important;
}

/* Diaqram üçün xüsusi stillər */
#structure-chart-container .tree {
    width: 100%;
    overflow-x: auto;
    /* Geniş strukturlar üçün skrol imkanı */
    padding: 20px;
}

.tree ul {
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
}

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

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

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

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

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

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

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

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

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

.tree li a.node {
    padding: 15px 25px;
    text-decoration: none;
    color: #333;
    background-color: #e0f2f1;
    /* Şəkildəki rəngə uyğun */
    border: 1px solid #a2d5c6;
    font-size: 14px;
    display: inline-block;
    border-radius: 8px;
    transition: all 0.3s;
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tree li a.node:hover {
    background: #a2d5c6;
    color: #fff;
    transform: translateY(-2px);
}

.node-title {
    font-weight: 600;
}

.node-type {
    font-size: 12px;
    color: #00796b;
    /* Rəng tonu */
    margin-top: 5px;
    text-transform: uppercase;
}

.actions.text-center {
    display: flex;
}

.actions.text-center a {
    margin: 0 3px;
}

.select2-results__options {
    max-height: 250px;
    overflow-y: auto;
}

ul.dropdown-menu.dropdown-menu-end.show {
    z-index: 100000;
}

.nav.nav-tabs .nav-item {
    width: 25%;
    min-width: 25%;
    border-bottom: 1px solid #333;
}


#cerate-modal .tab-pane {
    padding: 0 20px;
}

@media(min-width:991px) {
    .navbar-brand-box,
    .vertical-menu {
        width: 280px;
    }

    .main-content {
        margin-left: 280px;
    }
}
