/* === Print mode (bez UI, pro Chrome headless PDF) === */
.print-mode {
    padding: 0;
    margin: 0;
    gap: 0;
    display: block;
    background: white;
}

.print-mode .sheet-wrapper {
    transform: none !important;
    margin: 0;
    padding: 0;
    width: 420mm;
    height: 297mm;
    overflow: hidden;
    page-break-after: always;
    page-break-inside: avoid;
}

.print-mode .sheet-wrapper:last-child {
    page-break-after: auto;
}

.print-mode .sheet-label {
    display: none;
}

.print-mode .sheet {
    width: 420mm;
    height: 297mm;
    box-shadow: none;
    border: none;
    overflow: hidden;
}

.print-mode .sector {
    overflow: hidden;
    border: 0.1mm dashed #ccc;
}

.print-mode .sector::after {
    display: none;
}

.print-mode .sector-empty {
    background: transparent;
}

/* === Print Styles (Ctrl+P z prohlížeče) === */
@media print {
    .toolbar,
    .sheet-label,
    .btn {
        display: none !important;
    }

    body {
        background: white;
        margin: 0;
        padding: 0;
    }

    @page {
        size: A3 landscape;
        margin: 0;
    }

    .preview-mode,
    .print-mode {
        padding: 0;
        gap: 0;
        display: block;
    }

    .sheet-wrapper {
        transform: none !important;
        page-break-after: always;
        page-break-inside: avoid;
        margin: 0;
        width: 420mm;
        height: 297mm;
        overflow: hidden;
    }

    .sheet-wrapper:last-child {
        page-break-after: auto;
    }

    .sheet {
        width: 420mm;
        height: 297mm;
        box-shadow: none;
        border: none;
        overflow: hidden;
    }

    .sector {
        border: 0.1mm dashed #ccc;
        overflow: hidden;
    }

    .sector:hover {
        box-shadow: none;
    }

    .sector::after {
        display: none;
    }

    .sector-empty {
        background: transparent;
    }
}
