/*
 * Tickets : statuts et etat de lecture, communs a l'admin et au portail client.
 * Rendu : nbz_ticket_status_badge() / nbz_ticket_subject_marker()
 * (application/helpers/my_functions_helper.php)
 */

.nbz-ticket-status {
    display: inline-block;
    padding: 1px 8px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.5;
    white-space: nowrap;
}

.nbz-ticket-status .fa {
    margin-right: 2px;
    font-size: 11px;
}

.nbz-ticket-status--closed {
    color: #1e8e4e;
    background: #e9f7ef;
    border-color: #b9e3c9;
}

/* Non lu : un point bleu devant le sujet, sans gras ni couleur sur la ligne */
.nbz-ticket-unread-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: #03a9f4;
    vertical-align: middle;
}

/* Cloture : coche verte devant le sujet */
.nbz-ticket-done {
    margin-right: 5px;
    color: #22a45d;
}

/* Resume par statut en onglets (admin/tickets/summary.php) */
.nbz-ticket-tabs > li > a {
    color: #555;
}

.nbz-ticket-tabs .badge {
    margin-left: 4px;
    background: #eef1f5;
    color: #555;
    font-weight: normal;
}

.nbz-ticket-tabs > li.active > a .badge {
    background: #03a9f4;
    color: #fff;
}

.nbz-ticket-tab-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-radius: 50%;
    vertical-align: middle;
}

/* Tache rattachee, sous le sujet du ticket */
.nbz-ticket-task {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: #777;
}

/* Fiche ticket (admin) : journal des consultations, colonne de droite */
.nbz-ticket-view {
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
}

.nbz-ticket-view:last-child {
    border-bottom: 0;
}

/* Fiche ticket (admin) : en-tete compact, titre et actions sur une ligne */
.nbz-ticket-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.nbz-ticket-head-title {
    margin: 4px 15px 4px 0;
    font-size: 18px;
}

.nbz-ticket-head-actions {
    display: flex;
    align-items: center;
}

.nbz-ticket-head-actions > .btn {
    margin-right: 6px;
}

.nbz-ticket-head-status {
    width: 180px;
}

.nbz-ticket-head-status .form-group {
    margin-bottom: 0;
}

/* Tags dans la ligne d'etiquettes */
.nbz-ticket-tags,
.nbz-ticket-tags .tags-labels {
    display: inline-block;
}

/* Chevron qui deplie / replie la zone de reponse */
.nbz-ticket-reply-toggle {
    padding: 4px 10px;
    border-radius: 3px;
    font-weight: 500;
    line-height: 22px;
}

.nbz-ticket-reply-toggle:hover,
.nbz-ticket-reply-toggle.active {
    background: #f0f4f8;
    text-decoration: none;
}

.nbz-ticket-reply-chevron {
    margin-left: 4px;
    font-size: 11px;
}

/* Portail client : onglets de statut et bouton d'ouverture sur une ligne */
.nbz-ticket-portal-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.nbz-ticket-portal-head .nbz-ticket-tabs {
    margin-bottom: -1px;
    border-bottom: 0;
}

.nbz-ticket-portal-head .btn {
    margin-bottom: 6px;
}
