:root {
    --color-corporativo: #b8398a;
    --color-separador: #006633;
    --ancho-pagina: 939px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--color-corporativo);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

a,
a:visited {
    color: inherit;
    text-decoration: none;
}

/* ---------- Estructura común ---------- */

.pagina {
    width: var(--ancho-pagina);
    margin: 0 auto;
    background-color: #fff;
}

.cabecera {
    padding-left: 50px;
}

.cabecera img {
    display: block;
    border: 0;
}

.barra {
    height: 30px;
    line-height: 30px;
    padding-left: 50px;
    background-color: var(--color-corporativo);
    font-size: 14px;
    font-weight: bold;
}

.barra a,
.barra a:visited {
    color: #fff;
}

.contenido {
    padding-top: 30px;
    min-height: 300px;
}

/* ---------- Tarjeta ---------- */

.tarjeta {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 300px;
    height: 191px;
    margin: 0;
    padding: 142px 0 0 20px;
    background: url("../images/TarjetaVerdeCPB01_300.png") no-repeat;
}

.tarjeta-numero {
    width: 175px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-align: center;
}

.tarjeta-numero-lectura {
    width: 210px;
}

.tarjeta-flecha {
    margin-top: -5px;
}

/* ---------- Inicio ---------- */

.inicio {
    padding: 0 0 20px 50px;
}

.inicio-ayuda {
    width: 300px;
    margin: 10px 0 0;
    font-size: 11px;
    text-align: center;
}

.inicio-error {
    width: 300px;
    margin: 12px 0 0;
    color: #c00;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
}

/* ---------- Datos ---------- */

.datos {
    display: grid;
    grid-template-columns: 345px 594px;
    padding-bottom: 40px;
}

.datos-resumen {
    padding-left: 22px;
    padding-right: 23px;
}

.anyos {
    margin: 4px 0 8px;
    line-height: 16px;
    text-align: center;
}

.anyos a:hover,
.anyo-actual {
    font-weight: bold;
    color: var(--color-corporativo);
}

.recuadro {
    width: 250px;
    margin: 12px auto;
    border: thin solid #000;
    font-size: 16px;
    font-weight: normal;
    text-align: center;
}

.dato {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding-left: 10px;
}

.dato img {
    width: 32px;
    height: 32px;
}

.separador {
    width: 90%;
    margin: 10px auto;
    border: 0;
    border-top: 1px solid var(--color-separador);
}

/* ---------- Pestañas ---------- */

.pestanyas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 75px;
    align-items: center;
    justify-items: center;
}

.pestanya {
    display: block;
    width: 188px;
    height: 47px;
    background-repeat: no-repeat;
}

.pestanya-puntos {
    background-image: url("../images/punteo_bn.png");
}

.pestanya-puntos:hover,
.pestanya-puntos.activa {
    background-image: url("../images/punteo.png");
}

.pestanya-aportaciones {
    background-image: url("../images/aportaciones_bn.png");
}

.pestanya-aportaciones:hover,
.pestanya-aportaciones.activa {
    background-image: url("../images/aportaciones.png");
}

.pestanya.activa {
    cursor: default;
}

/* ---------- Tablas ---------- */

.tabla {
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 11px;
}

.tabla th,
.tabla td {
    padding: 1px 3px;
}

.tabla th + th,
.tabla td + td {
    border-left: 1px solid #000;
}

.tabla thead th {
    height: 35px;
    border-bottom: thin solid #000;
    vertical-align: middle;
}

.tabla-puntos th,
.tabla-puntos td {
    width: 75px;
    text-align: center;
}

.tabla-puntos .col-material {
    width: auto;
    text-align: left;
}

.tabla-puntos tfoot th {
    border-top: thin solid #000;
}

.tabla-aportaciones {
    width: 95%;
}

.tabla-aportaciones .col-fecha,
.tabla-aportaciones .col-comprobante {
    width: 12%;
}

.tabla-aportaciones .col-hora,
.tabla-aportaciones .col-kg {
    width: 10%;
}

.tabla-aportaciones tbody tr {
    border-bottom: thin solid #666;
}

.centrado {
    text-align: center;
}

.derecha {
    text-align: right;
}

.sin-datos {
    margin-top: 20px;
    font-size: 12px;
    text-align: center;
}
