/* =====================================================================
   공간정보 반출관리시스템 - 사용자
   ===================================================================== */
:root {
    --primary: #1f5fae;
    --primary-dark: #163f74;
    --accent: #1b8a9e;
    --accent-light: #e6f4f6;
    --point: #8cc63f;
    --navy: #1d2a44;
    --bg: #f4f6f9;
    --text: #222;
    --muted: #6b7280;
    --line: #dde2ea;
    --line-dark: #b9c2cf;
    --danger: #d9363e;
    --warn: #e08a00;
    --ok: #1a8f3c;
    --radius: 4px;
    --font: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > * { width: 100%; flex-shrink: 0; }
body > .footer { margin-top: auto; }  /* 내용이 짧은 화면에서도 푸터를 화면 아래에 붙인다 */
body { font-family: var(--font); font-size: 14px; color: var(--text); background: #fff; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
input[type=radio], input[type=checkbox] { accent-color: var(--primary); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font-family: inherit; font-size: 14px; }
.blind { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.topbar { background: var(--navy); color: #fff; height: 42px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.topbar .sys { font-weight: 700; letter-spacing: .5px; font-size: 15px; }
.topbar .util { display: flex; gap: 18px; align-items: center; font-size: 13px; }
.topbar .util a, .topbar .util button { color: #e6ebf5; background: none; border: 0; cursor: pointer; padding: 0; }
.topbar .util a:hover, .topbar .util button:hover { color: #fff; text-decoration: underline; }
.topbar .util .who { color: #fff; }
.topbar .util .who b { color: var(--point); font-weight: 600; }

.gnb { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 4px rgba(0, 0, 0, .04); position: relative; z-index: 10; }
.gnb .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo svg { width: 38px; height: 38px; }
.logo .txt strong { display: block; font-size: 20px; color: var(--primary-dark); letter-spacing: -.5px; }
.logo .txt span { display: block; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.gnb nav ul { display: flex; gap: 6px; }
.gnb .company-logo { display: flex; align-items: center; flex: none; transition: opacity .15s; }
.gnb .company-logo:hover { opacity: .85; }
.gnb .company-logo img { height: 44px; width: auto; display: block; }
.gnb nav a { display: block; padding: 24px 26px; font-size: 18px; font-weight: 500; color: #333; border-bottom: 3px solid transparent; }
.gnb nav a:hover, .gnb nav a.on { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- sub visual ---------- */
.sub-visual { height: 150px; background: linear-gradient(110deg, #f7f9fc 0%, #f7f9fc 45%, #e4ecf7 100%); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.sub-visual::after { content: ""; position: absolute; right: -40px; top: -60px; width: 520px; height: 280px;
    background: repeating-linear-gradient(90deg, rgba(31, 95, 174, .07) 0 1px, transparent 1px 22px),
                repeating-linear-gradient(0deg, rgba(31, 95, 174, .07) 0 1px, transparent 1px 22px);
    transform: skewX(-18deg); }
.sub-visual .wrap { height: 100%; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; }
.sub-visual h2 { font-size: 34px; font-weight: 700; color: #333; letter-spacing: -1px; }
.sub-visual .path { margin-top: 6px; color: var(--muted); font-size: 13px; }

.content { padding: 40px 0 70px; min-height: 420px; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #c5cedd; }
.footer .info { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; padding: 22px 20px; }
.footer .stat { font-size: 13px; }
.footer .stat b { color: #fff; }
.footer .notice-roll { width: 360px; border: 1px solid rgba(255, 255, 255, .35); padding: 0 14px; height: 52px; clip-path: inset(-10px 0 0 0); /* 아래로 넘치는 공지만 가리고 위쪽 라벨은 보이게 */ position: relative; }
.footer .notice-roll ul { transition: transform .5s; }
.footer .notice-roll li { height: 50px; line-height: 1.5; display: flex; align-items: center; }
.footer .notice-roll a { color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.footer .notice-roll .label { position: absolute; top: -9px; left: 10px; background: var(--navy); padding: 0 6px; font-size: 11px; color: var(--point); }
.footer .copy { background: #151f33; text-align: center; font-size: 12px; padding: 12px 0; color: #8d99ae; }

/* ---------- common ui ---------- */
.sec-title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; margin: 28px 0 12px; }
.sec-title:first-child { margin-top: 0; }
.sec-title::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--point); }
.sec-title .sub { font-size: 13px; color: var(--muted); font-weight: 400; }

.guide { color: #555; font-size: 13px; margin: 6px 0 12px; }
.guide li::before { content: "* "; }
.guide.box { background: #f7f9fc; border: 1px solid var(--line); padding: 12px 16px; }
.text-blue { color: var(--primary); }
.text-red { color: var(--danger); }
.text-muted { color: var(--muted); }
.req::before { content: "*"; color: var(--danger); margin-right: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 32px; padding: 0 14px; border: 1px solid var(--line-dark);
       background: #fff; color: #333; border-radius: var(--radius); cursor: pointer; font-size: 13px; white-space: nowrap; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); color: #fff; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--danger); border-color: #e6b3b5; }
.btn.lg { height: 46px; padding: 0 30px; font-size: 16px; }
.btn.sm { height: 26px; padding: 0 9px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-area { display: flex; gap: 6px; justify-content: flex-end; margin: 12px 0; }
.btn-area.center { justify-content: center; margin-top: 30px; }
.btn-area.between { justify-content: space-between; align-items: center; }

input[type=text], input[type=password], input[type=email], input[type=date], input[type=search], select, textarea {
    height: 32px; border: 1px solid var(--line-dark); border-radius: 3px; padding: 0 8px; background: #fff; color: var(--text); }
textarea { height: auto; padding: 8px; resize: vertical; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(31, 95, 174, .25); border-color: var(--primary); }
input[readonly] { background: #f3f4f6; }
input[type=file] { color: var(--muted); font-size: 13px; }
input[type=file]::file-selector-button { height: 32px; padding: 0 14px; margin-right: 10px; border: 1px solid var(--line-dark); background: #fff; color: #333; border-radius: 3px; font: inherit; font-size: 13px; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--primary); color: var(--primary); }
input:disabled, select:disabled, textarea:disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }
.w-full { width: 100%; }
.w-60 { width: 60px; } .w-90 { width: 90px; } .w-120 { width: 120px; } .w-150 { width: 150px; } .w-200 { width: 200px; } .w-260 { width: 260px; } .w-400 { width: 400px; }
label.chk { display: inline-flex; align-items: center; gap: 4px; margin-right: 14px; cursor: pointer; }
.field-error { color: var(--danger); font-size: 12px; margin-top: 3px; }

/* search box */
.search-box { border: 1px solid var(--line); background: #fafbfc; padding: 8px 20px; }
.search-box .row { display: flex; align-items: center; border-bottom: 1px solid #eceff3; padding: 7px 0; flex-wrap: wrap; }
.search-box .row:last-child { border-bottom: 0; }
.search-box .item { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 360px; }
.search-box .item.wide { flex-basis: 100%; }
.search-box .item > .lbl { width: 100px; flex-shrink: 0; color: #444; padding-left: 12px; }
.date-range { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; white-space: nowrap; }
.date-range .quick { display: flex; gap: 3px; margin-left: 8px; }

/* list table */
.list-top { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 8px; }
.list-top .total b { color: var(--primary); }
.tbl { width: 100%; border-collapse: collapse; border-top: 2px solid var(--primary); }
.tbl th { background: #f5f7fa; color: #2b4a75; font-weight: 600; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: 13px; }
.tbl td { padding: 10px 6px; border-bottom: 1px solid #eceff3; text-align: center; font-size: 13px; }
.tbl tbody tr:hover { background: #f9fbfe; }
.tbl td.left { text-align: left; }
.tbl td.empty { padding: 40px 0; color: var(--muted); }
.tbl .stack { display: flex; flex-direction: column; gap: 4px; }
.tbl .stack span + span { border-top: 1px dashed #e2e6ec; padding-top: 4px; color: var(--muted); }
.tbl a.title { color: #222; }
.tbl a.title:hover { color: var(--primary); text-decoration: underline; }
.tbl .fixed td { background: #fbfcf4; }

/* view / form table */
.tbl-form { width: 100%; border-collapse: collapse; border-top: 2px solid var(--primary); }
.tbl-form th { width: 170px; background: #f5f7fa; text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); font-weight: 500; color: #333; vertical-align: middle; }
.tbl-form td { padding: 9px 14px; border-bottom: 1px solid var(--line); }
.tbl-form .inline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.panel { background: #f9fafb; border: 1px solid var(--line); padding: 22px 40px; }
.panel dl { display: grid; grid-template-columns: 140px 1fr 140px 1fr; row-gap: 10px; }
.panel dt { color: #555; }
.panel dd { margin: 0; color: #222; }

/* status badge */
.st { font-weight: 600; }
.st-wait { color: #7a5c00; }
.st-prepare { color: var(--ok); }
.st-done { color: var(--primary); }
.st-reject { color: var(--danger); }
.badge { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 10px; background: var(--accent-light); color: var(--accent); font-weight: 600; }
.badge.red { background: #fdecec; color: var(--danger); }

/* pagination */
.paging { display: flex; justify-content: center; gap: 3px; margin-top: 24px; }
.paging a, .paging strong { min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); font-size: 13px; padding: 0 6px; }
.paging strong { background: var(--primary); color: #fff; border-color: var(--primary); }

/* steps */
.steps { display: flex; margin-bottom: 34px; }
.steps li { flex: 1; height: 46px; background: #5d6476; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 0; border-left: 14px solid #5d6476; border-top: 23px solid transparent; border-bottom: 23px solid transparent; z-index: 2; }
.steps li.on { background: var(--primary); font-weight: 600; }
.steps li.on::after { border-left-color: var(--primary); }

/* alert box */
.msg-box { padding: 12px 16px; border: 1px solid #f0c7c9; background: #fdf3f3; color: #9b1c22; margin-bottom: 16px; border-radius: 3px; }
.msg-box.info { border-color: #c9d9ef; background: #f2f7fd; color: #1c4a86; }

/* login / complete */
.login-box { width: 440px; margin: 30px auto; border: 1px solid var(--line); padding: 40px 44px; background: #fff; box-shadow: 0 6px 20px rgba(17, 38, 75, .06); }
.login-box h3 { font-size: 22px; text-align: center; margin-bottom: 6px; }
.login-box p.desc { text-align: center; color: var(--muted); margin-bottom: 24px; font-size: 13px; }
.login-box input { width: 100%; height: 44px; margin-bottom: 10px; }
.login-box .btn { width: 100%; height: 46px; font-size: 16px; }
.login-box .links { display: flex; justify-content: center; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.done-box { text-align: center; padding: 50px 20px; border: 1px solid var(--line); background: #fafbfc; }
.done-box .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 34px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.done-box h3 { font-size: 22px; margin-bottom: 10px; }
.done-box .no { font-size: 18px; color: var(--primary); font-weight: 700; margin: 10px 0; }

/* terms */
.terms-box { height: 220px; overflow-y: auto; border: 1px solid var(--line); padding: 16px 20px; background: #fafbfc; font-size: 13px; color: #444; white-space: pre-line; }
.terms-agree { text-align: right; margin: 8px 0 26px; }

/* main */
.hero { position: relative; height: 420px; overflow: hidden; background: linear-gradient(120deg, #13294b 0%, #1f5fae 55%, #1b8a9e 100%); color: #fff; }
.hero .wrap { position: relative; height: 100%; display: flex; align-items: center; z-index: 1; }
.hero .copy h2 { font-size: 40px; font-weight: 700; letter-spacing: -1px; line-height: 1.3; }
.hero .copy h2 em { font-style: normal; color: #bfe36a; }
.hero .copy p { margin-top: 16px; font-size: 16px; color: #d6e3f5; line-height: 1.7; }
.hero .copy .btn-area { justify-content: flex-start; margin-top: 30px; gap: 10px; }
.hero .copy .btn { height: 46px; padding: 0 26px; font-size: 15px; border: 0; }
.hero .copy .btn.ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .6); color: #fff; }
.hero .art { position: absolute; right: 10px; top: 30px; width: 560px; height: 360px; }
.hero .grid-bg { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 40px); }

.quick-menu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -46px; position: relative; z-index: 2; }
.quick-menu a { background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(17, 38, 75, .1); padding: 22px 22px; display: flex; gap: 14px; align-items: center; border-radius: 6px; }
.quick-menu a:hover { border-color: var(--primary); }
.quick-menu .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.quick-menu .ico svg { width: 26px; height: 26px; stroke: var(--accent); }
.quick-menu strong { display: block; font-size: 16px; color: #222; }
.quick-menu span { font-size: 12px; color: var(--muted); }

.main-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 26px; margin: 46px 0 70px; }
.main-box { border: 1px solid var(--line); padding: 22px 24px; }
.main-box h3 { font-size: 17px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.main-box h3 a { font-size: 12px; color: var(--muted); font-weight: 400; }
.main-box .nlist li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed #e4e8ee; }
.main-box .nlist li:last-child { border-bottom: 0; }
.main-box .nlist a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 75%; }
.main-box .nlist .date { color: var(--muted); font-size: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-grid div { background: #f6f8fb; border-radius: 6px; text-align: center; padding: 14px 6px; }
.stat-grid b { display: block; font-size: 24px; color: var(--primary); }
.stat-grid span { font-size: 12px; color: var(--muted); }
.process { display: flex; justify-content: space-between; margin-top: 8px; counter-reset: step; }
.process li { flex: 1; text-align: center; font-size: 12px; color: #444; position: relative; padding-top: 42px; }
.process li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.process li:not(:last-child)::after { content: ""; position: absolute; top: 15px; left: calc(50% + 20px); width: calc(100% - 40px); border-top: 2px dashed #b8d9df; }

/* request detail */
.view-cols { display: grid; grid-template-columns: 1fr 460px; gap: 20px; }
.area-map { width: 100%; height: 420px; border: 1px solid var(--line); }
.area-list li { padding: 6px 0; border-bottom: 1px dashed #e4e8ee; display: flex; justify-content: space-between; gap: 10px; }
.layer-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.layer-tags span { background: #eef3fa; border: 1px solid #d4e0f0; color: #2b4a75; font-size: 12px; padding: 2px 8px; border-radius: 3px; }
.notice-view { border-top: 2px solid var(--primary); }
.notice-view .head { padding: 16px 10px; border-bottom: 1px solid var(--line); }
.notice-view .head h3 { font-size: 18px; }
.notice-view .head .meta { color: var(--muted); font-size: 12px; margin-top: 6px; display: flex; gap: 16px; }
.notice-view .body { padding: 26px 10px; min-height: 200px; white-space: pre-line; border-bottom: 1px solid var(--line); }
.notice-view .files { padding: 10px; border-bottom: 1px solid var(--line); background: #fafbfc; font-size: 13px; }
.manual-list li { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.manual-list li:first-child { border-top: 2px solid var(--primary); }
.manual-list strong { font-size: 15px; }
.manual-list p { color: var(--muted); font-size: 13px; margin-top: 3px; }

/* ---------- 신청 자료 종류 탭 (수치·영상지도 / 포인트클라우드) ---------- */
.apply-tabs { display: flex; border-bottom: 2px solid var(--primary); margin-bottom: 12px; }
.apply-tabs button { height: 42px; padding: 0 26px; border: 1px solid var(--line); border-bottom: 0; background: #f4f6f9; color: #555; font-size: 15px; cursor: pointer; margin-right: -1px; }
.apply-tabs button:hover { color: var(--primary); }
.apply-tabs button.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
#applySection[data-kind=MAP] .kind-pc, #applySection[data-kind=POINTCLOUD] .kind-map { display: none; }

/* ---------- 신청내역 상세 : 포인트클라우드 자료 ---------- */
.pc-viewer { width: 100%; height: 420px; border: 1px solid var(--line); background: #1b1f27; display: block; }
.pc-items li { padding: 8px 0; border-bottom: 1px dashed #e4e8ee; display: flex; justify-content: space-between; gap: 10px; cursor: pointer; }
.pc-items li.on .nm { color: var(--primary); font-weight: 600; }

/* 사용기간 (신청 화면 · 신청현황) */
.use-period input[type=date] { width: 170px; }
.use-period input[type=date]:disabled { background: #f2f3f5; color: #aaa; }
.use-period .quick { display: flex; gap: 3px; }
.us { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.us-use { background: #e8f0fb; color: #2b4b93; }
.us-soon { background: #fff4e0; color: #b26a00; }
.us-disposal { background: #fdecec; color: #c62828; }
.us-detected { background: #e5484d; color: #fff; }
.us-none { background: #f0f1f3; color: #888; }
.use-msg { margin-top: 6px; font-size: 13px; }
