/*
 * 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;
}

.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 > .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;
    min-height: 40px;
    padding: 6px 13px 6px 8px;
    border: 1px solid #c7d2e3;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(18, 33, 74, .08);
    color: #12214a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    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: 27px;
    height: 27px;
    border-radius: 50%;
    background: #e7f4ed;
    color: #21835a;
    font-size: 16px;
}

.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;
}

.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 {
    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__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;
}

.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-panel-registro__cuerpo--flex {
    display: flex;
    flex-direction: column;
}

.gmx-vista-registro--editor .gmx-panel-registro__cuerpo > .DivEstiloElementosAC {
    float: none !important;
    width: 100% !important;
    margin: 0 0 15px;
    padding-right: 0;
    padding-left: 0;
}

.gmx-vista-registro--editor .gmx-panel-registro__cuerpo > .DivEstiloElementosAC:last-child {
    margin-bottom: 0;
}

.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--detalle #Procesos .gmx-tarjeta__campo-etiqueta {
    font-size: 13px;
    line-height: 1.4;
}

.gmx-vista-registro__aviso-requeridos {
    margin-bottom: 17px;
    padding: 10px 12px;
    border-color: #bfddeb;
    border-radius: 6px;
    background: #edf7fb;
    color: #27617c;
    font-size: 13px;
    line-height: 1.45;
}

.gmx-vista-registro__requerido {
    margin: 0 2px;
    color: #c9363e;
    font-weight: 800;
}

.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--detalle .gmx-cuadricula-tarjetas {
    align-items: flex-start;
}

.gmx-vista-registro--detalle .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 {
    border-color: #f3c8cc;
    background: #fff0f1;
    color: #c9363e;
}

.gmx-resumen-registro__estado--desbloqueado {
    border-color: #bfe4d0;
    background: #eaf7f0;
    color: #21835a;
}

.gmx-resumen-registro {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    margin: 0;
    border: 1px solid #dfe5ee;
    border-radius: 8px;
    background: #fff;
}

.gmx-resumen-registro > [data-resumen="campo"] {
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0;
    padding: 13px 15px;
    border-right: 1px solid #edf0f4;
    border-bottom: 1px solid #edf0f4;
}

.gmx-resumen-registro > [data-resumen-ancho="completo"] {
    grid-column: 1 / -1;
}

.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;
    align-items: center;
    justify-content: space-between;
    gap: 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;
    align-items: center;
    gap: 9px;
}

.gmx-barra-acciones-registro__boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 132px;
    min-height: 44px;
    padding: 9px 14px;
    border-radius: 5px;
    font-weight: 700;
}

.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;
}

@media (max-width: 991px) {
    .gmx-vista-registro__columnas {
        display: block;
        margin-right: 0;
        margin-left: 0;
    }

    .gmx-vista-registro__columna {
        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 > .titulo-modulo-contenedor,
    .gmx-encabezado-vista-registro__acciones {
        grid-column: 1;
    }

    .gmx-encabezado-vista-registro__acciones {
        justify-content: center;
        padding-right: 0;
    }

    .gmx-boton-ayuda-vista-registro {
        min-height: 42px;
    }

    .gmx-vista-registro {
        padding-right: 0;
        padding-left: 0;
    }

    .gmx-panel-registro__encabezado {
        min-height: 50px;
        padding: 12px 14px;
    }

    .gmx-panel-registro__cuerpo {
        padding: 14px;
    }

    .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-resumen-registro {
        grid-template-columns: minmax(0, 1fr);
    }

    .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: 768px) and (max-width: 1199px) {
    .gmx-resumen-registro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) and (max-width: 1279px) {
    .gmx-vista-registro--editor .gmx-cuadricula-tarjetas__elemento {
        width: 100%;
    }
}
