/* Styles élégants et professionnels pour les tables Orchid */

.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.table thead th {
    color: white !important;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    position: relative;
}

.table thead th:first-child {
    border-top-left-radius: 8px;
}

.table thead th:last-child {
    border-top-right-radius: 8px;
}

.table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.table tbody tr:hover {
    background-color: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.table tbody td {
    padding: 14px 12px;
    font-size: 14px;
    color: #374151;
    border: none;
    vertical-align: middle;
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/* Styles pour les badges et statuts dans les tables */
.table .badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
}

.table .badge-success {
    background-color: #10b981;
    color: white;
}

.table .badge-warning {
    background-color: #f59e0b;
    color: white;
}

.table .badge-danger {
    background-color: #ef4444;
    color: white;
}

.table .badge-info {
    background-color: #3b82f6;
    color: white;
}

.table .badge-primary {
    background-color: #667eea;
    color: white;
}

.table .badge-secondary {
    background-color: #6b7280;
    color: white;
}

/* Styles pour les actions dans les tables */
.table .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.table .actions button,
.table .actions a {
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    background-color: #f3f4f6;
    color: #374151;
}

.table .actions button:hover,
.table .actions a:hover {
    background-color: #e5e7eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Styles pour les cases à cocher */
.table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Styles pour les liens dans les tables */
.table a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.table a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .table thead th,
    .table tbody td {
        padding: 10px 8px;
        min-width: 120px;
    }
    
    .table .actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .table .actions button,
    .table .actions a {
        font-size: 11px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .table {
        font-size: 11px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 8px 6px;
        min-width: 100px;
    }
}

/* Animation pour les chargements */
.table.loading tbody {
    opacity: 0.6;
}

.table.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles pour les tableaux vides */
.table tbody:empty::before {
    content: 'Aucune donnée disponible';
    display: block;
    text-align: center;
    padding: 40px;
    color: #9ca3af;
    font-style: italic;
}

/* Styles pour les lignes sélectionnées */
.table tbody tr.selected {
    background-color: #ede9fe;
    border-left: 3px solid #667eea;
}

/* Styles pour les tableaux triables */
.table thead th.sortable {
    cursor: pointer;
    user-select: none;
}

.table thead th.sortable:hover {
    background-color: rgb(255, 255, 255);
}

.table thead th.sortable::after {
    content: '↕';
    margin-left: 8px;
    opacity: 0.5;
}

.table thead th.sort-asc::after {
    content: '↑';
    opacity: 1;
}

.table thead th.sort-desc::after {
    content: '↓';
    opacity: 1;
}

/* #screen-modal-type-migrationStatusModal,#screen-modal-migrationStatusModal{
        display: block !important;
        opacity: 1;
        z-index: 1000;
        background-color: #afbfba;

} */


/* side-bar */

/* .aside { */
    /* background-color: #667eea !important; */
    /* color: #ecf0f1; texte clair */
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; */
/* } */
/* .aside .active{
    background-color: #183098 !important;
} */

fieldset .col-12.col-md-7.shadow-sm{
    width:100% !important;
}
.dropdown-menu{
    inset: 1px 1px auto auto !important;
}