/* OPS_conversation */
:root{
    --title-statut-color:#32a6cf;

    --stamp-bg-color:#00000006;
    --stamp-color:#a2abaf;

    --usager-bg-color:#eff2fb;
    --usager-color:#2a2a2a;
    
    --agent-bg-color:#32a6cf;
    --agent-color:#ffffff;

    --usager-notify-green-color:#41d314;
    --agent-notify-green-color:#5eff2c;
}

div.notify a {
    position: relative;
}

div.notify a:after {
    content: "";
    display: block;
    background-color: #3cc6a3;
    height: 10px;
    width: 10px;
    border-radius: 5px;
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(-0.66rem) translateY(0.25rem);
}
div.item_tab .onglet_span > .notify-icon{ display:none}
div.item_tab.notify .onglet_span > .notify-icon{ display:inline;}

#onglet_fil_conversationnel[role="onglet-formulaire"]{
    position: relative;
    min-height: 260px;
}


#onglet_fil_conversationnel[role="onglet-formulaire"].loading  [role="fa-loader"]{
    display: flex;
}

#onglet_fil_conversationnel[role="onglet-formulaire"] [role="fa-loader"]{
    display: none;
    color: var( --main_color_primary );
    padding: 0.25rem;
    border-radius: 2rem;
    line-height: 1;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1rem;
    height: 1rem;
    align-items: center;
    justify-content: center;
}


[role="conversation-statut"]{
    display: none;
    text-align: right;
    color: #32A6CF;
    font-size: 18px;
    margin: 0;
    margin-bottom: 36px;
    border-top: 1px solid #7e7e7e;
    padding-top: 15px;
}
[role="conversation-statut"] [role="statut"]{ font-weight: 700; text-transform: lowercase; }

[role="conversation-statut"] input[type=button],
[role="controls"] input[type=button] {
    margin: 0 0.5rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 1.5rem;
}

#onglet_fil_conversationnel [role="conversation-empty"]{
    text-align: center;
    font-size: 18px !important;
    font-weight: 700;
    color: #2A2A2A;
    text-transform: uppercase;
    margin: 1rem 0 !important;
}

[role="feed_messages"] {
    padding: 1rem;
    margin-bottom: 50px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
}
[role="feed_messages"] .message {
    background-color: #eff2fb; /* var */
    margin: 0 auto;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem 2rem;
    border-radius: 15px;
    display: flex;
    position: relative;
    flex-direction: column;
}

[role="message-content"]{ margin:0; }

/*
[role="feed_messages"] .message [role="message-statut"]::before{ content: "De"; margin-right: 0.25rem; }
/**/

[role="feed_messages"] .message [role="message-statut"]{
    display: flex;
    align-self: flex-end;
    font-size: 88%;
    margin: 0;
    margin-top: 5px;
    width: 100%;
    justify-content: center;
    font-style: italic;
}

[role="feed_messages"] .message[rel="usager"] [role="message-statut"]{ justify-content: flex-end; transform: translateX(1rem); }
[role="feed_messages"] .message[rel="agent"] [role="message-statut"]{ justify-content: flex-start; transform: translateX(-1rem);}

/*
[role="feed_messages"] .message [role="message-statut"][data-statut=""]::after{
    content: "…";
    margin: 0 0.5rem;
    opacity: 0.4;
}
[role="feed_messages"] .message [role="message-statut"][data-statut="nouveau"]::after{
    content: "✓";
    margin: 0 0.5rem;
}
[role="feed_messages"] .message [role="message-statut"][data-statut="lu"]::after{
    content: "✓✓";
    margin: 0 0.5rem;
    letter-spacing: -3px;
    color: #5eff2c;
}
[role="feed_messages"] .message[rel="agent"] [role="message-statut"][data-statut="lu"]::after{
    color: #41d314;
}
/**/


[role="feed_messages"] [rel="usager"] {
    border-bottom-right-radius: 0;
    color: white;
    background-color: #32A6CF; /* var */
    margin-right: 0;
    padding-right: 2rem;
}

[role="feed_messages"] [rel="agent"]{
    border-bottom-left-radius: 0;
    color: #2A2A2A;
    background-color: #eff2fb; /* var */
    margin-left: 0;
    padding-left: 2rem;
}
[role="feed_messages"] [rel="usager"]::after, 
[role="feed_messages"] [rel="agent"]::after {
    content: "";
    position: absolute;
    border-width: 4px 8px;
    border-bottom-color: transparent !important;
    bottom: 0;
    transform: translateY(99%);
    display: block;
    border-style: solid;
}

[role="feed_messages"] [rel="usager"]::after {
    border-color: #32A6CF; /* var */
    border-left-color: transparent;
    right: 0;
}
[role="feed_messages"] [rel="agent"]::after {
    border-color: #eff2fb; /* var */
    border-right-color: transparent;
    left: 0;
}


[role="feed_messages"] .stamp {
    display: flex;
}
[role="feed_messages"] .stamp span {
    background-color: #00000006;
    margin: 0 auto;
    border-radius: 10px;
    padding: 0 1rem;
    line-height: 20px;
    color: #a2abaf;
}




[role="writing-message"]{
    margin: 1rem 0 2rem 0;
    display: none;
}
textarea#text_message {
    width: 100%;
    display: flex;
    margin: 0;
    min-height: 10rem;
    padding: 2rem !important;
}

[role="controls"] {
    display: flex;
    visibility: hidden;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}
[role="controls"] [role="auto-close"] {
    display: flex;
/*  gap: 0.5rem; /**/
    align-items: center;
    justify-content: flex-start;
}

[role="controls"] [role="auto-close"] label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
    line-height: 28px;
    border-radius: calc( 28px / 2 );
    height: 28px;
    display: flex;
    position: relative;
    padding: 0 calc( 28px / 2 );

    /* Extra twm « Toggle-Switch & Pill-Label » */
    --mask: radial-gradient(14px at 0 50%,#0000 98%,#000) 0 0px;
    -webkit-mask: var(--mask);
    mask: var(--mask);
    border-top-left-radius: unset;
    border-bottom-left-radius: unset;
    padding-left: calc( 28px / 3 * 2 );
    margin-left: calc( -28px / 3 * 2 );
}

[role="controls"] [role="auto-close"] label:hover, 
[role="controls"] [role="auto-close"] label:focus {
    color: var(--title-statut-color);
    background-color: #E6E7EA;
    line-height: 28px;
    border-radius: calc( 28px / 2 );
    height: 28px;
    display: flex;
    position: relative;
    padding: 0 calc( 28px / 2 );

    /* Extra twm « Toggle-Switch & Pill-Label » */
    --mask: radial-gradient(14px at 0 50%,#0000 98%,#000) 0 0px;
    -webkit-mask: var(--mask);
    mask: var(--mask);
    border-top-left-radius: unset;
    border-bottom-left-radius: unset;
    padding-left: calc( 28px / 3 * 2 );
    margin-left: calc( -28px / 3 * 2 );
}