/*----------------Specific for Division in the hiearchy----------*/

@font-face {
    font-family: droid;
    /*src: url(../../css/css-rtl/DroidKufi/DroidKufi-Regular.ttf);*/
    src: url(../../assets/css/css-rtl/DroidKufi/DroidKufi-Regular.ttf);
    font-weight: 500;
}

@font-face {
    font-family: droidbold;
    /*src: url(../../css/css-rtl/DroidKufi/DroidKufi-Bold.ttf);*/
    src: url(../../assets/css/css-rtl/DroidKufi/DroidKufi-Bold.ttf);
    font-weight: 600;
}

.tree-container * {
    font-family: 'droid', Tahoma;
    /*font-size: 12px;*/
    /*line-height: 1.42857143;*/
}

.division {
    text-align: right;
    border: 1px solid darkgray;
    padding: 5px;
    margin-top: 4px;
    display: block;
    background: rgb(0 51 160/ 50%);
    color: White;
}

.division-item {
    flex-direction: column;
    display: inline-flex;
}

.division-container {
    min-width: 200px;
    border: 1px solid darkgray;
    padding: 0px 5px 5px 5px;
}

.image-button {
    background: #032350;
    /*color: #fff;*/
    background: #0033A0;
    padding: 5px;
    border: transparent;
    border-radius: 1rem;
    margin-right: 0.4rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
}



/*---------------- search and navigations -----------------*/
.ba-red {
    animation: glow 1s 2;
}

.bg-search {
    /*background-color: #032350 !important;*/
    color: black !important;
    transition: 0.3s;
    transition: 0.5s;
}
/*.wrapper {*/
/* background: #fff; */
/*background: transparent;
}*/

.search-bar {
    background: transparent;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /*align-items: flex-start;*/
    align-items: center;
    z-index: 10;
    padding: 10px 10px 15px 10px;
    position: sticky;
    top: 0;
}
    .search-bar div p {
        margin: 0;
        font-size: 13px;
        margin-right: 30px;
        color: #5e5e5e;
    }
.search-group {
    position: relative;
    display: flex;
    align-items: center;
}

#searchNumber {
    position: absolute;
    bottom: -23px;
    right: 1rem;
    margin: 0;
    margin-top: 4px;
    font-size: 13px;
    color: #5e5e5e;
    white-space: nowrap;
}




input {
    padding: 10px;
    border: 1px solid#ddd;
    border-radius: 1rem;
    width: 30rem;
    margin-right: 1rem;
    outline: none;
}

button {
    background: #032350;
    color: #fff;
    padding: 10px;
    border: transparent;
    border-radius: 1rem;
    margin-right: 0.4rem;
    cursor: pointer;
}

.d-none {
    display: none;
    white-space: nowrap;
    text-align: right;
}

.d-block {
    display: block;
    white-space: nowrap;
    text-align: right;
}


/*----------------tree-scroll----------*/

.tree-scroll::-webkit-scrollbar {
    width: 6px;
    height: 8px;
}

.tree-scroll::-webkit-scrollbar-track {
    border-radius: 10px;
    background-color: #e4e4e4;
}

.tree-scroll::-webkit-scrollbar-thumb {
    background: #212121;
    border-radius: 10px;
    transition: 0.5s;
}

    .tree-scroll::-webkit-scrollbar-thumb:hover {
        background: #d5b14c;
        transition: 0.5s;
    }


/*----------------data-tree----------*/
.tree-container {
    position: relative;
    width: 90%;
    margin: auto;
    margin-top: 3rem;
    border: 2px solid #ddd;
    background: transparent;
    /*background: #ffffff;*/
}

.tree-body {
    white-space: nowrap;
    overflow-y: auto;
    text-align: center;
    height: 40rem;
    margin: auto;
    margin-top: 1rem;
    padding: 10px;
}

.data-tree {
    display: flex;
    justify-content: center;
    position: relative;
    padding-top: 1rem;
    width: fit-content;
    min-width: 100%;
}

    .data-tree ul {
        padding-top: 20px;
        position: relative;
        padding-left: 0px;
        display: flex;
        justify-content: center;
    }

    .data-tree li {
        float: left;
        text-align: center;
        list-style-type: none;
        position: relative;
        padding: 20px 5px 0 5px;
    }

        .data-tree li::before,
        .data-tree li::after {
            content: '';
            position: absolute;
            top: 0;
            right: 50%;
            border-top: 2px solid #ccc;
            width: 50%;
            height: 18px;
        }

        .data-tree li::after {
            right: auto;
            left: 50%;
            border-left: 2px solid #ccc;
        }

        .data-tree li:only-child::after,
        .data-tree li:only-child::before {
            display: none;
        }

        .data-tree li:only-child {
            padding-top: 0;
        }

        .data-tree li:first-child::before,
        .data-tree li:last-child::after {
            border: 0 none;
        }

        .data-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;
        }

        .data-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;
        }

    .data-tree ul ul::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        border-left: 2px solid #ccc;
        width: 0;
        height: 20px;
    }

    .data-tree li a {
        text-decoration: none;
        color: white;
        font-weight: 600;
        width: 200px;
        min-height: 40px;
        text-wrap: wrap;
        /*font-family: arial, verdana, tahoma;*/
        font-family: 'droid','Tahoma';
        line-height: 1.6;
        font-size: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 5px;
        -webkit-border-radius: 5px;
        -moz-border-radius: 5px;
        padding: 10px;
        background: rgb(0 51 160/ 75%);
        cursor: pointer;
        justify-content: right;
        gap: 10px;
    }

        .data-tree li a:hover + ul li::after,
        .data-tree li a:hover + ul li::before,
        .data-tree li a:hover + ul::before,
        .data-tree li a:hover + ul ul::before {
            border-color: #032350;
        }

img.treeimage {
    width: 17px;
    margin-left: 5px;
}

li p {
    display: inline;
    position: relative;
    margin: 0;
}

    li p span {
        position: absolute;
        color: #fff;
        font-size: 12px;
        background: #032350;
        padding: 8px;
        border-radius: 7px;
        z-index: 99;
        left: 2rem;
        top: -6px;
    }


@keyframes glow {
    0% {
        box-shadow: 1px 1px 13px rgb(44 43 104), -1px -1px 13px rgb(44 43 104);
    }

    50% {
        box-shadow: 1px 1px 13px rgb(74 116 112), -1px -1px 13px rgb(74 116 112);
    }

    100% {
        box-shadow: 1px 1px 13px rgb(44 43 104), -1px -1px 13px rgb(44 43 104);
    }
}


/*//////////////////////////////////////*/

.node-text {
    flex: 1;
    text-align: center;
    white-space: normal;
}

.node-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

    .node-actions p {
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .node-actions img.treeimage {
        width: 18px;
        fill: #032350;
        /*transition: transform .2s ease, opacity .2s ease;*/
        /*background-color: #032350;
        padding: 4px;
        border-radius: 4px;
        box-sizing: content-box;*/
    }

    .node-actions p:hover img {
        transform: scale(1.15);
        opacity: .9;
    }

[dir="rtl"] .node-actions {
    margin-left: auto;
    margin-right: 0;
}


/*/////////////////////////////////////////*/

@media (min-width: 1366px) {
    .data-tree li a {
        width: 250px;
        /*font-size: 18px;*/
        padding: 14px;
    }

    .tree-body {
        height: 45rem;
    }

    img.treeimage {
        width: 18px;
    }
}

@media (min-width: 1600px) {
    .data-tree li a {
        width: 280px;
        /*font-size: 19px;*/
        padding: 14px;
        border-radius: 8px;
    }

    .tree-body {
        height: 55rem;
    }

    img.treeimage {
        width: 20px;
    }
}

@media (min-width: 1920px) {
    .data-tree li a {
        width: 320px;
        /*font-size: 21px;*/
        padding: 16px;
        border-radius: 10px;
    }

    .tree-body {
        height: 65rem;
    }

    .data-tree li {
        padding: 30px 10px 0 10px;
    }

    img.treeimage {
        width: 22px;
    }
}
@media (max-width: 768px) {
    .search-bar {
        align-items: flex-start;
    }

    .search-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }

    #searchNumber {
        position: static;
        margin: auto;
        margin-top: 4px;
    }
}
