﻿/*body {
    background-color: ghostwhite;
    overflow-x: hidden;
}*/
h2{
   color:dodgerblue;
}
h3 {
    color: black;
    background-color:ghostwhite;
}

a,a:hover,a:active{
    color:black;
}
.PanelMaster {
    width: 100%;
    min-height: 100vh; /* Ocupa toda la pantalla */
    padding: 0;
    margin: 0;
    display: block;
    overflow-y: auto; /* Si el contenido es más grande → scroll horizontal */
}
.tbprincipal {
    background-color: #0141ac;
    height:50px;
    border-collapse:collapse;
}
.tbapp {
    background-color: #0141ac;
    border-collapse: collapse;
}

.tbia {
    background-color: #0141ac;
    border-color: blue;
    border-style: solid;
    border-width: 5px;
    border-radius: 10px;
    color: white;
}
.bt {
    background-color: blue;
    color: white;
    border-style: solid;
    border-color: #0141ac;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;

}
.bts {
    background-color: blue;
    color: white;
    border-style: solid;
    border-color:white;
    height: 30px;
    border-radius: 10px;
    cursor: pointer;
}
.bttbsuperior {
    height: 50px;
    width: 200px;
    font-size: large;
    color: white;
    background-color: #0141ac;
    border-style: none;
    cursor: pointer;
}

.btsuperior {
    color: #000000;
    height: 35px;
    width: 200px;
    cursor: pointer;
    border-radius: 10px;
}
.btsuperiors {
    background-color:lightblue ;
    color: #000000;
    height: 35px;
    width: 200px;
    cursor: pointer;
    border-radius: 10px;
    text-shadow: ghostwhite 0 1px;
}
.btgr {
    background-color: transparent;
    border-style: none;
    color:black;
    width: 100%;
    cursor: pointer;
}
.bttbmenu{
    background-color: transparent;
    border-style: none;
    color:white;
    width: 100%;
    cursor: pointer;
    
    
}
.lbtmenu{
    background-color:white;
    height:50px;
    width:90%;
    text-align:center;
    border-bottom-left-radius:10px;
    border-top-left-radius:10px;
}
.tb {
    background-color: ghostwhite;
    border-style: solid;
    border-color: #0141ac;
    border-radius: 10px;
    width: 80%;
}
.btia {
    background-color: #0141ac;
    color:white;
    border-color:white;
    border-radius:10px;
}
.grcabeza{
    border-style:none;
    border-bottom-style:solid;
    text-align:center;
    
}
.grtabla {
    border-style: none;
    border-top-style: solid;
    border-bottom-style: solid;
    text-align: center;
}
.tx, .dr {
    border-style: none;
    background-color: azure;
    border-bottom-style: solid;
    border-bottom-color: dodgerblue;
    width: 90%;
    border-radius: 5px;
}
.mtx {
    border-bottom-style: solid;
    border-color: dodgerblue;
    height: 35px;
    font-size: x-large;
}
.mdr {
    height: 35px;
    font-size: x-large;
}
.mbt {
    height: 35px;
    font-size: x-large;
}
.mn {
    text-align: left;
    border-color: dodgerblue;
    background-color: dodgerblue;
}
.pni {
    background-image: linear-gradient(ghostwhite,dodgerblue);
    color: #000000;
}
.mni {
    text-shadow: ghostwhite 0 1px;
    color: #000000;
    border-bottom-style: solid;
}
.mnis {
    border-bottom-style: solid;
}
.tbcabecera {
    background-color: blue;
    color:white;
}
.panel-fondo {
    background-image: image(img/fondologin.jpg); /* url('~/img/fondologin.jpg');*/
    background-size: cover; /* ajusta sin deformar */
    background-position: center;
    background-repeat: no-repeat;
}

.btn-salir {
    width: 120px;
    cursor: pointer;
}
/* ==============================
   RESET BASICO
================================ */

/*body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
}*/
html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden; /* 🔥 elimina scroll del navegador */
}

/* ==============================
   CONTENEDOR PRINCIPAL
================================ */

.layout-container {
    height: 100dvh;
    display: flex;
    flex-direction: column;
}
/* Contenedor */
.input-modern-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 10px;
}

/* Input */
.input-modern {
    width: 100%;
    height: 50px;
    padding: 0 50px 0 15px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    background: #f2f2f2;
    font-size: 16px;
    transition: 0.2s ease;
}

    /* Focus azul como imagen */
    .input-modern:focus {
        outline: none;
        border-color: #2f6bff;
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(47,107,255,0.15);
    }

/* Botón ojo */
.btn-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: #555;
    padding: 5px;
}

    .btn-eye:hover {
        color: #2f6bff;
    }

/* Error */
.login-error {
    display: block;
    margin-top: 6px;
    color: #e53935;
    font-size: 14px;
    text-align: left;
}

/* ==============================
   HEADER SUPERIOR
================================ */

.layout-headerp {
    background: #1746a2;
    color: white;
    padding: 6px 20px 0 20px;
    position: relative;
    z-index: 1100;
    flex: 0 0 auto;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    
}

/* Logo */
.logo-menu {
    max-height: 38px;
    cursor: default;
}

/* ==============================
   TABS SUPERIORES DESKTOP
================================ */

.tabs-superior {
    display: flex;
    gap: 10px;
/*    border-bottom: 2px solid rgba(255,255,255,0.4);
 */  margin-left: 190px; 
}

.bttbsuperior {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-size: 14px;
    color: white;
    background: transparent;
    border: none;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .bttbsuperior:hover {
        background: rgba(255,255,255,0.15);
       
    }

    /* Tab activo desktop */
    .bttbsuperior.activo {
        background: #f4f6f9;
        color: #1746a2;
        font-weight: 600;
        position: relative;
        top: 2px;
    }

/* ==============================
   CUERPO PRINCIPAL
================================ */

.layout-body {
    display: flex;
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 0;
}

/* ==============================
   SIDEBAR DESKTOP
================================ */

.layout-sidebar {
    flex: 0 0 220px;
    overflow: hidden;
/*    width: 220px;
*/    background: #243b5a;
    display: flex;
    flex-direction: column;
    padding: 0;
}

/* Items menú lateral */
.menu-item {
    display: block;
    width: 100%;
    padding: 12px 18px;
    background: transparent;
    border: none;
    color: white;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .menu-item:hover {
        background: rgba(255,255,255,0.1);
    }

    .menu-item.activo {
        background: white;
        color: #1746a2;
        font-weight: 600;
        border-left: 4px solid #1746a2;
    }

/* ==============================
   AREA PRINCIPAL
================================ */

.layout-main {
    flex: 1 1 auto;
    background: #f4f6f9;
    padding: 20px;
    overflow-y: auto; /* 🔥 scroll vertical */
/*    overflow-x: auto;
*/    min-height: 0;
    margin-top: -2px; /* une con pestaña activa */
}

/* ==============================
   OVERLAY MOVIL
================================ */

.menu-overlay {
    display: none;
}

/* ==============================
   RESPONSIVE MOVIL
================================ */

@media (max-width: 768px) {
    
    .layout-container {
        height: 100vh;
    }
    /* Logo como botón */
    .logo-menu {
        cursor: pointer;
    }

    /* Tabs móvil */
    .tabs-superior {
        display: flex;
        justify-content: space-around;
        padding: 8px 0;
        border-bottom: none;
        margin-left:0;
    }

    .bttbsuperior {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6px;
    }

        /* Ocultar texto tabs */
        .bttbsuperior .text-top {
           /* display: none;*/
           font-size:5px;
        }

    /* Icono circular */
    .icon-top {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 2px solid white;
        color: white;
        font-size: 18px;
        transition: all 0.2s ease;
    }

    /* Activo móvil */
    .bttbsuperior.activo .icon-top {
        background: white;
        color: #1746a2;
        border-color: #1746a2;
        transform: scale(1.05);
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }

    /* Layout móvil */
    .layout-body {
        display: flex;
        flex-direction: row;
        min-height: 0;
    }

    /* Sidebar tipo drawer */
    .layout-sidebar {
        position: fixed;
        top: 0;
        left: -240px;
        width: 240px;
        height: 100vh;
        background: #243b5a;
        transition: left 0.3s ease;
        z-index: 1050;
        overflow-y: auto;
        padding-top: 60px;
    }

        .layout-sidebar.mostrar {
            left: 0;
        }

    /* Contenido ocupa todo */
    .layout-main {
        width: 100%;
        margin: 0;
        padding: 20px;
    }

    /* Overlay */
    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 1000;
        display: none;
    }

        .menu-overlay.mostrar {
            display: block;
        }
}

/* LOGIN APP*/
/* FONDO */
.login-wrapper {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* CONTENEDOR */
.login-container {
    width: 100%;
    max-width: 420px;
}

/* TARJETA */
.login-card {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    text-align: center;
}

/* LOGO */
.login-logo {
    width: 120px;
    margin-bottom: 20px;
}

/* TÍTULO */
.login-card h2 {
    margin-bottom: 5px;
}

.login-card p {
    color: #666;
    margin-bottom: 25px;
}

/* INPUTS */
.login-input {
    width: 100%;
    height: 45px;
    margin-bottom: 15px;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 15px;
    transition: 0.3s;
}

    .login-input:focus {
        border-color: #0d6efd;
        outline: none;
        box-shadow: 0 0 5px rgba(13,110,253,0.4);
    }

/* CHECK */
.login-check {
    display: block;
    text-align: left;
    margin-bottom: 20px;
    font-size: 14px;
}

/* BOTÓN */
.login-btn {
    width: 100%;
    height: 45px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(45deg, #0d6efd, #00c6ff);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

    .login-btn:hover {
        opacity: 0.9;
    }

/* FOOTER */
.login-footer {
    margin-top: 25px;
    font-size: 13px;
    color: #888;
}

/* RESPONSIVE EXTRA */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
}

/* =====================================
   BF - BOTONES FILTRO GRILLA (CENTRADO)
===================================== */

/* Contenedor centrado */
.bf-botones {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: #ffffff;
    border-bottom: 3px solid #2f4ea2;
    margin-bottom: 15px; /* 🔥 separación inferior */
}
    /* Botones */
    .bf-botones a,
    .bf-botones input,
    .bf-botones button {
        border: none !important;
        background: transparent;
        color: #2f4ea2;
        padding: 8px 25px;
        font-size: 14px;
        cursor: pointer;
        position: relative;
    }

        /* Separador vertical */
        .bf-botones a:not(:last-child)::after,
        .bf-botones input:not(:last-child)::after,
        .bf-botones button:not(:last-child)::after {
            content: "";
            position: absolute;
            right: 0;
            top: 25%;
            height: 50%;
            width: 1px;
            background: #dcdcdc;
        }

        /* Hover */
        .bf-botones a:hover,
        .bf-botones input:hover,
        .bf-botones button:hover {
            background: #f4f6f9;
        }

    /* Activo */
    .bf-botones .bf-activo {
        background: #2f4ea2 !important;
        color: #ffffff !important;
        position: relative;
        z-index: 2;
    }

        /* 🔥 Oculta la división cuando está activo */
        .bf-botones .bf-activo::after {
            display: none !important;
        }

        /* También oculta la línea del botón anterior */
        .bf-botones .bf-activo + a::after,
        .bf-botones .bf-activo + input::after,
        .bf-botones .bf-activo + button::after {
            display: none !important;
        }
