@charset "UTF-8";
/*
 * 우리 기관 신청내역 (B안 : 진행 현황 대시보드) - /ds-program/supply-agreement
 *  - 위치 : /resources/partner/css/supply-history.css
 *  - 상단 타이틀 / 안내 / 진행 절차 / 공급 기준은 program-supply.css (.supply-agree .sa-*) 그대로 사용
 *  - 본인 확인 탭은 supply-auth.css (.sa-auth*)
 */
.sh-box { --sh-blue:#0b57d0; --sh-blue-d:#0947ad; --sh-blue-bg:#eef4ff; --sh-ink:#111827; --sh-ink2:#374151; --sh-mute:#6b7280; --sh-mute2:#9ca3af;
	--sh-line:#e5e7eb; --sh-line2:#eef0f3; --sh-ok:#0f8a5f; --sh-ok-bg:#e7f6ef; --sh-wait:#b26b00; --sh-wait-bg:#fff4e0; --sh-red:#d93a3a; --sh-red-bg:#fdecec;
	margin-top: 40px; padding: 32px 36px; border: 1px solid var(--sh-line); border-radius: 20px; background: #fff; color: var(--sh-ink); }
.sh-box * { box-sizing: border-box; }
.sh-box a { text-decoration: none; }

/* 머리 */
.sh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--sh-line2); }
.sh-head h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sh-head p { margin: 6px 0 0; font-size: 14px; color: var(--sh-mute); }
.sh-inst { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--sh-ink2); }
.sh-inst b { color: var(--sh-blue); }
.sh-inst .nm { font-weight: 700; color: var(--sh-ink); }
.sh-inst-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; background: var(--sh-blue); color: #fff; font-size: 12px; font-weight: 700; }

/* 버튼 / 라벨 */
.sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--sh-line); border-radius: 10px; background: #fff;
	font-size: 14px; font-weight: 700; color: var(--sh-ink2); white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s; }
.sh-btn:hover { border-color: #c7cbd1; color: var(--sh-ink); }
.sh-btn.pri { background: var(--sh-blue); border-color: var(--sh-blue); color: #fff; }
.sh-btn.pri:hover { background: var(--sh-blue-d); color: #fff; }
.sh-btn.white { height: 48px; padding: 0 22px; border-color: #fff; background: #fff; color: var(--sh-blue); font-size: 15px; }
.sh-btn.lg { height: 54px; padding: 0 36px; border-radius: 12px; font-size: 16px; }
.sh-btn.sm { height: 34px; padding: 0 12px; border-radius: 8px; font-size: 13px; }
.sh-pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.sh-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sh-pill.p-ok { background: var(--sh-ok-bg); color: var(--sh-ok); }
.sh-pill.p-wait { background: var(--sh-wait-bg); color: var(--sh-wait); }
.sh-pill.p-draft { background: #f1f3f5; color: var(--sh-mute); }
.sh-pill.p-blue { background: var(--sh-blue-bg); color: var(--sh-blue); }
.sh-pill.p-red { background: var(--sh-red-bg); color: var(--sh-red); }
.sh-pill.p-line { background: #fff; border: 1px solid var(--sh-line); color: var(--sh-mute); }
.sh-pill.p-line::before { display: none; }

/* ① ② ③ 진행 현황 */
.sh-flow { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0 0; padding: 0; list-style: none; border: 1px solid var(--sh-line); border-radius: 16px; overflow: hidden; }
.sh-flow li { padding: 18px 22px; background: #fff; }
.sh-flow li + li { border-left: 1px solid var(--sh-line); }
.sh-flow li.on { background: #f7faff; }
.sh-flow .k { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--sh-mute); }
.sh-flow .k i { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sh-line2); font-style: normal; font-size: 12px; color: var(--sh-mute); }
.sh-flow .on .k i { background: var(--sh-blue); color: #fff; }
.sh-flow .done .k i { background: var(--sh-ok); color: #fff; }
.sh-flow .val { margin-top: 8px; font-size: 15px; color: var(--sh-ink2); }
.sh-flow .val b { margin-right: 2px; font-size: 22px; font-weight: 800; color: var(--sh-ink); }
.sh-flow .val span { margin-left: 8px; font-size: 13px; color: var(--sh-mute); }
.sh-flow .val span.ml0 { margin-left: 0; font-size: 14px; }

/* 지금 할 일 */
.sh-todo { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 18px; padding: 20px 24px; border-radius: 16px; background: var(--sh-blue); color: #fff; }
.sh-todo .t { flex: 1; min-width: 220px; }
.sh-todo .t small { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; opacity: .8; }
.sh-todo .t strong { display: block; font-size: 19px; font-weight: 800; line-height: 1.4; word-break: keep-all; }
.sh-todo .t span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.6; opacity: .85; word-break: keep-all; }
.sh-todo .dday { padding: 6px 12px; border-radius: 20px; background: rgba(255, 255, 255, .18); font-size: 13px; font-weight: 800; white-space: nowrap; }
.sh-todo.is-mute { background: #f4f6f9; color: var(--sh-ink); }
.sh-todo.is-mute .t span { color: var(--sh-mute); opacity: 1; }
.sh-todo.is-mute .dday { border: 1px solid var(--sh-line); background: #fff; color: var(--sh-mute); }
.sh-todo.is-wait { border: 1px solid #f5d9a8; background: #fff8eb; color: var(--sh-ink); }
.sh-todo.is-wait .t small { color: var(--sh-wait); opacity: 1; }
.sh-todo.is-wait .t span { color: var(--sh-mute); opacity: 1; }

/* 2단 */
.sh-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; margin-top: 8px; }
.sh-grid > * { min-width: 0; }
.sh-col-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 12px; }
.sh-col-head h4 { margin: 0; font-size: 17px; font-weight: 800; }
.sh-col-head h4 small { margin-left: 4px; font-size: 14px; color: var(--sh-blue); }
.sh-col-head a { font-size: 13px; font-weight: 700; color: var(--sh-blue); }
.sh-year { height: 34px; padding: 0 10px; border: 1px solid var(--sh-line); border-radius: 8px; font-size: 13px; }
.sh-blank { padding: 36px 16px; border: 1px dashed var(--sh-line); border-radius: 14px; text-align: center; font-size: 14px; color: var(--sh-mute); }
.sh-blank p { margin: 0 0 12px; }
.sh-blank p:last-child { margin: 0; }

/* 공급신청서 카드 */
.sh-pcards { margin: 0; padding: 0; list-style: none; }
.sh-pcard { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--sh-line); border-radius: 14px; background: #fff; }
.sh-pcard + .sh-pcard { margin-top: 10px; }
.sh-pcard .ic { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sh-blue-bg); color: var(--sh-blue); font-size: 14px; font-weight: 800; }
.sh-pcard .tx { flex: 1; min-width: 0; }
.sh-pcard .tx b { display: block; overflow: hidden; font-size: 15px; font-weight: 800; white-space: nowrap; text-overflow: ellipsis; }
.sh-pcard .tx span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--sh-mute); }
.sh-pcard .tx .dt { color: var(--sh-mute2); }
.sh-pcard .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.sh-pcard .rt .acts { display: flex; gap: 4px; }
.sh-pcard.is-ok .ic { background: var(--sh-ok-bg); color: var(--sh-ok); }
.sh-pcard.is-wait { border-color: #f6e2bd; background: #fffcf6; }
.sh-pcard.is-wait .ic { background: var(--sh-wait-bg); color: var(--sh-wait); }
.sh-pcard.is-draft .ic { background: #f1f3f5; color: var(--sh-mute); }
.sh-col-note { margin: 10px 0 0; font-size: 12.5px; color: var(--sh-mute); }

/* 호 카드 */
.sh-ho-wrap { position: relative; }
.sh-ho-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.sh-ho { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 92px; padding: 12px 10px 10px; border: 1px solid var(--sh-line); border-radius: 12px;
	background: #fff; font: inherit; text-align: left; color: var(--sh-ink); cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.sh-ho:hover { border-color: #c7cbd1; }
.sh-ho .no { font-size: 15px; font-weight: 800; }
.sh-ho .mo { font-size: 12px; color: var(--sh-mute); }
.sh-ho .st { white-space: nowrap; margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 800; color: var(--sh-mute); }
.sh-ho .badge { position: absolute; top: 8px; right: 8px; padding: 2px 6px; border-radius: 6px; background: var(--sh-blue); color: #fff; font-size: 10.5px; font-weight: 800; }
.sh-ho.done { border-color: #cdebdc; background: #f3fbf7; }
.sh-ho.done .st { color: var(--sh-ok); }
.sh-ho.open { border-color: var(--sh-blue); background: #f5f9ff; }
.sh-ho.open .st { color: var(--sh-blue); }
.sh-ho.temp { border-color: #f5d9a8; background: #fffaf0; }
.sh-ho.temp .st { color: var(--sh-wait); }
.sh-ho.miss .st { color: var(--sh-red); }
.sh-ho.none { background: #fafafa; color: var(--sh-mute2); }
.sh-ho.none .no, .sh-ho.none .st { color: var(--sh-mute2); font-weight: 600; }
.sh-ho.open-off .st { color: var(--sh-blue); }
.sh-ho.is-sel { box-shadow: 0 0 0 2px var(--sh-blue); border-color: var(--sh-blue); }
.sh-ho:focus-visible { outline: 2px solid var(--sh-blue); outline-offset: 2px; }
/* 계약 체결 전 : 일정만 흐리게 + 안내 */
.sh-ho-wrap.is-lock .sh-ho-grid { opacity: .55; pointer-events: none; }
.sh-ho-wrap.is-lock .sh-ho { cursor: default; }
.sh-lock { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: #f4f6f9; }
.sh-lock svg { flex: none; width: 22px; height: 22px; color: var(--sh-mute); }
.sh-lock p { margin: 0; }
.sh-lock strong { display: block; font-size: 14px; font-weight: 800; }
.sh-lock span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--sh-mute); }

.sh-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--sh-mute); }
.sh-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.sh-legend .l-done { background: #cdebdc; } .sh-legend .l-open { background: var(--sh-blue); } .sh-legend .l-temp { background: #f5d9a8; }
.sh-legend .l-wait { border: 1px solid var(--sh-line); background: #fff; } .sh-legend .l-none { background: #eceef1; } .sh-legend .l-miss { background: var(--sh-red-bg); }

/* 선택한 호 상세 */
.sh-detail { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--sh-line2); border-radius: 14px; background: #f8fafc; }
.sh-detail[hidden] { display: none; }
.sh-detail .hd { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.sh-detail .hd b { font-size: 15px; }
.sh-detail dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 0; }
.sh-detail dl .w2 { grid-column: span 2; }
.sh-detail dt { font-size: 12px; font-weight: 700; color: var(--sh-mute); }
.sh-detail dd { margin: 2px 0 0; font-size: 16px; font-weight: 800; }
.sh-detail dd.sm { font-size: 14px; font-weight: 700; word-break: keep-all; }
.sh-detail .pg { margin: 10px 0 0; font-size: 13px; color: var(--sh-ink2); }
.sh-detail .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.sh-detail .acts:empty { display: none; }
.sh-mute { font-size: 13px; color: var(--sh-mute); }
.sh-sum { display: flex; justify-content: flex-end; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--sh-mute); }
.sh-sum b { color: var(--sh-ink); }

.sh-note { margin: 20px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--sh-mute); }
.sh-note li + li { margin-top: 2px; }
.sh-empty { padding: 48px 16px; text-align: center; }
.sh-empty .tit { margin: 0; font-size: 18px; font-weight: 800; }
.sh-empty .desc { margin: 8px 0 18px; font-size: 14px; color: var(--sh-mute); }

/* 모바일 */
@media screen and (max-width: 768px) {
	.sh-box { margin-top: 28px; padding: 22px 16px; border-radius: 16px; }
	.sh-head h3 { font-size: 19px; }
	.sh-flow { grid-template-columns: 1fr; }
	.sh-flow li { padding: 14px 16px; }
	.sh-flow li + li { border-left: 0; border-top: 1px solid var(--sh-line); }
	.sh-flow .val { margin-top: 4px; }
	.sh-todo { padding: 16px; }
	.sh-todo .sh-btn { width: 100%; }
	.sh-grid { grid-template-columns: 1fr; gap: 0; }
	.sh-pcard { flex-wrap: wrap; }
	.sh-pcard .rt { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; padding-top: 10px; border-top: 1px solid var(--sh-line2); }
	.sh-ho-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
	.sh-ho { min-height: 80px; padding: 10px 8px 8px; }
	.sh-ho .badge { top: 6px; right: 6px; }
	.sh-ho .st { font-size: 11.5px; letter-spacing: -.02em; }
	.sh-detail dl { grid-template-columns: repeat(2, 1fr); }
	.sh-detail .acts .sh-btn { flex: 1; }
	.sh-sum { justify-content: space-between; }
}

/* ===== 상단 타이틀 (이 화면 전용 : 기존 sa-hero 보다 간결하게) ===== */
.supply-agree .sa-hero.sh-hero { padding-bottom: 0; }
.supply-agree .sa-hero.sh-hero .sa-desc { margin-bottom: 0; }

/* 기관 정보 */
.sh-inst .cd { color: var(--sh-mute); }
.sh-out { font-size: 13px; font-weight: 700; color: var(--sh-mute); text-decoration: underline !important; text-underline-offset: 3px; }
.sh-out:hover { color: var(--sh-ink); }

/* ===== 공급신청 내역 없음 : 시작 안내 ===== */
.sh-start { display: flex; flex-direction: column; align-items: center; margin-top: 20px; padding: 32px 24px 28px; border-radius: 16px; background: linear-gradient(180deg, #f5f8ff 0%, #fff 100%); text-align: center; }
.sh-start .tit { margin-top: 0; font-size: 21px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; word-break: keep-all; }
.sh-start .desc { margin: 8px 0 0; font-size: 15px; line-height: 1.65; color: var(--sh-mute); word-break: keep-all; }
.sh-start-steps { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px 0 22px; padding: 0; list-style: none; }
.sh-start-steps li { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--sh-line); border-radius: 12px; background: #fff; font-size: 14px; font-weight: 700; color: var(--sh-ink2); }
.sh-start-steps li + li::before { content: ""; position: absolute; left: -8px; top: 50%; width: 8px; height: 1px; background: #c9d2e3; }
.sh-start-steps b { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--sh-line2); font-size: 12px; color: var(--sh-mute); }
.sh-start-steps li.on { border-color: var(--sh-blue); color: var(--sh-blue); }
.sh-start-steps li.on b { background: var(--sh-blue); color: #fff; }
.sh-start .sh-btn.lg { min-width: 280px; }
.sh-start-sub { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--sh-mute); }
.sh-start-sub:hover { color: var(--sh-blue); }

/* ===== 공급 및 출고 안내 기준 : 접이식 ===== */
.supply-agree details.sh-rule > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 20px; font-weight: 800; color: #111827; }
.supply-agree details.sh-rule > summary::-webkit-details-marker { display: none; }
.supply-agree details.sh-rule > summary svg { flex: none; width: 22px; height: 22px; color: #0b57d0; }
.supply-agree details.sh-rule .sh-rule-tg { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid #9ca3af; border-bottom: 2px solid #9ca3af; transform: rotate(45deg); transition: transform .2s; }
.supply-agree details.sh-rule[open] .sh-rule-tg { transform: rotate(-135deg); }
.supply-agree details.sh-rule > summary:focus-visible { outline: 2px solid #0b57d0; outline-offset: 4px; border-radius: 6px; }

@media screen and (max-width: 768px) {
	/* 타이틀 */
	.supply-agree .sa-hero.sh-hero h2 { font-size: 24px; line-height: 1.35; }
	.supply-agree .sa-hero.sh-hero .sa-desc { font-size: 14px; line-height: 1.65; word-break: keep-all; }

	/* 박스 머리 : 기관명 / 코드 / 로그아웃 한 줄 */
	.sh-head { gap: 12px; padding-bottom: 16px; }
	.sh-head p { font-size: 13px; line-height: 1.55; word-break: keep-all; }
	.sh-inst { width: 100%; gap: 6px 8px; font-size: 13px; }
	.sh-inst .sh-out { margin-left: auto; }

	/* 진행 현황 : 3단 가로형으로 압축 */
	.sh-flow { grid-template-columns: repeat(3, 1fr); }
	.sh-flow li { padding: 12px 10px; }
	.sh-flow li + li { border-top: 0; border-left: 1px solid var(--sh-line); }
	.sh-flow .k { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.3; word-break: keep-all; }
	.sh-flow .val { margin-top: 6px; font-size: 13px; }
	.sh-flow .val b { font-size: 19px; }
	.sh-flow .val span { display: block; margin: 2px 0 0; font-size: 11.5px; }

	/* 지금 할 일 : 여백 / 줄 간격 */
	.sh-todo { gap: 14px; margin-top: 16px; padding: 22px 20px 20px; border-radius: 16px; }
	.sh-todo .t { min-width: 0; flex-basis: 100%; }
	.sh-todo .t small { margin-bottom: 6px; font-size: 12.5px; }
	.sh-todo .t strong { font-size: 18px; }
	.sh-todo .t span { margin-top: 8px; font-size: 13px; }
	.sh-todo .sh-btn { height: 50px; margin-top: 4px; }

	/* 시작 안내 */
	.sh-start { margin-top: 16px; padding: 24px 16px 20px; }
	.sh-start .tit { font-size: 18px; }
	.sh-start .desc { font-size: 14px; }
	.sh-start-steps { flex-direction: column; align-items: stretch; gap: 6px; width: 100%; margin: 16px 0 18px; }
	.sh-start-steps li { padding: 12px 14px; text-align: left; }
	.sh-start-steps li + li::before { left: 24px; top: -6px; width: 1px; height: 6px; }
	.sh-start .sh-btn.lg { width: 100%; min-width: 0; }

	.supply-agree details.sh-rule > summary { font-size: 17px; }
}

/* 비로그인 : 동심키즈 ID 로그인만 (탭 없음) */
.sa-auth.sa-auth-single { padding-top: 36px; }
.sa-auth.sa-auth-single .sa-auth-note { margin-top: 14px; }

/* =====================================================================
   타이틀 + 기관 정보 : 박스(.sh-box) 밖으로 (교재주문 준비 화면 supply-preopen.css 의 .sp-head 와 같은 배치)
    - <div class="sh-head sh-top"> ... </div><section class="sh-box is-body"> ...
    - 메뉴(신청내역 ↔ 교재주문) 이동 시 타이틀 위치 · 크기 · 폭이 같도록
   ===================================================================== */
.sh-top { --sh-blue:#0b57d0; --sh-ink:#111827; --sh-ink2:#374151; --sh-mute:#6b7280; --sh-line2:#eef0f3;
	margin: 40px 0 24px; color: var(--sh-ink); box-sizing: border-box; }
.sh-top h3 { color: var(--sh-ink); }
.sh-top a { text-decoration: none; }
.sh-box.is-body { margin-top: 0; }
.sh-box.is-body > :first-child { margin-top: 0; }

@media screen and (max-width: 768px) {
	.sh-top { margin-top: 28px; }
	.sh-box.is-body { margin-top: 0; }
}

.supply-agree details.sh-rule > summary { padding-right: 4px; }
.supply-agree details.sh-rule .sh-rule-tg { flex: none; box-sizing: border-box; margin-right: 4px; transform: translateY(-2px) rotate(45deg); }
.supply-agree details.sh-rule[open] .sh-rule-tg { transform: translateY(2px) rotate(-135deg); }