label.requerido:after{
    content: " *";
    color: #e73d4a
}
.btn-accion-tabla {
    cursor: pointer;
    border: none;
    background: 0;
    padding: 0 0 0 5px;
    font-size: 14px !important;
    line-height: 1.5;
    display: inline-block;
    min-width: 1.75rem;
    min-height: 1.75rem;
    text-align: center;
    vertical-align: middle;
}

/* Evita que el tooltip bloquee el clic sobre botones de acción (parpadeo al hover). */
.tooltip {
    pointer-events: none;
}

/* Columna de acciones visible sin scroll horizontal en tablas anchas. */
.tabla-acciones-fijas th.col-acciones-tabla,
.tabla-acciones-fijas td.col-acciones-tabla {
    position: sticky;
    right: 0;
    z-index: 2;
    white-space: nowrap;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.06);
}
.tabla-acciones-fijas thead th.col-acciones-tabla {
    z-index: 3;
    background-color: #fff;
}
.tabla-acciones-fijas.table-striped tbody tr:nth-of-type(odd) td.col-acciones-tabla {
    background-color: rgba(0, 0, 0, 0.05);
}
.tabla-acciones-fijas.table-striped tbody tr:nth-of-type(even) td.col-acciones-tabla {
    background-color: #fff;
}
.tabla-acciones-fijas.table-hover tbody tr:hover td.col-acciones-tabla {
    background-color: rgba(0, 0, 0, 0.075);
}
.d-inline{
    display: inline;
}
.width20{
    width: 20px !important;
}
.width70{
    width: 70px !important;
}
.width80{
    width: 80px !important;
}
.width100{
    width: 100px !important;
}
.width120{
    width: 120px !important;
}
.pl-40{
    padding-left:40px !important;
}

/* Menú-Rol: fondos opacos al scroll (cabecera sticky + columna menú fija) */
.tabla-menu-rol {
    border-collapse: separate;
    border-spacing: 0;
}
.tabla-menu-rol thead th {
    background-color: #85c1e9 !important;
    color: #17202a;
    font-weight: 600;
    border-color: #7fb3d5;
    white-space: nowrap;
}
.tabla-menu-rol thead.tableFloatingHeaderOriginal {
    background-color: #85c1e9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.tabla-menu-rol thead.tableFloatingHeaderOriginal th {
    background-color: #85c1e9 !important;
}
.tabla-menu-rol tbody tr:nth-of-type(odd) > td {
    background-color: #f5f5f5 !important;
    background-clip: padding-box;
}
.tabla-menu-rol tbody tr:nth-of-type(even) > td {
    background-color: #fff !important;
    background-clip: padding-box;
}
.tabla-menu-rol.table-hover tbody tr:hover > td {
    background-color: #ececec !important;
}
.tabla-menu-rol thead th:first-child,
.tabla-menu-rol tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 16rem;
    max-width: 22rem;
    box-shadow: 2px 0 6px -2px rgba(0, 0, 0, 0.12);
    background-clip: padding-box;
}
.tabla-menu-rol thead th:first-child {
    z-index: 6;
}
.tabla-menu-rol thead.tableFloatingHeaderOriginal th:first-child {
    z-index: 7;
}
.menu-rol-tabla-wrap {
    overflow: auto;
    max-height: calc(100vh - 14rem);
}

/* Menú-Rol: resaltar módulos de nivel 1 (raíz del árbol) */
.tabla-menu-rol tr.menu-rol-fila-modulo > td {
    background-color: #d6eaf8 !important;
    border-top: 2px solid #85c1e9;
    color: #17202a;
    font-weight: 600;
}
.tabla-menu-rol.table-hover tbody tr.menu-rol-fila-modulo:hover > td {
    background-color: #c5dff5 !important;
}
.tabla-menu-rol tbody > tr.menu-rol-fila-modulo:first-child > td {
    border-top: none;
}
.tabla-menu-rol tr.menu-rol-fila-modulo-cierre > td {
    border-bottom: 2px solid #85c1e9;
}
.tabla-menu-rol tr.menu-rol-fila-modulo > td.menu-rol-celda-modulo {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.pl-50{
    padding-left:50px !important;
}
.pl-60{
    padding-left:60px !important;
}
.form-horizontal.form--label-right .form-group label:not(.kt-checkbox):not(.kt-radio):not(.kt-option) {
    text-align: right;
}

/* CSS de semaforo */
.semaforo-horizontal {
    display: flex; /* Activa Flexbox */
    justify-content: center; /* Centra los círculos en la página */
    gap: 15px; /* Espacio entre luces */
    background-color: #fff; /* Color del semáforo */
    padding: 20px;
    border-radius: 50px;
    border: 1px solid black;
    width: 220px; /* Ancho ajustado */
    height: 100px;
    margin: 0 auto; /* Centra el contenedor completo */
}
.luz {
width: 60px;
height: 55px;
background-color: #555; /* Luz apagada */
border-radius: 50%;
transition: background-color 0.5s;
}

/* Colores encendidos */
.red.active { background-color: red; }
.yellow.active { background-color: yellow; }
.green.active { background-color: green; }

/* ============================================================
   Modo consulta (solapas abiertas con ?vista=consulta)
   - Sin sidebar, sin pushmenu, sin navegación entre módulos.
   - El usuario solo trabaja con la consulta y sus anidadas.
   ============================================================ */
body.modo-consulta .main-sidebar,
body.modo-consulta .control-sidebar {
    display: none !important;
}
body.modo-consulta .content-wrapper,
body.modo-consulta .main-footer,
body.modo-consulta .main-header {
    margin-left: 0 !important;
}
body.modo-consulta .main-header {
    border-top: 3px solid #ffc107;
    background-color: #fffdf5;
}
body.modo-consulta .navbar-text.text-warning {
    font-size: 0.95rem;
}

/* ABM usuario: asignación dual empresas / roles */
.usuario-asignacion-dual .usuario-dual-list {
    width: 100%;
    height: 10.5rem;
    min-height: 10.5rem;
    font-size: 0.9rem;
}
.usuario-asignacion-dual .usuario-dual-etiqueta {
    display: block;
    min-height: 1.35rem;
    line-height: 1.35;
}
.usuario-asignacion-dual .usuario-dual-etiquetas {
    margin-bottom: 0.15rem;
}
.usuario-asignacion-dual .usuario-dual-listas {
    min-height: 10.5rem;
}
.usuario-asignacion-dual .usuario-dual-acciones {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 10.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}
.usuario-asignacion-dual .usuario-dual-acciones .btn-group-vertical {
    width: auto;
}
.usuario-asignacion-dual .usuario-dual-acciones .btn {
    min-width: 2.75rem;
}
@media (max-width: 767.98px) {
    .usuario-asignacion-dual .usuario-dual-acciones {
        min-height: auto;
        padding: 0.5rem 0;
    }
    .usuario-asignacion-dual .usuario-dual-acciones .btn-group-vertical {
        flex-direction: row;
    }
    .usuario-asignacion-dual .usuario-dual-acciones .btn {
        margin: 0 0.25rem !important;
    }
}

/* Reportes: asignación dual empresas (listas compactas) */
.reporte-empresas-dual .reporte-dual-listas-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    align-items: center;
}
.reporte-empresas-dual .reporte-dual-col-lista {
    flex: 0 0 auto;
    width: 13.5rem;
    max-width: 13.5rem;
}
.reporte-empresas-dual .reporte-dual-col-acciones {
    flex: 0 0 auto;
    width: 2.5rem;
}
.reporte-empresas-dual .reporte-dual-col-consolidar {
    flex: 0 0 auto;
    width: 6.75rem;
    max-width: 6.75rem;
    align-self: center;
}
.reporte-empresas-dual .reporte-consolidar-ayuda {
    font-size: 0.7rem;
    line-height: 1.2;
}
.reporte-empresas-dual .reporte-dual-encabezados.reporte-dual-listas-compact {
    gap: 0.5rem;
}
.reporte-empresas-dual .reporte-dual-list {
    width: 13.5rem;
    max-width: 13.5rem;
    height: 7.25rem;
    min-height: 7.25rem;
    font-size: 0.85rem;
}
.reporte-empresas-dual .reporte-dual-listas {
    min-height: 7.25rem;
}
.reporte-empresas-dual .reporte-dual-acciones {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 7.25rem;
    padding-left: 0;
    padding-right: 0;
}
.reporte-empresas-dual .reporte-dual-acciones .btn-group-vertical {
    width: auto;
}
.reporte-empresas-dual .reporte-dual-acciones .btn {
    min-width: 2.35rem;
    padding: 0.2rem 0.35rem;
}
.reporte-empresas-dual .btn-toggle-consolidar-empresas .fa-check {
    width: 0.9rem;
}
.reporte-empresas-dual .btn-outline-secondary.btn-toggle-consolidar-empresas .fa-check {
    opacity: 0.35;
}
@media (max-width: 767.98px) {
    .reporte-empresas-dual .reporte-dual-acciones {
        min-height: auto;
        padding: 0.4rem 0;
    }
    .reporte-empresas-dual .reporte-dual-acciones .btn-group-vertical {
        flex-direction: row;
    }
    .reporte-empresas-dual .reporte-dual-acciones .btn {
        margin: 0 0.2rem !important;
    }
}

/* Mayor plano: código + nombre cuenta en una línea */
.mpc-cuenta-inline .mpc-cuenta-codigo-input {
    flex: 0 0 6.75rem;
    width: 6.75rem;
    max-width: 6.75rem;
}
.mpc-cuenta-inline .mpc-cuenta-nombre-input {
    min-width: 0;
}
