﻿/* ======================================================
    LAYOUT GENERAL
   ====================================================== */
html {
    height: 100%;
}

body {
    margin: 0;
    background-color: #E4E4E4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    flex-shrink: 0;
}

.container-fluid.px-0 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container-fluid.px-0 main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ======================================================
    NAVEGACIÓN (sticky, única barra superior)
   ====================================================== */
.navbar {
    background-color: aqua;
    min-height: 60px;
    border: none;
}

.logo-lateral {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #bfbfbf;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}

.logo-lateral img {
    width: 42px;
    height: auto;
}

.navbar-brand {
    padding: 0;
    margin-right: 0;
}

.navbar-brand img {
    width: 200px;
    height: auto;
}

.login-link .nav-link {
    color: gray;
    font-size: 14px;
    padding: 8px 16px;
    white-space: nowrap;
}

.login-link .nav-link:hover {
    color: #666;
    text-decoration: underline;
}

/* ======================================================
    MAIN (contenido principal)
   ====================================================== */
.main-content {
    background-color: #E0E0E0;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content {
    background-color: #F0F0F0;
    border-radius: 5px;
    padding: 20px;
}

/* ======================================================
    FORMULARIO DE BÚSQUEDA
   ====================================================== */
.content-from {
    background-color: #F0F0F0;
    padding: 15px;
}

.content-from .formControl:disabled {
    background-color: #E0E0E0;
    font-size: 14px;
}

.content-from .form-label {
    font-size: 14px;
    font-weight: 500;
}

.content-from .btn {
    transition: 0.3s ease-out;
    background-color: #01b736;
    color: #FFFFFF;
    border: none;
    height: 38px;
}

.content-from .btn:hover {
    background-color: #019e2e;
    color: #FFFFFF;
}

/* ======================================================
    TABLAS
   ====================================================== */
.TablesBox {
    margin-top: 30px;
    display: none;
    padding: 0 15px 15px;
}

.ManOrg,
.ManProc {
    margin-top: 20px;
    font-size: 14px;
}

.TablesBox h5 {
    margin-top: 25px;
    color: #333;
}

.table {
    margin-bottom: 10px;
}

.table td, .table th {
    vertical-align: middle;
}

.table a {
    color: #01b736;
    font-size: 18px;
}

.table a:hover {
    color: #019e2e;
}

/* ======================================================
    FOOTER
   ====================================================== */
.footer {
    padding: 15px 20px;
    font-size: 14px;
    background: #F0F0F0;
    color: #b4b6b8;
    flex-shrink: 0;
}

.container-footer {
    font-size: 12px;
    line-height: 1.4;
    background-color: #F0F0F0;
    text-align: center;
    padding: 10px;
}

.footer .brand-logo {
    display: inline-block;
    height: 30px;
    width: auto;
    margin-bottom: 5px;
    float: none;
}

/* ======================================================
    RESPONSIVIDAD
   ====================================================== */
@media screen and (max-width: 991px) {
    .navbar-brand img {
        width: 160px;
    }
}

@media screen and (max-width: 767px) {
    .main-content {
        padding: 15px;
    }

    .content {
        padding: 15px;
    }

    .content-from {
        padding: 10px;
    }

    .content-from .row {
        --bs-gutter-y: 10px;
    }

    .TablesBox {
        margin-top: 20px;
        padding: 0 5px 10px;
    }

    .table {
        font-size: 12px;
    }

    .table td, .table th {
        white-space: nowrap;
    }

    .footer {
        padding: 12px 15px;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 575px) {
    .main-content {
        padding: 10px;
    }

    .content {
        padding: 10px;
    }

    h2 {
        font-size: 1.25rem;
    }

    .logo-lateral {
        width: 40px;
        height: 40px;
    }

    .logo-lateral img {
        width: 34px;
    }

    .navbar-brand img {
        width: 120px;
    }

    .login-link .nav-link {
        font-size: 12px;
        padding: 6px 10px;
    }

    .table {
        font-size: 11px;
    }

    .content-from .form-label {
        font-size: 13px;
    }
}
