#tap2med-print-container {
    display: none;
}

@media print {
    /* Hide everything else in the dashboard */
    body > :not(#tap2med-print-container) {
        display: none !important;
    }

    /* Reset body for paper */
    html, body {
        height: 100%;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        font-family: "Inter", Arial, sans-serif;
        color: #000;
    }

    @page {
        margin: 1.5cm; /* Standard A4 margins */
        size: A4;
    }

    #tap2med-print-container {
        display: block !important;
        width: 100%;
    }

    /* Layout Specifics from the Photo */
    .rx-header-grid {
        display: flex;
        justify-content: space-between;
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.4;
    }

    .rx-patient-banner {
        background-color: #f1f5f9;
        padding: 8px 12px;
        font-weight: bold;
        font-size: 14px;
        display: flex;
        justify-content: space-between;
        border-top: 1px solid #cbd5e1;
        border-bottom: 1px solid #cbd5e1;
        margin-bottom: 10px;
    }

    .rx-vitals-row {
        display: flex;
        gap: 20px;
        font-size: 13px;
        margin-bottom: 15px;
        padding: 0 12px;
    }

    .rx-diagnosis-row {
        font-size: 14px;
        margin-bottom: 20px;
        padding: 0 12px;
    }

    .rx-symbol {
        font-size: 32px;
        font-family: serif;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .rx-med-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
        margin-bottom: 30px;
    }

    .rx-med-table th {
        border-bottom: 2px solid #000;
        padding: 8px;
        text-align: left;
        color: #333;
        font-weight: 600;
    }

    .rx-med-table td {
        padding: 10px 8px;
        border-bottom: 1px solid #e2e8f0;
        vertical-align: top;
    }

    /* Zebra striping just like the photo */
    .rx-med-table tr:nth-child(even) {
        background-color: #f8fafc;
    }

    .rx-note {
        display: block;
        font-size: 12px;
        color: #475569;
        margin-top: 4px;
        font-style: italic;
    }

    .rx-footer-grid {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-top: 40px;
    }

    .rx-signature {
        text-align: center;
        width: 200px;
    }

    .rx-signature-line {
        border-bottom: 1px solid #000;
        margin-bottom: 5px;
        height: 40px;
    }
}