body {
    font-family: Arial, sans-serif;
    margin: 20px;
    line-height: 1.4;
    color: #333;
}

.inspection-report {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
}

.header h1 {
    margin: 0 0 20px 0;
    color: #2c3e50;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.info-grid.detailed {
    grid-template-columns: 1fr 1fr 1fr;
}

.section {
    margin-bottom: 25px;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 5px;
    background: #f9f9f9;
}

.section h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* Схемы повреждений */
.schemes-container {
    text-align: center;
    margin: 20px 0;
}

.scheme-wrapper {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.scheme-container {
    position: relative;
    display: inline-block;
    margin: 10px;
}

.damage-point {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: absolute;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.damage-count {
    text-align: center;
    font-weight: bold;
    margin: 15px 0;
}

/* Легенда */
.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    border: 1px solid #ddd;
}

/* Диагностика */
.detail-section {
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.detail-header {
    background: #34495e;
    color: white;
    padding: 12px 15px;
    margin: 0;
}

.detail-header h4 {
    margin: 0;
}

.detail-content {
    display: none;
    padding: 15px;
    background: white;
}

.detail-content.expanded {
    display: block;
}

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

.diagnosis-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
}

.element-name {
    font-weight: bold;
    width: 70%;
}

.element-status {
    text-align: right;
    color: #666;
}

/* Управление */
.controls {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    border-top: 1px solid #ddd;
}

.controls button, .lang-btn {
    margin: 0 10px;
    padding: 10px 20px;
    cursor: pointer;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.lang-btn {
    background: #27ae60;
}

.no-data {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Печать */
@media print {
    .controls {
        display: none;
    }
    
    body {
        margin: 0;
    }
    
    .section {
        border: 1px solid #000;
        break-inside: avoid;
    }
}

/* Стили для скрывающихся секций */
.detail-toggle {
    background: #34495e;
    color: white;
    border: none;
    padding: 12px 15px;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    margin: 5px 0;
}

.detail-toggle:hover {
    background: #2c3e50;
}

.toggle-icon {
    transition: transform 0.3s;
}

/* Таблицы */
.repair-table {
    width: 100%;
    border-collapse: collapse;
}

.repair-table th,
.repair-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.repair-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.part-name {
    font-weight: bold;
}

.repair-type {
    color: #e74c3c;
}

.repair-status {
    color: #27ae60;
}

/* ДОБАВИТЬ в конец файла */
.detail-content {
    display: none;
}

.detail-content.expanded {
    display: block;
}