/* améliorations UI/UX gestion actu */
.gestion-actu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 8px;
    border-left: 4px solid var(--couleur_principale);
}

.gestion-actu-header h3 {
    margin: 0;
    color: #333;
    font-size: 16pt;
}
.badge-count {
    background: var(--couleur_principale);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}
.action-cell {
    display: flex;
    gap: 6px;
    align-items: center;
}
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 13px;
}
.action-btn.edit { background: #e3f2fd; color: #1976d2; }
.action-btn.edit:hover { background: #1976d2; color: white; }
.action-btn.delete { background: #ffebee; color: #d32f2f; }
.action-btn.delete:hover { background: #d32f2f; color: white; }
.action-btn.archive { background: #fff3e0; color: #f57c00; }
.action-btn.archive:hover { background: #f57c00; color: white; }
.action-btn.quick-edit { background: #e8f5e9; color: #388e3c; }
.action-btn.quick-edit:hover { background: #388e3c; color: white; }
.no-permissions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 12px;
    font-style: italic;
    padding: 5px 10px;
    background: #f5f5f5;
    border-radius: 4px;
}
.actu-row-main {
    background-color: #ffffff;
}
.actu-row-main:hover {
    background-color: #f0f7ff !important;
}
.tag-badge {
    display: inline-block;
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin: 2px;
}
.tag-badge.empty-tag {
    background: #f5f5f5;
    color: #999;
    font-style: italic;
}
/* Titre + Tags dans la même cellule en 2 sections */
.title-tags-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.title-section {
    font-size: 13px;
    line-height: 1.3;
}
.tags-section {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.title-tags-cell {
    min-width: 250px;
    max-width: 400px;
}
.diffusion-cell {
    min-width: 120px;
    max-width: 200px;
}
.diffusion-line {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
    font-size: 12px;
}
.diffusion-line:last-child {
    margin-bottom: 0;
}
.diffusion-icon {
    display: inline-block;
    margin-right: 3px;
    color: #777;
    font-size: 14px;
}
.date-cell {
    white-space: normal;
    min-width: 150px;
    max-width: 220px;
    line-height: 1.4;
}
.id-cell {
    white-space: nowrap;
    width: 50px;
}
.actions-cell {
    white-space: nowrap;
    width: 140px;
}
.author-cell {
    white-space: nowrap;
    max-width: 120px;
}
.moderation-cell {
    white-space: nowrap;
    width: 100px;
}
#tableau_wrapper {
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* DataTables native processing overlay */
.dataTables_processing {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    padding: 15px 25px !important;
    font-size: 14px !important;
    color: #666 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}
.dataTables_filter input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 12px;
}
.bouton-export {
    display: inline-block;
    padding: 10px 20px;
    background: var(--couleur_principale);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 15px;
    transition: background 0.2s;
}
.bouton-export:hover {
    background: #e64a10;
    color: white;
}

/* Arbre de tags dans le modal quick-edit */
#swal-tree-container ul {
    list-style: none;
    padding-left: 20px;
    margin: 0;
}
#swal-tree-container > ul,
#swal-tree-container > div > ul {
    padding-left: 0;
}
#swal-tree-container li {
    padding: 3px 0;
    position: relative;
}
#swal-tree-container li > input[type="checkbox"] {
    margin-right: 5px;
    vertical-align: middle;
}
#swal-tree-container li > ul {
    display: none;
}
#swal-tree-container li.expand > ul {
    display: block;
}
#swal-tree-container li.collapsed > ul {
    display: none;
}
/* Flèche expand/collapsed */
#swal-tree-container li.expand::before,
#swal-tree-container li.collapsed::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-right: 4px;
    vertical-align: middle;
    cursor: pointer;
}
#swal-tree-container li.expand::before {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #888;
}
#swal-tree-container li.collapsed::before {
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid #888;
}
/* Click zone pour expand/collapse sur le texte du li */
#swal-tree-container li.expand,
#swal-tree-container li.collapsed {
    cursor: pointer;
}
#swal-tree-container li.expand b,
#swal-tree-container li.collapsed b {
    cursor: pointer;
}
