@charset "UTF-8";
/* =========================================================
   교재주문 사전 오픈 (supply-order-preopen.jsp)
   prefix : sp-
   - 위치 : /resources/partner/css/supply-preopen.css
   - 비로그인 본인 확인은 기존 supply-auth.css(sa-auth) 그대로 사용
   ========================================================= */
/* 넓이 : 신청내역(supply-agreement.jsp)과 같은 .supply-agree .container 안에 배치 → 메뉴 이동 시 폭 동일 */
.sp-wrap { padding-bottom: 96px; color: #1f2329; }
.sp-wrap *, .sp-wrap *::before, .sp-wrap *::after { box-sizing: border-box; }
/* 리셋은 :where 로 우선순위 0 → sa-auth 등 기존 클래스 스타일을 덮지 않음 */
:where(.sp-wrap) :where(p, h3, h4, ol, ul) { margin: 0; padding: 0; }
:where(.sp-wrap) :where(ol, ul) { list-style: none; }
:where(.sp-wrap) a { text-decoration: none; }

/* ---------- 기관 정보 바 ---------- */
.sp-inst { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: #374151; }
.sp-inst-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; background: #1f5fe0; color: #fff; font-size: 12px; font-weight: 700; }
.sp-inst .name { font-weight: 700; color: #1f2329; }
.sp-inst .code { color: #6b7280; }
.sp-inst .code strong { color: #1f5fe0; font-weight: 700; }
.sp-inst-switch { font-size: 13px; font-weight: 700; color: #6b7280; text-decoration: underline !important; text-underline-offset: 3px; }
.sp-inst-switch:hover { color: #1f2329; }

/* ---------- 상단 안내 카드 ---------- */
.sp-hero { display: flex; gap: 18px; align-items: flex-start; padding: 26px 28px; border-radius: 16px; border: 1px solid; margin-bottom: 20px; }
.sp-hero .ico { flex: none; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #fff; font-weight: 800; font-size: 18px; border: 1px solid; }
.sp-hero .ico svg { width: 22px; height: 22px; }
.sp-hero .txt { flex: 1; min-width: 0; }
.sp-hero .tit { font-size: 20px; font-weight: 800; line-height: 1.4; letter-spacing: -0.02em; }
.sp-hero .desc { margin-top: 6px; font-size: 15px; line-height: 1.6; color: #4a5059; word-break: keep-all; }
.sp-hero .desc em { font-style: normal; font-weight: 700; }
.sp-hero .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.sp-hero .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.sp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid #e3e6eb; font-size: 13px; color: #4a5059; }
.sp-chip b { color: #1f2329; }
.sp-chip.ok b { color: #12a06b; }
.sp-chip.wait b { color: #e07a12; }

.sp-hero.is-orange { background: #fff8f0; border-color: #fbe0c3; }
.sp-hero.is-orange .ico { color: #f08a24; border-color: #f7cfa2; }
.sp-hero.is-orange .desc em { color: #e0700c; }
.sp-hero.is-blue { background: #f3f7ff; border-color: #d6e3ff; }
.sp-hero.is-blue .ico { color: #1f5fe0; border-color: #bcd0fb; }
.sp-hero.is-blue .desc em { color: #1f5fe0; }
.sp-hero.is-gray { background: #f7f8fa; border-color: #e3e6eb; }
.sp-hero.is-gray .ico { color: #6b7280; border-color: #d5d9e0; }

/* ---------- 버튼 ---------- */
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 10px; font-size: 15px; font-weight: 700; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.sp-btn.blue { background: #1f5fe0; color: #fff; }
.sp-btn.blue:hover { background: #164dc0; }
.sp-btn.orange { background: #f08a24; color: #fff; }
.sp-btn.orange:hover { background: #d9761a; }
.sp-btn.line { background: #fff; border-color: #d5d9e0; color: #333; }
.sp-btn.line:hover { border-color: #9aa1ab; }
.sp-btn.soft { background: #f1f3f6; color: #333; height: 38px; font-size: 14px; padding: 0 16px; }
.sp-btn.soft:hover { background: #e6e9ee; }
.sp-btn.block { width: 100%; }
.sp-btn:disabled { opacity: .5; cursor: default; }

/* ---------- 카드 ---------- */
.sp-card { background: #fff; border: 1px solid #e6e9ee; border-radius: 16px; padding: 28px 30px; margin-bottom: 20px; }
.sp-card-hd { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid #eef0f3; }
.sp-card-hd .hd-ico { width: 30px; height: 30px; border-radius: 8px; background: #eef3ff; color: #1f5fe0; display: flex; align-items: center; justify-content: center; }
.sp-card-hd .hd-ico svg { width: 17px; height: 17px; }
.sp-card-hd h4 { font-size: 17px; font-weight: 800; }
.sp-card-hd .tag { margin-left: auto; padding: 4px 10px; border-radius: 6px; background: #fff6e6; border: 1px solid #fbd99a; color: #c96f00; font-size: 12px; font-weight: 700; }
.sp-card-ft { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 20px; font-size: 13px; color: #6b7280; }

/* ---------- 진행 단계 (우리 기관 진행 상황) ---------- */
.sp-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: sp; }
.sp-progress li { position: relative; text-align: center; padding: 0 8px; word-break: keep-all; }
.sp-progress li::before { content: ""; position: absolute; top: 17px; left: calc(-50% + 22px); right: calc(50% + 22px); height: 2px; background: #e3e6eb; }
.sp-progress li:first-child::before { display: none; }
.sp-progress .dot { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #f1f3f6; color: #9aa1ab; font-weight: 800; font-size: 15px; }
.sp-progress .lb { display: block; margin-top: 10px; font-size: 15px; font-weight: 700; color: #9aa1ab; }
.sp-progress .sb { display: block; margin-top: 3px; font-size: 13px; color: #9aa1ab; }
.sp-progress li.done .dot { background: #e6f6ee; color: #12a06b; }
.sp-progress li.done .lb { color: #1f2329; }
.sp-progress li.done::before,
.sp-progress li.on::before { background: #9fd9bf; }
.sp-progress li.on .dot { background: #1f5fe0; color: #fff; box-shadow: 0 0 0 5px #e3ecff; }
.sp-progress li.on .lb { color: #1f5fe0; }
.sp-progress li.on .sb { color: #4a5059; }

/* ---------- 출고 주기 안내 ---------- */
.sp-cycle { background: #f7f8fa; border: 1px solid #eceef2; border-radius: 14px; padding: 20px 22px; }
.sp-cycle .lead { display: flex; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 500; color: #374151; margin-bottom: 16px; word-break: keep-all; }
.sp-cycle .lead::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: #1f5fe0; transform: translateY(-3px); }
.sp-cycle .lead b { font-weight: 800; color: #1f2329; }
.sp-cycle .lead em { font-style: normal; font-weight: 800; color: #12a06b; }
.sp-cycle ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sp-cycle li { background: #fff; border: 1px solid #e3e6eb; border-radius: 12px; padding: 18px 12px; text-align: center; word-break: keep-all; }
.sp-cycle li .step { display: block; font-size: 12px; font-weight: 700; color: #9aa1ab; letter-spacing: .04em; }
.sp-cycle li strong { display: block; font-size: 16px; font-weight: 800; }
.sp-cycle li span:last-child { display: block; margin-top: 4px; font-size: 13px; color: #6b7280; }
.sp-cycle li.c2 { border: 2px solid #a9c1f5; padding: 17px 11px; }
.sp-cycle li.c2 .step, .sp-cycle li.c2 strong { color: #1f5fe0; }
.sp-cycle li.c3 { border: 2px solid #8fdcb9; padding: 17px 11px; }
.sp-cycle li.c3 .step, .sp-cycle li.c3 strong { color: #12a06b; }
.sp-cycle .note { margin-top: 12px; font-size: 12px; color: #8a9099; }
.sp-cycle .notes { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e3e6eb; }
.sp-cycle .notes li { padding: 0 0 0 1.2em; text-indent: -1.2em; border: 0; border-radius: 0; background: none; text-align: left; font-size: 12px; line-height: 1.7; color: #8a9099; }
.sp-cycle .notes li b { font-weight: 700; color: #374151; }

/* ---------- 지금 할 수 있는 일 ---------- */
.sp-todo { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sp-todo a { display: flex; align-items: center; gap: 14px; padding: 18px 18px; border: 1px solid #e6e9ee; border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.sp-todo a:hover { border-color: #1f5fe0; background: #f8faff; }
.sp-todo .t-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: #eef3ff; color: #1f5fe0; display: flex; align-items: center; justify-content: center; }
.sp-todo .t-ico svg { width: 20px; height: 20px; }
.sp-todo strong { display: block; font-size: 15px; font-weight: 700; color: #1f2329; }
.sp-todo span { display: block; margin-top: 2px; font-size: 13px; color: #6b7280; }
.sp-todo .arr { margin-left: auto; color: #9aa1ab; }

/* ---------- 반응형 ---------- */
@media (max-width: 720px) {
	.sp-wrap { padding-bottom: 72px; }
	.sp-hero { padding: 20px 18px; gap: 12px; }
	.sp-hero .ico { width: 36px; height: 36px; font-size: 15px; }
	.sp-hero .tit { font-size: 17px; }
	.sp-hero .desc { font-size: 14px; }
	.sp-hero .acts .sp-btn { flex: 1; }
	.sp-card { padding: 20px 16px; }
	.sp-card-hd { flex-wrap: wrap; }
	.sp-cycle { padding: 16px 14px; }
	.sp-cycle ol { grid-template-columns: 1fr; }
	.sp-todo { grid-template-columns: 1fr; }
	.sp-progress .lb { font-size: 13px; }
	.sp-progress .sb { font-size: 11px; }
	.sp-card-ft .sp-btn { width: 100%; }
}

/* ---------- 추가 : 페이지 타이틀 ---------- */
/* 신청내역 .sh-head 와 같은 배치 : 왼쪽 타이틀 / 오른쪽 기관 정보 */
.sp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 40px 0 24px; padding-bottom: 20px; border-bottom: 1px solid #eef0f3; }
.sp-head h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.sp-head p { margin-top: 6px; font-size: 14px; color: #6b7280; }

/* ---------- 추가 : 비로그인 본인 확인(sa-auth) 카드 안 배치 ---------- */
.sp-card .sa-auth { margin-top: 0; }
.sp-card .sa-auth-foot a { margin-left: 4px; }

@media (max-width: 720px) {
	.sp-head { gap: 12px; margin-top: 28px; padding-bottom: 16px; }
	.sp-head h3 { font-size: 19px; }
	.sp-head p { font-size: 13px; line-height: 1.55; word-break: keep-all; }
	.sp-inst { width: 100%; gap: 6px 8px; font-size: 13px; }
	.sp-inst .sp-inst-switch { margin-left: auto; }
	.sp-progress .dot { width: 30px; height: 30px; font-size: 13px; }
	.sp-progress li::before { top: 14px; left: calc(-50% + 18px); right: calc(50% + 18px); }
	.sp-card-hd .tag { margin-left: 0; }
}