/* 솔루션 오류 및 개선사항 접수처 · 공통 스타일
   색상: NeXura 라이선스 통합 센터(license.nexura.co.kr)와 맞춤. 머리줄·제목·종결은 --brand(#1B1F3B), 버튼·선택·링크는 --navy(#0B4BDF)
   제보자 페이지는 휴대폰 폭(390px)에서 1열로 표시한다 */
:root {
  --brand: #1B1F3B; --brand-2: #2A3052; --brand-line: #3A445D;
  --navy: #0B4BDF; --navy-d: #0940C0; --navy-m: #6A8BE0; --navy-bg: #EEF4FF; --navy-line: #D9E4FB;
  --ink: #1F2329; --ink-2: #3A404A; --muted: #595959;
  --line: #D5D9DF; --line-2: #C9CDD3; --line-3: #9AA1AC;
  --bg: #F3F5F8; --panel: #FFFFFF; --gray-1: #E6E9EE;
  --bad: #B03A2E; --bad-bg: #F6E3E1;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "NanumGothicDemo", "NanumGothic", "Nanum Gothic", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; }

a { color: var(--navy); }

.mono { font-family: Consolas, Menlo, monospace; }

/* 머리줄 */
.top { background: var(--brand); box-shadow: 0 2px 6px rgba(27, 31, 59, .25); }
.top-in { max-width: 960px; margin: 0 auto; padding: 0 16px; height: 64px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; text-decoration: none; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand::before { content: "N"; flex: none; width: 30px; height: 30px; border-radius: 7px; background: #fff; color: var(--brand); font-size: 17px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.nav { margin-left: auto; display: flex; gap: 4px; flex: none; }
.nav a { text-decoration: none; color: rgba(255, 255, 255, .8); padding: 7px 14px; border-radius: 7px; font-size: 15px; }
.nav a:hover { background: var(--brand-2); color: #fff; }
.nav a.on { background: #fff; color: var(--brand); font-weight: 700; }

/* 본문 */
.wrap { max-width: 960px; margin: 0 auto; padding: 36px 16px 64px; }
h1 { color: var(--brand); font-size: 28px; margin: 0 0 8px; letter-spacing: -.5px; }
.h-sub { font-size: 17px; margin: 0 0 6px; }
.lead { color: var(--ink-2); margin: 0 0 24px; }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 28px 32px; box-shadow: 0 2px 8px rgba(31, 35, 41, .06); }
.sec-h { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--brand); margin: 0; padding-bottom: 12px; border-bottom: 2px solid var(--navy-line); }
.sec-h::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--navy); }
.sec-h ~ .sec-h { margin-top: 18px; }
.panel + .panel { margin-top: 16px; }
.alert { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-weight: 700; }

/* 입력 */
.form { display: flex; flex-direction: column; gap: 22px; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: 1.3fr .8fr 1fr; }
.g3.who { grid-template-columns: .8fr .8fr 1.4fr; }
.fld { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fld > label, .fld > .lb { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.req { color: var(--bad); margin-left: 2px; }
.err { font-size: 14px; color: var(--bad); }
.inp { font-size: 16px; height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
textarea.inp { height: auto; padding: 8px 12px; line-height: 1.55; resize: vertical; }
.inp.file { padding: 6px 8px; height: auto; font-size: 15px; color: var(--muted); }
.inp.file::file-selector-button { font: inherit; font-size: 14px; color: var(--navy); background: var(--navy-bg); border: 0; border-radius: 5px; padding: 5px 12px; margin-right: 10px; cursor: pointer; }
.inp:hover { border-color: var(--line-3); }
.inp:focus { outline: 2px solid var(--navy-m); outline-offset: 0; border-color: var(--navy-m); }
.inp.bad { border-color: var(--bad); }
.opts { display: flex; gap: 6px; flex-wrap: wrap; }
.opts label { position: relative; display: flex; align-items: center; justify-content: center; font-size: 15px; border: 1px solid var(--line-2); border-radius: 21px; padding: 0 16px; height: 42px; min-width: 64px; cursor: pointer; background: #fff; color: var(--ink-2); }
.opts label:hover { border-color: var(--navy-m); color: var(--navy); }
.opts label:has(input:checked) { border-color: var(--navy); background: var(--navy); color: #fff; font-weight: 700; }
.opts label:has(input:focus-visible) { outline: 2px solid var(--navy-m); outline-offset: 2px; }
.opts input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }

/* 버튼 */
.acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.acts.start { justify-content: flex-start; }
.acts .sbtn.pri { height: 50px; min-width: 180px; font-size: 17px; }
.sbtn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 8px; font-size: 16px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; }
.sbtn.pri { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.sbtn:hover { border-color: var(--line-3); background: var(--bg); }
.sbtn.pri:hover { background: var(--navy-d); border-color: var(--navy-d); }
.sbtn:focus-visible { outline: 2px solid var(--navy-m); outline-offset: 2px; }
.sbtn:disabled { opacity: .6; cursor: default; }

/* 접수 완료·상태 조회 */
.done { display: flex; flex-direction: column; gap: 18px; }
.done h1 { margin: 0; }
.no-big { font-size: 34px; font-weight: 700; color: var(--brand); letter-spacing: .5px; }
.kv { display: grid; grid-template-columns: 90px 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.chip { display: inline-block; font-size: 14px; font-weight: 800; padding: 1px 10px; border-radius: 12px; white-space: nowrap; border: 1.5px solid transparent; }
.s-접수 { background: #fff; color: var(--navy); border-color: var(--navy); }
.s-확인중 { background: var(--navy-bg); color: var(--navy); }
.s-배정 { background: var(--navy); color: #fff; }
.s-종결 { background: var(--brand); color: #fff; }
.lookup { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.result { display: flex; flex-direction: column; gap: 16px; }
.res-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.res-no { font-size: 20px; font-weight: 700; }
.steps { display: flex; list-style: none; margin: 0; padding: 0; }
.steps li { flex: 1; text-align: center; font-size: 15px; padding: 8px 4px; border-bottom: 4px solid var(--line); color: var(--muted); }
.steps li.on { border-color: var(--navy); color: var(--navy); font-weight: 800; }
.res-count { margin: 16px 0 10px; }
.result-item { padding: 0; }
.result-item + .result-item { margin-top: 8px; }
.result-item summary { display: flex; gap: 12px; align-items: center; padding: 14px 20px; cursor: pointer; list-style: none; }
.result-item summary::-webkit-details-marker { display: none; }
.result-item summary::before { content: "▸"; color: var(--muted); flex: none; }
.result-item[open] summary::before { content: "▾"; }
.result-item[open] summary { border-bottom: 1px solid var(--line); }
.result-item .sum-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-item .result { padding: 18px 20px; }
.bodytxt { white-space: pre-wrap; background: var(--bg); border-radius: 8px; padding: 10px 14px; margin: 0; overflow-wrap: anywhere; }

/* 관리 페이지(PG-04~06). 사내 PC 브라우저 기준 */
.top-in.wide, .wrap.wide { max-width: 1240px; }
.wrap.narrow { max-width: 440px; }
.brand-sub { font-size: 13px; font-weight: 700; color: var(--brand); background: var(--navy-bg); border-radius: 4px; padding: 1px 7px; }
.who-box { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: none; }
.who-name { font-size: 15px; color: #fff; font-weight: 700; }
.who-box form { margin: 0; }
.who-box .sbtn { background: transparent; border-color: var(--brand-line); color: #fff; }
.who-box .sbtn:hover { background: var(--brand-2); border-color: var(--navy-m); }
.sbtn.sm { height: 34px; padding: 0 12px; font-size: 14px; }
.notice { background: var(--navy-bg); color: var(--navy); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-weight: 700; }
.counts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.count { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 12px; text-decoration: none; color: var(--ink); }
.count:hover { border-color: var(--navy-m); }
.filters { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 12px; }
.filters .fld { width: 180px; }
.filters .total { padding-bottom: 10px; font-size: 15px; }
.filters a.hint { padding-bottom: 10px; }
.tbl-wrap { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
table.lst { width: 100%; border-collapse: collapse; font-size: 15px; }
.lst th, .lst td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lst th { font-size: 13px; color: var(--brand); background: var(--navy-bg); font-weight: 700; padding-top: 11px; padding-bottom: 11px; }
.lst tbody tr:nth-child(even) { background: #F9FAFC; }
.lst td.t { white-space: normal; min-width: 260px; }
.lst tbody tr:last-child td { border-bottom: 0; }
.lst tbody tr.go { cursor: pointer; }
.lst tbody tr:hover, .lst tbody tr:nth-child(even):hover { background: var(--navy-bg); }
.lst a { color: inherit; text-decoration: none; }
.lst a.no-link { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lst td.t a:hover { color: var(--navy); text-decoration: underline; }
.sev-high { color: var(--bad); font-weight: 800; }
.empty { color: var(--muted); text-align: center; padding: 40px 16px; }
.pager { display: flex; gap: 4px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--line-2); background: #fff; text-decoration: none; color: var(--ink); font-size: 14px; }
.pager span.on { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 700; }
.detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.detail .panel + .panel { margin-top: 0; }
.original { display: flex; flex-direction: column; gap: 14px; }
.d-title { font-size: 22px; color: var(--ink); margin: 0; line-height: 1.35; }
.kv.small { font-size: 14px; color: var(--muted); grid-template-columns: 70px 1fr; }
.original .kv { grid-template-columns: 100px 1fr; }
.files { list-style: none; margin: 0; padding: 0; }
.files li + li { margin-top: 2px; }

@media (max-width: 900px) {
  .detail { grid-template-columns: 1fr; }
}

/* 휴대폰 폭: 1열 */
@media (max-width: 640px) {
  .wrap { padding: 20px 16px 40px; }
  .panel { padding: 18px 16px; }
  .g2, .g3, .g3.who, .lookup { grid-template-columns: 1fr; }
  .acts .sbtn { flex: 1; }
  .lookup .sbtn { width: 100%; }
  .top-in { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 6px; }
  .brand { font-size: 15px; }
  .nav { margin-left: 0; }
  .no-big { font-size: 28px; }
}
