﻿/* custom css */
:root {
/*    overflow-y: scroll !important;*/
    --bs-primary: #404e7d;
    --bg-secondary: #499195;
    --dark-color: #272d3e;
}

.bg-primary {
    background-color: var(--bs-primary) !important;
}

.text-primary {
    color: var(--bs-primary) !important;
}
.border-bottom-color {
    border-bottom-color: #74788d !important
}
select option[data-is-active="false"] {
    color: red !important;
}

body[data-sidebar=colored].light .navbar-brand-box {
    background-color: var(--bs-primary);
}
.vertical-collpsed .navbar-brand-box {
    padding: 0;
}

body[data-sidebar=colored].light .vertical-menu {
    background: var(--bs-primary);
}

body[data-sidebar=colored].dark .navbar-brand-box {
    background-color: var(--dark-color);
}

body[data-sidebar=colored].dark .vertical-menu {
    background: var(--dark-color);
}

.form-control {
    padding: 0.5rem;
}

#preloader {
    z-index: 1005;
    opacity: .5;
}
.form-switch-md .form-check-input {
    width: 40px;
    height: 20px;
    left: -.5rem;
    position: relative;
}
.rtl .form-switch-md .form-check-input {
    right: -.5rem;
    left: auto;
}
.menu-title {
    font-size: 12px;
    font-weight: 500;
}
#sidebar-menu ul li a {
    font-size: 15px;
    font-weight: 400;
}

.btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFF'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e");
    background-position: center;
    background-size: 1em auto;
    background-repeat: no-repeat;
    background-color: transparent;
}
body[data-sidebar=colored] #sidebar-menu ul li a {
    color: rgba(255, 255, 255, .8);
}
.menu-title {
    opacity: .8;
}
.light .apexcharts-text tspan {
    fill: #050505 !important;
}
body[data-sidebar=colored].vertical-collpsed #status {
    margin-inline-start: 6px !important
}

@media (min-width: 991px) {

    body[data-sidebar=colored]:not(.vertical-collpsed) #status {
        margin-inline-start: 92px;
    }
}

.dark .text-primary, .dark .form-select {
    color: #f1f5f7 !important;
}

.bg-secondary {
    background-color: var(--bg-secondary) !important;
    line-height: 1.3;
}
.text-sm {
    font-size: 80%;
}
.lh-0 {
    line-height: 0;
}
.input-group-text {
    border: none;
}

.border-primary {
    border: 1px solid var(--dark-color);
}

.details-div {
    display: flex;
    justify-content: end;
    margin-inline-end: 20px;
}
.btn-expand {
    z-index: 99;
    background-color: transparent;
    border: none;
}

    .btn-expand:focus, .btn-expand:hover, .btn-expand:visited, .btn-expand:active {
        border: none;
        background-color: transparent;
        box-shadow: none !important;
    }
    .btn-expand i {
        background-color: var(--bg-secondary);
        color: var(--bs-light);
        display: inline-block;
        width: 40px;
        height: 40px;
        line-height: 1.7;
        border-radius: 50%;
        position: absolute;
        margin-top: -16px;
        margin-inline-start: -10px;
        padding: 3px;
        border: 3px solid #A8D7DA;
        margin-bottom: 25px;
    }
.second-light {
    color: #b5dde0;
}

.img-border {
    border: 1px solid #fff;
    max-height: 100px;
}

/* left bar */
.left-bar {
    float: left !important;
    left: -290px;
}

.right-bar-enabled .left-bar {
    left: 0;
}

.rtl .left-bar {
    float: right !important;
    right: -290px;
}

.rtl.right-bar-enabled .left-bar {
    right: 0;
}
/* end left bar */

.btn-primary, .btn-outline-primary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

body[data-topbar=dark] #page-topbar {
    background-color: var(--bs-primary);
}

body[data-layout=horizontal] .page-content {
    margin-top: 25px;
}

.select2-container--default .select2-selection--single {
    border-radius: 0px;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #ddd;
    color: #787e87;
}

.auth-form-group-custom .auti-custom-input-icon {
    color: var(--bs-primary);
}

::-webkit-scrollbar {
    width: 10px;
    background-color: #f1f5f7;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 1px rgba(0,0,0,0.2);
    background-color: #f1f5f7;
}

::-webkit-scrollbar-thumb {
    background-color: var(--bs-primary); /**/
    background-image: -webkit-linear-gradient(45deg,rgba(255, 255, 255, .2) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, .2) 75%, transparent 75%, transparent)
}

.opacity-0 {
    opacity: 0;
}

.opacity-5 {
    opacity: 0.5;
}

.opacity-1 {
    opacity: 1 !important;
    transition: opacity .5s ease-in;
}

.header-item .ri-filter-3-line {
    border: 2px solid #e9ecef;
    border-radius: 50%;
    padding: 5px;
}

.d-ltr {
    direction: ltr !important;
}

.d-rtl {
    direction: rtl !important;
    font-size: .8rem;
    font-family: "Noto Kufi Arabic", sans-serif;
}

.w-50 {
    width: 50% !important;
}

.w-60 {
    width: 60% !important;
}

.w-100 {
    width: 100% !important;
}

.z-999 {
    z-index: 999;
}

.d-inherit {
    display: inherit !important;
}

.deleteImg {
    right: 10px;
    left: auto;
}
.rtl .deleteImg {
    left: 10px;
    right: auto;
}

.border-input, .border-input:focus {
    border-color: var(--bs-primary);
}

.select2-container .select2-selection--multiple, .select2-container .select2-selection--single {
    border-color: var(--bs-primary) !important;
}

/* CSS for mobile devices */
@media (max-width: 768px) {
    #ProjectId, #ProgramId {
        color: #000; 
    }

        /* Ensure placeholder text is styled correctly */
        #ProjectId option[value=""], #ProgramId option[value=""] {
            display: block; 
            color: #6c757d; 
        }
}

.check-input-md {
    height: 1.7em;
    width: 3em !important;
    margin-top: 0;
}
.radio-input-md {
    width: 1.5em;
    height: 1.5em;
    margin-top: 0.5em;
}
.radio-lable-md {
    padding: 10px;
    line-height: 2.5;
}

.invalid-border-select2 {
    border-color: red !important;
}

.valid-border-select2 {
    border-color: #1cbb8c !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    color: red;
    font-size: 22px;
    padding-right: 10px;
    padding-left: 10px;
}


body[data-sidebar=dark].vertical-collpsed {
    min-height: auto;
}


.pointer {
    cursor: pointer;
}

.font-ar {
    font-family: "Noto Kufi Arabic", sans-serif;
}

.line-divide {
    border: 1px solid rgba(218, 216, 219, 0.2);
}

.wh-200 {
    width: 200px;
    height: 200px
}
.delete-img {
    position: absolute;
    right: 10px;
    bottom: -15px
}

.update-img {
    position: absolute;
    left: 10px;
    bottom: -15px
}

input[type="date"]::-webkit-calendar-picker-indicator, input[type="month"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}
.logo-login {
    border: 2px solid white;
    border-radius: 50%;
}

.circular_image {
    border-radius: 50%;
    overflow: hidden;
    background-color: transparent;
    display: inline-block;
    vertical-align: middle;
}

    .circular_image img {
        width: 100%;
    }


.avatar {
    border: 2px solid var(--bs-primary);
    background: var(--bs-primary) no-repeat center;
    display: inline-block;
    position: relative;
    text-align: center;
    color: #fff;
    font-weight: 500;
    vertical-align: bottom;
    font-size: 0.875rem;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.rtl .delete-img {
    right: auto;
    left: 5px;
}

.rtl .update-img {
    left: auto;
    right: 5px;
}

.mb-7, .my-7 {
    margin-bottom: 7rem !important;
}
.card-header-border-top {
    border-radius: 0 !important;
    border-top: 2px solid var(--bs-primary)
}
.card-header-border-bottom {
    border-radius: 0 !important;
    border-bottom: 2px solid var(--bs-primary)
}
/* select2 */
.select2-container .select2-selection--multiple .select2-selection__choice {
    background-color: var(--bs-primary);
    color: var(--bs-white);
    width: 100%;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--bs-yellow);
    font-size: 18px;
    font-weight: bold;
}
    .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
        color: var(--bs-danger);
    }
/* apexcharts */
.apex-charts text {
    fill: #fff !important;
    font-family: "Nunito",sans-serif !important;
}


.apexcharts-text tspan {
    font-family: inherit;
    fill: #adb5bd;
}

/*.rtl .apex-charts text {
    transform: translateY(-5px);
}*/

.apexcharts-legend, .value-type {
    display: flex;
    justify-content: space-around !important;
    inset: auto 0px 1px 1px !important;
}

.apexcharts-legend-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: bold !important;
}

.rtl .apexcharts-data-labels rect {
    height: 19px;
}

@media (max-width: 576px) {
    .sm-down {
        position: absolute;
        bottom: 20px;
    }
    .rtl .sm-down {
        left: 10px;
    }
    .ltr .sm-down {
        right: 10px;
    }
    .font-size-24 {
        font-size: 18px !important;
    }
    .card-body {
        padding: 1rem .5rem;
    }
    #morbidities-chart.apex-charts text {
        font-size: 12px;
    }
    .rtl .apexcharts-data-labels rect {
        height: 16px;
    }
}

/*.rtl .apexcharts-legend, .rtl .value-type {
    flex-direction: row-reverse;
}*/

.rtl .apexcharts-legend-marker {
    margin-left: 3px;
}

.rtl .apexcharts-tooltip-x-group span {
    float: right !important;
    direction: rtl !important;
    text-align: right !important;
}

.rtl .apexcharts-tooltip-marker {
    margin-left: 10px;
    margin-right: 0;
}

/* date */
.rtl input[type="date"], .rtl input[type="month"] {
    text-align: right;
}

    .rtl input[type="date"]::-webkit-calendar-picker-indicator {
        position: absolute;
        left: 25px;
    }

/* Overlay */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: none;
}
/* Popup image */
#popup-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.zoom-in {
    cursor: zoom-in;
}

/* placeholder*/
.justify-dots::placeholder {
    text-align-last: justify;
    background-image: repeating-linear-gradient(to right, #a9a9a9 0, #a9a9a9 2px, transparent 2px, transparent 4px);
    color: transparent;
    height: 1px;
}

.justify-dots:-ms-input-placeholder {
    text-align-last: justify;
    background-image: repeating-linear-gradient(to right, #a9a9a9 0, #a9a9a9 2px, transparent 2px, transparent 4px);
    color: transparent;
    height: 1px;
}

/* spin */
.icon-spinner {
    animation: spin-animation 1.5s infinite;
    display: inline-block;
}

@keyframes spin-animation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(359deg);
    }
}

/* datatable */
#dataTable thead {
    background-color: var(--bs-primary);
    color: #ebedef;
}

.dataTable thead th, .dataTable td {
    text-align: center !important;
    vertical-align: middle;
    padding: .5rem .75rem;
}

div.dataTables_wrapper div.dataTables_filter input {
    text-align: center;
    width: 250px;
}

div.dataTables_processing {
    top: 100px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.rtl table.dataTable thead > tr > th.sorting:before, .rtl table.dataTable thead > tr > th.sorting:after, .rtl table.dataTable thead > tr > th.sorting_asc:before, .rtl table.dataTable thead > tr > th.sorting_asc:after, .rtl table.dataTable thead > tr > th.sorting_desc:before, .rtl table.dataTable thead > tr > th.sorting_desc:after, .rtl table.dataTable thead > tr > th.sorting_asc_disabled:before, .rtl table.dataTable thead > tr > th.sorting_asc_disabled:after, .rtl table.dataTable thead > tr > th.sorting_desc_disabled:before, .rtl table.dataTable thead > tr > th.sorting_desc_disabled:after, .rtl table.dataTable thead > tr > td.sorting:before, .rtl table.dataTable thead > tr > td.sorting:after, .rtl table.dataTable thead > tr > td.sorting_asc:before, .rtl table.dataTable thead > tr > td.sorting_asc:after, .rtl table.dataTable thead > tr > td.sorting_desc:before, .rtl table.dataTable thead > tr > td.sorting_desc:after, .rtl table.dataTable thead > tr > td.sorting_asc_disabled:before, .rtl table.dataTable thead > tr > td.sorting_asc_disabled:after, .rtl table.dataTable thead > tr > td.sorting_desc_disabled:before, .rtl table.dataTable thead > tr > td.sorting_desc_disabled:after {
    right: auto;
    left: 10px !important;
}

.rtl .rotate-180 {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}

.dataTables_wrapper .dataTables_info {
    float: inherit;
    font-weight: 500;
    margin-top: -5px;
}

.dtr-details li {
    display: flex;
}

.page-link {
    padding: 0.25rem 0.5rem;
}

.table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control, table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control {
    padding-left: 50px;
}

.rtl .table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control, .rtl table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control {
    padding-right: 30px;
    padding-left: unset;
}

.table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before, table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before {
    line-height: 14px;
    font-weight: bold;
}

@media screen and (max-width: 991px) {
    table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control:before, table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control:before {
        height: 1.5em !important;
        width: 1.5em !important;
        line-height: 1.5em !important;
        margin-top: -14px !important;
        top: 50% !important;
        margin-block-end: 15px;
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .limited-text-15 {
        display: inline-block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 15ch;
    }

    .limited-text-20 {
        display: inline-block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 20ch;
    }
}

table.dataTable > tbody > tr.child span.dtr-title {
    min-width: 150px;
    margin: auto 0;
}
/* compact table details */
@media (min-width: 1024px) {
    table.dataTable > tbody > tr.child ul.dtr-details {
        display: flex;
        flex-wrap: wrap;
        list-style: none;
        padding: 0;
        font-size: 90%;
        line-height: 2;
    }

        table.dataTable > tbody > tr.child ul.dtr-details > li {
            display: inline-grid;
            padding: 1em !important;
            flex: 1;
            border: 1px solid #e9edf4 !important;
            text-align: center;
        }
}

/*Modal*/
.modal-dialog {
    margin: 1rem auto !important;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    margin-bottom: 0.375rem;
}

.rtl .modal-body label {
    font-weight: 500;
}

.required .form-label:after {
    content: "*";
    color: red
}

.mdi-microsoft-excel:hover {
    color: green;
}

@media (max-width: 576px) {
    .container {
        padding-right: 0;
        padding-left: 0;
    }

    .modal-dialog {
        margin: 1rem !important;
    }

    .swal2-container.swal2-top, .swal2-container.swal2-center, .swal2-container.swal2-bottom {
        grid-template-columns: 1em minmax(0, 1fr) 1em !important;
    }
}

.modal-open, body {
    padding-right: 0 !important
}

.formModal .modal {
    padding-right: 0 !important;
}

.modal-header {
    display: initial
}

.modal-footer, .modal-header {
    padding: .5rem 1rem;
    background-color: var(--bs-light);
}

.light-mode .modal-footer, .light-mode .modal-header {
    background-color: #e0ffff;
}

.dark-mode .modal-footer, .dark-mode .modal-header {
    background-color: #282f53;
}

.modal-title {
    text-align: center;
    padding-top: 5px;
}


.light-mode .modal-title {
    color: #007bff;
    font-weight: 600;
}

.btn-save {
    position: absolute;
    left: 15px;
}

.rtl .btn-save {
    left: auto;
    right: 15px;
}

.modal-header .close {
    font-family: 'Roboto';
    color: #dc3545;
    background-color: transparent;
    font-weight: 600;
    font-size: 20px;
    padding: 4px 12px;
    line-height: .9;
    border-radius: 3px;
    border: 1px solid #dc3545;
    position: absolute;
    top: 8px;
    right: 15px;
}


.rtl .modal-header .close {
    left: 15px;
    right: inherit;
}

.modal-header .close:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.closeFooter .modal-footer {
    text-align: center;
    display: inline-block;
}

/* btn add*/
.btn-float {
    z-index: 10;
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 70px;
    left: 10px;
    background-color: var(--bs-primary);
    opacity: .25;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 3px #999;
}

    .btn-float:hover {
        opacity: 1;
        color: #FFF;
    }

.my-float {
    margin-top: 18px;
    font-size: 24px;
}

.btn-refresh {
    position: absolute;
    font-size: 16px;
    bottom: 0;
    right: 5px;
}
.rtl .btn-refresh {
    right: auto;
    left: 5px;
}
@media (max-width: 767px) {
    .btn-float {
        bottom: 70px;
        right: 40px;
        left: auto;
    }

    .rtl .btn-float {
        right: auto;
        left: 40px;
    }
}

@media (max-width: 380px) {
    .navbar-brand-box {
        display: block;
    }

    .logo-sm img {
        height: 25px;
    }
}

@media (min-width: 992px) {
    .list-unstyled.activity-wid {
        display: flex;
        flex-wrap: wrap;
    }

    .activity-list {
        flex-basis: calc(33% - 15px);
        margin-right: 15px;
    }

    .mobile.navbar-brand-box {
        display: none;
    }
}

/*Mobile*/
@media (max-width: 991px) {
    body.light, .light .text-muted, .light .form-control, .light .form-select, .light .apexcharts-legend-text {
        color: #050505 !important;
    }

    .btn, .h5, h5 {
        font-size: 1rem;
    }

    .desktop.navbar-brand-box, #topFilter, #levelFilter {
        display: none;
    }

    #topMorbidities, #levelTypeId {
        border-radius: .25rem !important;
    }

    #page-topbar {
        background-color: var(--bs-primary);
    }

    .dark #page-topbar {
        background-color: var(--dark-color);
    }

     .light .navbar-header .noti-icon i, .light .header-item {
        color: var(--bs-light) !important;
    }
}

@media (max-width: 600px) {
    .rtl .navbar-header .dropdown .dropdown-menu {
        right: auto !important;
    }
    .ltr .navbar-header .dropdown .dropdown-menu {
        left: auto !important;
    }
}