/* ========================================
   CARDS & CONTENT CONTAINERS
   ======================================== */

/* Base card styles */
.card {
    margin-bottom: 30px;
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover effects - removido para manter cards estáticos */

.card-header {
    border-bottom: 1px solid var(--visual-divider);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.card-title {
    color: var(--text-primary, white);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.card-subtitle {
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ========================================
   TABLES & DATA DISPLAY
   ======================================== */

/* Table container */
.table-container {
    border-radius: var(--visual-radius-xl);
    overflow: hidden;
    margin-bottom: 30px;
}

.componente-tabela {
    overflow: auto !important;
}

    .componente-tabela tr,
    .componente-tabela th,
    .componente-tabela td {
        border: none !important;
    }

    .componente-tabela::-webkit-scrollbar {
        width: 0;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .componente-tabela::-webkit-scrollbar-track {
        opacity: .5;
    }

    .componente-tabela::-webkit-scrollbar-thumb,
    .componente-tabela::-webkit-scrollbar-thumb:hover {
        opacity: .9;
    }

/* Table base styles */
.table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

    .table th,
    .table td {
        padding: 5px 10px;
        text-align: left;
    }

    .table th {
        border: none;
        background: var(--visual-surface-subtle);
        color: var(--text-primary, white);
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 30px;
    }

.table-th {
        text-transform: uppercase;
    }

.table-header-align-right {
    text-align: right;
}

.table .table-cell-compact {
    border: none;
    padding: 0;
}

    .table-th-sort-icon {
        margin-left: 10px;
    }

    .table td {
        border-bottom: 1px solid var(--visual-divider);
        color: var(--text-secondary, rgba(255, 255, 255, 0.9));
        font-size: 14px;
    }

    /* Efeito zebra para tabela */
    .table tbody tr:nth-child(even) {
        background: rgba(255, 255, 255, 0.03);
    }

    .table tbody tr:nth-child(odd) {
        background: transparent;
    }

    .table tr:hover {
        background: rgba(255, 255, 255, 0.08) !important;
    }

.table-footer {
    font-weight: bold;
}

.table-pagination {
    margin-top: 10px;
}

.table-page-size {
    display: inline-block;
    opacity: 0.5;
    width: 80px;
}

.table-page-info {
    font-size: small;
    opacity: 0.5;
}

.table-pagination-actions {
    float: right;
}

.table-action-cell {
    text-align: end;
    white-space: nowrap;
}

.table-action-header {
    border: none !important;
}

.page-actions {
    display: flex;
    align-items: center;
    justify-content: end;
    height: 100%;
}

.progress {
    height: 8px;
    background: var(--visual-surface-subtle);
    border-radius: var(--visual-radius-md);
    overflow: hidden;
    position: relative;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color, #4f46e5), var(--primary-color-light, #7c3aed));
    border-radius: var(--visual-radius-md);
    position: relative;
    transition: width 0.6s ease;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary, white);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-muted, rgba(255, 255, 255, 0.7));
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* (consolidado abaixo) estilos antigos duplicados de nav-tabs removidos */

/* Vertical tabs wrapper */
.nav-tabs-vertical {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 16px;
    align-items: start;
}

    .nav-tabs-vertical .nav-tabs {
        flex-direction: column;
        height: fit-content;
    }

    .nav-tabs-vertical .nav-tab {
        width: 100%;
        text-align: left;
    }
