@charset "utf-8";

/**
 * 전 화면 공용 UI 컴포넌트
 *
 * 스킨마다 복사돼 있던 부품을 모았습니다. layout.php 가 style.css 다음에
 * 불러오므로, 스킨 CSS 에 같은 선택자가 있으면 그쪽이 이깁니다.
 *
 *   .ptabs · .subtabs  상단 탭 · 서브 탭
 *   .pager             페이지네이션
 *   .srchbox           검색 입력
 *   .segment           세그먼트 버튼
 *   .fieldsel          검색 조건 선택
 *
 * 공용 토큰(--color-*)은 style.css 에 있습니다.
 */

/*
 * 충남아이키움포털 — 부모 교육 (ik_parent 스킨)
 * Figma: 메가파크 공유 문서 / 03-1 부모 교육 (목록 · 달력 · 소팅 · 상세)
 * 공용 토큰(--color-*)은 _layout/bootstrap/css/style.css 에 정의되어 있습니다.
 */

/* ===== 상단 탭 ===== */
.ptabs {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: var(--topbar-h);
    z-index: 20;
}

.ptabs__scroll {
    -webkit-overflow-scrolling: touch;
    align-items: center;
    display: flex;
    gap: 28px;
    height: 60px;
    overflow-x: auto;
    padding: 0 24px;
    scrollbar-width: none;
}

.ptabs__scroll::-webkit-scrollbar {
    display: none;
}

.ptabs__item {
    color: var(--color-text);
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    opacity: .3;
    white-space: nowrap;
}

.ptabs__item.is-active {
    opacity: 1;
}

.srchbox {
    align-items: center;
    background: #fff;
    border-radius: 16px;
    border: 2px solid var(--color-border);
    display: flex;
    gap: 8px;
    height: 52px;
    padding: 14px 20px;
}

.srchbox__input {
    background: transparent;
    border: 0;
    color: var(--color-text);
    flex: 1 0 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    min-width: 0;
}

.srchbox__input::placeholder {
    color: var(--color-text);
    opacity: .3;
}

.srchbox__input:focus {
    outline: none;
}

.srchbox__ico {
    flex: 0 0 auto;
    height: 16px;
    position: relative;
    width: 16px;
}

.srchbox__ico::before {
    border-radius: 50%;
    border: 2px solid var(--color-text);
    content: "";
    height: 12px;
    left: 0;
    opacity: .6;
    position: absolute;
    top: 0;
    width: 12px;
}

.srchbox__ico::after {
    background: var(--color-text);
    bottom: 0;
    content: "";
    height: 2px;
    opacity: .6;
    position: absolute;
    right: 0;
    transform-origin: right;
    transform: rotate(45deg);
    width: 6px;
}

/* ----- 페이지네이션 ----- */
.pager {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 16px 20px 24px;
}

.pager__btn {
    background: var(--color-bg);
    border-radius: 10px;
    height: 36px;
    position: relative;
    width: 36px;
}

.pager__btn::before {
    border-bottom: 2px solid #b0b0b0;
    border-left: 2px solid #b0b0b0;
    content: "";
    height: 7px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-30%, -50%) rotate(45deg);
    width: 7px;
}

.pager__btn--next::before, .pager__btn--last::before {
    transform: translate(-70%, -50%) rotate(-135deg);
}

.pager__btn--first::after, .pager__btn--last::after {
    border-bottom: 2px solid #b0b0b0;
    border-left: 2px solid #b0b0b0;
    content: "";
    height: 7px;
    left: 50%;
    position: absolute;
    top: 50%;
    width: 7px;
}

.pager__btn--first::after {
    transform: translate(10%, -50%) rotate(45deg);
}

.pager__btn--last::after {
    transform: translate(-150%, -50%) rotate(-135deg);
}

.pager__page {
    color: var(--color-text);
    font-size: 16px;
    font-weight: 700;
    min-width: 24px;
    opacity: .3;
    text-align: center;
}

.pager__page.is-active {
    color: var(--color-primary);
    opacity: 1;
}

.fieldsel {
    flex: 0 0 auto;
    position: relative;
    width: 108px;
}

.fieldsel__toggle {
    align-items: center;
    background: #fff;
    border-radius: 16px;
    border: 2px solid var(--color-border);
    color: var(--color-text);
    display: flex;
    font-size: 16px;
    font-weight: 600;
    gap: 8px;
    height: 52px;
    justify-content: space-between;
    line-height: 20px;
    padding: 14px 20px;
    width: 100%;
}

.fieldsel__caret {
    border-bottom: 2px solid #9a9a9a;
    border-right: 2px solid #9a9a9a;
    flex: 0 0 auto;
    height: 8px;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .15s;
    width: 8px;
}

.fieldsel.is-open .fieldsel__caret {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.fieldsel__menu {
    background: #fff;
    border-radius: 16px;
    border: 2px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
    display: none;
    left: 0;
    list-style: none;
    margin: 0;
    padding: 8px 20px;
    position: absolute;
    top: calc(100% + 8px);
    width: 100%;
    z-index: 40;
}

.fieldsel.is-open .fieldsel__menu {
    display: block;
}

.fieldsel__option {
    color: var(--color-text);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 40px;
    opacity: .3;
}

.fieldsel__option.is-selected {
    opacity: 1;
}

.srchbox--flex {
    flex: 1 0 0;
    min-width: 0;
}

/* 서브 탭 (회색 바) */
.subtabs {
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    position: sticky;
    top: calc(var(--topbar-h) + 60px);
    z-index: 19;
}

.subtabs__scroll {
    -webkit-overflow-scrolling: touch;
    align-items: center;
    display: flex;
    gap: 28px;
    height: 60px;
    overflow-x: auto;
    padding: 0 24px;
    scrollbar-width: none;
}

.subtabs__scroll::-webkit-scrollbar {
    display: none;
}

.subtabs__item {
    color: var(--color-text);
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    opacity: .3;
    white-space: nowrap;
}

.subtabs__item.is-active {
    opacity: 1;
}

/* 대면 / 비대면 세그먼트 */
.segment {
    background: #f0f0f0;
    border-radius: 16px;
    display: flex;
    gap: 4px;
    padding: 4px;
}

.segment__btn.is-active {
    background: #fff;
    box-shadow: 0 0 6px rgba(0, 0, 0, .08);
    opacity: 1;
}

/* 동의 / 미동의 라디오 */
.radio-row {
    display: flex;
    gap: 24px;
    justify-content: flex-end;
}

.radio {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    gap: 6px;
}

.radio__dot {
    border-radius: 50%;
    border: 2px solid var(--color-border-strong);
    flex: 0 0 auto;
    height: 16px;
    width: 16px;
}

.radio.is-checked .radio__dot {
    background: radial-gradient(circle, var(--color-primary) 0 4px, #fff 5px);
    border-color: var(--color-primary);
}

.radio__label {
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    opacity: .8;
}

.subtabs__item.is-active::after {
    background: var(--color-primary);
    border-radius: 3px 3px 0 0;
    bottom: 0;
    content: "";
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
}
