﻿
::-webkit-scrollbar {
    width: .45rem;
    height: .40rem;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(31, 143, 200, 0.6);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(23, 61, 182, 0.8);
}

::-webkit-scrollbar-track {
    background: transparent;
}


@media (max-width: 990px) {
    .page-title {
        font-size: 14px;
        color: #2c3e50 !important;
        font-weight: 600;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .h2-mobile {
        font-size: 20px !important;
    }

    .h4-mobile {
        font-size: 16px !important;
    }

    .h5-mobile {
        font-size: 14px !important;
    }

    .h6-mobile {
        font-size: 12px !important;
    }

    .nav-right {
        display: flex block !important;
        position: relative;
        text-align: center;
        justify-content: end;
        align-items: center;
        top: -100px;
        float: right;
    }

    table.dataTable td, table.dataTable th, .pagination, .dataTables_wrapper, .dataTables_filter, .dataTables_info {
        font-size: 0.9em !important;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    table.dataTable > input {
        font-size: 0.9em !important;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .dataTables_filter input {
        font-size: 0.9em !important;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .paginate_button {
        font-size: 0.9em !important;
    }

    .modal-title {
        font-size: 14px !important;
    }

    .bootbox-accept, .bootbox-cancel, .mdbtn {
        font-size: 12px !important;
    }

    .toast {
        margin: 0 !important;
        width: 300px !important;
    }

    .toast-header, .toast-body {
        font-size: 12px !important;
    }

    .dataTables_empty {
        display: none;
    }
}

@media (min-width: 991px) {
    .page-title {
        font-size: 24px;
        color: #2c3e50 !important;
        font-weight: 600;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    table.dataTable td, table.dataTable th, .pagination, .dataTables_wrapper, .dataTables_filter, .dataTables_info {
        font-size: 0.9em !important;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    table.dataTable > input {
        font-size: 0.9em !important;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .dataTables_filter input {
        font-size: 0.9em !important;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .paginate_button {
        font-size: 0.9em !important;
    }

    .modal-title {
        font-size: 18px !important;
    }

    .bootbox-accept, .bootbox-cancel, .mdbtn {
        font-size: 14px !important;
    }

    .toast-header, .toast-body {
        font-size: 14px !important;
    }
}

.hidden {
    display: none !important;
}

.paginate_button {
    margin: 0 !important;
    padding: 0 !important;
}


/*Spinner loading*/

.loading {
    position: fixed;
    z-index: 9999;
    height: 2em;
    width: 2em;
    overflow: visible;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

    /* Transparent Overlay */
    .loading:before {
        content: '';
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(rgba(20, 20, 20, .8), rgba(0, 0, 0, .8));
        background: -webkit-radial-gradient(rgba(20, 20, 20, .8), rgba(0, 0, 0, .8));
    }

    /* :not(:required) hides these rules from IE9 and below */
    .loading:not(:required) {
        /* hide "loading..." text */
        font: 0/0 a;
        color: transparent;
        text-shadow: none;
        background-color: transparent;
        border: 0;
    }

        .loading:not(:required):after {
            content: '';
            display: block;
            font-size: 10px;
            width: 1em;
            height: 1em;
            margin-top: -0.5em;
            -webkit-animation: spinner 150ms infinite linear;
            -moz-animation: spinner 150ms infinite linear;
            -o-animation: spinner 150ms infinite linear;
            animation: spinner 150ms infinite linear;
            border-radius: 0.5em;
            -webkit-box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0, rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) 0 1.5em 0 0, rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) -1.5em 0 0 0, rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0, rgba(255, 255, 255, 0.75) 0 -1.5em 0 0, rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
            box-shadow: rgba(255, 255, 255, 0.75) 1.5em 0 0 0, rgba(255, 255, 255, 0.75) 1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) 0 1.5em 0 0, rgba(255, 255, 255, 0.75) -1.1em 1.1em 0 0, rgba(255, 255, 255, 0.75) -1.5em 0 0 0, rgba(255, 255, 255, 0.75) -1.1em -1.1em 0 0, rgba(255, 255, 255, 0.75) 0 -1.5em 0 0, rgba(255, 255, 255, 0.75) 1.1em -1.1em 0 0;
        }

/* Animation */

@-webkit-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-moz-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-o-keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinner {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}



/*Modal form settings*/
.mdform-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.mdform-control-placeholder {
    position: absolute;
    top: 0;
    padding: 7px 0 0 13px;
    transition: all 200ms;
    opacity: 0.8;
    color: #6c757d;
}

.mdform-control:focus + .mdform-control-placeholder,
.mdform-control:valid + .mdform-control-placeholder {
    font-size: 85%;
    transform: translate3d(0, -100%, 0);
    opacity: 1;
    color: #1f8fc8;
}

.mdform-control {
    background: transparent;
    border: none;
    border-bottom: 2px solid #d0d5dd;
    color: #2c3e50;
    transition: border-color 0.3s ease;
}

.dropdown-toggle {
    background: transparent;
    border-bottom: 1px solid grey;
    padding: 0 !important;
    -webkit-appearance: none;
    box-shadow: none !important;
    outline: none !important;
}

    .dropdown-toggle:focus {
        outline: 0 !important;
        border: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        padding-bottom: 5px !important;
        padding-top: 5px !important;
    }

.filter-option-inner {
    color: #afb1be !important;
    border: none;
}


.btn.dropdown-toggle.text-black > .filter-option > .filter-option-inner {
    color: #212529 !important;
    border: none;
}



input.mdform-control:focus,
input.mdform-control:after {
    outline-width: 0;
    border-bottom: 2px solid #1f8fc8;
    box-shadow: 0 2px 4px rgba(31, 143, 200, 0.1);
    background: transparent;
    color: #2c3e50;
}

.mdmodal-content {
    color: #afb1be !important;
    background-image: linear-gradient(45deg, #35394a 0%, #1f222e 100%);
}

.mdmodal-body {
    color: #afb1be !important;
    padding: 0 !important;
}

.mdmodal-title {
    color: #2c3e50 !important;
    font-weight:700;
}


.tc {
    font-size: 12px;
}

.mdmodal-header {
    padding-top: 0.5em !important;
    padding-bottom: 0.5em !important;
}

.mdmodal-footer {
    justify-content: flex-start;
}

.mdbtn {
    /* background: rgb(20, 155, 224);
    background: linear-gradient(90deg, rgba(20, 155, 224, 1) 0%, rgba(0, 49, 78, 1) 100%);*/
    border-radius: 24rem;
    border: 1px solid #e9ecef !important;
    color: #f8f9fa;
    font-size: 11px;    
}

.close {
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.mdclose {
    color: aqua;
    font-size: 12px;
    position: relative;
    top: 20px;
}

.x {
    color: grey;
    font-size: 25px;
    font-weight: 500;
    margin-right: 15px;
    display: flex;
    flex-direction: row-reverse;
    top: 0;
    text-decoration: none;
    cursor: pointer;
}

.mdbtn.focus,
.mdbtn:hover {
    outline: 0;
    box-shadow: none !important;
    color: #afb1be !important;
}

.x.focus,
.x:focus {
    outline: 0;
    box-shadow: none !important;
}
/*
.dataTables_wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}*/

.text-normal {
    font-size: 15px;
}

.text-sm {
    font-size: 12px;
}

.alert {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    z-index: 9999;
    border-radius: 0px
}

.font-bold {
    font-weight: 700;
}

.font-small {
    font-size: 12px !important;
}

.font-Normal {
    font-size: 14px !important;
}

.font-big {
    font-size: 18px !important;
}

.font-bigger {
    font-size: 22px !important;
}


/*------------------------------------------------------Slider----------------------------------------------------------------------
*/
.sliderswitch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 23px;
    vertical-align: middle;
}

    .sliderswitch input {
        display: none;
    }


/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input.default:checked + .slider {
    background-color: #444;
}

input.primary:checked + .slider {
    background-color: #2196F3;
}

input.success:checked + .slider {
    background-color: #8bc34a;
}

input.info:checked + .slider {
    background-color: #3de0f5;
}

input.warning:checked + .slider {
    background-color: #FFC107;
}

input.danger:checked + .slider {
    background-color: #f44336;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

/*------------------------------------------------------Slider----------------------------------------------------------------------
*/


.pointer {
    cursor: pointer;
}

.btn, .dropdown-menu {
    font-size: 14px;
}

/* Dropdown menu - Blue theme styling */
.dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Dropdown items */
.dropdown-menu .dropdown-item,
.bootstrap-select .dropdown-menu li a {
    color: #2c3e50 !important;
    padding: 8px 16px !important;
    transition: all 0.2s ease;
}

.dropdown-menu:not(.chat-dropdown-menu) .dropdown-item:hover,
.dropdown-menu:not(.chat-dropdown-menu) .dropdown-item:focus,
.bootstrap-select .dropdown-menu li a:hover {
    background: linear-gradient(135deg, #1f8fc8, #27acda) !important;
    color: #ffffff !important;
}

/* Active/Selected - Blue background with white text */
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active,
.bootstrap-select .dropdown-menu li.selected a,
.bootstrap-select .dropdown-menu li.active a {
    background: linear-gradient(135deg, #1f8fc8, #27acda) !important;
    color: #ffffff !important;
}

.bootstrap-select .dropdown-menu li.selected a:hover,
.bootstrap-select .dropdown-menu li.active a:hover {
    background: linear-gradient(135deg, #1f8fc8, #27acda) !important;
    color: #ffffff !important;
}

/* Bootstrap-select button - Fix border disappearing on hover globally */
.bootstrap-select .btn,
.bootstrap-select .btn.dropdown-toggle {
    --bs-btn-hover-border-color: #ced4da;
}

.Editor-editor {
    background-color: #fff;
    color: black;
}

.line-control-status-bar .label {
    background: transparent !important;
}

#menuBarDiv_txtEditor > div > div > a {
    margin-right: 10px;
}

#menuBarDiv_txtEditor > div > div > ul {
    padding-left: 8px;
}



.txt-area {
    min-height: 200px;
    background: #fff;
    border: 1px solid #0dcaf0;
    border-radius: 10px;
    overflow: auto;
    padding: 10px;
}


/*Accordion*/
#accordion .panel {
    border: none;
    border-radius: 5px;
    box-shadow: none;
    margin-bottom: 10px;
    background: transparent;
}

#accordion .panel-heading {
    padding: 0;
    border: none;
    border-radius: 5px;
    background: transparent;
    position: relative;
}

#accordion .panel-title a {
    display: block;
    padding: 20px 30px;
    margin: 0;
    background: #1f222e;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 5px;
    position: relative;
}

    #accordion .panel-title a.collapsed {
        border: none;
    }

        #accordion .panel-title a:before,
        #accordion .panel-title a.collapsed:before {
            content: "\f077";
            font-family: FontAwesome;
            width: 30px;
            height: 30px;
            line-height: 27px;
            text-align: center;
            font-size: 18px;
            font-weight: 900;
            color: #fff;
            position: absolute;
            top: 15px;
            right: 30px;
            transform: rotate(180deg);
            transition: all .4s cubic-bezier(0.080, 1.090, 0.320, 1.275);
        }

        #accordion .panel-title a.collapsed:before {
            color: rgba(255,255,255,0.5);
            transform: rotate(0deg);
        }

#accordion .panel-body {
    padding: 5px 10px;
    background: #eee;
    color: black;
    line-height: 28px;
    letter-spacing: 1px;
    border-top: none;
    border-radius: 5px;
}


body.modal-open {
    height: 100vh;
    overflow-y: hidden;
}

.datetimepicker th.switch {
    width: 20px !important;
    font-size: 12px !important;   
}

div.datetimepicker.datetimepicker-dropdown-bottom-right.dropdown-menu > div.datetimepicker-hours > table {
    width: 100% !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

div.datetimepicker.datetimepicker-dropdown-bottom-right.dropdown-menu > div.datetimepicker-hours {
    min-width: 200px;
    font-size: 12px !important;
    font-weight: 400 !important;
}

div.datetimepicker.datetimepicker-dropdown-bottom-right.dropdown-menu > div.datetimepicker-minutes > table {
    width: 100% !important;
   font-size: 12px !important;
    font-weight: 400 !important;
}

div.datetimepicker.datetimepicker-dropdown-bottom-right.dropdown-menu > div.datetimepicker-minutes {
    min-width: 200px;
    font-size: 12px !important;
    font-weight: 400 !important;
}

div.datetimepicker-days > table {
    font-size: 12px !important;
}


.modal-backdrop {
    background-color: #6c757d;
}

/* Ensure backdrop is visible for Utilisateur modal */
/* This overrides DoctorCalendar.css which hides all backdrops */
body:has(#mdUtilisateur.show) .modal-backdrop.show {
    display: block !important;
}

.form-check-input{
    cursor:pointer;
}

.file-drop-area {
    position: relative;
    display: inline-block;
    width: 200px;
    height: 40px;
    padding: 5px 40px 5px 5px;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.05);
    transition: .2s;
}

.choose-file-button {
    flex-shrink: 0;
    background-color: transparent;
    border: none;
    padding: 5px;
    cursor: pointer !important;
}

/* Document attachment button - specific styling */
.file-drop-area.document-attachment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
}

.file-drop-area.document-attachment-button .choose-file-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    font-size: 22px;
    color: #1f8fc8;
}

.file-message {
    font-size: small;
    font-weight: 300;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.file-input {
    position: absolute;
    left: -100px;
    top: 0;
    height: 50px;
    width: 150px;
    cursor: pointer !important;
    opacity: 0;
   
}


.font-weight-light {
    font-weight: 300 !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}


.appel-header {
    animation: blinking 1s infinite;
}

@keyframes blinking {
    0% {
        color: #afb1be;
    }

   
    50% {
        color: transparent;
    }


    100% {
        color: #afb1be;
    }
}

#dtDossier_filter > label, #dtDossier_info {
    color: #afb1be;
}
.paginate_button > a {
    font-size: 12px !important;
}

.text-tb-sm {
    font-size: 16px;
}
.dataTables_empty {
    color: #afb1be;
}

@media only screen and (max-width: 800px) {

    .famenu{
        font-size:1.3rem;
    }

    .text-tb-sm {
        font-size: 14px !important;
    }
    
    .fc .fc-button {
        font-size: 10px !important;
    }

    .fc-today-button, .fc-listWeek-button {
        display: none !important;
    }

    .fc-toolbar-title {
        font-size: 12px !important;
    }

    .fc table {
        font-size: 10px !important;
    }

    .fc-daygrid-event-dot {
        display: none;
    }

    .text-month {
        font-size: 10px;
    }

    .text-week {
        font-size: 10px;
        line-height: 8px;
    }

 
}

.nowrap {
    white-space: nowrap;
}

.a-middle{
    vertical-align:middle;
}

.form-check-clear{
    float:none !important;
    margin-left:auto !important;
}

.mdlabel-control-placeholder {
    position: absolute;
    top: -20px;
    left:0;
    padding: 7px 0 0 13px;
    transition: all 200ms;
    opacity: 0.5;
    color: grey
}

.has-error {
    border: #a94442;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}


tr.group {
    background-color: transparent !important;
    color: #ffc107 !important;
    font-size: large;
    font-weight: 700;
}

/* Fix Bootstrap Select dropdowns in modals */
/* Ensures dropdown menus appear above modal overlays (z-index: 11000) */
.bs-container {
    z-index: 12000 !important;
}

   