﻿/* ==========================================================================
   VORTEK CUSTOM STYLES
   ========================================================================== */

.table-clean th {
    border-bottom: 1px solid #e9ecef !important;
    background-color: #f8f9fa;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 1rem !important;
}

.table-clean td {
    padding: 1rem !important;
    border-bottom: 1px solid #f1f1f1 !important;
    vertical-align: middle;
}

.table-clean tr:last-child td {
    border-bottom: none;
}

/* --- TRUCO CLAVE: Ocultar controles nativos de la librería --- */
/* Ocultamos .datatable-top porque usaremos NUESTROS PROPIOS controles arriba */
.datatable-top {
    display: none !important;
}

/* --- 3. BOTONES APP VORTEK (Estilo Tarjeta) --- */
.btn-app-vortek {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e5e9;
    background-color: #ffffff;
    border-radius: 8px;
    min-width: 70px;
    height: 65px;
    padding: 0.25rem;
    color: #4b5675;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

    .btn-app-vortek img,
    .btn-app-vortek i {
        width: 24px;
        height: 24px;
        font-size: 1.5rem;
        margin-bottom: 4px;
        color: inherit;
    }

    .btn-app-vortek span {
        font-size: 0.65rem;
        font-weight: 600;
        line-height: 1;
        text-align: center;
    }

    .btn-app-vortek:hover {
        background-color: rgba(var(--bs-primary-rgb), 0.05);
        border-color: var(--bs-primary);
        color: var(--bs-primary);
        transform: translateY(-2px);
    }

/* --- 4. SKELETON LOADING (Animación de Carga) --- */
.skeleton {
    background-color: #e2e5e7;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
    background-size: 40px 100%;
    background-repeat: no-repeat;
    background-position: left -40px top 0;
    animation: shine 1s ease infinite;
    border-radius: 4px;
    display: inline-block;
}

@keyframes shine {
    to {
        background-position: right -40px top 0;
    }
}

.skeleton-row td {
    padding: 1.2rem 1rem !important;
}

.skeleton-text {
    height: 10px;
    width: 100%;
    margin-bottom: 5px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-badge {
    width: 60px;
    height: 20px;
}

/* --- 5. MODO OSCURO (Dark Mode Support) --- */
[data-pc-theme="dark"] .table-clean th {
    background-color: #1f2937;
    border-bottom-color: #374151 !important;
    color: #e5e7eb;
}

[data-pc-theme="dark"] .table-clean td {
    border-bottom-color: #374151 !important;
    color: #d1d5db;
}

[data-pc-theme="dark"] .datatable-sorter {
    color: #d1d5db;
}

    [data-pc-theme="dark"] .datatable-sorter::before {
        border-bottom-color: #e5e7eb;
    }

    [data-pc-theme="dark"] .datatable-sorter::after {
        border-top-color: #e5e7eb;
    }

[data-pc-theme="dark"] .btn-app-vortek {
    background-color: #1b2635;
    border-color: #374151;
    color: #d1d5db;
}

    [data-pc-theme="dark"] .btn-app-vortek:hover {
        background-color: rgba(var(--bs-primary-rgb), 0.2);
        border-color: var(--bs-primary);
        color: var(--bs-primary);
    }

[data-pc-theme="dark"] .skeleton {
    background-color: #374151;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

[data-pc-theme="dark"] .skeleton-avatar {
    background-color: #374151;
}


/* ==========================================================================
   FIX NOTIFICACIONES (Traducción de SCSS a CSS)
   ========================================================================== */

/**  =====================
    28. Notification css start
========================== **/
.alert-dismissable .close,
.alert-dismissible .close {
    color: inherit;
    text-shadow: none;
}

.notifier-container {
    z-index: 1051;
    font-family: "Public Sans", sans-serif;
    width: 400px;
    max-width: 98%;
    top: 15px;
}

.notifier {
    padding: calc(25px - 5px) calc(25px - 5px);
    border-radius: 8px;
}
    .notifier-title {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 2px;
    }

.notifier-body {
    font-size: 0.875rem;
}

    .notifier-img {
        .img {
            width: 40px;
            height: 40px;
        }
    }

.notifier-close {
        &:focus,
        &:hover {
            color: #f44236;
            background: transparent;
        }
    }