/* Styles pour les tableaux de données de mutations */


/* Style par défaut */
.mutation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 14px;
		text-align: center;
}

.mutation-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid #ddd;
	text-align: center;
}

.mutation-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
	text-align: center;

}

.mutation-table tr:hover {
    background-color: rgba(0,0,0,0.05);
}

/* Style minimaliste */
.mutation-table-minimal {
    border: none;
}

.mutation-table-minimal th {
    background-color: transparent;
    border-bottom: 1px solid #999;
    color: #333;
}

.mutation-table-minimal td {
    border-bottom: 1px solid #eee;
}

/* Style rayé */
.mutation-table-striped tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Style avec bordures */
.mutation-table-bordered {
    border: 1px solid #ddd;
}

.mutation-table-bordered th,
.mutation-table-bordered td {
    border: 1px solid #ddd;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .mutation-table:not(.dataTable) {
        display: block;
        overflow-x: auto;
    }
    
    /* Pour les tables non-DataTables sur mobile */
    .mutation-table:not(.dataTable) thead,
    .mutation-table:not(.dataTable) tbody,
    .mutation-table:not(.dataTable) th,
    .mutation-table:not(.dataTable) td,
    .mutation-table:not(.dataTable) tr {
        display: block;
    }
    
    .mutation-table:not(.dataTable) thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .mutation-table:not(.dataTable) tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
    }
    
    .mutation-table:not(.dataTable) td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
        white-space: normal;
        text-align: center;
    }
    
    .mutation-table:not(.dataTable) td:before {
        position: absolute;
        top: 8px;
        left: 8px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: center;
        font-weight: bold;
    }
    
    .mutation-table:not(.dataTable) td:nth-of-type(1):before { content: "Département"; }
    .mutation-table:not(.dataTable) td:nth-of-type(2):before { content: "Code"; }
    .mutation-table:not(.dataTable) td:nth-of-type(3):before { content: "Entrées"; }
    .mutation-table:not(.dataTable) td:nth-of-type(4):before { content: "Sorties"; }
    .mutation-table:not(.dataTable) td:nth-of-type(5):before { content: "Candidats"; }
    .mutation-table:not(.dataTable) td:nth-of-type(6):before { content: "Barème minimal"; }
}

/* Messages et notifications */
.mutation-data-error {
    color: #d63638;
    padding: 10px;
    background-color: #ffebe8;
    border: 1px solid #d63638;
    border-radius: 3px;
    margin: 10px 0;
}

.mutation-data-updated {
    font-size: 0.8em;
    color: #666;
    margin-bottom: 10px;
    font-style: italic;
}

/* DataTables spécifique */
.mutation-table-dynamic_filter {
    margin-bottom: 15px;
}

.mutation-table-dynamic_length select {
    min-width: 60px;
}
