html,body {
    height: 100%;
}

body  {
    font-family: "Trebuchet MS", Tahoma, sans-serif;
    font-size: 12px;
}

#side-bar{
    padding: 0 6px;
}

#header-nav {
    width: 100%;
    padding: 0 !important;
}
#header-nav .dropdown-item.active, #header-nav .dropdown-item:active {
    background-color: var(--active-bg-color);
}
.dataTables_filter, .dataTables_length {
    margin-bottom: 5px;
}
div.dataTables_filter input {  width: 300px; }

th {
    text-align: center !important;
}
.bg-blue {
    background-color: #060d36;
}

.table thead th, .table tfoot th {
    color: white;
    border-style: solid;
    border-color: gray;
}

.data-table td, tbody th {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 120;
}

.table>:not(caption)>*>td{
    background-color: #fff;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
    --bs-emphasis-color: #000;
    --bs-emphasis-color-rgb: 0, 0, 0;
    --bs-table-striped-color: var(--bs-emphasis-color);
    --bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), 0.05);
    --bs-table-color-type: var(--bs-table-striped-color);
    --bs-table-bg-type: var(--bs-table-striped-bg);
}
.table>:not(caption)>*>th {
    background: none !important; /* S'assure que la couleur de fond des <th> ne masque pas le dégradé */
}

div.header-color {
    color: var(--header-text-color) !important;
}

.theme-item-style {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-right: 10px;
    border-radius: 5%;
}

.primary-gradient {
    background: var(--color-gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;}

table.table > thead, table.table > tfoot {
    background: var(--color-gradient-primary);
    color: white;
}
.bg-custom-gradient, .bg-primary {
    background: var(--color-gradient-primary);
    color: white;
}

.btn-danger, .bg-danger {
    background: var(--color-gradient-danger);
}
.btn-secondary {
    background: var(--color-gradient-secodary);
}

.bg-info {
    background: var(--color-gradient-info);
}

.bg-success {
    background: var(--color-gradient-success);
}

.bg-warning {
    background: var(--color-gradient-warnning);
}

.w5 {
    width: 5%;
}
.w10 {
    width: 10%;
}

.w12 {
    width: 12%;
}

.w15 {
    width: 15%;
}

.w20 {
    width: 20%;
}
.w30 {
    width: 30%;
}
.w40 {
    width: 40%;
}
.p-0 {
    padding: 0;
}
.mb-15 {
    margin-bottom: 15px;
}
.mt-15 {
    margin-top: 15px;
}
.ml-5{
    margin-left: 5px;
}
.mr-5{
    margin-right: 5px;
}

form button.btn-link{
    text-decoration: none;
}
.half-width {
    width: 50%;
}

.sm-block-24 {
    padding: 0;
    text-align: center;
    width: 24%;
}
.sm-block-30 {
    padding: 0;
    text-align: center;
    width: 33%;
}
.sm-block-45 {
    padding: 0;
    text-align: center;
    width: 45%;
}

.sm-block-24 .title, .sm-block-45 .title, .sm-block-30 .title {
    color: black;
    padding: 12px;
}

.sm-block-24 .value, .sm-block-45 .value, .sm-block-30 .value {
    padding: 22px;
    font-weight: 1000;
    color: black;
}

#personne-img img {
    width: 120px;
    height: 120px;
}

.personne-img img {
    width: 100px;
    height: 100px;
}
#personne-infos {
    width: 31%;
}

.personne-infos {
    width: 24%;
}

.color-red {
    color: red;
}
.background-color-red {
    background-color: red !important;
}
label:has(+ input[required])::after,
label:has(+ select[required])::after,
label:has(+ .input-group input[required])::after{
    content: ' *';
    color: red;
}

.dropdown-item, .dropdown-menu {
    padding: 0 !important;
}

.bodyoff {
    pointer-events: none;
    opacity: 0.7;
}

.nonify {
    display: block;
    @media (min-width: 768px) {
        display: none;
    }
}

.btn-sidebar {
    display: none;
    @media (max-width: 1366px) {
        display: block;
        color: var(--header-text-color) !important;
    }
}

@media (min-width: 1366px) {
    .sidebar {
        display: block;
    }
    .width-reduced {
        width: 88%;
    }
}

.toast {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slide-in 0.5s ease-out;
}

/* Animation de glissement */
@keyframes slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

