* {
    box-sizing: border-box;
}

/* 공통 오류 화면: 404/403/세션 만료 안내를 기본 서버 오류 화면 대신 보여준다. */
.error-body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: #eef3f8;
    color: #0f2748;
}

.error-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.error-card {
    width: min(560px, 100%);
    border: 1px solid #d5e2ef;
    border-radius: 16px;
    padding: 34px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(31, 71, 118, 0.12);
}

.error-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #12325c;
    text-decoration: none;
}

.error-brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #005bac 0%, #0072ce 58%, #00a884 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.error-brand strong,
.error-brand em {
    display: block;
}

.error-brand strong {
    font-size: 18px;
    line-height: 1.15;
}

.error-brand em {
    color: #6b7d94;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.error-status {
    margin: 42px 0 8px;
    color: #0069c9;
    font-size: 13px;
    font-weight: 900;
}

.error-card h1 {
    margin: 0;
    color: #071e3d;
    font-size: 30px;
    line-height: 1.25;
    letter-spacing: 0;
}

.error-message {
    margin: 14px 0 0;
    color: #51627a;
    font-size: 15px;
    line-height: 1.65;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.error-primary-button,
.error-secondary-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.error-primary-button {
    border: 1px solid #005bac;
    background: #005bac;
    color: #fff;
}

.error-secondary-button {
    border: 1px solid #c8d8eb;
    background: #f4f8fe;
    color: #005bac;
}

@media (max-width: 520px) {
    .error-card {
        padding: 26px 22px;
    }

    .error-card h1 {
        font-size: 24px;
    }

    .error-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/*
 * CSS 구조 인덱스
 * - member-*        : 회원이 직접 접수/수정하는 단독 접수 화면
 * - login-*         : 직원/회원 공용 로그인, BM 선택, 접수 일정 안내 화면
 * - receipt-*       : 관리자/센터/교사용 접수 현황 목록과 상태 표시
 * - toolbar-*       : 조회 조건, 조회 인원, 필터, 조회/다운로드 버튼 배치
 * - statistics-*    : 관리자 통계 탭과 센터별 통계 테이블
 * - admin-event-*   : 접수 일정 관리 화면과 일정 등록/수정 모달
 * - privacy-*       : 접수 전 개인정보 동의서 확인 모달
 * - result-*        : 선택 접수/확정/업로드 실패 결과 모달
 */

/* 회원 접수 페이지: 학생이 직접 보는 접수 현황, 제출 폼, 모바일 대응 화면. */
.member-receipt-body {
    min-width: 0;
    overflow-x: hidden;
    background: #eef3f8;
}

.member-receipt-page {
    width: min(1180px, calc(100% - 64px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 0 44px;
}

.member-receipt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.member-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #12325c;
    text-decoration: none;
}

.member-brand-mark {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, #005bac 0%, #0072ce 58%, #00a884 100%);
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 91, 172, 0.22);
    font-size: 13px;
    font-weight: 900;
}

.member-brand strong,
.member-brand em {
    display: block;
}

.member-brand strong {
    font-size: 18px;
    line-height: 1.15;
}

.member-brand em {
    color: #6b7d94;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.member-logout {
    color: #005bac;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.member-header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.member-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: stretch;
    border: 1px solid #cddceb;
    border-radius: 12px;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(0, 91, 172, 0.95), rgba(0, 147, 132, 0.9)),
        #005bac;
    color: #fff;
    box-shadow: 0 16px 34px rgba(25, 70, 125, 0.12);
}

.member-eyebrow {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 900;
}

.member-hero h1 {
    margin: 0;
    font-size: 34px;
    line-height: 1.22;
    letter-spacing: 0;
}

.member-hero-copy {
    max-width: 620px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.65;
}

.member-hero-result {
    position: relative;
    display: flex;
    width: min(760px, 100%);
    max-width: min(620px, 100%);
    min-width: 0;
    align-items: center;
    gap: 13px;
    margin-top: 18px;
    border: 1px solid rgba(255, 235, 148, 0.72);
    border-radius: 16px;
    padding: 14px;
    background:
        linear-gradient(100deg, rgba(255, 248, 204, 0.28), rgba(245, 158, 11, 0.2)),
        rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 30px rgba(14, 68, 110, 0.2), 0 0 24px rgba(253, 230, 138, 0.22);
    overflow: visible;
    animation: award-card-glow 3.6s ease-in-out infinite;
}

.member-hero-result::before,
.member-hero-result::after {
    content: "";
    position: absolute;
    pointer-events: none;
    opacity: 0.9;
}

.member-hero-result::before {
    inset: -28px auto auto -18px;
    width: 70px;
    height: 70px;
    background:
        radial-gradient(circle, #fff 0 3px, transparent 4px),
        radial-gradient(circle, #fde68a 0 3px, transparent 4px),
        radial-gradient(circle, #f97316 0 3px, transparent 4px),
        radial-gradient(circle, #67e8f9 0 3px, transparent 4px),
        radial-gradient(circle, #fb7185 0 2px, transparent 3px);
    background-position: 34px 2px, 8px 32px, 58px 38px, 28px 60px, 52px 12px;
    background-repeat: no-repeat;
    animation: award-burst 2.4s ease-in-out infinite;
}

.member-hero-result::after {
    right: -22px;
    bottom: -30px;
    width: 74px;
    height: 74px;
    background:
        radial-gradient(circle, #fff7ad 0 3px, transparent 4px),
        radial-gradient(circle, #facc15 0 3px, transparent 4px),
        radial-gradient(circle, #fb7185 0 3px, transparent 4px),
        radial-gradient(circle, #67e8f9 0 2px, transparent 3px);
    background-position: 8px 36px, 34px 10px, 61px 43px, 26px 62px;
    background-repeat: no-repeat;
    animation: award-burst 2.9s ease-in-out infinite 0.45s;
}

.member-hero-result-burst {
    position: relative;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, #fff8c5 0 5px, transparent 6px),
        conic-gradient(from 8deg, transparent 0 12deg, #fde68a 12deg 24deg, transparent 24deg 42deg, #fb923c 42deg 54deg, transparent 54deg 76deg, #fff 76deg 88deg, transparent 88deg 120deg, #facc15 120deg 134deg, transparent 134deg 360deg);
    box-shadow: 0 0 22px rgba(253, 230, 138, 0.68);
    animation: award-spark-spin 4.2s linear infinite;
}

.member-hero-result-text {
    position: relative;
    display: grid;
    min-width: 0;
    gap: 4px;
}

.member-hero-result-label {
    flex: 0 0 auto;
    width: fit-content;
    border-radius: 999px;
    padding: 5px 9px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff7ad;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
}

.member-hero-result strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #fde68a;
    background: linear-gradient(100deg, #fde68a 0%, #fde68a 42%, #ffffff 50%, #f59e0b 58%, #fde68a 100%);
    background-size: 360% 100%;
    background-position: 110% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    animation: award-shine 4.8s ease-in-out infinite;
}

.member-hero-result em {
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.35;
}

.member-hero-result-actions {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.member-hero-result-actions a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 0 13px;
    background: rgba(255, 255, 255, 0.94);
    color: #005bac;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(13, 49, 92, 0.16);
}

.member-hero-result-actions a:first-child {
    background: #ffffff;
}

.member-hero-result-actions a:hover {
    transform: translateY(-1px);
}

.member-ios-download-note {
    grid-column: 1 / -1;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.member-status-card {
    display: flex;
    min-height: 142px;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.14);
}

.member-status-card span,
.member-status-card em {
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.member-status-card strong {
    margin: 8px 0;
    font-size: 30px;
    line-height: 1.1;
}

.member-status-card.submitted {
    background: rgba(255, 224, 99, 0.24);
}

.member-status-card.confirmed {
    background: rgba(63, 213, 136, 0.24);
}

.member-status-card.evaluated {
    background: rgba(45, 212, 191, 0.26);
}

.member-status-card.cancelled {
    background: rgba(248, 113, 113, 0.2);
}

.member-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 14px 0;
    border: 1px solid #d8e4ef;
    border-radius: 10px;
    padding: 14px;
    background: #fff;
}

.member-flow span {
    display: inline-flex;
    min-width: 82px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef4fb;
    color: #5e7088;
    font-size: 12px;
    font-weight: 900;
}

.member-flow span.active {
    background: #e8f8ee;
    color: #047342;
}

.member-flow i {
    flex: 0 0 24px;
    width: 24px;
    height: 1px;
    background: #b8c6d8;
}

.member-notice {
    margin: 12px 0;
    border: 1px solid #d8e4ef;
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.member-notice.success {
    border-color: #a7e0bd;
    background: #effaf3;
    color: #087044;
}

.member-notice.error {
    border-color: #f4b3b3;
    background: #fff0f0;
    color: #b42318;
}

.member-notice.muted {
    background: #f8fafc;
    color: #5f6f84;
}

.member-receipt-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.member-summary,
.member-submit-panel,
.member-empty-state {
    border: 1px solid #d8e4ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 44, 82, 0.06);
}

.member-summary {
    padding: 22px;
}

.member-summary h2,
.member-submit-heading h2 {
    margin: 0;
    color: #14233a;
    font-size: 20px;
    line-height: 1.25;
}

.member-summary dl {
    display: grid;
    gap: 14px;
    margin: 20px 0 0;
}

.member-summary dl div {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.member-summary dt {
    color: #6b7d94;
    font-size: 12px;
    font-weight: 900;
}

.member-summary dd {
    min-width: 0;
    margin: 0;
    color: #1d344f;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.member-contact-list {
    display: grid;
    gap: 4px;
}

.muted-text {
    display: block;
    color: #7a8ca3;
    font-size: 12px;
    font-weight: 800;
}

.preline {
    white-space: pre-line;
}

.member-submit-panel {
    padding: 24px;
}

.member-submit-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.member-submit-heading p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

.member-required {
    display: inline-flex;
    height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 0 12px;
    background: #fff3d6;
    color: #915d00;
    font-size: 12px;
    font-weight: 900;
}

.member-receipt-form {
    display: grid;
    gap: 12px;
}

.member-receipt-form label {
    color: #263c56;
    font-size: 13px;
    font-weight: 900;
}

.member-field-wrap {
    position: relative;
}

.member-receipt-form textarea,
.member-receipt-form input[type="url"] {
    width: 100%;
    border: 1px solid #b8d9bf;
    border-radius: 8px;
    padding: 13px 14px;
    background: #f5fff5;
    color: #172033;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.55;
    outline: none;
}

.member-receipt-form textarea:focus,
.member-receipt-form input[type="url"]:focus {
    border-color: #1f7ae0;
    box-shadow: 0 0 0 3px rgba(31, 122, 224, 0.14);
}

.member-receipt-form.is-readonly textarea,
.member-receipt-form.is-readonly input[type="url"] {
    border-color: #d9e1ec;
    background: #f8fafc;
    color: #56657a;
}

.member-byte-count {
    position: absolute;
    right: 12px;
    bottom: 10px;
    color: #6b7d94;
    font-size: 12px;
    font-weight: 800;
}

.member-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
}

.member-icon-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #a8ccff;
    border-radius: 8px;
    background: #eef6ff;
    cursor: pointer;
}

.member-icon-button img {
    width: 18px;
    height: 18px;
}

.member-consent-guide {
    margin: 2px 0 0;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.member-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

/* 회원 접수 읽기 전용 영역: 확정/평가완료처럼 수정할 수 없는 상태에서는 입력칸 없이 제출 내용을 요약 표시한다. */
.member-readonly-submit {
    display: grid;
    gap: 14px;
}

.member-readonly-field,
.member-report-box {
    display: grid;
    gap: 8px;
    border: 1px solid #d8e4ef;
    border-radius: 10px;
    padding: 16px;
    background: #f8fbff;
}

.member-readonly-field span,
.member-report-box span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.member-readonly-field strong,
.member-report-box strong {
    color: #172033;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.member-readonly-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    align-items: center;
}

.member-readonly-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    border: 1px solid #b8d9bf;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f5fff5;
    color: #172033;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.member-readonly-link:hover {
    border-color: #7abf87;
    text-decoration: underline;
}

.member-report-box {
    border-color: #99f6e4;
    background: #f0fdfa;
}

.member-report-award {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    padding: 6px 10px;
    background: #ecfdf5;
}

.member-report-award span {
    color: #047857;
}

.member-report-award strong {
    color: #064e3b;
    font-size: 13px;
}

.member-report-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.member-primary-button,
.member-secondary-button {
    display: inline-flex;
    min-width: 108px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.member-primary-button {
    border: 1px solid #005bac;
    background: #005bac;
    color: #fff;
}

.member-primary-button:disabled {
    border-color: #cad5e2;
    background: #e7edf5;
    color: #7a8ca3;
    cursor: not-allowed;
}

.member-secondary-button {
    border: 1px solid #bdd4f4;
    background: #f1f7ff;
    color: #005bac;
}

.member-empty-state {
    display: grid;
    justify-items: center;
    margin-top: 80px;
    padding: 54px;
    text-align: center;
}

.member-state-mark {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff0f0;
    color: #b42318;
    font-size: 24px;
    font-weight: 900;
}

.member-empty-state h1 {
    margin: 18px 0 8px;
    color: #14233a;
    font-size: 26px;
}

.member-empty-state p {
    margin: 0;
    color: #667085;
    font-size: 15px;
}

/* 회원 접수 화면 반응형: 태블릿/모바일에서 학생 정보와 제출 폼을 세로 흐름으로 전환한다. */
@media (max-width: 960px) {
    .member-receipt-page {
        width: min(820px, calc(100% - 32px));
        padding: 22px 0 34px;
    }

    .member-hero {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
    }

    .member-hero-result {
        max-width: 100%;
    }

    .member-status-card {
        min-height: 0;
    }

    .member-receipt-layout {
        grid-template-columns: 1fr;
    }

    .member-summary dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-summary dl div {
        grid-template-columns: 78px minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .member-receipt-page {
        width: calc(100% - 24px);
        padding: 14px 0 24px;
    }

    .member-receipt-header {
        margin-bottom: 14px;
    }

    .member-brand {
        gap: 9px;
    }

    .member-brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 12px;
    }

    .member-brand strong {
        font-size: 16px;
    }

    .member-logout {
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }

    .member-header-actions {
        gap: 6px;
    }

    .member-header-actions .bm-badge {
        min-height: 26px;
        padding: 0 8px;
        font-size: 11px;
    }

    .member-hero {
        border-radius: 10px;
        padding: 20px;
    }

    .member-eyebrow {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .member-hero h1 {
        font-size: 24px;
    }

    .member-hero-result {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        align-items: flex-start;
        border-radius: 14px;
        padding: 13px;
        gap: 10px 12px;
        overflow: hidden;
    }

    .member-hero-result::before,
    .member-hero-result::after {
        display: none;
    }

    .member-hero-result-burst {
        width: 30px;
        height: 30px;
    }

    .member-hero-result strong {
        font-size: 18px;
        overflow-wrap: normal;
        white-space: normal;
        word-break: keep-all;
    }

    .member-hero-result em {
        font-size: 12px;
        line-height: 1.45;
    }

    .member-hero-result-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        margin-left: 0;
        gap: 8px;
    }

    .member-hero-result-actions a {
        flex: 1 1 0;
        min-width: 0;
        min-height: 42px;
        padding: 0 8px;
    }

    .member-hero-copy {
        margin-top: 12px;
        font-size: 14px;
        line-height: 1.55;
    }

    .member-status-card {
        padding: 16px;
    }

    .member-status-card strong {
        font-size: 24px;
    }

    .member-flow {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
        gap: 8px 6px;
        justify-items: center;
        padding: 12px 10px;
    }

    .member-flow span {
        width: 100%;
        min-width: 0;
        padding: 0 8px;
        font-size: 11px;
    }

    .member-flow i {
        width: 14px;
    }

    .member-flow i:nth-of-type(2) {
        display: none;
    }

    .member-receipt-layout {
        gap: 12px;
    }

    .member-summary,
    .member-submit-panel {
        border-radius: 10px;
        padding: 18px;
    }

    .member-summary h2,
    .member-submit-heading h2 {
        font-size: 18px;
    }

    .member-summary dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        margin-top: 16px;
        border-top: 1px solid #e4edf6;
        border-bottom: 1px solid #e4edf6;
    }

    .member-summary dl div {
        grid-template-columns: 1fr;
        gap: 5px;
        min-height: 68px;
        padding: 12px 10px;
    }

    .member-summary dl div:nth-child(even) {
        border-left: 1px solid #e4edf6;
    }

    .member-summary dl div:nth-child(n + 3) {
        border-top: 1px solid #e4edf6;
    }

    .member-submit-heading {
        display: grid;
        gap: 10px;
        margin-bottom: 18px;
    }

    .member-required {
        justify-self: start;
    }

    .member-receipt-form textarea,
    .member-receipt-form input[type="url"] {
        font-size: 16px;
    }

    .member-receipt-form textarea {
        min-height: 150px;
        padding-bottom: 34px;
    }

    .member-form-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-readonly-link-row {
        grid-template-columns: minmax(0, 1fr) 40px;
    }

    .member-report-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-primary-button,
    .member-secondary-button {
        width: 100%;
        min-width: 0;
    }

    .member-form-actions button:only-child {
        grid-column: 1 / -1;
    }

    .member-empty-state {
        margin-top: 36px;
        padding: 34px 18px;
    }

    .member-empty-state h1 {
        font-size: 22px;
    }
}

@media (max-width: 420px) {
    .member-receipt-page {
        width: calc(100% - 16px);
    }

    .member-brand em {
        display: none;
    }

    .member-summary dl div {
        grid-template-columns: 1fr;
        gap: 4px;
        min-height: 64px;
        padding: 10px 8px;
    }

    .member-hero h1 {
        font-size: 22px;
    }
}

html {
    overflow-y: scroll;
}

body {
    margin: 0;
    color: #1f2937;
    font-family: "Malgun Gothic", Arial, sans-serif;
    background: #f5f7fb;
}

/* 전체 화면 로딩 오버레이: 로그인, 목록 조회, 엑셀 다운로드처럼 사용자가 기다려야 하는 작업에 사용한다. */
.is-page-loading {
    cursor: progress;
}

.page-loading-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.26);
}

.page-loading-backdrop[hidden] {
    display: none;
}

.page-loading-box {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-width: 132px;
    border: 1px solid rgba(207, 216, 227, 0.92);
    border-radius: 8px;
    padding: 22px 24px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.page-loading-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: page-loading-spin 0.8s linear infinite;
}

.page-loading-text {
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

@keyframes page-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

.page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.page-wide {
    align-items: flex-start;
    padding: 24px clamp(8px, 1.5vw, 20px);
}

/* 접수 목록 페이지: 상단 필터는 고정하고 하단 목록 영역만 스크롤되도록 만든다. */
.receipt-list-page {
    height: 100dvh;
    /* Receipt list keeps its readable 720px layout instead of shrinking indefinitely. */
    min-width: 720px;
    min-height: 0;
    overflow: hidden;
}

.panel {
    width: min(520px, 100%);
    padding: 40px;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

/* 로그인 화면: 윤선생/리얼스피치 브랜딩이 들어간 좌우 분할 로그인 카드. */
.login-body {
    background: #f3f7fb;
}

.login-page {
    padding: clamp(18px, 4vw, 48px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(243, 247, 251, 0.96)),
        linear-gradient(120deg, #eef6ff 0%, #ffffff 48%, #effaf2 100%);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    width: min(1040px, 100%);
    min-height: 620px;
    overflow: hidden;
    border: 1px solid #d8e4ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 22px 58px rgba(15, 45, 94, 0.14);
}

.login-brand-panel {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 42px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(0, 78, 168, 0.98), rgba(0, 132, 202, 0.95) 62%, rgba(0, 155, 122, 0.95)),
        #005bac;
}

.login-brand-panel::before,
.login-brand-panel::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.login-brand-panel::before {
    right: -82px;
    bottom: 72px;
    width: 310px;
    height: 310px;
    border: 44px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.login-brand-panel::after {
    right: -28px;
    bottom: -48px;
    width: 62%;
    height: 170px;
    transform: rotate(-10deg);
    background: rgba(255, 221, 78, 0.22);
}

.login-logo,
.login-brand-copy,
.login-brand-footer {
    position: relative;
    z-index: 1;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.login-logo-mark {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.12) 42%, rgba(0, 168, 132, 0.34) 100%);
    box-shadow: 0 12px 28px rgba(0, 20, 60, 0.18);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
}

.login-logo strong,
.login-logo em {
    display: block;
}

.login-logo strong {
    font-size: 20px;
    line-height: 1.15;
}

.login-logo em {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0;
}

.login-brand-copy {
    max-width: 460px;
    margin-top: 64px;
}

.login-kicker {
    margin: 0 0 14px;
    color: #dff3ff;
    font-size: 15px;
    font-weight: 800;
}

.login-brand-copy h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: 0;
}

.login-brand-copy p {
    max-width: 390px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.7;
}

.login-brand-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 60px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    font-weight: 800;
}

.login-brand-footer strong {
    color: #fff;
    font-size: 16px;
}

.login-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(32px, 4vw, 58px);
    background: #fff;
}

.login-card h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 32px;
    line-height: 1.18;
}

.login-help {
    margin: 0 0 28px;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

.login-card form {
    display: grid;
    gap: 10px;
}

.login-card label {
    margin-top: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.login-card input {
    width: 100%;
    height: 48px;
    border: 1px solid #c9d7e6;
    border-radius: 8px;
    padding: 0 14px;
    color: #111827;
    background: #f9fbfd;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.login-card input:focus {
    border-color: #006edc;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 110, 220, 0.12);
}

.login-target-field {
    margin: 8px 0 0;
    border: 0;
    padding: 0;
}

.login-target-field-hidden {
    display: none;
}

.login-target-field legend {
    margin: 0 0 10px;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.login-target-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.login-target-option {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 58px;
    margin: 0;
    border: 1px solid #d7e3f0;
    border-radius: 8px;
    padding: 10px 12px;
    background: #f9fbfd;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.login-target-option:hover {
    border-color: #93c5fd;
    background: #fff;
}

.login-target-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    accent-color: #005bac;
    box-shadow: none;
}

.login-target-option:has(input:checked) {
    border-color: #005bac;
    background: #eef6ff;
    box-shadow: 0 0 0 3px rgba(0, 91, 172, 0.08);
}

.login-target-option span {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.login-target-option strong {
    color: #12263f;
    font-size: 13px;
    line-height: 1.25;
}

.login-target-option small {
    overflow: hidden;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-card button {
    width: 100%;
    min-height: 50px;
    margin-top: 18px;
    border-radius: 8px;
    background: #005bac;
    font-size: 16px;
    box-shadow: 0 10px 20px rgba(0, 91, 172, 0.2);
}

.login-card button:hover {
    background: #004c96;
}

.login-card button:disabled {
    cursor: not-allowed;
    background: #9aa8b8;
    box-shadow: none;
}

.login-card .message {
    min-height: 0;
    margin: 0 0 4px;
    color: #c0362c;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-line;
}

.login-card .message:empty {
    display: none;
}

.login-secondary-link {
    display: inline-flex;
    align-self: center;
    justify-content: center;
    margin-top: 18px;
    color: #005bac;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.login-secondary-link:hover {
    text-decoration: underline;
}

/* 리얼스피치 전용 로그인 변형: 일반 로그인의 BM 선택/하단 요소를 숨기고 대회 문구 중심으로 보인다. */
.contest-login-shell .login-logo {
    gap: 0;
}

.contest-login-shell .login-brand-panel {
    justify-content: flex-start;
}

.contest-login-shell .login-brand-copy {
    margin-top: clamp(112px, 16vh, 156px);
}

.contest-login-shell .login-logo-mark,
.contest-login-shell .login-brand-footer {
    display: none;
}

.contest-login-shell .login-logo strong {
    font-size: 25px;
    line-height: 1.12;
}

.contest-login-shell .login-logo em {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
}

.contest-login-shell .login-card h2 {
    margin-bottom: 4px;
}

.contest-login-shell .login-help {
    word-break: keep-all;
}

/* 접수 기간 전 안내 화면: 운영 서버에서 접수 전에는 로그인 폼 대신 일정 안내만 보여준다. */
.schedule-notice-card {
    justify-content: center;
}

.schedule-notice-box {
    display: grid;
    gap: 8px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 22px;
    background: #eff6ff;
}

.schedule-notice-box span {
    color: #005bac;
    font-size: 13px;
    font-weight: 900;
}

.schedule-notice-box strong {
    color: #0f2748;
    font-size: 24px;
    line-height: 1.35;
    word-break: keep-all;
}

.schedule-notice-box p {
    margin: 4px 0 0;
    color: #475467;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
}

/* 회원 로그인 전용 변형: 접수 기간 종료/미오픈 상태에서 별도 안내 화면을 만든다. */
.member-login-brand {
    background:
        linear-gradient(135deg, rgba(0, 91, 172, 0.98), rgba(0, 126, 152, 0.94) 58%, rgba(20, 184, 166, 0.9)),
        #005bac;
}

.member-login-shell-blocked {
    grid-template-columns: 1fr;
    width: min(720px, 100%);
    min-height: 420px;
}

.member-login-shell-blocked .login-card {
    align-items: center;
    text-align: center;
}

.member-login-shell-blocked .member-login-closed {
    max-width: 560px;
    border: 0;
    padding: 0;
    background: transparent;
}

.member-login-closed {
    display: grid;
    gap: 12px;
    justify-items: start;
    border: 1px solid #d7e3f0;
    border-radius: 10px;
    padding: 26px;
    background: #f8fbff;
}

.member-login-closed h2 {
    margin-bottom: 0;
}

.member-login-closed p {
    margin: 0;
    color: #344054;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
    white-space: pre-line;
}

/* 소속 선택 화면: 같은 계정이 교실/학원 등 복수 BM에 걸릴 때 로그인 직후 선택하게 한다. */
.affiliation-shell {
    max-width: 1040px;
}

.affiliation-card {
    padding-top: clamp(28px, 4vw, 48px);
    padding-bottom: clamp(28px, 4vw, 48px);
}

.affiliation-options {
    display: grid;
    gap: 10px;
    margin-top: 4px;
}

.affiliation-option {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 0;
    border: 1px solid #d7e3f0;
    border-radius: 8px;
    padding: 14px;
    background: #f9fbfd;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.affiliation-option:hover {
    border-color: #93c5fd;
    background: #fff;
}

.affiliation-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    accent-color: #005bac;
    box-shadow: none;
}

.affiliation-option:has(input:checked) {
    border-color: #005bac;
    background: #eef6ff;
    box-shadow: 0 0 0 4px rgba(0, 91, 172, 0.08);
}

.affiliation-option-body {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.affiliation-option-body strong {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px;
    color: #12263f;
    font-size: 17px;
    line-height: 1.35;
}

.affiliation-option-body strong span {
    color: #667085;
    font-size: 13px;
}

.affiliation-option-body small {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.affiliation-back {
    display: inline-flex;
    justify-content: center;
    margin-top: 12px;
    color: #667085;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.affiliation-back:hover {
    color: #005bac;
}

.eyebrow {
    margin: 0 0 10px;
    color: #2563eb;
    font-size: 13px;
    font-weight: 700;
}

/* 공통 상단 로고/문맥 표시: 관리자, 센터, 교사, 회원 화면에서 같은 브랜드 톤을 유지한다. */
.receipt-logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 34px;
    margin-bottom: 8px;
    color: #063b72;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0;
}

.receipt-logo::before {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    margin-right: 7px;
    border-radius: 9px;
    color: #fff;
    background:
        linear-gradient(135deg, #005bac 0%, #0072ce 58%, #00a884 100%);
    box-shadow: 0 8px 18px rgba(0, 91, 172, 0.22);
    content: "RS";
    font-size: 12px;
    font-weight: 900;
}

.receipt-logo span {
    color: #005bac;
}

.receipt-logo strong {
    color: #00937f;
    font-weight: 900;
}

.receipt-logo::after {
    width: 22px;
    height: 3px;
    margin-left: 6px;
    border-radius: 999px;
    background: #ffd54a;
    content: "";
}

.receipt-brand-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 5px;
}

.receipt-brand-row .receipt-logo {
    margin-bottom: 0;
}

.list-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 2px;
}

.header-action-divider {
    width: 1px;
    height: 24px;
    background: #cfd8e3;
}

h1 {
    margin: 0 0 16px;
    font-size: 30px;
}

p {
    margin: 0 0 24px;
    color: #667085;
}

.message {
    min-height: 20px;
    margin: 0;
    color: #c0362c;
    font-weight: 700;
}

a.button,
button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    padding: 0 18px;
    color: #fff;
    background: #2563eb;
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}

a.button.secondary {
    margin-left: 8px;
    color: #2563eb;
    background: #eaf1ff;
}

.login-panel form,
.receipt-form {
    display: grid;
    gap: 10px;
}

.login-panel label,
.receipt-form label {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
}

.login-panel input,
.receipt-form input,
.receipt-form textarea {
    height: 42px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    padding: 0 12px;
}

.receipt-form textarea {
    height: auto;
    padding: 12px;
    resize: vertical;
}

.login-panel button,
.receipt-form button {
    margin-top: 12px;
}

.plain-link {
    display: inline-block;
    margin-top: 18px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.list-header .plain-link {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfe0f5;
    border-radius: 999px;
    margin-top: 2px;
    padding: 0 12px;
    background: #fff;
    color: #005bac;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.list-header .plain-link:hover {
    border-color: #9fc5f8;
    background: #f1f7ff;
}

.link-spaced {
    margin-left: 16px;
}

.info-list {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 10px 16px;
    margin: 0 0 24px;
}

.info-list dt {
    color: #667085;
    font-weight: 700;
}

.info-list dd {
    margin: 0;
}

/* 직원용 목록 화면 공통 프레임: 헤더, 로그인 정보, 필터, 테이블을 감싸는 기본 폭. */
.list-shell {
    width: min(1180px, 100%);
}

.list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
}

.list-header h1 {
    margin-bottom: 4px;
}

.list-header p {
    margin-bottom: 0;
}

/* 센터/교사 목록 헤더는 큰 페이지 제목 없이 로고와 회원 목록 설명만 남긴다. */
.managed-list-header {
    align-items: center;
}

.managed-list-header .receipt-logo {
    margin-bottom: 3px;
}

.managed-list-header > div:first-child > p:last-child {
    color: #475467;
    font-size: 14px;
    font-weight: 700;
}

/* 로그인 사용자/권한 칩: 본사 관리자, 센터, 교사, BM 정보를 짧게 표시한다. */
.login-context {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 0;
}

.bm-badge,
.account-chip {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    gap: 6px;
    border: 1px solid #d7e3f0;
    border-radius: 999px;
    padding: 0 10px;
    background: #fff;
    color: #263c56;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.bm-badge::before {
    content: "BM";
    color: #6b7d94;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0;
}

/* 화면 상단 헤더의 BM 배지는 사용자가 보는 공식 명칭만 노출한다. */
.header-bm-badge::before {
    content: none;
}

.bm-badge-classroom {
    border-color: #b9d4ff;
    background: #eef6ff;
    color: #005bac;
}

.bm-badge-academy {
    border-color: #d8c7ff;
    background: #f4f0ff;
    color: #5b32aa;
}

.bm-badge-wyoons {
    border-color: #a9dfc4;
    background: #ecfdf3;
    color: #087044;
}

.bm-badge-admin {
    border-color: #cfd8e3;
    background: #f8fafc;
    color: #334155;
}

.bm-badge-member {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.bm-badge-mixed,
.bm-badge-igse {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #9a3412;
}

.bm-badge-basic {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.bm-badge-wellstudy {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

/* 접수 현황 요약 카드: 전체/미접수/접수완료/확정/평가완료/취소 건수를 상단에 고정 표시한다. */
.receipt-stat-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(5, minmax(130px, 0.85fr));
    gap: 5px;
    margin-bottom: 5px;
}

.receipt-stat-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: end;
    column-gap: 8px;
    min-width: 0;
    border: 1px solid #d9e1ec;
    border-radius: 7px;
    padding: 5px 9px;
    background: #fff;
}

.receipt-stat-card.primary {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.receipt-stat-card.not-received {
    border-color: #dbeafe;
    background: #f0f9ff;
}

.receipt-stat-card.submitted {
    border-color: #fde68a;
    background: #fffbeb;
}

.receipt-stat-card.confirmed {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.receipt-stat-card.evaluated {
    border-color: #99f6e4;
    background: #f0fdfa;
}

.receipt-stat-card.cancelled {
    border-color: #fecaca;
    background: #fef2f2;
}

.receipt-stat-card > span,
.receipt-stat-card > em {
    color: #667085;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.08;
}

.receipt-stat-card > span {
    grid-column: 1 / -1;
}

.receipt-stat-card strong {
    grid-column: 1;
    min-width: 0;
    margin: 1px 0 0;
    color: #101828;
    font-size: 18px;
    line-height: 1.02;
    white-space: nowrap;
}

.receipt-stat-card em {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: end;
    text-align: right;
    white-space: nowrap;
}

/* 센터/교사 통계는 접수 처리된 전체 회원 수 한 칸만 보여준다. */
.managed-receipt-stat-panel {
    grid-template-columns: minmax(160px, 220px);
}

.managed-receipt-stat-panel .receipt-stat-card {
    grid-template-columns: 1fr;
}

.managed-receipt-stat-panel .receipt-stat-card strong {
    font-size: 20px;
}

/* 조회 필터 툴바 공통 레이아웃: 조회 기준/인원, 검색 필드, 조회/엑셀 버튼을 한 덩어리로 배치한다. */
.toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 7px 10px;
    margin-bottom: 8px;
    padding: 8px 10px;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #f8fafc;
}

/* 조회 기준/조회 인원 카드: 화면 폭에 따라 필터 위 또는 왼쪽에 붙는 요약 정보. */
.toolbar-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(88px, auto));
    gap: 8px;
    align-self: start;
}

.filter-summary {
    display: grid;
    align-content: center;
    gap: 2px;
    min-width: 94px;
    min-height: 50px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 8px;
    background: #fff;
}

.toolbar strong,
.search-field span {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.filter-summary span {
    color: #101828;
    font-size: 14px;
    font-weight: 800;
}

/* 실제 검색 조건 영역: 일정, 센터명, 교사명, 회원명, 학년, 접수 상태 등을 auto-fit으로 배치한다. */
.toolbar-fields {
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(auto-fit, minmax(126px, 1fr));
    gap: 6px;
    min-width: 0;
}

/* 부가 옵션 영역: 2000번 이하 제외처럼 임시/테스트성 필터를 버튼 줄 아래에 둔다. */
.toolbar-field-options {
    grid-column: 2 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    min-width: 0;
    padding-top: 1px;
}

/* 조회/다운로드 버튼 묶음: 필터 줄의 마지막 빈 공간에 붙이고 좁은 화면에서는 2열 버튼으로 전환한다. */
.toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: flex-end;
    gap: 8px;
    align-self: end;
    justify-self: end;
    min-width: 0;
}

/* 접수 현황 목록 전용 필터: 일반 툴바보다 컬럼 수가 많아 버튼을 마지막 줄 우측에 유지한다. */
.receipt-filter-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
}

.receipt-filter-toolbar .toolbar-meta {
    grid-row: 1 / span 2;
    align-self: stretch;
}

.receipt-filter-toolbar.has-toolbar-options .toolbar-meta {
    grid-row: 1 / span 3;
}

.receipt-filter-toolbar .filter-summary {
    height: 100%;
}

.receipt-filter-toolbar .toolbar-fields {
    grid-column: 2;
}

.receipt-filter-toolbar .toolbar-actions {
    /* 필터가 여러 줄로 접혀도 작업 버튼은 마지막 줄 오른쪽 끝에 붙인다. */
    grid-column: span 4 / -1;
    justify-self: end;
    align-self: end;
    padding-bottom: 0;
    width: auto;
    max-width: 100%;
    justify-content: flex-end;
}

.toolbar-actions button {
    min-height: 32px;
    padding: 0 14px;
    font-size: 12px;
}

.all-bm-excel-download-button {
    min-width: 94px;
    line-height: 1.1;
}

.all-bm-excel-download-button span {
    display: block;
    font-size: 11px;
    line-height: 1.12;
}

.check-field {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    align-self: end;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    padding: 0 10px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.check-field input {
    width: 15px;
    height: 15px;
    margin: 0;
}

.statistics-check-field {
    border: 0;
    padding: 0;
    background: transparent;
}

.search-field {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.search-field input,
.search-field select {
    width: 100%;
    min-width: 0;
    height: 32px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    padding: 0 10px;
    background: #fff;
    color: #101828;
    font-family: inherit;
}

/* 학년 필터: '모든 학년 + 만'처럼 두 컨트롤이 붙어 있어 기본 필터보다 넓게 잡는다. */
.school-year-filter {
    grid-column: span 2;
    min-width: 0;
}

.school-year-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    gap: 4px;
    min-width: 0;
}

.school-year-controls select {
    min-width: 0;
    padding-left: 7px;
    padding-right: 5px;
}

/* 센터/교사는 학년 이하 비교를 쓰지 않아 학년 선택 상자 하나만 채운다. */
.managed-receipt-shell .school-year-controls {
    grid-template-columns: minmax(0, 1fr);
}

/* 센터/교사 화면은 작은 글자가 과도하게 줄지 않도록 필터와 목록 기본 글자를 한 단계 키운다. */
.managed-receipt-shell .toolbar strong,
.managed-receipt-shell .search-field span,
.managed-receipt-shell .search-field input,
.managed-receipt-shell .search-field select,
.managed-receipt-shell .receipt-table th,
.managed-receipt-shell .receipt-table td {
    font-size: 13px;
}

.search-field select:disabled {
    color: #98a2b3;
    background: #eef2f6;
    cursor: not-allowed;
}

.toolbar button[type="submit"] {
    min-width: 82px;
    height: 32px;
    padding: 0 18px;
}

/* 테이블 스크롤 컨테이너: 목록 본문이 많을 때 표 내부에서만 가로/세로 스크롤한다. */
.table-wrap {
    overflow-x: auto;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #fff;
}

/* 학생 목록 테이블 공통: 관리자/센터/교사 화면의 행 높이, 헤더, 셀 스타일 기반. */
.student-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.student-table th,
.student-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #edf1f7;
    text-align: left;
    font-size: 14px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-table th {
    position: sticky;
    top: 0;
    z-index: 3;
    color: #475467;
    background: #f8fafc;
    font-weight: 700;
    box-shadow: inset 0 -1px 0 #d9e1ec;
}

.student-table tr:last-child td {
    border-bottom: 0;
}

.table-button {
    width: 56px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
}

.receipt-table .table-button {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    background: #eff6ff;
    line-height: 1;
    white-space: nowrap;
}

.receipt-table .table-button:hover {
    background: #dbeafe;
}

.receipt-table .danger-button.table-button {
    border-color: #fecaca;
    color: #b42318;
    background: #fee4e2;
}

.receipt-table .danger-button.table-button:hover {
    background: #fecdca;
}

.receipt-table .confirm-button.table-button {
    border-color: #86efac;
    color: #15803d;
    background: #f0fdf4;
}

.receipt-table .confirm-button.table-button:hover {
    background: #dcfce7;
}

.empty-cell {
    padding: 36px 10px !important;
    color: #667085;
    text-align: center !important;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.js-enabled .pagination {
    display: none;
}

.infinite-status {
    margin-top: 14px;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.infinite-status[hidden] {
    display: none;
}

.page-button,
.page-current {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
}

.page-button {
    border: 1px solid #bfdbfe;
    color: #2563eb;
    background: #eff6ff;
    text-decoration: none;
}

.page-button.disabled {
    border-color: #d9e1ec;
    color: #98a2b3;
    background: #f8fafc;
}

.page-current {
    color: #344054;
}

.receipt-panel {
    width: min(760px, 100%);
}

/* 접수 현황 화면 쉘: 헤더/탭/통계/필터는 위에 두고 목록 폼만 남은 높이를 차지한다. */
.receipt-shell {
    display: flex;
    height: calc(100dvh - 48px);
    min-height: 0;
    flex-direction: column;
    width: min(100%, 1480px);
}

.receipt-shell > .list-header,
.receipt-shell > .admin-tabs,
.receipt-shell > .admin-sub-tabs,
.receipt-shell > .notice,
.receipt-shell > .receipt-stat-panel,
.receipt-shell > .toolbar {
    flex: 0 0 auto;
}

/* 접수 목록 폼: 선택 접수/취소/확정과 무한 스크롤 테이블을 하나의 form으로 묶는다. */
.receipt-list-form {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
}

.receipt-list-form .action-bar,
.receipt-list-form .pagination,
.receipt-list-form .infinite-status {
    flex: 0 0 auto;
}

.receipt-list-form .table-wrap {
    flex: 1 1 auto;
    min-height: 220px;
    overflow: auto;
}

.admin-shell {
    width: min(100%, 1480px);
}

/* 관리자 상위 탭: 접수 현황, 통계, 접수 일정처럼 큰 기능 단위를 전환한다. */
.admin-tabs {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    min-height: 41px;
    margin-bottom: 16px;
    border-bottom: 1px solid #d9e1ec;
}

.admin-tab {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 40px;
    align-items: center;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    padding: 0 16px;
    color: #475467;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.admin-tab.active {
    border-color: #d9e1ec;
    color: #2563eb;
    background: #fff;
}

/* 관리자 하위 탭: BM별 영어교실/우리집앞영어교실/학원/베이직·웰스터디 또는 통계 하위 탭을 전환한다. */
.admin-sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.admin-sub-tab {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid #d9e1ec;
    border-radius: 999px;
    padding: 0 14px;
    color: #475467;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.admin-sub-tab.active {
    border-color: #bfdbfe;
    color: #175cd3;
    background: #eff6ff;
}

.bm-tabs {
    margin-top: -8px;
    margin-bottom: 12px;
}

.bm-tabs .admin-sub-tab {
    min-height: 32px;
    padding: 0 13px;
}

/* 통계 필터: 목록 필터와 같은 구조를 쓰되 통계 조회/엑셀 버튼만 노출한다. */
.statistics-toolbar {
    margin-bottom: 12px;
}

.statistics-toolbar .toolbar-actions {
    grid-column: auto;
    justify-self: end;
    align-self: end;
}

.statistics-stat-panel {
    margin-bottom: 12px;
}

/* 통계 본문: 전체 통계와 센터 통계의 제목, 설명, 표 영역을 묶는다. */
.statistics-section {
    display: grid;
    gap: 10px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.section-heading h2 {
    margin: 0;
    color: #101828;
    font-size: 20px;
}

.section-heading p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.statistics-table {
    min-width: 0;
}

.statistics-table th,
.statistics-table td {
    padding: 10px 12px;
    font-size: 13px;
}

.statistics-table th:nth-child(n + 3),
.statistics-table td:nth-child(n + 3) {
    text-align: right;
}

.statistics-scroll-wrap {
    max-height: min(56vh, 620px);
    overflow: auto;
}

.statistics-scroll-wrap .statistics-table {
    min-width: 1120px;
}

.status-mix-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.status-mix-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #475467;
    font-size: 12px;
    font-weight: 700;
}

.status-mix-legend span::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: #e0f2fe;
}

.status-mix-legend .submitted::before {
    background: #fde68a;
}

.status-mix-legend .confirmed::before {
    background: #86efac;
}

.status-mix-legend .evaluated::before {
    background: #5eead4;
}

.status-mix-legend .cancelled::before {
    background: #fecaca;
}

.status-mix-cell {
    min-width: 170px;
    text-align: left !important;
}

/* 센터 통계 상태 바: 미접수/접수완료/확정/평가완료/취소 비율을 한 줄 누적 막대로 보여준다. */
.status-mix {
    display: flex;
    width: 160px;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.status-segment {
    display: block;
    min-width: 0;
    height: 100%;
}

.status-segment.not-received {
    background: #dbeafe;
}

.status-segment.submitted {
    background: #fde68a;
}

.status-segment.confirmed {
    background: #86efac;
}

.status-segment.evaluated {
    background: #5eead4;
}

.status-segment.cancelled {
    background: #fecaca;
}

.muted-code {
    display: block;
    margin-top: 3px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.rate-text {
    display: inline-block;
    min-width: 56px;
    font-weight: 800;
}

.stat-meter {
    display: inline-block;
    width: 86px;
    height: 7px;
    margin-left: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
    vertical-align: middle;
}

.stat-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
}

/* 접수 일정 관리 레이아웃: 일정 리스트와 등록/수정 영역을 관리하는 관리자 전용 화면. */
.admin-layout {
    display: grid;
    grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.admin-form {
    display: grid;
    gap: 9px;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}

.admin-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.admin-form h2 {
    margin: 0;
    font-size: 20px;
}

.reset-link {
    margin-top: 0;
}

.admin-form label {
    margin-top: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.event-field-label {
    margin-top: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 700;
}

.required-badge {
    display: inline-flex;
    min-height: 20px;
    align-items: center;
    margin-left: 5px;
    border-radius: 999px;
    padding: 0 8px;
    color: #92400e;
    background: #fef3c7;
    font-size: 11px;
    font-weight: 800;
    vertical-align: middle;
}

.event-number-display {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    color: #344054;
    font-size: 14px;
    font-weight: 800;
}

.admin-form .field-help {
    margin: -2px 0 4px;
    color: #667085;
    font-size: 12px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    padding: 0 11px;
    background: #fff;
    font-family: inherit;
}

.admin-form textarea {
    padding: 10px 11px;
    resize: vertical;
}

.admin-event-panel {
    display: grid;
    gap: 10px;
}

/* 일정 관리 상단 도구막대: 새 일정 버튼과 현재 일정 목록 제목을 담는다. */
.admin-event-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    padding: 12px 14px;
    background: #fff;
}

.admin-event-toolbar h2 {
    margin: 0 0 4px;
    color: #101828;
    font-size: 18px;
}

.admin-event-toolbar p {
    margin: 0;
    font-size: 13px;
}

/* 커스텀 달력 팝오버: 날짜만 선택하고 월 이동 버튼/휠 조작 중에는 닫히지 않게 JS와 맞물린다. */
.date-picker-popover {
    position: absolute;
    z-index: 60;
    width: 292px;
    border: 1px solid #bfd0e6;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    transform-origin: top center;
    transition: transform 120ms ease, opacity 120ms ease;
}

.date-picker-popover[hidden] {
    display: none;
}

.date-picker-popover.is-moving {
    transform: translateY(2px);
    opacity: 0.92;
}

.date-picker-head {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.date-picker-head strong {
    text-align: center;
    font-size: 15px;
}

.date-picker-nav,
.date-picker-day {
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #0f2748;
    font-family: inherit;
    cursor: pointer;
}

.date-picker-nav {
    width: 36px;
    height: 34px;
    font-size: 22px;
    line-height: 1;
}

.date-picker-nav:hover,
.date-picker-day:hover {
    background: #eaf2ff;
    color: #0052cc;
}

.date-picker-week,
.date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.date-picker-week {
    margin-bottom: 5px;
    color: #667085;
    font-size: 12px;
    text-align: center;
}

.date-picker-day,
.date-picker-empty {
    min-width: 0;
    height: 34px;
    font-size: 13px;
}

.date-picker-day.is-today {
    outline: 1px solid #8db8ff;
}

.date-picker-day.is-selected {
    background: #2563eb;
    color: #fff;
    font-weight: 700;
}

.date-picker-day.is-selected:hover {
    background: #1d4ed8;
    color: #fff;
}

/* 일정 입력의 날짜/상태 조합 필드: 라벨과 값 컨트롤을 고정 폭 라벨 + 입력 영역으로 정렬한다. */
.segmented-fields {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 9px 10px;
    align-items: center;
}

.segmented-fields label {
    margin-top: 0;
}

.event-visibility-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.event-check-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 0;
    padding: 12px;
    border: 1px solid #d6e2f0;
    border-radius: 8px;
    background: #f8fbff;
    cursor: pointer;
}

.event-check-option input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #2563eb;
    flex: 0 0 auto;
}

.event-check-option span {
    min-width: 0;
}

.event-check-option strong {
    display: block;
    color: #0f2747;
    font-size: 14px;
}

.event-check-option small {
    display: block;
    margin-top: 3px;
    color: #5c6f89;
    font-size: 12px;
    line-height: 1.4;
}

.event-check-option.is-locked {
    background: #f1f7ff;
    cursor: default;
}

.event-check-option.is-locked small::after {
    content: " 시상 공개 시 함께 적용됩니다.";
    color: #2563eb;
    font-weight: 700;
}

@media (max-width: 640px) {
    .event-visibility-fields {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.admin-list {
    min-width: 0;
}

/* 접수 일정 리스트 테이블: 일정 건수가 적어서 일반 접수 목록보다 조밀한 행 간격을 사용한다. */
.admin-table {
    min-width: 820px;
}

.admin-table th,
.admin-table td {
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13px;
}

.admin-table .table-button {
    min-height: 30px;
}

.admin-table .status-pill {
    min-height: 24px;
    padding: 0 9px;
    white-space: nowrap;
}

.event-modal {
    width: min(720px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    overflow: auto;
}

.event-form {
    border: 0;
    padding: 0;
}

.event-form .modal-actions {
    margin-top: 12px;
}

.event-detail-modal {
    width: min(700px, calc(100vw - 36px));
}

.secondary-button {
    color: #2563eb;
    background: #eaf1ff;
}

.danger-button {
    color: #fff;
    background: #b42318;
}

.confirm-button {
    color: #fff;
    background: #16a34a;
}

.confirm-button:hover {
    background: #15803d;
}

.readonly-input {
    background: #f3f4f6;
    color: #475467;
}

.readonly-cell {
    color: #475467;
}

.student-table .readonly-cell {
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: break-word;
}

.readonly-contact {
    min-height: 42px;
    height: auto;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    padding: 8px 12px;
    line-height: 1.45;
}

.readonly-contact div {
    display: flex;
    gap: 8px;
}

.readonly-contact span {
    min-width: 32px;
    color: #667085;
    font-weight: 700;
}

/* 목록 일괄 처리 바: 전체 선택, 상태 흐름, 선택 접수/취소/확정 버튼을 표 바로 위에 둔다. */
.action-bar {
    display: grid;
    grid-template-columns: minmax(118px, auto) minmax(360px, 1fr) minmax(260px, auto);
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    padding: 6px 10px;
    border: 1px solid #d9e1ec;
    border-radius: 8px;
    background: #fff;
}

.check-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: #344054;
    font-weight: 700;
}

/* 접수 상태 흐름 표시: 미접수 -> 접수완료 -> 접수확정 -> 평가완료 단계 안내용. */
.receipt-flow {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 30px;
    border-radius: 8px;
    padding: 0 10px;
    background: #f8fafc;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.flow-pill {
    display: inline-flex;
    min-width: 78px;
    min-height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 9px;
    white-space: nowrap;
}

.flow-not {
    color: #175cd3;
    background: #eff8ff;
}

.flow-submitted {
    color: #92400e;
    background: #fef3c7;
}

.flow-confirmed {
    color: #067647;
    background: #bbf7d0;
}

.flow-evaluated {
    color: #0f766e;
    background: #99f6e4;
}

.flow-arrow {
    flex: 0 0 18px;
    color: #98a2b3;
    text-align: center;
}

.action-buttons,
.receipt-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.action-buttons button {
    min-height: 36px;
    padding: 0 14px;
}

/* 접수 목록 기본 테이블: 센터/교사 화면 기준 컬럼 폭을 nth-child로 고정한다. */
.receipt-table {
    table-layout: fixed;
    min-width: 1160px;
    border-collapse: collapse;
}

.receipt-table th,
.receipt-table td {
    position: relative;
    padding: 5px 6px;
    border-bottom: 1px solid #e8eef6;
    font-size: 12px;
    vertical-align: middle;
    overflow: hidden;
}

.receipt-table tbody td:first-child::after,
.receipt-table tbody td:last-child::after {
    position: absolute;
    bottom: 0;
    z-index: 1;
    width: 12px;
    height: 2px;
    background: #fff;
    content: "";
    pointer-events: none;
}

.receipt-table tbody td:first-child::after {
    left: 0;
}

.receipt-table tbody td:last-child::after {
    right: 0;
}

.receipt-table tbody tr:last-child td {
    border-bottom: 0;
}

.receipt-table tbody tr:last-child td::after {
    display: none;
}

.receipt-table th:nth-child(1),
.receipt-table td:nth-child(1) {
    width: 44px;
    text-align: center;
}

.receipt-table th:nth-child(2),
.receipt-table td:nth-child(2) {
    width: 48px;
    text-align: center;
}

.receipt-table th:nth-child(3),
.receipt-table td:nth-child(3) {
    width: 120px;
}

.receipt-table th:nth-child(4),
.receipt-table td:nth-child(4) {
    width: 54px;
}

.receipt-table th:nth-child(5),
.receipt-table td:nth-child(5) {
    width: 82px;
}

.receipt-table th:nth-child(6),
.receipt-table td:nth-child(6) {
    width: 76px;
}

.receipt-table th:nth-child(7),
.receipt-table td:nth-child(7) {
    width: 150px;
}

.receipt-table th:nth-child(8),
.receipt-table td:nth-child(8) {
    width: 140px;
}

.receipt-table th:nth-child(9),
.receipt-table td:nth-child(9) {
    width: 220px;
}

.receipt-table th:nth-child(10),
.receipt-table td:nth-child(10) {
    width: 82px;
    text-align: center;
}

.receipt-table th:nth-child(11),
.receipt-table td:nth-child(11) {
    width: 64px;
    text-align: center;
}

.receipt-table th:nth-child(12),
.receipt-table td:nth-child(12),
.receipt-table th:nth-child(14),
.receipt-table td:nth-child(14) {
    width: 64px;
    text-align: center;
}

.receipt-table th:nth-child(13),
.receipt-table td:nth-child(13) {
    width: 58px;
    text-align: center;
}

.receipt-table td:nth-child(11),
.receipt-table td:nth-child(12),
.receipt-table td:nth-child(13),
.receipt-table td:nth-child(14) {
    overflow: visible;
    text-overflow: clip;
}

/* 관리자 접수 목록 테이블: 센터/리포트/확정 컬럼이 추가되어 기본 테이블보다 더 촘촘하게 잡는다. */
.admin-receipt-table {
    min-width: 0;
}

.admin-receipt-table th,
.admin-receipt-table td {
    padding: 5px 5px;
    font-size: 12px;
}

.admin-receipt-table .table-button {
    width: 48px;
    min-height: 30px;
    padding: 0 6px;
    font-size: 12px;
}

.admin-receipt-table .editable-input {
    height: 30px;
    padding: 0 8px;
}

.admin-receipt-table .icon-preview-button {
    width: 30px;
    min-width: 30px;
    min-height: 30px;
    height: 30px;
    flex-basis: 30px;
}

.admin-receipt-table .link-preview-cell .link-input {
    width: auto;
}

.admin-receipt-table .link-preview-cell .icon-preview-button {
    flex-basis: 30px;
}

.admin-receipt-table .status-pill {
    min-height: 22px;
    padding: 0 8px;
    font-size: 11px;
}

.admin-receipt-table th:nth-child(3),
.admin-receipt-table td:nth-child(3) {
    width: 116px;
}

.admin-receipt-table th:nth-child(4),
.admin-receipt-table td:nth-child(4) {
    width: 82px;
}

.admin-receipt-table th:nth-child(5),
.admin-receipt-table td:nth-child(5) {
    width: 42px;
}

.admin-receipt-table th:nth-child(6),
.admin-receipt-table td:nth-child(6) {
    width: 72px;
}

.admin-receipt-table th:nth-child(7),
.admin-receipt-table td:nth-child(7) {
    width: 66px;
}

.admin-receipt-table th:nth-child(8),
.admin-receipt-table td:nth-child(8) {
    width: 126px;
}

.admin-receipt-table th:nth-child(9),
.admin-receipt-table td:nth-child(9) {
    width: 132px;
}

.admin-receipt-table th:nth-child(10),
.admin-receipt-table td:nth-child(10) {
    width: 220px;
}

.admin-receipt-table th:nth-child(11),
.admin-receipt-table td:nth-child(11) {
    width: 74px;
    text-align: center;
}

.admin-receipt-table th:nth-child(12),
.admin-receipt-table td:nth-child(12) {
    width: 54px;
    text-align: center;
}

.admin-receipt-table th:nth-child(13),
.admin-receipt-table td:nth-child(13),
.admin-receipt-table th:nth-child(14),
.admin-receipt-table td:nth-child(14),
.admin-receipt-table th:nth-child(16),
.admin-receipt-table td:nth-child(16) {
    width: 54px;
    text-align: center;
}

.admin-receipt-table th:nth-child(15),
.admin-receipt-table td:nth-child(15) {
    width: 58px;
    text-align: center;
}

.admin-receipt-table td:nth-child(12),
.admin-receipt-table td:nth-child(13),
.admin-receipt-table td:nth-child(14),
.admin-receipt-table td:nth-child(15),
.admin-receipt-table td:nth-child(16) {
    overflow: visible;
    text-overflow: clip;
}

/* 교사 접수 목록 테이블: 담당 선생님 컬럼을 빼고 교사 본인 학생만 보는 폭 기준. */
.teacher-receipt-table {
    min-width: 1160px;
}

.teacher-receipt-table th:nth-child(3),
.teacher-receipt-table td:nth-child(3) {
    width: 128px;
}

.teacher-receipt-table th:nth-child(4),
.teacher-receipt-table td:nth-child(4) {
    width: 54px;
}

.teacher-receipt-table th:nth-child(5),
.teacher-receipt-table td:nth-child(5) {
    width: 84px;
}

.teacher-receipt-table th:nth-child(6),
.teacher-receipt-table td:nth-child(6) {
    width: 158px;
}

.teacher-receipt-table th:nth-child(7),
.teacher-receipt-table td:nth-child(7) {
    width: 150px;
}

.teacher-receipt-table th:nth-child(8),
.teacher-receipt-table td:nth-child(8) {
    width: 240px;
}

.teacher-receipt-table th:nth-child(9),
.teacher-receipt-table td:nth-child(9) {
    width: 82px;
    text-align: center;
}

.teacher-receipt-table th:nth-child(10),
.teacher-receipt-table td:nth-child(10) {
    width: 64px;
    text-align: center;
}

.teacher-receipt-table th:nth-child(11),
.teacher-receipt-table td:nth-child(11),
.teacher-receipt-table th:nth-child(13),
.teacher-receipt-table td:nth-child(13) {
    width: 64px;
    text-align: center;
}

.teacher-receipt-table th:nth-child(12),
.teacher-receipt-table td:nth-child(12) {
    width: 58px;
    text-align: center;
}

.teacher-receipt-table td:nth-child(10),
.teacher-receipt-table td:nth-child(11),
.teacher-receipt-table td:nth-child(12),
.teacher-receipt-table td:nth-child(13) {
    overflow: visible;
    text-overflow: clip;
}

.student-table .readonly-head {
    background: #eef2f6;
}

.school-year-cell {
    white-space: pre-line !important;
    line-height: 1.35;
}

/* 학생명 표시 셀: 학생명, 회원ID, customer_no를 한 컬럼 안에서 줄바꿈 표시한다. */
.student-name-id-cell {
    overflow: visible !important;
    z-index: 2;
    line-height: 1.35;
}

.student-name-text {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px;
    align-items: baseline;
    font-weight: 600;
}

.student-customer-no {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.student-id-line {
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
}

.student-id-value {
    margin-left: 4px;
    overflow-wrap: anywhere;
}

/* 센터 표시 셀: 관리자 목록에서 센터명과 센터번호만 간단히 보여준다. */
.org-center-cell {
    line-height: 1.25;
}

.org-agency {
    color: #0f2748;
    font-size: 12px;
    font-weight: 700;
}

.org-agency-no {
    display: inline-block;
    margin-left: 4px;
    color: #2563eb;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.receipt-status-cell {
    text-align: center;
}

.report-link-cell {
    text-align: center;
    background: inherit;
    vertical-align: middle;
}

.report-cell-stack {
    display: flex;
    min-width: 58px;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
}

/* 리포트 보기 버튼: PDF 파일은 내부 뷰어로 열고, 과거 링크 데이터는 외부 링크로 연다. */
.report-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    min-width: 46px;
    height: 30px;
    min-height: 30px;
    padding: 0 9px;
    border-color: #93c5fd;
    border-radius: 7px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.08);
}

.report-file-button {
    border-color: #93c5fd;
    color: #1d4ed8;
    background: #eff6ff;
}

.report-link-button::before {
    content: none;
}

.report-legacy-link-button::before {
    content: none;
}

.report-link-button:hover {
    border-color: #38bdf8;
    color: #075985;
    background: #ffffff;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(3, 105, 161, 0.16);
}

.report-file-button:hover {
    border-color: #60a5fa;
    color: #1e40af;
}

.report-link-button:focus-visible {
    outline: 3px solid rgba(20, 184, 166, 0.22);
    outline-offset: 2px;
}

.report-empty {
    display: inline-flex;
    min-width: 24px;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-weight: 700;
}

.student-award-line {
    display: block;
    width: calc(100% + var(--award-line-extra-width, 54px));
    max-width: calc(100% + var(--award-line-extra-width, 54px));
    margin-top: 3px;
    color: #9a3412;
    background: linear-gradient(100deg, #9a3412 0%, #9a3412 42%, #f59e0b 47%, #fff7ad 50%, #f59e0b 53%, #9a3412 58%, #9a3412 100%);
    background-size: 360% 100%;
    background-position: 110% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 10px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
    animation: award-shine 4.8s ease-in-out infinite;
}

.admin-receipt-table .student-award-line {
    --award-line-extra-width: 124px;
}

.teacher-receipt-table .student-award-line {
    --award-line-extra-width: 54px;
}

.receipt-table tr.row-submitted .student-award-line {
    color: #9a3412;
}

.receipt-table tr.row-confirmed .student-award-line {
    color: #9a3412;
}

.receipt-table tr.row-evaluated .student-award-line {
    color: #9a3412;
}

@keyframes award-shine {
    0%,
    42% {
        background-position: 110% 50%;
    }

    68% {
        background-position: -10% 50%;
    }

    69%,
    100% {
        background-position: 110% 50%;
    }
}

@keyframes award-burst {
    0%,
    100% {
        opacity: 0.45;
        transform: scale(0.82) rotate(0deg);
    }

    44% {
        opacity: 1;
        transform: scale(1.08) rotate(12deg);
    }

    72% {
        opacity: 0.7;
        transform: scale(0.96) rotate(-8deg);
    }
}

@keyframes award-spark-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes award-card-glow {
    0%,
    100% {
        box-shadow: 0 12px 30px rgba(14, 68, 110, 0.2), 0 0 18px rgba(253, 230, 138, 0.16);
    }

    50% {
        box-shadow: 0 14px 34px rgba(14, 68, 110, 0.23), 0 0 34px rgba(253, 230, 138, 0.36);
    }
}

@media (prefers-reduced-motion: reduce) {
    .member-hero-result::before,
    .member-hero-result::after,
    .member-hero-result,
    .member-hero-result-burst,
    .member-hero-result strong,
    .student-award-line {
        animation: none;
        background-position: 0% 50%;
    }
}

/* 행 상태 색상: 미접수 비실회원, 접수완료, 접수확정, 평가완료 상태를 한 줄 전체 배경으로 구분한다. */
.receipt-table tr.row-not-real-member td,
.receipt-table tr.row-not-real-member .readonly-cell,
.receipt-table tr.row-not-real-member .editable-input {
    background-color: #f1f5f9;
    color: #64748b;
}

.receipt-table tr.row-submitted td,
.receipt-table tr.row-submitted .readonly-cell,
.receipt-table tr.row-submitted .editable-input {
    background-color: #fff7d6;
}

.receipt-table tr.row-confirmed td,
.receipt-table tr.row-confirmed .readonly-cell,
.receipt-table tr.row-confirmed .editable-input {
    background-color: #dcfce7;
}

.receipt-table tr.row-evaluated td,
.receipt-table tr.row-evaluated .readonly-cell,
.receipt-table tr.row-evaluated .editable-input {
    background-color: #ccfbf1;
}

/* 선택 처리 실패/결과 미확인 행: 새 목록에서도 다시 확인할 대상을 왼쪽 표시선으로 구분한다. */
.receipt-table tr.row-action-failed td:first-child {
    box-shadow: inset 4px 0 #f59e0b;
}

.receipt-table tr.row-submitted td:first-child::after,
.receipt-table tr.row-submitted td:last-child::after {
    background: #fff7d6;
}

.receipt-table tr.row-confirmed td:first-child::after,
.receipt-table tr.row-confirmed td:last-child::after {
    background: #dcfce7;
}

.receipt-table tr.row-evaluated td:first-child::after,
.receipt-table tr.row-evaluated td:last-child::after {
    background: #ccfbf1;
}

.receipt-table tr.row-not-real-member td:first-child::after,
.receipt-table tr.row-not-real-member td:last-child::after {
    background: #f1f5f9;
}

.receipt-table tr.row-submitted .status-pill {
    color: #92400e;
    background: #fef3c7;
}

.receipt-table tr.row-confirmed .status-pill {
    color: #067647;
    background: #bbf7d0;
}

.receipt-table tr.row-evaluated .status-pill {
    color: #0f766e;
    background: #99f6e4;
}

.receipt-table tr.row-not-real-member .status-pill {
    color: #475569;
    background: #e2e8f0;
}

/* 연락처 셀: 회원/부/모 연락처를 짧은 라벨과 함께 줄바꿈 표시한다. */
.contact-cell {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.22;
}

.contact-cell div {
    display: flex;
    gap: 4px;
    align-items: baseline;
    min-width: 0;
    white-space: normal;
}

.contact-cell span {
    flex: 0 0 auto;
    min-width: 24px;
    color: #667085;
    font-size: 11px;
    font-weight: 700;
}

/* 정렬 버튼: 학생명/학년/상태 헤더 옆의 작은 위아래 화살표. */
.sort-controls {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin-left: 6px;
    vertical-align: middle;
}

.sort-button {
    display: block;
    width: 0;
    height: 0;
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    opacity: 0.58;
    text-decoration: none;
}

.sort-button.sort-asc {
    border-bottom: 8px solid #98a2b3;
}

.sort-button.sort-desc {
    border-top: 8px solid #98a2b3;
}

.sort-button:hover {
    opacity: 0.78;
}

.sort-button.active {
    opacity: 1;
}

.sort-button.sort-asc.active {
    border-bottom-color: #16a34a;
}

.sort-button.sort-desc.active {
    border-top-color: #16a34a;
}

.receipt-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.editable-input {
    width: 100%;
    min-width: 0;
    height: 30px;
    border: 1px solid #b7d9bf;
    border-radius: 6px;
    padding: 0 10px;
    background: #f1faee;
}

.compact-input {
    min-width: 0;
}

.link-input {
    min-width: 0;
}

.topic-input {
    min-width: 0;
}

/* 참가 주제 말풍선: 긴 주제는 입력칸 위 hover/focus 툴팁으로 줄바꿈 표시한다. */
.topic-tooltip {
    position: fixed;
    z-index: 10000;
    max-width: min(360px, calc(100vw - 28px));
    min-width: 180px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 11px 13px;
    color: #172554;
    background: #eff6ff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
    pointer-events: none;
    white-space: pre-wrap;
}

.topic-tooltip[hidden] {
    display: none;
}

.topic-tooltip::after {
    position: absolute;
    left: var(--arrow-left, 24px);
    width: 12px;
    height: 12px;
    border-right: 1px solid #bfdbfe;
    border-bottom: 1px solid #bfdbfe;
    background: #eff6ff;
    content: "";
}

.topic-tooltip.is-above::after {
    bottom: -7px;
    transform: translateX(-50%) rotate(45deg);
}

.topic-tooltip.is-below::after {
    top: -7px;
    transform: translateX(-50%) rotate(225deg);
}

.detail-link-field {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 영상 링크 입력+미리보기 셀: URL 입력칸과 눈 아이콘 버튼이 한 줄 안에서 같이 움직인다. */
.link-preview-cell {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap;
}

.link-preview-control {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 6px;
}

.link-preview-cell .link-input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}

.detail-link-field input {
    flex: 1 1 auto;
    min-width: 0;
}

.icon-preview-button {
    display: inline-flex;
    width: 30px;
    min-width: 30px;
    min-height: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    padding: 0;
    background: #eff6ff;
    vertical-align: middle;
}

.link-preview-cell .icon-preview-button {
    flex: 0 0 30px;
    margin-left: 0;
}

.icon-preview-button:hover {
    background: #dbeafe;
}

.icon-preview-button img {
    width: 17px;
    height: 17px;
}

.status-pill {
    display: inline-flex;
    min-height: 22px;
    align-items: center;
    border-radius: 999px;
    padding: 0 7px;
    color: #175cd3;
    background: #eff8ff;
    font-size: 11px;
    font-weight: 700;
}

.confirm-pill {
    color: #067647;
    background: #ecfdf3;
}

.muted-text {
    color: #98a2b3;
}

.form-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px 14px;
    align-items: center;
}

.form-grid label {
    margin-top: 0;
}

.form-grid textarea {
    min-height: 110px;
}

.receipt-actions {
    margin-top: 16px;
}

.notice {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.notice.success {
    border: 1px solid #badbcc;
    color: #0f5132;
    background: #d1e7dd;
}

.notice.error {
    border: 1px solid #f5c2c7;
    color: #842029;
    background: #f8d7da;
}

button:disabled,
input:disabled {
    cursor: not-allowed;
    opacity: 0.64;
}

/* 모달 공통 배경: 상세, 미리보기, 개인정보 동의, 결과창이 같은 overlay 기반을 쓴다. */
.modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.52);
    z-index: 30;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal {
    width: min(520px, 100%);
    border-radius: 8px;
    padding: 28px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.modal h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.modal p {
    margin-bottom: 18px;
}

.modal-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #344054;
    font-weight: 700;
}

.modal-check input {
    margin-top: 3px;
}

/* 개인정보 동의 모달: 접수 저장 전 동의서 이미지를 문서처럼 보여주는 전용 overlay. */
.privacy-backdrop {
    padding: 12px;
    background: rgba(15, 23, 42, 0.38);
    overflow: auto;
    z-index: 55;
}

/* 개인정보 동의 모달 본문: 화면을 넘지 않도록 내부 스크롤을 가진다. */
.privacy-consent-modal {
    display: flex;
    flex-direction: column;
    width: min(760px, calc(100vw - 28px));
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
    min-width: 0;
    padding: 24px;
    overflow: auto;
}

.privacy-consent-modal h2 {
    margin-bottom: 10px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.privacy-consent-modal h2 span {
    color: #dc2626;
}

.privacy-consent-lead {
    margin: 0 0 16px;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.55;
}

/* 개인정보 동의 항목 목록: 긴 동의 내용을 접고, 사용자가 각 항목을 열람한 뒤 개별 동의하도록 구성한다. */
.privacy-agreement-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.privacy-agreement-item {
    border: 1px solid #d8e4ef;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.privacy-agreement-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: #f8fbff;
}

.privacy-agreement-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
}

.privacy-agreement-title strong {
    color: #1f2a3d;
    font-size: 13px;
    line-height: 1.3;
}

.privacy-agreement-title span {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 2px 7px;
    background: #fee2e2;
    color: #b42318;
    font-size: 10px;
    font-weight: 900;
}

.privacy-detail-toggle {
    flex: 0 0 auto;
    border: 1px solid #bdd4f4;
    border-radius: 999px;
    padding: 4px 9px;
    background: #f1f7ff;
    color: #005bac;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.privacy-detail-toggle[aria-expanded="true"] {
    border-color: #98c6ff;
    background: #e8f3ff;
}

.privacy-agreement-detail {
    max-height: 200px;
    border-top: 1px solid #e5edf6;
    padding: 10px 13px;
    background: #fff;
    color: #344054;
    font-size: 13px;
    line-height: 1.55;
    overflow: auto;
}

.privacy-agreement-detail ol,
.privacy-agreement-detail ul {
    margin: 0;
    padding-left: 20px;
}

.privacy-agreement-detail li + li {
    margin-top: 8px;
}

.privacy-agreement-detail ul {
    margin-top: 5px;
}

.privacy-agreement-detail .privacy-numbered-items {
    list-style: none;
    padding-left: 0;
}

.privacy-agreement-check {
    border-top: 1px solid #eef2f7;
    padding: 8px 10px 9px;
    background: #fcfdff;
}

.privacy-delegation-notice {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    border: 1px solid #e4edf6;
    border-radius: 10px;
    padding: 12px 14px;
    background: #f9fbfd;
    color: #475467;
    font-size: 12px;
    line-height: 1.5;
}

.privacy-delegation-notice strong {
    color: #1f2a3d;
    font-size: 13px;
}

.privacy-delegation-notice p,
.privacy-delegation-notice ul {
    margin: 0;
}

.privacy-delegation-notice ul {
    padding-left: 18px;
}

/* 센터/교사용 동의서 이미지 미리보기: 공문 원본을 그대로 보여주되 모달 안에서만 스크롤되게 제한한다. */
.privacy-document-preview {
    max-height: min(58vh, 680px);
    border: 1px solid #d8e4ef;
    border-radius: 10px;
    background: #fff;
    overflow: auto;
}

.privacy-document-preview img {
    display: block;
    width: 100%;
    min-width: 560px;
    height: auto;
}

.privacy-consent-check {
    margin-top: 14px;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
}

.privacy-consent-check input {
    width: 20px;
    height: 20px;
}

.privacy-final-check {
    border: 1px solid #d8e4ef;
    border-radius: 10px;
    padding: 13px 14px;
    background: #fff;
}

.privacy-sms-note {
    margin: 8px 0 0;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

/* 개인정보 동의 후 문자 안내를 보낼 학부모 연락처 입력 영역. */
.privacy-parent-fields {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    border: 1px solid #d8e4ef;
    border-radius: 8px;
    padding: 14px;
    background: #f8fbff;
}

.privacy-parent-fields p {
    margin: 0;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.privacy-parent-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.privacy-parent-grid label {
    display: grid;
    gap: 6px;
    color: #1f2a3d;
    font-size: 13px;
    font-weight: 900;
}

.privacy-parent-grid label span {
    color: #dc2626;
}

.privacy-parent-grid input {
    width: 100%;
    height: 42px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    padding: 0 12px;
    color: #111827;
    background: #fff;
    font: inherit;
}

.privacy-parent-grid input:focus {
    border-color: #1f7ae0;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 122, 224, 0.14);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
}

.preview-backdrop {
    padding: 16px;
    z-index: 40;
}

.detail-backdrop {
    padding: 18px;
}

/* 학생 상세 모달: 기본 학생 정보, 링크, 접수 이력까지 한 화면 안에서 스크롤한다. */
.detail-modal {
    width: min(760px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    overflow: auto;
}

/* 처리 결과 모달: 선택 접수/확정/업로드 실패 내용을 페이지 이동 없이 보여준다. */
.result-backdrop {
    z-index: 45;
    background: rgba(15, 23, 42, 0.32);
}

.result-modal {
    width: min(620px, calc(100vw - 36px));
    max-height: calc(100vh - 36px);
    overflow: auto;
}

.result-eyebrow {
    margin: 0 0 4px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.result-summary {
    margin: 0 0 16px;
    border-radius: 8px;
    padding: 10px 12px;
    color: #0f2748;
    background: #eef6ff;
    font-size: 14px;
    font-weight: 800;
}

.result-success-summary {
    margin: -6px 0 12px;
    color: #166534;
    font-size: 13px;
    font-weight: 900;
}

.result-failure-box {
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 14px;
    background: #fff7ed;
}

.result-failure-box > strong {
    display: block;
    margin-bottom: 10px;
    color: #9a3412;
    font-size: 13px;
}

.result-failure-list {
    display: grid;
    gap: 8px;
    max-height: 280px;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.result-failure-list li {
    border-radius: 7px;
    padding: 8px 10px;
    background: #fff;
}

/* 실패 항목 한 줄 표시: 이름, 회원번호, 사유가 길어도 한 줄 말줄임으로 유지한다. */
.result-failure-line {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-failure-line strong {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: baseline;
    gap: 4px;
    max-width: 46%;
    color: #0f2748;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-failure-line strong span {
    flex: 0 0 auto;
    color: #667085;
    font-size: 11px;
    font-weight: 800;
}

.result-failure-line em {
    min-width: 0;
    color: #344054;
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 레포트 PDF 업로드 모달: 폴더 선택과 파일별 실패 내역을 함께 표시한다. */
.report-pdf-upload-modal {
    width: min(720px, calc(100vw - 36px));
}

/* 레포트 업로드 파일 선택 박스: 숨겨진 file input 대신 파일명과 선택 버튼을 보여준다. */
.report-upload-file-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    margin: 16px 0 8px;
    border: 1px solid #d6e4f5;
    border-radius: 8px;
    padding: 14px;
    background: #f8fafc;
}

.report-upload-file-box > div {
    min-width: 0;
}

.report-upload-file-label {
    display: block;
    margin-bottom: 4px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
}

.report-upload-file-name {
    display: block;
    max-width: 100%;
    color: #0f2748;
    font-size: 14px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-upload-file-name.empty {
    color: #98a2b3;
}

/* 레포트 PDF 폴더 업로드: 파일 단위 순차 처리 상태를 진행률과 실패 내역으로 보여준다. */
.report-pdf-progress {
    margin: 12px 0 16px;
    border: 1px solid #d6e4f5;
    border-radius: 8px;
    padding: 12px;
    background: #f8fbff;
}

.report-pdf-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: #0f2748;
    font-size: 13px;
    font-weight: 900;
}

.report-pdf-progress-head span {
    flex: 0 0 auto;
    color: #35618f;
}

.report-pdf-progress-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #eaf2ff;
}

.report-pdf-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
    transition: width 0.18s ease;
}

.report-pdf-result-textarea {
    min-height: 150px;
}

.report-upload-result-label {
    display: block;
    margin: 0 0 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 900;
}

.report-upload-result-textarea {
    width: 100%;
    min-height: 220px;
    max-height: 420px;
    border: 1px solid #bfd2ea;
    border-radius: 8px;
    padding: 12px;
    color: #0f2748;
    background: #f8fafc;
    font-family: Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.55;
    resize: vertical;
    overflow: auto;
    white-space: pre;
}

.detail-org {
    margin: 2px 0 16px;
    color: #475467;
    font-size: 13px;
    font-weight: 700;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.detail-grid > div {
    min-width: 0;
    border: 1px solid #e4eaf2;
    border-radius: 8px;
    padding: 12px;
    background: #f8fafc;
}

.detail-grid .detail-wide {
    grid-column: 1 / -1;
}

.detail-grid dt {
    margin-bottom: 6px;
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.detail-grid dd {
    margin: 0;
    color: #1d2939;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.detail-preline {
    white-space: pre-line;
}

.detail-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-link-row span {
    flex: 1 1 auto;
    min-width: 0;
}

.detail-link-row .icon-preview-button {
    flex: 0 0 36px;
}

.detail-history-section dd {
    display: block;
}

/* 접수 이력 목록: 상태 변경 이력이 많아도 상세 모달 안에서 작은 리스트로 접는다. */
.detail-history-list {
    display: grid;
    gap: 0;
}

.detail-history-item,
.detail-history-empty {
    border: 0;
    border-bottom: 1px solid #e5edf6;
    border-radius: 0;
    padding: 4px 0;
    background: transparent;
}

.detail-history-item {
    display: grid;
    grid-template-columns: minmax(104px, auto) minmax(0, 1fr);
    gap: 2px 8px;
    align-items: baseline;
}

.detail-history-item:last-child {
    border-bottom: 0;
}

.detail-history-status {
    color: #0f2748;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.detail-history-meta {
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
}

.detail-history-reason {
    grid-column: 1 / -1;
    margin-top: 0;
    color: #344054;
    font-size: 10px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.detail-history-empty {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    text-align: left;
}

.detail-history-more {
    justify-self: start;
    border: 0;
    border-radius: 4px;
    padding: 2px 0;
    color: #2563eb;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
}

.detail-history-more:hover {
    text-decoration: underline;
}

/* 중간 폭: 필터 줄이 2~3줄로 접힐 때 조회/다운로드 버튼을 오른쪽 끝에 유지한다. */
@media (max-width: 1180px) {
    .toolbar {
        grid-template-columns: 1fr;
    }

    .toolbar-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .receipt-filter-toolbar .toolbar-meta {
        grid-row: auto;
        align-self: start;
    }

    .receipt-filter-toolbar .filter-summary {
        height: auto;
    }

    .receipt-filter-toolbar .toolbar-fields {
        grid-column: 1 / -1;
    }

    .toolbar-actions {
        justify-content: flex-end;
    }

    .receipt-filter-toolbar .toolbar-actions {
        grid-column: span 4 / -1;
    }

    .toolbar-field-options {
        grid-column: 1 / -1;
    }
}

/* 태블릿 폭: 로그인 좌우 분할을 세로로 바꾸고 통계 카드를 3열로 줄인다. */
@media (max-width: 900px) {
    .login-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .login-brand-panel {
        min-height: 300px;
        padding: 30px;
    }

    .login-brand-copy {
        margin-top: 42px;
    }

    .login-brand-copy h1 {
        font-size: 38px;
    }

    .login-brand-footer {
        margin-top: 36px;
    }

    .receipt-stat-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .receipt-stat-card {
        padding: 5px 9px;
    }

    .receipt-stat-card strong {
        font-size: 18px;
    }
}

/* 영상 미리보기 모달: YouTube/Instagram iframe이 화면을 넘지 않도록 viewport 기준으로 제한한다. */
.video-preview-modal {
    display: flex;
    width: auto;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    flex-direction: column;
    padding: 18px;
    overflow: hidden;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.preview-header h2 {
    margin: 0;
}

/* 영상 미리보기 헤더는 안내 문구가 있어 닫기 버튼을 제목 윗선에 맞춘다. */
.video-preview-modal .preview-header {
    align-items: flex-start;
    margin-bottom: 4px;
}

.preview-heading {
    flex: 1 1 auto;
    min-width: 0;
}

.video-preview-modal .preview-header > button {
    flex: 0 0 auto;
}

.preview-help {
    max-width: 680px;
    margin: 3px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
}

.video-frame-wrap {
    align-self: center;
    width: min(960px, calc(100vw - 68px));
    height: min(540px, calc(100vh - 176px));
    max-width: calc(100vw - 68px);
    max-height: calc(100vh - 176px);
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.video-frame-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.preview-actions {
    flex-shrink: 0;
    margin-top: 14px;
}

/* 영상 미리보기 모바일 폭: 영상 영역과 하단 버튼을 2열 또는 한 줄 안에서 안정적으로 배치한다. */
@media (max-width: 640px) {
    .preview-backdrop {
        padding: 10px;
    }

    .video-preview-modal {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        padding: 12px;
    }

    .preview-header {
        gap: 8px;
        margin-bottom: 10px;
    }

    .preview-header h2 {
        font-size: 18px;
    }

    .preview-help {
        margin-top: 2px;
        font-size: 12px;
        line-height: 1.35;
    }

    .video-frame-wrap {
        width: min(720px, calc(100vw - 44px));
        height: min(405px, calc(100vh - 156px));
        max-width: calc(100vw - 44px);
        max-height: calc(100vh - 156px);
    }

    .preview-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 10px;
    }

    .preview-actions button {
        width: 100%;
    }
}

/* 좁은 목록 화면: 필터/버튼/상태 카드를 2열 중심으로 접되 목록 테이블은 읽을 수 있는 최소 폭을 유지한다. */
@media (max-width: 720px) {
    .login-page {
        padding: 14px;
    }

    .login-shell {
        border-radius: 10px;
    }

    .login-brand-panel {
        min-height: 260px;
        padding: 24px;
    }

    .login-logo-mark {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 16px;
    }

    .login-logo strong {
        font-size: 18px;
    }

    .login-brand-copy {
        margin-top: 34px;
    }

    .login-brand-copy h1 {
        font-size: 34px;
    }

    .login-brand-copy p {
        font-size: 15px;
    }

    .login-brand-footer {
        display: grid;
        gap: 4px;
        margin-top: 30px;
    }

    .login-card {
        padding: 28px 22px 30px;
    }

    .login-target-options {
        grid-template-columns: 1fr;
    }

    .list-header,
    .action-bar {
        display: grid;
    }

    .list-header {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        gap: 8px 10px;
    }

    .action-bar {
        grid-template-columns: 1fr;
    }

    .receipt-logo {
        font-size: 15px;
    }

    .receipt-logo::before {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 11px;
    }

    .login-context {
        margin-top: 8px;
    }

    .list-header-actions .login-context {
        margin-top: 0;
    }

    .bm-badge,
    .account-chip {
        min-height: 26px;
        padding: 0 8px;
        font-size: 11px;
    }

    .toolbar {
        grid-template-columns: 1fr;
    }

    .toolbar-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .toolbar-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-year-filter {
        grid-column: auto;
    }

    .school-year-controls {
        grid-template-columns: minmax(0, 1fr) 50px;
    }

    .toolbar-actions,
    .toolbar button[type="submit"] {
        width: 100%;
    }

    .toolbar-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
    }

    .receipt-filter-toolbar .toolbar-actions {
        grid-column: 1 / -1;
    }

    .toolbar-actions button {
        width: 100%;
        min-width: 0;
    }

    .receipt-list-page {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .receipt-shell {
        height: auto;
    }

    .receipt-list-form .table-wrap {
        max-height: 70dvh;
    }

    .receipt-stat-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
    }

    .receipt-stat-card {
        padding: 5px 9px;
    }

    .receipt-stat-card > span,
    .receipt-stat-card > em {
        font-size: 11px;
    }

    .receipt-stat-card strong {
        font-size: 18px;
    }

    .receipt-flow {
        flex-wrap: wrap;
        justify-content: flex-start;
        min-width: 0;
    }

    .flow-pill {
        min-width: 74px;
    }

    .action-buttons {
        justify-content: stretch;
    }

    .action-buttons button {
        flex: 1 1 auto;
    }

    .privacy-parent-grid {
        grid-template-columns: 1fr;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-event-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .privacy-consent-modal {
        padding: 18px;
    }

    .privacy-consent-lead {
        font-size: 14px;
    }

    .privacy-agreement-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .privacy-agreement-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .privacy-detail-toggle {
        width: 100%;
    }

}

/* 극소 폭 예외: 일반 화면은 1열, 접수 목록 화면은 최소 폭 정책 때문에 2열 필터를 유지한다. */
@media (max-width: 420px) {
    .list-header {
        grid-template-columns: 1fr;
    }

    .list-header .plain-link {
        justify-self: start;
    }

    .toolbar-fields,
    .toolbar-actions {
        grid-template-columns: 1fr;
    }

    .school-year-filter {
        grid-column: 1 / -1;
    }

    .receipt-list-page .list-header {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .receipt-list-page .list-header .plain-link {
        justify-self: end;
    }

    .receipt-list-page .list-header-actions {
        justify-content: flex-start;
    }

    .receipt-list-page .header-action-divider {
        display: none;
    }

    .receipt-list-page .toolbar-fields,
    .receipt-list-page .toolbar-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .receipt-list-page .school-year-filter {
        grid-column: auto;
    }
}

/* 관리자/교사 테이블 중간 폭: 컬럼이 많은 표는 nth-child 폭을 다시 잡아 링크/버튼 칸이 찌그러지지 않게 한다. */
@media (max-width: 1320px) {
    .receipt-table {
        min-width: 1040px;
    }

    .receipt-table th,
    .receipt-table td {
        padding: 9px 6px;
        font-size: 12px;
    }

    .receipt-table th:nth-child(1),
    .receipt-table td:nth-child(1) {
        width: 40px;
    }

    .receipt-table th:nth-child(2),
    .receipt-table td:nth-child(2) {
        width: 42px;
    }

    .receipt-table th:nth-child(3),
    .receipt-table td:nth-child(3) {
        width: 106px;
    }

    .receipt-table th:nth-child(4),
    .receipt-table td:nth-child(4) {
        width: 44px;
    }

    .receipt-table th:nth-child(5),
    .receipt-table td:nth-child(5) {
        width: 74px;
    }

    .receipt-table th:nth-child(6),
    .receipt-table td:nth-child(6) {
        width: 68px;
    }

    .receipt-table th:nth-child(7),
    .receipt-table td:nth-child(7) {
        width: 136px;
    }

    .receipt-table th:nth-child(8),
    .receipt-table td:nth-child(8) {
        width: 118px;
    }

    .receipt-table th:nth-child(9),
    .receipt-table td:nth-child(9) {
        width: 190px;
    }

    .receipt-table th:nth-child(10),
    .receipt-table td:nth-child(10) {
        width: 72px;
        text-align: center;
    }

    .receipt-table th:nth-child(11),
    .receipt-table td:nth-child(11) {
        width: 56px;
        text-align: center;
    }

    .receipt-table th:nth-child(12),
    .receipt-table td:nth-child(12),
    .receipt-table th:nth-child(14),
    .receipt-table td:nth-child(14) {
        width: 56px;
        text-align: center;
    }

    .receipt-table th:nth-child(13),
    .receipt-table td:nth-child(13) {
        width: 54px;
        text-align: center;
    }

    /* 관리자 테이블은 컬럼 수가 더 많아서 일반 목록용 nth-child 축소 규칙을 그대로 쓰면 영상 링크 칸이 50px대로 접힌다. */
    .admin-receipt-table {
        min-width: 1280px;
    }

    .admin-receipt-table th:nth-child(3),
    .admin-receipt-table td:nth-child(3) {
        width: 112px;
    }

    .admin-receipt-table th:nth-child(4),
    .admin-receipt-table td:nth-child(4) {
        width: 78px;
    }

    .admin-receipt-table th:nth-child(5),
    .admin-receipt-table td:nth-child(5) {
        width: 42px;
    }

    .admin-receipt-table th:nth-child(6),
    .admin-receipt-table td:nth-child(6) {
        width: 70px;
    }

    .admin-receipt-table th:nth-child(7),
    .admin-receipt-table td:nth-child(7) {
        width: 64px;
    }

    .admin-receipt-table th:nth-child(8),
    .admin-receipt-table td:nth-child(8) {
        width: 124px;
    }

    .admin-receipt-table th:nth-child(9),
    .admin-receipt-table td:nth-child(9) {
        width: 132px;
    }

    .admin-receipt-table th:nth-child(10),
    .admin-receipt-table td:nth-child(10) {
        width: 210px;
    }

    .admin-receipt-table th:nth-child(11),
    .admin-receipt-table td:nth-child(11) {
        width: 74px;
        text-align: center;
    }

    .admin-receipt-table th:nth-child(12),
    .admin-receipt-table td:nth-child(12) {
        width: 54px;
        text-align: center;
    }

    .admin-receipt-table th:nth-child(13),
    .admin-receipt-table td:nth-child(13),
    .admin-receipt-table th:nth-child(14),
    .admin-receipt-table td:nth-child(14),
    .admin-receipt-table th:nth-child(16),
    .admin-receipt-table td:nth-child(16) {
        width: 54px;
        text-align: center;
    }

    .admin-receipt-table th:nth-child(15),
    .admin-receipt-table td:nth-child(15) {
        width: 58px;
        text-align: center;
    }

    .teacher-receipt-table {
        min-width: 1040px;
    }

    .teacher-receipt-table th:nth-child(3),
    .teacher-receipt-table td:nth-child(3) {
        width: 112px;
    }

    .teacher-receipt-table th:nth-child(4),
    .teacher-receipt-table td:nth-child(4) {
        width: 44px;
    }

    .teacher-receipt-table th:nth-child(5),
    .teacher-receipt-table td:nth-child(5) {
        width: 74px;
    }

    .teacher-receipt-table th:nth-child(6),
    .teacher-receipt-table td:nth-child(6) {
        width: 142px;
    }

    .teacher-receipt-table th:nth-child(7),
    .teacher-receipt-table td:nth-child(7) {
        width: 126px;
    }

    .teacher-receipt-table th:nth-child(8),
    .teacher-receipt-table td:nth-child(8) {
        width: 206px;
    }

    .teacher-receipt-table th:nth-child(9),
    .teacher-receipt-table td:nth-child(9) {
        width: 72px;
        text-align: center;
    }

    .teacher-receipt-table th:nth-child(10),
    .teacher-receipt-table td:nth-child(10) {
        width: 56px;
        text-align: center;
    }

    .teacher-receipt-table th:nth-child(11),
    .teacher-receipt-table td:nth-child(11),
    .teacher-receipt-table th:nth-child(13),
    .teacher-receipt-table td:nth-child(13) {
        width: 56px;
        text-align: center;
    }

    .teacher-receipt-table th:nth-child(12),
    .teacher-receipt-table td:nth-child(12) {
        width: 54px;
        text-align: center;
    }

    .editable-input {
        height: 34px;
        padding: 0 8px;
    }

    .status-pill {
        padding: 0 8px;
    }
}
