﻿#pdfContent {
    background: #fff !important;
    color: #000 !important;
    padding: 30px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Segoe UI', sans-serif;
    font-size: 12pt;
}

.pdf-table{
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
}

.section {
    margin-bottom: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    background: transparent !important;
    break-inside: avoid;
    page-break-inside: avoid; /* For older browsers/PDF engines */
}

.field {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13pt;
    color: #222;
}

    .field span {
        font-weight: 400;
        color: #333;
    }

.subgrid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 8px;
    background: #fff !important;
    border-radius: 4px;
    padding: 8px;
    border: 1px solid #e0e0e0;
    width: 100%;
    box-sizing: border-box;
}

.subitem {
    flex: 1 1 300px; /* Increased min width for better visibility */
    min-width: 200px; /* Ensures items don't shrink too much */
    font-size: 12pt;
    color: #222;
    padding: 2px 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

    .subitem:last-child {
        flex: 1 1 100%;
        color: #555;
        font-style: italic;
        min-width: 100%;
    }

@media (max-width: 900px) {
    .subitem {
        flex: 1 1 100%;
        min-width: 100%;
    }
}
