

body {
    font-size: 12px !important;
}

.form-control-label {
    background-color: var(--kt-input-group-addon-bg);
}

.label-text {
    display: flex;
    padding: 0.775rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--kt-form-label-color);
    text-align: inherit !important;
    white-space: normal !important;
    background-color: var(--kt-input-group-addon-bg);
    border: none !important;
}

.filter-label {
    height: fit-content !important;
}

.card-sub-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--kt-text-dark);
    margin-top: 1.5rem;
    min-height: 35px;
}

.arrow-btn {
    padding-top: calc(0.775rem + 1px);
    padding-bottom: calc(0.775rem + 1px);
    margin-bottom: 0;
}

.fs-file {
    font-size: inherit !important;
}

.fs-time-picker {
    font-size: 0.925rem !important;
}

.flex-center {
    display: flex;
    align-items: center
}

/*Blazorise TreeView Adjust*/
.tree-view .tree-view-icon .fas.fa-minus-square::before {
    font-size: 1.3em;
    line-height: 0.075em;
    font-weight: normal;
    margin-right: 0.75rem !important;
    vertical-align: middle;
}

.tree-view .tree-view-icon .fas.fa-plus-square::before {
    font-size: 1.3em;
    line-height: 0.075em;
    font-weight: normal;
    margin-right: 0.75rem !important;
    vertical-align: middle;
}

.tree-view .tree-view .tree-view-icon .fas.fa-minus-square::before {
    font-size: 1.3em;
    line-height: 0.075em;
}

.tree-view .tree-view .tree-view-icon .fas.fa-plus-square::before {
    font-size: 1.3em;
    line-height: 0.075em;
}

.tree-check {
    width: 1.15rem;
    height: 1.15rem;
    vertical-align: text-top;
    border: 1px solid #B5B5C3;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-bottom: 10px;
}

.tree-view .tree-view .tree-view .tree-view-title .p-1 {
    margin-left: 8px;
}

.tree-view .tree-view-title {
    line-height: 20px;
}
/*-------*/

.search-input {
    height: calc(1.5em + 1.3rem + 2px);
    padding: 0.65rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.search-icon {
    font-size: 1.5rem !important;
}

.search-icon-border {
    padding: 0.65rem 1rem;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 400;
}

.input-group .input-group-append {
    display: flex;
    cursor: pointer;
}

    .input-group .input-group-append .input-group-text {
        border-radius: 0.42rem;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

.row-end {
    display: flex;
    justify-content: flex-end;
}

/* Start ## dual list box*/
.dual-listbox {
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    flex-direction: column;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    padding: 0px;
    padding-right: 0px !important;
}

    .dual-listbox .dual-listbox__search {
        width: 225px;
        border: 1px solid #EBEDF3;
        color: #3F4254;
        outline: none !important;
        border-radius: 0.42rem;
        padding: 10px;
        max-width: 300px;
    }

        .dual-listbox .dual-listbox__search:active, .dual-listbox .dual-listbox__search:focus {
            border-color: #0ee7a5 !important;
        }

    .dual-listbox .dual-listbox__container {
        display: flex;
        -ms-flex-wrap: nowrap;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
    }

        .dual-listbox .dual-listbox__container .dual-listbox__title {
            color: #3F4254;
            font-weight: 500;
            font-size: 1.1rem;
            padding: 0.75rem 0.75rem;
            border: 1px solid #EBEDF3;
            border-bottom: 0;
            border-top-left-radius: 0.42rem;
            border-top-right-radius: 0.42rem;
            -webkit-box-direction: normal;
            margin-top: 1rem;
        }

        .dual-listbox .dual-listbox__container .dual-listbox__selected, .dual-listbox .dual-listbox__container .dual-listbox__available {
            width: auto;
            color: #3F4254;
            border: 1px solid #EBEDF3;
            border-bottom-left-radius: 0.42rem;
            border-bottom-right-radius: 0.42rem;
        }

    .dual-listbox .dual-listbox__available, .dual-listbox .dual-listbox__selected {
        border: 1px solid #ddd;
        height: 300px;
        overflow-y: auto;
        padding: 0;
        width: 300px;
        margin-top: 0;
    }

    .dual-listbox .dual-listbox__container .dual-listbox__buttons {
        margin: 0 1.5rem;
    }

    .dual-listbox .dual-listbox__buttons {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        margin: 0 10px;
    }

    .dual-listbox .dual-listbox__container .dual-listbox__selected, .dual-listbox .dual-listbox__container .dual-listbox__available {
        width: auto;
        color: #3F4254;
        border: 1px solid #EBEDF3;
        border-bottom-left-radius: 0.42rem;
        border-bottom-right-radius: 0.42rem;
    }

    .dual-listbox .dual-listbox__available, .dual-listbox .dual-listbox__selected {
        border: 1px solid #ddd;
        height: 300px;
        overflow-y: auto;
        padding: 0;
        width: 300px;
        margin-top: 0;
    }

    .dual-listbox .dual-listbox__container .dual-listbox__buttons .dual-listbox__button {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        -webkit-box-shadow: none;
        box-shadow: none;
        border: none;
        cursor: pointer;
        background-color: transparent;
        outline: none !important;
        margin: 0;
        padding: 0;
        border-radius: 0.42rem;
        margin-bottom: 0.5rem !important;
        padding: 0.55rem 0.75rem;
        color: #7E8299;
        font-weight: 500;
        font-size: 0.9rem;
        background-color: #F3F6F9;
        -webkit-transition: all 0.3s ease;
        transition: all 0.3s ease;
        text-align: center;
    }

        .dual-listbox .dual-listbox__container .dual-listbox__buttons .dual-listbox__button:hover i {
            transition: all 0.15s ease;
            color: #0BB783;
        }

.dual-listbox__item {
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid #EBEDF3;
}
/* End ##*/

/* Custom select-list control styling */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-select-list-options {
    position: absolute;
    border-radius: 0.475rem;
    overflow: hidden;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
    background-color: #fff;
    z-index: 1000;
    width: 100%;
    margin-top: 0.25rem;
}
    .custom-select-list-options.hide {
        display: none;
    }

    .custom-select-list-options.show {
        display: block;
    }

    .custom-select-list-options .select-list-item {
        background-color: #fff;
        color: var(--kt-gray-700);
        padding: 0.75rem 1.25rem;
        margin: 0;
        transition: background-color 0.2s ease, color 0.2s ease;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .custom-select-list-options .select-list-item:hover {
            background-color: var(--kt-component-hover-bg);
            color: var(--kt-component-hover-color);
        }

        .custom-select-list-options .select-list-item.selected {
            color: var(--kt-component-hover-color);
        }

            .custom-select-list-options .select-list-item.selected:hover {
                background-color: var(--kt-component-hover-bg);
            }

            .custom-select-list-options .select-list-item.selected .fa-check {
                color: var(--kt-component-hover-color);
            }

@media (min-width: 576px) {
    .col-sm-25 {
        flex: 0 0 auto;
        max-width: 20.77777778%
    }

    .col-sm-95 {
        flex: 0 0 auto;
        max-width: 79.22222222%
    }
}

.btn {
    --bs-btn-font-size: 12px;
}

    .btn:not(.btn-outline):not(.btn-dashed):not(.border-hover):not(.border-active):not(.btn-flush):not(.btn-icon) {
        padding: calc(0.575rem + 1px) calc(1rem + 1px);
    }

.form-floating.input-group > .form-control:focus, .input-group > .form-select:focus {
    z-index: 0;
}

.page-item .page-link {
    font-size: 12px !important;
}

.btn-group .btn {
    --bs-btn-padding-x: 1rem;
}

.form-control-sm {
    min-height: calc(1.5em + 1.4rem + 1px);
}

.mandatory {
    border-left: 2px solid red !important;
}

.was-validated .form-control:valid, .form-control.is-valid {
    border-left: 1px solid #50cd89 !important;
}

.form-floating .form-control.is-valid {
    z-index: 0;
}

[data-kt-app-layout=light-sidebar] .app-header {
    background-color: var(--kt-app-header-base-bg-color);
}

/* Start ## This css is cater for validation issue between blazorise SelectList and Bootstrap select2*/
.select2-selection.select2-selection--single.form-select.is-invalid {
    display: flex;
}

.select2-selection.select2-selection--single.form-select.is-valid {
    display: flex;
}

.form-select-sm.is-invalid + .select2 .select2-selection.form-select {
    padding-right: 5.5rem;
    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='%237E8299' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23f1416c'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23f1416c' stroke='none'/%3e%3c/svg%3e");
    background-position: right 1rem center, center right 3rem;
    background-size: 16px 12px, calc(0.75em + 0.775rem) calc(0.75em + 0.775rem);
    border-color: #f1416c;
}

.form-select-sm.is-valid + .select2 .select2-selection.form-select {
    padding-right: 5.5rem;
    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='%237E8299' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"), url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2350cd89' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-position: right 1rem center, center right 3rem;
    background-size: 16px 12px, calc(0.75em + 0.775rem) calc(0.75em + 0.775rem);
    border-color: #50cd89;
    border-left: 1px solid #50cd89 !important;
}

.select2-container--bootstrap5 .select2-selection {
    min-height: 38px;
}

select[data-control="select2"] {
    display: none !important;
}
/* End ## This css is cater for validation issue between blazorise SelectList and Bootstrap select2*/


#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.modal-header .close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #000;
    opacity: 0.5;
    cursor: pointer;
}

    .modal-header .close:hover,
    .modal-header .close:focus {
        opacity: 1;
    }

.image-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns per row */
    gap: 20px; /* Space between items */
    margin-top: 24px;
}

.image-item {
    display: flex;
    flex-direction: column; /* Stack image and name vertically */
    justify-content: flex-start; /* Align content to the top */
    align-items: center;
    position: relative;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    background-color: #fff;
}

.image-container {
    width: 100%;
    height: 150px; /* Adjust height as necessary to fit image properly */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.image {
    object-fit: contain; /* Ensures image fits within the box without distortion */
    max-width: 90%; /* Limit image width */
    max-height: 90%; /* Limit image height */
}

.report-name {
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: #333;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
}

/* Responsive design for smaller screens */
@media (max-width: 900px) {
    .image-item {
        height: auto;
        aspect-ratio: 1 / 1; /* Square aspect ratio on medium screens */
    }
}

@media (max-width: 600px) {
    .image-item {
        height: 200px; /* Slightly smaller height on very small screens */
        aspect-ratio: 1 / 1; /* Square aspect ratio for mobile screens */
    }
}

.baseline .baseline-list .baseline-info {
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 20px;
}

.baseline-info {
    border-color: #36a2f5 !important;
}

.baseline-border {
    border-left: 1px solid #e5ebf8;
}

.baseline,
.baseline .baseline-list {
    position: relative;
    border-color: #e5ebf8;
}

    .baseline .baseline-list {
        padding-bottom: 1px;
    }

    .baseline,
    .baseline .baseline-list {
        position: relative;
        border-color: #e5ebf8;
    }

        .baseline .baseline-list:before {
            display: table;
            content: " ";
        }

        .baseline .baseline-list:after {
            display: table;
            position: absolute;
            top: 18px;
            left: 0;
            width: 12px;
            height: 12px;
            margin-left: -6px;
            content: "";
            border-width: 1px;
            border-style: solid;
            border-color: inherit;
            border-radius: 10px;
            background-color: #fff;
            box-shadow: 0 0 0 3px #e5ebf8 inset;
        }

.progress-symptom {
    overflow: visible;
    height: 10px;
    border-radius: 2rem !important;
}

.progress-symptom-bar {
    width: 50%;
    border-radius: 2rem !important;
}

.progress-symptom-circle {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: #e04878;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 20px;
    font-size: 13px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
}
.info_items .progress,
.info_items .progress .progress-bar {
    border-radius: 0;
}

.info_items .progress {
    background: rgba(0, 0, 0, .2);
    margin: 10px 0px;
    height: 3px;
}

.progress {
    border: 0;
    background-image: none;
    filter: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    border-radius: 0 !important;
    margin: 0;
}

.info_items .progress .progress-bar {
    background: #fff;
}

.info_items .progress,
.info_items .progress .progress-bar {
    border-radius: 0;
}

.file-upload-label {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0 !important;
    margin-bottom: 0;
}

input.form-check-input.small-checkbox {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    margin: 0;
    vertical-align: middle;
    border-radius: 5px;
}

td .form-check {
    padding-left: 0 !important;
}

.modal-footer-center {
    justify-content: center !important;
}

.draggable-modal-header {
    cursor: move;
    user-select: none;
}

select.input-addon-left + .select2-container {
    width: 50% !important;
}

    select.input-addon-left + .select2-container .select2-selection {
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

.mobile-number-field.input-group {
    flex-wrap: wrap !important;
    position: relative;
}

    .mobile-number-field.input-group .invalid-feedback,
    .mobile-number-field.input-group .valid-feedback {
        flex-basis: 100%;
        width: 100%;
        display: block;
        white-space: normal;
        margin-top: 0.25em;
        margin-bottom: 0;
        order: 2;
    }

.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
    border-top-right-radius: 0.425rem !important;
    border-bottom-right-radius: 0.425rem !important;
}

.sticky-card-top {
    position: sticky;
    top: 80px;
    z-index: 10;
    background: white;
    border-radius: calc(0.625rem - 1px);
}

.select2-container--bootstrap5 .select2-dropdown .select2-results__option.select2-results__option--selected {
    display: flex !important;
    align-items: center !important;
}

.select2-container--bootstrap5 .select2-dropdown .select2-results__option--selected::after {
    position: static !important;
    transform: none !important;
    margin-left: auto;
}

.nav-line-tabs .nav-link {
    color: var(--kt-light-inverse) !important;
    font-weight: 400 !important;
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
}

    .nav-line-tabs .nav-link:hover {
        color: var(--kt-primary) !important;
    }

    .nav-line-tabs .nav-item .nav-link.active {
        color: var(--kt-primary) !important;
        font-weight: 500 !important;
        background-color: #fff !important;
        padding: 0.5rem 1rem !important;
    }

.swal2-popup .swal2-success {
    font-size: 10px; /* Adjust icon size */
}
.swal2-popup .swal2-error {
    font-size: 10px; /* Adjust icon size */
}
.swal2-popup .swal2-warning {
    font-size: 10px; /* Adjust icon size */
}
.swal2-popup .swal2-question {
    font-size: 10px; /* Adjust icon size */
}
.swal2-popup .swal2-info {
    font-size: 10px; /* Adjust icon size */
}

/* Center the stack itself */
.snackbar-stack.snackbar-stack-top.custom-snackbar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    /* stop stack keyframes & timings */
    --stack-transition-duration: 0ms !important;
    --stack-animation-duration: 0ms !important;
}

/* Fade-only items (block *all* movement/position overrides) */
.custom-snackbar .snackbar {
    position: relative !important; /* keep inside stack */
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important; /* never slide */
    animation: none !important;
    transition: opacity 600ms ease !important;
}

    .custom-snackbar .snackbar.snackbar-success {
        background-color: var(--kt-primary) !important;
        color: #fff !important;
    }
