/* Custom styles for tables */

.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(107, 45, 143, 0.08);
    margin-bottom: 1.5rem;
}

.table {
    margin-bottom: 0;
}

.table thead.table-dark {
    background-color: #3d1d5c !important;
}

.table thead.table-dark th {
    border-bottom: 2px solid #52c77a;
    font-weight: 600;
    padding: 1rem;
    color: #ffffff;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f5f1f9;
}

/* Coluna de ações */
.actions-column {
    white-space: nowrap;
    width: 1%;
    padding: 0.5rem !important;
}

.actions-column .btn {
    margin-right: 0.25rem;
}

/* Dados numéricos alinhados à direita */
.text-right-numeric {
    text-align: right;
}

/* Badges mais compactos */
.badge {
    display: inline-block;
    white-space: nowrap;
    font-weight: 500;
}

/* Responsividade em tablets */
@media (max-width: 1024px) {
    .table thead th {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .table tbody td {
        padding: 0.6rem 0.5rem;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Responsividade em mobile */
@media (max-width: 768px) {
    .table thead th {
        padding: 0.5rem 0.3rem;
        font-size: 0.75rem;
    }

    .table tbody td {
        padding: 0.4rem 0.3rem;
        font-size: 0.75rem;
    }

    .btn-sm {
        padding: 0.25rem 0.4rem;
        font-size: 0.7rem;
    }

    .actions-column {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    /* Truncar descrições muito longas */
    .text-truncate {
        max-width: 150px;
    }
}

/* Status badges com cores */
.badge.bg-success {
    background-color: #52c77a !important;
}

.badge.bg-primary {
    background-color: #6b2d8f !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

/* Texto truncado com tooltip */
.text-truncate-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .text-truncate-cell {
        max-width: 120px;
    }
}
