:root {
    --p-color: #157d4c;
    --p-color-hover: #27a068;
    --p-color-active: #55ca93;
    --p-color-shadow-focus: #79dfaf;

    --gap: 5px;
}

@import url("/assets/fonts/Nexa Light.otf");
@import url("/assets/fonts/Nexa Bold.otf");

/* add nexa */
body {
    font-family: "nexa", sans-serif;
}

/* custom classes  */
.w-fit {
    width: fit-content;
}

.table thead th {
    background-color: var(--p-color);
    color: white;
}

.table-actions {
    display: flex;
    justify-content: center;
    gap: 5px;
}

/* forms */
.form-group {
    padding-top: 10px;
}

label {
    text-wrap: nowrap;
}

label.required:after {
    content: " *";
    color: red;
}

/* alert */

.alert {
    position: fixed;
    top: 30px;
    right: -500px;
    z-index: 999999999999999999999999;
    min-width: 300px;
    transition: right 0.5s ease-in;
}

.alert.show {
    transition: right 0.5s ease-out;
    right: 30px;
}

/* filters */
.filters {
    display: flex;
    gap: var(--gap);
    flex-wrap: wrap;
    justify-content: start;
    align-items: center;
    padding-bottom: 5px;
}

.filters input {
    width: 25%;
}

.filters select {
    width: 17.5%;
}

.filters select#department {
    width: 38%;
}



/* *******************************************************************

customize the bootstrap badge class

******************************************************************* */
.badge {
    padding-inline: 10px;
    padding-block: 5px;
    border-radius: 0px;
    font-size: 0.7rem;
    font-family: sans-serif;
    min-width: 50px;
}


/* ################################################################ */
/*                                                                  */
/*                         form customisation                       */
/*                                                                  */
/* ################################################################ */


.form-title {
    text-decoration: underline;
}

table.form-table-elements {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
}

table.form-table-elements th {
    background: rgb(239, 239, 239);
}

table.form-table-elements th,
table.form-table-elements td {
    padding: 5px;
    text-align: center;
}

/* ################################################################ */
/*                                                                  */
/*                         role badge                               */
/*                                                                  */
/* ################################################################ */

.role-badge {
    padding-inline: 10px;
    padding-block: 5px;
    border-radius: 5px;
    color: var(--p-color);
    background-color: #b4ffa8;
    box-shadow: 1px 1px 5px -3px #dfdfdf;
    font-weight: 500;
}



/* ################################################################ */
/*                                                                  */
/*                         table-inactivity                         */
/*                                                                  */
/* ################################################################ */
.table-inactivity tr.inactive td {
    background: rgba(0, 0, 0, 0.075);

}


/* ################################################################ */
/*                                                                  */
/*                         btn-add                                  */
/*                                                                  */
/* ################################################################ */


@media only screen and (max-width: 667px) {
    .btn-add {
        display: none;
    }

}


i.bx {
    margin-inline-end: 0px;
}

/* ################################################################ */
/*                                                                  */
/*                         drop down                                */
/*                                                                  */
/* ################################################################ */

.table-responsive>table .dropdown {
    position: inherit;
}

.table-responsive>table .dropdown>.dropdown-menu {
    position: absolute;
    z-index: 999999;
}

.table-responsive {
    overflow-y: visible !important;
}

.dropdown-menu {
    background-color: #ffffff;
    border: 1px solid #ccc;
}

.dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-menu .dropdown-item i {
    font-size: 1.1rem;
}

.dropdown-menu .dropdown-item:disabled,
.dropdown-menu .dropdown-item.disabled,
.dropdown-menu .dropdown-item:-moz-user-disabled {
    cursor: not-allowed !important;
}






/* ################################################################ */
/*                                                                  */
/*                         profile icon                             */
/*                                                                  */
/* ################################################################ */

.profile-icon {
    font-size: 30px;
    color: white;
    border-radius: 50px;
    border: 2px solid white;
    height: 45px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}







/* ################################################################ */
/*                                                                  */
/*          colorize the line that has btn more opened              */
/*                                                                  */
/* ################################################################ */
table.table tr:has(button.show) td {
    background-color: rgb(201, 201, 201) !important;
}


/* ################################################################ */
/*                                                                  */
/*              colorize the line that has checked                  */
/*                                                                  */
/* ################################################################ */
table.table tr:has(.row-check:checked) td {
    background-color: hsla(152, 71%, 29%, 0.20) !important;
}

table.table tr:last-child(th) {
    width: fit-content;
}

/* ################################################################ */
/*                                                                  */
/*                  add border to the datatable                     */
/*                                                                  */
/* ################################################################ */



table.table tbody td,
table.table thead th {
    border-color: #777;
}

table.table {
    border-bottom: #777;
    border-top: transparent !important;
}


table.table thead td {
    border-color: transparent !important;
}


/* ################################################################ */
/*                                                                  */
/*                 checkbox/radio  accent color                     */
/*                                                                  */
/* ################################################################ */


input[type=checkbox],
input[type=radio] {
    accent-color: var(--p-color);
}



/* ################################################################ */
/*                                                                  */
/*                                 Otp                              */
/*                                                                  */
/* ################################################################ */
/* ################################################################ */
/*                                                                  */
/*                                 Otp                              */
/*                                                                  */
/* ################################################################ */


/* otp sent success message animation */

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        display: block;
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        display: none;
    }
}

.fadeIn {
    animation: fadeIn 0.5s forwards;
}

.fadeOut {
    animation: fadeOut 0.5s forwards;
}


/* loading spinner */

.loading-div-son {
    position: fixed;
    top: 0;
    right: 0;
    left: 50%;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999999999999999;
    background-color: #00000006;

}

@media screen and (max-width: 1200px) {
    .loading-div-son {
        left: 0;
    }
}

.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    border: 4px solid #0000;
    border-radius: 50%;
    border-right-color: #25b09b;
    animation: l15 1s infinite linear;
}

.loader::before,
.loader::after {
    content: "";
    grid-area: 1/1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
    animation: l15 2s infinite;
}

.loader::after {
    margin: 8px;
    animation-duration: 3s;
}

@keyframes l15 {
    100% {
        transform: rotate(1turn)
    }
}

.required_star {
    color: red;
    font-size: 1rem;
}
