﻿/* width */
html{
    scroll-behavior:smooth !important;
}
body {
    display: flex !important;
    flex-direction: column !important;
    height: 100vh !important;
    background: #ecf0f4;
}
::-webkit-scrollbar {
    width: 5px !important;
    height: 2px !important;
}

/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #664983;
}

    /* Handle on hover */
    ::-webkit-scrollbar-thumb:hover {
        background: #462964 !important;
    }
.simplebar-track.simplebar-vertical .simplebar-scrollbar:before {
    background-color: #f2f2f2 !important;
}
#simple-bar {
    /* The height MUST be defined for SimpleBar to work */
    height: calc(100vh - 5rem); /* Same height calculation as before */
    width: 15rem; /* Ensure width is set */
    /* *** IMPORTANT: Do not set overflow: auto; here *** */
}
.pre-loader {
    background: #fff;
    background-position: center center;
    background-size: 13%;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 12345;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

    .pre-loader .loader-logo {
        padding-bottom: 15px;
    }

    .pre-loader .loader-progress {
        height: 8px;
        border-radius: 15px;
        max-width: 200px;
        margin: 0 auto;
        display: block;
        background: #ecf0f4;
        overflow: hidden;
    }

    .pre-loader .bar {
        width: 0%;
        height: 8px;
        display: block;
        background: #524d7d;
        transition: width 0.8s ease;
    }

    .pre-loader .percent {
        text-align: center;
        font-size: 24px;
        display: none;
    }

    .pre-loader .loading-text {
        text-align: center;
        font-size: 18px;
        font-weight: 500;
        padding-top: 15px;
    }

.custom-active {
    color: #0d6efd !important;
}
.nav-active {
    color: #664983 !important;
}
.login-box {
    max-width: 400px;
    width: 100%;
    padding: 40px 20px;
    margin: 5px auto;
}

.text-lm-primary {
    /*    color: #44426b !important;*/
    color: #664983 !important;
}
.text-lm-secondary {
    color: #242c2f !important;
}
.card-box,
.da-card {
    background-color: #fff;
    border-radius: 10px;
    -webkit-box-shadow: 0 0 28px rgba(0, 0, 0, 0.08);
    box-shadow: 0 0 28px rgba(0, 0, 0, 0.08);
}
.table tr:hover {
    background-color: #e9ecef !important;
    color: #e9ecef !important;
    /* Add other styling properties as needed */
}
.text-violet {
    background-color: #664983 !important;
}

.btn-custom {
    color: #fff;
    background-color: #664983 !important;
}
    .btn-custom:hover {
        color: #fff;
        background-color: #462964 !important;
    }


.btn-custom:disabled {
    background-color: transparent; /* Gray background for disabled state */
    color: #f1f1f1; /* Darker text color for disabled state */
    cursor: not-allowed; /* Change cursor to indicate disabled state */
    opacity: 0.8; /* Slightly transparent */
}


.form-control:focus {
    border-color: #664983 !important;
    box-shadow: inset 0 1px 1px rgba(102, 73, 131, 0.075), 0 0 8px rgba(102, 73, 131, 0.6);
}
.bg-sidebar {
/*    background-color: #0f1f27 !important;*/
    background-color: #242c2f !important;
}
.rounded-full {
    border-radius: 100%;
}
.dropdown-items {
    border: 1px solid #ddd;
    border-radius: 2px;
   margin: -1px 0 0 -1px;
}
    .dropdown-items p {
        font-size: 10px;
        white-space: normal; /* Allows text to wrap */
        /*word-break: break-word;*/ /* Breaks long words to fit within the container */
    }
    .dropdown-items i {
        display: block; /* Ensures the icon is on its own line */
        margin-bottom: 5px; /* Adds space between the icon and text */
    }

#wrapper {
    overflow-x: hidden;
    /* background-image: linear-gradient(
    to right,
    #baf3d7,
    #c2f5de,
    #cbf7e4,
    #d4f8ea,
    #ddfaef
  );*/
    /* background-color: #f2f2f2 !important;*/
 
/*    background-image: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%);*/
}

#sidebar-wrapper {
/*New Line*/
    min-height: unset;
    margin-left: -15rem;
    -webkit-transition: margin 0.25s ease-out;
    -moz-transition: margin 0.25s ease-out;
    -o-transition: margin 0.25s ease-out;
    transition: margin 0.25s ease-out;
}

    #sidebar-wrapper .sidebar-heading {
        padding: 0.875rem 1.25rem;
        font-size: 1.2rem;
    }

    #sidebar-wrapper .list-group {
        /*New Line*/
        /*        height: 30rem;*/
        height: auto !important;
        width: 15rem;
    }

#page-content-wrapper {
    /*New Line*/
    min-width: 80vw;
    /*min-width: 100vw;*/
}


#wrapper.toggled #page-content-wrapper {
    min-width: 100vw;
    margin-left: 0;
    -webkit-transition: margin 0.25s ease-out;
    -moz-transition: margin 0.25s ease-out;
    -o-transition: margin 0.25s ease-out;
    transition: margin 0.25s ease-out;
}
#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;

}

#menu-toggle {
    cursor: pointer;
}

.list-group-item {
    border: none;
    padding: 20px 30px;
}

    .list-group-item.active {
        background-color: transparent;
        color: var(--main-text-color);
        font-weight: bold;
        border: none;
    }

.card-body img {
    min-width: 50% !important;
    max-height: 200px !important;
}
.btn-lm-danger {
    background-color: #9C0000 !important;
    border: none !important;
  
  
}

/*@media (min-width: 980px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }

    .fs-7 {
        font-size: 0.8rem !important;*/ /* Adjust this value as needed */
    /*}
}*/
#sidebar-scroll-content {
    /* *** FIX 2: Calculate the scrollable area's height *** */
    /* Assuming .sidebar-heading height + padding is roughly 4rem */
    height: calc(100vh - 4rem);
    /* *** FIX 3: Apply overflow properties here *** */
    overflow-y: auto;
    overflow-x: hidden;
}
@media (min-width: 980px) {
    #sidebar-wrapper {
        position: fixed;
        margin-left: 0;
        height: 100vh;
    }

    
    #page-content-wrapper {
        width: 100%;
        margin-left: 15rem;
        -webkit-transition: margin 0.25s ease-out;
        -moz-transition: margin 0.25s ease-out;
        -o-transition: margin 0.25s ease-out;
        transition: margin 0.25s ease-out;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }
    .fs-7 {
        font-size: 0.8rem !important;
    }
}
table tr td.dt-type-numeric {
    text-align: left !important;
}

footer {
    margin-top: auto !important;
}
.saprator {
    position: relative !important;
    text-align: center !important;
}

    .saprator::before {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        width: 100px !important;
        top: 50% !important;
        height: 1px !important;
        background: #e5eaef !important;
    }

    .saprator::after {
        content: "" !important;
        position: absolute !important;
        right: 0 !important;
        width: 100px !important;
        top: 50% !important;
        height: 1px !important;
        background: #e5eaef !important;
    }
   