﻿/* =========================================================
   LOGIN (scope: body.login-page) + overlay flotante
   ========================================================= */
:root {
    --navy: #0b2545;
    --azul: #00a7e1;
    --azul-400: #2fb7ef;
    --borde: #e6e9ef;
    --borde-2: #d9deea;
}

body.login-page {
    padding-top: 0 !important;
    overflow-x: hidden !important;
}

    body.login-page .container-fluid, body.login-page .row {
        margin: 0 !important;
    }

    body.login-page .row {
        --bs-gutter-x: 0 !important;
    }

    body.login-page .login-container {
        min-height: 100vh;
        display: flex;
        align-items: center;
        overflow: hidden;
    }

    body.login-page .login-image {
        flex: 0 0 50%;
        min-height: 100vh;
        background: url('https://zeus.mxamro.com/images/plane.jpg') center/cover no-repeat;
        opacity: 0;
        transform: translateX(-10px) scale(1.01);
        animation: imgIn .6s ease-out .04s forwards;
    }

    body.login-page .login-form-col {
        flex: 0 0 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px;
    }

@media (max-width:991.98px) {
    body.login-page .login-image {
        display: none;
    }

    body.login-page .login-form-col {
        flex: 1 1 auto;
        padding: 24px;
    }
}

body.login-page .login-card {
    width: 100%;
    max-width: 540px;
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(11,46,91,.08);
    box-shadow: 0 20px 38px rgba(11,46,91,.14);
    padding: 36px 28px;
    min-height: 480px;
    opacity: 0;
    transform: translateY(10px) scale(.985);
    animation: loginIn .55s cubic-bezier(.22,.61,.36,1) .06s forwards;
    font-family: "Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

    body.login-page .login-card .login-logo {
        width: 160px;
        max-width: 45%;
        display: block;
        margin: 0 auto 12px;
        filter: drop-shadow(0 4px 10px rgba(0,0,0,.08));
    }

    body.login-page .login-card h2 {
        color: var(--navy);
        font-weight: 800;
        text-align: center;
        margin-bottom: 22px;
    }

body.login-page .form-group {
    margin-bottom: 20px;
}

body.login-page label {
    color: var(--navy);
    font-weight: 600;
    margin-bottom: .4rem;
}

body.login-page .input-wrapper {
    position: relative;
    max-width: 420px;
    width: 100%;
    margin-inline: auto;
}

body.login-page .form-control {
    height: 40px !important;
    line-height: 1.1 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
    border: 1px solid var(--borde-2) !important;
    background: #f6f9ff !important;
    color: #0b2545 !important;
    padding: .55rem .75rem !important;
    box-shadow: none !important;
    outline: 0 !important;
}

    body.login-page .form-control:focus {
        border-color: var(--azul) !important;
        box-shadow: 0 0 0 .22rem rgba(0,167,225,.16) !important;
        transform: translateY(-1px);
    }

    body.login-page .form-control.has-eye {
        padding-right: 40px !important;
    }

body.login-page #btnTogglePwd.btn-eye {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230b2e5b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8Z'/><circle cx='12' cy='12' r='3'/></svg>");
}

    body.login-page #btnTogglePwd.btn-eye.on {
        background-image: url("data:image/svg+xml;utf8;<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230b2e5b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M17.94 17.94A10.94 10.94 0 0 1 12 20C5 20 1 12 1 12a21.82 21.82 0 0 1 5.06-6.94M9.9 4.24A10.94 10.94 0 0 1 12 4c7 0 11 8 11 8a21.82 21.82 21.82 0 0 1-3.87 5.15M9 9l6 6M3 3l18 18'/></svg>");
    }

body.login-page .button {
    display: block;
    max-width: 420px;
    width: 100%;
    margin: 8px auto 0;
    border: 0;
    border-radius: 12px;
    padding: .9rem 1rem;
    font-weight: 800;
    letter-spacing: .3px;
    color: #fff !important;
    background: linear-gradient(135deg, var(--azul) 0%, var(--azul-400) 100%);
    box-shadow: 0 16px 30px rgba(0,166,233,.30);
}

    body.login-page .button:hover {
        filter: saturate(1.06) brightness(1.02);
        box-shadow: 0 20px 36px rgba(0,166,233,.36);
    }

body.login-page .helper {
    text-align: center;
    margin-top: 14px;
}

body.login-page .text-secondary {
    color: #6c757d !important;
    font-weight: 600;
    text-decoration: none !important;
}

    body.login-page .text-secondary:hover {
        color: var(--azul) !important;
        text-decoration: underline !important;
    }

/* Overlay flotante */
body.login-page .forgot-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1050;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
}

    body.login-page .forgot-overlay::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(11,37,69,.35);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

body.login-page.is-forgot-open .forgot-overlay {
    pointer-events: auto;
    opacity: 1;
}

body.login-page.is-forgot-open {
    overflow: hidden;
}

body.login-page .forgot-card {
    position: relative;
    width: 100%;
    max-width: 760px;
    background: #fff;
    border: 1px solid var(--borde);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(11,37,69,.22);
    padding: 22px;
    z-index: 1;
}

body.login-page .forgot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

body.login-page .forgot-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--navy);
    margin: 0;
}

body.login-page .forgot-close {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

    body.login-page .forgot-close:hover {
        background: #f1f4f9;
    }

body.login-page .form-stack {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

@media (min-width:768px) {
    body.login-page .form-stack {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

body.login-page .form-stack .full {
    grid-column: 1/-1;
}

body.login-page .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.login-page .label {
    font-weight: 600;
    color: var(--navy);
    font-size: .95rem;
}

body.login-page .help {
    font-size: .86rem;
    color: #5b6b80;
}

body.login-page .btn-primario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .625rem 1rem;
    border: 0;
    border-radius: .75rem;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: .2px;
    background: linear-gradient(135deg,var(--azul), var(--azul-400));
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,167,225,.25);
}

    body.login-page .btn-primario:hover {
        transform: translateY(-1px);
        filter: saturate(1.05);
        box-shadow: 0 10px 24px rgba(0,167,225,.35);
    }

/* Animaciones */
@keyframes imgIn {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes loginIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* ===== Login: mensajes de error ===== */
body.login-page .login-card .login-error {
    display: inline-block;
    color: #c62828; /* rojo institucional para errores */
    font-weight: 600;
}

/* Mensajes del panel de recuperación */
body.login-page .msg-ok {
    color: #2e7d32;
    font-weight: 600;
}

body.login-page .msg-err {
    color: #c62828;
    font-weight: 600;
}
/* ============================
   LOGIN (FIN)
   ============================ */


/* ============================
   EHS · SideNav (INICIO)
   Basado en el diseño institucional: gradiente navy, overlay, trigger fijo,
   ancho responsive y transición suave.
   ============================ */

:root {
    --mro-navy: #0b2a4a;
    --mro-navy-2: #163d66;
    --mro-bg: #f5f7fb;
    --nav-w: 360px; /* ancho del sidenav */
    --gap: 12px;
}

/* Fondo y tipografía base (no pisa tus estilos existentes) */
body {
    background: var(--mro-bg);
}

/* ===== Botón hamburguesa fijo ===== */
.menu-trigger {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2001;
    background: var(--mro-navy);
    color: #fff;
    border: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    cursor: pointer;
}

    .menu-trigger:hover {
        background: var(--mro-navy-2);
    }

/* Cuando el nav está abierto en desktop, movemos el trigger */
.nav-open .menu-trigger {
    left: calc(var(--nav-w) + var(--gap));
}

@media (max-width: 991.98px) {
    .nav-open .menu-trigger {
        display: none;
    }
}

/* ===== SideNav ===== */
.sidenav {
    height: 100%;
    width: 0; /* cerrado por defecto */
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, var(--mro-navy) 0%, var(--mro-navy-2) 100%);
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    transition: width .3s ease;
}

    .sidenav.open {
        width: var(--nav-w);
    }
/* estado abierto */

/* Header del menú (logo/caja) */
.sidenav-header {
    padding: 28px 20px 20px;
    background: rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.12);
    position: relative;
}

    .sidenav-header .brand-box {
        background: rgba(255,255,255,.08);
        border-radius: 14px;
        padding: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sidenav-header img {
        height: 56px;
        object-fit: contain;
    }

/* Botón cerrar (×) */
.sidenav .closebtn {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 32px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    z-index: 2100;
    user-select: none;
}

    .sidenav .closebtn:hover {
        color: #f5f5f5;
    }

/* Enlaces del menú */
.sidenav .menu-group {
    padding: 14px 10px 20px;
}

.sidenav h6 {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .12rem;
    color: rgba(255,255,255,.65);
    margin: 12px 18px 6px;
}

.sidenav a {
    display: flex;
    align-items: center;
    margin: 2px 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255,255,255,.92);
    text-decoration: none;
    transition: background .15s ease;
    font-weight: 600;
}

    .sidenav a .fa {
        width: 22px;
        margin-right: 10px;
    }

    .sidenav a:hover {
        background: rgba(255,255,255,.10);
    }

    .sidenav a.active {
        background: rgba(42,167,223,.25);
    }

.sidenav .divider {
    height: 1px;
    background: rgba(255,255,255,.12);
    margin: 10px 18px;
}

/* Contenedor principal: se empuja cuando el menú está abierto (solo desktop) */
#main {
    transition: margin-left .3s ease;
}

@media (min-width: 992px) {
    .sidenav.open + #main {
        margin-left: var(--nav-w);
    }
}

/* Overlay oscuro para móviles */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1500;
    display: none;
}

    .overlay.show {
        display: block;
    }

/* ============================
   EHS · SideNav (FIN)
   ============================ */
/* ============================
   EHS · SideNav · Fuente suave
   ============================ */
.sidenav,
.sidenav a,
.sidenav h6 {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 500; /* 400 si la quieres aún más light */
}

    /* Mantén el blanco y tamaño compacto */
    .sidenav a {
        color: #fff !important;
        font-size: .95rem;
        padding: 8px 10px;
    }

    .sidenav h6 {
        color: #fff !important;
        font-size: .75rem;
        letter-spacing: .08rem;
    }

    /* Íconos un poco más pequeños para que se sienta ligero */
    .sidenav a .fa,
    .sidenav a .bi {
        font-size: .95rem;
        width: 20px;
        margin-right: 8px;
    }



/* =========================================================
   INICIO · EHS · Uniformes.aspx (paneles, toolbar, tablas)
   ========================================================= */

:root {
    /* reutiliza tokens del sidenav */
    --ehs-navy: var(--mro-navy, #0b2a4a);
    --ehs-navy-2: var(--mro-navy-2, #163d66);
    --ehs-azul: var(--azul, #00a7e1);
    --ehs-azul-400: var(--azul-400, #2fb7ef);
    --ehs-bg: var(--mro-bg, #f5f7fb);
    --ehs-card-border: rgba(20,50,90,.12);
    --ehs-text: #14283f;
    --ehs-muted: #5b6b80;
    --ehs-radius: 14px;
    --ehs-shadow: 0 8px 24px rgba(10,32,65,.08);
}

.ehs-wrap {
    padding: 8px 4px 24px;
}

/* ===== Toolbar superior ===== */
.ehs-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 6px 2px 16px;
    border-bottom: 1px solid var(--ehs-card-border);
    padding-bottom: 10px;
}

.ehs-title h3 {
    color: var(--ehs-navy);
    font-weight: 700;
    letter-spacing: .2px;
}

.ehs-subtitle {
    margin: 2px 0 0;
    font-size: .95rem;
    color: var(--ehs-muted);
}

.ehs-actions > * + * {
    margin-left: 8px;
}

/* ===== Tarjetas/paneles ===== */
.ehs-card {
    background: #fff;
    border: 1px solid var(--ehs-card-border);
    border-radius: var(--ehs-radius);
    box-shadow: var(--ehs-shadow);
}

.ehs-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(11,42,74,.07) 0%, rgba(11,42,74,.02) 100%);
    border-bottom: 1px solid var(--ehs-card-border);
    border-top-left-radius: var(--ehs-radius);
    border-top-right-radius: var(--ehs-radius);
}

.ehs-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--ehs-navy);
}

    .ehs-card-title i {
        font-size: 1.05rem;
        color: var(--ehs-azul);
    }

.ehs-card-body {
    padding: 14px 16px 12px;
}

/* ===== Tablas (GridView) ===== */
.ehs-table-wrap {
    border: 1px solid var(--ehs-card-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.ehs-table {
    margin: 0;
    color: var(--ehs-text);
}

    .ehs-table thead th {
        background: linear-gradient(180deg, var(--ehs-navy) 0%, var(--ehs-navy-2) 100%);
        color: #fff;
        border: 0 !important;
        vertical-align: middle;
        font-weight: 600;
        letter-spacing: .2px;
        padding-top: .6rem;
        padding-bottom: .6rem;
    }

    .ehs-table tbody td {
        vertical-align: middle;
        border-color: #e9edf5 !important;
        padding-top: .48rem;
        padding-bottom: .48rem;
    }

    .ehs-table tbody tr:hover {
        background: rgba(0,167,225,.06);
    }

    .ehs-table tbody tr:nth-child(even) {
        background: #fafcff;
    }

/* Zebra + compactado extra en pantallas pequeñas */
@media (max-width: 991.98px) {
    .ehs-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .ehs-actions {
        width: 100%;
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

        .ehs-actions > * {
            flex: 1 1 auto;
        }

    .ehs-table tbody td {
        padding-top: .42rem;
        padding-bottom: .42rem;
    }
}

/* Botones: suaviza transiciones y bordes */
.btn {
    border-radius: 10px;
    transition: transform .06s ease, box-shadow .15s ease;
}

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
    }

/* =======================================================
   FIN · EHS · Uniformes.aspx (paneles, toolbar, tablas)
   ======================================================= */
/* =========================================================
   INICIO · EHS · CatalogoUniformes.aspx (paneles, toolbar, tablas)
   ========================================================= */

.ehs-cat .ehs-cat-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 6px 2px 16px;
    border-bottom: 1px solid var(--ehs-card-border, rgba(20,50,90,.12));
    padding-bottom: 10px;
}

.ehs-cat .ehs-cat-subtitle {
    margin: 2px 0 0;
    font-size: .95rem;
    color: var(--ehs-muted, #5b6b80);
}

/* Paneles (reuse del estilo global; añadimos pequeños ajustes locales) */
.ehs-cat .ehs-card {
    background: #fff;
    border: 1px solid var(--ehs-card-border, rgba(20,50,90,.12));
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(10,32,65,.08);
}

.ehs-cat .ehs-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(180deg, rgba(11,42,74,.07) 0%, rgba(11,42,74,.02) 100%);
    border-bottom: 1px solid var(--ehs-card-border, rgba(20,50,90,.12));
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.ehs-cat .ehs-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--mro-navy, #0b2a4a);
}

    .ehs-cat .ehs-card-title i {
        font-size: 1.05rem;
        color: var(--azul, #00a7e1);
    }

.ehs-cat .ehs-card-body {
    padding: 14px 16px 12px;
}

/* Form: compactito y alineado */
.ehs-cat .form-label {
    font-weight: 600;
    color: var(--ehs-text, #14283f);
}

.ehs-cat .ehs-cat-btn {
    min-width: 160px;
}

/* Tablas dentro de los repeaters */
.ehs-cat .ehs-table-wrap {
    border: 1px solid var(--ehs-card-border, rgba(20,50,90,.12));
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.ehs-cat .ehs-table {
    margin: 0;
    color: var(--ehs-text, #14283f);
}

    .ehs-cat .ehs-table thead th {
        background: linear-gradient(180deg, var(--mro-navy, #0b2a4a) 0%, var(--mro-navy-2, #163d66) 100%);
        color: #fff;
        border: 0 !important;
        vertical-align: middle;
        font-weight: 600;
        letter-spacing: .2px;
        padding-top: .55rem;
        padding-bottom: .55rem;
    }

    .ehs-cat .ehs-table tbody td {
        vertical-align: middle;
        border-color: #e9edf5 !important;
    }

    .ehs-cat .ehs-table tbody tr:hover {
        background: rgba(0,167,225,.06);
    }

    .ehs-cat .ehs-table tbody tr:nth-child(even) {
        background: #fafcff;
    }

/* Botoneras XS dentro de celdas */
.ehs-cat .btn-group-xs > .btn,
.ehs-cat .btn-xs {
    --bs-btn-padding-y: .25rem;
    --bs-btn-padding-x: .45rem;
    --bs-btn-font-size: .78rem;
    border-radius: .35rem;
}

/* Responsivo */
@media (max-width: 991.98px) {
    .ehs-cat .ehs-cat-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .ehs-cat .ehs-card-body .row.g-2 > [class*="col-"] {
        margin-bottom: .25rem;
    }

    .ehs-cat .ehs-cat-btn {
        width: 100%;
    }
}

/* =======================================================
   FIN · EHS · CatalogoUniformes.aspx (paneles, toolbar, tablas)
   ======================================================= */

/* =========================================================
   INICIO · Fix layout Categorías (ddl largo + botón superpuesto)
   ========================================================= */

/* Fila flexible que envuelve DDL + botón sin que se encimen */
.ehs-cat-inline {
    display: flex;
    flex-wrap: wrap; /* permite que el botón baje en pantallas pequeñas */
    gap: 8px 12px;
    align-items: flex-end; /* alinea con borde inferior */
}

    /* Columna del DDL: ocupa todo el espacio disponible, pero con mínimos sensatos */
    .ehs-cat-inline > .col-sm-8 {
        flex: 1 1 420px; /* crece y reduce, base ~420px */
        min-width: 260px; /* nunca más angosta que esto */
    }

    /* Columna del botón: tamaño auto, evita que se rompa */
    .ehs-cat-inline > .col-sm-4 {
        flex: 0 0 auto;
        display: flex;
        justify-content: flex-start;
    }

    /* Select compacto y al 100% del contenedor */
    .ehs-cat-inline .form-select {
        width: 100%;
        max-width: 100%;
    }

    /* Botón siempre en una sola línea y con padding estable */
    .ehs-cat-inline .ehs-cat-btn {
        white-space: nowrap; /* evita que el texto salte de línea */
        padding-left: 14px;
        padding-right: 14px;
    }

/* En móviles: que el botón ocupe ancho completo y se apile debajo del DDL */
@media (max-width: 991.98px) {
    .ehs-cat-inline > .col-sm-4 {
        flex: 1 1 100%;
    }

    .ehs-cat-inline .ehs-cat-btn {
        width: 100%;
    }
}

/* =========================================================
   FIN · Fix layout Categorías (ddl largo + botón superpuesto)
   ========================================================= */
/* =========================================================
   INICIO · Fix foco/overlay sobre TxtUniformeClase
   ========================================================= */

/* 1) Asegura que el contenedor del formulario tenga contexto y
      los inputs queden por encima de cualquier elemento vecino */
.ehs-card-body,
.ehs-card-body .form-control {
    position: relative;
    z-index: 1;
}

/* 2) La tabla y su wrapper NO deben flotar encima del formulario */
.ehs-table-wrap,
.ehs-table {
    position: relative;
    z-index: 0;
}

/* 3) El overlay solo bloquea cuando está visible */
.overlay {
    pointer-events: none;
}

    .overlay.show {
        pointer-events: auto;
    }

/* 4) En desktop, cuando el menú esté abierto, empuja el contenido;
      así nada queda debajo del sidenav */
@media (min-width: 992px) {
    body.nav-open #main {
        margin-left: var(--nav-w);
    }
}

/* 5) Botón del menú siempre por encima del contenido, pero el sidenav nunca
      debe cubrir inputs si #main ya fue empujado */
.menu-trigger {
    z-index: 3001;
}

.sidenav {
    z-index: 2000;
}

/* =========================================================
   FIN · Fix foco/overlay sobre TxtUniformeClase
   ========================================================= */
/* =========================================================
   INICIO · EHS · Topbar UNA LÍNEA (Módulo / Nombre / No Emp / CC)
   Hoja minimizada: únicamente estilos para la barra de nombres
   ========================================================= */

:root {
    --ehs-text: #14283f;
    --ehs-muted: #5b6b80;
    --ehs-border: rgba(20,50,90,.12);
    --ehs-radius: 14px;
    /* Para el gradiente del chip de Módulo */
    --mro-navy: #0b2a4a;
    --mro-navy-2: #163d66;
}

/* Contenedor: una sola línea; si no cabe, scroll horizontal */
.ehs-topbar.ehs-topbar--one {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 8px 0 16px;
    background: #fff;
    border: 1px solid var(--ehs-border);
    border-radius: var(--ehs-radius);
    box-shadow: 0 6px 18px rgba(10,32,65,.06);
    white-space: nowrap; /* evita saltos de línea */
    overflow-x: auto; /* desliza horizontal si no cabe */
    scrollbar-width: thin; /* Firefox */
}

    .ehs-topbar.ehs-topbar--one::-webkit-scrollbar {
        height: 8px;
    }

    .ehs-topbar.ehs-topbar--one::-webkit-scrollbar-thumb {
        background: rgba(10,32,65,.15);
        border-radius: 999px;
    }

/* Píldoras/chips */
.ehs-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid var(--ehs-border);
    border-radius: 999px;
    padding: 6px 12px;
    line-height: 1.1;
}

.ehs-pill--module {
    font-weight: 800;
    color: #fff;
    background: linear-gradient(180deg, var(--mro-navy) 0%, var(--mro-navy-2) 100%);
    border-color: transparent;
}

/* Etiqueta y valor dentro de cada pill */
.pill-label {
    font-size: .78rem;
    color: var(--ehs-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03rem;
}

.pill-value {
    font-size: .92rem;
    color: var(--ehs-text);
    font-weight: 700;
    max-width: 520px;
    overflow: hidden;
    text-overflow: ellipsis; /* recorte elegante si es muy largo */
}

/* Densidad ligera para que quepa mejor todo en una línea */
.ehs-topbar--one .ehs-pill {
    padding: 6px 10px;
}

.ehs-topbar--one .ehs-pill--module {
    padding: 6px 12px;
}

/* Responsivo: mantenemos una línea con scroll suave */
@media (max-width: 991.98px) {
    .ehs-topbar.ehs-topbar--one {
        gap: 8px;
    }

    .ehs-topbar--one .pill-value {
        max-width: 360px;
    }
}

/* =========================================================
   FIN · EHS · Topbar UNA LÍNEA (Módulo / Nombre / No Emp / CC)
   ========================================================= */
