﻿@charset "UTF-8";

/* ==========================================================================
   1. VARIABLES Y ESTILOS BASE (INSTITUCIONAL)
   ========================================================================== */
:root {
    --blue-new: #0058b0;
    --blue-dark: #002f6c;
    --blue-soft: rgba(0, 88, 176, 0.1);
    --bg-light: #fdfbf7;
    --border-color: #e2e2e2;
    --danger-soft: rgba(255, 91, 87, 0.1);
    --danger-red: #ff5b57;
}

.bg-israel-new, .bg-blue-new {
    background-color: var(--blue-new) !important;
    color: #ffffff !important;
}

.text-blue-new {
    color: var(--blue-new) !important;
}

.label-small1-new {
    font-size: 0.75em;
    color: var(--blue-new);
    display: block;
    margin-bottom: 0rem;
}

.fw-600 {
    font-weight: 600;
}

.fw-800 {
    font-weight: 800;
}

.fs-13px {
    font-size: 13px !important;
}

/* ==========================================================================
   2. LOGIN Y ACCESO (-new)
   ========================================================================== */
.login-v1-new {
    background: linear-gradient(135deg, #002f6c 0%, #0058b0 100%) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper {
    width: 100%;
    max-width: 250px; /* Tamaño máximo deseado del logo */
    margin: 0 auto;
    overflow: hidden;
}

.login-logo-new {
    width: 100%; /* Se ajusta al ancho del wrapper */
    height: auto; /* Mantiene proporción */
    display: block;
    object-fit: contain;
}

.login-container-new {
    max-width: 420px;
    width: 100%;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.form-control-login-new {
    border-radius: 12px !important;
    border: 2px solid var(--border-color) !important;
    height: 50px !important;
    padding-left: 15px !important;
    font-weight: 600 !important;
    background-color: var(--bg-light) !important;
}

    .form-control-login-new:focus {
        border-color: var(--blue-new) !important;
        background-color: #ffffff !important;
        box-shadow: 0 0 8px rgba(0, 88, 176, 0.2) !important;
    }

.btn-login-new {
    background: var(--blue-new) !important;
    color: white !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 50px;
    border-radius: 12px !important;
    border: none !important;
    width: 100%;
    transition: all 0.3s ease;
}

    .btn-login-new:hover {
        background: var(--blue-dark) !important;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

/* ==========================================================================
   3. PANELES Y TARJETAS (KESHER STYLE)
   ========================================================================== */
.kesher-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 18px !important;
    background-color: var(--bg-light) !important;
    cursor: pointer;
}

.card-link:hover .kesher-card {
    transform: translateY(-12px) !important;
    background-color: #ffffff !important;
    box-shadow: 0 20px 40px rgba(0, 88, 176, 0.25) !important;
    border-color: var(--blue-new) !important;
}

/* Estructura Job Cards */
.job-card-principal, .job-card-new {
    background-color: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.job-card-principal {
    background-color: var(--bg-light) !important;
}

.job-card-header-principal, .job-card-header-new {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color) !important;
}

.job-card-header-new {
    background-color: var(--bg-light) !important;
}

.job-card-body-principal, .job-card-body-new {
    padding: 15px 20px !important;
}

/* Tabs */
.nav-tabs-kesher-new {
    border-bottom: 2px solid #e2e7eb !important;
}

    .nav-tabs-kesher-new .nav-link {
        border: none !important;
        color: #6c757d !important;
        font-weight: 600 !important;
        padding: 12px 20px !important;
        border-bottom: 3px solid transparent !important;
    }

        .nav-tabs-kesher-new .nav-link.active {
            color: var(--blue-new) !important;
            border-bottom: 3px solid var(--blue-new) !important;
        }

/* ==========================================================================
   4. FORMULARIOS E INPUTS
   ========================================================================== */
.label-new {
    font-weight: 800 !important;
    color: var(--blue-dark) !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 5px;
    display: block;
}

.form-control-new {
    border-radius: 10px !important;
    border: 2px solid var(--border-color) !important;
    background-color: var(--bg-light) !important;
    padding: 10px !important;
    font-weight: 600;
}

    .form-control-new:focus {
        border-color: var(--blue-new) !important;
        background-color: #ffffff !important;
        box-shadow: 0 0 10px rgba(0, 88, 176, 0.1) !important;
    }

/* ==========================================================================
   5. TABLAS (ESTILO KESHER)
   ========================================================================== */
.table-kesher-new {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
}

    .table-kesher-new thead th {
        color: var(--blue-dark) !important;
        font-weight: 800;
        text-transform: uppercase;
        font-size: 0.75rem;
        padding: 10px 15px !important;
        border: none !important;
    }

    .table-kesher-new tbody tr {
        transition: all 0.3s ease;
        background-color: #ffffff !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

        .table-kesher-new tbody tr:hover {
            background-color: #dbeafe !important;
            transform: scale(1.01);
        }

    .table-kesher-new td {
        padding: 12px 15px !important;
        border-top: 1px solid #f2f2f2 !important;
        border-bottom: 1px solid #f2f2f2 !important;
    }

        .table-kesher-new td:first-child {
            border-left: 5px solid var(--blue-new) !important;
            border-top-left-radius: 10px;
            border-bottom-left-radius: 10px;
        }

        .table-kesher-new td:last-child {
            border-right: 1px solid #f2f2f2 !important;
            border-top-right-radius: 10px;
            border-bottom-right-radius: 10px;
        }

    .table-kesher-new tbody tr:nth-child(even) td {
        /* Un tono grisaceo con tinte azul mas profundo para monitores con mucho brillo */
        background-color: #ecf0f5 !important;
        border-bottom: 1px solid #dce2e9;
    }

    .table-kesher-new tbody tr:nth-child(odd) td {
        background-color: #ffffff !important;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Efecto Hover mas marcado para guiar la vista */
    .table-kesher-new tbody tr:hover td {
        background-color: #e2e8f0 !important;
        transition: background-color 0.15s ease-in-out;
    }

    /* Resaltado especial para la celda del ID para que no se pierda */
    .table-kesher-new tbody tr td:first-child {
        border-left: 3px solid #0066cc; /* Una linea azul institucional al inicio de cada fila */
    }


/* ==========================================================================
   6. BOTONES
   ========================================================================== */
.btn-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

    .btn-new:hover {
        transform: translateY(-2px);
        filter: brightness(1.1);
    }

.btn-action-new {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .btn-action-new:hover {
        transform: translateY(-2px);
        background: #f8f9fa;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

.btn-success-new {
    background-color: #28a745;
    color: white;
}

.btn-warning-new {
    background-color: #ffc107;
    color: #212529;
}

.btn-danger-new {
    background-color: #dc3545;
    color: white;
}

.btn-primary-new {
    background-color: var(--blue-new);
    color: white;
}

/* ==========================================================================
   7. MODALES Y MENSAJES
   ========================================================================== */
.modal-content-new {
    border-radius: 15px !important;
    border: none !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

.modal-header-new {
    background-color: var(--blue-new) !important;
    color: white !important;
    padding: 20px !important;
    border-radius: 15px 15px 0 0 !important;
}

.border-israel-new {
    border-left: 5px solid var(--blue-new) !important;
}

.border-israel-new-soft {
    border-color: var(--blue-soft) !important;
}

.bg-blue-new-soft {
    background-color: var(--blue-soft) !important;
}

.bg-danger-soft {
    background-color: var(--danger-soft) !important;
}

.border-left-danger {
    border-left: 4px solid var(--danger-red) !important;
}

/* ==========================================================================
   8. COMPONENTES EXTRA
   ========================================================================== */
#loading-spinner {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.spinner-kesher-new {
    color: var(--blue-new);
}

.plantilla-card-new {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--blue-new);
    transition: all 0.3s ease;
}

    .plantilla-card-new:hover {
        transform: translateX(8px);
        background-color: #f0f7ff;
    }

/* Scrollbars */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #ced4da;
    border-radius: 10px;
}

.action-icon {
    transition: all 0.2s ease;
}

    .action-icon:hover {
        background-color: #f8f9fa !important;
        transform: translateY(-2px);
    }

    /* Ajuste para los iconos dentro de los botones redondos */
    .action-icon i {
        font-size: 14px;
    }

.select2-new {
    border: 1px solid #dce1e7 !important;
    font-weight: 600 !important;
    color: #0058b0 !important;
}

.border-dashed {
    border-style: dashed !important;
}

/* SIDEBAR KESHER NEW STYLE */
.sidebar-kesher-new {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100%;
    background: white;
    z-index: 1050;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .sidebar-kesher-new.active {
        right: 0;
    }

.sidebar-body-new {
    height: calc(100% - 60px);
    overflow-y: auto;
}

/* CALENDAR CUSTOMS */
#calendar {
    min-height: 700px;
    background: white;
}

.fc-header-toolbar {
    padding: 10px;
    margin-bottom: 0 !important;
}

.fc-event {
    transition: transform 0.2s, box-shadow 0.2s;
    border: none !important;
}

    .fc-event:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
        z-index: 5;
    }

/* PREDEFINED CARDS */
.cursor-move {
    cursor: move !important;
}

/* KESHER NEW - JOBS LIST STYLE */
.filter-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.datepicker-new {
    border-radius: 8px !important;
    border: 1px solid #dce1e7;
    font-weight: 600;
    color: #0058b0;
    text-align: center;
}

/* TABLA Y FILAS */
#trabajos-data-table {
    border-collapse: separate !important;
    border-spacing: 0 6px !important;
}

    #trabajos-data-table thead th {
        background: #f8fafc;
        text-transform: uppercase;
        font-size: 10px;
        font-weight: 800;
        color: #64748b;
        padding: 12px;
        border: none;
    }

    #trabajos-data-table tbody tr {
        background: white;
        transition: all 0.2s;
    }

        #trabajos-data-table tbody tr:hover {
            background: #f1f5f9 !important;
        }

    #trabajos-data-table td {
        padding: 12px;
        border: none;
        vertical-align: middle;
        font-size: 13px;
    }

/* BADGES PERSONALIZADOS */
.status-badge {
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    border: 1px solid transparent;
}

.status-submited {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.status-cancelled {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}

.status-inprogress {
    background: #f0fdf4;
    color: #15803d;
    border-color: #bbf7d0;
}

.status-done-pending {
    background: #fff7ed;
    color: #c2410c;
    border-color: #ffedd5;
}

.status-done {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.status-pending {
    background: #f9fafb;
    color: #374151;
    border-color: #e5e7eb;
}

/* SPINNER */
#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-cell {
    color: #0058b0;
    font-weight: 800;
}

.total-footer {
    background: #f8fafc !important;
    font-weight: 800;
    color: #0058b0;
}

/* Estilo para el selector de cantidad de registros */
.dataTables_length {
    margin-right: 20px; /* Espacio entre el selector y los botones */
}

    .dataTables_length select {
        border-radius: 6px !important;
        border: 1px solid #dce1e7 !important;
        padding: 4px 24px 4px 8px !important; /* Aumentamos el padding derecho a 24px */
        font-weight: 600;
        color: #0058b0;
        outline: none;
        /* --- ESTO ARREGLA EL ENCIMADO --- */
        appearance: none; /* Quita la flecha nativa del sistema */
        -webkit-appearance: none;
        -moz-appearance: none;
        /* Si Bootstrap está metiendo la flecha por background-image */
        background-position: right 6px center !important;
        background-repeat: no-repeat !important;
        min-width: 65px !important; /* Asegura espacio suficiente para 2 o 3 dígitos */
    }

    .dataTables_length label {
        font-size: 12px;
        font-weight: 700;
        color: #64748b;
        text-transform: uppercase;
    }
