/* el-simple-table.css - Estilos para o componente el-simple-table */

/* Container principal */
.el-simple-table {
    position: relative;
}

/* Spinner de loading */
.el-simple-table .container-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.el-simple-table .spinner {
    display: flex;
    justify-content: space-between;
    width: 50px;
    height: 40px;
}

.el-simple-table .spinner > div {
    background-color: #007bff;
    height: 100%;
    width: 6px;
    animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.el-simple-table .spinner .rect2 {
    animation-delay: -1.1s;
}

.el-simple-table .spinner .rect3 {
    animation-delay: -1.0s;
}

.el-simple-table .spinner .rect4 {
    animation-delay: -0.9s;
}

.el-simple-table .spinner .rect5 {
    animation-delay: -0.8s;
}

@keyframes sk-stretchdelay {
    0%, 40%, 100% { 
        transform: scaleY(0.4);
    }  
    20% { 
        transform: scaleY(1.0);
    }
}

/* Células de texto truncado */
.el-simple-table .three-points {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Linha ativa */
.el-simple-table tbody tr.active {
    background-color: #e7f3ff;
}

/* Cabeçalhos clicáveis para ordenação */
.el-simple-table .cursor-pointer {
    cursor: pointer;
}

.el-simple-table .no-select-text {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.el-simple-table thead th:hover {
    background-color: #f8f9fa;
}

/* Estado vazio */
.el-simple-table .simple-table-empty {
    border: 1px solid #dee2e6;
    border-top: 0;
    border-radius: 0 0 0.375rem 0.375rem;
}

/* Responsividade melhorada */
@media (max-width: 768px) {
    .el-simple-table .table-responsive {
        overflow-x: auto;
    }
    
    .el-simple-table .table {
        min-width: 700px;
    }
}
