/* ==========================================
   FONDO GENERAL
   ========================================== */

html,
body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient( circle at center, #163f84 0%, #0d2d67 45%, #071f4f 100% );
}

/* ==========================================
   LINEAS DECORATIVAS
   ========================================== */

.linea-superior {
    position: fixed;
    top: 24px;
    left: 0;
    width: 70px;
    height: 4px;
    background: #d4b100;
    z-index: 999;
}

.linea-inferior {
    position: fixed;
    right: 0;
    bottom: 24px;
    width: 70px;
    height: 4px;
    background: #d4b100;
    z-index: 999;
}

.detalle-table td {
    word-break: break-word;
}

/* ==========================================
   PAGINA AYUDA
   ========================================== */

.ayuda-container {
    background: #ffffff;
    width: calc(100% - 40px);
    margin: 20px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,.20);
}

    .ayuda-container h1 {
        color: #003A70;
        margin-bottom: 25px;
    }

    .ayuda-container h3 {
        color: #003A70;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .ayuda-container p,
    .ayuda-container td,
    .ayuda-container th {
        color: #212529;
    }

.texto-ayuda {
    font-size: 18px;
}

.codigo {
    background: #f5f5f5;
    border-left: 4px solid #003A70;
    padding: 10px;
    margin: 10px 0;
    font-family: Consolas;
    font-weight: 600;
}

/* ==========================================
   ALERTA SEGURIDAD
   ========================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.70);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-aviso {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 380px;
}

.img-aviso {
    width: 100% !important;
    max-width: 340px !important;
    height: auto !important;
}

.contenedor-boton-aviso {
    text-align: center;
    margin-top: 15px;
}

.btn-aceptar-aviso {
    margin-top: 12px;
    background-color: #003A70;
    color: white;
    border: none;
    border-radius: 16px;
    padding: 8px 20px;
    min-width: 110px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.20);
}

    .btn-aceptar-aviso:hover {
        background-color: #004B8D;
    }

/* ==========================================
   TITULO
   ========================================== */

.titulo-contenedor {
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
}

.titulo-bloque {
    width: 100%;
    text-align: center;
}

.titulo-principal {
    text-align: center;
    color: #ffffff;
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
}

.subtitulo-principal {
    text-align: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-top: 2px;
}

/* ==========================================
   CONTENEDOR PRINCIPAL
   ========================================== */

.contenedor-principal {
    width: 100%;
}

/* ==========================================
   FORMULARIO
   ========================================== */

.form-label {
    font-size: 12px;
    font-weight: 600;
}

.form-control {
    font-size: 13px;
    height: 40px;
}

.btn {
    font-size: 13px;
}

.registros {
    margin-top: 5px;
    font-size: 13px;
    font-weight: 600;
}

/* ==========================================
   PROVEEDOR SELECCIONADO
   ========================================== */

.proveedor-seleccionado {
    padding: 8px !important;
    margin-top: 10px;
}

.nombre-proveedor {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.cedula-proveedor {
    font-size: 13px;
    color: #d6e4ff;
}

/* ==========================================
   TABLA PRINCIPAL
   ========================================== */

.table {
    font-size: 12px;
    background: white;
}

    .table thead th {
        background-color: #1d3d63 !important;
        color: white !important;
        text-align: center;
        vertical-align: middle;
    }

    .table tbody td {
        vertical-align: middle;
    }

    .table tfoot td {
        background-color: #d9d9d9;
        font-weight: bold;
    }

/* ==========================================
   FILAS
   ========================================== */

.form-select-sm {
    font-size: 12px;
}

.fila-pago {
    cursor: pointer;
}

    .fila-pago:hover td {
        background-color: #ffe699 !important;
    }

.fila-seleccionada td {
    background-color: #6c757d !important;
    color: white !important;
}

/* ==========================================
   BOTONES
   ========================================== */

.btn-consultar {
    background-color: #234a78;
    border-color: #234a78;
    color: white;
}

    .btn-consultar:hover {
        background: #0b5ed7;
        transform: translateY(-1px);
    }

.btn-limpiar {
    background: #6c757d;
}

    .btn-limpiar:hover {
        background: #5c636a;
        transform: translateY(-1px);
    }

.btn-excel {
    background: #d4af37;
}

    .btn-excel:hover {
        background: #c59d1e;
        transform: translateY(-1px);
    }

/* ==========================================
   PANEL DETALLE
   ========================================== */

.panel-detalle {
    padding: 10px !important;
    font-size: 12px;
}

    .panel-detalle td {
        padding: 3px 6px !important;
        line-height: 1.1;
    }

/* ==========================================
   MENSAJES
   ========================================== */

.mensaje-sin-registros {
    margin-top: 10px;
    padding: 10px 15px;
    color: #c00000;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #c00000;
    background-color: #fff5f5;
    border-radius: 6px;
    display: inline-block;
}

.alerta-sin-registros {
    margin-top: 12px;
    padding: 12px 15px;
    border: 1px solid #dc3545;
    background-color: #fff5f5;
    color: #dc3545;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    text-align: center;
}

.contenedor-mensaje-consulta {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

.alerta-consulta-vacia {
    margin-top: 15px !important;
    color: #003A70 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 8px 0 !important;
    display: block !important;
}

/* ==========================================
   COLORES GENERALES
   ========================================== */

.form-label,
.registros,
.fw-bold {
    color: #f5f5f5;
}

/* ==========================================
   RESPONSIVE MOVIL
   ========================================== */

/* ==========================================
   RESPONSIVE MOVIL
   ========================================== */

/* ==========================================
   RESPONSIVE MOVIL
   ========================================== */

@media (max-width: 768px) {

    .contenedor-principal {
        width: 95%;
        margin: 0 auto;
        padding: 10px;
    }

    .titulo-principal {
        font-size: 22px;
        line-height: 1.2;
    }

    .subtitulo-principal {
        font-size: 15px;
    }

    .contenedor-botones {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

        .contenedor-botones .btn {
            width: 100%;
        }

    .registros {
        text-align: center;
        margin-top: 10px;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .panel-detalle {
        margin-top: 15px;
    }
}
