﻿/*
 * Version 1.1.8. Componente compartido para pantallas Agregar/Modificar y Ver.
 * La estructura HTML compartida se genera desde MetaDatoPersonalizado.
 */
.gmx-vista-registro {
    width: 100%;
    padding: 6px 2px 4px;
}

/* El título integrado no genera el contenedor exterior que, en la interfaz
   anterior, acercaba el separador al breadcrumb. Conserva esa alineación sin
   alterar la posición ni el flujo del panel de registro. */
.gmx-separador-vista-registro {
    float: none !important;
    width: 100% !important;
    margin-top: 0 !important;
    transform: translateY(-9px);
}

.gmx-encabezado-vista-registro {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(0, auto) minmax(140px, 1fr);
    align-items: center;
    width: 100%;
    min-height: 58px;
    margin: -8px 0 12px;
}

.gmx-encabezado-vista-registro > .gmx-titulo-modulo-contenedor {
    grid-column: 2;
    width: auto;
    min-width: 0;
    margin: 0 !important;
}

.gmx-encabezado-vista-registro-acciones {
    display: flex;
    grid-column: 3;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-right: 15px;
}

.gmx-boton-ayuda-vista-registro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #c7d2e3;
    background: #fff;
    box-shadow: 0 2px 6px rgba(18, 33, 74, .08);
    color: #12214a;
    font-weight: 700;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.gmx-boton-ayuda-vista-registro-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e7f4ed;
    color: #21835a;
    font-size: 14px;
}

.gmx-boton-ayuda-vista-registro:hover,
.gmx-boton-ayuda-vista-registro:focus {
    border-color: #8fa2bf;
    background: #f7f9fc;
    box-shadow: 0 4px 10px rgba(18, 33, 74, .13);
    color: #0d1938;
    outline: 0;
    transform: translateY(-1px);
}

.gmx-boton-ayuda-vista-registro:focus {
    box-shadow: 0 0 0 3px rgba(33, 131, 90, .17), 0 4px 10px rgba(18, 33, 74, .13);
}

.gmx-vista-registro-columnas {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-right: -8px;
    margin-left: -8px;
}

.gmx-vista-registro-columna {
    float: none;
    padding-right: 8px;
    padding-left: 8px;
}

/* Alinea el componente fiscal con el panel principal sin sustituir los anchos
   Bootstrap definidos por los atributos de cada modelo. */
@media (min-width: 992px) {
    .gmx-vista-registro-columnas-fiscal {
        align-items: stretch;
    }

    .gmx-vista-registro-columnas-fiscal > #divFGPartidaOrigenPersonaFiscal,
    .gmx-vista-registro-columnas-fiscal > .gmx-vista-registro-columna {
        display: flex;
        flex-direction: column;
    }

    .gmx-vista-registro-columnas-fiscal > #divFGPartidaOrigenPersonaFiscal {
        margin-bottom: 18px;
    }

    .gmx-vista-registro-columnas-fiscal > #divFGPartidaOrigenPersonaFiscal > .gmx-origen-persona-fiscal,
    .gmx-vista-registro-columnas-fiscal > .gmx-vista-registro-columna > .gmx-panel-registro {
        flex: 1 1 auto;
        height: 100%;
        margin-top: 0;
    }

    .gmx-vista-registro-columnas-fiscal > #divFGPartidaOrigenPersonaFiscal > .gmx-origen-persona-fiscal {
        margin-bottom: 0;
    }
}

.gmx-vista-registro-columna-altura-contenido {
    align-self: flex-start;
    height: auto;
}

.gmx-vista-registro-columna-altura-contenido > .gmx-panel-registro,
.gmx-vista-registro-columna-altura-contenido .gmx-panel-registro-cuerpo,
.gmx-vista-registro-columna-altura-contenido .gmx-vista-registro-tarjetas {
    height: auto;
    max-height: none;
    overflow: visible;
}

.gmx-panel-registro {
    overflow: visible;
    margin-bottom: 18px;
    border: 1px solid #d8e0ec;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(18, 33, 74, .09);
}

.gmx-panel-registro-encabezado {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 54px;
    padding: 13px 18px;
    border-bottom: 1px solid #e1e7f0;
    border-radius: 9px 9px 0 0;
    background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

.gmx-panel-registro-herramientas {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    margin-left: 2px;
}

.gmx-panel-registro-acento {
    flex: 0 0 4px;
    width: 4px;
    height: 26px;
    border-radius: 999px;
    background: #1f8a5b;
}

.gmx-panel-registro-titulo {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #12214a;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.gmx-panel-registro-titulos {
    flex: 1 1 auto;
    min-width: 0;
}

/* Variante para integrar el título del módulo en el encabezado de una vista Ver. */
.gmx-panel-registro-con-modulo {
    border-left: 4px solid #2a9b55;
}

.gmx-panel-registro-encabezado-con-modulo {
    flex-wrap: wrap;
    gap: 12px 16px;
    padding-left: 10px;
}

.gmx-panel-registro-identidad {
    display: flex;
    align-items: center;
    width: auto;
    max-width: 42%;
    min-width: 0;
    flex: 0 1 auto;
}

.gmx-panel-registro-modulo {
    display: flex;
    align-items: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
    gap: 7px;
    flex: 0 1 auto;
}

.gmx-panel-registro-identidad .gmx-panel-registro-modulo-icono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 36px;
    color: #101f43;
    font-size: 23px !important;
    line-height: 1;
    flex: 0 0 22px;
}

.gmx-panel-registro-modulo-texto {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 3px 0 3px 14px;
    flex: 0 1 auto;
}

.gmx-panel-registro-modulo-texto::before {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    width: 4px;
    background: #009632;
    border-radius: 4px;
    content: "";
}

.gmx-panel-registro-modulo-tipo {
    display: block;
    margin-bottom: 1px;
    color: #287c46;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.gmx-panel-registro-modulo-nombre {
    max-width: 100%;
    margin: 0;
    overflow-wrap: break-word;
    color: #071a4c;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.15;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}

.gmx-panel-registro-informacion-integrada {
    display: flex;
    align-items: center;
    min-width: 220px;
    padding-left: 16px;
    border-left: 1px solid #d7dee8;
    flex: 1 1 260px;
}

.gmx-panel-registro-acciones {
    flex: 0 0 auto;
    margin-left: auto;
}

/* Conserva los anchos col-* y evita que las alturas distintas alteren el inicio de la fila siguiente. */
.gmx-vista-registro-editor .gmx-campos-registro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-right: -15px;
    margin-left: -15px;
}

.gmx-vista-registro-editor .gmx-campos-registro > .DivEstiloElementosAC {
    float: none;
    min-width: 0;
    margin-bottom: 15px;
}

.gmx-vista-registro-editor .gmx-campos-registro > .clearfix {
    flex: 0 0 100%;
    width: 100%;
    height: 0;
}

.gmx-vista-registro-editor .gmx-campos-registro > .DivEstiloElementosAC > .control-label {
    text-align: left;
}

.gmx-vista-registro-editor .gmx-campos-registro > .DivEstiloElementosAC > [data-lbl-auto] {
    display: block;
    overflow-wrap: anywhere;
    font-weight: 400;
    text-align: left;
}

.gmx-panel-registro-descripcion {
    margin: 3px 0 0;
    color: #5d6980;
    font-size: 13px;
    line-height: 1.45;
}

.gmx-panel-registro-contador {
    align-self: center;
    margin-left: auto;
}

.gmx-panel-registro-estado {
    align-self: center;
    margin-left: auto;
}

.gmx-panel-registro-cuerpo {
    position: relative;
    padding: 18px;
    border-radius: 0 0 9px 9px;
}

.gmx-panel-registro-cuerpo::after {
    display: table;
    clear: both;
    content: "";
}

.gmx-vista-registro-panel-anidado {
    clear: both;
    width: 100%;
    margin-bottom: 15px;
}

.gmx-panel-registro-anidado {
    overflow: visible;
    border: 1px solid #d8e0ec;
    border-radius: 8px;
    background: #f8fafc;
}

.gmx-panel-registro-anidado > .gmx-panel-registro-encabezado {
    min-height: 0;
    padding: 10px 14px;
    border-radius: 7px 7px 0 0;
}

.gmx-panel-registro-anidado .gmx-panel-registro-titulo {
    font-size: 15px;
}

.gmx-panel-registro-anidado-cuerpo {
    padding: 14px 8px 0;
}

.gmx-panel-registro-anidado-cuerpo::after {
    display: table;
    clear: both;
    content: "";
}

.gmx-panel-registro-anidado-cuerpo .DivEstiloElementosAC,
.gmx-panel-registro-anidado-cuerpo .divFG {
    margin-bottom: 14px;
}

/* Base reutilizable para modales de captura construidos con ModalVistaRegistro. */
.gmx-modal-registro {
    --gmx-modal-fondo: #f7f9fc;
    --gmx-modal-superficie: #fff;
    --gmx-modal-borde: #d8e0ea;
    --gmx-modal-texto: #172033;
    --gmx-modal-secundario: #64748b;
    --gmx-modal-primario: #1769aa;
    --gmx-modal-primario-hover: #12578e;
    color: var(--gmx-modal-texto);
    font-family: "Segoe UI", Arial, sans-serif;
}

.gmx-modal-registro .modal-dialog {
    width: calc(100% - 30px);
    max-width: 980px;
    margin-right: auto;
    margin-left: auto;
}

.gmx-modal-registro .modal-content {
    overflow: hidden;
    color: var(--gmx-modal-texto);
    border: 0;
    border-radius: 14px;
    background: var(--gmx-modal-superficie);
    box-shadow: 0 20px 55px rgba(22, 35, 58, .18);
}

.gmx-modal-registro .gmx-modal-registro-cabecera {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    min-height: 72px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--gmx-modal-borde);
    background: var(--gmx-modal-superficie);
}

.gmx-modal-registro .gmx-modal-registro-cabecera::before,
.gmx-modal-registro .gmx-modal-registro-cabecera::after,
.gmx-modal-registro .modal-footer::before,
.gmx-modal-registro .modal-footer::after {
    display: none;
    content: none;
}

.gmx-modal-registro-titulos {
    min-width: 0;
}

.gmx-modal-registro .gmx-modal-registro-titulos .modal-title {
    margin: 0;
    color: var(--gmx-modal-texto);
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
}

.gmx-modal-registro .gmx-modal-registro-titulos p {
    margin: 2px 0 0;
    color: var(--gmx-modal-secundario);
    font-size: 12px;
    line-height: 18px;
}

.gmx-modal-registro .gmx-modal-registro-cabecera .close {
    position: static !important;
    top: auto;
    right: auto;
    display: inline-flex;
    float: none;
    flex: 0 0 38px;
    align-self: flex-start;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    color: var(--gmx-modal-secundario);
    font-size: 26px;
    text-shadow: none;
    border: 0;
    border-radius: 9px;
    background: transparent;
    opacity: 1;
}

.gmx-modal-registro .gmx-modal-registro-cabecera .close:hover,
.gmx-modal-registro .gmx-modal-registro-cabecera .close:focus {
    color: var(--gmx-modal-texto);
    background: var(--gmx-modal-fondo);
    outline: 0;
}

.gmx-modal-registro .modal-body {
    overflow-y: auto;
    max-height: calc(100vh - 210px);
    padding: 20px;
    background: var(--gmx-modal-superficie);
}

.gmx-modal-registro .gmx-modal-registro-cuerpo-con-scroll {
    overflow-y: scroll !important;
    width: auto;
    margin-right: 0;
    margin-left: 0;
    overscroll-behavior: contain;
    scrollbar-color: #8793a3 #edf1f5;
    scrollbar-gutter: stable;
}

.gmx-modal-registro .gmx-modal-registro-cuerpo-con-scroll::-webkit-scrollbar {
    width: 10px;
}

.gmx-modal-registro .gmx-modal-registro-cuerpo-con-scroll::-webkit-scrollbar-track {
    border-radius: 8px;
    background: #edf1f5;
}

.gmx-modal-registro .gmx-modal-registro-cuerpo-con-scroll::-webkit-scrollbar-thumb {
    border: 2px solid #edf1f5;
    border-radius: 8px;
    background: #8793a3;
    background-clip: padding-box;
}

.gmx-modal-registro .gmx-modal-registro-cuerpo-con-scroll::-webkit-scrollbar-thumb:hover {
    background: #6f7c8d;
    background-clip: padding-box;
}

.gmx-modal-registro-campos-adicionales {
    margin-top: 0;
    margin-right: 0;
    margin-left: 0;
    padding-top: 4px;
}

.gmx-modal-registro .modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 68px;
    padding: 15px 18px;
    border-top: 1px solid var(--gmx-modal-borde);
    background: var(--gmx-modal-superficie);
}

.gmx-modal-registro .modal-footer .btn {
    min-width: 0;
    min-height: 38px;
    margin: 0;
    padding: 8px 13px;
    border-radius: 9px;
}

.gmx-modal-registro .modal-footer .btn-primary {
    border-color: var(--gmx-modal-primario);
    background: var(--gmx-modal-primario);
}

.gmx-modal-registro .modal-footer .btn-primary:hover,
.gmx-modal-registro .modal-footer .btn-primary:focus {
    border-color: var(--gmx-modal-primario-hover);
    background: var(--gmx-modal-primario-hover);
}

.gmx-modal-registro-pie-ayuda {
    margin-right: auto;
    color: var(--gmx-modal-secundario);
    font-size: 11px;
    line-height: 17px;
    text-align: left;
}

.gmx-sin-controles-numero {
    -moz-appearance: textfield;
    appearance: textfield;
}

.gmx-sin-controles-numero::-webkit-inner-spin-button,
.gmx-sin-controles-numero::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

@media (max-width: 767px) {
    .gmx-modal-registro .modal-dialog {
        width: calc(100% - 20px);
        margin: 10px;
    }

    .gmx-modal-registro .modal-content {
        display: flex;
        flex-direction: column;
        max-height: calc(100vh - 20px);
    }

    .gmx-modal-registro .modal-body {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        padding: 13px;
    }

    .gmx-modal-registro .modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .gmx-modal-registro-pie-ayuda {
        width: 100%;
        margin: 0 0 4px;
    }
}

.gmx-panel-registro-anidado-avisos {
    margin: 0 0 15px;
    padding: 12px 14px;
    border: 1px solid #b9dfcc;
    border-left: 4px solid #1f8a5b;
    border-radius: 6px;
    background: #edf8f2;
    color: #244838;
    list-style: none;
}

.gmx-panel-registro-anidado-avisos li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.gmx-panel-registro-anidado-avisos li + li {
    margin-top: 7px;
}

.gmx-panel-registro-anidado-avisos i {
    margin-top: 3px;
    color: #1f8a5b;
    font-size: 14px;
    flex: 0 0 auto;
}

.gmx-panel-registro-cuerpo-flex {
    display: flex;
    flex-direction: column;
}

.gmx-vista-registro-editor .gmx-panel-registro-cuerpo .control-label {
    margin-bottom: 6px;
    color: #26334d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.gmx-vista-registro-editor .gmx-panel-registro-cuerpo .form-control,
.gmx-vista-registro-editor .gmx-panel-registro-cuerpo .bootstrap-select > .dropdown-toggle {
    min-height: 36px;
    border-color: #cbd5e3;
    border-radius: 5px;
}

.gmx-vista-registro-editor .gmx-panel-registro-cuerpo .bootstrap-select.open,
.gmx-vista-registro-editor .gmx-panel-registro-cuerpo .dropdown-menu {
    z-index: 1060;
}

.gmx-vista-registro-editor #Procesos .gmx-tarjeta-etiqueta-formulario {
    font-size: 14px;
    line-height: 1.45;
}

.gmx-vista-registro-informativo #Procesos .gmx-tarjeta-campo-etiqueta {
    font-size: 13px;
    line-height: 1.4;
}

.gmx-vista-registro-aviso-requeridos {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 14px;
    padding: 7px 10px;
    border: 1px solid #c7d8ee;
    border-left: 4px solid #2f6fb6;
    border-radius: 6px;
    background: #f3f7fc;
    color: #263b59;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

.gmx-vista-registro-aviso-requeridos-icono {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #245e9f;
    font-size: 14px;
    border-radius: 50%;
    background: #e1ecf8;
}

.gmx-vista-registro-aviso-requeridos-texto {
    white-space: nowrap;
}

.gmx-panel-registro-titulos > .gmx-vista-registro-aviso-requeridos {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    margin: 6px 0 0;
    padding: 5px 9px;
}

.gmx-panel-registro-encabezado-con-modulo .gmx-panel-registro-titulos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 12px;
}

.gmx-panel-registro-encabezado-con-modulo .gmx-panel-registro-titulo {
    flex: 1 0 100%;
}

.gmx-panel-registro-encabezado-con-modulo .gmx-panel-registro-descripcion,
.gmx-panel-registro-encabezado-con-modulo .gmx-panel-registro-titulos > .gmx-vista-registro-aviso-requeridos {
    margin-top: 0;
}

.gmx-vista-registro-requerido {
    margin: 0 2px;
    color: #c9363e;
    font-weight: 800;
}

.gmx-vista-registro-visor-dinamico > .gmx-archivo-resumen {
    display: none;
}

@media (max-width: 767px) {
    .gmx-vista-registro-aviso-requeridos-texto {
        white-space: normal;
    }

    .gmx-panel-registro-encabezado-con-modulo .gmx-panel-registro-descripcion,
    .gmx-panel-registro-encabezado-con-modulo .gmx-panel-registro-titulos > .gmx-vista-registro-aviso-requeridos {
        flex-basis: 100%;
    }
}

.gmx-vista-registro-subencabezado {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 0 2px 13px;
    border-bottom: 1px solid #e7ebf2;
    color: #5f6a7e;
    font-size: 13px;
    line-height: 1.45;
}

.gmx-vista-registro-contador {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 29px;
    padding: 4px 11px;
    border: 1px solid #d9e1ee;
    border-radius: 999px;
    background: #f2f5fa;
    color: #12214a;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.gmx-vista-registro-espera {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    float: none;
    width: 100%;
    min-height: 178px;
    margin: 0 0 12px;
    padding: 22px;
    border: 1px dashed #bdc9d9;
    border-radius: 8px;
    background: #f8fafc;
    color: #59677d;
    text-align: center;
}

.gmx-vista-registro-espera p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.gmx-vista-registro-espera-icono {
    color: #536b9c;
    font-size: 20px;
}

.gmx-vista-registro-tarjetas {
    float: none;
    width: 100%;
    padding: 0;
}

.gmx-vista-registro-informativo .gmx-cuadricula-tarjetas {
    align-items: flex-start;
}

.gmx-vista-registro-informativo .gmx-cuadricula-tarjetas-elemento {
    display: block;
}

.gmx-resumen-registro-identidad {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    padding: 0 2px 14px;
    border-bottom: 1px solid #e7ebf2;
}

.gmx-resumen-registro-numero {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.gmx-resumen-registro-numero span {
    color: #40506b;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.4;
}

.gmx-resumen-registro-numero strong {
    overflow-wrap: anywhere;
    color: #12214a;
    font-size: 18px;
    line-height: 1.35;
}

.gmx-resumen-registro-estado {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 15px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1.35;
    text-transform: uppercase;
    white-space: nowrap;
}

.gmx-resumen-registro-estado-bloqueado,
.gmx-resumen-registro-estado-baja {
    border-color: #f3c8cc;
    background: #fff0f1;
    color: #c9363e;
}

.gmx-resumen-registro-estado-desbloqueado,
.gmx-resumen-registro-estado-activo {
    border-color: #bfe4d0;
    background: #eaf7f0;
    color: #21835a;
}

.gmx-resumen-registro-estado-pendiente {
    border-color: #f1cc91;
    background: #fff5e3;
    color: #ad6500;
}

.gmx-resumen-registro {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    margin: 0;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    background: #fff;
    flex-wrap: wrap;
}

.gmx-resumen-registro > [data-resumen="campo"] {
    display: flex;
    float: none;
    flex-direction: column;
    flex-shrink: 0;
    min-width: 0;
    margin: 0;
    padding: 13px 15px;
    border-right: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    box-sizing: border-box;
}

/* Conserva la cuadrícula del resumen en grupos cuyos campos se generan por JavaScript. */
.gmx-resumen-registro-grupo-dinamico {
    display: flex;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.gmx-resumen-registro-grupo-dinamico > [data-resumen="campo"] {
    display: flex;
    float: none;
    flex-direction: column;
    flex-shrink: 0;
    min-width: 0;
    margin: 0;
    padding: 13px 15px;
    border-right: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
    box-sizing: border-box;
}

.gmx-resumen-registro-grupo-dinamico > .col-xs-12 {
    flex-basis: 100%;
    max-width: 100%;
}

.gmx-resumen-registro > .col-xs-6 {
    flex-basis: 50%;
    max-width: 50%;
}

.gmx-resumen-registro > .col-xs-12 {
    flex-basis: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .gmx-resumen-registro > .col-sm-2 {
        flex-basis: 16.66666667%;
        max-width: 16.66666667%;
    }

    .gmx-resumen-registro > .col-sm-6 {
        flex-basis: 50%;
        max-width: 50%;
    }

    .gmx-resumen-registro > .col-sm-10 {
        flex-basis: 83.33333333%;
        max-width: 83.33333333%;
    }

    .gmx-resumen-registro > .col-sm-12 {
        flex-basis: 100%;
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .gmx-resumen-registro-grupo-dinamico > .col-md-4 {
        flex-basis: 33.33333333%;
        max-width: 33.33333333%;
    }

    .gmx-resumen-registro > .col-md-1 {
        flex-basis: 8.33333333%;
        max-width: 8.33333333%;
    }

    .gmx-resumen-registro > .col-md-2 {
        flex-basis: 16.66666667%;
        max-width: 16.66666667%;
    }

    .gmx-resumen-registro > .col-md-3 {
        flex-basis: 25%;
        max-width: 25%;
    }

    .gmx-resumen-registro > .col-md-4 {
        flex-basis: 33.33333333%;
        max-width: 33.33333333%;
    }

    .gmx-resumen-registro > .col-md-5 {
        flex-basis: 41.66666667%;
        max-width: 41.66666667%;
    }

    .gmx-resumen-registro > .col-md-6 {
        flex-basis: 50%;
        max-width: 50%;
    }

    .gmx-resumen-registro > .col-md-8 {
        flex-basis: 66.66666667%;
        max-width: 66.66666667%;
    }

    .gmx-resumen-registro > .col-md-10 {
        flex-basis: 83.33333333%;
        max-width: 83.33333333%;
    }

    .gmx-resumen-registro > .col-md-12 {
        flex-basis: 100%;
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .gmx-resumen-registro-grupo-dinamico > .col-lg-4 {
        flex-basis: 33.33333333%;
        max-width: 33.33333333%;
    }

    .gmx-resumen-registro > .col-lg-1 {
        flex-basis: 8.33333333%;
        max-width: 8.33333333%;
    }

    .gmx-resumen-registro > .col-lg-2 {
        flex-basis: 16.66666667%;
        max-width: 16.66666667%;
    }

    .gmx-resumen-registro > .col-lg-3 {
        flex-basis: 25%;
        max-width: 25%;
    }

    .gmx-resumen-registro > .col-lg-4 {
        flex-basis: 33.33333333%;
        max-width: 33.33333333%;
    }

    .gmx-resumen-registro > .col-lg-5 {
        flex-basis: 41.66666667%;
        max-width: 41.66666667%;
    }

    .gmx-resumen-registro > .col-lg-6 {
        flex-basis: 50%;
        max-width: 50%;
    }

    .gmx-resumen-registro > .col-lg-8 {
        flex-basis: 66.66666667%;
        max-width: 66.66666667%;
    }

    .gmx-resumen-registro > .col-lg-10 {
        flex-basis: 83.33333333%;
        max-width: 83.33333333%;
    }

    .gmx-resumen-registro > .col-lg-12 {
        flex-basis: 100%;
        max-width: 100%;
    }
}

.gmx-resumen-registro > [data-resumen-destacado="true"] .gmx-resumen-registro-valor {
    font-size: 16px;
    font-weight: 600;
}

.gmx-resumen-registro .control-label {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    color: #40506b;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.35;
    text-align: left !important;
}

.gmx-resumen-registro-valor {
    min-height: 20px;
    overflow-wrap: anywhere;
    color: #14213d;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.gmx-barra-acciones-registro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 16px;
    margin: 0 8px 8px;
    padding: 14px 16px;
    border: 1px solid #d8e0ec;
    border-radius: 9px;
    background: #f8fafc;
}

.gmx-barra-acciones-registro-navegacion,
.gmx-barra-acciones-registro-principales {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.gmx-barra-acciones-registro-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 700;
}

.gmx-barra-acciones-registro .gmx-boton-sistema-normal {
    min-height: 35px;
    padding: 5px 22px;
    font-size: 15px;
    line-height: 22px;
    gap: 9px;
}

.gmx-barra-acciones-registro .gmx-boton-sistema > i,
.gmx-barra-acciones-registro .gmx-boton-sistema > .glyphicon {
    font-size: 16px;
}

.gmx-barra-acciones-registro-navegacion > .gmx-boton-sistema {
    min-width: 160px;
}

.gmx-barra-acciones-registro-principales > .gmx-boton-sistema {
    min-width: 220px;
}

.gmx-barra-acciones-registro-boton-secundario {
    border-color: #12214a;
    color: #12214a;
}

.gmx-barra-acciones-registro-boton-secundario:hover,
.gmx-barra-acciones-registro-boton-secundario:focus {
    border-color: #12214a;
    background: #edf1f8;
    color: #12214a;
}

.gmx-barra-acciones-registro-boton-peligro {
    margin-left: 10px;
}

html[data-theme="dark"] .gmx-barra-acciones-registro {
    border-color: #34415a;
    background: #151d2c;
}

@media (max-width: 991px) {
    .gmx-vista-registro-columnas {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        margin-right: 0;
        margin-left: 0;
    }

    .gmx-vista-registro-columnas > #divFGPartidaOrigenPersonaFiscal {
        float: none;
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-height: 0;
        margin: 0 0 18px;
        padding-right: 0;
        padding-left: 0;
    }

    .gmx-vista-registro-columnas > #divFGPartidaOrigenPersonaFiscal > .gmx-origen-persona-fiscal {
        display: block;
        width: 100%;
        height: auto;
        margin: 0;
    }

    .gmx-vista-registro-columna {
        clear: both;
        width: 100%;
        padding-right: 0;
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    .gmx-encabezado-vista-registro {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        min-height: 0;
        margin-top: -4px;
    }

    .gmx-encabezado-vista-registro > .gmx-titulo-modulo-contenedor,
    .gmx-encabezado-vista-registro-acciones {
        grid-column: 1;
    }

    .gmx-encabezado-vista-registro-acciones {
        justify-content: center;
        padding-right: 0;
    }

    .gmx-vista-registro {
        clear: both;
        width: 100%;
        min-width: 0;
        padding-right: 0;
        padding-left: 0;
    }

    .gmx-panel-registro-encabezado {
        flex-wrap: wrap;
        min-height: 50px;
        padding: 12px 14px;
    }

    .gmx-panel-registro-herramientas,
    .gmx-panel-registro-herramientas > .gmx-herramientas--integradas {
        position: static;
    }

    .gmx-panel-registro-encabezado-con-modulo {
        align-items: stretch;
        gap: 10px;
    }

    .gmx-panel-registro-identidad {
        width: 100%;
        max-width: none;
        min-width: 0;
        flex: 1 1 100%;
    }

    .gmx-panel-registro-informacion-integrada {
        width: 100%;
        min-width: 0;
        padding: 9px 0 0;
        border-top: 1px solid #d7dee8;
        border-left: 0;
        flex: 1 1 100%;
    }

    .gmx-panel-registro-encabezado-con-modulo > .gmx-panel-registro-estado,
    .gmx-panel-registro-encabezado-con-modulo > .gmx-panel-registro-contador {
        margin-left: 0;
    }

    .gmx-panel-registro-cuerpo {
        padding: 14px;
    }

    .gmx-panel-registro-anidado > .gmx-panel-registro-encabezado {
        padding: 10px 12px;
    }

    .gmx-panel-registro-anidado-cuerpo {
        padding: 12px 6px 0;
    }

    .gmx-vista-registro-subencabezado,
    .gmx-resumen-registro-identidad {
        align-items: flex-start;
        flex-direction: column;
    }

    .gmx-vista-registro-contador {
        align-self: flex-start;
    }

    .gmx-vista-registro-espera {
        min-height: 120px;
        padding: 16px;
    }

    .gmx-barra-acciones-registro {
        align-items: stretch;
        flex-direction: column;
        margin-right: 0;
        margin-left: 0;
        padding: 12px;
    }

    .gmx-barra-acciones-registro-navegacion,
    .gmx-barra-acciones-registro-principales {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .gmx-barra-acciones-registro-boton {
        width: 100%;
    }

    .gmx-barra-acciones-registro-boton-peligro {
        margin-top: 6px;
        margin-left: 0;
    }
}

@media (min-width: 992px) and (max-width: 1279px) {
    .gmx-vista-registro-editor .gmx-cuadricula-tarjetas-elemento {
        width: 100%;
    }
}
