/**
 * Vehicle Inspection Report Styles
 * 车辆检测报告样式 - Based on Figma Design
 * Created: 2024-12-19
 */

/* Main Report Container */
.report {
    background: linear-gradient(178deg, rgba(250, 250, 250, 0.20) -31.9%, rgba(250, 250, 250, 0.80) 68.25%);
    padding: 40px 0 60px 0;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    margin: 0 0 40px 0;
    min-height: auto;
    overflow: hidden;
    position: relative;
}

.report-container {
    /* max-width: 1000px; */
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section - Brand Logo */
.report-header {
    text-align: center;
    margin-bottom: 40px;
}

.volvo-brand .volvo-title {
    width: 200.352px;
    height: 75.258px;
    flex-shrink: 0;
    margin: 0 auto 0px auto;
}

.certification-title h2 {
    color: var(--Foreground-Primary, rgba(0, 0, 0, 0.92));
    text-align: center;
    font-family: "Source Han Sans CN";
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 6px;
    margin: 0 0 8px 0;
}

.certification-title .subtitle {
    color: var(--Foreground-Secondary, var(--Foreground-Secondary, rgba(0, 0, 0, 0.56)));
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Volvo Novum";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 36px; /* 180% */
}

/* Inspector and Certification Badges Section */
.inspector-and-badges {
    display: flex;
    width: 100%;
    /* max-width: 1200px; */
    padding: 0;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto 50px auto;
    min-width: 1000px;
    overflow-x: auto;
}

/* Inspector Information */
.inspector-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding-left: 10px;
}

.inspector-avatar {
    display: flex;
    width: 80px;
    height: 80px;
    padding: 0;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
    background: #ddd;
    color: #666;
    font-size: 12px;
}

.inspector-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inspector-details h3 {
    color: var(--Foreground-Primary, var(--Foreground-Primary, rgba(0, 0, 0, 0.92)));
    text-align: left;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Source Han Sans CN";
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 30px; /* 125% */
    padding-bottom: 8px;
}

.inspector-details p {
    color: var(--Foreground-Secondary, rgba(0, 0, 0, 0.56));
    text-align: center;
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Source Han Sans CN";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0;
}

/* Certification Badges */
.certification-badges {
    display: flex;
    justify-content: center;
    align-items: center;
}

.certification-badges svg {
    /* max-width: 520px; */
    width: 100%;
    height: auto;
}

/* Inspection and Maintenance Row - 4-Column Grid Layout */
.inspection-maintenance-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    /* max-width: 1200px; */
    padding: 0;
    margin: 0 auto 40px auto;
    min-width: 1000px;
    overflow-x: auto;
}

.inspection-section {
    grid-column: 1 / 4; /* Vehicle inspection takes first 3 columns */
}

.maintenance-section {
    grid-column: 4 / 5; /* Maintenance history takes the 4th column */
}

/* Section Titles */
.inspection-section .section-title,
.maintenance-section .section-title {
    color: var(--Foreground-Primary, rgba(0, 0, 0, 0.92));
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Source Han Sans CN";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 26px; /* 144.444% */
    margin: 0 0 30px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #EBEBEB;
    grid-column: 1 / -1;
}

/* Vehicle Inspection Items - 2 rows x 3 columns */
.inspection-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 48px 40px;
}

/* Maintenance Items - Vertical Layout */
.maintenance-items {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.inspection-item,
.maintenance-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inspection-item .item-icon,
.maintenance-item .item-icon {
    display: flex;
    width: 48px;
    height: 48px;
    border-radius: 102.857px;
    background: var(--VI-Color-Blue-Grey-VI-Color-003, #7089AC);
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inspection-item .item-icon svg,
.maintenance-item .item-icon svg {
    width: 29px;
    height: 29px;
}

.inspection-item .item-content,
.maintenance-item .item-content {
    flex: 1;
}

.inspection-item .item-content h4,
.maintenance-item .item-content h4 {
    color: var(--Foreground-Primary, rgba(0, 0, 0, 0.92));
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Source Han Sans CN";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 26px; /* 144.444% */
    margin: 0 0 4px 0;
}

.inspection-item .item-description,
.maintenance-item .item-description {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inspection-item .item-description span,
.maintenance-item .item-description span {
    color: var(--Foreground-Secondary, rgba(0, 0, 0, 0.56));
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Source Han Sans CN";
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
}

.inspection-item .item-description .count,
.maintenance-item .item-description .count {
    color: var(--Foreground-Primary, rgba(0, 0, 0, 0.92));
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Volvo Novum";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 26px; /* 144.444% */
}

.inspection-item .item-description .loading,
.maintenance-item .item-description .loading {
    color: #999;
}

/* Footer - Statistics Date */
.report-date {
    text-align: left;
    margin-bottom: 16px;
    color: var(--Foreground-Primary, rgba(0, 0, 0, 0.92));
    font-family: "Volvo Novum";
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 26px;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

/* Definitions */
.report-definitions {
    color: var(--Foreground-Secondary, rgba(0, 0, 0, 0.56));
    font-feature-settings: 'liga' off, 'clig' off;
    font-family: "Source Han Sans CN";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    padding: 0;
    margin: 0;
}

.report-definitions p {
    margin: 0 0 8px 0;
}

/* Responsive Design - DISABLED to maintain fixed layout */
/* 
@media (max-width: 1024px) {
    .inspection-maintenance-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .inspection-section {
        grid-column: 1 / -1;
    }

    .maintenance-section {
        grid-column: 1 / -1;
    }

    .inspection-items {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .inspector-and-badges {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 0 20px;
    }

    .certification-badges svg {
        max-width: 350px;
    }

    .inspection-maintenance-row {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .inspection-section,
    .maintenance-section {
        grid-column: 1 / -1;
    }

    .inspection-items {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .report-date,
    .report-definitions {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .w {
        padding: 0 15px;
    }

    .certification-badges svg {
        max-width: 280px;
    }

    .inspector-info {
        flex-direction: column;
        text-align: center;
    }

    .inspector-and-badges {
        padding: 0 15px;
    }

    .inspection-maintenance-row {
        padding: 0 15px;
    }

    .report-date,
    .report-definitions {
        padding: 0 15px;
    }
}
*/

/* Development Helper Styles */
.dev-info {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 1000;
}

.dev-info button {
    background: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 10px;
}