/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-04m5ctrd56] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-04m5ctrd56] {
    flex: 1;
    min-width: 0; /* Important pour que le text-truncate fonctionne dans les flex items */
}

.sidebar[b-04m5ctrd56] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-04m5ctrd56] {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    height: 3.5rem;
    /* Sticky top pour garder la barre visible lors du scroll */
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.top-row[b-04m5ctrd56]  a, .top-row[b-04m5ctrd56]  .btn-link {
    white-space: nowrap;
    margin-left: 1.5rem;
    text-decoration: none;
}

.top-row[b-04m5ctrd56]  a:hover, .top-row[b-04m5ctrd56]  .btn-link:hover {
    text-decoration: underline;
}

@media (max-width: 640.98px) {
    /* Sur mobile, on s'assure que le contenu ne passe pas sous le header */
    .content[b-04m5ctrd56] {
        padding-top: 1rem;
    }
    
    .top-row[b-04m5ctrd56] {
        /* Un peu plus petit sur mobile si besoin */
        padding-left: 1rem !important;
        padding-right: 0.5rem !important;
    }
}

@media (min-width: 641px) {
    .page[b-04m5ctrd56] {
        flex-direction: row;
    }

    .sidebar[b-04m5ctrd56] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row.auth[b-04m5ctrd56]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-04m5ctrd56], article[b-04m5ctrd56] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-04m5ctrd56] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-04m5ctrd56] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-czwaur0lta] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}
.navbar-toggler:focus[b-czwaur0lta] {
    outline: none;
}
.navbar-toggler:checked[b-czwaur0lta] {
    background-color: rgba(255, 255, 255, 0.5);
}
.top-row[b-czwaur0lta] {
    height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}
.navbar-brand[b-czwaur0lta] {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%; 
    display: block;
}
.bi[b-czwaur0lta] {
    display: inline-block;
    width: 1.5rem; /* Légèrement plus grand pour lisibilité */
    height: 1.5rem;
    margin-right: 0.75rem;
    
    /* --- CORRECTION POSITION --- */
    /* On retire position: relative et top: -1px qui décalaient l'icône */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0; /* Empêche l'icône de s'écraser */
    /* --------------------------- */
}
.bi-house-door-fill-nav-menu[b-czwaur0lta] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}
.bi-plus-square-fill-nav-menu[b-czwaur0lta] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}
.bi-list-nested-nav-menu[b-czwaur0lta] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}
.nav-item[b-czwaur0lta] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}
.nav-item:first-of-type[b-czwaur0lta] {
    padding-top: 1rem;
}
.nav-item:last-of-type[b-czwaur0lta] {
    padding-bottom: 1rem;
}
.nav-item[b-czwaur0lta]  .nav-link {
    color: #d7d7d7;
    background: none;
    border: none;
    border-radius: 4px;
    height: 3rem;
    
    /* --- CORRECTION FLEXBOX --- */
    display: flex;
    align-items: center; /* Centre verticalement parfaitement */
    line-height: normal; /* On retire la hauteur de ligne forcée */
    /* -------------------------- */
    
    width: 100%;
}
.nav-item[b-czwaur0lta]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}
.nav-item[b-czwaur0lta]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-czwaur0lta] {
    display: none;
}

.nav-scrollable:not(.collapse)[b-czwaur0lta] {
    display: block;
    background-color: #190649; 
    position: absolute;
    width: 100%;
    z-index: 1000;
    top: 3.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

@media (min-width: 641px) {
    .navbar-toggler[b-czwaur0lta] {
        display: none;
    }
   
    .nav-scrollable[b-czwaur0lta] {
        display: block !important; 
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
        position: static; 
        background-color: transparent;
        box-shadow: none;
    }

    .collapse[b-czwaur0lta] {
        display: block;
    }
}
/* /Components/Shared/ChatBox.razor.rz.scp.css */
.chat-wrapper[b-mjkftz61bt] {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
    max-height: 700px;
}

.chat-messages[b-mjkftz61bt] {
    flex: 1;
    overflow-y: auto;
    background-color: #e5ddd5; /* Couleur style WhatsApp */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%239C92AC' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    position: relative;
}

/* STICKY DATE HEADER */

/* NOUVEAU : Conteneur pour une journée de messages */
.date-group[b-mjkftz61bt] {
    position: relative;
    padding-bottom: 10px;
}

/* MODIFIÉ : L'entête colle au haut de SON groupe */
.date-sticky-header[b-mjkftz61bt] {
    position: sticky;
    top: 0;
    z-index: 5; /* Z-index bas pour ne pas passer au dessus du header principal */
    text-align: center;
    margin-bottom: 15px;
    padding-top: 10px;
    pointer-events: none;
}

.date-badge[b-mjkftz61bt] {
    background-color: rgba(225, 245, 254, 0.95);
    color: #455a64;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.05);
    display: inline-block;
    backdrop-filter: blur(2px);
}

.message-bubble[b-mjkftz61bt] {
    max-width: 80%;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    font-size: 0.95rem;
}

.message-mine[b-mjkftz61bt] {
    background-color: #d9fdd3; /* Vert WhatsApp */
    color: #111;
    border-top-right-radius: 0;
}

.message-other[b-mjkftz61bt] {
    background-color: white;
    color: #111;
    border-top-left-radius: 0;
}

.message-internal[b-mjkftz61bt] {
    background-color: #fff8c5; /* Jaune Post-it */
    border: 1px solid #e3dba3;
}

.message-meta[b-mjkftz61bt] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 2px;
    font-size: 0.7rem;
    color: rgba(0,0,0,0.45);
    line-height: 1;
}

/* Statut des messages */
.status-icon[b-mjkftz61bt] {
    margin-left: 4px;
    font-size: 0.9rem;
}
.status-read[b-mjkftz61bt] { color: #53bdeb; /* Bleu lu */ }
.status-sent[b-mjkftz61bt] { color: #8696a0; /* Gris envoyé */ }

.attachment-box[b-mjkftz61bt] {
    background-color: rgba(0,0,0,0.03);
    border-radius: 6px;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid rgba(0,0,0,0.05);
}

.typing-indicator[b-mjkftz61bt] {
    padding: 8px 16px;
    background: white;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@keyframes blink-b-mjkftz61bt {
    50% { opacity: 0.0; }
}
.typing-animate[b-mjkftz61bt] {
    animation: blink-b-mjkftz61bt 1s step-start 0s infinite;
}
/* /Components/Shared/Timeline.razor.rz.scp.css */
.timeline-container[b-drk7r7iz03] {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    height: 100%;
    max-height: 500px;
    overflow-y: auto;
}

.timeline[b-drk7r7iz03] {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid #e9ecef;
}

.timeline-item[b-drk7r7iz03] {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.timeline-item:last-child[b-drk7r7iz03] {
    margin-bottom: 0;
}

.timeline-marker[b-drk7r7iz03] {
    position: absolute;
    left: -2.1rem; /* Ajustement précis pour centrer sur la ligne */
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #e9ecef;
}

.timeline-content[b-drk7r7iz03] {
    background-color: #f8f9fa;
    border-radius: 6px;
    padding: 0.75rem;
    transition: background-color 0.2s;
}

.timeline-content:hover[b-drk7r7iz03] {
    background-color: #e9ecef;
}

.x-small[b-drk7r7iz03] {
    font-size: 0.7rem;
}
