@page {
    size: A4;
    /* margin: 20mm; */
}

body {
    font-family: "Times New Roman", serif;
    font-size: 14px;
    color: #000;
    background: #fff;
    margin: 0;
    padding: 0;
}

.medical-report {
    width: 100%;
    max-width: 210mm;
    /* margin: 30px auto; */
    padding: 0;
}


/* HEADER TABLE */
.report-header {
    width: 100%;
    border-collapse: collapse;
    /* margin-bottom: 10px; */
    table-layout: fixed;
    /* 🔥 هذا السطر مهم */
}

.report-header td {
    border: 1px solid #000;
    padding: 3px 10px;
}

.report-header .label {
    background: #bfe6ff;
    font-weight: bold;
    width: 15%;
}

/* TITLE */
.report-title {
    font-family: Calibri, Arial, sans-serif;
    text-align: center;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 5px 0;
    font-size: 16px;
    background-color: #93939343;
    margin: 0;
}

/* INFO TABLE */
.info-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.info-table td {
    border: 0.5px solid #022;
    padding: 4px 6px;
}

.info-table .label {
    font-weight: bold;
    width: 25%;
    /* background: #f0f0f0; */
}
.info-table td.value {
    vertical-align: top;
}

.info-table .value.arabic-text {
    direction: rtl;
    /* text-align: right; */
}
.info-table .value p {
    margin: 0 0 4px 0;
}

.info-table .value li {
    margin-bottom: 4px;
}

/* SECTIONS */
.section {
    margin-top: 10px;
}

.section-title {
    font-weight: bold;
    margin: 0;
}

.GROSS {
    background-color: #f7faff;
}

.MICROSCOPIC {
    background-color: #ecf2fe;
}
.DIAGNOSIS {
    background-color: #deeaf6;
}

.section-body p:last-child,
.section-body ul:last-child,
.section-body ol:last-child {
    margin-bottom: 0;
}

/* PHOTOS */
.photo-row {
    text-align: center;
}

.photo-row img {
    width: 160px;
    border: 1px solid #000;
}

/* DIAGNOSIS */
.diagnosis-box {
    font-weight: bold;
    padding: 6px;
    border: 1px solid #000;
    line-height: 1.5;
}
.diagnosis-box p {
    margin: 0;
}

/* SIGNATURE */
.signature {
    font-family: Calibri, Arial, sans-serif;
    text-align: right;
    margin-top: 40px;
}

.signature p {
    margin: 0 0 10px 0;
}

.signature strong {
    font-size: 14px;
}

.signature span {
    font-size: 12px;
    color: #555;
}

/* Content styling */
.content {
    line-height: 1.6;
    margin: 5px 0;
}

/* For Arabic text */
.arabic-text {
    direction: rtl;
    text-align: right;
    font-family: "Times New Roman", serif;
}

/* Print styles */
@media print {
    body {
        font-size: 13px;
    }

    .medical-report {
        max-width: 100%;
        padding: 0;
    }
}

.clinic-header,
.patient-info-table,
.clinic-name,
.clinic-address {
    display: none;
}

td.colspan {
    width: 50%;
}

.photo-section {
    page-break-inside: avoid;
    border-top: #000 1px solid;
}

.report-header .label {
    white-space: nowrap;
    font-size: 13px;
}

/* Section headers background */
.section-title {
    padding: 2px 6px;
    font-weight: bold;
    border: none;
}

/* Section bodies without borders */
.section-body {
    border: none;
    padding: 6px 4px;
}

.diagnosis-box {
    border: none;
    font-weight: bold;
}

.section-title {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.center {
    text-align: center;
}


.arabic-name {
    font-family: 'DejaVu Sans', sans-serif !important;
    direction: rtl;
    /* text-align: right; */
    unicode-bidi: embed;
}

        .signature {
            /* margin-top: 40px; */
            text-align: right;
        }

        /* الكتلة الكاملة */
        .signature-block {
            display: inline-block;
            text-align: center;
        }

        /* Pathologist */
        .signature .role {
            font-style: italic;
            font-weight: bold;
        }

        /* الاسم */
        .signature .name {
            font-weight: bold;
            margin: 0;
        }

        /* التاريخ */
        .signature .c_date {
            font-size: 13px;
        }

        @font-face {
            font-family: 'GreatVibesPDF';
            src: url('../fonts/WindSong/WindSong-Regular.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        /* التوقيع */
        .signature .signature-name {
            font-family: 'GreatVibesPDF', cursive;
            font-size: 28px;
            margin-top: -15px;
        }
