@charset "utf-8";

/* ========================================
   현장 점검 체크리스트 (checklist)
   - result 타입 헤더를 쓰지만 하단 탭바는 그대로 노출한다.
======================================== */
@media (max-width: 768px) {
    .is-result-header-page #wrap {
        padding-bottom: calc(12rem + env(safe-area-inset-bottom));
    }
}

/* 미션 화면은 본문(위)과 액션 버튼(아래)이 화면 높이만큼 벌어지도록 한다 */
.checklist-sec {
    height: 100%;
}

#checklist-mission-view {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* ID 선택자의 display:flex가 hidden 속성을 덮어쓰지 않도록 한다. */
#checklist-mission-view[hidden] {
    display: none;
}

/* ----------------------------------------
   진행률 표시줄
---------------------------------------- */
.checklist-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-24);
}

.checklist-progress__count,
.checklist-progress__done {
    font-size: var(--fs-25);
    font-weight: 700;
}

.checklist-progress__count {
    color: var(--color-text-gray);
}

.checklist-progress__done {
    color: var(--color-blue);
}

.checklist-progress__count *,
.checklist-progress__done * {
    color: inherit;
}

/* ----------------------------------------
   미션 본문
---------------------------------------- */
.checklist-label {
    font-size: var(--fs-25);
    font-weight: 700;
    color: var(--color-blue);
    margin-bottom: var(--space-16);
}

.checklist-label * {
    color: inherit;
}

.checklist-title {
    font-size: var(--fs-36);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-text);
    margin-bottom: var(--space-24);
}

.checklist-desc {
    margin-bottom: var(--space-24);
}

/* ----------------------------------------
   확인 완료 표시
---------------------------------------- */
.checklist-confirmed {
    display: flex;
    align-items: center;
    gap: var(--space-14);
    font-size: var(--fs-25);
    font-weight: 700;
    color: #0ac944;
    margin-bottom: var(--space-24);
}

.checklist-confirmed[hidden] {
    display: none;
}

.checklist-confirmed__icon {
    width: 1.8rem;
    height: auto;
    display: block;
}

/* ----------------------------------------
   하단 액션 (이전 / 확인했어요 / 건너뛰기)
   - 확인 완료 표시 + 버튼을 한 그룹으로 묶어 화면 하단에 붙인다.
---------------------------------------- */
.checklist-bottom {
    margin-top: auto;
    padding-top: var(--space-46);
}

.checklist-actions {
    display: flex;
    align-items: center;
    gap: var(--space-14);
}

.checklist-nav-btn {
    flex: 0 0 auto;
    width: var(--space-87);
    height: var(--space-87);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0.1rem solid var(--color-border-gray);
    border-radius: 1.4rem;
    background: #ffffff;
    padding: 0;
    cursor: pointer;
}

.checklist-nav-btn img {
    width: var(--space-32);
    height: var(--space-32);
    display: block;
    object-fit: contain;
}

.checklist-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.checklist-confirm {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-10);
}

.checklist-confirm__icon {
    display: inline-flex;
    width: 1.6rem;
    flex: 0 0 auto;
}

.checklist-confirm__icon img {
    width: 100%;
    display: block;
}

.checklist-skip {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    padding: var(--space-24) var(--space-16);
    font-size: var(--fs-25);
    font-weight: 600;
    color: var(--color-text-mid-gray);
    cursor: pointer;
}

/* ----------------------------------------
   결과 화면
---------------------------------------- */
.checklist-result {
    text-align: center;
}

.checklist-result__icon {
    width: var(--space-125);
    height: var(--space-125);
    display: block;
    margin: 0 auto var(--space-24);
}

.checklist-result__title {
    font-size: var(--fs-36);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-16);
}

.checklist-result__desc {
    margin-bottom: var(--space-40);
}

.checklist-result__desc b[data-total-2] {
    color: inherit
}

.checklist-result__desc b[data-done-count-2]{
    font-weight: 700;
    color: var(--color-text);
}


.checklist-result__list {
    list-style: none;
    margin: 0 0 var(--space-40);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
    text-align: left;
}

.checklist-result__row {
    display: flex;
    align-items: center;
    gap: var(--space-16);
    padding: var(--space-22) var(--space-24);
    border-radius: 2.4rem;
    background: var(--color-bg-gray);
    font-size: var(--fs-20);
    font-weight: 600;
    color: var(--color-text-mid-gray);
}

.checklist-result__row span {
    color: inherit;
}

.checklist-result__row-icon {
    flex: 0 0 auto;
    width: var(--space-40);
    height: var(--space-40);
    display: block;
}
