﻿
#departmentsTree {
    max-height: 420px;
    overflow: auto;
    display: none
}

label {
    font-size: 12px;
}

.master-ar-error, .master-en-error, .ar-error, .en-error {
    display: none;
}

.master-controls, .edit-controls {
    font-size: 12px;
    border-color: #1cc0a0 !important
}

.master-label, .edit-label {
    cursor: pointer;
    color: #1cc0a0
}

#removeMasterImg, #removeUpdateImg {
    cursor: pointer
}

.master-container, .edit-container {
    height: 97px;
    border-color: #1cc0a0 !important
}

#previewMasterImage, #previewUpdateImage {
    width: 100%;
    height: 100%;
    object-fit: fill
}

.master-error, .edit-error, .add-error {
    color: #ff003b;
    display: none
}

.img-container {
    width: 50px;
    height: 50px;
    border-color: #1cc0a0 !important;
}

.remove-child {
    font-size: 14px;
    cursor: pointer;
    position: absolute;
    z-index: 99999;
    left: -2px;
    top: -4px;
    font-weight: bold
}

.prev-child-img {
    cursor: pointer;
    max-width: 100%;
    max-height: 100%;
    object-fit: fill;
}

#childsTable tbody tr td {
    padding: 5px
}

.field-validation-valid, .field-validation-error {
    color: #ff003b;
    font-size: 12px
}

#childsTable thead tr th, tbody tr td, td input {
    font-size: 12px;
    vertical-align: middle;
    text-align: center
}

.swal-title-small {
    font-size: 16px; /* حجم أصغر للعنوان */
}

.swal-text-small {
    font-size: 14px; /* حجم أصغر للنص */
}

.swal-button-small {
    font-size: 12px; /* حجم أصغر للأزرار */
}

.swal2-container {
    z-index: 2000 !important;
}

.hidden {
    display: none;
}

.level-level-0 {
    font-size: 1rem; /* أكبر حجم */
    font-weight: 700; /* أثقل وزن */
}

.level-level-1 {
    font-size: 0.9rem;
    font-weight: 600;
}

.level-level-2 {
    font-size: 0.8rem;
    font-weight: 500;
}

.level-level-3 {
    font-size: 0.7rem;
    font-weight: 400;
}

.level-small {
    font-size: 0.7rem;
    font-weight: 400;
}

#departmentsTree ul.children {
    margin-top: 0.25rem;
}

#departmentsTree li > div:hover {
    background-color: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

#departmentsTree .action-buttons,
#departmentsTree .data-cells {
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

#departmentsTree li > div:hover .action-buttons,
#departmentsTree li > div:hover .data-cells {
    opacity: 1;
}

#departmentsTree ul.children {
    position: relative;
    padding-right: 1rem;
    border-right: 1px dotted #999;
}

    #departmentsTree ul.children li {
        position: relative;
    }

        #departmentsTree ul.children li::before {
            content: "";
            position: absolute;
            top: 0.65rem;
            right: -1rem;
            width: 1rem;
            border-top: 1px dotted #999;
        }

#departmentsTree .action-buttons .btn {
    padding: 0.2rem 0.50rem;
    font-size: 0.7rem;
    line-height: 1;
    border-radius: 0.375rem;
}

.loading-container {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
