section.main {
    max-width: 100%;
    background: #f5f5f5;
    overflow-x: hidden;
}

#bloc-admin {
    margin-top: 30px;
    padding-right: 50px;
    padding-left: 20px;
}


.historique-appels thead th,
.historique-emails thead th {
    font-weight: 800 !important;
}

.historique-appels a,
.historique-emails a {
    color: var(--blue2);
    text-decoration: none;
}

.historique-appels tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.historique-appels tbody tr:hover td {
    background-color: unset;
}

.historique-appels .list-group-item {
    padding: unset;
    background: unset;
}

a.btn-action, button.btn-action {
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    padding: 4px 10px;
    vertical-align: top;
    display: inline-block;
    border-radius: 10px;
    margin-right: 10px;
}

.badge {
    font-size: 0.70rem;
    padding: 0.35rem 0.5rem;
}

.badge.rounded-pill {
    border-radius: 12px;
}

.bg-entrant {
    background: var(--blue);
}

.bg-sortant {
    background: var(--green);
}

.bg-interne {
    background: darkgrey;
}

.bg-erreur {
    background: lightcoral;
}

button.btn.btn-warning {
    background-color: var(--green);
    color: #fff;
    border: none;
}

button.close {
    background: var(--green);
    border: none;
    border-radius: 100%;
    padding-inline: 8px;
    position: absolute;
    top: -35px;
    right: 10px;
}

div.breadcrumbs {
    color: #bfbdbd;
    font-weight: lighter;
}

div.breadcrumbs a {
    color: #bfbdbd;
    text-decoration: none;
}

div.breadcrumbs strong {
    font-weight: bold;
}

div.menu-sans-logo {
    border-right: 3px solid var(--blue);
    min-height: 90vh;
    padding: 20px;
    border-radius: 0;
    background: #fff;
}

div.menu-sans-logo > img {
    margin-bottom: 25px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 200px;
}

.menu-dashboard > a {
    margin-bottom: 0;
    display: block;
}

/* === Toasts (messages utilisateur) === */
#messages-container.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 380px;
    pointer-events: none;
}

#messages-container .toast-item {
    pointer-events: auto;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #ffffff;
    color: #2b2b2b;
    border-radius: 8px;
    border-left: 8px solid #6c757d;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 2.25rem 0.75rem 1rem;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
}

#messages-container .toast-item.toast-success {
    border-left-color: #28a745;
    background-color: #e8f7ec;
}
#messages-container .toast-item.toast-error,
#messages-container .toast-item.toast-danger {
    border-left-color: #fa8d81;
    background-color: #fde6e3;
}
#messages-container .toast-item.toast-warning {
    border-left-color: #ffc107;
    background-color: #fff8e1;
}
#messages-container .toast-item.toast-info {
    border-left-color: #17a2b8;
    background-color: #e0f4f7;
}

#messages-container .toast-message { flex: 1 1 auto; }

#messages-container .toast-close {
    position: absolute;
    top: 0.4rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    line-height: 1;
}
#messages-container .toast-close:hover { color: #222; }

.toast-enter { transition: transform .25s ease-out, opacity .25s ease-out; }
.toast-enter-start { transform: translateX(120%); opacity: 0; }
.toast-enter-end   { transform: translateX(0);    opacity: 1; }

.toast-leave { transition: transform .2s ease-in, opacity .2s ease-in; }
.toast-leave-start { transform: translateX(0);    opacity: 1; }
.toast-leave-end   { transform: translateX(120%); opacity: 0; }

@media (max-width: 575.98px) {
    #messages-container.toast-container {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }
}

a.btn-tdb > i {
    color: #afafaf;
    margin-right: 7px;
    min-width: 25px;
}

a.btn-tdb.btn-secondary > i {
    color: #fff;
    margin: 0;
}

a.btn-tdb.btn-secondary:hover > i {
    color: var(--blue);
}

a.btn-tdb.active > i {
    color: var(--blue2);
}

.card-body p {
    font-size: 16px;
}

h4.sous-titre {
    font-size: 17px;
    margin-bottom: 16px;
}

.bandeau-icone-detail i {
    color: #0c1c5b;
    font-size: 18px;
    margin-top: 5px;
}

.bandeau-icone-detail h1 {
    margin-bottom: 0px;
}

.input-green .text-danger {
    font-size: 14px;
    text-align: center;
    margin-top: 5px;
}

.bandeau-icone-detail a {
    margin: 0 10px;
}

.bandeau-btn-detail a {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    padding: 5px 15px;
    border-radius: 7px;
    text-align: left;
    border: 1px solid;
    font-size: 16px;
    color: #0c1c5b;
}

.menu-dashboard > a {
    margin-bottom: 10px;
    text-align: left;
    display: block;
}

.title-separation {
    border-bottom: 1px solid;
    border-top: 1px solid;
    padding: 15px 0 12px 0;
}

a.btn-tdb.active {
    background: #fff;
    color: var(--blue);
}

a.btn-tdb:hover, a.btn-tdb.btn-secondary:hover {
    background-color: #fff;
    color: var(--blue);
}

a.btn-tdb {
    text-align: left;
    text-decoration: none;
    font-weight: 400;
    color: #4e4e4e;
    padding: 0;
}

a.btn-tdb.btn-secondary {
    background-color: var(--green);
    text-align: center;
    font-weight: 600;
    color: #fff;
    padding: 3px 3px 1px 3px;
    border: 2px solid #fff;
    border-radius: 10px;
    min-width: 30px;
}

#top-logo {
    background-color: #2c2c2c;
    padding: 12px;
    position: fixed;
    width: 101%;
    z-index: 999;
}

.btn-tdb.btn-primary {
    color: #fff;
    background: var(--blue);
    border: 1px solid var(--blue);
    padding: 10px 30px 9px 30px;
    font-size: 18px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

form .form-control, form span.select2.select2-container {
    border: 2px solid #c5c5c5;
}

label.form-label {
    margin-bottom: 4px;
}

.btn-tdb.btn-primary:hover {
    background: #fff;
    color: var(--blue2)
}

#dateTableServeur tbody td:last-child {
    text-align: right;
}

h4.title-menu {
    background: #F5F5F5;
    border: 2px solid var(--blue);
    color: var(--blue);
    margin: 10px 0 10px -22px;
    padding: 5px 14px 5px 15px;
    font-size: 18px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 0 10px 10px 0;
    font-weight: 500;
    line-height: 1.3;
}

.btn-blanc {
    color: #0c1c5b;
    background: #fff;
    border: 1px solid #0c1c5b;
    margin: 0 10px;
    padding: 1px 20px 3px 20px;
    font-size: 18px;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.btn-blanc:hover {
    color: #fff;
    background: #0c1c5b;
}

.select2.select2-container {
    border: 1px solid #dee2e6;
    padding: 4px;
    border-radius: 6px;
}

.input-green label {
    margin-top: 10px;
    margin-bottom: 0;
}

#search-field .input-group-text {
    height: 40px;
    border-radius: 5px 0 0 5px;
    color: #fff;
    background: var(--blue2);
}

div.loupe-search {
    background: var(--green);
    position: absolute;
    color: #fff;
    top: -17px;
    width: 35px;
    padding: 0;
    text-align: center;
    right: -19px;
    height: 35px;
    line-height: 35px;
    border-radius: 100%;
    font-size: 12px;
    cursor: pointer;
    transition: all ease-in-out 200ms;
}

div.loupe-search:hover {
    background: var(--blue2);
    transform: scale(0.95);
}

.bg-orizon {
    background: var(--blue);
}

div.bg_header_extranet {
    background: var(--blue);
    color: #fff;
    font-size: 15px;
}

.card-header.bg_header_extranet h4 {
    display: inline-block;
    padding-top: 3px;
    margin: 0;
    font-size: 20px;
    text-transform: uppercase;
}

.select2-container .select2-selection--multiple .select2-selection__rendered, .select2-container .select2-selection--multiple .select2-selection__rendered input {
    min-width: 150px;
}

table tr.validated {
    background: #c7c7c7 !important;
    font-style: italic;
}

.select2-selection.select2-selection--multiple .select2-selection__clear {
    display: none;
}

.tox-statusbar__branding, .tox-promotion {
    display: none;
}

div.subformdiv {
    position: relative;
}

a.delete_btn_card {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--green);
    color: #fff;
    font-size: 11px;
    width: 25px;
    height: 25px;
    text-align: center;
    border-radius: 5px;
    line-height: 22px;
}

#bloc-page {
    min-height: 100vh;
    padding-top: 65px;
}

/* DATATABLE */
.dataTables_wrapper {
    padding: 0px;
}

.dt-button.buttons-html5, .dt-button.buttons-print {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    background: #0c1c5b;
    color: #fff;
    font-size: 13px;
}

.dt-button.buttons-html5:hover, .dt-button.buttons-print:hover {
    background: #000 !important;
    border: none !important;
}

.dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_paginate, .dataTables_wrapper .datatable.dataTable.no-footer, .dataTables_wrapper .dataTables_info {
    font-size: 15px;
}

table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control::before {
    padding: 6px;
    border-radius: 4px;
    color: #fff;
    margin-right: 7px;
}

.fa-regular.fa-circle-check {
    color: #379a1b;
}

.fa-regular.fa-circle-xmark {
    color: red;
}

div.dataTables_wrapper .dataTables_filter input {
    max-height: 32px;
    border-radius: 0 20px 20px 20px;
    margin-left: 10px;
}

td.center {
    text-align: center;
}

.bandeau-top p {
    margin-bottom: 0;
}

.select2-selection__rendered .select2-selection__choice {
    display: inline-block;
    margin-right: 10px;
}

.select2-selection__rendered .select2-search.select2-search--inline {
    display: block;
    width: 100%;
}

.dataTables_wrapper thead th {
    font-size: 15px;
    padding: 10px 25px 10px 10px !important;
    background: #0E2A3363;
    color: #fff;
    font-weight: 500 !important;
}

tr.even td {
    background: #f6f3f3;
}

.btn-action {
    background: transparent;
    border: none;
}

.dataTables_wrapper td {
    font-size: 15px;
    padding: 8px 10px !important;
}

.dataTables_wrapper .dataTables_filter {
    margin-bottom: 20px;
}

div table.dataTable > tbody > tr.child span.dtr-title {
    min-width: 45%;
}

.dataTables_empty {
    font-size: 13px;
}

ul.dtr-details {
    width: 100%;
}

td.centrer, th.centrer {
    text-align: center !important;
}

.dataTables_wrapper i {
    color: #0c1c5b;
    margin: 0 4px;
}

.btn-vue-detail i {
    margin: 0 8px;
    color: #0c1c5b;
}

.rating-label {
    display: inline-block;
    width: min-content;
    cursor: pointer;
}

.rating-icon {
    padding: 7px;
    transition: color 0.2s;
}

.rating-icon:hover {
    color: var(--blue) !important;
}

.rating-input:checked + .rating-label .rating-icon {
    border: 2px solid var(--blue);
    border-radius: 50%;
    padding: 5px;
}

/* Indicateurs de tri DataTables : colonnes non triées (flèches discrètes) */
table.dataTable thead > tr > th.sorting::after,
table.dataTable thead > tr > th.sorting::before {
    opacity: 0.2 !important;
}

/* Indicateurs de tri DataTables : colonne triée ascendante (flèche ▲ visible) */
table.dataTable thead > tr > th.sorting_asc::before {
    opacity: 1 !important;
    color: var(--blue);
}
table.dataTable thead > tr > th.sorting_asc::after {
    opacity: 0.2 !important;
}

/* Indicateurs de tri DataTables : colonne triée descendante (flèche ▼ visible) */
table.dataTable thead > tr > th.sorting_desc::after {
    opacity: 1 !important;
    color: var(--blue);
}
table.dataTable thead > tr > th.sorting_desc::before {
    opacity: 0.2 !important;
}

#entite-filter-form .select2 .select2-selection {
    display: flex;
    align-items: center;
}

#entite-filter-form .select2 .select2-selection .select2-selection__choice {
    font-size: var(--bs-body-font-size);
}

#entite-filter-form .select2 .select2-selection .select2-search {
    float: none;
    display: inline;
}

#entite-filter-form .select2 .select2-selection .select2-search input {
    color: lightgray;
    margin-top: 0;
    width: 0;
    min-width: 0;
}

.nav-link {
    color: var(--blue);
}

.icon-col {
    width: 1.5rem;
    margin-right: 0.5rem;
    display: inline-flex;
    justify-content: center;
    color: var(--bs-gray-500)
}

/* MENU */

#entite-filter-form select {
    height: 43px;
    opacity: 0;
}

@media only screen and (min-width: 992px) {
    .menu-sans-logo.fixed-menu {
        position: fixed;
        top: 65px;
        height: calc(100vh - 65px);
        width: 16%;
        overflow: auto;
        z-index: 2;
        scrollbar-color: var(--blue) lightgray;
        scrollbar-width: thin;
    }

    .search-field-client {
        position: absolute;
        z-index: 10;
    }
}

/* DATATABLES */

.dtr-details {
    text-align: start;
}

/* Bouton de vidage des champs de filtre */
#search-field .input-group {
    position: relative;
}

#search-field .dt-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: none;
    border: none;
    background: transparent;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

#search-field .dt-clear-btn:hover {
    color: #333;
}

#search-field .dt-clear-btn.visible {
    display: block;
}

#search-field input.has-clear:not([type="date"]) {
    padding-right: 28px;
}

/* Overlay de chargement DataTables */
.dt-loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    z-index: 10;
}

.dt-loading-overlay.active {
    display: block;
}

.dt-loading-spinner {
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    color: var(--blue);
    font-weight: 500;
    z-index: 11;
}