/* ==========================================================
   PHASEOS · documentos impresos (hoja del trabajo, lista de material)

   Este archivo solo se activa mientras se imprime un documento (ver
   imprimir() en exportar.js): en index.html está con media="not all" y
   exportar.js lo pone en "print" justo antes de imprimir. Así estos
   márgenes no afectan a las etiquetas del almacén, que se imprimen sin
   márgenes (apartado IMPRESIÓN DE ETIQUETAS de phaseos.css).

   Medidas en milímetros y puntos, sobre A4. Blanco y negro, para que salga
   bien en cualquier impresora.
   ========================================================== */

@page {
    size: A4 portrait;
    margin: 14mm 12mm 16mm;
}

.documento {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 10pt;
    line-height: 1.35;
    color: #000000;
}

/* Cabecera: PHASE y qué documento es, el nombre del trabajo y la fecha */
.documento__cabecera {
    margin-bottom: 6mm;
    padding-bottom: 3mm;
    border-bottom: 0.4mm solid #000000;
}

.documento__marca {
    display: flex;
    justify-content: space-between;
    font-size: 9pt;
    font-weight: 700;
    letter-spacing: 0.25em;
}

.documento__que {
    letter-spacing: 0.12em;
    color: #444444;
}

.documento__titulo {
    margin: 2mm 0 1mm;
    font-size: 18pt;
    line-height: 1.2;
}

.documento__subtitulo,
.documento__impreso {
    margin: 0;
    font-size: 9.5pt;
    color: #333333;
}

.documento__impreso {
    margin-top: 1mm;
    font-size: 8.5pt;
    color: #666666;
}

/* Datos: nombre del dato a la izquierda, valor a la derecha */
.documento__datos {
    display: grid;
    grid-template-columns: 30mm 1fr;
    gap: 1.2mm 4mm;
    margin: 0 0 5mm;
}

.documento__datos div {
    display: contents;
}

.documento__datos dt {
    font-weight: 700;
    color: #444444;
}

.documento__datos dd {
    margin: 0;
}

.documento__seccion {
    margin-bottom: 5mm;
}

.documento__seccion p {
    margin: 0 0 2mm;
}

.documento__apartado {
    margin: 0 0 2mm;
    font-size: 9pt;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #444444;
    break-after: avoid;
}

.documento__notas {
    white-space: pre-line;
}

/* Tablas */
.documento__tabla {
    width: 100%;
    margin-bottom: 3mm;
    border-collapse: collapse;
}

.documento__tabla th,
.documento__tabla td {
    padding: 1.3mm 2mm;
    border-bottom: 0.2mm solid #bbbbbb;
    text-align: left;
    vertical-align: top;
}

.documento__tabla thead th {
    font-size: 8.5pt;
    border-bottom: 0.4mm solid #000000;
}

.documento__tabla tr {
    break-inside: avoid;
}

.documento__tabla--personal {
    width: auto;
    min-width: 90mm;
}

.documento__grupo th {
    padding-top: 3mm;
    font-size: 9pt;
    background: #eeeeee;
    border-bottom: 0.3mm solid #000000;
}

.documento__codigo {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.documento__numero {
    text-align: right !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Casillas vacías para marcar a mano la carga y la vuelta */
.documento__casilla {
    width: 11mm;
    text-align: center !important;
}

.documento__casilla::before {
    content: "";
    display: inline-block;
    width: 3.6mm;
    height: 3.6mm;
    border: 0.3mm solid #000000;
}

.documento__tabla--material thead th:nth-child(1),
.documento__tabla--material thead th:nth-child(2) {
    text-align: center;
}

.documento__totales {
    margin-top: 2mm;
}
