﻿/*pre-loader*/
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
}

.loader {
    width: 50px;
    height: 50px;
    display: grid;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

.loader::before,
.loader::after {
    content: "";
    grid-area: 1/1;
    --c: no-repeat radial-gradient(farthest-side,#526EF4 92%, #0000); /* Front circles - green */
    background: var(--c) 50% 0, var(--c) 50% 100%, var(--c) 100% 50%, var(--c) 0 50%;
    background-size: 12px 12px;
    animation: l12 1s infinite;
}

.loader::before {
    margin: 4px;
    --c: no-repeat radial-gradient(farthest-side, #5fd0f3 92%, #0000); /* Behind circles - dark green */
    background-size: 8px 8px;
    animation-timing-function: linear;
}

@keyframes l12 {
    100% {
        transform: rotate(.5turn);
    }
}

/* All selectors are scoped to .filter-container to avoid affecting other elements */
.filter-container {
    width: 100%;
    box-sizing: border-box;
}

    .filter-container .filter-row {
        display: flex;
        align-items: center;
        flex-wrap: nowrap; /* On larger screens, keep items in a single row */
        gap: 30px;
        background: white;
        border-radius: 5px;
        padding: 1rem;
        margin-bottom: 1.5rem;
        border: 1px solid #e2e5e8;
        overflow-x: auto; /* Allow horizontal scroll if items overflow */
    }

    .filter-container .filter-label {
        flex: 0 0 auto;
        min-width: 80px;
        font-weight: 500;
    }

    .filter-container .filter-item {
        display: flex;
        align-items: center;
        position: relative;
        flex: 0 1 150px; /* Base width of 150px, but allow shrinking */
    }

        /* Dotted separator for all but the last item */
        .filter-container .filter-item:not(:last-child)::after {
            content: '';
            position: absolute;
            right: -15px; /* Position based on the gap */
            top: 50%;
            transform: translateY(-50%);
            height: 32px;
            border-right: 1px dotted #ccc;
        }

    .filter-container .form-select,
    .filter-container .form-control {
        display: block;
        width: 100%;
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.5;
        color: #212529;
        background-color: #fff;
        border: 1px solid #ced4da;
        border-radius: 0.25rem;
        transition: border-color 0.15s ease-in-out;
    }

        .filter-container .form-select:focus,
        .filter-container .form-control:focus {
            border-color: #86b7fe;
            outline: 0;
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        }

/* Responsive adjustments for screens below 768px */
@media (max-width: 768px) {
    .filter-container .filter-row {
        flex-wrap: wrap;
    }

    .filter-container .filter-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .filter-container .filter-item {
        flex: 1 1 100%;
        position: relative;
    }

        .filter-container .filter-item:not(:last-child)::after {
            display: none;
        }
}

/* Common data table designs */
.add-new {
    margin: 10px 0 15px 0;
}
/* Container for edit-buttons */
.edit-buttons {
    display: flex;
    justify-content: flex-start!important;
    gap: 10px;
    /* Make container fit the content and center it */
    width: fit-content;
    margin: 0 auto;
}
    /* Fixed width for each button */
    .edit-buttons button {
        width: 80px; /* Adjust this value as needed */
    }

/* Override DataTables default striping */
table.dataTable.table-striped > tbody > tr:nth-of-type(2n+1) > * {
    box-shadow: none !important;
}

table.dataTable.table-striped > tbody > tr:nth-of-type(2n) > * {
    box-shadow: inset 0 0 0 9999px #f5f8ff !important;
}

/* Add a border color to the last row */
table.dataTable.table-striped > tbody > tr:last-child > * {
    border-bottom: 0px !important; /* Change color as needed */
}


/*Container for action icons (Edit, Delete) */
.action-buttons {
    display: flex;
    justify-content: center; /* Aligns items towards the center */
    align-items: center;
    gap: 20px; /* Adjust the spacing between the buttons */
    width: 100%;
}

    .action-buttons img {
        width: 20px; /* Adjust size if needed */
        height: 20px;
        cursor: pointer;
    }


.editing {
    background-color: #f8f9fa;
}

.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 80%;
    margin-top: 0.25rem;
}
/* Style for action icons */
.action-buttons .edit-icon {
    color: #2eb66d;
    cursor: pointer;
}

.action-buttons .delete-icon {
    color: #f34e4e;
    cursor: pointer;
}


/* Dashboard Accordions */
/*.accordion-section {
    margin: 20px 0;
    border: 1px solid #002cff36;
    border-radius: 4px;
    display: none;
}

.accordion-header {
    padding: 4px;
    background-color: #002cff36;
    display: flex;
    justify-content: space-between;*/ /* Space between title and buttons */
    /*align-items: center;
}

    .accordion-header .title-container {
        flex-grow: 1;*/ /* Allows the title to take available space */
        /*text-align: left;*/ /* Aligns the title to the left */
        /*padding-right: 10px;*/ /* Adds spacing between title and buttons */
    /*}

    .accordion-header .button-container {
        display: flex;
        gap: 8px;*/ /* Adds spacing between buttons */
    /*}

    .accordion-header h5 {
        font-weight: bold;
        margin: 0;*/ /* Removes default margins */
    /*}

.close-btn {
    cursor: pointer;
    font-size: 0.85rem;*/ /* Further reduce font size */
    /*line-height: 1;
    padding: 3px 5px;*/ /* Reduce padding */
    /*border-radius: 2px;*/ /* Smaller border radius */
    /*transition: background-color 0.3s;
}

.toggle-btn {
    font-size: 0.85rem;*/ /* Match the smaller size */
    /*padding: 3px 5px;*/ /* Reduce padding */
    /*border-radius: 2px;*/ /* Match border-radius */
    /*line-height: 1;
    transition: background-color 0.3s;
}*/


/* Center title on large and extra-large screens */
/*@media (min-width: 992px) {
    .accordion-header .title-container {
        text-align: center;*/ /* Center the title */
    /*}
}

.clickable {
    cursor: pointer;
    transition: background-color 0.3s;
}

 .clickable:hover {
    background-color: #f5f6f8;
 }*/

/* Expanded accordion table styling */
/*.accordion-section .dataTables_scrollBody {
    height: auto !important;
    max-height: 65vh !important;
}*/

/* Accordion content */
/*.accordion-content {
    padding: 15px;
    display: block;
}*/

/* Collapsed state */
/*.accordion-section.collapsed .accordion-content {
    display: none;
}

.accordion-section.collapsed .toggle-btn i {
    transform: rotate(180deg);
}*/


/* Hide the original SVG completely, not just its content */
[data-feather="edit"] svg, [data-feather="trash"] svg {
    opacity: 0 !important;
    visibility: hidden !important;
    display:none !important;
}

/* Target the elements more precisely if needed */
.edit-icon#btnEdit, [data-feather="edit"] {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-image: url('../images/icons/edit-2.svg') !important;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.delete-icon#btnDelete, [data-feather="trash"] {
    width: 19px;
    height: 19px;
    display: inline-block;
    background-image: url('../images/icons/delete-2.svg') !important;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}


/*select box*/
/ /* Select2 Bootstrap 5 Theme Enhancements */
.select2-container--bootstrap-5 {
    width: 100% !important;
}

.select2-container--bootstrap-5 .select2-selection {
    border: 1px solid #D9D9D9;
    border-radius: 3px;
    background-color: white;
    min-height: calc(1.5em + 0.75rem + 2px);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .select2-container--bootstrap-5 .select2-selection:focus {
        border-color: #86b7fe;
    }

/* Single Selection Styles */
.select2-container--bootstrap-5 .select2-selection--single {
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

    .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
        padding-left: 0px !important;
        color: #495057;
        line-height: 1.5;
    }

.select2-container--bootstrap-5 .select2-results {
    max-height: 200px; /* Adjust as needed */
    overflow-y: auto;
}

/* Dropdown Styles */
.select2-container--bootstrap-5 .select2-dropdown {
    border-color: #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.select2-container--bootstrap-5 .select2-results__option {
    padding: 0.375rem 0.75rem;
    color: #212529;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted[aria-selected] {
    background-color: #0d6efd;
    color: #fff;
}



/* Form Floating Adjustments */
.form-floating > .select2-container--bootstrap-5 .select2-selection {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
    
}

.form-floating > .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
    
}

/* Error State */
.select2-container--bootstrap-5.is-invalid .select2-selection {
    border-color: #dc3545;
}

.select2-container--bootstrap-5.is-invalid.select2-container--focus .select2-selection {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

/* Disabled State */
.select2-container--bootstrap-5.select2-container--disabled .select2-selection {
    background-color: #f5f6f8;
    border-color: #d9d9d9;
    opacity: 1;
}

.select2-container--bootstrap-5.select2-container--disabled .select2-selection--single {
    background-image: none;
}


/* Make sure the disabled select inside a form-floating has proper styling */
.form-floating > .select2-container--bootstrap-5.select2-container--disabled .select2-selection {
    background-color: #e9ecef;
}

.upload-btn-wrapper {
    position: relative;
    display: inline-block;
}

    .upload-btn-wrapper input[type=file] {
        position: absolute;
        left: 0;
        top: 0;
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }


    /*These styles are for the Temporary reports displaying in the Onboarding screen*/

/* Add this to your existing style section */
#temporaryReportsContainer {
    margin-top: 10px;
}

    #temporaryReportsContainer .reports-section {
        margin-bottom: 15px;
    }

    #temporaryReportsContainer .reports-section-title {
        background-color: #f8f9fa;
        padding: 8px 15px;
        font-weight: 600;
        border-radius: 4px;
        margin-bottom: 8px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #temporaryReportsContainer .reports-list {
        padding-left: 15px;
        margin-bottom: 12px;
    }

    #temporaryReportsContainer .report-item {
        padding: 5px 0;
        border-bottom: 1px dashed #e9ecef;
    }

    #temporaryReportsContainer .scrollable-reports {
        max-height: 120px;
        overflow-y: auto;
        padding-right: 5px;
        scrollbar-width: thin;
    }

        #temporaryReportsContainer .scrollable-reports::-webkit-scrollbar {
            width: 6px;
        }

        #temporaryReportsContainer .scrollable-reports::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        #temporaryReportsContainer .scrollable-reports::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }

            #temporaryReportsContainer .scrollable-reports::-webkit-scrollbar-thumb:hover {
                background: #a8a8a8;
            }

    #temporaryReportsContainer .badge {
        font-size: 0.75rem;
    }

    #temporaryReportsContainer .reports-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
    }
    .body-background
    {
        background-color:#fff !important;
    }



.icon-colored {
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(215deg) brightness(85%) contrast(120%);
    color: #526EF4 !important;
}
.btn-border-only {
    background-color: transparent;
    border: 2px solid #526EF4;
    color: #000;
}

    .btn-border-only:hover {
        background-color: #526EF4;
        color: white;
    }
.table thead th {
    font-weight: bold;
}
.search-container {
    position: relative;
}

    .search-container i {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        color: #888;
    }

.search-input {
    padding-left: 30px;
}



/*This is for the Toast error message*/

#toast-container .toast {
    opacity: 0.9;
}

#toast-container .toast-body {
    font-size: 0.9rem;
}
.sorting_disabled::after,
.sorting_disabled::before {
    display: none !important;
}



.appointmentscol {
    /*background: #bbe2f0 !important;*/
    background: #d2e8f0 !important;
    color: #5D4A00 !important;
    font-weight: 700;
}

/* --- multiselect.css --- */

/* Main Container */
.custom-multiselect {
    position: relative;
    width: 100%;
    user-select: none;
}

    /* The Display Box */
    .custom-multiselect .select-box {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 7px 15px;
        font-size: 16px;
        background-color: #fff;
        border: 1px solid #ced4da;
        border-radius: 5px;
        cursor: pointer;
        transition: all 0.3s;
    }

        .custom-multiselect .select-box:hover {
            border-color: #80bdff;
        }

    .custom-multiselect.active .select-box {
        border-color: #80bdff;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    /* Arrow Icon */
    .custom-multiselect .select-box::after {
        content: '';
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #555;
        transition: transform 0.3s;
    }

    .custom-multiselect.active .select-box::after {
        transform: rotate(180deg);
    }

    /* Options Dropdown */
    .custom-multiselect .options-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        opacity: 0;
        background-color: #fff;
        border: 1px solid #80bdff;
        border-top: none;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        overflow: hidden;
        transition: all 0.3s;
        z-index: 1000;
    }

    .custom-multiselect.active .options-container {
        max-height: 250px; /* Scrollable height */
        opacity: 1;
        overflow-y: auto;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    /* Option Items */
    .custom-multiselect .option-item {
        padding: 7px 15px;
        cursor: pointer;
        border-bottom: 1px solid #f1f1f1;
        display: flex;
        align-items: center;
    }

        .custom-multiselect .option-item:last-child {
            border-bottom: none;
        }

        .custom-multiselect .option-item:hover {
            background-color: #f8f9fa;
        }

        .custom-multiselect .option-item input[type="checkbox"] {
            margin-right: 12px;
            transform: scale(1.2);
            cursor: pointer;
        }