.dashboard-body {
    min-height: 100%;
    font-family: 'Nunito', sans-serif;
}

.dashboard-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    padding: 2rem;
    margin-bottom: 1rem;
}

.welcome-header {
    background: linear-gradient(45deg, #4e73df, #ed2790);
    color: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.card-custom {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    margin-bottom: 1.5rem;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header-custom {
    background: linear-gradient(45deg, #36b9cc, #2c9faf);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
}

.btn-primary-custom {
    background: linear-gradient(45deg, #4e73df, #224abe);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    width: 100%;
    margin-bottom: 10px;
}

.btn-success-custom {
    background: linear-gradient(45deg, #1cc88a, #17a673);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    width: 100%;
    margin-bottom: 10px;
}

.message-badge {
    background: linear-gradient(45deg, #e74a3b, #be2617);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 1rem auto;
}

.system-map-card {
    background: linear-gradient(45deg, #f6c23e, #dda20a);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    height: 100%;
}

.system-map-card h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.welcome-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.welcome-header .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

.content-wrapper {
    padding-bottom: 2rem;
}



/* Contenedor de scroll horizontal */
.table-responsive {
    overflow-x: auto;
    position: relative;
}

/* Sticky left: primera columna (ID) */
#dataTable th:first-child,
#dataTable td:first-child {
    position: sticky;
    left: 0;
    background-color: #fff;
    /* Fondo para no superponer */
    z-index: 3;
    /* Debe ser mayor que otras columnas */
}

/* Sticky right: última columna (Acciones) */
#dataTable th:last-child,
#dataTable td:last-child {
    position: sticky;
    right: 0;
    background-color: #fff;
    z-index: 3;
}

#dataTable {
    table-layout: auto;
    /* Permite que cada columna tenga el ancho de su contenido */
    width: 100%;
    /* La tabla ocupa todo el contenedor */
    min-width: max-content;
    /* Evita que se compriman demasiado */
}


