/* ==============================================================
   PALETA INSTITUCIONAL (tomada del logo de la Provincia Marista)
   ============================================================== */
:root {
    --mar-navy: #0c3c60;
    --mar-navy-dark: #082a45;
    --mar-navy-light: #14598c;
    --mar-orange: #f09000;

    /* Los botones y badges "primary" de Bootstrap pasan a azul institucional */
    --bs-primary: #0c3c60;
    --bs-primary-rgb: 12, 60, 96;
    --bs-link-color: #0c3c60;
    --bs-link-hover-color: #082a45;
}

.btn-primary {
    --bs-btn-bg: #0c3c60;
    --bs-btn-border-color: #0c3c60;
    --bs-btn-hover-bg: #082a45;
    --bs-btn-hover-border-color: #082a45;
    --bs-btn-active-bg: #082a45;
    --bs-btn-active-border-color: #082a45;
    --bs-btn-disabled-bg: #0c3c60;
    --bs-btn-disabled-border-color: #0c3c60;
}

.btn-outline-primary {
    --bs-btn-color: #0c3c60;
    --bs-btn-border-color: #0c3c60;
    --bs-btn-hover-bg: #0c3c60;
    --bs-btn-hover-border-color: #0c3c60;
    --bs-btn-active-bg: #0c3c60;
    --bs-btn-active-border-color: #0c3c60;
}

body {
    background-color: #f4f6f9;
}

.login-body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.login-wrapper {
    width: 100%;
    max-width: 380px;
    padding: 15px;
}

.login-card {
    border: none;
    border-radius: 10px;
}

.login-logo {
    max-width: 220px;
    width: 100%;
    height: auto;
}

.navbar-brand img {
    display: inline-block;
}

/* --------------------------------------------------------------
   CABECERA INSTITUCIONAL
   -------------------------------------------------------------- */
.navbar-institucional {
    background: #fff;
    border-bottom: 4px solid var(--mar-orange);
    box-shadow: 0 3px 12px rgba(12, 60, 96, .14);
    padding: .55rem 0;
}

.navbar-institucional .brand-logo {
    height: 50px;
    width: auto;
    display: block;
}

.navbar-institucional .brand-sistema {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #d5dee6;
    color: var(--mar-navy);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .3px;
    white-space: nowrap;
}

.navbar-institucional .nav-link {
    color: var(--mar-navy);
    font-weight: 600;
    font-size: .92rem;
    padding: .55rem .85rem;
    border-radius: .45rem;
}

.navbar-institucional .nav-link:hover,
.navbar-institucional .nav-link:focus,
.navbar-institucional .nav-link.show {
    background: rgba(12, 60, 96, .08);
    color: var(--mar-navy-dark);
}

.navbar-institucional .nav-link .bi {
    color: var(--mar-orange);
    margin-right: .3rem;
}

.navbar-institucional .navbar-toggler {
    border-color: var(--mar-navy);
    color: var(--mar-navy);
}

.navbar-institucional .dropdown-menu {
    border: 0;
    border-top: 3px solid var(--mar-orange);
    border-radius: 0 0 .6rem .6rem;
    box-shadow: 0 10px 24px rgba(12, 60, 96, .18);
    padding: .4rem;
    min-width: 15rem;
}

.navbar-institucional .dropdown-item {
    border-radius: .4rem;
    padding: .5rem .75rem;
    color: var(--mar-navy);
    font-size: .9rem;
}

.navbar-institucional .dropdown-item:hover,
.navbar-institucional .dropdown-item:focus {
    background: rgba(12, 60, 96, .08);
    color: var(--mar-navy-dark);
}

.navbar-institucional .dropdown-item .bi {
    width: 1.3rem;
    display: inline-block;
    color: var(--mar-navy-light);
}

.user-box {
    padding-left: 1rem;
    border-left: 2px solid #d5dee6;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mar-navy);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--mar-orange);
    flex-shrink: 0;
}

.user-nombre {
    color: var(--mar-navy);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
}

.user-nombre:hover {
    color: var(--mar-orange);
}

@media (max-width: 991.98px) {
    .user-box {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid #d5dee6;
        margin-top: .5rem;
        padding-top: .75rem;
    }
}

/* --------------------------------------------------------------
   DASHBOARD
   -------------------------------------------------------------- */
.dash-hero {
    background: linear-gradient(120deg, var(--mar-navy-dark), var(--mar-navy-light));
    color: #fff;
    border-radius: .85rem;
    border-bottom: 4px solid var(--mar-orange);
    padding: 1.6rem 1.9rem;
    box-shadow: 0 6px 18px rgba(12, 60, 96, .22);
}

.dash-hero h3 {
    color: #fff;
    font-weight: 700;
    margin-bottom: .25rem;
}

.dash-hero .dash-area {
    color: rgba(255, 255, 255, .8);
    margin-bottom: .6rem;
}

.dash-hero .dash-badge {
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #fff;
    font-weight: 500;
    margin: 0 .25rem .25rem 0;
}

.dash-section {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 1.8rem 0 .9rem;
    color: var(--mar-navy);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.dash-section::before {
    content: "";
    width: 5px;
    height: 18px;
    border-radius: 3px;
    background: var(--mar-orange);
}

.dash-section::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d5dee6;
}

/* Cada tarjeta recibe su color con la variable --c */
.dash-card {
    background: #fff;
    border: 0;
    border-top: 5px solid var(--c);
    border-radius: .85rem;
    box-shadow: 0 2px 10px rgba(12, 60, 96, .08);
    transition: transform .15s ease, box-shadow .15s ease;
}

.dash-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(12, 60, 96, .16);
}

.dash-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--c);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}

.dash-card .card-title {
    color: var(--mar-navy-dark);
    font-weight: 700;
    margin-bottom: 0;
}

.dash-card .card-text {
    color: #5b6773;
    font-size: .92rem;
}

.btn-dash {
    background: var(--c);
    border-color: var(--c);
    color: #fff;
    font-weight: 600;
}

.btn-dash:hover,
.btn-dash:focus {
    background: var(--c);
    border-color: var(--c);
    color: #fff;
    filter: brightness(.88);
}

/* --------------------------------------------------------------
   Línea de firma para solicitudes y rendiciones impresas
   -------------------------------------------------------------- */
.firma-linea {
    border-top: 1px solid #333;
    margin: 60px auto 6px;
    width: 80%;
}

.documento .table th,
.documento .table td {
    vertical-align: middle;
}

/* --------------------------------------------------------------
   Impresión: se ocultan navbar, alertas y botones para que la
   vista previa de la solicitud salga limpia en papel.
   Agrega la clase "no-print" a cualquier elemento que no deba
   imprimirse.
   -------------------------------------------------------------- */
@media print {
    body {
        background-color: #fff;
    }

    .no-print,
    .navbar,
    .alert,
    .btn,
    form .btn {
        display: none !important;
    }

    .container {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
    }

    a[href]:after {
        content: "";
    }
}
