/*
 * utilidades.css
 * F2 (TDD-008 E15 / deuda 7.41): clases utilitarias para los valores de estilo que
 * antes vivian como atributos style="..." en linea y que Bootstrap no cubre con una
 * clase propia exacta. El objetivo es que style-src pueda dejar de necesitar
 * 'unsafe-inline'. Los pocos valores realmente dinamicos (ej. el color de marca de
 * una EmpresaEmisora) no estan aqui: se resuelven con una variable CSS que asigna
 * wwwroot/js/estilos-dinamicos.js desde un atributo data-*.
 */

.bg-overlay-50 {
    background-color: rgba(0, 0, 0, 0.5);
}

.bg-placeholder {
    background-color: #f0f0f0;
}

.campo-honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.cursor-pointer {
    cursor: pointer;
}

.fs-060 {
    font-size: 0.6rem;
}

.fs-065 {
    font-size: 0.65rem;
}

.fs-070 {
    font-size: 0.7rem;
}

.fs-075 {
    font-size: 0.75rem;
}

.fs-088 {
    font-size: 0.875rem;
}

.fs-100 {
    font-size: 1rem;
}

.fs-10px {
    font-size: 10px;
}

.fs-150 {
    font-size: 1.5rem;
}

.fs-200 {
    font-size: 2rem;
}

.fs-250 {
    font-size: 2.5rem;
}

.fs-300 {
    font-size: 3rem;
}

.fs-350 {
    font-size: 3.5rem;
}

.fs-400 {
    font-size: 4rem;
}

.h-120px {
    height: 120px;
}

.h-150px {
    height: 150px;
}

.h-18px {
    height: 18px;
}

.h-24px {
    height: 24px;
}

.h-30px {
    height: 30px;
}

.h-32px {
    height: 32px;
}

.h-40px {
    height: 40px;
}

.h-500px {
    height: 500px;
}

.h-60px {
    height: 60px;
}

.mh-120px {
    max-height: 120px;
}

.mh-150px {
    max-height: 150px;
}

.mh-420px {
    max-height: 420px;
}

.mh-500px {
    max-height: 500px;
}

.mh-72px {
    max-height: 72px;
}

.minh-100px {
    min-height: 100px;
}

.minh-200px {
    min-height: 200px;
}

.mw-150px {
    max-width: 150px;
}

.mw-220px {
    max-width: 220px;
}

.mw-320px {
    max-width: 320px;
}

.mw-350px {
    max-width: 350px;
}

.mw-360px {
    max-width: 360px;
}

.mw-380px {
    max-width: 380px;
}

.mw-3rem {
    max-width: 3rem;
}

.mw-70px {
    max-width: 70px;
}

.mw-90px {
    max-width: 90px;
}

.of-cover {
    object-fit: cover;
}

.op-80 {
    opacity: 0.8;
}

.oy-auto {
    overflow-y: auto;
}

.text-pre-line {
    white-space: pre-line;
}

.text-pre-wrap {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.w-100px {
    width: 100px;
}

.w-120px {
    width: 120px;
}

.w-130px {
    width: 130px;
}

.w-140px {
    width: 140px;
}

.w-150px {
    width: 150px;
}

.w-18px {
    width: 18px;
}

.w-190px {
    width: 190px;
}

.w-200px {
    width: 200px;
}

.w-24px {
    width: 24px;
}

.w-30px {
    width: 30px;
}

.w-340px {
    width: 340px;
}

.w-350px {
    width: 350px;
}

.w-40px {
    width: 40px;
}

.w-50px {
    width: 50px;
}

.w-60px {
    width: 60px;
}

.w-80px {
    width: 80px;
}

.w-90px {
    width: 90px;
}

.w-pct-10 {
    width: 10%;
}

.w-pct-11 {
    width: 11%;
}

.w-pct-12 {
    width: 12%;
}

.w-pct-13 {
    width: 13%;
}

.w-pct-14 {
    width: 14%;
}

.w-pct-15 {
    width: 15%;
}

.w-pct-17 {
    width: 17%;
}

.w-pct-18 {
    width: 18%;
}

.w-pct-20 {
    width: 20%;
}

.w-pct-22 {
    width: 22%;
}

.w-pct-4 {
    width: 4%;
}

.w-pct-40 {
    width: 40%;
}

.w-pct-5 {
    width: 5%;
}

.w-pct-7 {
    width: 7%;
}

.w-pct-8 {
    width: 8%;
}

.zi-10 {
    z-index: 10;
}

.zi-11 {
    z-index: 11;
}

.zi-9999 {
    z-index: 9999;
}

/* Burbuja de chat (Solicitudes/_MensajeChat.cshtml): ancho fijo del mensaje. */
.chat-bubble-max {
    max-width: 75%;
}

/* Color de marca dinamico por EmpresaEmisora (Public/_BrandingHeader.cshtml).
 * El valor de la variable lo asigna wwwroot/js/estilos-dinamicos.js desde
 * data-color-primario; sin JS, el color de respaldo (inherit) no rompe el layout. */
.branding-color-dinamico {
    color: var(--branding-color-primario, inherit);
}

/* UX-A-01: columna de acciones fija a la derecha en tablas anchas (Ligas): los botones
 * siempre quedan a la vista aunque la tabla tenga desplazamiento horizontal. */
.columna-acciones-fija {
    position: sticky;
    right: 0;
    background-color: var(--bs-body-bg, #fff);
    box-shadow: -6px 0 6px -6px rgba(0, 0, 0, 0.25);
    min-width: 6rem;
}

/* Menu de la campana: 340 px en escritorio; en movil se fija bajo la barra superior y ocupa
   el ancho disponible (los !important anulan el posicionamiento en linea de Popper). */
.menu-campana {
    width: min(340px, calc(100vw - 24px));
}

.mh-340px {
    max-height: 340px;
}

@media (max-width: 575.98px) {
    .menu-campana {
        position: fixed !important;
        /* Respaldo sin script: push-suscripcion.js calcula el top real al abrir. */
        inset: 6rem 12px auto 12px !important;
        transform: none !important;
        width: auto;
        max-height: calc(100vh - 6rem - 12px);
        overflow: hidden;
    }

    .menu-campana.show {
        display: flex;
        flex-direction: column;
    }

    .menu-campana > .oy-auto {
        flex: 1 1 auto;
        min-height: 0;
    }
}

/* Concepto de partida: respeta saltos de linea y rompe palabras largas en celulares. */
.texto-concepto {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

/* Textarea del concepto: crece con el contenido (JS) hasta un maximo, luego hace scroll. */
.concepto-textarea {
    max-height: 20rem;
    overflow-y: auto;
    resize: vertical;
}

/* Reporte de visita (EVO-E-007): miniaturas de fotos y mensajes citados del chat. */
.rv-miniatura {
    width: 5.5rem;
    height: 5.5rem;
    object-fit: cover;
}

.rv-foto-galeria {
    max-width: 100%;
    max-height: 14rem;
    object-fit: contain;
}

.rv-mensaje {
    white-space: pre-line;
    max-height: 9rem;
    overflow-y: auto;
}

/* Pantalla Calidad del agente (EVO-E-007): carga JSON como texto plano con scroll. */
.carga-json {
    max-height: 60vh;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

/* Revision del reporte de visita: seleccion de partidas y foto marcada para quitar */
.rv-partidas-lista {
    max-height: 12rem;
    overflow-y: auto;
}

.rv-quitar-aviso {
    display: none;
}

.rv-quitar:has(.rv-quitar-check:checked) .rv-quitar-aviso {
    display: block;
}

.rv-foto-card:has(.rv-quitar-check:checked) {
    border-color: var(--bs-warning);
    opacity: 0.75;
}


/* Liga publica de la propuesta (UX-A-11): casilla grande, detalle plegable y botones tactiles. */
.casilla-partida {
    width: 1.5rem;
    height: 1.5rem;
}

.concepto-colapsado {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.concepto-colapsado.lineas-3 {
    -webkit-line-clamp: 3;
}

.boton-ver-mas {
    min-height: 44px;
    min-width: 44px;
}

.boton-tactil {
    min-height: 44px;
}

.min-w-0 {
    min-width: 0;
}

/* Botones pequenos de tabla: 44 px de alto en pantallas tactiles (celular y tableta vertical). */
@media (max-width: 767.98px) {
    .boton-tactil-movil {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}
