/* 1. Quitar el splitter entre locked y normal */
.x-grid-splitter,
.x-grid-inner-locked .x-splitter,
.x-grid-inner-normal .x-splitter {
    width: 0 !important;
    border-width: 0 !important;
    background: transparent !important;
    display: none !important;
}

/* 2. Quitar la barra de scroll vertical del grid bloqueado */
.x-grid-inner-locked .x-scroller-vertical,
.x-grid-inner-locked .x-scrollbar-vertical,
.x-grid-inner-locked .x-scrollbar {
    width: 0 !important;
    display: none !important;
    border-width: 0 !important;
    background: transparent !important;
}
/* Quitar el doble borde en la unión locked/normal */
.x-grid-with-col-lines .x-grid-inner-locked .x-grid-cell,
.x-grid-with-col-lines .x-grid-inner-locked .x-column-header {
    border-right-width: 0 !important;
}

/* Quitar la “barra” entre las columnas bloqueadas y las normales */
.x-grid-with-col-lines .x-grid-inner-locked .x-grid-cell,
.x-grid-with-col-lines .x-grid-inner-locked .x-column-header {
    border-right-width: 0 !important;
}

/* Por si la raya viene del lado derecho */
.x-grid-with-col-lines .x-grid-inner-normal .x-grid-cell-first,
.x-grid-with-col-lines .x-grid-inner-normal .x-column-header-first {
    border-left-width: 0 !important;
}

/* Y de extra, si el tema mete un splitter, lo escondemos */
.x-grid-splitter,
.x-splitter-vertical {
    display: none !important;
    width: 0 !important;
    border-width: 0 !important;
    background: transparent !important;
}

.label-institucion-header {
    color: #154360;
    font-weight: bold;
    font-size: 14px;
    background-color: #eef3f7;
    padding: 4px 8px;
    border-radius: 4px;
}


/* Quitar el borde enorme que crea la "barra" en las columnas bloqueadas */
#gridAsistencia-locked,
#gridAsistencia-normal,
[id^="gridAsistencia-locked"],
[id*="gridAsistencia-locked"] {
    border-bottom-width: 0 !important;
    border-bottom: none !important;
}
/* Quitar el borde enorme que crea la "barra" en las columnas bloqueadas */
#gridResumen-locked,
#gridResumen-normal,
[id^="gridResumen-locked"],
[id*="gridResumen-locked"] {
    border-bottom-width: 0 !important;
    border-bottom: none !important;
}

///////////////////
/* ===== UNIFICAR LOCKED + NORMAL ===== */

/* Quita la barra divisoria */
.x-grid-locking-body .x-grid-locked-separator {
    display: none !important;
}

/* Elimina bordes laterales */
.x-grid-locking-body .x-grid-inner-locked {
    border-right: none !important;
}

.x-grid-locking-body .x-grid-inner-normal {
    border-left: none !important;
}

/* Igualar fondo */
.x-grid-locking-body .x-grid-inner-locked,
.x-grid-locking-body .x-grid-inner-normal {
    background-color: #ffffff;
}

/* Elimina sombras si existieran */
.x-grid-locking-body {
    box-shadow: none !important;
}

/* Bordes de celdas uniformes */
.x-grid-cell {
    border-right: 1px solid #d0d0d0;
}

/* Evita doble borde en la última columna locked */
.x-grid-inner-locked .x-grid-cell-last {
    border-right: 1px solid #d0d0d0 !important;
}

/* Oculto por defecto SOLO en la celda 
td.mi-action-column .x-action-col-icon {
    visibility: hidden;
}
*/
/* Mostrar al pasar el mouse en la fila 
.x-grid-row-over td.mi-action-column .x-action-col-icon {
    visibility: visible;
}
*/

/* ===== HOVER TIPO WINDOWS ===== */
.x-grid-row-over .x-grid-cell {
    background-color: #e6f0ff !important; /* azul claro */
    transition: background-color 0.2s ease-in-out;
}

/* Alternativa más intensa (puedes elegir) */
/*
.x-grid-row-over .x-grid-cell {
    background-color: #d6e6ff !important;
}
*/

/* ===== ICONO OCULTO POR DEFECTO ===== */
td.mi-action-column .x-action-col-icon {
    visibility: hidden;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease-in-out;
}

/* ===== ICONO APARECE SUAVE ===== */
.x-grid-row-over td.mi-action-column .x-action-col-icon {
    visibility: visible;
    opacity: 1;
    transform: scale(1);
}

/* ===== EFECTO HOVER EN EL ICONO ===== */
td.mi-action-column .x-action-col-icon:hover {
    filter: brightness(1.2);
    cursor: pointer;
}

/* ===== OPCIONAL: SELECCIÓN MÁS MODERNA ===== */
.x-grid-row-selected .x-grid-cell {
    background-color: #cce0ff !important;
}

td.mi-action-column .x-action-col-icon {
    background-color: #ffffff;
    border-radius: 50%;
    padding: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* ===== CELDA CONTENEDORA ===== */
td.gmail-action-cell {
    position: relative;
    overflow: visible !important;
}

/* ===== ICONO FLOTANTE ===== */
td.gmail-action-cell .x-action-col-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);

    opacity: 0;
    visibility: hidden;

    background: #ffffff;
    border-radius: 50%;
    padding: 4px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.2);

    transition: all 0.2s ease-in-out;
}

/* ===== APARECE AL HACER HOVER EN LA FILA ===== */
.x-grid-row-over td.gmail-action-cell .x-action-col-icon {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
}

/* ===== EFECTO HOVER EN ICONO ===== */
td.gmail-action-cell .x-action-col-icon:hover {
    background-color: #e6f0ff;
    cursor: pointer;
}

/* ===== HOVER AZUL TIPO WINDOWS ===== */
.x-grid-row-over .x-grid-cell {
    background-color: #e6f0ff !important;
}

td.gmail-action-cell .x-action-col-icon {
    right: auto;
    display: inline-block;
    margin-left: 5px;
    position: relative;
    top: auto;
    transform: scale(0.8);
}

.x-grid-row-over td.gmail-action-cell .x-action-col-icon {
    transform: scale(1);
}

td.gmail-action-cell .x-action-col-icon {
    width: 20px;
    height: 20px;
}

.fila-cerrada .x-grid-cell {
    background-color: #d4edda !important;
}

.x-grid-row {
    cursor: pointer;
}
.mi-toolbar {
    background-color: #27AE60 !important;
}

.x-toolbar-default {
    background-color: #27AE60 !important;
}

body {
    background: linear-gradient(to bottom, #dfe9f3, #ffffff);
}

body {
    background: #eaf2f8;
}

.login-box {
    background-color: #ffffff !important;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.x-form-text {
    border-radius: 6px !important;
    padding: 5px;
}

.btn-login {
    background: linear-gradient(to bottom, #2E86C1, #1B4F72) !important;
    border-radius: 8px !important;
    border: 1px solid #1B4F72 !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

.btn-login .x-btn-inner {
    color: #ffffff !important;
    font-weight: bold;
    font-size: 14px;
}

.btn-login:hover {
    background: linear-gradient(to bottom, #3498DB, #154360) !important;
}

.btn-login:active {
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.icon-login {
    background-image: url('img/login.png') !important;
    background-size: 16px 16px;
}

.btn-login {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46,134,193,0.6); }
    70% { box-shadow: 0 0 0 10px rgba(46,134,193,0); }
    100% { box-shadow: 0 0 0 0 rgba(46,134,193,0); }
}

/* Fondo general */
body {
    background: linear-gradient(135deg, #eef2f7, #d6e4f0);
    font-family: Arial, sans-serif;
}

/* Card login */
.login-card {
    background: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    padding: 20px;
}

/* Inputs */
.x-form-text {
    border-radius: 6px !important;
    height: 30px;
}

/* Botón moderno */
.btn-primary {
    background-color: #2E86C1 !important;
    border-radius: 8px !important;
    border: none !important;
}

.btn-primary .x-btn-inner {
    color: #fff !important;
    font-weight: bold;
    font-size: 14px;
}

/* Hover */
.btn-primary:hover {
    background-color: #1B4F72 !important;
}

/* Título */
.titulo-login {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #2E4053;
    margin-bottom: 10px;
}

/* Subtexto */
.sub-login {
    text-align: center;
    font-size: 12px;
    color: #7B7D7D;
    margin-bottom: 15px;
}

body::before {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    top: 0;
    left: 0;
}

body {
    background: url('../img/fondo.jpg') no-repeat center center fixed;
    background-size: cover;
}