/*Custom for datatable*/
.table.dataTable td{
    padding: 5px 8px !important;
    vertical-align: middle;
}

.dataTables_scroll .dataTables_scrollHead {
    padding-bottom: 0px;
}

.dataTables_scroll .dataTables_scrollHead .dataTable {
    margin-bottom: 0px;
}

.dataTables_scroll .dataTables_scrollBody {
    padding-top: 0px;
}

.dataTables_info{
    padding-top: unset !important;
}

@media (max-width: 765px) {
    .header-top-right .dropdown #topbarUserDropdown .text {
        display: none;
    }
}


label[class='error'] {
    color: red;
    font-weight: 400;
    padding-left: 10px;
    padding-top: 10px;
}

.ez-dropdown-ml a:hover {
    cursor: pointer;
}

.dataTables_scrollBody, .offcanvas-body {
    scrollbar-width: none;
}

    .dataTables_scrollBody::-webkit-scrollbar, offcanvas-body::-webkit-scrollbar {
        display: none; /* For Chrome, Safari, Edge */
    }

.dataTables_wrapper .dataTables_processing{
    background: none !important;
}

/*Custom for loader*/
#ezloader {
    position: absolute;
    width: 100%;
    background: #00000020;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
    overflow: hidden;
}

#ezloader img{
    position: absolute;
    top:50%;
    left:48%;
}

.form-select {
    border:.0625rem solid #bdc5d1;
}

.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: auto !important;
}

.select2-container--default .select2-selection--single, .select2-dropdown {
    border: .0625rem solid #bdc5d1;
}

.select2-container--default .select2-selection--single {
    padding: 6px 12px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #607080 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: auto !important;
    top: 45% !important;
    width: 30px !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border: 1px solid #607080 !important;
}

/*Custom drag drop for settings*/
#attribute, #company-attribute {
    min-height: 150px;
    width: auto;
    background-color: #fafafa;
    border: 1px solid #dce7f1;
    border-radius: 5px;
    margin: 10px auto;
}

.selected {
    background-color: #FFEB3B; /* Highlight selected items */
}

.drag-over {
    border: dashed 3px green;
}

.hide {
    display: none;
}

.attribute-item:hover {
    cursor: pointer;
}

/*Custom for upload avatar*/
.avatar-wrapper {
    position: relative;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 1px 1px 15px -5px black;
    transition: all 0.3s ease;
}

    .avatar-wrapper:hover {
        transform: scale(1.05);
        cursor: pointer;
    }

        .avatar-wrapper:hover .profile-pic {
            opacity: 0.5;
        }

    .avatar-wrapper .profile-pic {
        height: 100%;
        width: 100%;
        transition: all 0.3s ease;
    }

        .avatar-wrapper .profile-pic:after {
            font-family: FontAwesome;
            content: "";
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            position: absolute;
            font-size: 190px;
            background: #ecf0f1;
            color: #34495e;
            text-align: center;
        }

    .avatar-wrapper .upload-button {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
    }

        .avatar-wrapper .upload-button .fa-arrow-up {
            position: absolute;
            font-size: 32px;
            top: 15px;
            left: 15px;
            text-align: center;
            opacity: 0;
            transition: all 0.3s ease;
            color: #2CDF6B;
        }

        .avatar-wrapper .upload-button:hover .fa-arrow-up {
            opacity: 0.9;
        }


.navbar-height{
    height: 7rem;
}

.navbar-fixed ~ .main{
    padding-top: 7rem;
}

.custom-nav-segment {
    border-radius: 3px;
}

    .custom-nav-segment .nav-link.active {
        border-radius: 3px;
        color: #fff !important;
        background: #76b900 !important;
    }

    .main .content {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }

.footer{
    padding-top: 24px;
    height: 4.188rem;
    /*background: #ffffff;*/
}

.paginate_button{
    cursor: pointer;
}

.dataTables_scrollHead {
    width: 100%; /* Ensure the parent has 100% width */
    overflow: hidden;
    position: relative;
    border: 0px;
}

.dataTables_scrollHeadInner {
    width: 100% !important; /* Force 100% width on the inner div */
    box-sizing: content-box;
    padding-right: 0;
}

.dataTables_scrollHeadInner table {
    width: 100% !important; /* Ensure the table also takes up 100% width */
    margin-left: 0;
}
.mt-custom {
    margin-top: .25rem;
}
.mb-custom {
    margin-bottom: .25rem;
}


/* ========= Custom comment ============ */
.comment-section {
    margin: 0 auto;
}

.comment {
    padding: 10px 0 10px 10px;
}

    .comment .actions {
        margin-top: 5px;
        font-size: 0.9em;
        color: #555;
    }

    .comment .reply-box {
        margin-top: 10px;
    }

        .comment .reply-box textarea {
            width: 100%;
            height: 50px;
            margin-top: 5px;
        }

    .comment .replies {
        border-left: 2px solid #ddd;
    }

textarea {
    width: 100%;
    height: 50px;
    margin-top: 10px;
}

button {
    margin-top: 5px;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-attachment {
    margin-top: 10px;
    font-size: 0.9em;
    color: #007bff;
}

.ez-select2[readonly] + .select2-container .select2-selection {
    pointer-events: none;
    opacity: 0.6; /* Make it look disabled */
    background-color: #eee !important;
    cursor: default;
}
