/* 가로 스크롤 영역 스크롤바 숨김 (블로그 필터 등) */
.scrollbar-none {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scrollbar-none::-webkit-scrollbar {
    display: none;
}

#popParent {
    display: none;
}
.pop-parent {
    z-index: 9999;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    padding-bottom: 40px;
    background-color: rgba(0, 0, 0, 0.35);
}
.pop-parent .pop {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
}
.pop-parent .m-ratioBox-wrap {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
}
.pop-parent .m-ratioBox-wrap .m-ratioBox {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--sub_color01);
}
.pop-parent .m-ratioBox-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    z-index: 1;
}
.pop-parent .m-ratioBox-wrap iframe {
    width: 105%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    z-index: 1;
}
.pop-parent .pop .btn-toggle {
    width: 40px;
    height: 40px;
    position: relative;
    background-color: black;
    cursor: pointer;
}
.pop-parent .pop .btn-toggle img {
    width: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    transition: all 0.3s;
}
.pop-parent .pop-btns {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    background-color: #3c3c3c;
}
.pop-parent .pop-btns a {
    color: #fff;
    padding: 7px 14px;
}
.pop-parent .pop-btns #oneday_check {
    position: absolute;
    clip: rect(0, 0, 0, 0);
}
.pop-parent .pop-btns #oneday_check + label {
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
}
.pop-parent .pop-btns #oneday_check + label:before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 10px;
    border: 1px solid #fff;
}
.pop-parent .pop .swiper-btn-control {
    width: 8px;
    height: 11px;
    margin-left: 16px;
    position: relative;
    top: 2px;
}
.pop-parent .popupSwiper {
    background-color: #fff;
}
.pop-parent .swiper-pagination {
    pointer-events: none;
    top: 21px;
    left: auto;
    right: 20px;
    width: fit-content;
}
.pop-parent .swiper-pagination-bullet {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    border-radius: 0;
    border: 1px solid white;
    opacity: 0.5;
    background-color: transparent;
}
.pop-parent .swiper-pagination-bullet-active {
    background-color: #fff;
    opacity: 1;
}
.pop-parent .active {
    right: -400px;
}
.pop-parent .active .btn-toggle {
    transform: rotate(180deg);
}
.pop-parent .pop .btn-close {
    width: 40px;
    height: 40px;
    background-color: black;
}
.pop-parent .pop .btn-close > i {
    color: #fff;
}

/* 지회일정: 미니 달력 (Figma 스타일) */
/* 월 라벨 20px: common.css @layer 등과 Tailwind utilities 순서 이슈로 text-[20px]가 먹지 않을 때 보강 (일정 전용 페이지는 data-mode="table" + 별도 타이포) */
.branch-calendar:not([data-mode="table"]) #branchCalMonthLabel {
    font-size: 20px;
    line-height: 1.2;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.branch-cal-grid .branch-cal-day {
    margin: 0 auto;
    display: flex;
    height: 40px;
    width: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #1c1b1f;
    cursor: pointer;
    line-height: 24px;
}
.branch-cal-grid .branch-cal-day .branch-cal-day__num {
    display: block;
    font-size: 16px;
}
.branch-cal-grid .branch-cal-day .branch-cal-day__dots {
    display: none;
}
.branch-cal-grid .branch-cal-day:not(.branch-cal-day--table) {
    position: relative;
}
.branch-cal-grid .branch-cal-day:not(.branch-cal-day--table).branch-cal-day--has-event:not(.branch-cal-day--selected) .branch-cal-day__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    line-height: 1;
}
.branch-cal-grid .branch-cal-day:not(.branch-cal-day--table) .branch-cal-day__more {
    margin-left: 2px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    color: #3f7fff;
}
.branch-cal-grid .branch-cal-day:not(.branch-cal-day--table).branch-cal-day--selected .branch-cal-day__dots {
    display: none !important;
}
.branch-cal-grid .branch-cal-day .branch-cal-day__dot {
    display: inline-block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    line-height: 0;
    font-size: 0;
    background: #3F7FFF;
}
.branch-cal-grid .branch-cal-day:not(.branch-cal-day--table) .branch-cal-day__dot {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
}
.branch-cal-grid .branch-cal-day:hover:not(.branch-cal-day--muted) {
    background: rgba(63, 127, 255, 0.12);
}
.branch-cal-grid .branch-cal-day--muted {
    color: rgba(28, 27, 31, 0.4);
}
.branch-cal-grid .branch-cal-day--selected {
    background: #3f7fff;
    color: #fff;
    font-weight: 500;
}
.branch-cal-grid .branch-cal-day:focus-visible {
    outline: 2px solid #3f7fff;
    outline-offset: 2px;
}
.branch-cal-grid .branch-cal-day--table {
    margin: 0;
    width: 100%;
    height: 80px;
    border-radius: 0;
    border: 1px solid #f2f4fb;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
}
.branch-cal-grid .branch-cal-day--table .branch-cal-day__dots {
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.branch-cal-grid .branch-cal-day--table .branch-cal-day__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    color: #3f7fff;
}
/* 선택된 날짜 */
.branch-cal-grid .branch-cal-day--table.branch-cal-day--selected {
    border-color: #3F7FFF;
    background: #fff;
    color: black;
}
.branch-cal-grid .branch-cal-day--table.branch-cal-day--selected .branch-cal-day__dot {
   background: #3F7FFF !important;
}
.branch-cal-grid .branch-cal-day--table.branch-cal-day--muted {
    color: rgba(28, 27, 31, 0.18);
}
.branch-cal-grid .branch-cal-day--table.branch-cal-day--sun {
    color: #ff5e5e;
}
.branch-cal-grid .branch-cal-day--table.branch-cal-day--sat {
    color: #5673ff;
}
.branch-cal-grid .branch-cal-day--table.branch-cal-day--muted.branch-cal-day--sun {
    color: rgba(255, 94, 94, 0.35);
}
.branch-cal-grid .branch-cal-day--table.branch-cal-day--muted.branch-cal-day--sat {
    color: rgba(86, 115, 255, 0.35);
}
.branch-cal-grid .branch-cal-day--table:hover:not(.branch-cal-day--muted) {
    background: #f9fbff;
}
.schedule-calendar-page .branch-cal-grid {
    border-radius: 16px;
}
.schedule-calendar-page .branch-cal-grid .branch-cal-day--table:nth-child(1) {
    border-top-left-radius: 16px;
}
.schedule-calendar-page .branch-cal-grid .branch-cal-day--table:nth-child(7) {
    border-top-right-radius: 16px;
}
.schedule-calendar-page .branch-cal-grid .branch-cal-day--table:nth-last-child(7) {
    border-bottom-left-radius: 16px;
}
.schedule-calendar-page .branch-cal-grid .branch-cal-day--table:nth-last-child(1) {
    border-bottom-right-radius: 16px;
}
@media (max-width: 1023px) {
    .branch-cal-grid .branch-cal-day .branch-cal-day__num {
        font-size: 14px;
    }
    .branch-cal-grid .branch-cal-day .branch-cal-day__dot {
        width: 6px;
        height: 6px;
    }
    .branch-cal-grid .branch-cal-day:not(.branch-cal-day--table) .branch-cal-day__dot {
        width: 4px;
        height: 4px;
    }
    .branch-cal-grid .branch-cal-day--table .branch-cal-day__dots {
        margin-top: 3px;
        gap: 3px;
    }
    .branch-cal-grid .branch-cal-day--table .branch-cal-day__more,
    .branch-cal-grid .branch-cal-day:not(.branch-cal-day--table) .branch-cal-day__more {
        font-size: 9px;
    }
    .schedule-calendar-page .branch-cal-grid .branch-cal-day--table {
        box-sizing: border-box;
        height: auto;
        aspect-ratio: 1 / 1;
        padding: 5px;
    }
    .schedule-calendar-page
        .branch-cal-grid
        .branch-cal-day--table.branch-cal-day--selected {
        border-width: 1px;
    }
}
.branch-schedule-event {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
}
.branch-schedule-event .branch-schedule-event__meta {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    padding: 0;
    font-size: 14px;
    line-height: 1.3;
    color: rgba(28, 27, 31, 0.6);
    grid-column: 1;
}
.branch-schedule-event .branch-schedule-event__title {
    grid-column: 2;
    display: block;
    min-width: 0;
    max-width: 100%;
    text-align: right;
    font-size: 16px;
    font-weight: 500;
    color: #1c1b1f;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: keep-all;
    line-height: 1.35;
}

/* 알림 카드 - 이미지 없음 상태 */
.post-thumb-empty {
    position: relative;
    width: 100%;
    aspect-ratio: 300 / 179;
    overflow: hidden;
    background: #f5f5f5;
}

.post-thumb-empty .post-thumb-empty__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 157px;
    height: 24px;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

/* common.css 전역 checkbox 숨김 예외 — 로그인 “상태 유지” */
.login-keep-label {
    display: grid;
    grid-template-columns: 20px minmax(0, auto);
    align-items: center;
    column-gap: 8px;
    cursor: pointer;
    font-size: inherit;
    line-height: 1;
}
.login-keep-check-wrap {
    display: flex;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}
.login-keep-text {
    display: flex;
    align-items: center;
    min-height: 20px;
    line-height: 20px;
}
.login-keep-check {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 4px;
    flex-shrink: 0;
    margin: 0 !important;
    padding: 0;
    line-height: 0;
    cursor: pointer;
}

/* 자료실 리스트: PC 한 줄 정렬 */
@media (min-width: 768px) {
    .archive-list > .archive-item > div:first-child {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .archive-list > .archive-item > div:first-child > p {
        min-width: 0;
        flex: 1 1 auto;
    }

    .archive-list > .archive-item > div:first-child > div {
        margin-top: 0 !important;
        flex-wrap: nowrap;
        flex-shrink: 0;
        justify-content: flex-end;
    }
}

/* 노동가 토글: 펼침 상태일 때 화살표 회전 유지 */
.labor-song-row .labor-song-chevron {
    transition: transform 0.2s ease;
}

.labor-song-row.is-expanded .labor-song-chevron {
    transform: rotate(180deg);
}

/* 노동가 재생 시간 영역: 숫자 변경에도 폭 고정 */
.labor-song-current,
.labor-song-duration {
    display: inline-block;
    min-width: 27px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.labor-song-controls {
    align-items: center;
    gap: 16px !important;
}

.labor-song-controls > div:first-child {
    width: min(100%, 312px);
    height: 32px;
    padding: 8px 16px !important;
    border-radius: 4px;
    gap: 16px !important;
}

.labor-song-controls .labor-song-seek {
    flex: 0 0 160px;
    width: 160px !important;
    max-width: 160px;
}

@media (max-width: 767px) {
    .labor-song-controls {
        gap: 8px !important;
        width: 100%;
    }

    .labor-song-controls > div:first-child {
        width: 100%;
        height: auto;
        min-height: 32px;
        flex-wrap: wrap;
        row-gap: 8px;
        column-gap: 12px !important;
    }

    .labor-song-controls .labor-song-seek {
        flex: 1 1 auto;
        width: calc(100% - 140px) !important;
        max-width: none;
    }
}

.labor-song-controls > div:first-child > div:first-child {
    gap: 8px !important;
    font-size: 14px;
    line-height: 1;
}

.labor-song-controls .labor-song-play,
.labor-song-controls .labor-song-play-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.labor-song-download {
    width: 32px !important;
    height: 32px !important;
    border-radius: 4px !important;
    background: #f2f5f9;
    color: #004098 !important;
}

.labor-song-download:hover {
    background: #e9eef5;
}

.labor-song-download-icon {
    width: 14px;
    height: 14px;
}

.labor-song-chevron-btn {
    width: 16px !important;
    height: 16px !important;
    padding: 0 !important;
}

.labor-song-chevron {
    width: 16px;
    height: 16px;
}

@media (max-width: 1023px) {
    .notice-page .notice-list {
        margin-top: 0;
        margin-bottom: 40px;
        display: flex;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .notice-page .notice-list > a {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 12px 20px;
        border: 0;
        border-radius: 0;
        background: #fff;
    }

    .notice-page .notice-list > a > div:first-child {
        width: 120px;
        height: 72px;
        flex-shrink: 0;
        overflow: hidden;
    }

    .notice-page .notice-list > a > .post-thumb-empty {
        max-width: 120px;
        border-radius: 0;
        background: transparent;
    }

    .notice-page .notice-list > a > div:last-of-type {
        min-width: 0;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0;
    }

    .notice-page .notice-list > a > div:last-of-type h2 {
        min-height: 0;
        font-size: 14px;
        color: #1c1b1f;
    }

    .notice-page .notice-list > a > div:last-of-type p {
        display: none;
    }

    .notice-page .notice-list > a > div:last-of-type > div {
        margin-top: 10px;
        padding-right: 0;
        font-size: 13px;
        color: rgba(0, 0, 0, 0.4);
    }

    .notice-page .notice-list > a > div:last-of-type > div > span:first-child {
        display: none;
    }

    .notice-page .notice-list > a:first-child {
        border: 1px solid #004284;
        background: rgba(136, 188, 255, 0.1);
        position: relative;
    }

    .notice-page .notice-list > a:first-child > div:last-of-type h2 {
        color: #1c1b1f;
    }

    .notice-page .notice-list > a:first-child > div:last-of-type > div > span:last-child {
        color: #89bcff;
    }

    .notice-page .notice-list > a:first-child > span[aria-label="고정 게시물"] {
        width: 32px;
        height: 32px;
        border-top-left-radius: 8px;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        padding: 0;
    }
}
