@charset "UTF-8";
/* ===================================================================
   profappl_new — 공공 행정 포털형 (Demo A) 공통 스타일
   * 원본 css는 건드리지 않음. 이 파일은 profappl_new 화면에서만 사용.
   =================================================================== */
:root{
  --navy:#11315e; --navy-2:#1c4a86; --line:#d4d9e2; --line-2:#e6e9ef;
  --bg:#eef1f5; --surface:#fff; --text:#1b2330; --sub:#5a6473; --faint:#8a94a3;
  --label-bg:#f3f6fa; --accent:#1c4a86; --req:#c0392b;
  --font:'Noto Sans KR','Apple SD Gothic Neo','Malgun Gothic',dotum,sans-serif;
}
*{box-sizing:border-box}
html{min-height:100%;overflow-y:scroll}
body{margin:0;font-family:var(--font);background:var(--bg);color:var(--text);font-size:13.5px;line-height:1.5;display:flex;flex-direction:column;min-height:100vh}
a{color:inherit;text-decoration:none}

/* 상단 정부형 바 */
.gov-strip{background:var(--navy);color:#cdd8e8;font-size:11.5px}
.gov-strip .in{max-width:1600px;margin:0 auto;padding:5px 22px;display:flex;gap:16px;align-items:center}
.gov-strip .in .r{margin-left:auto;display:flex;gap:14px}
header.main{background:#fff;border-bottom:3px solid var(--navy)}
header.main .in{max-width:1600px;margin:0 auto;padding:14px 22px;display:flex;align-items:center;gap:12px}
header.main .logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:17px;letter-spacing:-.02em}
header.main .logo .em{display:inline-block;width:6px;height:22px;background:var(--navy)}
header.main .logo b{color:var(--navy)}
header.main .right{margin-left:auto;display:flex;gap:8px}
.btn-line{border:1px solid var(--navy);color:var(--navy);background:#fff;font-size:12.5px;font-weight:700;padding:7px 14px;border-radius:2px;cursor:pointer;font-family:inherit}
.btn-line:hover{background:var(--navy);color:#fff}

/* 가로 스텝 네비 */
.stepnav{background:#fff;border-bottom:1px solid var(--line)}
.stepnav .in{max-width:1600px;margin:0 auto;padding:0 22px;display:flex;overflow-x:auto}
.stepnav a{padding:13px 16px;font-size:12.5px;font-weight:600;color:var(--sub);border-bottom:3px solid transparent;white-space:nowrap}
.stepnav a.on{color:var(--navy);border-bottom-color:var(--navy);font-weight:800}
.stepnav a:hover{color:var(--navy)}

.wrap{width:100%;max-width:1600px;margin:0 auto;padding:22px;display:flex;gap:22px;align-items:flex-start;flex:1 0 auto}

/* 좌측 트리 메뉴 */
aside.lnb{width:210px;flex:none}
aside.lnb .box{background:#fff;border:1px solid var(--line);border-radius:4px;overflow:hidden}
aside.lnb .box h3{margin:0;background:var(--navy);color:#fff;font-size:13px;font-weight:700;padding:11px 14px}

/* 대분류(큰 메뉴) — 진하고 또렷하게 */
aside.lnb .box a{display:block;padding:11px 14px 11px 10px;border-left:4px solid transparent;font-size:13.5px;font-weight:700;color:#222b38;border-bottom:1px solid var(--line-2);line-height:1.35;transition:.12s}
aside.lnb .box a:hover{background:#eef2f7;color:var(--navy)}
aside.lnb .box a.on{background:var(--accent-weak);color:var(--navy);font-weight:800;border-left-color:var(--navy)}

/* 하위메뉴 — 들여쓰기 + 세로 가이드선 + 연한 톤으로 '하위'임을 명확히 */
aside.lnb .box a.sub{position:relative;padding:8px 12px 8px 30px;border-left:4px solid transparent;font-size:12px;font-weight:500;color:#6e7884;background:#fafbfc;border-bottom:1px solid #eef0f3;line-height:1.3}
aside.lnb .box a.sub::before{content:"";position:absolute;left:15px;top:0;bottom:0;width:1.5px;background:#dde2e9}
aside.lnb .box a.sub::after{content:"";position:absolute;left:15px;top:16px;width:9px;height:1.5px;background:#c5ccd6}
aside.lnb .box a.sub:hover{background:#eef2f7;color:var(--navy)}
aside.lnb .box a.sub:hover::before,aside.lnb .box a.sub:hover::after{background:var(--navy)}
aside.lnb .box a.sub.on{background:var(--accent-weak);color:var(--navy);font-weight:700;border-left-color:var(--navy)}
aside.lnb .box a.sub.on::before,aside.lnb .box a.sub.on::after{background:var(--navy)}

aside.lnb .box a.auth{background:var(--navy);color:#fff;font-weight:800;text-align:center;border-bottom:0;font-size:13.5px}
aside.lnb .box a.auth:hover{background:var(--navy-2);color:#fff}

/* 그룹 구분 헤더 — 섹션처럼 또렷하게 */
aside.lnb .grp{padding:10px 14px 8px;font-size:11px;font-weight:800;color:var(--navy);background:#eef2f7;border-top:1px solid var(--line);border-bottom:1px solid var(--line-2);letter-spacing:.05em;text-transform:uppercase}

main.content{flex:1;min-width:0}
.ptitle{display:flex;align-items:center;gap:10px;border-bottom:2px solid var(--navy);padding-bottom:10px;margin-bottom:6px}
.ptitle h1{margin:0;font-size:20px;font-weight:800;color:var(--navy)}
.ptitle .step{margin-left:auto;font-size:12px;color:var(--sub);background:var(--label-bg);border:1px solid var(--line);padding:4px 10px}
.desc{font-size:12.5px;color:var(--sub);margin:0 0 16px}
.desc b{color:var(--req)}

.sec{background:#fff;border:1px solid var(--line);margin-bottom:16px}
.sec > .h{background:var(--label-bg);border-bottom:1px solid var(--line);padding:10px 14px;font-size:13.5px;font-weight:800;color:var(--navy);display:flex;align-items:center;gap:8px}
.sec > .h .bar{width:4px;height:14px;background:var(--navy)}

/* 행정 테이블식 폼 */
table.form{width:100%;border-collapse:collapse;table-layout:fixed}
table.form th{width:130px;background:var(--label-bg);border:1px solid var(--line);text-align:left;padding:11px 13px;font-size:12.5px;font-weight:700;color:#3a424f;vertical-align:middle}
table.form td{border:1px solid var(--line);padding:9px 12px;vertical-align:middle}
table.form td.th-cell{background:var(--label-bg);text-align:center;font-weight:700;color:#3a424f;font-size:12.5px}
table.form textarea{width:100%;min-height:150px;padding:10px;font-size:13px;font-family:inherit;color:var(--text);border:1px solid #b9c1cd;border-radius:2px;resize:vertical;outline:none;line-height:1.5}
table.form textarea:focus{border-color:var(--navy);box-shadow:0 0 0 2px rgba(28,74,134,.15)}
table.form input[type="checkbox"]{vertical-align:middle;margin:0 4px}
.reqd{color:var(--req);font-weight:700;margin-left:3px}
input.f,select.f{height:34px;padding:0 9px;font-size:13px;font-family:inherit;color:var(--text);border:1px solid #b9c1cd;border-radius:2px;background:#fff;outline:none;max-width:100%}
input.f:focus,select.f:focus{border-color:var(--navy);box-shadow:0 0 0 2px rgba(28,74,134,.15)}
input.f:disabled,select.f:disabled{background:#eef0f3;color:#9aa3af}
input.w-s{width:120px} input.w-m{width:200px} input.w-l{width:100%}
.help{font-size:11.5px;color:var(--faint);margin-left:7px}
.ro{display:inline-block;background:#f5f7fa;border:1px solid var(--line);padding:7px 12px;font-weight:700;color:var(--sub)}
.btn-s{height:34px;padding:0 12px;border:1px solid var(--navy);background:#fff;color:var(--navy);font-size:12px;font-weight:700;cursor:pointer;font-family:inherit}
.btn-s:hover{background:var(--navy);color:#fff}
.photo-cell{text-align:center}
.photo-fr{border:1px solid var(--line);background:#fafbfc;display:inline-block}
.gap{display:inline-block;width:14px}
.inline-f{display:inline-flex;align-items:center;gap:8px;margin:5px 26px 5px 0;font-size:12.5px;color:#3a424f;white-space:nowrap}
.photo-cell{padding:14px 10px}
.warn-txt{color:var(--req);font-weight:700}

.actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;padding-top:6px;flex-wrap:wrap}
.actions .w{margin-right:auto;font-size:12px;color:var(--req)}
.btn-save{height:40px;padding:0 22px;background:var(--navy);color:#fff;border:0;font-size:14px;font-weight:800;cursor:pointer;font-family:inherit}
.btn-save:hover{background:var(--navy-2)}
.btn-prev{height:40px;padding:0 18px;background:#fff;border:1px solid var(--line);color:var(--sub);font-size:13px;font-weight:700;cursor:pointer;font-family:inherit}
/* 상단 띠들은 눌리지 않게 고정 (sticky footer 레이아웃용) */
.gov-strip,header.main,.stepnav{flex-shrink:0}
/* 푸터 — 헤더처럼 전체 폭 밴드 + 안쪽 컨테이너 정렬, 항상 화면 맨 아래 */
footer.gov{background:var(--navy);color:#c4d0e2;margin-top:34px;border-top:4px solid var(--navy-2);flex-shrink:0}
footer.gov .in{max-width:1600px;margin:0 auto;padding:24px 24px 28px;display:flex;align-items:center;gap:24px;flex-wrap:wrap}
footer.gov .f-uni{display:flex;align-items:center;gap:11px;font-size:16px;font-weight:800;color:#fff;letter-spacing:-.01em}
footer.gov .f-uni .em{display:inline-block;width:6px;height:24px;background:#fff;opacity:.85}
footer.gov .f-uni small{display:block;font-size:10px;font-weight:600;color:#9fb2cd;letter-spacing:.14em;margin-top:3px}
footer.gov .f-info{margin-left:auto;text-align:right;font-size:12.5px;line-height:1.75}
footer.gov .f-info p{margin:0}
footer.gov .f-info b{color:#e8eef6;font-weight:600}
footer.gov .f-copy{color:#8497b4;font-size:11px;margin-top:5px !important;letter-spacing:.02em}
@media(max-width:760px){footer.gov .in{flex-direction:column;align-items:flex-start;gap:14px}footer.gov .f-info{margin-left:0;text-align:left}}

/* 등록 리스트 테이블 (학력·경력·연구실적 등 공통) */
table.listtbl{width:100%;border-collapse:collapse;margin-top:4px}
table.listtbl th{background:var(--navy);color:#fff;font-size:12px;font-weight:700;padding:9px 6px;border:1px solid var(--navy);text-align:center;white-space:nowrap}
table.listtbl td{border:1px solid #cbd2dc;padding:8px 7px;font-size:12.5px;text-align:center;color:var(--text);vertical-align:middle}
table.listtbl td + td{border-left:1px solid #b9c2ce}
table.listtbl th + th{border-left:1px solid #2c4f82}
table.listtbl tr:nth-child(even) td{background:#fafbfc}
table.listtbl td form{margin:0}
table.listtbl input[type="submit"]{height:28px;padding:0 11px;font-size:12px;font-weight:700;cursor:pointer;font-family:inherit;border:1px solid var(--navy);background:#fff;color:var(--navy);border-radius:2px}
table.listtbl input[type="submit"]:hover{background:var(--navy);color:#fff}
.datehint{font-size:12px;color:var(--req);margin:10px 2px 14px;font-weight:600}
.list-title{font-size:13.5px;font-weight:800;color:var(--navy);margin:22px 0 8px;display:flex;align-items:center;gap:8px}
.list-title .bar{width:4px;height:14px;background:var(--navy)}

/* 로그인 카드 */
.login-wrap{display:flex;justify-content:center;padding:40px 0 60px}
.login-card{width:100%;max-width:400px;background:#fff;border:1px solid var(--line);border-top:3px solid var(--navy);padding:32px 30px}
.login-card h2{margin:0 0 4px;font-size:18px;font-weight:800;color:var(--navy)}
.login-card .sub2{margin:0 0 22px;font-size:12.5px;color:var(--sub)}
.login-field{margin-bottom:16px}
.login-field label{display:block;font-size:12.5px;font-weight:700;color:#3a424f;margin-bottom:7px}
.login-input{width:100%;height:46px;padding:0 13px;font-size:15px;font-family:inherit;color:var(--text);border:1px solid #b9c1cd;border-radius:2px;outline:none}
.login-input:focus{border-color:var(--navy);box-shadow:0 0 0 2px rgba(28,74,134,.15)}
.login-btn{width:100%;height:48px;background:var(--navy);color:#fff;border:0;font-size:15px;font-weight:800;cursor:pointer;font-family:inherit}
.login-btn:hover{background:var(--navy-2)}
.login-note{margin:18px 0 0;font-size:12.5px;color:var(--req);line-height:1.5}

/* 레거시 콘텐츠(초빙공고 DB HTML, 접수안내 pr.html)를 담는 본문 래퍼 */
.cont-body{padding:22px;overflow-x:auto;font-size:13.5px;line-height:1.6;color:var(--text)}
.cont-body img{max-width:100%;height:auto}
.cont-body table{max-width:100%}

/* 초빙공고(CMS HTML) 후처리 — 원문은 그대로 두고 보기 좋게 정규화 */
.notice-body{padding:18px 24px;font-size:14px;line-height:1.5;color:#3a3f48;overflow-wrap:break-word;word-break:break-word}
.notice-body, .notice-body p, .notice-body span, .notice-body div, .notice-body td, .notice-body th, .notice-body li, .notice-body a, .notice-body b, .notice-body font{font-family:var(--font) !important; letter-spacing:-0.2px !important}
.notice-body p{margin:5px 0}
.notice-body img{max-width:100%;height:auto}
.notice-body a{color:var(--accent);text-decoration:none}
.notice-body a:hover{text-decoration:underline}
.notice-body h1,.notice-body h2,.notice-body h3,.notice-body h4{color:var(--navy);line-height:1.35;margin:14px 0 7px}
.notice-body table{border-collapse:collapse;border-spacing:0;max-width:100%;margin:12px 0}
.notice-body table td,.notice-body table th{border:1px solid var(--line);padding:7px 10px;vertical-align:middle}
.notice-body table th{background:var(--label-bg);color:#2b3442;font-weight:700}
.notice-body hr{border:0;border-top:1px solid var(--line);margin:14px 0}
.notice-body ul,.notice-body ol{padding-left:22px;margin:7px 0}
.notice-body li{margin:3px 0}
.notice-body{text-align:left}
.notice-body center{display:block;text-align:left !important}
/* ▼ 공고 본문 표 — 원본 CSS(style.default.css·common.css) 그대로 이식. 실제 콘텐츠 클래스는 tbl-type01 / edit-tbl01 */
/* 데이터표 tbl-type01 (1.초빙분야·5.주요심사일정·6.임용조건): 셀 가운데정렬, 단 콘텐츠에 인라인 text-align:left 박힌 요구자격·우대사항 칸은 왼쪽 유지 */
.notice-body table.tbl-type01{border-collapse:collapse;border-spacing:0;width:100%;border:1px solid #bfbfbf;border-top:2px solid #4f4f51}
.notice-body table.tbl-type01 th{background:#f5f5f5;padding:10px;text-align:center;line-height:110%;border:1px solid #dadada;color:#2b3442;font-weight:700}
.notice-body table.tbl-type01 td{padding:10px;text-align:center;border:1px solid #dadada}
/* 안내 박스표 edit-tbl01 (사진안내·제목·법령인용·제출서류 목록) */
.notice-body table.edit-tbl01{border-collapse:collapse;border-spacing:0;empty-cells:show;width:100%}
.notice-body table.edit-tbl01 td,.notice-body table.edit-tbl01 th{border:1px solid #ccc;padding:5px}
/* 표 안의 보조표(USB 저장요령·[참고])는 자동 폭 */
.notice-body table table{width:auto}

/* 공고 표 가로스크롤 래퍼 + 안내문구 (bottom.jsp 스크립트가 3열 이상 표를 .tscroll로 감쌈) */
.notice-body .tscroll{overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
.notice-body .thint{display:block;font-size:11.5px;font-weight:700;color:var(--navy);background:#eef2f7;border:1px solid var(--line);border-radius:4px;padding:6px 10px;margin:12px 0 0}
.notice-body .thint::selection{background:transparent}

/* ===== 모바일 반응형 ===== */
/* 데스크톱: 메뉴 토글 숨김(메뉴는 항상 펼침) — 기존 동작과 동일 */
.lnb-chk,.lnb-toggle{display:none}

@media(max-width:880px){
  /* 레이아웃: 좌우 2단 → 세로 1단 */
  .wrap{flex-direction:column;padding:12px;gap:12px}
  .gov-strip .in{padding:5px 14px;gap:10px}
  header.main .in{padding:11px 14px;gap:8px;flex-wrap:wrap}
  header.main .logo{font-size:15px}
  header.main .right{margin-left:auto;gap:6px}
  .btn-line{padding:6px 10px;font-size:12px}
  main.content{width:100%;max-width:100%;overflow-x:hidden}

  /* 좌측 메뉴 → 상단 접이식(아코디언) */
  aside.lnb{width:100%}
  .lnb-chk{position:absolute;opacity:0;width:1px;height:1px;overflow:hidden}
  .lnb-toggle{display:block;background:var(--navy);color:#fff;font-weight:800;font-size:14px;padding:13px 16px;border-radius:4px;cursor:pointer;user-select:none}
  .lnb-toggle::after{content:"▾";float:right;font-size:12px;line-height:1.4}
  .lnb-chk:checked ~ .lnb-toggle::after{content:"▴"}
  aside.lnb .box{display:none;margin-top:8px}
  .lnb-chk:checked ~ .box{display:block}

  /* 제목 */
  .ptitle{flex-wrap:wrap}
  .ptitle h1{font-size:18px}
  .ptitle .step{margin-left:0;order:3;margin-top:6px}

  /* 폼 테이블: 라벨열 좁히고 셀 내용 줄바꿈 허용, 입력은 폭 100% */
  table.form th{width:88px;padding:9px 8px;font-size:11.5px}
  table.form td{padding:8px 8px;white-space:normal}
  input.w-m{width:100%} input.w-l{width:100%} input.w-s{width:110px}
  .inline-f{margin:5px 12px 5px 0}

  /* 등록목록표: 칼럼 많아 넘치므로 가로스크롤 */
  table.listtbl{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap}

  /* 공고/안내 본문 패딩 축소 (표 가로스크롤은 .notice-body/.cont-body의 overflow-x:auto가 처리) */
  .notice-body,.cont-body{padding:14px}
  /* 페이지(본문)는 가로로 밀리지 않게 → 빈 흰 여백 방지. 넓은 표는 각자 .tscroll 안에서만 스크롤 */
  html,body{overflow-x:hidden}
  /* 초빙공고 데이터표: JS 미동작 시 폴백으로 최소폭 유지(글자 세로 뭉개짐 방지) */
  .notice-body table.tbl-type01{min-width:720px}

  /* 하단 버튼: 가로로 꽉 차게 */
  .actions{gap:8px}
  .actions .btn-save,.actions .btn-prev{flex:1 1 auto}
  .actions .w{flex-basis:100%;margin:0 0 4px}

  /* 로그인 카드 여백 축소 */
  .login-wrap{padding:20px 0 40px}
}

/* 좁은 폭: 복합 폼 테이블(인적사항 등)을 '라벨 위·입력 아래' 세로 스택으로 전환 — 칸 수/사진 rowspan과 무관하게 안 깨짐 */
@media(max-width:700px){
  table.form{display:block;width:100%;table-layout:auto;border:1px solid var(--line);border-top:0}
  table.form colgroup{display:none}
  table.form tbody,table.form tr{display:block;width:100%}
  table.form th,table.form td,table.form td.th-cell{display:block;width:auto;border:0;border-top:1px solid var(--line)}
  table.form th{background:var(--label-bg);text-align:left;padding:8px 12px;font-size:12px;font-weight:700;color:#3a424f}
  table.form td,table.form td.th-cell{text-align:left;padding:10px 12px}
  /* 사진 칸(rowspan)은 스택 흐름에서 왼쪽 정렬로 자연스럽게 */
  table.form td.photo-cell{padding:12px}
  table.form td.photo-cell img.photo-fr{max-width:107px;height:auto}
  /* 셀 안 입력요소는 폭 채우되, 작은 칸은 적당히 */
  table.form input.f,table.form select.f{width:100%;max-width:100%}
  table.form input.w-s{width:46%;max-width:160px;display:inline-block}
  table.form input[type="checkbox"]{width:auto}
}

@media(max-width:520px){
  body{font-size:13px}
  header.main .logo{font-size:14px}
  .ptitle h1{font-size:16px}
  .sec > .h{font-size:12.5px}
  .lnb-toggle{font-size:13px;padding:12px 14px}
}
