﻿

/*--------------------------------------------------------------------------------------*/
/* ====== GLOBAL ====== */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f8f9fb;
    overflow: hidden; /* quita el scroll de toda la página */
    box-sizing: border-box;
}

/* ====== TOPBAR ====== */
.topbar {
    height: 56px;
    background-color: #212529;
    /*color: white;*/
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
}

    .topbar .form-control {
        max-width: 500px;
    }

.dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* ====== LAYOUT ====== */
.layout {
    display: flex;
    height: calc(100vh - 56px); /* espacio debajo del topbar */
    margin-top: 56px;
    position: relative;
    overflow: hidden; /* 🔑 CLAVE */
}

/* ====== SIDEBAR ====== */
.sidebar {
    width: 250px;
    min-width: 250px;
    background-color: #1e1f21;
    color: #fff;
    padding: 1rem;
    overflow-y: auto;
    /*height: 100%;*/
    box-sizing: border-box;
    position: sticky;
    top: 0;
}

    .sidebar.collapsed {
        min-width: 0;
        width: 0;
        padding: 0;
        overflow: hidden;
    }

    .sidebar a {
        color: #d1d1d1;
        text-decoration: none;
        display: block;
        padding: 6px 0;
    }

        .sidebar a:hover,
        .sidebar .fw-bold {
            color: #fff;
        }

/* ====== MAIN CONTENT ====== */
.main-content {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
}

/* ====== DATATABLES ====== */
.dataTables_wrapper {
    width: 100%;
    overflow: hidden;
}

.truncate-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    width: 100%;
}

.dataTables_scrollHead {
    overflow: hidden !important; /* evitar scroll en encabezado */
}

.dataTables_scrollBody {
    overflow-y: auto !important;
    max-height: 400px;
}

/* ====== TASK PANEL (Panel lateral flotante) ====== */
.task-panel {
    position: absolute;
    background-color: #fff;
    box-shadow: -2px 0 6px rgba(0,0,0,0.2);
    z-index: 1050;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid #ddd;
}

.task-panel-header {
    color: #fff;
    /*padding: 0.5rem;*/
    display: flex;
    justify-content: flex-end;
}

.task-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 0 1rem 1rem 1rem; /* top right bottom left */
}

/* ====== PANEL DETALLE TAREA (FIJO) ====== */
#taskDetailPanel {
    position: fixed;
    overflow-y: auto;
    display: none;
    transition: left 0.3s ease;
    z-index: 1000;
    top: 56px; /* debajo de la topbar */
    height: calc(100vh - 56px);
}

/* ====== OCULTAR COLUMNAS EN MODO PANEL ABIERTO ====== */
body.panel-open .task-table th:nth-child(n+2),
body.panel-open .task-table td:nth-child(n+2) {
    visibility: hidden;
}




/* ====== CONTENIDO PANEL DERECHO  ====== */
.colaboradoresimg {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: Arial, sans-serif;
    color: #555;
}

.avatars {
    display: flex;
    align-items: center;
    gap: 1px; /* Espacio entre los avatares */
}

/* Avatares generales */
.avatar,
.avatar-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
}

/* Avatares con texto (JP, +2) */
.avatar {
    /*background-color: #0dcaf0;*/
    background-color: var(--bs-primary);
    color: white;
    text-align: center;
    line-height: 32px;
    font-size: 14px;
    font-weight: bold;
}

    /* Avatares con imagen */
    .avatar img,
    .avatar-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Botón para agregar */
.add {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    background-color: var(--bs-success);
}



/*-----------------------------*/
.comment-box {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
}

.subdued {
    color: #6c757d;
    font-size: 0.9em;
}


/* ====== BOTON PARA TAREAS  ====== */


.btn-check-row {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #000;
    padding: 0 4px;
}

    .btn-check-row:hover {
        border-color: #4caf50;
        color: #4caf50;
    }


/*-------------------*/
/* Botón normal para → */
.btn-arrow-row {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #000;
    padding: 0 4px;
}

    .btn-arrow-row:hover {
        border-color: #4caf50;
        color: #4caf50;
    }


/*---------------------------------*/
/*toas de alertas → */


.swal-sm {
    font-size: 12px !important;
    padding: 6px 12px !important;
    width: auto !important;
    min-width: 150px !important;
    z-index: 1100;
}

.swal-toast {
    width: auto !important; /* Ajuste al contenido */
    width: auto !important; /* Ajuste al contenido */
    min-width: unset !important;
    padding: 4px 8px !important; /* Menos espacio alrededor */
    margin: 0 !important; /* Quita márgenes */
    z-index: 1100;
}

/*
-------------------------------------------------
datatable personalizado*/



table.tabla-tareas.dataTable {
    --dt-row-selected: 208, 214, 219 !important; /* color gris claro */
    --dt-row-selected-text: 0, 0, 0 !important; /* texto negro */
    border-collapse: collapse; /* para un mejor control de bordes */
}
    /* Encabezados (títulos) */
    table.tabla-tareas.dataTable thead th {
        font-size: 15px; /* más pequeño */

        white-space: nowrap;
        text-align: left;
        vertical-align: middle;
        background-color: #f9f9f9;
    }


    table.tabla-tareas.dataTable tbody tr {
        border-bottom: 1px solid #ccc; /* línea fina gris clara entre filas */
    }

        table.tabla-tareas.dataTable tbody tr:last-child {
            border-bottom: none; /* quita el borde de la última fila */
        }

    table.tabla-tareas.dataTable input {
        width: 100%; /* Ocupa todo el ancho de la celda */
        border: none; /* Sin borde */
        background: transparent; /* Fondo transparente para que se vea el fondo de la celda */
        padding: 0; /* Sin padding para que ajuste bien */
        box-shadow: none; /* Sin sombra */
        outline: none; /* Sin outline al seleccionar */
        font-size: inherit; /* Que tome la fuente de la celda para que coincida */
        color: inherit; /* Que tome el color del texto */
    }

    table.tabla-tareas.dataTable tbody tr.selected {
        border-top: 1px solid #888; /* Borde superior */
        border-bottom: 1px solid #888; /* Borde inferior */
        outline: 1px solid #888; /* Borde alrededor de toda la fila */
        background-color: rgb(var(--dt-row-selected)) !important; /* usa tu gris claro */
        color: rgb(var(--dt-row-selected-text)) !important; /* texto negro */
    }

    table.tabla-tareas.dataTable tbody > tr > th,
    table.tabla-tareas.dataTable tbody > tr > td {
        padding: 0 5px !important;
        font-size: 14px;
    }


.dataTables_scrollHeadInner,
.dataTables_scrollHeadInner table,
.dataTables_scrollBody table {
    width: 100% !important;
    table-layout: fixed; /* ⚠️ clave para alinear columnas */
}




.dataTables_scrollBody {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: calc(100vh - 310px); /* ajusta según tu layout */
}

div.dt-search {
    text-align: right !important;
    width: 100%;
}


/*-----------------------------------------------------------------*/ /**/
/*ruta de tareas*/

.breadcrumb-item a {
    color: inherit; /* Color igual que el texto normal */
    text-decoration: none; /* Sin subrayado por defecto */
    transition: color 0.3s; /* Opcional: para animar el cambio */
}

    .breadcrumb-item a:hover {
        color: blue; /* Color azul al pasar el mouse */
        text-decoration: underline; /* Subrayado al pasar el mouse */
        cursor: pointer; /* Cambia el cursor a puntero */
    }


/*-----------------------------------------------------------------------
            comentarios*/

.comentarios {
    background-color: #f8f9fa; /* Gris claro */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .comentarios .comentario {
        padding-bottom: 5px;
        margin-bottom: 10px;
        border-bottom: 1px solid #dee2e6;
    }

    .comentarios textarea {
        background-color: #ffffff;
        color: #212529;
    }

    .comentarios .card-body {
        padding: 0 !important;
        max-height: 300px;
        overflow-y: auto;
    }
/*------------------------------------------------------*/
/* Imágenes dentro de los comentarios */
.comentario-texto img {
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.2s ease;
    max-width: 200px;
}

    .comentario-texto img:hover {
        transform: scale(1.05);
    }

#visorImagen {
    display: none; /* Oculto al inicio ✅ */
    position: fixed;
    top: 56px; /* deja libre el espacio de la barra superior */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    overflow: auto; /* ✅ permite scroll */
    cursor: grab; /* indica que puedes arrastrar */
}

    /* Imagen ampliada */
    #visorImagen img#imagenAmpliada {
        max-width: 90%;
        max-height: calc(90vh - 56px);
        border-radius: 8px;
        box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
        transition: transform 0.3s ease;
        cursor: grab;
        position: relative;
        display: block;
        margin: auto;
    }

    /* Botón cerrar */
    #visorImagen .cerrar {
        position: fixed;
        top: 70px; /* debajo de la topbar */
        right: 35px;
        color: #fff;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
        z-index: 1000000;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 50%;
        width: 45px;
        height: 45px;
        text-align: center;
        line-height: 45px;
        transition: background 0.2s ease, transform 0.2s ease;
    }

        #visorImagen .cerrar:hover {
            background: rgba(255,255,255,0.2);
            transform: scale(1.1);
        }




/*    --------------------------------------------------------------
    Opciones del usuario*/


.user-menu {
    position: relative;
    display: inline-block;
}


.dropdown-content {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 0;
    margin: 0;
    list-style: none;
    border-radius: 4px;
    border: 1px solid #ddd;
}

    .dropdown-content li {
        border-bottom: 1px solid #eee;
    }

        .dropdown-content li:last-child {
            border-bottom: none;
        }

    .dropdown-content a {
        display: block;
        padding: 10px 15px;
        text-decoration: none;
        color: #333;
    }

        .dropdown-content a:hover {
            background-color: #f5f5f5;
        }

/*header, .topbar {
    z-index: 10000;
 }*/

/*-----------------------menu crear tareas-------------------------*/
.crear-menu-wrapper {
    position: relative; /* para posicionar el dropdown */
}

.crear-dropdown {
    display: none;
    position: absolute;
    top: 0;
    left: calc(100% + 8px); /* a la derecha con un pequeño espacio */
    background-color: #fff; /* fondo blanco */
    border-radius: 6px;
    padding: 6px 0;
    min-width: 200px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* sombra suave */
    list-style: none;
    padding-left: 0;
    margin: 0;
    color: #000; /* texto negro por defecto */
}

    .crear-dropdown li {
        list-style: none;
    }

        .crear-dropdown li a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            color: #000; /* texto negro */
            text-decoration: none;
            font-size: 14px;
            transition: background 0.2s;
        }

            .crear-dropdown li a:hover {
                background-color: #f0f0f0; /* fondo gris claro al hover */
                color: #000;
            }

        .crear-dropdown li.active a {
            border: 1px solid #000; /* borde negro */
            border-radius: 6px;
            background-color: #e0e0e0; /* fondo gris claro */
            color: #000;
        }

        .crear-dropdown li::marker {
            display: none;
        }
/*-----------------------------------------modales---------------------------*/

.modal-content {
    border: none !important;
    box-shadow: none !important; /* opcional, para eliminar sombra */
}
/*-------------------------------------------------------------*/
.colaboradores-col {
    max-width: 200px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}


/*---------------------------------------trubite *------------------------------*/

/* Contenedor del menú de menciones */
.tribute-container {
    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    background-color: #ffffff !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    z-index: 9999 !important;
}

    /* Lista del menú */
    .tribute-container ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* Cada opción de usuario */
    .tribute-container li {
        padding: 8px 12px !important;
        cursor: pointer;
        background-color: #ffffff !important;
        color: #000000 !important; /* rojo Bootstrap */
        border-bottom: 1px solid #f1f1f1;
        transition: background 0.2s;
    }

        /* Último item sin borde inferior */
        .tribute-container li:last-child {
            border-bottom: none;
        }

        /* Opción activa (hover o flechas) */
        .tribute-container li.highlight {
            background-color: #007bff !important;
            color: #ffffff !important;
        }
/*-------------------------MENCION------------------------------*/


/*.mencion-badge {
    display: inline-flex;
    align-items: center;
    background-color: #cfe2ff;*/ /* azul claro (bg primary tint) */
/*border: 1px solid #0d6efd;*/ /* borde azul primario */
/*border-radius: 12px;
    padding: 2px 8px;
    margin-right: 4px;
    font-size: 14px;
    color: #0d6efd;*/ /* texto azul primario */
/*user-select: none;
}

.mencion-iniciales {
    background-color: #0d6efd;*/ /* azul primario */
/*color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-right: 6px;
    font-size: 12px;
    user-select: none;
}*/

.mencion-badge {
    display: inline-flex;
    align-items: center;
    /* background-color: #cfe2ff;*/
    background-color: transparent;
    border-radius: 6px;
    /*  padding: 0px 10px 0px 0px;*/
    margin-right: 4px;
    font-size: 13px;
    color: black;
    user-select: none;
    border: 1px solid transparent;
}

.mencion-iniciales {
    background-color: #0d6efd;
    color: white;
    width: 28px;
    height: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin-right: 3px;
    font-size: 14px;
    border-radius: 4px;
    user-select: none;
    text-transform: uppercase;
}

/*------------------------------ADJUNTOS------------------------------------*/
.adjunto-documento {
    padding: 5px;
    /*border: 1px solid #ccc;*/
    margin-top: 5px;
    border-radius: 3px;
    color: #333;
    display: inline-block;
    background-color: white;
}

/*--------------------------------SELECT 2----------------------------------*/

.colaborador-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Imagen en el dropdown */
.colaborador-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Imagen más pequeña en la selección actual */
.colaborador-img-sm {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.colaborador-img-35 {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.colaborador-img-30 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}


/* 🔹 Quita bordes, fondo y sombras al select2 */
.select2-clean + .select2-container--default .select2-selection--single {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0 !important;
}




/*------------------select 2 multi--------------------*/


#txtcolaboradores + .select2-container .select2-selection--multiple {
    min-height: 34px !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 3px;
    gap: 4px;
}

#txtcolaboradores + .select2-container .select2-selection__choice {
    display: inline-flex !important;
    align-items: center !important;
    background: #f8f8f8 !important;
    border: 1px solid #ccc !important;
    border-radius: 20px !important;
    padding: 2px 8px 2px 19px !important;
    gap: 6px !important;
    height: 26px !important;
}

    #txtcolaboradores + .select2-container .select2-selection__choice img {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        object-fit: cover;
    }

    #txtcolaboradores + .select2-container .select2-selection__choice span {
        font-size: 13px;
        font-weight: 500;
        color: #333;
        white-space: nowrap;
    }

    #txtcolaboradores + .select2-container .select2-selection__choice .remove-btn {
        font-size: 14px;
        color: #888;
        cursor: pointer;
        margin-left: 4px;
        line-height: 1;
    }

/*----------------------------------*/

#txtcolaboradorespro + .select2-container .select2-selection--multiple {
    min-height: 34px !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 3px;
    gap: 4px;
}

#txtcolaboradorespro + .select2-container .select2-selection__choice {
    display: inline-flex !important;
    align-items: center !important;
    background: #f8f8f8 !important;
    border: 1px solid #ccc !important;
    border-radius: 20px !important;
    padding: 2px 8px 2px 19px !important;
    gap: 6px !important;
    height: 26px !important;
}

    #txtcolaboradorespro + .select2-container .select2-selection__choice img {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        object-fit: cover;
    }

    #txtcolaboradorespro + .select2-container .select2-selection__choice span {
        font-size: 13px;
        font-weight: 500;
        color: #333;
        white-space: nowrap;
    }

    #txtcolaboradorespro + .select2-container .select2-selection__choice .remove-btn {
        font-size: 14px;
        color: #888;
        cursor: pointer;
        margin-left: 4px;
        line-height: 1;
    }


/*------FECHAS EN VISTA PARCIAL---------*/
/* Fija el ancho de las etiquetas solo en los selects */
.label-fixed {
    width: 100px; /* mantiene el mismo ancho fijo */
    text-align: left !important; /* alineación a la izquierda */
    margin-right: 10px;
    flex-shrink: 0;
}

.row-select {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

    .row-select select {
        flex: 1; /* hace que el select ocupe todo el espacio restante */
    }

/* Contenedor de ambos campos de fecha */
.date-pair {
    display: flex;
    align-items: center;
    gap: 10px; /* espacio entre ambos */
    flex: 1;
}

    /* Ambos inputs con el mismo tamaño */
    .date-pair input[type="date"] {
        flex: 1;
    }

    /* Label de “Finaliza:” */
    .date-pair label {
        margin-left: 10px;
        margin-bottom: 0;
        white-space: nowrap;
    }

    .date-pair input[type="date"] {
        flex: 1;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        background-color: transparent !important;
        color: #000;
    }


/*-------------------------------------------select 2 personalizado-----------------------------------------------*/
/* 🎨 Estilo exclusivo para los selects tipo badge */
.select2-badge + .select2-container--default .select2-selection--single {
    color: #fff;
    height: 36px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding-left: 0px;
}

.select2-badge + .select2-container--default .select2-selection__rendered {
    color: black !important;
}

.select2-badge + .select2-container--default .select2-selection__arrow {
    top: 4px;
}

.select2-badge + .select2-container--default .select2-dropdown {
    background-color: #2b2b2b;
    border: 1px solid #444;
}

.select2-badge + .select2-container--default .select2-results__option {
    padding: 6px 10px;
    cursor: pointer;
}

.select2-badge + .select2-container--default .select2-results__option--highlighted {
    background-color: #3a3a3a !important;
}

.badge-option {
    display: inline-block;
    border-radius: 8px;
    padding: 1px 8px;
    font-size: 0.80em;
    color: #fff;
    font-weight: 500;
}


.selectt + .select2-container--default .select2-selection--single .select2-selection__placeholder,
.selectt + .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: black !important;
    opacity: 1 !important;
}

/*----------------------------filtros---------------------------*/

.filtros-ocultos {
    display: none;
}

/* Cuando está activo */
.filtros-visibles {
    display: inline-block; /* o flex si quieres agregar más elementos */
    animation: fadeIn 0.2s ease-in-out;
}

/* Suave animación */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*----------------------------------notificaciones------------------------------*/




.notification-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 5px;
    cursor: pointer;
}

.task-notification {
    background-color: #f7f7f7;
    padding: 10px;
    border-radius: 8px;
}

.task-header {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.project-dot {
    color: #f58ca8;
    font-size: 14px;
    margin-right: 5px;
}

.separator {
    margin: 0 5px;
    color: #aaa;
}

.task-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
}

.task-footer {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #555;
}

    .task-footer .avatar {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        margin-right: 10px;
    }

.time {
    color: #999;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    margin-right: 10px;
    cursor: default;
}

/* --- ESTILO DE SELECCIÓN --- */
.notification-container.selected {
    background-color: #e8f4ff; /* azul suave */
    border-color: #2196f3;
    box-shadow: 0 0 4px rgba(33, 150, 243, 0.4);
    transition: all 0.2s ease;
}

.notification-container:hover {
    background-color: #f1f8ff; /* sutil cambio al pasar el mouse */
}

/*--------------------------------------NOTIFICACIONES---------------------------------------------------*/

/* --- PANEL DE NOTIFICACIONES --- */

.notification-wrapper {
    position: relative;
}

/* Caja flotante */
.notification-panel {
    position: absolute;
    top: 45px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: none;
    z-index: 9999;
    overflow: hidden;
}

/* Header */
.notif-header {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.notif-title {
    font-weight: 700;
    font-size: 16px;
}

.notif-tabs {
    margin-top: 6px;
    display: flex;
    gap: 12px;
}

    .notif-tabs span {
        cursor: pointer;
        padding-bottom: 4px;
        color: #555;
    }

    .notif-tabs .active {
        font-weight: bold;
        border-bottom: 2px solid #1877f2;
    }

/* Lista */
.notif-body {
    max-height: 350px;
    overflow-y: auto;
    padding: 10px;
}

.notif-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 5px;
    transition: background 0.2s ease;
}

    .notif-item:hover {
        background: #f5f6f7;
    }

    .notif-item.unread {
        background: #eef3ff;
    }

    .notif-item:last-child {
        margin-bottom: 0 !important; /* Evita espacio extra al final */
    }

.notif-text {
    max-width: 250px;
    font-size: 14px;
}

.notif-time {
    font-size: 12px;
    color: gray;
}

.notif-dot {
    width: 10px;
    height: 10px;
    background: #1877f2;
    border-radius: 50%;
    margin-left: 5px;
    margin-top: 5px;
}

/*-----------------------------*/
.dt-info #txttotalfactura {
    float: right;
    font-weight: bold;
    font-size: 19px;
    cursor: pointer;
    color: #1e1e1e;
}

.swal-popup {
    background-color: #333; /* Color de fondo del Toast */
}

.swal-title {
    color: #fff; /* Color del texto del título */
}

sl-drawer::part(panel) {
    top: 60px; /* altura real de tu topbar */
    height: calc(100% - 60px);
}

/*--------------------input de  busqueda -------------------------*/


.custom-input {
    flex: 1;
    outline: none;
    padding-left: 40px;
    padding-right: 40px;
    color: #54606C !important;
    border: none !important;
    border: solid 1px #708090 !important;
    border-radius: 12px !important;
    -webkit-border-radius: 12px !important;
    border-radius: 12px !important;
    -webkit-border-radius: 12px !important;
}

.custom-input-group .btn-search, .custom-input-group .btn-clear {
    position: absolute;
    top: 0;
    height: 100%;
    border: none;
    background: transparent;
    color: #555;
    padding: 0 12px;
    cursor: pointer;
}

.custom-input-group .btn-search {
    left: 0;
}

.custom-input-group .btn-clear {
    right: 0;
}

    /* Eliminar el cambio de fondo al pasar el ratón */
    .custom-input-group .btn-search:hover, .custom-input-group .btn-clear:hover {
        background: transparent; /* Mantiene el fondo transparente */
        box-shadow: none;
    }

    .custom-input-group .btn-search:focus, .custom-input-group .btn-clear:focus {
        outline: none;
        box-shadow: none;
    }

.custom_input_Js_desc {
    font-size: 15px;
    display: block;
    line-height: 1;
    font-weight: bold
}

.custom_input_Js_14 {
    font-size: 14px;
    display: block;
    line-height: 1;
    font-weight: bold
}

.custom_input_Js_13 {
    font-size: 13px;
    display: block;
    line-height: 1;
    font-weight: bold
}


.custom_input_Js_desc_ca {
    font-size: 13px;
    display: block;
    line-height: 1;
    padding: 1px 1px 1px 8px;
}

.custom_input_Js_pre {
    text-align: right;
    background-color: #eee;
    border: 0;
    /*border-bottom: 1px solid black;*/
    font-size: 13px;
    width: 60% !important;
    background-color: transparent; /* Hacer el fondo transparente */
}

.custom_input_Js_ca {
    text-align: center;
    background-color: #eee;
    border: 0;
    border-bottom: 1px solid black;
    font-size: .9em;
    width: 35px !important;
    background-color: transparent; /* Hacer el fondo transparente */
}


/*---------------------------pagination---flex------------------------------------------*/
.pagination.flex {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}



.input-list-container {
    display: flex;
    align-items: center;
}



.pagination.flex li {
    margin-right: 2px;
    flex: 0 0 auto;
}

.pagination-container {
    display: flex;
    overflow-x: auto;
}


@media screen and (max-width: 568px) {
    .pagination.flex li {
        width: 50px; /* Reducir el ancho de los elementos de la lista en pantallas más pequeñas */
    }
}

.pagination.flex li a {
    display: inline-block;
    padding: 8px 20px;
    text-decoration: none;
    color: #333; /* Color del texto */
    background-color: #ccc; /* Color de fondo gris */
    border: 1px solid #ccc; /* Borde gris */
    border-radius: 4px; /* Bordes redondeados */
    transition: background-color 0.3s ease; /* Transición suave del color de fondo */
}

    .pagination.flex li a:hover {
        background-color: #aaa; /* Color de fondo gris más oscuro al pasar el mouse */
        border-color: #aaa; /* Borde gris más oscuro al pasar el mouse */
        color: #fff; /* Color del texto blanco al pasar el mouse */
    }

/*--------------------------------------------------------------*/

.search-input {
    position: relative;
    max-width: 300px;
}

    .search-input input {
        padding-left: 35px;
        padding-right: 35px;
    }

.search-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #6c757d;
}

.clear-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #6c757d;
    cursor: pointer;
}


/*------------------------------*/

.no-results {
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-results-card {
    text-align: center;
    padding: 30px 40px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    animation: fadeIn 0.3s ease-in-out;
}

    .no-results-card i {
        font-size: 42px;
        color: #adb5bd;
        margin-bottom: 10px;
    }

    .no-results-card h6 {
        font-weight: 600;
        margin-bottom: 5px;
        color: #343a40;
    }

    .no-results-card p {
        font-size: 14px;
        color: #6c757d;
        margin: 0;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*--------------------------------------------------*/


/* ===== DataTables Buttons: icon-only limpio ===== */
.dt-buttons {
    display: flex;
    gap: 6px;
    padding-left: 6px;
}

.dt-button {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 4px 6px !important;
    margin: 0 !important;
}

    .dt-button:hover {
        background: rgba(0, 0, 0, 0.06) !important;
        border-radius: 4px;
    }

    .dt-button:focus,
    .dt-button:active {
        outline: none !important;
        box-shadow: none !important;
    }



@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotating {
    animation: spin 0.8s linear;
}


/*-----------------------------------------------------------------------------*//**/

/* Overlay fondo oscuro */
#overlayLoader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Loader de Uiverse */
.loader {
    width: fit-content;
    font-weight: bold;
    font-family: monospace;
    font-size: 30px;
    background: radial-gradient(circle closest-side,#000 94%,#0000) right/calc(200% - 1em) 100%;
    animation: l24 1s infinite alternate linear;
}

    .loader::before {
        content: "Cargando...";
        line-height: 1em;
        color: #0000;
        background: inherit;
        background-image: radial-gradient(circle closest-side,#fff 94%,#000);
        -webkit-background-clip: text;
        background-clip: text;
    }

@keyframes l24 {
    100% {
        background-position: left;
    }
}