/* ============================================================
   print.css — Aalborg Kanonlaug bestyrelsesportal
   Indlæses globalt via _Layout.cshtml.
   Reglerne aktiveres kun ved @media print eller window.print().
   ============================================================ */

@media print {
    /* ── Skjul navigationselementer ── */
    .portal-sidebar,
    .sidebar-search-wrap,
    .navbar,
    nav,
    .btn,
    .btn-group,
    form,
    .alert,
    .modal,
    .offcanvas,
    .dropdown-menu,
    [class*="no-print"],
    .print-hide {
        display: none !important;
    }

    /* ── Fyld hele siden ── */
    .portal-main,
    main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-family: "Times New Roman", Times, serif;
        font-size: 11pt;
    }

    /* ── Tabeller ── */
    table {
        border-collapse: collapse;
        width: 100%;
        page-break-inside: auto;
    }

    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    th,
    td {
        border: 1px solid #999;
        padding: 4pt 6pt;
        text-align: left;
    }

    th {
        background: #e8e8e8 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        font-weight: bold;
    }

    /* ── Farver bevares i tabeller ── */
    .table-danger,
    .table-warning,
    .table-success {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* ── Overskrifter ── */
    h1, h2, h3, h4 {
        page-break-after: avoid;
        color: #1a1a5e !important;
    }

    /* ── Ingen baggrund på kort ── */
    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    /* ── Sidefod ── */
    .print-footer {
        display: block;
        position: fixed;
        bottom: 0;
        width: 100%;
        text-align: center;
        font-size: 8pt;
        color: #555;
        border-top: 1px solid #ccc;
        padding-top: 4pt;
    }

    /* ── Sidetop ── */
    .print-header {
        display: block;
        border-bottom: 2px solid #1a1a5e;
        margin-bottom: 12pt;
        padding-bottom: 6pt;
    }

    /* ── Undgå sideskift inden for sektioner ── */
    .print-section {
        page-break-inside: avoid;
    }

    /* ── Links ── */
    a[href]::after {
        content: none !important; /* Undgå at URL'er udskrives */
    }
}

/* ── Vis kun print-header/footer ved print ── */
.print-header,
.print-footer {
    display: none;
}
