﻿/* ==========================================================================
   HABECU-THEME.CSS — Tema visual corporativo HABECU
   Base de diseño para toda la aplicación
   ========================================================================== */

/* ==========================================================
   VARIABLES DE COLOR Y TIPOLOGÍA CORPORATIVA
   ========================================================== */
:root {
    /* Verdes institucionales */
    --HABECU-verde-oscuro: #0b3f0b;
    --HABECU-verde-medio: #155815;
    --HABECU-verde-claro: #88c57a;
    /* Complementarios */
    --HABECU-dorado: #ffd86a;
    --HABECU-blanco: #ffffff;
    --HABECU-gris-suave: #f3f7f4;
    --HABECU-gris-borde: #d1dfd2;
    --HABECU-texto: #1e1e1e;
    /* Rojos / advertencias */
    --HABECU-rojo: #b23c3c;
    --HABECU-rojo-claro: #d9534f;
    /* Sombra estándar */
    --HABECU-sombra: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ==========================================================
   CABECERA INSTITUCIONAL
   ========================================================== */
.Cabecera {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 10px 0 16px;
}

.Cabecera--ribbon {
    padding: 10px 20px;
}

.tt-cabecera {
    color: var(--HABECU-dorado);
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(0,0,0,0.7);
    letter-spacing: 0.4px;
}

.tt-cabecera--xl {
    font-size: 20px;
}

.tt-cabecera--md {
    font-size: 17px;
}

/* ==========================================================
   BOTONES CORPORATIVOS
   ========================================================== */
.btn-HABECU {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 6px;
    border: 1px solid var(--HABECU-verde-oscuro);
    background: linear-gradient(180deg, var(--HABECU-verde-medio) 0%, var(--HABECU-verde-oscuro) 100%);
    color: var(--HABECU-blanco);
    text-shadow: 0 1px 0 rgba(0,0,0,0.4);
    box-shadow: var(--HABECU-sombra);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    user-select: none;
}

    .btn-HABECU:hover {
        background: linear-gradient(180deg, #18751a 0%, #0a440a 100%);
        transform: translateY(-1px);
    }

/* Variantes */
.btn-HABECU--ok {
    background: linear-gradient(180deg, #29a329 0%, #0f6e0f 100%);
}

.btn-HABECU--cancel {
    background: linear-gradient(180deg, #a32b2b 0%, #7a1f1f 100%);
}

.btn-HABECU--info {
    background: linear-gradient(180deg, #2b7ca3 0%, #1a506b 100%);
}

.btn-HABECU--warn {
    background: linear-gradient(180deg, #f7c04a 0%, #c99207 100%);
    color: #333;
}

.btn-HABECU--reverse {
    background: var(--HABECU-blanco);
    color: var(--HABECU-verde-medio);
    border-color: var(--HABECU-verde-medio);
}

/* ==========================================================
   TABLAS / GRIDVIEW
   ========================================================== */
.mGrid, .mGridDetalle {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #999;
    background-color: #f6faf6;
    font-size: 13px;
}

    .mGrid th, .mGridDetalle th {
        background: linear-gradient(180deg, #b5d9b0 0%, #99cc99 100%);
        color: #063a06;
        font-weight: 700;
        padding: 6px 8px;
    }

    .mGrid td, .mGridDetalle td {
        border: 1px solid #d0e1d0;
        padding: 5px 8px;
    }

    .mGrid tr:hover, .mGridDetalle tr:hover {
        background-color: #e8f5e9 !important;
        transition: background-color 0.2s ease;
    }

/* ==========================================================
   PESTAÑAS (Ajax TabContainer)
   ========================================================== */
.ajax__tab_xp .ajax__tab_header {
    background: #d4ecd1 !important;
    border-bottom: 2px solid var(--HABECU-verde-medio) !important;
}

.ajax__tab_xp .ajax__tab_tab {
    background: #eaf7e9 !important;
    border: 1px solid var(--HABECU-gris-borde);
    border-radius: 8px 8px 0 0;
    padding: 5px 12px;
    color: var(--HABECU-verde-oscuro);
    font-weight: 600;
}

.ajax__tab_xp .ajax__tab_active {
    background: linear-gradient(180deg, #d4f5cf 0%, #b6e1b0 100%) !important;
    border-color: var(--HABECU-verde-oscuro);
    color: #0c3a0c !important;
}

/* ==========================================================
   VISOR DE DOCUMENTOS
   ========================================================== */
#visorContainer {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#visorBarra {
    background: #f4f4f4;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
}

#lblNombreArchivo {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#btnAbrirNuevaPestana {
    display: none;
    color: var(--HABECU-verde-medio);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

    #btnAbrirNuevaPestana:hover {
        color: var(--HABECU-verde-oscuro);
    }

/*#visorPlaceholder,
#iframePreviewDoc {
    flex: 1;
    width: 100%;
    border: 1px;
}*/

/* ==========================================================
   UTILIDADES GENERALES
   ========================================================== */
.texto-verde {
    color: var(--HABECU-verde-medio) !important;
}

.texto-dorado {
    color: var(--HABECU-dorado) !important;
}

.texto-centro {
    text-align: center !important;
}

.sombra {
    box-shadow: var(--HABECU-sombra);
}

/* ==========================================================
   FIN DEL TEMA HABECU
   ========================================================== */
