.communityAdmin .inspectionPointMapDialog,
.communityAdmin .inspectionRoutePointDialog {
    display: flex;
    flex-direction: column;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 48px);
    margin: 24px auto !important;
}

.inspectionPointMapDialog .el-dialog__header,
.inspectionPointMapDialog .el-dialog__footer,
.inspectionRoutePointDialog .el-dialog__header,
.inspectionRoutePointDialog .el-dialog__footer {
    flex-shrink: 0;
}

.inspectionPointMapDialog .el-dialog__body,
.inspectionRoutePointDialog .el-dialog__body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px;
}

.inspectionMapAddressSearch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inspectionMapAddressSearch .el-autocomplete {
    flex: 1;
    min-width: 0;
}

.inspectionMapAddressSuggestions {
    max-width: calc(100vw - 32px);
}

.inspectionMapAddressSuggestions li {
    padding: 8px 16px;
    line-height: 20px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.inspectionMapAddressSuggestions .address {
    color: #909399;
    font-size: 12px;
}

.inspectionRoutePointToolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.inspectionTaskPhotos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.inspectionTaskPhotos .el-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    cursor: zoom-in;
}

.inspectionPhotoError {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f4f6f9;
    color: #7b8796;
    font-size: 12px;
}

.inspectionRecordPage {
    min-height: 240px;
    background: #fff;
    color: #344054;
}

.inspectionRecordHeader,
.inspectionRecordSectionHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.inspectionRecordHeader {
    padding: 20px 24px;
}

.inspectionRecordHeader h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.inspectionRecordSection {
    padding: 24px;
    border-top: 1px solid #e8edf3;
}

.inspectionRecordSectionHeader {
    margin-bottom: 22px;
}

.inspectionRecordSectionHeader h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.inspectionRecordSectionHeader .el-select {
    width: 220px;
    max-width: 65%;
}

.inspectionRecordFields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 24px;
    margin: 0;
}

.inspectionRecordFields > div {
    min-width: 0;
}

.inspectionRecordFields dt,
.inspectionRecordLabel {
    margin-bottom: 8px;
    color: #798596;
    font-size: 12px;
    font-weight: 400;
}

.inspectionRecordFields dd {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    overflow-wrap: anywhere;
}

.inspectionRecordDescription {
    margin: 24px 0;
    font-size: 14px;
    line-height: 22px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.inspectionRecordPhotos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.inspectionRecordAnswers {
    margin-bottom: 24px;
}

.inspectionRecordAnswerText {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.inspectionRecordPhotos .el-image {
    width: 128px;
    height: 128px;
    border: 1px solid #e8edf3;
    border-radius: 4px;
    cursor: zoom-in;
}

.inspectionRecordEmpty {
    padding: 16px 0;
    color: #798596;
    font-size: 13px;
}

.inspectionRecordMapTools {
    display: flex;
    gap: 8px;
}

.inspectionRecordMapTools .el-button + .el-button {
    margin-left: 0;
}

.inspectionRecordMapLegend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 12px;
    color: #637184;
    font-size: 12px;
}

.inspectionRecordMapLegend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.inspectionRecordMapLegend img {
    width: 18px;
    height: 18px;
}

.inspectionRecordMapFrame {
    position: relative;
    height: 420px;
    margin-top: 12px;
    background: #f4f6f9;
}

.inspectionRecordMap {
    width: 100%;
    height: 100%;
}

.inspectionRecordMapEmpty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #798596;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .inspectionRecordFields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .inspectionRecordHeader,
    .inspectionRecordSection {
        padding: 18px 16px;
    }

    .inspectionRecordFields {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .inspectionRecordPhotos .el-image {
        width: 104px;
        height: 104px;
    }

    .inspectionRecordMapFrame {
        height: 320px;
    }
}
