

      @page {
    size: A4;
    margin: 18mm;
}

body {
    font-family: Arial, sans-serif;
    color: #111;
    background: #f3f4f6;
    margin: 0;
    padding: 10px;
}

.document {
    width: 210mm;
    min-height: 297mm;
    margin: auto;
    background: white;
     padding:
        4mm
        20mm
        20mm
        20mm;
    box-sizing: border-box;
}

.document-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 25px;

}

.header-left {
    flex: 1;
}

.header-right img {

    width: 140px;

    height: auto;

}

h1 {
    font-size: 28px;
    margin-bottom: 6px;
    color: #111827;
}

h2 {
    font-size: 20px;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    color: #111827;
}

.section {
    margin-bottom: 30px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 10px 0;
    vertical-align: top;
    border-bottom: 1px solid #eee;
}

.info-label {
    width: 220px;
    font-weight: bold;
    color: #374151;
}

.amount-box {
    margin-top: 20px;
    padding: 20px;
    border: 2px solid #111827;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    background: #f9fafb;
}

.payment-box {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    padding: 20px;
}

.court-order {
    margin-top: 35px;
}

.court-order-image {

    float: right;

    width: 230px;

    margin-left: 25px;
    margin-bottom: 20px;

    border: 1px solid #ccc;

}

.court-order::after {
    content: "";
    display: block;
    clear: both;
}

.evidence-section {
    margin-top: 40px;
}

.evidence-gallery {

    display: flex;

    gap: 12px;

    margin-top: 20px;

}

.evidence-image {

    flex: 1;

}

.evidence-image img {

    width: 100%;

    height: 180px;

    object-fit: cover;

    border: 1px solid #ccc;

    display: block;

}

.print-button {
    margin-bottom: 10px;
}

.print-button button {
    padding: 12px 18px;
    background: #111827;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.print-button button:hover {
    background: #000;
}

.footer-note {
    margin-top: 40px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

@media print {

    body {
        background: white;
        padding: 0;
    }

    .document {
        width: 100%;
        min-height: auto;
        padding: 0;
        box-shadow: none;
    }

    .print-button {
        display: none;
    }

}

p {
   
    margin-bottom: 16px;
}


.section,
.payment-box,
.court-order,
.evidence-images {
    page-break-inside: avoid;
}


