/* 행복한학교 관리자 (관리자 시안 1920: 왼쪽 메뉴 210·줄 60, 위 100, 파랑 #2d62bc, 상자 테두리 #dcdcdc, 표 머리 #fafafc) — 2026-11-07 */
:root { --a-blue: #2d62bc; --a-line: #dcdcdc; --a-line2: #dddddd; --a-bg: #f5f6fa; --a-text: #222; --a-sub: #4e4e4e; --a-gray: #808080; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Pretendard, -apple-system, "Malgun Gothic", sans-serif; color: var(--a-text); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.adm { display: flex; min-height: 100vh; background: var(--a-bg); }
.adm-side { width: 210px; flex: 0 0 210px; background: #fff; border-right: 1px solid #eaeafc; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.adm-logo { display: flex; align-items: center; height: 100px; padding: 0 27px; border-bottom: 1px solid #eaeafc; }
.adm-logo img { width: 156px; }
.adm-side nav a, .adm-side nav button { display: flex; align-items: center; width: 100%; height: 60px; padding: 0 30px; border: 0; background: none; text-align: left; font-size: 16px; font-weight: 500; color: var(--a-sub); cursor: pointer; }
.adm-side nav a:hover { background: #f1f4fb; }
.adm-side nav a.on { background: var(--a-blue); color: #fff; font-weight: 600; }
.adm-side nav a.todo { color: #b3b3b3; }
.adm-sep { margin: 10px 0 0; padding: 14px 30px 6px; border-top: 1px solid #eaeafc; font-size: 12px; color: var(--a-gray); }
.adm-main { flex: 1; min-width: 0; }
.adm-top { display: flex; align-items: center; justify-content: space-between; height: 100px; padding: 0 20px; background: #fff; border-bottom: 1px solid #eaeafc; }
.adm-top h1 { margin: 0; font-size: 20px; font-weight: 700; color: #252728; }
.adm-top .who { display: flex; gap: 18px; align-items: center; font-size: 15px; color: var(--a-sub); }
.adm-top .who a { color: var(--a-blue); text-decoration: underline; }
.adm-body { padding: 30px 20px 60px; }
.adm-flash { margin-bottom: 20px; padding: 14px 18px; background: #e8f0ff; border: 1px solid #c9dafc; border-radius: 4px; }
.box { background: #fff; border: 1px solid var(--a-line); border-radius: 4px; padding: 30px 23px; margin-bottom: 20px; }
.box-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 22px; }
.box-h h2 { margin: 0; font-size: 18px; font-weight: 700; color: #212121; }
.box-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.empty { color: #999; text-align: center; padding: 40px 0 !important; }
.help { color: var(--a-gray); font-size: 13px; }
.center { text-align: center; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 23px; margin-bottom: 20px; }
.stat { display: flex; align-items: center; gap: 6px; height: 92px; padding: 0 20px; background: #fff; border: 1px solid var(--a-line); border-radius: 4px; }
.stat span { margin-right: auto; color: var(--a-gray); font-size: 16px; font-weight: 500; }
.stat b { font-size: 34px; font-weight: 600; color: var(--a-blue); }
.stat em { font-style: normal; color: var(--a-gray); font-size: 16px; font-weight: 500; }

/* 검색줄 */
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.filters .count { margin-right: auto; font-weight: 500; }
.filters select, .filters input[type=text], .filters input[type=month], .filters input[type=date] { height: 34px; padding: 0 10px; border: 1px solid var(--a-line2); border-radius: 2px; background: #fff; }
.filters input[type=text] { width: 250px; }

/* 단추 */
.btn-s { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px; border: 1px solid var(--a-line2); border-radius: 3px; background: #fff; cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; }
.btn-s.dark { background: #333; color: #fff; border-color: #333; }
.btn-s.blue { background: var(--a-blue); color: #fff; border-color: var(--a-blue); }
.btn-s.red { color: #d33; border-color: #f0c4c4; }
.btn-s.lg { height: 44px; padding: 0 30px; font-size: 16px; }
.btn-row { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.btn-row .btn-s { min-width: 140px; height: 48px; font-size: 16px; }

/* 표 */
.tbl { width: 100%; border-collapse: collapse; border: 1px solid var(--a-line2); }
.tbl th { height: 55px; padding: 0 8px; background: #fafafc; border-bottom: 1px solid var(--a-line2); font-size: 14px; font-weight: 600; }
.tbl td { height: 52px; padding: 6px 8px; border-bottom: 1px solid #eee; text-align: center; font-size: 14px; }
.tbl td.l { text-align: left; }
.tbl tbody tr.link { cursor: pointer; }
.tbl tbody tr.link:hover td { background: #f6f8fd; }
.row-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tbl tbody tr.link:focus-visible, .row-link:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }   /* 22번 */
.tbl .acts form { display: inline-flex; gap: 6px; margin: 0; }
.st { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 13px; background: #eee; white-space: nowrap; }
.st-pending, .st-received, .st-doc_pass, .st-interview { background: #fff2d6; color: #a86b00; }
.st-active, .st-approved { background: #e2f6ea; color: #13824a; }
.st-rejected { background: #fde4e4; color: #c22; }
.st-draft { background: #eee; color: #777; }
.st-tag { display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 10px; font-size: 12px; background: #e5f4f8; color: #0e90b1; white-space: nowrap; }
.st-tag.warn { background: #fff4e0; color: #c77700; }
.st-tag.off { background: #eee; color: #888; }
.pager { display: flex; justify-content: center; gap: 4px; margin-top: 24px; }
.pager a { min-width: 28px; height: 28px; line-height: 26px; padding: 0 6px; border: 1px solid var(--a-line2); border-radius: 2px; text-align: center; color: var(--a-blue); font-size: 14px; }
.pager a.on { background: var(--a-blue); border-color: var(--a-blue); color: #fff; }
.pg-arrow.prev::before { content: "‹"; } .pg-arrow.next::before { content: "›"; }

/* 입력 상자 (강사 신청서 보기·강의 배정·급여명세서) */
.form-grid { display: grid; grid-template-columns: 140px 1fr 140px 1fr; border-top: 1px solid var(--a-line2); }
.form-grid > .k, .form-grid > .v { min-height: 54px; padding: 10px 14px; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.form-grid > .k { background: #fafafc; font-weight: 600; }
.form-grid > .v.wide { grid-column: span 3; }
.form-grid input[type=text], .form-grid input[type=date], .form-grid input[type=number], .form-grid input[type=time], .form-grid input[type=month], .form-grid select, .form-grid textarea { height: 36px; padding: 0 10px; border: 1px solid var(--a-line2); border-radius: 2px; background: #fff; }
.form-grid textarea { width: 100%; height: 90px; padding: 8px 10px; }
.form-grid input.w100 { width: 100%; }
.form-grid .chk { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; }
.sec-t { margin: 34px 0 12px; font-size: 16px; font-weight: 700; color: var(--a-blue); }
.files { display: flex; flex-direction: column; gap: 4px; }
.files a { color: var(--a-blue); text-decoration: underline; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill-list span { padding: 3px 10px; border-radius: 14px; background: #eef2fb; font-size: 13px; }
.rrn-box { display: inline-flex; gap: 8px; align-items: center; }
.rrn-full { font-weight: 700; color: #c22; letter-spacing: .5px; }
.warn { padding: 12px 16px; border-radius: 4px; background: #fff7e6; border: 1px solid #ffe2a8; color: #8a5a00; margin-bottom: 16px; }

/* 달력 (월별계획안·강의관리) */
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 30px; margin-bottom: 16px; }
.cal-nav h3 { margin: 0; font-size: 26px; font-weight: 600; }
.cal-nav a { color: #aaa; font-size: 15px; }
.acal { width: 100%; table-layout: fixed; border-collapse: collapse; border: 1px solid var(--a-line2); }
.acal th { height: 44px; background: #fafafc; border-bottom: 1px solid var(--a-line2); font-weight: 600; }
.acal td { height: 130px; padding: 8px; vertical-align: top; border: 1px solid #eee; }
.acal .sun { color: #d91919; } .acal .sat { color: #384fe9; }
.acal .dnum { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; font-size: 15px; border-radius: 50%; color: inherit; }
.acal .today .dnum { background: var(--a-blue); color: #fff; }
.chip { display: block; width: 100%; margin-top: 4px; padding: 3px 8px; border: 0; border-radius: 3px; background: #dfe9fb; color: #333; font-size: 13px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.chip.staff { background: #ffe9c9; }
.chip.more { background: #f0f0f0; text-align: center; }

/* 창 */
dialog.pop { width: 640px; max-width: calc(100% - 32px); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog.pop::backdrop { background: rgba(0,0,0,.4); }
.pop-in { position: relative; padding: 30px 28px; }
.pop-in h3 { margin: 0 0 18px; font-size: 18px; }
.pop-x { position: absolute; right: 16px; top: 16px; width: 30px; height: 30px; border: 0; background: none; font-size: 22px; cursor: pointer; }
.pop-list { margin: 0; padding: 0; list-style: none; max-height: 340px; overflow-y: auto; border-top: 1px solid #eee; }
.pop-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 6px; border-bottom: 1px solid #eee; }
.pop-list li.staff { background: #fff8ee; }
.pop-list .who { font-weight: 600; }
.pop-list p { margin: 4px 0 0; color: var(--a-sub); white-space: pre-line; }

/* 출력용 종이 (급여명세서·활동확인서) */
.paper { max-width: 1240px; margin: 0 auto; padding: 100px 83px 80px; border: 1px solid #111; background: #fff; color: #222; }
.paper h2.pt { margin: 0; text-align: center; font-size: 36px; font-weight: 700; }
.ptbl { width: 100%; border-collapse: collapse; border: 1px solid #ccc; font-size: 17px; text-align: center; }
.ptbl th { height: 50px; background: #eee; font-weight: 600; border: 1px solid #ccc; }
.ptbl td { height: 50px; border: 1px solid #ddd; padding: 4px 10px; }
.slip-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 80px; }
.slip-head > div { flex: 1; text-align: center; padding-left: 280px; }
.slip-head p { margin: 16px 0 0; font-size: 26px; font-weight: 700; }
.slip-who { border-collapse: collapse; border: 1px solid #ddd; font-size: 17px; }
.slip-who th { width: 110px; padding: 10px; background: #eee; }
.slip-who td { width: 150px; padding: 10px; text-align: center; }
.paper h3 { margin: 40px 0 12px; font-size: 19px; }
.paper .thanks { margin: 90px 0 0; text-align: center; font-size: 26px; font-weight: 600; }
.paper .pdate { margin: 50px 0 0; text-align: center; font-size: 18px; white-space: pre; }
.paper .porg { margin: 16px 0 0; text-align: center; font-size: 20px; font-weight: 700; }

/* 로그인 */
.adm-login-page { margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--a-bg); }
.adm-login { width: 440px; padding: 50px 44px; background: #fff; border: 1px solid var(--a-line); border-radius: 6px; text-align: center; }
.adm-login p { margin: 14px 0 34px; font-size: 14px; color: #666; }
.adm-login label { display: block; text-align: left; margin-bottom: 18px; }
.adm-login label span { display: block; margin-bottom: 8px; font-size: 18px; }
.adm-login input { width: 100%; height: 50px; padding: 0 12px; border: 1px solid var(--a-line2); border-radius: 4px; font-size: 16px; }
.adm-login button { width: 100%; height: 54px; margin-top: 14px; border: 0; border-radius: 4px; background: var(--a-blue); color: #fff; font-size: 18px; cursor: pointer; }
.adm-login .err { color: #d33; font-size: 14px; margin: 0 0 6px; }

@media print {
  .adm-side, .adm-top, .no-print, .adm-flash { display: none !important; }
  .adm, .adm-body { background: #fff; padding: 0; display: block; }
  .box { border: 0; padding: 0; }
  .paper { border: 0; padding: 14mm; max-width: none; }
}
@media (max-width: 1100px) {
  .adm-side { width: 170px; flex-basis: 170px; } .adm-side nav a { padding: 0 16px; font-size: 14px; height: 48px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 110px 1fr; } .form-grid > .v.wide { grid-column: span 1; }
}

/* 급여명세서 종이 (teacher.css 와 같은 모양) */
.slip { max-width: 1240px; margin: 0 auto; padding: 130px 83px 90px; border: 1px solid #111; background: #fff; color: #222; }
.slip-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 110px; }
.slip-head > div { flex: 1; text-align: center; padding-left: 280px; }
.slip-head h2 { margin: 0; font-size: 36px; font-weight: 700; }
.slip-head p { margin: 20px 0 0; font-size: 28px; font-weight: 700; }
.slip-who { border-collapse: collapse; border: 1px solid var(--c-line); font-size: 18px; }
.slip-who th { width: 119px; padding: 10px; background: #eee; font-weight: 600; }
.slip-who td { width: 160px; padding: 10px; text-align: center; }
.slip h3 { margin: 50px 0 14px; font-size: 20px; font-weight: 600; }
.slip-tbl { width: 100%; border-collapse: collapse; border: 1px solid var(--c-line); text-align: center; font-size: 20px; }
.slip-tbl thead th { height: 55px; background: #eee; font-size: 18px; font-weight: 600; }
.slip-tbl td, .slip-tbl tbody th { height: 52px; border-top: 1px solid var(--c-line2); }
.slip-tbl tbody th { font-size: 18px; font-weight: 600; }
.slip-tbl.detail td { font-weight: 600; }
.slip-tbl tr.tot th, .slip-tbl tr.tot td { background: #eee; }
.slip-note { margin: 20px 0 0; font-size: 16px; color: var(--c-sub); }
.slip-thanks { margin: 110px 0 0; text-align: center; font-size: 28px; font-weight: 600; }
.slip-date { margin: 60px 0 0; text-align: center; font-size: 18px; white-space: pre; }
.slip-org { margin: 20px 0 0; text-align: center; font-size: 20px; font-weight: 700; }

.slip-who th { background: #eee; } .slip-tbl tbody th { font-weight: 600; }
@media print { .slip { border: 0; padding: 14mm; max-width: none; } }

/* 좁은 화면 (태블릿·휴대폰) — 시안은 PC만 있음. 재단 직원이 급히 볼 수 있게: 왼쪽 메뉴는 위쪽 가로 띠로, 넓은 표는 상자 안에서 옆으로 밀어 봄 (11/07 검수) */
@media (max-width: 1024px) {
  .adm { flex-direction: column; }
  .adm-side { position: sticky; top: 0; z-index: 20; width: auto; height: auto; flex: none; border-right: 0; border-bottom: 1px solid #eaeafc; overflow: visible; }
  .adm-logo { height: 52px; padding: 0 14px; border-bottom: 0; }
  .adm-logo img { width: 120px; }
  .adm-side nav { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid #eaeafc; }
  .adm-side nav a, .adm-side nav button { flex: none; width: auto; height: 42px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
  .adm-sep { display: none; }
  .adm-top { height: auto; min-height: 56px; padding: 10px 12px; flex-wrap: wrap; gap: 6px; }
  .adm-top h1 { font-size: 17px; }
  .adm-top .who { gap: 10px; font-size: 13px; }
  .adm-body { padding: 14px 10px 40px; }
  .box { padding: 16px 12px; overflow-x: auto; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .filters input[type=text] { width: 100%; }
  .filters select { max-width: 100%; }
  .form-grid { grid-template-columns: 96px minmax(0, 1fr); }
  .form-grid > .v.wide { grid-column: span 1; }
  .form-grid > .k { padding: 10px 8px; font-size: 13px; }
  .form-grid > .v { padding: 8px; }
  .form-grid input, .form-grid select, .form-grid textarea { max-width: 100%; }
  .tbl { min-width: 640px; }
}
