/* Print / PDF for table sheets and chapters */
@media print {
    .sidebar,
    .site-header,
    .site-footer,
    .sidebar-scrim,
    .reading-progress,
    .header-actions,
    .bookmark-btn,
    .edit-btn,
    .chapter-editor,
    .page-toc,
    .sheet-switch,
    .nav-toc,
    .skip-link {
        display: none !important;
    }

    .action-panel,
    .action-panel[hidden],
    .action-switcher-chrome,
    .action-switcher-chrome[hidden] {
        display: block !important;
    }

    .combat-mode-bar {
        display: none !important;
    }
    .combat-mode-pane,
    .combat-mode-pane[hidden] {
        display: block !important;
    }

    .outcome-picker-bar,
    .outcome-picker-hint {
        display: none !important;
    }
    .outcome-pane,
    .outcome-pane[hidden] {
        display: block !important;
        break-inside: avoid;
        margin-bottom: 0.75rem;
    }

    .shell-main { margin-left: 0 !important; }
    .main-content {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 11pt;
        line-height: 1.45;
    }

    .sheet-page,
    .chapter-content,
    .cover {
        box-shadow: none !important;
        border: none !important;
        background: #fff !important;
        padding: 0 !important;
    }

    .rulebook-table {
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .rulebook-table th {
        background: #eee !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    a { color: inherit !important; text-decoration: none !important; }
    .sheet-page-actions,
    .chapter-navigation,
    .cover-actions { display: none !important; }

    .rule-spoiler {
        border: none !important;
        background: transparent !important;
    }
    .rule-spoiler > summary {
        padding-left: 0 !important;
        font-weight: 700;
    }
    .rule-spoiler > summary::before {
        display: none !important;
    }
    .rule-spoiler-body {
        border: none !important;
        padding: 0.35rem 0 0 !important;
        display: block !important;
    }
}
