/**
 * ============================================================
 * AKBAR KHAN TRUST
 * PRINT STYLESHEET
 * ============================================================
 *
 * File    : /public_html/assets/css/responsive/print.css
 * Version : 1.0.0
 * PHP     : 8.2+
 *
 * Responsibility:
 * Print and PDF-friendly output only.
 * ============================================================
 */

@media print {

    /* ========================================================
       PAGE
       ======================================================== */

    @page {
        margin: 15mm;
    }

    html,
    body {
        background: #fff !important;
        color: #000 !important;
        min-width: 0 !important;
    }


    /* ========================================================
       HIDE NON-PRINT UI
       ======================================================== */

    .no-print,
    .print-hidden,

    .topbar,
    .navigation,
    .mobile-navigation,
    .nav-overlay,

    .sidebar,
    .admin-sidebar,

    .modal,
    .modal-backdrop,

    .dropdown-menu,

    .notification,
    .notifications,

    button,
    .btn,

    video,
    iframe,

    .pagination,

    footer.site-footer {
        display: none !important;
    }


    /* ========================================================
       SHOW PRINT ELEMENTS
       ======================================================== */

    .print-only {
        display: block !important;
    }


    /* ========================================================
       LAYOUT
       ======================================================== */

    .container,
    .content,
    .main-content,
    main {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }


    /* ========================================================
       TYPOGRAPHY
       ======================================================== */

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: #000 !important;
        page-break-after: avoid;
        break-after: avoid;
    }

    p,
    li,
    blockquote {
        color: #000 !important;
        orphans: 3;
        widows: 3;
    }


    /* ========================================================
       LINKS
       ======================================================== */

    a {
        color: #000 !important;
        text-decoration: underline !important;
    }

    a[href]::after {
        content: none;
    }


    /* ========================================================
       IMAGES
       ======================================================== */

    img {
        max-width: 100% !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }


    /* ========================================================
       TABLES
       ======================================================== */

    table {
        width: 100% !important;
        border-collapse: collapse !important;
        page-break-inside: auto;
    }

    thead {
        display: table-header-group;
    }

    tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    th,
    td {
        border: 1px solid #000 !important;
        color: #000 !important;
        background: #fff !important;
    }


    /* ========================================================
       CARDS / SECTIONS
       ======================================================== */

    .card,
    .section,
    .print-section {
        background: #fff !important;
        box-shadow: none !important;
        border-color: #000 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }


    /* ========================================================
       BACKGROUND / SHADOW RESET
       ======================================================== */

    *,
    *::before,
    *::after {
        box-shadow: none !important;
        text-shadow: none !important;
    }


    /* ========================================================
       URL DISPLAY — OPTIONAL
       ======================================================== */

    .print-url a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        word-break: break-all;
    }


    /* ========================================================
       PAGE BREAK UTILITIES
       ======================================================== */

    .print-break-before {
        page-break-before: always;
        break-before: page;
    }

    .print-break-after {
        page-break-after: always;
        break-after: page;
    }

    .print-avoid-break {
        page-break-inside: avoid;
        break-inside: avoid;
    }
}