/*
   Botón MARCAR HALLAZGOS
   Cargado antes del JavaScript para evitar saltos visuales.
*/

#recuadrosPanel .recuadros-boton-principal {
    width: 300px !important;
    min-width: 300px !important;
    max-width: 300px !important;

    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;

    flex: 0 0 300px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 16px !important;

    box-sizing: border-box !important;

    white-space: nowrap !important;

    transition: none !important;
    animation: none !important;

    position: static !important;
}

/* MARCAR HALLAZGOS - SIN FONDO */
body #recuadrosPanel button.recuadros-boton-principal {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;

    color: #ffffff !important;
    border: 1px solid #94a3b8 !important;
}

body #recuadrosPanel button.recuadros-boton-principal:hover,
body #recuadrosPanel button.recuadros-boton-principal:active,
body #recuadrosPanel button.recuadros-boton-principal:focus {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}


/* ============================================================
   MARCAR HALLAZGOS - TRANSPARENTE DEFINITIVO
   Incluye boton original y botones proxy creados por JS
   ============================================================ */

html body #marcarHallazgosBarra,
html body #boton-marcar-hallazgos-v2,
html body #fila-tres-botones-v2 #boton-marcar-hallazgos-v2,
html body #fila-botones-superiores-v1 #boton-marcar-hallazgos-v2,
html body button.recuadros-boton-principal[data-a="abrir"],
html body #recuadrosPanel button[data-a="abrir"] {

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    box-shadow: none !important;

    border: none !important;

    color: #ffffff !important;
}


/* HOVER / CLICK / FOCUS */

html body #marcarHallazgosBarra:hover,
html body #marcarHallazgosBarra:active,
html body #marcarHallazgosBarra:focus,

html body #boton-marcar-hallazgos-v2:hover,
html body #boton-marcar-hallazgos-v2:active,
html body #boton-marcar-hallazgos-v2:focus,

html body button.recuadros-boton-principal[data-a="abrir"]:hover,
html body button.recuadros-boton-principal[data-a="abrir"]:active,
html body button.recuadros-boton-principal[data-a="abrir"]:focus {

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    box-shadow: none !important;
    border: none !important;

    color: #ffffff !important;
}


/* ============================================================
   RPAS_SCROLL_DETALLE_HALLAZGO_V1

   Scroll vertical solamente cuando el contenido del
   Detalle del hallazgo supera la altura disponible.
   ============================================================ */

#detalleHallazgoContenido {

    max-height: 48vh !important;

    overflow-y: auto !important;
    overflow-x: hidden !important;

    overscroll-behavior: contain;
}


/* En pantallas más chicas permitimos un poco más de altura */

@media (max-width: 720px) {

    #detalleHallazgoContenido {

        max-height: 58vh !important;
    }
}


/* Igualar Marcar hallazgos con los controles de pantallas. */
html body #recuadrosPanel button.recuadros-boton-principal[data-a="abrir"],
html body #marcarHallazgosBarra,
html body #fila-tres-botones-v2 #boton-marcar-hallazgos-v2,
html body #fila-botones-superiores-v1 #boton-marcar-hallazgos-v2,
html body #boton-marcar-hallazgos-v2 {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    padding: 0 12px !important;
    border: 1px solid #0b4fa1 !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    color: #0b3d82 !important;
    font-family: var(--tipo-portal, var(--fuente-portal, Arial)) !important;
    font-size: var(--tipo-control, 12px) !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    box-sizing: border-box !important;
}

html body #recuadrosPanel button.recuadros-boton-principal[data-a="abrir"]:hover,
html body #marcarHallazgosBarra:hover,
html body #fila-tres-botones-v2 #boton-marcar-hallazgos-v2:hover,
html body #fila-botones-superiores-v1 #boton-marcar-hallazgos-v2:hover,
html body #boton-marcar-hallazgos-v2:hover {
    background: #eef5ff !important;
}

html body.modo-oscuro #recuadrosPanel button.recuadros-boton-principal[data-a="abrir"],
html body.modo-oscuro #marcarHallazgosBarra,
html body.modo-oscuro #fila-tres-botones-v2 #boton-marcar-hallazgos-v2,
html body.modo-oscuro #fila-botones-superiores-v1 #boton-marcar-hallazgos-v2,
html body.modo-oscuro #boton-marcar-hallazgos-v2 {
    border-color: #484f58 !important;
}

html body #recuadrosPanel button.recuadros-boton-principal[data-a="abrir"]:is(:active, :focus),
html body #marcarHallazgosBarra:is(:active, :focus),
html body #fila-tres-botones-v2 #boton-marcar-hallazgos-v2:is(:active, :focus),
html body #fila-botones-superiores-v1 #boton-marcar-hallazgos-v2:is(:active, :focus),
html body #boton-marcar-hallazgos-v2:is(:active, :focus) {
    background: #ffffff !important;
    color: #0b3d82 !important;
    border: 1px solid #0b4fa1 !important;
}

html body.modo-oscuro #recuadrosPanel button.recuadros-boton-principal[data-a="abrir"]:is(:hover, :active, :focus),
html body.modo-oscuro #marcarHallazgosBarra:is(:hover, :active, :focus),
html body.modo-oscuro #fila-tres-botones-v2 #boton-marcar-hallazgos-v2:is(:hover, :active, :focus),
html body.modo-oscuro #fila-botones-superiores-v1 #boton-marcar-hallazgos-v2:is(:hover, :active, :focus),
html body.modo-oscuro #boton-marcar-hallazgos-v2:is(:hover, :active, :focus) {
    border-color: #484f58 !important;
}
