/* 리서치 체크리스트 관리 — 공통 레이아웃은 analysis/results.css 를 함께 로드해 재사용한다. */

.page-description {
    margin: 0 0 20px;
    padding: 12px 16px;
    background: #f8fafc;
    border-left: 3px solid #2563eb;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.7;
    color: #475569;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 17px;
    color: #0f172a;
}

/* --- 문항 추가 폼 --- */
.add-section {
    margin-bottom: 36px;
}

.add-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.add-form select {
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    color: #0f172a;
    background: #fff;
}

.disqualifier-label {
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 6px;
}

.add-form textarea,
.item-edit textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: #0f172a;
    font-family: inherit;
    resize: vertical;
}

.add-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary {
    padding: 7px 16px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    padding: 6px 12px;
    background: #fff;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #f8fafc;
}

.form-error {
    font-size: 13px;
    color: #b91c1c;
}

/* --- 문항 목록 --- */
.checklist-section {
    margin-bottom: 30px;
}

.item-row {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}

.item-row.inactive {
    opacity: 0.55;
    background: #f8fafc;
}

.item-main {
    flex: 1;
    min-width: 260px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.item-code {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}

.item-question {
    font-size: 14px;
    line-height: 1.7;
    color: #1e293b;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-disqualified {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.badge-inactive {
    background: #f1f5f9;
    color: #64748b;
}

.item-edit {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.item-edit-actions {
    display: flex;
    gap: 8px;
}

.item-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.empty-state {
    padding: 18px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
}
