
/* ---------------------------------------------------------------------------- MESSAGES ---------------------------------------------------------------------------- */
span#nb_not_read_notifications {
    font-size: 0.5rem;
    vertical-align: top;
    background-color: black;
    padding: 1%;
    border-radius: 34%;
    color: white;
    margin: unset;
    display: inline-block;
    width: 2em;
    height: 2em;
    padding: unset;
    text-align: center;
    font-size: 10px;
    border-radius: 100%;
    margin-left: 1%;
}

tr.tr-line-thread.not_read {
    font-weight: 800;
}

#module-mnailsnotifications-notifications p.last_msg_thread {
    width: 60%;
}

#module-mnailsnotifications-notifications #chat-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    max-height: 60vh;
    overflow-y: scroll;
}

#module-mnailsnotifications-notifications #messages-chat-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 600px; 
    background-color: #f1f1f1;
    border-radius: 8px;
}


#module-mnailsnotifications-notifications .chat-message {
    display: flex;
    flex-direction: column;
    max-width: 50%;
    padding: 10px;
    border-radius: 15px;
    font-size: 0.9em;
    position: relative;
}

#module-mnailsnotifications-notifications .customer-message {
    align-self: flex-end;
    text-align: right;
    border-top-right-radius: 0;
    border: 1px solid;
    min-width: 50%;
}

#module-mnailsnotifications-notifications .service-message {
    align-self: flex-start;
    background-color: #e5e5ea;
    text-align: left;
    border-top-left-radius: 0;
    min-width: 50%;
}

#module-mnailsnotifications-notifications .message-content {
    margin-bottom: 5px;
    color: #000;
}

#module-mnailsnotifications-notifications .message-time {
    font-size: 0.75em;
    color: #888;
}


#module-mnailsnotifications-notifications .response-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #daf8cb;
    padding: 10px;
    border-radius: 15px;
    border-top-right-radius: 0;
}

#module-mnailsnotifications-notifications .response-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    font-size: 0.9em;
    resize: none;
}

#module-mnailsnotifications-notifications .response-form .file-label {
    font-size: 0.8em;
    color: #555;
}

#module-mnailsnotifications-notifications .response-form input[type="file"] {
    font-size: 0.9em;
    color: #555;
}

#module-mnailsnotifications-notifications .response-form .submit-button {
    align-self: flex-end;
    background-color: #4CAF50;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#module-mnailsnotifications-notifications .response-form .submit-button:hover {
    background-color: #45a049;
}

#module-mnailsnotifications-notifications .chat-message.customer-message.form-response {
    max-width: unset; 
    background-color: #f1f1f1;
}
#module-mnailsnotifications-notifications textarea#message {
    width: 100%;
    border: unset;
    height: 10vh;
}
#module-mnailsnotifications-notifications img.message-image {
    width: 100%;
    margin-bottom: 5%;
}
#module-mnailsnotifications-notifications p.author-message {
    font-weight: bold;
} 

#module-mnailsnotifications-notifications button.send_message {
    background-color: black;
    color: white;
    font-weight: bold;
    border: unset;
    height: fit-content;
    padding: 2%; 
}
#module-mnailsnotifications-notifications .g-recaptcha>div {
    display: block;
    margin-left: auto;
}
#module-mnailsnotifications-notifications .g-recaptcha { 
    margin-bottom: 1%;
}
#module-mnailsnotifications-notifications .action_msg_two_colonne {
    display: grid;
    grid-template-columns: 50% 50%;
}

#module-mnailsnotifications-notifications .input-error {
    background-color: #f8d7da; /* Rouge clair */
    border: 2px solid #f5c2c7;
    color: #721c24;
} 
#module-mnailsnotifications-notifications .input-valid {
    background-color: #d4edda; /* Vert clair */
    border: 2px solid #c3e6cb;
    color: #155724;
} 
#module-mnailsnotifications-notifications .input-error::after {
    content: '✖';  /* Symbole de croix rouge */
    color: #721c24;
    position: absolute;
    right: 10px;
    top: 10px;
} 
#module-mnailsnotifications-notifications .input-valid::after {
    content: '✔';  /* Symbole de coche verte */
    color: #155724;
    position: absolute;
    right: 10px;
    top: 10px;
} 
#module-mnailsnotifications-notifications .customer-messages-list li.thread-item { 
    margin-bottom: 1%;
    color: black;
    padding: 1%;
    position: relative;
    min-height: 10vh;
    background: white;
    box-shadow: 5px 5px 20px 0px #00000073;
}
 
#module-mnailsnotifications-notifications p.status_thread {
    bottom: 2%;
    right: 1%;
    position: absolute;
    color: #000; 
    font-size: 0.8rem;
}
#module-mnailsnotifications-notifications p.date_thread {
    position: absolute;
    right: 1%;
    top: 2%;
    color: #000; 
    font-size: 0.8rem; 
}
#module-mnailsnotifications-notifications .customer-messages-list li.thread-item { 
    margin-bottom: 1%;
    color: black;
    padding: 1%;
    position: relative;
    min-height: 10vh;
    background: white;
    box-shadow: 5px 5px 20px 0px #00000073;
}
#module-mnailsnotifications-notifications p.btn_open_thread {
    text-align: center; 
    font-weight: bold;
} 
#module-mnailsnotifications-notifications .thread-item p {
    color: black;
}

#module-mnailsnotifications-notifications .thread-close p.order_thread, #module-mnailsnotifications-notifications .thread-close p.product_thread {
    display: none;
}

/*TABLE DES MESSAGES*/
.customer-messages-table, .orders-messages-table {
    width: 100%;
    border-collapse: collapse; /* Supprime les doublons de bordure */
}

.customer-messages-table th,
.customer-messages-table td,
.orders-messages-table th,
.orders-messages-table td {
    padding: 10px;
    text-align: left;
}

.customer-messages-table tbody tr, .orders-messages-table tbody tr {
    border-bottom: 1px solid #ddd; /* Bordure sous chaque ligne */
}

.customer-messages-table tbody tr:last-child,
.orders-messages-table tbody tr:last-child  {
    border-bottom: none; /* Supprime la bordure pour la dernière ligne */
}

.customer-messages-table thead tr,
.orders-messages-table thead tr {
    border-bottom: 2px solid #000; /* Bordure plus épaisse pour l'en-tête */
}

tr.tr-line-thread:hover,
tr.tr-line-order:hover {
    box-shadow: #00000099 1px 1px 5px 4px;
}


/* ---------------------------------------------------------------------------- NAVBAR ---------------------------------------------------------------------------- */
#module-mnailsnotifications-notifications .custom-navbar-mnails-notifications {
    background-color: #000;
    padding: 10px 0;
    text-align: center;
}

#module-mnailsnotifications-notifications .custom-navbar-mnails-notifications .navbar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

#module-mnailsnotifications-notifications .custom-navbar-mnails-notifications .navbar-item {
    margin: 0 15px;
}

#module-mnailsnotifications-notifications .custom-navbar-mnails-notifications .navbar-item a {
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    padding: 10px 20px;
    
}

.custom-navbar-mnails-notifications .navbar-item a:hover {
    background-color: #444;
    color: #eee;
    border-radius: 4px;
}

#module-mnailsnotifications-notifications .custom-navbar-mnails-notifications .active a {
    background-color: #555;
    color: #fff;
    font-weight: bold;
    border-radius: 4px;
}

#module-mnailsnotifications-notifications .text-center-mnails-notifications{
    text-align: center;
}


#module-mnailsnotifications-notifications a.btn_see_all {
    display: block;
    margin: auto;
    text-align: center;
    padding: 2%;
    background-color: black;
    color: white;
}
#module-mnailsnotifications-notifications a.btn_see_all:hover {
    font-weight: bold;
}

#module-mnailsnotifications-notifications .custom-page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#module-mnailsnotifications-notifications .content-block {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#module-mnailsnotifications-notifications .content-block h2 {
    color: #000;
    margin-bottom: 10px;
}

#module-mnailsnotifications-notifications .content-block p {
    font-size: 1em;
    color: #666;
}

#module-mnailsnotifications-notifications .content-block ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

#module-mnailsnotifications-notifications .content-block ul li {
    padding: 5px 0;
    font-size: 0.95em;
    color: #555;
}



/* ---------------------------------------------------------------------------- SETTINGS ---------------------------------------------------------------------------- */
#module-mnailsnotifications-notifications .group-notif-settings {
    display: grid;
    grid-template-columns: 30% 30% 30%;
    gap: 5%;
} 

/* Style de base pour le switch */
#module-mnailsnotifications-notifications .switch {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 20px;
}

#module-mnailsnotifications-notifications .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#module-mnailsnotifications-notifications .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

#module-mnailsnotifications-notifications .slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
 
#module-mnailsnotifications-notifications input:checked + .slider {
  background-color: #4CAF50; /* Vert */
}

#module-mnailsnotifications-notifications input:checked + .slider:before {
  transform: translateX(14px);
} 

#module-mnailsnotifications-notifications h3.subtitle_settings_notifications {
    margin-top: 3%;
}




/* ---------------------------------------------------------------------------- MOBILE ---------------------------------------------------------------------------- */ 
@media (max-width:1075px) {  
    #module-mnailsnotifications-notifications p.date_thread {
        position: relative;
        color: #000;
        font-size: 0.8rem;
    }
    #module-mnailsnotifications-notifications .customer-messages-list li.thread-item {  
        min-height: 15vh; 
        margin-bottom: 5%;
    }
}

/* ---------------------------------------------------------------------------- COMMANDES ---------------------------------------------------------------------------- */
span.color_state {
    padding: 1%;
}

.message.row.employee {
    background-color: red;
    margin-left: unset;
}
.message.row {
     padding: 2%;
     width: 70%;
     margin-left: 30%;
 }

/* ---------------------------------------------------------------------------- RETOURS PRODUITS ---------------------------------------------------------------------------- */
#list_return thead th {
    background-color: black;
    color: white;
}
hr.separator_return {
    width: 30%;
    border-color: black;
}

@media screen and (max-width: 1300px) {
    #return_order_details_table {
        border: 0;
    }

    #return_order_details_table thead {
        display: none;
    }

    #return_order_details_table tbody,
    #return_order_details_table tr,
    #return_order_details_table td {
        display: block;
        width: 100%;
    }

    #return_order_details_table tr {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 6px;
        padding: 1rem;
        background-color: #f8f9fa;
    }

    #return_order_details_table td {
        text-align: left;
        padding: 0.5rem 0;
        position: relative;
    }

    #return_order_details_table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        margin-bottom: 0.25rem;
        color: #333;
    }

    #return_order_details_table .form-check-inline {
        display: inline-block;
        margin-right: 1rem;
    }

    #module-mnailsnotifications-notifications .action_msg_two_colonne {
        display: block;
    }
    #module-mnailsnotifications-notifications .service-message {
        min-width: 90%;
    }
    #module-mnailsnotifications-notifications .customer-message {
        min-width: 90%;
    }


}

