﻿.Azul_institucional {
    background-color: #005BAC;
}

.Azul_claro {
    background-color: #4A90E2;
}

.Gris_medio {
    background-color: #DCDCDC;
}

.Blanco {
    background-color: #FFFFFF;
}

.Gris_claro {
    background-color: #F5F5F5;
}

.Tipografia {
    font-family: Segoe UI;
}

.Margen_superior {
    margin-top: 30px;
}

.T100 {
    width: 100%;
}

.T150 {
    width: 200px;
}

.Crear {
    width: 100px;
    background-color: dodgerblue;
    color: white;
}

.Editar {
    background-color: olivedrab;
    color: white;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    padding: 5px;
    margin-right: 6px;
    text-decoration: none;
}

.Eliminar {
    background-color: coral;
    color: white;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    padding: 5px;
    margin-right: 6px;
    text-decoration: none;
}

.Detalle {
    background-color: cornflowerblue;
    color: white;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    padding: 5px;
    margin-right: 6px;
    text-decoration: none;
}

.ExportarPDF {
    background-color: darkred;
    color: white;
    border-radius: 6px;
    width: 40px;
    height: 40px;
    font-size: 18px;
    padding: 5px;
    margin-right: 6px;
    text-decoration: none;
}

.Detalle:hover {
    color: black;
    font-size: 20px;
}

.Editar:hover {
    color: black;
    font-size: 20px;
}

.Eliminar:hover {
    color: black;
    font-size: 20px;
}

.ExportarPDF:hover {
    color: black;
    font-size: 20px;
}



.table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}
    /* Encabezado azul institucional*/
    .table thead th {
        background-color: #005BAC;
        color: white;
        text-align: center;
        white-space: nowrap;
    }

    /* Filas alternadas gris/blanco */
    .table tbody tr:nth-child(even) {
        background-color: #f2f2f2;
        text-align: left;
    }

    .table tbody tr:nth-child(odd) {
        background-color: #ffffff;
        text-align: left;
    }

    .table td, .table th {
        border: 1px solid #ddd;
        white-space: nowrap;
    }



    .table tbody tr:hover {
        background-color: #ffe5b4;
        cursor: pointer;
    }

.administrar {
    width: 180px;
    max-width: 180px;
    min-width: 180px;
}


.ExportarExcel {
    width: 40px;
    height: 40px;
    color: white;
    background-color: seagreen;
    font-size: 18px;
    padding: 5px;
}



thead {
    font-size: 14px;
}

tbody {
    font-size: 12px;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #F5F5F5;
    margin: 0;
    padding: 0;
    color: #333;
    overflow: hidden;
    
}

.container-hsjd {
    max-width: 800px;
    margin: 15px auto;
    background: #FFFFFF;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    
}

.titulo {
    color: #005BAC;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.subtitulo {
    color: #6E6E6E;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    color: #6E6E6E;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: 0.2s;
}

    .form-control:focus {
        border-color: #4A90E2;
        outline: none;
        box-shadow: 0 0 4px rgba(74,144,226,0.4);
    }

.btn {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #4A90E2;
    color: #FFFFFF;
}

    .btn-primary:hover {
        background-color: #005BAC;
    }

.btn-secondary {
    background-color: #6E6E6E;
    color: #FFFFFF;
}

    .btn-secondary:hover {
        background-color: #4d4d4d;
    }

.btn-danger {
    background-color: #d9534f;
    color: #FFFFFF;
}

    .btn-danger:hover {
        background-color: #b52b27;
    }

.table-hsjd {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

    .table-hsjd th {
        background-color: #005BAC;
        color: #FFFFFF;
        padding: 10px;
        text-align: left;
    }

    .table-hsjd td {
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    .table-hsjd tr:nth-child(even) {
        background-color: #F5F5F5;
    }

    .table-hsjd tr:hover {
        background-color: #e9f2fb;
    }

.link {
    color: #005BAC;
    text-decoration: none;
    font-size: 14px;
}

    .link:hover {
        text-decoration: underline;
    }

.text-danger {
    color: #d9534f;
    font-size: 12px;
}

.acciones {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.header-hsjd {
    background-color: #005BAC;
    color: #FFFFFF;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 500;
}

.centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.full-width {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }
}
.layout-container {
    display: flex;
    flex: 1;
}


.sidebar {
    width: 100px;
    height: 100vh;
    min-width: 100px;
    min-height: 100vh;
    background-color: #e9e9e9;
    padding: 10px;
}

.container {
    flex: 1;
    padding: 20px 20px 20px 20px;
    width: 100vh;
    height: 700px;
    overflow: hidden;
}

/* 🔥 SCROLL SOLO TABLA */
.contenedor-tabla-scroll {
    width: 100%;
    max-width: 100%;
    max-height: 560px;
    overflow-x: auto;
    overflow-y: auto;
    background-color: white;
    margin-top: 10px;
}





.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.btn-3d {
    display: block;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    background: linear-gradient(145deg,#005BAC,#4A90E2);
    box-shadow: 4px 4px 8px rgba(0,0,0,0.6), -2px -2px 4px rgba(255,255,255,0.1);
    transition: all 0.15s ease-in-out;
}

    .btn-3d:hover {
        transform: translateY(-2px);
        box-shadow: 6px 6px 12px rgba(0,0,0,0.7), -2px -2px 4px rgba(255,255,255,0.1);
        color:black;
    }

    .btn-3d:active {
        transform: translateY(2px);
        box-shadow: inset 2px 2px 6px rgba(0,0,0,0.7);
    }



.cabecera {
    position: relative;
    display: flex;
    align-items: center;
    height: 60px;
    background-color: #005BAC; /* opcional */
    color: white;
    padding: 10px 10px 10px 10px;
    font-size: 22px;
}

.pie {
    height: 60px;
    width: 100%;
    background-color: #005BAC;
    text-align: center;
    padding: 10px;
}

dt {
    white-space:nowrap;

}
dd {
    word-break: break-word;
}


.titulo-izq {
    font-weight: 500;
}

.titulo-centro {
    position: absolute;
    right: 0;
    transform: translateX(-50%);
    font-weight: bold;
}

.btn-finalizar {
    color: #FFFFFF;
    background-color: dodgerblue;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: 0.2s;
    padding: 10px 10px 10px 10px;
    
}

    .btn-finalizar:hover {
        color: black;
    }

.btn.Crear {
    min-width: 120px; 
    text-align: center;
}
/* ================================
   CONFIGURACIÓN DE PÁGINA
================================ */

/* Vertical */
@page vertical {
    size: letter portrait;
    margin: 0.1in; /* margen mínimo realista */
}

/* Horizontal */
@page horizontal {
    size: letter landscape;
    margin: 0.1in;
}


/* ================================
   ESTILOS DE IMPRESIÓN
================================ */
@media print {

    /* Aplicar formato según clase del body */
    body.vertical {
        page: vertical;
    }

    body.horizontal {
        page: horizontal;
    }

    /* Ocultar elementos */
    .noimprimir {
        display: none !important;
    }

    /* Mostrar solo en impresión */
    .solo-imprimir {
        display: block !important;
    }

    /* Limpiar estilos visuales innecesarios */
    * {
        overflow: visible !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Ajuste general de página */
    html,
    body {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Expandir contenedores */
    .container,
    .container-hsjd,
    .card-acceso,
    .reporte {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Escalar contenido específico (ajustalo si lo necesitás) */
    .contratoDetails {
        transform: scale(0.8);  
        transform-origin: top left;
       
    }
    dt, dd {
        width: 100%;
    }

    /* Evitar cortes feos en tablas */
    table {
        width: 100%;
        border-collapse: collapse;
        page-break-inside: auto;
    }

    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    th, td {
        border: 1px solid #000;
        padding: 6px;
        font-size: 11px;
    }
}


.contenedor-superior-tabla {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin: 15px 0 10px 15px;
    flex-wrap: wrap;
}

/* 🔥 todos los inputs, selects y buscador con misma altura */
#Tabla_filter input,
#Tabla_length select,
#FiltrarPrioridad,
#FiltrarMes,
#FiltrarAnio {
    height: 40px !important;
    padding: 0 10px;
    font-size: 14px;
    border-radius: 8px;
}

/* ancho buscador */
#Tabla_filter input {
    width: 220px;
}

/* label limpio */
#Tabla_filter label,
#Tabla_length label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

/* quitar estilos datatables */
#Tabla_filter,
#Tabla_length {
    margin: 0 !important;
    float: none !important;
}

/* 🔥 botones mismo tamaño */
.Crear,
.ExportarExcel,
.btn-finalizar {
    height: 40px !important;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 8px;
}

/* estilo finalizar */
.btn-finalizar {
    background-color: dodgerblue;
    color: white;
    border: none;
}

.btn-finalizar:hover {
    background-color: #0b5ed7;
    color: white;
}

/* mantener todo alineado */
div.dataTables_wrapper div.dataTables_length,
div.dataTables_wrapper div.dataTables_filter {
    float: none !important;
    text-align: left !important;
}

/* paginación centrada */


div.dataTables_wrapper div.dataTables_paginate {
    float: none !important;
    text-align: center !important;
    margin-top: 10px;
}
    
h3{
    text-align: center;
}
