/* Печать (js/io/print.js). На экране блок печати скрыт, при печати — виден только он. */
#printRoot { display: none; }

@media print {
    @page { size: A4; margin: 12mm; }
    body { display: block; height: auto; overflow: visible; background: #fff; color: #000; font-size: 10pt; }
    body > :not(#printRoot) { display: none !important; }
    #printRoot { display: block; }

    .p-head { margin-bottom: 6mm; }
    .p-title { font-size: 14pt; font-weight: 600; }
    .p-sub { margin-top: 1mm; color: #555; font-size: 9pt; }

    .p-section { margin-bottom: 6mm; }
    .p-section h2 { margin: 0 0 2mm; font-size: 12pt; font-weight: 600; break-after: avoid; }
    .p-section h2 span { color: #777; font-weight: 400; }
    .p-table { width: 100%; border-collapse: collapse; font-size: 9pt; }
    .p-table th { padding: 1.5mm 2mm; border-bottom: 0.5pt solid #000; color: #444; font-weight: 500; text-align: left; }
    .p-table td { padding: 1.8mm 2mm; border-bottom: 0.3pt solid #bbb; vertical-align: top; }
    .p-table tr { break-inside: avoid; }
    .p-check { width: 6mm; }
    .p-box { display: inline-block; width: 3.5mm; height: 3.5mm; border: 0.6pt solid #000; border-radius: 0.6mm; }
    .p-name { width: 40%; }
    .p-parent { margin-top: 0.8mm; color: #666; font-size: 8pt; }
    .p-reason { margin-top: 0.8mm; font-size: 8.5pt; }
    tr.p-blocked .p-name::before, .p-card.p-blocked .p-card-title::before { content: '\25A0  '; }

    /* Карточки для физической доски: 3 в ряд, пунктир — линия отреза */
    .p-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
    .p-card {
        display: flex;
        flex-direction: column;
        gap: 2mm;
        min-height: 45mm;
        padding: 4mm;
        border: 0.4pt dashed #999;
        break-inside: avoid;
    }
    .p-card-top, .p-card-foot { display: flex; justify-content: space-between; gap: 2mm; color: #555; font-size: 8pt; }
    .p-card-title { flex: 1; font-size: 11pt; font-weight: 500; line-height: 1.25; }
    .p-card.p-blocked { border: 1.2pt solid #000; }
}
