/* ============================================================================
   Manuales ZEUS 2.0 (MANZ)
   Identidad institucional Mexicana MRO sobre zeus-base.css (misma paleta que
   las demas apps independientes del ecosistema).

   Se consulta desde tablet y telefono en piso de hangar: targets tactiles
   grandes, sin anchos fijos, contraste alto.
   ============================================================================ */

:root {
    --mz-navy:      #0b2a4a;
    --mz-navy-dark: #071d34;
    --mz-cyan:      #00a7e1;
    --mz-line:      #dee2e6;
    --mz-bg:        #f5f7fa;
    --mz-manual:    #0b2a4a;
    --mz-triptico:  #0f766e;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: var(--mz-bg);
}

/* ─── Navbar ──────────────────────────────────────────────────────────────── */

.mz-navbar {
    background-color: var(--mz-navy);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.mz-navbar .navbar-brand,
.mz-navbar .nav-link {
    color: #fff;
}

.mz-navbar .nav-link:hover,
.mz-navbar .nav-link:focus {
    color: #cfe2ff;
}

.mz-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, .45);
    padding: .4rem .6rem;
}

.mz-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.mz-navbar .dropdown-menu {
    --bs-dropdown-link-color: #212529;
}

/* El logo institucional es oscuro: sobre la navbar azul marino necesita fondo claro */
.mz-navbar .navbar-brand img {
    background: #fff;
    border-radius: .4rem;
    padding: .15rem .45rem;
    height: 32px;
}

/* El nombre que devuelve ZEUS es largo ("APELLIDOS NOMBRES - A00000"): sin tope
   empuja la navbar fuera de la pantalla y aparece scroll horizontal. */
.mz-usuario {
    display: inline-block;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.mz-brand {
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .95rem;
}

.mz-main {
    padding-top: 1.25rem;
    padding-bottom: 2rem;
    min-height: calc(100vh - 132px);
}

.mz-footer {
    border-top: 1px solid var(--mz-line);
    background: #fff;
}

.mz-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--mz-navy);
}

/* ─── Tarjetas ────────────────────────────────────────────────────────────── */

.mz-card {
    background: #fff;
    border: 1px solid var(--mz-line);
    border-radius: .75rem;
    box-shadow: 0 1px 3px rgba(11, 42, 74, .06);
}

.mz-card-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    padding: .85rem 1.1rem;
    border-bottom: 1px solid var(--mz-line);
    font-weight: 600;
    color: var(--mz-navy);
}

.mz-card-body {
    padding: 1.1rem;
}

.mz-hero {
    margin-bottom: 1.1rem;
}

/* ─── Biblioteca ──────────────────────────────────────────────────────────── */

.mz-grupo-titulo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--mz-navy);
    padding-bottom: .5rem;
    margin-bottom: .9rem;
    border-bottom: 2px solid var(--mz-cyan);
}

.mz-badge-count {
    background: var(--mz-navy);
    color: #fff;
    font-size: .75rem;
    vertical-align: middle;
}

.mz-doc {
    display: flex;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--mz-line);
    border-radius: .75rem;
    padding: 1rem;
    transition: box-shadow .15s ease, transform .15s ease;
}

.mz-doc:hover {
    box-shadow: 0 6px 18px rgba(11, 42, 74, .12);
    transform: translateY(-1px);
}

.mz-doc-icono {
    flex: 0 0 3.25rem;
    height: 3.25rem;
    border-radius: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
}

.mz-tipo-manual   { background: var(--mz-manual); }
.mz-tipo-triptico { background: var(--mz-triptico); }

.mz-doc-cuerpo {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.mz-doc-meta {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: .2rem;
}

.mz-doc-codigo {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .8rem;
    font-weight: 600;
    color: var(--mz-navy);
    background: #e7eef6;
    border-radius: .35rem;
    padding: .05rem .4rem;
    white-space: nowrap;
}

.mz-doc-tipo {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
}

.mz-doc-titulo {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 .25rem;
    color: #1f2937;
}

.mz-doc-desc {
    font-size: .875rem;
    color: #4b5563;
    margin-bottom: .5rem;
}

.mz-doc-version {
    font-size: .8rem;
    color: #6c757d;
    margin-top: auto;
    margin-bottom: .6rem;
}

.mz-doc-acciones {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.mz-doc-acciones .btn {
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
}

/* ─── Edición ─────────────────────────────────────────────────────────────── */

.mz-subida {
    background: #f0f7fb;
    border: 1px dashed #9cc9e0;
    border-radius: .65rem;
    padding: .9rem;
}

/* Paginador del GridView (tabla anidada que genera WebForms) */
.mz-pager table { margin: .75rem 0 0 auto; }
.mz-pager td { padding: 0 .15rem; }
.mz-pager a, .mz-pager span {
    display: inline-block;
    min-width: 2rem;
    padding: .25rem .5rem;
    border-radius: .35rem;
    text-align: center;
    text-decoration: none;
    border: 1px solid var(--mz-line);
}
.mz-pager span { background: var(--mz-navy); color: #fff; border-color: var(--mz-navy); }

/* ─── Login ───────────────────────────────────────────────────────────────── */

.mz-login-body {
    background: var(--mz-bg);
    min-height: 100vh;
}

.mz-login-split {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.mz-login-foto {
    position: relative;
    flex: 0 0 auto;
    height: 34vh;
    min-height: 200px;
    max-height: 320px;
    background: linear-gradient(135deg, rgba(11, 42, 74, .58), rgba(0, 167, 225, .32)),
                url('https://zeus.mxamro.com/assets/img/plane.jpg') no-repeat center center;
    background-size: cover;
}

.mz-login-foto::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(7, 29, 52, .82));
}

.mz-login-tagline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1.6rem;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 0 1.25rem;
}

.mz-login-tagline h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-bottom: .3rem;
}

.mz-login-tagline p {
    font-size: .95rem;
    margin: 0;
    opacity: .92;
}

.mz-login-panel {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem 1rem;
}

.mz-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid var(--mz-line);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(11, 42, 74, .10);
    padding: 2rem 1.75rem;
}

.mz-login-logo { height: 44px; }

.mz-login-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--mz-navy);
    margin-bottom: .2rem;
}

.mz-login-sub {
    color: #6c757d;
    font-size: .9rem;
    margin: 0;
}

.mz-login-link {
    font-size: .875rem;
    color: var(--mz-navy);
    text-decoration: none;
}

.mz-login-link:hover { text-decoration: underline; }

.mz-login-pie {
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: .8rem;
    color: #6c757d;
}

@media (max-width: 575.98px) {
    .mz-login-tagline h1 { font-size: 1.5rem; }
    .mz-doc { padding: .85rem; gap: .75rem; }
    .mz-doc-icono { flex-basis: 2.75rem; height: 2.75rem; font-size: 1.15rem; }
}
