/* ========================================
   성능점검표
======================================== */

/* 성능점검표 전체 너비 컨테이너 */
.detail-inspection-full {
    padding: 0 40px 40px;
}

.inspection-container {
    max-width: 1000px !important;
    width: 100%;
    margin: 0 auto;
}

.vehicle-inspection-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.vehicle-inspection-section .section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inspection-badge {
    padding: 4px 10px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

.inspection-content {
    padding: 24px;
}

.inspection-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 24px;
}

.summary-item {
    text-align: center;
}

.summary-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 4px;
}

.summary-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
}

.inspection-accident {
    margin-bottom: 24px;
}

.inspection-accident h4,
.inspection-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.accident-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.accident-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.accident-item.safe {
    background: #f0fdf4;
}

.accident-item.danger {
    background: #fef2f2;
}

.item-label {
    color: #6b7280;
}

.accident-item.safe .item-status {
    color: #16a34a;
    font-weight: 600;
}

.accident-item.danger .item-status {
    color: #dc2626;
    font-weight: 600;
}

.inspection-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.inspection-table th,
.inspection-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}

.inspection-table th {
    text-align: left;
    font-weight: 500;
    color: #6b7280;
    background: #f8fafc;
    width: 25%;
}

.inspection-table td {
    color: #1a1a1a;
    font-weight: 500;
}

.inspection-document {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.btn-view-document {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-view-document:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

/* 성능점검 이미지 그리드 */
.inspection-images-wrapper {
    margin-bottom: 24px;
}

.inspection-images-wrapper h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.inspection-images-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.inspection-image-item {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    cursor: pointer;
}

.inspection-image-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.inspection-image-item a {
    display: block;
}

.inspection-image-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* iframe/단일 이미지 래퍼 */
.inspection-iframe-wrapper,
.inspection-image-wrapper {
    margin-bottom: 24px;
}

.inspection-iframe-wrapper h4,
.inspection-image-wrapper h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.iframe-container {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    background: #ffffff;
}

.iframe-container iframe {
    display: block;
    width: 100%;
    min-height: 800px;
    background: #ffffff;
}

/* 성능점검 인쇄 버튼 */
.inspection-print-link {
    margin-top: 16px;
    text-align: center;
}

.btn-print-inspection {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-print-inspection:hover {
    background: #333333;
}

.inspection-image-wrapper .inspection-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* 성능점검 플레이스홀더 */
.inspection-placeholder {
    padding: 60px 24px;
    text-align: center;
}

.placeholder-icon {
    color: #d1d5db;
    margin-bottom: 16px;
}

.placeholder-text {
    font-size: 1rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 8px;
}

.placeholder-subtext {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 20px;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #3b82f6;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-contact:hover {
    background: #2563eb;
}

/* 성능점검표 확대보기 버튼 */
.btn-inspection-zoom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: #1a1a1a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-inspection-zoom:hover {
    background: #333333;
}

.btn-inspection-zoom svg {
    flex-shrink: 0;
}

/* ========================================
   성능점검표 전체화면 모달
======================================== */

.inspection-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    flex-direction: column;
}

.inspection-modal.active {
    display: flex;
}

.inspection-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #1a1a1a;
    color: #ffffff;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1rem;
    font-weight: 600;
}

.modal-page-indicator {
    font-size: 0.9rem;
    color: #9ca3af;
}

.modal-page-indicator .current-page {
    color: #ffffff;
    font-weight: 600;
}

.btn-modal-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-modal-close:hover {
    color: #f87171;
}

.inspection-modal-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 0;
}

.modal-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-image {
    display: none;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-image.active {
    display: block;
}

/* 모달 네비게이션 버튼 */
.btn-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

.btn-modal-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-prev {
    left: 16px;
}

.btn-next {
    right: 16px;
}

/* 모달 썸네일 */
.inspection-modal-thumbs {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #1a1a1a;
    justify-content: center;
    flex-shrink: 0;
    overflow-x: auto;
}

.modal-thumb {
    width: 60px;
    height: 45px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s;
    flex-shrink: 0;
}

.modal-thumb:hover {
    opacity: 0.8;
}

.modal-thumb.active {
    border-color: #3b82f6;
    opacity: 1;
}

.modal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* iframe 전체화면 모달 */
.inspection-iframe-modal .inspection-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.inspection-iframe-modal .modal-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inspection-iframe-modal .btn-open-new-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.inspection-iframe-modal .btn-open-new-tab:hover {
    color: #3b82f6;
}

.inspection-modal-iframe-content {
    flex: 1;
    background: #ffffff;
    overflow: hidden;
}

.inspection-modal-iframe-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
}
