﻿/* Layout */
.certimm-dock-main-content {
    height: 100dvh;
    overflow-y: hidden;
}

.certimm-dock-main-content-block {
    max-width: 100%;
    min-width: 0;
}

@media (min-width: 992px) {
    .certimm-dock-main-content-block {
        max-width: calc(100% - 210px);
    }
}

.certimm-dock-main-content-block .e-appbar {
    box-shadow: none;
    background: transparent;
    border-bottom: 1px solid var(--bs-gray-300);
}

.certimm-dock-main-content-body {
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
}

.lien-conditions-generales {
    font-size: 12px;
    text-decoration: none;
    color: var(--bs-secondary);
}

.certimm-dock-sidebar {
    background-color: var(--bs-primary);
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.certimm-main-menu .nav-item {
    padding: 2px 5px 0 5px !important;
    font-family: "Inter";
    font-size: 14px;
    font-weight: 400;
}

.certimm-main-menu .nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    color: var(--bs-light) !important;
    border-radius: 4px;
}

    .certimm-main-menu .nav-link .e-icons {
        font-size: 18px;
    }

.certimm-main-submenu .nav-item {
    padding: 1px 2px 0 10px !important;
    font-size: 13px;
}

.certimm-main-submenu .nav-link {
    padding: 2px 12px;
    line-height: 20px;
}

/* Background blur */
body::before {
    position: absolute;
    inset: 0;
    content: '';
    z-index: -1;
    background: url(/assets/global/background/background-blur.webp) center center / cover no-repeat;
    opacity: 0.08;
}

.e-dialog::before {
    position: absolute;
    inset: 0;
    content: '';
    z-index: -1;
    background: url(/assets/global/background/background-blur.webp) center center / cover no-repeat;
    opacity: 0.18;
}

.e-dlg-header-content, .e-dlg-content, .e-footer-content {
    background-color: transparent !important;
}

    .e-dlg-content .e-contextmenu-container ul.e-contextmenu {
        background-color: transparent !important;
    }

/* Login background */
.login-bg {
    height: 100dvh;
    overflow: auto;
}

    .login-bg::before {
        position: absolute;
        inset: 0;
        content: '';
        z-index: -1;
        background: url(/assets/global/background/background-blur.webp) center center / cover no-repeat;
        opacity: 0.25;
    }

    .login-bg .e-card {
        border-radius: 20px;
        box-shadow: 0 0px 15px 5px rgb(0 0 0 / 5%);
        overflow: hidden;
    }

        .login-bg .e-card .login-card-image {
            background-color: var(--bs-primary);
            padding: 25px;
            max-width: 150px;
        }

/* Visiteur background */
.visiteur-bg::before {
    position: absolute;
    inset: 0;
    content: '';
    z-index: -1;
    background: url(/assets/global/background/background-blur.webp) center center / cover no-repeat;
    opacity: 0.25;
}

.visiteur-bg > .e-card {
    border-radius: 20px;
    box-shadow: 0 0px 15px 5px rgb(0 0 0 / 5%);
}

/* Buttons */
.e-split-btn-wrapper > .e-dropdown-btn {
    border-left: 1px solid white !important;
}

/* DataGrids */
.e-grid .e-row.archive .e-rowcell {
    font-style: italic;
    color: var(--bs-gray-500) !important;
}

.e-grid .e-rowcell.e-templatecell .e-dropdown-btn.e-caret-hide {
    width: 32px;
    height: 26px;
    padding: 0px 7px;
}

.e-grid .e-toolbar .e-searchinput:not(:placeholder-shown) {
    background-color: #fafad2;
}

.e-grid .e-filtered::before {
    color: white;
    background-color: var(--bs-info);
    padding: 2px;
    border-radius: 25%;
}

/* FileManager */
@media (min-width: 768px) {
    .e-filemanager.certimm-filemanager-navigation-masquee .e-splitter .e-pane:first-child,
    .e-filemanager.certimm-filemanager-navigation-masquee .e-splitter .e-split-bar:first-of-type {
        display: none !important;
    }

    .e-filemanager.certimm-filemanager-navigation-masquee .e-splitter .e-pane:last-child {
        width: 100% !important;
        flex-basis: 100% !important;
    }
}

/* Cards */
.e-card.no-hover {
    background-color: #f3f4f6;
}

.e-card {
    overflow: visible;
}

    .e-card .e-card-header .e-card-header-caption .e-card-header-title {
        font-size: 15px;
    }

    .e-card .e-card-content {
        border-top: 1px solid #e5e7eb;
        padding-top: 15px;
    }

    .e-card.card-overflow .e-card-content {
        overflow: visible;
    }

/* ListViews */
.e-list-template {
    background-color: white;
}

    .e-list-template .e-list-header {
        height: auto;
    }

        .e-list-template .e-list-header .header {
            width: 100%;
        }

    .e-list-template .e-list-item {
        border-bottom: 1px solid var(--bs-gray-200);
    }

.e-listview .e-icons {
    color: inherit !important;
}

.e-listview .inactif {
    font-style: italic;
    color: var(--bs-gray-500) !important;
}

.list-spinner .e-spinner-pane .e-spinner-inner {
    transform: translateX(-50%) translateY(calc(-50% + 18px));
}

/* ListBoxes */
.e-list-template.e-listbox-container .e-list-item {
    height: auto;
    border-bottom: 1px solid var(--bs-gray-200);
}

    .e-list-template.e-listbox-container .e-list-item.e-selected {
        background-color: #D0E3FF;
    }

/* Textfields */
.custom-field .e-textbox {
    resize: none !important;
}

.certimm-input-label {
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0px;
}

.certimm-error-indication {
    --bs-text-opacity: 1;
    color: rgba(var(--bs-danger-rgb), var(--bs-text-opacity)) !important;
    font-size: 11.5px;
}

.e-float-input textarea:focus ~ label.e-float-text,
.e-float-input textarea:valid ~ label.e-float-text,
.e-float-input textarea ~ label.e-label-top.e-float-text,
.e-float-input textarea[readonly] ~ label.e-label-top.e-float-text,
.e-float-input textarea[disabled] ~ label.e-label-top.e-float-text,
.e-float-input textarea label.e-float-text.e-label-top,
.e-float-input.e-control-wrapper textarea:focus ~ label.e-float-text,
.e-float-input.e-control-wrapper textarea:valid ~ label.e-float-text,
.e-float-input.e-control-wrapper textarea ~ label.e-label-top.e-float-text,
.e-float-input.e-control-wrapper textarea[readonly] ~ label.e-label-top.e-float-text,
.e-float-input.e-control-wrapper textarea[disabled] ~ label.e-label-top.e-float-text,
.e-float-input.e-control-wrapper textarea label.e-float-text.e-label-top,
.e-float-input input:focus ~ label.e-float-text,
.e-float-input input:valid ~ label.e-float-text,
.e-float-input input ~ label.e-label-top.e-float-text,
.e-float-input input[readonly] ~ label.e-label-top.e-float-text,
.e-float-input input[disabled] ~ label.e-label-top.e-float-text,
.e-float-input input label.e-float-text.e-label-top,
.e-float-input.e-control-wrapper input:focus ~ label.e-float-text,
.e-float-input.e-control-wrapper input:valid ~ label.e-float-text,
.e-float-input.e-control-wrapper input ~ label.e-label-top.e-float-text,
.e-float-input.e-control-wrapper input[readonly] ~ label.e-label-top.e-float-text,
.e-float-input.e-control-wrapper input[disabled] ~ label.e-label-top.e-float-text,
.e-float-input.e-control-wrapper input label.e-float-text.e-label-top,
.e-float-input.e-control-wrapper.e-input-focus input ~ label.e-float-text,
.e-float-input.e-input-focus input ~ label.e-float-text {
    font-size: 13px;
    transform: translate3d(-10px, -37px, 0) scale(1);
}

/* Chat UI */
.e-chat-ui .e-right .e-message-content {
    background: var(--bs-primary);
    color: white;
}

/* AI Assist */
.e-aiassistview .banner-content .e-assistview-icon:before,
.e-aiassistview .response-header .e-assistview-icon:before {
    margin-right: 10px;
}

.e-aiassistview .e-rtl .banner-content .e-assistview-icon:before,
.e-aiassistview .e-rtl .response-header .e-assistview-icon:before {
    margin-left: 10px;
}

.e-aiassistview .banner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    align-items: center;
    padding: 10px;
    width: 65%;
    margin: 0 auto;
}

.e-aiassistview .e-carousel.e-partial .e-carousel-slide-container {
    padding: 0 50px;
}

.e-aiassistview .banner-content h3 {
    display: flex;
    margin: 20px 0px;
    font-size: 25px;
}

.e-aiassistview .banner-content .carousel-template {
    padding: 5px;
    position: relative;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.e-aiassistview .banner-content img {
    width: 100%;
    height: 250px;
    border-radius: 10px;
}

.e-aiassistview .banner-content .e-card {
    position: absolute;
    bottom: 20px;
    width: 86%;
    opacity: 0.8;
}

.e-aiassistview .banner-content .e-card-header {
    width: 100%;
    padding: 12px;
}

.e-aiassistview .e-aiassist-view .e-aiassist-views .e-aiassist-suggestions li {
    padding: 0;
    border: none;
    box-shadow: none;
}

.e-aiassistview .suggestion-item {
    display: flex;
    align-items: center;
    background-color: #686868;
    color: white;
    padding: 4px 10px;
    opacity: 0.8;
    gap: 5px;
    height: 35px;
    border-radius: 5px;
}

    .e-aiassistview .suggestion-item .content {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

.e-aiassistview #ddMenu {
    border-radius: 50%;
}

.e-aiassistview .e-aiassist-view .e-aiassist-views .e-aiassist-prompt-text {
    background: none;
}

.e-aiassistview .promptItemContent,
.e-aiassistview .responseItemContent {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.e-aiassistview .promptItemContent {
    align-items: flex-end;
    margin-right: 20px
}

.e-aiassistview .responseItemContent {
    margin-left: 20px
}

    .e-aiassistview .promptItemContent .prompt-header,
    .e-aiassistview .responseItemContent .response-header {
        font-size: 20px;
        font-weight: bold;
        display: flex;
        align-items: center;
    }

.e-aiassistview #ddMenu.e-btn.e-icon-btn {
    padding: 8px;
    line-height: 14px;
}

.e-aiassistview #ddMenu.e-dropdown-btn.e-btn .e-btn-icon {
    margin-left: 0;
    width: 1em;
}

.e-aiassistview .promptItemContent .prompt-header span {
    margin-left: 10px;
}

.e-aiassistview .promptItemContent .content {
    margin-right: 35px;
}

.e-aiassistview .responseItemContent .content {
    margin-left: 35px;
}

.e-aiassistview .e-response-item-template .e-toolbar-items {
    margin-left: 35px;
}

@media only screen and (max-width: 840px) {
    .e-aiassistview,
    .e-aiassistview .banner-content {
        width: 100%;
    }
}

.e-control.e-aiassistview .e-view-container .e-spv-assist-view-banner-content {
    width: 100%;
    height: 240px;
    font-size: 14px;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 56px;
}

    .e-control.e-aiassistview .e-view-container .e-spv-assist-view-banner-content .e-assistview-icon::before {
        font-size: 32px;
    }

/* Assistant IA (back-office cabinet) : dégradé en mouvement lent, scintillement de l'icône au survol */
.e-btn.certimm-bouton-agent-ia,
.e-btn.certimm-bouton-agent-ia:focus {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 25%, #0ea5e9 50%, #6366f1 75%, #8b5cf6 100%);
    background-size: 300% 300%;
    border-color: transparent;
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
    animation: certimm-agent-ia-degrade 8s ease-in-out infinite alternate;
}

/* background-image et non background : la taille animée du dégradé est conservée au survol */
.e-btn.certimm-bouton-agent-ia:hover {
    background-image: linear-gradient(135deg, #7c3aed 0%, #4f46e5 25%, #0284c7 50%, #4f46e5 75%, #7c3aed 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.5);
}

.e-btn.certimm-bouton-agent-ia .e-btn-icon {
    color: #fff;
}

.e-btn.certimm-bouton-agent-ia:hover .e-btn-icon {
    animation: certimm-agent-ia-scintille .6s ease-in-out;
}

@keyframes certimm-agent-ia-degrade {
    from {
        background-position: 0% 50%;
    }

    to {
        background-position: 100% 50%;
    }
}

@keyframes certimm-agent-ia-scintille {
    50% {
        transform: scale(1.25) rotate(15deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .e-btn.certimm-bouton-agent-ia,
    .e-btn.certimm-bouton-agent-ia:hover .e-btn-icon {
        animation: none;
    }
}

.e-dialog.certimm-agent-ia .e-dlg-content {
    padding: 0;
    overflow: hidden;
}

/* Onglet de vue masqué : seuls les boutons ajoutés (nouvelle conversation, fermeture) restent dans l'en-tête */
.certimm-agent-ia .e-aiassistview .e-view-header .e-toolbar-item:not(.e-aiassist-view-toolbar-item) {
    display: none;
}

/* Style conversationnel épuré : en-tête sans bordure, question en bulle, réponse en texte libre */
.certimm-agent-ia .e-aiassistview .e-view-header {
    border-bottom: none;
}

.certimm-agent-ia .e-aiassistview {
    font-size: 15px;
}

/* Pastille de l'assistant, reprend le dégradé du bouton d'ouverture */
.certimm-agent-ia .certimm-agent-ia-avatar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #0ea5e9 100%);
    color: #fff;
    font-size: 14px;
}

    .certimm-agent-ia .certimm-agent-ia-avatar .e-assistview-icon::before {
        margin: 0;
    }

.certimm-agent-ia .certimm-agent-ia-avatar-grand {
    width: 56px;
    height: 56px;
    font-size: 26px;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

/* Accueil */
.certimm-agent-ia .certimm-agent-ia-accueil {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    color: #4b5563;
}

    .certimm-agent-ia .certimm-agent-ia-accueil h3 {
        margin: 18px 0 8px;
        font-size: 26px;
        font-weight: 600;
        color: #111827;
    }

/* Question */
.certimm-agent-ia .e-aiassistview .e-prompt-text {
    padding: 0;
    border: none;
    background: transparent;
}

.certimm-agent-ia .certimm-agent-ia-question {
    padding: 10px 16px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #111827;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Réponse */
.certimm-agent-ia .e-aiassistview .e-output-icon {
    display: none;
}

.certimm-agent-ia .certimm-agent-ia-reponse {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

    .certimm-agent-ia .certimm-agent-ia-reponse .content {
        flex: 1 1 auto;
        min-width: 0;
        padding-top: 3px;
        line-height: 1.6;
        color: #111827;
    }

.certimm-agent-ia .e-response-item-template .e-toolbar-items {
    margin-left: 42px;
}

.certimm-agent-ia .certimm-agent-ia-reponse .content table {
    font-size: 13px;
}

.certimm-agent-ia .certimm-agent-ia-reponse .content table td,
.certimm-agent-ia .certimm-agent-ia-reponse .content table th {
    padding: 2px 6px;
    border-bottom: 1px solid #dee2e6;
}

/* Carte d'action de l'assistant : reprend le dégradé de l'avatar, liseré coloré selon le statut */
.certimm-agent-ia-carte {
    position: relative;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 6px 20px rgba(99, 102, 241, 0.07);
    font-size: 13.5px;
    line-height: 1.5;
    color: #111827;
}

    .certimm-agent-ia-carte::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 3px;
        background: #e5e7eb;
    }

.certimm-agent-ia-carte-attente {
    border-color: #c7d2fe;
}

    .certimm-agent-ia-carte-attente::before,
    .certimm-agent-ia-carte-encours::before {
        background: linear-gradient(90deg, #8b5cf6 0%, #6366f1 50%, #0ea5e9 100%);
    }

.certimm-agent-ia-carte-effectuee::before {
    background: #10b981;
}

.certimm-agent-ia-carte-echec::before {
    background: #ef4444;
}

/* En-tête : icône de statut, surtitre avec le niveau de risque, titre de l'action */
.certimm-agent-ia-carte-entete {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 16px 10px;
}

.certimm-agent-ia-carte-icone {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
}

    .certimm-agent-ia-carte-icone svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.4;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .certimm-agent-ia-carte-icone .e-assistview-icon::before {
        margin: 0;
    }

.certimm-agent-ia-carte-attente .certimm-agent-ia-carte-icone,
.certimm-agent-ia-carte-encours .certimm-agent-ia-carte-icone {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #0ea5e9 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.certimm-agent-ia-carte-effectuee .certimm-agent-ia-carte-icone {
    background: #ecfdf5;
    color: #059669;
}

.certimm-agent-ia-carte-echec .certimm-agent-ia-carte-icone {
    background: #fef2f2;
    color: #dc2626;
}

.certimm-agent-ia-carte-chargement {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: certimm-agent-ia-rotation .8s linear infinite;
}

@keyframes certimm-agent-ia-rotation {
    to {
        transform: rotate(360deg);
    }
}

.certimm-agent-ia-carte-entete-texte {
    flex: 1 1 auto;
    min-width: 0;
}

.certimm-agent-ia-carte-surtitre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #6366f1;
}

.certimm-agent-ia-carte-effectuee .certimm-agent-ia-carte-surtitre {
    color: #059669;
}

.certimm-agent-ia-carte-echec .certimm-agent-ia-carte-surtitre {
    color: #dc2626;
}

.certimm-agent-ia-carte-abandonnee .certimm-agent-ia-carte-surtitre {
    color: #6b7280;
}

.certimm-agent-ia-carte-titre {
    margin-top: 2px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
}

.certimm-agent-ia-carte-abandonnee .certimm-agent-ia-carte-titre {
    color: #6b7280;
}

/* Pastilles du niveau de risque */
.certimm-agent-ia-carte-risque {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 1px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

    .certimm-agent-ia-carte-risque::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: currentColor;
    }

.certimm-agent-ia-carte-risque-faible {
    background: #ecfdf5;
    color: #047857;
}

.certimm-agent-ia-carte-risque-modere {
    background: #fffbeb;
    color: #b45309;
}

.certimm-agent-ia-carte-lien {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    color: #6b7280;
    transition: background-color .15s ease, color .15s ease;
}

    .certimm-agent-ia-carte-lien:hover {
        background: #f5f3ff;
        color: #6366f1;
    }

    .certimm-agent-ia-carte-lien svg {
        width: 15px;
        height: 15px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* Récapitulatif : libellés et valeurs, sections, puces, citations (messages) et remarques */
.certimm-agent-ia-carte-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 16px 14px 60px;
}

.certimm-agent-ia-carte-champ {
    display: grid;
    grid-template-columns: minmax(90px, 30%) 1fr;
    gap: 12px;
}

.certimm-agent-ia-carte-libelle {
    color: #6b7280;
}

.certimm-agent-ia-carte-valeur {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.certimm-agent-ia-carte-citation {
    padding: 8px 12px;
    border-left: 3px solid #c7d2fe;
    border-radius: 0 10px 10px 0;
    background: #f9fafb;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.certimm-agent-ia-carte-section {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.certimm-agent-ia-carte-puce {
    position: relative;
    padding-left: 14px;
    overflow-wrap: anywhere;
}

    .certimm-agent-ia-carte-puce::before {
        content: "";
        position: absolute;
        top: .6em;
        left: 2px;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: #a5b4fc;
    }

.certimm-agent-ia-carte-note {
    padding: 6px 10px;
    border-radius: 10px;
    background: #f5f3ff;
    color: #4338ca;
    font-size: 12.5px;
}

/* Pied : décision (boutons en pastille) ou statut et compte rendu */
.certimm-agent-ia-carte-pied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 10px 16px;
    border-top: 1px solid #f3f4f6;
    background: #fafafb;
}

.certimm-agent-ia-carte-aide {
    font-size: 12px;
    color: #9ca3af;
}

.certimm-agent-ia-carte .e-btn.certimm-agent-ia-carte-refuser,
.certimm-agent-ia-carte .e-btn.certimm-agent-ia-carte-valider {
    padding: 4px 16px;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: none;
}

.certimm-agent-ia-carte .e-btn.certimm-agent-ia-carte-refuser {
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    box-shadow: none;
}

    .certimm-agent-ia-carte .e-btn.certimm-agent-ia-carte-refuser:hover {
        border-color: #d1d5db;
        background: #f9fafb;
    }

.certimm-agent-ia-carte .e-btn.certimm-agent-ia-carte-valider {
    border: none;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #0ea5e9 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

    .certimm-agent-ia-carte .e-btn.certimm-agent-ia-carte-valider:hover {
        background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #0284c7 100%);
        box-shadow: 0 3px 12px rgba(99, 102, 241, 0.5);
    }

.certimm-agent-ia-carte .e-btn.certimm-agent-ia-carte-refuser:disabled,
.certimm-agent-ia-carte .e-btn.certimm-agent-ia-carte-valider:disabled {
    opacity: .5;
}

.certimm-agent-ia-carte-resultat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.certimm-agent-ia-carte-statut {
    flex: 0 0 auto;
    padding: 1px 10px;
    border-radius: 9999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 12px;
    font-weight: 600;
}

.certimm-agent-ia-carte-effectuee .certimm-agent-ia-carte-statut {
    background: #ecfdf5;
    color: #047857;
}

.certimm-agent-ia-carte-echec .certimm-agent-ia-carte-statut {
    background: #fef2f2;
    color: #b91c1c;
}

.certimm-agent-ia-carte-encours .certimm-agent-ia-carte-statut {
    background: #eef2ff;
    color: #4338ca;
}

.certimm-agent-ia-carte-resultat-texte {
    min-width: 0;
    font-size: 13px;
    color: #374151;
}

    .certimm-agent-ia-carte-resultat-texte p {
        margin-bottom: 0;
    }

@media (max-width: 576px) {
    .certimm-agent-ia-carte-details {
        padding-left: 16px;
    }

    .certimm-agent-ia-carte-champ {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .certimm-agent-ia-carte-chargement {
        animation: none;
    }
}

/* Consultation des conversations (administration) */
.certimm-agent-ia-historique .certimm-agent-ia-question {
    max-width: 80%;
}

.certimm-agent-ia-historique .certimm-agent-ia-historique-infos {
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
}

.certimm-agent-ia-historique .certimm-agent-ia-historique-outils {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 42px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f9fafb;
    font-size: 12px;
}

    .certimm-agent-ia-historique .certimm-agent-ia-historique-outils code {
        margin-left: 4px;
        word-break: break-all;
    }

/* Suggestions en pastilles */
.certimm-agent-ia .e-aiassistview .e-suggestions ul {
    justify-content: center;
}

.certimm-agent-ia .e-aiassistview .e-suggestions li {
    margin: 0 4px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    box-shadow: none;
    color: #374151;
    transition: background-color .15s ease, border-color .15s ease;
}

    .certimm-agent-ia .e-aiassistview .e-suggestions li:hover {
        border-color: #c7d2fe;
        background-color: #f5f3ff;
    }

/* Suggestions masquées dès le premier message, pour laisser la place à la conversation */
.certimm-agent-ia .certimm-agent-ia-sans-suggestions .e-suggestions {
    display: none;
}

/* Zone de saisie arrondie et flottante */
.certimm-agent-ia .e-aiassistview .e-footer:not(.e-footer-template) {
    padding: 4px 6px 4px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 26px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

    .certimm-agent-ia .e-aiassistview .e-footer:not(.e-footer-template).e-footer-focused {
        border-color: #a5b4fc;
        box-shadow: 0 4px 16px rgba(99, 102, 241, 0.18);
    }

    .certimm-agent-ia .e-aiassistview .e-footer:not(.e-footer-template) .e-assist-send {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #0ea5e9 100%);
        color: #fff;
    }

        .certimm-agent-ia .e-aiassistview .e-footer:not(.e-footer-template) .e-assist-send.disabled {
            background: #e5e7eb;
            color: #fff;
            opacity: 1;
        }

/* Tabs */
.e-tab .e-tab-header .e-toolbar-item .e-tab-text {
    text-transform: none !important;
}

.e-tab.tab-etats-dossiers .e-tab-header .e-toolbar-item:not(.e-separator) {
    height: 50px;
    line-height: initial;
}

/* Dialogs */
.e-dialog .e-dlg-header {
    width: auto;
}

.e-dlg-header .e-btn .e-icons {
    color: inherit;
}

.e-dialog .e-footer-content .e-btn.e-dropdown-btn {
    margin-left: -1px;
}

/* Upload */
[id^="modal-explorateur-fichier-"].e-dlg-container {
    z-index: 1500 !important;
}

/* Color palette */
.rounded-palette .e-container .e-custom-palette .e-palette {
}

.rounded-palette .e-container .e-palette .e-tile {
    border-radius: 50%;
    margin: 3px;
    height: 30px;
    width: 30px;
}

    .rounded-palette .e-container .e-palette .e-tile.e-selected::before {
        content: '';
        background-color: inherit;
        border-radius: 50%;
        display: inline-block;
        transform: scale(1.2);
        opacity: 0.3;
        height: 30px;
        width: 30px;
        margin-top: -1px;
        margin-left: -1px;
    }

.mobile .rounded-palette .e-container .e-palette .e-tile {
    height: 16px;
    width: 16px;
}

.rounded-palette .e-container .e-palette .e-tile:hover {
    box-shadow: none;
}

.rounded-palette .e-container .e-palette .e-tile.e-selected {
    outline: none;
}

/* Messages */
.e-message.full-width > .e-msg-content {
    width: 100%;
}

.e-message.e-small {
    padding: 4px 3px;
}

.e-message.e-small > .e-msg-content {
    font-size: 11px;
}

.e-message.e-small > .e-msg-icon {
    height: 11px;
    font-size: 11px;
    line-height: 11px;
}

.e-message.octobre-rose {
    background: #FCE7F0;
    border-color: #F7B5D0;
    color: #822550;
}

.e-message.octobre-rose .certimm-input-label {
    color: #822550;
}

.e-message.octobre-rose .e-switch-wrapper .e-switch-inner.e-switch-active,
.e-message.octobre-rose .e-switch-wrapper:hover .e-switch-inner.e-switch-active {
    background-color: #C33C79;
    border-color: #C33C79;
}

/* Créneaux disponibles */
.creneau-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.creneau-overlay {
    position: absolute;
    left: 0;
    right: 0;
    font-size: 10px;
    line-height: 1.2;
    padding: 2px 4px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.e-schedule .e-timeline-view .creneau-container {
    height: 100%;
}

.e-schedule .e-timeline-view .creneau-overlay {
    top: 0;
    bottom: 0;
    left: auto;
    right: auto;
}

.e-schedule .e-vertical-view .e-resource-cells {
    padding-left: 8px;
}

.e-schedule .e-agenda-view .e-resource-column {
    vertical-align: middle !important;
}

.e-schedule .e-vertical-view .e-content-table tr td.e-work-cells[data-group-index="0"]:not(:first-child),
.e-schedule .e-vertical-view .e-date-header-wrap tr td.e-all-day-cells[data-group-index="0"]:not(:first-child),
.e-schedule .e-vertical-view .e-date-header-wrap tr td.e-resource-cells[data-group-index="0"]:not(:first-child),
.e-schedule .e-vertical-view .e-date-header-wrap .e-header-row td.e-date-header:not(:first-child) {
    border-left: 2px solid var(--bs-gray-500) !important;
}

.e-schedule .e-month-view .e-work-cells[data-group-index="0"]:not(:first-child),
.e-schedule .e-month-view .e-resource-cells[data-group-index="0"]:not(:first-child),
.e-schedule .e-month-view .e-header-cells:not(:first-child) {
    border-left: 2px solid var(--bs-gray-500) !important;
}

.e-recurrenceeditor .e-form-left, .e-recurrenceeditor .e-input-wrapper-side.e-form-left {
    padding: 0 8px 0px 0;
}

.e-recurrenceeditor .e-form-right, .e-recurrenceeditor .e-input-wrapper-side.e-form-right {
    padding: 0;
}

/* Planning */
.e-appointment.machine-plomb {
    position: relative;
}

    .e-appointment.machine-plomb::after {
        position: absolute;
        content: '';
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='white'> <path d='M12 13.913c1.521 0 2.753-1.21 2.753-2.702 0-1.491-1.232-2.701-2.753-2.701s-2.753 1.21-2.753 2.701c0 1.492 1.232 2.702 2.753 2.702zm2.525-6.995l3.484-5.918c3.531 2.005 5.914 5.727 5.991 10h-7.021c-.075-1.745-1.038-3.246-2.454-4.082zm0 8.586l3.483 5.918c-1.767 1.004-3.82 1.578-6.008 1.578s-4.241-.574-6.008-1.578l3.482-5.918c.744.438 1.6.708 2.526.708s1.782-.269 2.525-.708zm-7.504-4.504h-7.021c.077-4.273 2.46-7.995 5.992-10l3.483 5.919c-1.417.835-2.379 2.336-2.454 4.081z'/%3E%3C/svg%3E");
        background-repeat: no-repeat, no-repeat, no-repeat;
        width: 15px;
        height: 15px;
        bottom: 5px;
        right: 5px;
    }

.e-schedule .e-appointment.rdv-secondary-overlay {
    z-index: 0;
}

.e-schedule .e-agenda-view .e-appointment.rdv-secondary-overlay {
    position: relative;
}

.e-schedule .e-appointment.rdv-secondary-overlay::before {
    content: "";
    position: absolute;
    inset: 0 0 0 5px;
    background: var(--rdv-secondary-color);
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
}

.e-schedule .e-agenda-view .e-appointment.rdv-secondary-overlay .e-subject,
.e-schedule .e-agenda-view .e-appointment.rdv-secondary-overlay .e-location,
.e-schedule .e-agenda-view .e-appointment.rdv-secondary-overlay .e-date-time {
    color: white;
}

/* Timeline dossier */
.e-timeline.chronologie-dossier .e-opposite-content {
    -ms-flex: none;
    flex: none;
    width: 150px;
    padding-bottom: 20px;
}

.e-timeline.chronologie-dossier .e-content {
    -ms-flex: 1 1 100%;
    flex: 1 1 100%;
    padding-bottom: 20px;
}

.e-timeline.chronologie-dossier .e-timeline-item.e-connector:last-child .e-content,
.e-timeline.chronologie-dossier .e-timeline-item.e-connector:last-child .e-opposite-content {
    padding-bottom: 0;
}

.e-timeline.chronologie-dossier .e-timeline-item.e-connector::after {
    left: calc(170px - var(--connector-size));
}

.e-timeline.e-vertical.chronologie-dossier .e-dot-item {
    -ms-flex: none;
    flex: none;
    width: 40px;
}

/* Mobile : auteur et date passent au-dessus du message (cf. d-md-none) */
@media (max-width: 767.98px) {
    .e-timeline.chronologie-dossier .e-opposite-content {
        display: none;
    }

    .e-timeline.chronologie-dossier .e-timeline-item.e-connector::after {
        left: calc(20px - var(--connector-size));
    }
}

/* Gantt Certifications */
.table-gantt-certification {
    table-layout: fixed;
    min-width: 800px;
}

    .table-gantt-certification th {
        background-color: #B0DD7F;
        color: #3F6119;
        font-size: 14px;
        font-weight: 500;
    }

        .table-gantt-certification th:first-of-type, .table-gantt-certification th:last-of-type {
            background-color: #D9D9D9;
            color: #000;
        }

    .table-gantt-certification td {
        padding: 0;
        height: 55px;
        position: relative;
        vertical-align: top;
    }

    .table-gantt-certification th, .table-gantt-certification td {
        border-right: 2px dashed var(--bs-green);
        text-align: center;
    }

        .table-gantt-certification th:last-of-type, .table-gantt-certification td:last-of-type {
            border-right: none;
        }

    .table-gantt-certification .tache-gantt-certification {
        position: absolute;
        left: 0;
        top: 10px;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 500;
        line-height: 16px;
        white-space: normal;
        word-break: break-word;
        overflow: hidden;
    }

        .table-gantt-certification .tache-gantt-certification.tache-realisee {
            background-color: #BFBFBF !important;
            color: #FFF !important;
        }

    .table-gantt-certification .fleche-gantt-certification {
        height: 20px;
        overflow: hidden;
    }

        .table-gantt-certification .fleche-gantt-certification > span {
            position: absolute;
            top: 0;
            width: 0;
            height: 0;
            border-left: 12px solid transparent;
            border-right: 12px solid transparent;
            border-top: 20px solid #3F6119;
            transform: translateX(-11px);
        }

/* Fichiers du dossier */
@media (min-width: 1200px) {
    .liste-fichiers-dossier {
        height: calc(100dvh - 155px);
    }
}

/* Switches */
.switch-ht-ttc {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

    .switch-ht-ttc .e-switch-wrapper .e-switch-off {
        background-color: var(--bs-primary) !important;
    }

    .switch-ht-ttc .e-switch-wrapper .e-switch-on {
        background-color: var(--bs-info) !important;
    }

    .switch-ht-ttc .switch-label {
        opacity: 0.6;
        transition: opacity 0.25s ease, color 0.25s ease;
        font-size: 0.95rem;
    }

        .switch-ht-ttc .switch-label.active {
            opacity: 1;
        }

        /* Couleur texte HT / TTC quand actif */
        .switch-ht-ttc .switch-label.ht-label.active {
            color: var(--bs-primary);
        }

        .switch-ht-ttc .switch-label.ttc-label.active {
            color: var(--bs-info);
        }

.e-switch-wrapper.e-xsmall {
    width: 28px;
    height: 18px;
}

    .e-switch-wrapper.e-xsmall .e-switch-handle {
        width: 12px;
        height: 12px;
    }

        .e-switch-wrapper.e-xsmall .e-switch-handle.e-switch-active {
            left: 100%;
            margin-left: -15px;
        }

/* Logo France */
.logo-france {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 18'%3E%3Cpath fill='%23fff' d='M11.3 10.2c-.9.6-1.7 1.3-2.3 2.1v-.1c.4-.5.7-1 1-1.5.4-.2.7-.5 1-.8.5-.5 1-1 1.7-1.3.3-.1.5-.1.8 0-.1.1-.2.1-.4.2H13v-.1c-.3.3-.7.5-1 .9-.1.2-.2.6-.7.6 0 .1.1 0 0 0zm1.6 4.6c0-.1-.1 0-.2 0l-.1.1-.1.1-.2.2s.1.1.2 0l.1-.1c.1 0 .2-.1.2-.2.1 0 .1 0 .1-.1 0 .1 0 0 0 0zm-1.6-4.3c.1 0 .2 0 .2-.1s.1-.1.1-.1v-.1c-.2.1-.3.2-.3.3zm2.4 1.9s0-.1 0 0c.1-.1.2-.1.3-.1.7-.1 1.4-.3 2.1-.6-.8-.5-1.7-.9-2.6-1h.1c-.1-.1-.3-.1-.5-.2h.1c-.2-.1-.5-.1-.7-.2.1 0 .2-.2.2-.3h-.1c-.4.2-.6.5-.8.9.2.1.5 0 .7.1h-.3c-.1 0-.2.1-.2.2h.1c-.1 0-.1.1-.2.1.1.1.2 0 .4 0 0 .1.1.1.1.1-.1 0-.2.1-.3.3-.1.2-.2.2-.3.3v.1c-.3.2-.6.5-.9.8v.1c-.1.1-.2.1-.2.2v.1c.4-.1.6-.4 1-.5l.6-.3c.2 0 .3-.1.5-.1v.1h.2c0 .1-.2 0-.1.1s.3.1.4 0c.2-.2.3-.2.4-.2zM12.4 14c-.4.2-.9.2-1.2.4 0 0 0 .1-.1.1 0 0-.1 0-.1.1-.1 0-.1.1-.2.2l-.1.1s0 .1.1 0l.1-.1s-.1.1-.1.2V15.3l-.1.1s0 .1-.1.1l-.1.1.2-.2.1-.1h.2s0-.1.1-.1c.1-.1.2-.2.3-.2h.1c.1-.1.3-.1.4-.2.1-.1.2-.2.3-.2.2-.2.5-.3.8-.5-.1 0-.2-.1-.3-.1 0 .1-.2 0-.3 0zM30 9.7c-.1.2-.4.2-.6.3-.2.2 0 .4.1.5.1.3-.2.5-.4.5.1.1.2.1.2.1 0 .2.2.2.1.4s-.5.3-.3.5c.1.2.1.5 0 .7-.1.2-.3.4-.5.5-.2.1-.4.1-.6 0-.1 0-.1-.1-.2-.1-.5-.1-1-.2-1.5-.2-.1 0-.3.1-.4.1-.1.1-.3.2-.4.3l-.1.1c-.1.1-.2.2-.2.3-.1.2-.2.4-.2.6-.2.5-.2 1 0 1.4 0 0 1 .3 1.7.6.2.1.5.2.7.4l1.7 1H13.2l1.6-1c.6-.4 1.3-.7 2-1 .5-.2 1.1-.5 1.5-.9.2-.2.3-.4.5-.5.3-.4.6-.7 1-1l.3-.3s0-.1.1-.1c-.2.1-.2.2-.4.2 0 0-.1 0 0-.1s.2-.2.3-.2v-.1c-.4 0-.7.2-1 .5h-.2c-.5.2-.8.5-1.2.7v-.1c-.2.1-.4.2-.5.2-.2 0-.5.1-.8 0-.4 0-.7.1-1.1.2-.2.1-.4.1-.6.2v.1l-.2.2c-.2.1-.3.2-.5.4l-.5.5h-.1l.1-.1.1-.1c0-.1.1-.1.1-.2.2-.1.3-.3.5-.4 0 0-.1 0 0 0 0 0 0-.1.1-.1l-.1.1c-.1.1-.1.2-.2.2v-.1-.1l.2-.2c.1-.1.2-.1.3-.2h.1c-.2.1-.3.1-.5.2H14h-.1c0-.1.1-.1.2-.2h.1c1-.8 2.3-.6 3.4-1 .1-.1.2-.1.3-.2.1-.1.3-.2.5-.3.2-.2.4-.4.5-.7v-.1c-.4.4-.8.7-1.3 1-.6.2-1.3.4-2 .4 0-.1.1-.1.1-.1 0-.1.1-.1.1-.2h.1s0-.1.1-.1h.1c-.1-.1-.3.1-.4 0 .1-.1 0-.2.1-.2h.1s0-.1.1-.1c.5-.3.9-.5 1.3-.7-.1 0-.1.1-.2 0 .1 0 0-.1.1-.1.3-.1.6-.3.9-.4-.1 0-.2.1-.3 0 .1 0 .1-.1.2-.1v-.1h0c0-.1.1 0 .2-.1h-.1c.1-.1.2-.2.4-.2 0-.1-.1 0-.1-.1h.1-.5c-.1 0 0-.1 0-.1.1-.2.2-.5.3-.7h-.1c-.3.3-.8.5-1.2.6h-.2c-.2.1-.4.1-.5 0-.1-.1-.2-.2-.3-.2-.2-.1-.5-.3-.8-.4-.7-.2-1.5-.4-2.3-.3.3-.1.7-.2 1.1-.3.5-.2 1-.3 1.5-.3h-.3c-.4 0-.9.1-1.3.2-.3.1-.6.2-.9.2-.2.1-.3.2-.5.2v-.1c.3-.4.7-.7 1.1-.8.5-.1 1.1 0 1.6.1.4 0 .8.1 1.1.2.1 0 .2.2.3.3.2.1.4 0 .5.1v-.2c.1-.1.3 0 .4 0 .2-.2-.2-.4-.3-.6v-.1c.2.2.5.4.7.6.1.1.5.2.5 0-.2-.3-.4-.6-.7-.9v-.2c-.1 0-.1 0-.1-.1-.1-.1-.1-.2-.1-.3-.1-.2 0-.4-.1-.5-.1-.2-.1-.3-.1-.5-.1-.5-.2-1-.3-1.4-.1-.6.3-1 .6-1.5.2-.4.5-.7.8-1 .1-.4.3-.7.6-1 .3-.3.6-.5.9-.6.3-.1.5-.2.8-.3l2.5-.4H25l1.8.3c.1 0 .2 0 .2.1.1.1.3.2.4.2.2.1.4.3.6.5.1.1.2.3.1.4-.1.1-.1.4-.2.4-.2.1-.4.1-.6.1-.1 0-.2 0-.4-.1.5.2.9.4 1.2.8 0 .1.2.1.3.1v.1c-.1.1-.1.1-.1.2h.1c.1-.1.1-.4.3-.3.2.1.2.3.1.4-.1.1-.2.2-.4.3v.2c.1.1.1.2.2.4s.1.5.2.7c.1.5.2.9.2 1.4 0 .2-.1.5 0 .7l.3.6c.1.2.2.3.3.5.2.3.6.6.4 1zm-15.6 5.2c-.1 0-.1.1-.1.1s.1 0 .1-.1zm5.8-1.8c-.1.1 0 0 0 0zm-6.7-.2c0 .1.1 0 .1 0 .2-.1.5 0 .6-.2-.1-.1-.2 0-.2-.1-.1 0-.2 0-.2.1-.1.1-.3.1-.3.2z'/%3E%3Cpath fill='gray' d='M27.9 6.8c.1 0 .3 0 .3.1-.1.2-.4.3-.6.5h-.1c-.1.1-.1.2-.1.2h-.3c.1.1.3.2.5.2l.1.1h.2V8c-.1.1-.2.1-.4.1.2.1.5.1.7 0 .2-.1 0-.4.1-.5-.1 0 0-.1-.1-.1.1-.1.1-.2.2-.2s.1 0 .2-.1c0-.1-.1-.1-.1-.2.2-.1.3-.3.3-.5 0-.1-.3-.1-.4-.2h-.5c-.2 0-.3.1-.5.1l-.6.3c.2-.1.4-.1.7-.2 0 .3.2.3.4.3'/%3E%3C/svg%3E"),linear-gradient(90deg,#000091,#000091 50%,#e1000f 0,#e1000f),linear-gradient(90deg,#000,#000);
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: 1px -2px, 0 0, 0 0;
    background-size: 80px, 80px 30px, 0;
    height: 30px;
    width: 80px;
    min-width: 80px;
}

/* Sélecteur de cabinet (menu latéral) */
.certimm-selecteur-cabinet {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    text-align: left;
    font-family: "Inter";
    color: #fff;
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
}

    .certimm-selecteur-cabinet:hover, .certimm-selecteur-cabinet:focus-visible {
        background-color: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .certimm-selecteur-cabinet .e-icons, .certimm-selecteur-cabinet svg {
        flex-shrink: 0;
        font-size: 16px;
        color: rgba(255, 255, 255, 0.8);
    }

.certimm-selecteur-cabinet-nom {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 18px;
    overflow-wrap: anywhere;
}

.certimm-selecteur-cabinet-responsable {
    font-size: 12px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.75);
}

/* Choix du cabinet (dialogue) */
.certimm-choix-cabinet-dialog {
    max-width: calc(100vw - 20px);
}

.certimm-choix-cabinet-liste {
    max-height: calc(100dvh - 260px);
    overflow-y: auto;
}

.certimm-choix-cabinet-groupe {
    margin: 8px 10px 2px 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c636a;
}

.certimm-choix-cabinet-ligne {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-align: left;
    color: #212529;
    background-color: transparent;
    border: 0;
    border-radius: 6px;
}

    .certimm-choix-cabinet-ligne:hover, .certimm-choix-cabinet-ligne:focus-visible {
        background-color: #f3f4f6;
    }

    .certimm-choix-cabinet-ligne.courant {
        background-color: #e5e7eb;
    }

    .certimm-choix-cabinet-ligne.inactif {
        padding-left: 36px;
        color: #495057;
    }

.certimm-choix-cabinet-nom {
    font-size: 14px;
    line-height: 20px;
}

.certimm-choix-cabinet-ligne.courant .certimm-choix-cabinet-nom {
    font-weight: 600;
}

.certimm-choix-cabinet-responsable {
    font-size: 12.5px;
    line-height: 17px;
    color: #495057;
}

/* Conditions Générales de Vente */
.conteneur-cgv {
    zoom: 1.3;
}

    .conteneur-cgv p, .conteneur-cgv ul {
        margin-bottom: 5px;
    }

/* Suivi des évolutions */
@media (max-width: 768px) {
    .conteneur-suivi-evolutions table,
    .conteneur-suivi-evolutions tbody,
    .conteneur-suivi-evolutions tr,
    .conteneur-suivi-evolutions td {
        display: block;
        width: 100%;
    }

    .conteneur-suivi-evolutions thead {
        display: none;
    }

    .conteneur-suivi-evolutions table {
        border: 0;
    }

    .conteneur-suivi-evolutions tr {
        margin-bottom: 12px;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background: #fff;
    }

    .conteneur-suivi-evolutions td {
        border: 0;
        padding: 4px 0;
    }

        .conteneur-suivi-evolutions td + td {
            margin-top: 4px;
        }

        .conteneur-suivi-evolutions td pre {
            margin: 0;
            white-space: pre-wrap;
        }
}

@media (min-width: 769px) {
    .conteneur-suivi-evolutions table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 10px; /* espace vertical entre les lignes */
    }

    .conteneur-suivi-evolutions thead th {
        border: 0;
        padding: 0 8px 6px;
        font-size: 12.5px;
        text-align: left;
        color: #666;
    }

    .conteneur-suivi-evolutions tbody tr {
        background: #fff;
    }

    .conteneur-suivi-evolutions tbody td {
        padding: 10px 12px;
        background: #fff;
        border-top: 1px solid #ddd;
        border-bottom: 1px solid #ddd;
    }

        .conteneur-suivi-evolutions tbody td:first-child {
            border-left: 1px solid #ddd;
            border-top-left-radius: 8px;
            border-bottom-left-radius: 8px;
        }

        .conteneur-suivi-evolutions tbody td:last-child {
            border-right: 1px solid #ddd;
            border-top-right-radius: 8px;
            border-bottom-right-radius: 8px;
        }

    .conteneur-suivi-evolutions tbody tr:hover td {
        background: #fafafa;
    }

    .conteneur-suivi-evolutions td pre {
        margin: 0;
        white-space: pre-wrap;
    }
}

/* RTE */
.e-richtexteditor.border-0 > .e-rte-container {
    border: none;
}

/* Bouton de réinitialisation des filtres : plus visible que les outils permanents de la barre.
   Couleurs reprises de la classe e-info du thème, que la barre d'outils n'applique pas à ses
   propres boutons : elle impose son fond gris à tout .e-tbar-btn. */
.e-toolbar .e-toolbar-item.certimm-raz-filtres .e-tbar-btn,
.e-toolbar .e-toolbar-item.certimm-raz-filtres .e-tbar-btn:focus {
    background: #0e7490;
    border-color: #0e7490;
}

.e-toolbar .e-toolbar-item.certimm-raz-filtres .e-tbar-btn:hover {
    background: #155e75;
    border-color: #155e75;
}

.e-toolbar .e-toolbar-item.certimm-raz-filtres .e-tbar-btn,
.e-toolbar .e-toolbar-item.certimm-raz-filtres .e-tbar-btn .e-icons,
.e-toolbar .e-toolbar-item.certimm-raz-filtres .e-tbar-btn .e-tbar-btn-text {
    color: #fff;
}

/* Éditeur de message joint : la zone de saisie grandit avec le texte, entre deux bornes */
.certimm-editeur-message-joint .e-richtexteditor .e-rte-content .e-content {
    min-height: var(--certimm-editeur-hauteur-min, 180px);
    max-height: var(--certimm-editeur-hauteur-max, 400px);
    overflow-y: auto;
}

/* Connection Error */
#components-reconnect-modal > div {
    font-family: "Inter";
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: white;
    font-size: 22px;
    padding: 1rem;
    text-align: center;
    z-index: 10000;
}

    #components-reconnect-modal > div a {
        background-color: var(--bs-info);
        color: var(--bs-text);
        padding: 8px 16px;
        border-radius: 5px;
        text-decoration: none;
        font-size: 18px;
    }

#components-reconnect-modal.components-reconnect-show .components-reconnect-show {
    display: flex;
}

#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed {
    display: flex;
}

#components-reconnect-modal.components-reconnect-rejected .components-reconnect-rejected {
    display: flex;
}

/* Carte */
.certimm-map {
    width: 100%;
    height: 100%;
    min-height: 120px;
}

.certimm-map-labels-layer {
    filter: invert(1) grayscale(1) contrast(1.9) brightness(1.45) drop-shadow(0 0 1px rgba(0, 0, 0, 1)) drop-shadow(0 0 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.9));
}

/* Mode cadastre : fond IGN Plan atténué pour faire ressortir les parcelles */
.certimm-map-fond-cadastre .certimm-map-base-layer {
    filter: grayscale(1) brightness(1.08) contrast(0.88);
}

.certimm-map-tooltip {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 58, 96, 0.16);
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
    color: #111827;
    font-size: 12px;
    line-height: 1.25;
    max-width: 170px;
    padding: 6px 8px;
    pointer-events: none;
    text-align: center;
    white-space: normal;
    word-break: break-word;
}

.certimm-map-container {
    position: relative;
}

.certimm-map-fullscreen-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1000;
    background-color: #ffffff !important;
    border: 1px solid var(--bs-gray-300) !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12) !important;
    opacity: 1;
}

.certimm-map-gmaps-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #ffffff;
    border: 1px solid var(--bs-gray-300);
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    color: var(--bs-body-color);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.15s;
}

.certimm-map-gmaps-btn:hover {
    background-color: var(--bs-gray-100);
    color: var(--bs-body-color);
}

.certimm-map-basemap-toggle {
    position: absolute;
    top: 8px;
    right: 48px;
    left: unset;
    z-index: 1000;
    display: flex;
    background-color: #ffffff;
    border: 1px solid var(--bs-gray-300);
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    overflow: visible;
}

.certimm-map-satellite-wrapper {
    position: relative;
}

/* Pont invisible pour éviter de perdre le hover entre le bouton et le sous-menu */
.certimm-map-satellite-wrapper::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
}

.certimm-map-subtoggle {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 1001;
    display: none;
    background-color: #ffffff;
    border: 1px solid var(--bs-gray-300);
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    padding: 4px 8px;
    white-space: nowrap;
}

.certimm-map-satellite-wrapper:hover:has(> button.active) .certimm-map-subtoggle {
    display: block;
}

.certimm-map-subtoggle-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-family: inherit;
    color: var(--bs-body-color);
    cursor: pointer;
    margin: 0;
    padding: 2px 0;
    user-select: none;
}

.certimm-map-subtoggle-item input[type="checkbox"] {
    cursor: pointer;
    accent-color: var(--bs-primary);
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.certimm-map-basemap-toggle button {
    flex: 1;
    padding: 3px 10px;
    font-size: 12px;
    font-family: inherit;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--bs-body-color);
    transition: background-color 0.15s;
    white-space: nowrap;
}

.certimm-map-basemap-toggle > button:first-child {
    border-right: 1px solid var(--bs-gray-300);
}

.certimm-map-basemap-toggle button.active {
    background-color: var(--bs-primary);
    color: #ffffff;
    font-weight: 500;
}

.certimm-map-basemap-toggle button:not(.active):hover {
    background-color: var(--bs-gray-100);
}

.certimm-map-fullscreen-btn:hover {
    opacity: 1;
}

.certimm-map-container:fullscreen {
    background: #000;
}

.certimm-map-container:fullscreen .certimm-map {
    height: 100%;
}

/* En plein écran, transformer le bouton plein écran en bouton de fermeture (croix) */
.certimm-map-container:fullscreen .certimm-map-fullscreen-btn .e-icons.e-full-screen {
    font-family: inherit !important;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
}

.certimm-map-container:fullscreen .certimm-map-fullscreen-btn .e-icons.e-full-screen::before {
    content: '\00d7'; /* signe multiplication = croix */
}

/* Sommaire latéral (paramètres) */
.certimm-sommaire {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 12px;
    border-left: 1px solid var(--bs-gray-300);
    z-index: inherit;
}

.certimm-sommaire-titre {
    color: var(--bs-gray-600);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin: 0 0 6px 10px;
}

.certimm-sommaire-lien {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: 6px;
    color: #374151;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.certimm-sommaire-lien .e-icons,
.certimm-sommaire-lien svg {
    flex-shrink: 0;
    font-size: 14px;
    color: var(--bs-gray-500);
    transition: color .15s ease;
}

.certimm-sommaire-lien:hover {
    background-color: color-mix(in srgb, var(--bs-primary) 6%, transparent);
    color: var(--bs-primary);
}

.certimm-sommaire-lien:hover .e-icons,
.certimm-sommaire-lien:hover svg,
.certimm-sommaire-lien.active .e-icons,
.certimm-sommaire-lien.active svg {
    color: var(--bs-primary);
}

.certimm-sommaire-lien.active {
    background-color: color-mix(in srgb, var(--bs-primary) 10%, transparent);
    color: var(--bs-primary);
    font-weight: 500;
}

/* Repère de la section active, posé sur la bordure du sommaire */
.certimm-sommaire-lien.active::before {
    content: '';
    position: absolute;
    left: -13px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 3px;
    background-color: var(--bs-primary);
}

/* Compte et packs SMS (paramètres) */
.certimm-sms-compte {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 32px;
}

.certimm-sms-icone {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background-color: color-mix(in srgb, var(--bs-primary) 12%, transparent);
    color: var(--bs-primary);
    font-size: 24px;
}

.certimm-sms-solde {
    color: var(--bs-primary);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
}

.certimm-sms-solde-libelle {
    color: var(--bs-gray-600);
    font-size: 13px;
}

/* Solde affiché dans l'en-tête de la page Emails & SMS */
.certimm-sms-solde-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border: 1px solid color-mix(in srgb, var(--bs-primary) 25%, transparent);
    border-radius: 999px;
    background-color: color-mix(in srgb, var(--bs-primary) 8%, transparent);
    color: var(--bs-gray-700);
    font-size: 13px;
    line-height: 1.2;
}

    .certimm-sms-solde-badge > .e-icons {
        color: var(--bs-primary);
        font-size: 14px;
    }

    .certimm-sms-solde-badge b {
        color: var(--bs-primary);
        font-weight: 700;
    }

    .certimm-sms-solde-badge.epuise {
        border-color: color-mix(in srgb, var(--bs-warning) 40%, transparent);
        background-color: color-mix(in srgb, var(--bs-warning) 12%, transparent);
    }

        .certimm-sms-solde-badge.epuise > .e-icons,
        .certimm-sms-solde-badge.epuise b {
            color: var(--bs-warning-text-emphasis);
        }

.certimm-sms-statut {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

    .certimm-sms-statut::before {
        content: '';
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background-color: currentColor;
    }

    .certimm-sms-statut.actif {
        background-color: color-mix(in srgb, var(--bs-success) 14%, transparent);
        color: var(--bs-success);
    }

    .certimm-sms-statut.inactif {
        background-color: var(--bs-gray-200);
        color: var(--bs-gray-600);
    }

/* Jauge du solde par rapport au pack, avec le repère du seuil de recharge */
.certimm-sms-jauge {
    position: relative;
    height: 8px;
    border-radius: 999px;
    background-color: var(--bs-gray-200);
}

.certimm-sms-jauge-remplissage {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--bs-primary) 55%, #fff) 0%, var(--bs-primary) 100%);
    transition: width .4s ease;
}

    .certimm-sms-jauge-remplissage.bas {
        background: var(--bs-warning);
    }

.certimm-sms-jauge-seuil {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 2px;
    border-radius: 2px;
    background-color: var(--bs-danger);
}

.certimm-sms-pack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    padding: 18px 16px 16px;
    border: 1px solid var(--bs-gray-300);
    border-radius: 12px;
    background-color: #fff;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .certimm-sms-pack:hover {
        transform: translateY(-2px);
        border-color: color-mix(in srgb, var(--bs-primary) 45%, transparent);
        box-shadow: 0 8px 20px rgba(17, 24, 39, .08);
    }

    .certimm-sms-pack.actuel {
        border: 2px solid var(--bs-primary);
        background-color: color-mix(in srgb, var(--bs-primary) 4%, #fff);
        box-shadow: 0 8px 20px color-mix(in srgb, var(--bs-primary) 18%, transparent);
    }

.certimm-sms-pack-ruban {
    position: absolute;
    top: -10px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    background-color: var(--bs-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

    .certimm-sms-pack-ruban.economie {
        background-color: var(--bs-success);
    }

    .certimm-sms-pack-ruban .e-icons {
        font-size: 10px;
    }

.certimm-sms-pack-nom {
    color: var(--bs-gray-600);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.certimm-sms-pack-prix {
    color: var(--bs-primary);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
}

    .certimm-sms-pack-prix small {
        color: var(--bs-gray-600);
        font-size: 13px;
        font-weight: 500;
    }

.certimm-sms-pack-quantite {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: #374151;
    font-size: 13.5px;
    font-weight: 600;
}

    .certimm-sms-pack-quantite .e-icons {
        color: var(--bs-primary);
    }

.certimm-sms-pack-unitaire {
    color: var(--bs-gray-600);
    font-size: 12px;
}

.certimm-sms-pack-offert {
    display: flex;
    align-items: center;
    /* Les enfants directs d'un SfCard sont centrés par Syncfusion */
    justify-content: flex-start;
    gap: 6px;
    margin-top: 6px;
    color: var(--bs-success);
    font-size: 12.5px;
    font-weight: 600;
}

    .certimm-sms-pack-offert .e-icons {
        font-size: 11px;
    }

.certimm-sms-avantages {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 12px 14px;
    border-radius: 10px;
    background-color: color-mix(in srgb, var(--bs-primary) 5%, transparent);
    color: #374151;
    font-size: 12.5px;
}

    .certimm-sms-avantages > span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .certimm-sms-avantages .e-icons {
        color: var(--bs-primary);
        font-size: 14px;
    }

/* Message groupé (dossier) */
.certimm-mg-titre {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.certimm-mg-titre-icone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background-color: color-mix(in srgb, var(--bs-primary) 12%, transparent);
    color: var(--bs-primary);
    font-size: 12px;
}

.certimm-mg-titre-detail {
    color: var(--bs-gray-600);
    font-size: 12px;
    font-weight: 400;
}

/* Destinataires sélectionnables */
.certimm-mg-destinataire {
    position: relative;
    height: 100%;
    padding: 12px 14px;
    border: 1px solid var(--bs-gray-300);
    border-radius: 12px;
    background-color: #fff;
    cursor: pointer;
    user-select: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

    .certimm-mg-destinataire:hover {
        border-color: color-mix(in srgb, var(--bs-primary) 45%, transparent);
        box-shadow: 0 6px 16px rgba(17, 24, 39, .07);
    }

    .certimm-mg-destinataire.selectionne {
        border: 1px solid var(--bs-primary);
        background-color: color-mix(in srgb, var(--bs-primary) 6%, #fff);
        box-shadow: 0 0 0 1px var(--bs-primary);
    }

.certimm-mg-coche {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--bs-gray-400);
    border-radius: 50%;
    background-color: #fff;
    color: transparent;
    font-size: 10px;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.certimm-mg-destinataire.selectionne .certimm-mg-coche {
    border-color: var(--bs-primary);
    background-color: var(--bs-primary);
    color: #fff;
}

.certimm-mg-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--bs-primary) 12%, transparent);
    color: var(--bs-primary);
    font-size: 13px;
    font-weight: 700;
}

.certimm-mg-destinataire.selectionne .certimm-mg-avatar {
    background-color: var(--bs-primary);
    color: #fff;
}

.certimm-mg-destinataire-nom {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.certimm-mg-pastille {
    align-self: flex-start;
    padding: 1px 8px;
    border-radius: 999px;
    background-color: var(--bs-gray-200);
    color: var(--bs-gray-700);
    font-size: 11px;
    font-weight: 500;
}

.certimm-mg-canal {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #374151;
    font-size: 12px;
}

    .certimm-mg-canal .e-icons {
        flex-shrink: 0;
        color: var(--bs-primary);
        font-size: 12px;
    }

    .certimm-mg-canal.indisponible {
        color: var(--bs-gray-500);
        font-style: italic;
    }

        .certimm-mg-canal.indisponible .e-icons {
            color: var(--bs-gray-400);
        }

/* Choix des canaux de notification */
.certimm-mg-choix-canal {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 150px;
    padding: 10px 34px 10px 12px;
    border: 1px solid var(--bs-gray-300);
    border-radius: 10px;
    background-color: #fff;
    cursor: pointer;
    user-select: none;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

    .certimm-mg-choix-canal:hover {
        border-color: color-mix(in srgb, var(--bs-primary) 45%, transparent);
    }

    .certimm-mg-choix-canal.actif {
        border-color: var(--bs-primary);
        background-color: color-mix(in srgb, var(--bs-primary) 6%, #fff);
        box-shadow: 0 0 0 1px var(--bs-primary);
    }

    .certimm-mg-choix-canal.desactive {
        cursor: not-allowed;
        opacity: .55;
    }

    .certimm-mg-choix-canal > .e-icons {
        color: var(--bs-primary);
        font-size: 18px;
    }

    .certimm-mg-choix-canal .certimm-mg-coche {
        top: 50%;
        transform: translateY(-50%);
    }

    .certimm-mg-choix-canal.actif .certimm-mg-coche {
        border-color: var(--bs-primary);
        background-color: var(--bs-primary);
        color: #fff;
    }

.certimm-mg-choix-canal-libelle {
    color: #111827;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.2;
}

.certimm-mg-choix-canal-detail {
    color: var(--bs-gray-600);
    font-size: 11.5px;
}

/* Panneau encadré des sections message et SMS */
.certimm-mg-panneau {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 12px;
    border: 1px solid color-mix(in srgb, var(--bs-primary) 25%, transparent);
    border-radius: 12px;
    background-color: color-mix(in srgb, var(--bs-primary) 4%, #fff);
}

    .certimm-mg-panneau .certimm-mg-titre {
        margin-bottom: 0;
    }

.certimm-mg-sms-jauge {
    height: 6px;
    border-radius: 999px;
    background-color: var(--bs-gray-200);
    overflow: hidden;
}

.certimm-mg-sms-jauge-remplissage {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, color-mix(in srgb, var(--bs-primary) 55%, #fff) 0%, var(--bs-primary) 100%);
    transition: width .2s ease;
}

    .certimm-mg-sms-jauge-remplissage.insuffisant {
        background: var(--bs-danger);
    }

.certimm-mg-sms-decompte {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: var(--bs-gray-600);
    font-size: 12px;
}

.certimm-mg-sms-total {
    padding: 2px 10px;
    border-radius: 999px;
    background-color: var(--bs-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

    .certimm-mg-sms-total.insuffisant {
        background-color: var(--bs-danger);
    }

/* Aperçu des SMS (téléphone) */
.certimm-mg-telephone {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-height: 70vh;
    padding: 16px;
    overflow-y: auto;
    border: 1px solid var(--bs-gray-300);
    border-radius: 24px;
    background-color: #f9fafb;
}

.certimm-mg-telephone-entete {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--bs-gray-200);
}

.certimm-mg-bulle-sms {
    align-self: flex-start;
    max-width: 92%;
    padding: 10px 14px;
    border-radius: 18px 18px 18px 4px;
    background-color: #e5e7eb;
    color: #111827;
    font-size: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.certimm-mg-bulle-sms-info {
    color: var(--bs-gray-600);
    font-size: 11.5px;
}

/* Envoi programmé : heures de nuit (20h - 8h) en rouge, dans le champ et dans la liste des heures
   (créneaux repérés par leur libellé HH:mm, SfDateTimePicker n'exposant pas OnItemRender) */
.e-input-group.certimm-envoi-hors-plage input.e-input,
.certimm-envoi-programme.e-popup .e-list-parent.e-ul li.e-list-item:is([data-value^="20:"], [data-value^="21:"], [data-value^="22:"], [data-value^="23:"],
    [data-value^="00:"], [data-value^="01:"], [data-value^="02:"], [data-value^="03:"],
    [data-value^="04:"], [data-value^="05:"], [data-value^="06:"], [data-value^="07:"]) {
    color: var(--bs-danger);
}

/* Destinataire unique, non sélectionnable */
.certimm-mg-destinataire.non-selectionnable {
    cursor: default;
}

    .certimm-mg-destinataire.non-selectionnable:hover {
        border-color: var(--bs-gray-300);
        box-shadow: none;
    }

/* Option à renseigner dans la liste des intervenants (ex. : demandeur manquant) */
.certimm-option-a-renseigner {
    border-radius: 6px;
    background-color: color-mix(in srgb, var(--bs-danger) 12%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--bs-danger) 12%, transparent);
}

/* Carte des brouillons de création de dossier */
.e-card.certimm-carte-brouillons {
    border: 1px solid color-mix(in srgb, var(--bs-primary) 35%, transparent);
    border-left: 5px solid var(--bs-primary);
    background-color: color-mix(in srgb, var(--bs-primary) 5%, #fff);
}

    .e-card.certimm-carte-brouillons .e-card-header {
        align-items: center;
        padding-top: 15px;
        padding-bottom: 15px;
        background-color: color-mix(in srgb, var(--bs-primary) 14%, #fff);
    }

        .e-card.certimm-carte-brouillons .e-card-header .e-card-header-caption .e-card-header-title {
            color: var(--bs-primary);
            font-weight: 600;
        }
