﻿
.print-sheet {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 15mm;
    background: #fff;
    box-shadow: 0 0 12px rgba(0,0,0,.15);
    box-sizing: border-box;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #212529;
    padding-bottom: 10px;
    margin-bottom: 18px;
}

    .sheet-header h2 {
        margin: 0;
    }

    .sheet-header .doc-meta {
        text-align: right;
        font-size: .9rem;
        color: #555;
    }

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}

    .info-grid table {
        width: 100%;
    }

    .info-grid th {
        width: 42%;
        color: #555;
        font-weight: 600;
        white-space: nowrap;
    }

.section-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    border-bottom: 1px solid #dee2e6;
    margin: 22px 0 10px;
    padding-bottom: 4px;
}

.grand-total-row td, .grand-total-row th {
    font-size: 1.1rem;
    border-top: 2px solid #212529;
}

.signatures {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin-top: 60px;
}

.signature-block {
    text-align: center;
}

.signature-line {
    border-top: 1px solid #333;
    margin-top: 48px;
    padding-top: 6px;
    font-size: .85rem;
    color: #555;
}

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .print-sheet {
        width: auto;
        min-height: 0;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    table {
        break-inside: avoid;
    }

    .signatures {
        break-inside: avoid;
    }
}

@page {
    size: A4;
    margin: 15mm;
}
