/* ── Inspection Tab ─────────────────────────────────────── */

.vlp-inspection-toolbar {
    padding: 6px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #eee;
}

.vlp-inspection-content .vlp-empty {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 12px;
}

/* ── Intervention Card ──────────────────────────────────── */

.vlp-intervention-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin: 6px 8px;
    background: #fff;
    overflow: hidden;
}

.vlp-intervention-header {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    cursor: pointer;
    gap: 6px;
    font-size: 12px;
    background: #f8f9fa;
    border-bottom: 1px solid transparent;
}

.vlp-intervention-card.expanded .vlp-intervention-header {
    border-bottom: 1px solid #e0e0e0;
}

.vlp-intervention-header:hover {
    background: #eef1f5;
}

.vlp-intervention-header .vlp-expand-arrow {
    font-size: 10px;
    transition: transform 0.15s;
    color: #888;
    width: 14px;
    text-align: center;
}

.vlp-intervention-card.expanded .vlp-expand-arrow {
    transform: rotate(90deg);
}

.vlp-intervention-date {
    font-weight: 600;
    flex: 1;
}

.vlp-intervention-status {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 500;
    text-transform: uppercase;
}

.vlp-status-draft {
    background: #e3f2fd;
    color: #1565c0;
}

.vlp-status-inprogress {
    background: #fff3e0;
    color: #e65100;
}

.vlp-status-complete {
    background: #e8f5e9;
    color: #2e7d32;
}

.vlp-btn-delete-intervention {
    opacity: 0.4;
    padding: 2px 4px;
}

.vlp-btn-delete-intervention:hover {
    opacity: 1;
    color: #d32f2f;
}

/* ── Intervention Body (expandable) ──────────────────────── */

.vlp-intervention-body {
    display: none;
}

.vlp-intervention-card.expanded .vlp-intervention-body {
    display: block;
}

.vlp-intervention-form {
    padding: 8px;
}

.vlp-form-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.vlp-form-row label {
    font-size: 11px;
    color: #666;
    width: 80px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.vlp-form-row .vlp-input {
    flex: 1;
    font-size: 12px;
    padding: 3px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    min-width: 0;
}

.vlp-form-row .vlp-input:focus {
    border-color: #4a90d9;
    outline: none;
}

.vlp-form-row .vlp-input[readonly] {
    background: #f5f5f5;
    cursor: pointer;
}

.vlp-form-row .vlp-textarea-comments {
    resize: vertical;
    min-height: 48px;
}

.vlp-form-row .vlp-select-status {
    max-width: 120px;
}

.vlp-btn-select-link,
.vlp-btn-clear-link {
    padding: 2px 4px;
    font-size: 11px;
    color: #888;
}

.vlp-btn-select-link:hover {
    color: #4a90d9;
}

.vlp-btn-clear-link:hover {
    color: #d32f2f;
}

.vlp-form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

/* ── PDF Export ──────────────────────────────────────────── */

.vlp-pdf-export-zone {
    padding: 4px 8px;
}

.vlp-pdf-export-zone:empty {
    display: none;
}

.vlp-btn-export-pdf {
    color: #c62828;
}

.vlp-btn-export-pdf .fas {
    color: #c62828;
}

.vlp-btn-pdf-download {
    border: none;
    background: none;
    color: #1565c0;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 6px;
}

.vlp-btn-pdf-download:hover {
    text-decoration: underline;
}
