* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@page {
    size: A4;
    margin: 1.5cm;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    padding: 0;
    font-size: 14px;
}

.report-container {
    max-width: 210mm;
    margin: 0 auto;
    background: #fff;
    padding: 0;
}

.report-header {
    background: var(--mainreby-report-color, #134e7a);
    color: #fff;
    padding: 40px 50px;
    margin-bottom: 30px;
}

.report-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.report-header .subtitle {
    font-size: 16px;
    opacity: 0.95;
}

.header-info-table {
    width: 100%;
    margin-top: 25px;
    table-layout: fixed;
    border-collapse: collapse;
}

.header-info-item {
    vertical-align: top;
    padding-right: 15px;
}

.header-info-item:last-child {
    padding-right: 0;
}

.header-info-label {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.header-info-value {
    font-size: 15px;
    font-weight: 600;
}

.header-link {
    color: #fff;
    text-decoration: underline;
}

.client-logo {
    max-width: 150px;
    max-height: 80px;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.report-content {
    padding: 0 50px 40px;
}

.section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--mainreby-report-color, #134e7a);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--mainreby-report-color, #134e7a);
}

.info-grid {
    margin-bottom: 25px;
}

.info-item {
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid var(--mainreby-report-color, #134e7a);
    border-radius: 4px;
}

.info-item-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.info-item-value {
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.notes-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border-left: 4px solid var(--mainreby-report-color, #134e7a);
    margin-bottom: 25px;
}

.notes-box h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--mainreby-report-color, #134e7a);
}

.notes-box p {
    color: #555;
    line-height: 1.8;
}

.event-log {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--mainreby-report-color, #134e7a);
    border-radius: 6px;
    padding: 12px 18px;
    margin-bottom: 15px;
}

.event-log-header {
    overflow: hidden;
    margin-bottom: 6px;

}

.event-log-title {
    float: left;
    width: 65%;
    font-size: 18px;
    font-weight: 700;
    color: var(--mainreby-report-color, #134e7a);

}

.event-log-meta {
    float: right;
    width: 30%;
    text-align: right;
    font-size: 12px;
    color: #666;
}

.event-log-meta span {
    display: inline-block;
    margin-left: 8px;
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
}

.event-log-content {
    clear: both;
    margin-top: 6px;
}

.event-log-content p {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.7;
}

.event-log-content strong {
    color: #333;
    font-weight: 600;
}

.event-log-images {
    margin-top: 15px;
    font-size: 0;
    /* removes inline-block spacing gaps */
}

.event-log-images img {
    display: inline-block;
    vertical-align: top;
    margin-right: 10px;
    margin-bottom: 10px;
    width: 300px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    object-fit: cover;
}

.brand-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 6px;
    margin-top: 30px;
    border-top: 3px solid var(--mainreby-report-color, #134e7a);
}

.brand-section h3 {
    font-size: 16px;
    color: var(--mainreby-report-color, #134e7a);
    margin-bottom: 15px;
}

.brand-info-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
}

.brand-info-item {
    vertical-align: top;
    padding: 12px 15px;
    color: #444;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    background: #fff;
    width: 50%;
}

.brand-info-item strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    margin-bottom: 5px;
    font-weight: 600;
}

.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    font-size: 12px;
    color: #666;
}

@media print {
    body {
        background: #fff;
    }

    .report-header {
        page-break-after: avoid;
    }
}

/* Clearfix for dompdf floating elements */
.header-info::after,
.event-log-header::after,
.event-log-images::after,
.brand-info::after,
.header-top::after,
.info-grid::after {
    content: "";
    display: table;
    clear: both;
}