/* General body styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Container styles */
.container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Header styles */
h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

h2, h3 {
    margin-top: 40px;
    font-size: 1.5em;
    color: #E87722;
}

/* File input styles */
input[type="file"] {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Button styles */
button {
    background-color: #0C2340;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

button:hover {
    background-color: #0056b3;
}

/* Report display styles */
#reportDisplay {
    margin-top: 20px;
    text-align: left;
}

/* Wrapper around the table to handle margins */
.table-wrapper {
    margin: 10px; /* Adjust margins here */
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

/* Table header and cell styles */
th, td {
    border: 1px solid #ddd;
    padding: 12px;
    page-break-inside: avoid; /* Prevent breaking inside cells */
}

th {
    background-color: #0C2340;
    color: white;
}

td {
    background-color: #f9f9f9;
}

/* Paragraph styles */
p {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Unordered list styles */
ul {
    list-style-type: disc;
    padding-left: 20px;
}

/* List item styles */
li {
    margin-bottom: 10px;
}

/* Print-specific styles */
@media print {
    .page-break {
        page-break-before: always;
        page-break-after: avoid;
    }

    tr, td {
        page-break-inside: avoid; /* Ensure table rows and cells do not break */
    }

    .table-wrapper {
        page-break-inside: avoid; /* Prevent breaking inside wrapper */
    }
}
