/* =========================================================
   TABLAS DE EJEMPLO AIP
   Complemento de styles_v2.css / AD2.css (cargar DESPUÉS)
   Base: .table_normal  +  variante
     .tabla_simbolos      -> Ej. puntos significativos / radioayudas
     .tabla_cabecera      -> Ej. MAGNITUD / UNIDADES
     .tabla_lateral       -> Ej. comunidades autónomas
     .tabla_abreviaturas  -> Ej. W / WAC / WB...
   
   ========================================================= */
/* ============================================================
   GEN-ESPECIALES.CSS

   Estilos específicos para:

   - GEN 2.2 + pasar ratón sobre el * y visualizar la nota en tooltip
   - GEN 2.3 + pasar ratón sobre el * y visualizar la nota en tooltip

   ojo: meter <span class......nota...>....en cada linea que contenga el *
   ojo: añadir Anchos: con <colgroup><col>...</colgroup> en html.

   ============================================================ */

/* ============================================================
   1. REGLAS COMUNES  GEN 2.2 Y GEN 2.3
   ============================================================ */


.gen22 .table_normal.nonumberGEN22,
.gen23 .table_normal.nonumberGEN23 {
    width: 100%;
    margin-bottom: 3em;
}

.gen22 .table_normal.nonumberGEN22,
.gen23 .table_normal.nonumberGEN23 {
    table-layout: fixed;
}


/* Bordes y peso de letra */


.gen22 .table_normal.nonumberGEN22 tr,
.gen22 .table_normal.nonumberGEN22 td,
.gen22 .table_normal.nonumberGEN22 th,

.gen23 .table_normal.nonumberGEN23 tr,
.gen23 .table_normal.nonumberGEN23 td,
.gen23 .table_normal.nonumberGEN23 th {
    border: 1px solid #adadad;
    font-weight: 400;
}


/* Celdas generales */


.gen22 .table_normal.nonumberGEN22 td,
.gen23 .table_normal.nonumberGEN23 td {
    padding: 5px;
    text-align: left;
    vertical-align: top;
}


/* Celdas alineadas abajo */


.gen22 .table_normal.nonumberGEN22 td.td_bottom,
.gen23 .table_normal.nonumberGEN23 td.td_bottom {
    padding: 5px;
    vertical-align: bottom;
}


/* Cabeceras centradas verticalmente */


.gen22 .table_normal.nonumberGEN22 thead th,
.gen23 .table_normal.nonumberGEN23 thead th {
    vertical-align: middle;
}


/* Filas informativas sin bordes laterales */


.gen22 .table_normal.nonumberGEN22 thead .info,
.gen22 .table_normal.nonumberGEN22 thead .info td,

.gen23 .table_normal.nonumberGEN23 thead .info,
.gen23 .table_normal.nonumberGEN23 thead .info td {
    text-align: left;
    border: 1px solid transparent;
    border-bottom: 1px solid #000000;
}

/* ============================================================
   3. GEN 2.2
   Tabla de abreviaturas:
   3 % | 17 % | 80 %
   ============================================================ */

.gen22 .table_normal.nonumberGEN22 col:nth-child(1) {
    width: 3%;
}

.gen22 .table_normal.nonumberGEN22 col:nth-child(2) {
    width: 17%;
}

.gen22 .table_normal.nonumberGEN22 col:nth-child(3) {
    width: 80%;
}


/* Segunda columna centrada */

.gen22 .table_normal.nonumberGEN22 td:nth-child(2),
.gen22 .table_normal.nonumberGEN22 td:nth-child(2) p {
    text-align: center;
}


/* Segunda columna en negrita, solo en tbody */

.gen22 .table_normal.nonumberGEN22 tbody td:nth-child(2),
.gen22 .table_normal.nonumberGEN22 tbody td:nth-child(2) p {
    font-weight: 700;
}


/* Fondo de cabecera */

.gen22 .table_normal.nonumberGEN22 thead {
    background-color: #f1f1f1;
}


/* Pie de tabla */

.gen22 .table_normal.nonumberGEN22 tfoot,
.gen22 .table_normal.nonumberGEN22 tfoot tr,
.gen22 .table_normal.nonumberGEN22 tfoot th,
.gen22 .table_normal.nonumberGEN22 tfoot td,
.gen22 .table_normal.nonumberGEN22 tfoot p {
    text-align: left;
}

/* ============================================================
   4. GEN 2.3
   Tabla de abreviaturas:
   3 % | 7 % | 90 %
   ============================================================ */

.gen23 .table_normal.nonumberGEN23 col:nth-child(1) {
    width: 3%;
}

.gen23 .table_normal.nonumberGEN23 col:nth-child(2) {
    width: 7%;
}

.gen23 .table_normal.nonumberGEN23 col:nth-child(3) {
    width: 90%;
}


/* Segunda columna centrada */

.gen23 .table_normal.nonumberGEN23 td:nth-child(2),
.gen23 .table_normal.nonumberGEN23 td:nth-child(2) p {
    text-align: center;
}


/* Segunda columna en negrita, solo en tbody */

.gen23 .table_normal.nonumberGEN23 tbody td:nth-child(2),
.gen23 .table_normal.nonumberGEN23 tbody td:nth-child(2) p {
    font-weight: 700;
}


/* Cabecera específica de la tabla de puntos significativos */

.gen23 .table_punto_significativo thead tr:first-child th {
    background-color: #f1f1f1;
}

.gen23 .table_punto_significativo tr th,
.gen23 .table_punto_significativo tr td {
    border: 1px solid #adadad;
}


/* Pie de tabla */

.gen23 .table_normal.nonumberGEN23 tfoot,
.gen23 .table_normal.nonumberGEN23 tfoot tr,
.gen23 .table_normal.nonumberGEN23 tfoot th,
.gen23 .table_normal.nonumberGEN23 tfoot td,
.gen23 .table_normal.nonumberGEN23 tfoot p {
    text-align: left;
}
/* ============================================================
   4. GEN 3.1
   
   ============================================================ */

.gen31 .table_normal.nonumberGEN31 {
    width: 100%;
    margin-bottom: 3em;
    table-layout: fixed;
}

/* ============================================================
   5. TOOLTIP COMÚN GEN 2.2 Y GEN 2.3 (Pasar ratón y visualizar)
   Ojo: meter <span class......nota...>....en cada linea que contenga el *
   ============================================================ */

.gen22 .nota-oaci,
.gen23 .nota-oaci {
    position: relative;
    cursor: help;
    font-weight: bold;
}

.gen22 .nota-oaci::after,
.gen23 .nota-oaci::after {
    position: absolute;
    bottom: 130%;
    left: 50%;
    z-index: 1000;

    width: max-content;
    max-width: 300px;
    padding: 8px 12px;

    color: #ffffff;
    background-color: #333333;
    border-radius: 5px;

    font-size: 13px;
    font-weight: normal;
    line-height: 1.4;
    white-space: normal;

    opacity: 0;
    visibility: hidden;

    transform: translateX(-50%);
    transition: opacity 0.2s;
}


/* Mostrar el tooltip con ratón o teclado */

.gen22 .nota-oaci:hover::after,
.gen22 .nota-oaci:focus::after,
.gen23 .nota-oaci:hover::after,
.gen23 .nota-oaci:focus::after {
    opacity: 1;
    visibility: visible;
}


/* ============================================================
   6. TEXTO DEL TOOLTIP GEN 2.2
   ============================================================ */

html[lang="es"] .gen22 .nota-oaci::after {
    content: "(*) No incluidas en documentación de la OACI.";
}

html[lang="en"] .gen22 .nota-oaci::after {
    content: "(*) Not included in ICAO documentation.";
}


/* ============================================================
   7. TEXTO DEL TOOLTIP GEN 2.3
   ============================================================ */

html[lang="es"] .gen23 .nota-oaci::after {
    content: "(*) No incluidos en el ANEXO 4 de OACI.";
}

html[lang="en"] .gen23 .nota-oaci::after {
    content: "(*) Not included in ICAO ANNEX 4.";
}


