﻿
html, body {
    height: 100%;
    /*background-color: #96d700;*/
}

/* Elegante fondo degradado idéntico a frmBoletaServicio */
body {
    min-height: 100%; /* Cambiado de height a min-height para permitir scroll si el Grid crece */
    background: linear-gradient(135deg, #96d700, #7fb800);
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 🎯 NUEVO: Obliga al formulario de ASP.NET a heredar el Flexbox del Body */
#form1, #form2 {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    flex: 1 0 auto;
}

/* Margen superior unificado para eliminar separaciones con el Navbar verde */
main {
    flex: 1 0 auto;
    margin-top: 115px;
}

/*MENU PRINCIPAL ADMIN Y OPERATIVO*/
.dashboard-card {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    height: 100%;
    cursor: pointer; /* 🎯 Hace que toda la tarjeta muestre el cursor de mano */
}

    .dashboard-card:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 12px 35px rgba(0,0,0,0.3);
    }

    .dashboard-card img {
        width: 100px;
        height: 100px;
        object-fit: contain;
        filter: drop-shadow(5px 10px 10px rgba(0,0,0,0.5));
        margin-bottom: 15px;
    }

    /* Evita que el tooltip herede el evento de clic de la tarjeta padre */
    .dashboard-card .bi-info-circle-fill {
        z-index: 2;
    }

.btn-dashboard {
    background: #000080;
    color: white;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: bold;
    width: 100%;
    max-width: 220px;
    position: relative;
    z-index: 1;
}

    .btn-dashboard:hover {
        background: #0000b3;
    }

.last-card-center {
    grid-column: span 4;
    display: flex;
    justify-content: center;
}

/*MENU PRINCIPAL ADMIN Y OPERATIVO*/

/* Encabezado azul marino personalizado */
.card-header-custom {
    background-color: #000080;
    color: white;
    font-weight: bold;
    border-radius: 8px 8px 0 0 !important;
}

/* Estilos de paginación Bootstrap 5 */
.pagination-container table {
    width: auto;
    margin: 0 auto;
}

    .pagination-container table td {
        padding: 0 4px;
    }

.pagination-container a,
.pagination-container span {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.pagination-container a {
    background-color: #fff;
    color: #000080;
}

    .pagination-container a:hover {
        background-color: #e9ecef;
        color: #000060;
        border-color: #ced4da;
        transform: translateY(-1px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

.pagination-container span {
    background-color: #000080;
    color: #fff;
    border-color: #000080;
    box-shadow: 0 4px 6px rgba(0, 0, 128, 0.15);
}

/* Adaptabilidad horizontal fluida para la tabla */
.table {
    table-layout: auto !important;
    width: 100%;
}

    /* Columna de numeración fija */
    .table th:first-child,
    .table td:first-child {
        width: 60px !important;
        max-width: 60px !important;
        min-width: 60px !important;
        display: table-cell !important;
        text-align: center !important;
    }

.table-responsive {
    width: 100%;
    margin-bottom: 1rem;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}
/* Estilos de paginación Bootstrap 5 */

/* Burbuja de usuario en el menú */
.user-bubble {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 6px 20px 6px 8px !important;
    display: flex !important;
    align-items: center;
    transition: all 0.25s ease;
}

    .user-bubble:hover, .user-bubble:focus {
        background: rgba(255, 255, 255, 0.35);
    }

.user-meta {
    line-height: 1.2;
}
/* Burbuja de usuario en el menú */

/*etiqueta de espacialidad abajo del nombre de cada usuario*/

.badge-specialty-new {
    background-color: #000080;
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/*etiqueta de espacialidad abajo del nombre de cada usuario*/

.custom-dropdown {
    border-radius: 12px !important;
    padding: 8px 0;
}

/* Control adaptativo para móviles */
@media (max-width: 991.98px) {
    main {
        margin-top: 130px;
    }
}

/*Seccion de titulo para para los forms*/
.section-title {
    color: #000080;
    border-bottom: 2px solid #000080;
    padding-bottom: 5px;
    font-weight: bold;
}

/*Checkbox ocultos para frmBoletaServicio*/
.chk-custom input[type="checkbox"] {
    display: none;
}

.chk-custom label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
}

    .chk-custom label:before {
        content: "";
        position: absolute;
        left: 0;
        top: 2px;
        width: 20px;
        height: 20px;
        border: 2px solid #999;
        border-radius: 4px;
        background: transparent;
    }

.chk-custom input[type="checkbox"]:checked + label:before {
    background: #0d6efd;
    border-color: #0d6efd;
}
/*Fin Checkbox ocultos para frmBoletaServicio*/



/*para todas las paginas*/
/*footer {
    background-color: #96d700;
    color: white;
    padding: 1rem;
}*/
footer {
    flex-shrink: 0; /* Mantiene el footer pegado abajo pase lo que pase */
    background-color: #96d700;
    color: white;
    padding: 1rem;
    width: 100%;
}

/* 🔄 ADICIONAL: Arreglo de ancho responsivo para el botón de Submit del dashboard en móviles */
@media (max-width: 576px) {
    .btn-dashboard {
        max-width: 100% !important;
        font-size: 0.9rem;
    }
}

/* Estilo para etiquetas informativas fijas */
.info-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 700;
    text-transform: uppercase;
}

/*DISEÑO DE BOTONES*/

/* Contenedor alineado y formal */
.btn-institucional-container {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 15px;
    background-color: #f8f9fa; /* Fondo gris muy claro típico de sistemas */
    border-bottom: 1px solid #e9ecef;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Base del botón Institucional general */
button.btn-inst, a.btn-inst, input.btn-inst {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    border-radius: 4px; /* Bordes corporativos sutiles */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-decoration: none; /* Evita subrayado en LinkButton */
    /* ESTADO INICIAL PARA TODOS LOS BOTONES */
    background-color: #FFFFFF !important; /* Fondo blanco */
    border: 1px solid #000000 !important; /* Borde negro */
    color: #000000 !important; /* Letra negra */
}

    /* Efecto al hacer clic en cualquier variante */
    button.btn-inst:active, a.btn-inst:active, input.btn-inst:active {
        transform: translateY(1px);
        box-shadow: none;
    }

/* --- HOVERS ESPECÍFICOS POR ACCIÓN --- */

/* GUARDAR / REGISTRAR: Fondo Azul Marino al pasar el mouse */
.btn-inst-save:hover {
    background-color: #000080 !important; /* Azul Marino */
    border-color: #000000 !important; /* Mantiene Borde Negro */
    color: #FFFFFF !important; /* Letra Blanca */
}

/* ACTUALIZAR: Fondo Azul Secundario al pasar el mouse */
.btn-inst-update:hover {
    background-color: #0284c7 !important; /* Azul Gestión */
    border-color: #000000 !important; /* Mantiene Borde Negro */
    color: #FFFFFF !important; /* Letra Blanca */
}

/* BUSCAR REGISTROS: Fondo Gris Oscuro / Pizarra al pasar el mouse */
.btn-inst-search:hover {
    background-color: #475569 !important; /* Gris Pizarra */
    border-color: #000000 !important; /* Mantiene Borde Negro */
    color: #FFFFFF !important; /* Letra Blanca */
}

/* IMPRIMIR: Fondo Gris Claro al pasar el mouse (Acción secundaria) */
.btn-inst-print:hover {
    background-color: #f1f5f9 !important; /* Gris muy claro */
    border-color: #000000 !important; /* Mantiene Borde Negro */
    color: #1e293b !important; /* Letra Oscura para contraste */
}

/* CANCELAR / VOLVER: Fondo Rojo Institucional o Gris Neutro al pasar el mouse */
.btn-inst-cancel:hover {
    background-color: #ff0505 !important; /* Gris suave de cancelación */
    border-color: #000000 !important; /* Mantiene Borde Negro */
    color: #ffffff !important; /* Letra Oscura */
    font-weight: bold;
}

/* Descargar / VOLVER: Fondo Rojo Institucional o Gris Neutro al pasar el mouse */
.btn-inst-download:hover {
    background-color: #7fb800 !important; 
    border-color: #000000 !important; 
    color: #ffffff !important; 
    font-weight: bold;
}


/*DISEÑO PERSONALIZADO PARA MENÚ DE OPERATIVO*/

/* 🧊 TARJETAS GLASS */
.card-menu {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2), inset 0 0 10px rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

    /* ✨ HOVER PRO */
    .card-menu:hover {
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 15px 35px rgba(0,0,0,0.3), inset 0 0 15px rgba(255,255,255,0.3);
    }

/* 🖼️ ICONOS 3D */
.icon-3d {
    width: 100px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.card-menu:hover .icon-3d {
    transform: scale(1.1) rotate(3deg);
}

/* 🏷️ TEXTO */
.card-menu span {
    background: #000080;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    width: 100%;
    max-width: 220px;
}

/* 📱 RESPONSIVE */
@media (max-width: 576px) {
    .icon-3d {
        width: 80px;
    }

    .card-menu {
        padding: 20px 10px;
    }

    .card-menu span {
        font-size: 14px;
        padding: 8px;
    }
}

/*BORDE ROJO SIN JAVASCRIPT*/
.border-rojo {
    border: 2px solid red !important; /* El !important asegura que le gane a Bootstrap */
}