/* 투어웍스 공통 스타일 — 조용하고 촘촘한 업무 화면. 색은 잉크 네이비 하나만 강조색으로 쓴다. */
:root {
  --navy: #14274A; --blue: #1F3A68; --ink: #18202F; --sub: #5B6677; --faint: #8A94A6;
  --line: #E4E8EE; --line-strong: #CCD3DD; --bg: #F5F6F8; --surface: #FFFFFF; --tint: #F1F4F9;
  --warn: #A4430B; --warn-bg: #FCEFE6; --ok: #1E6B3A; --ok-bg: #E8F4EC; --blue-bg: #E9EEF8;
  --radius: 8px; --shadow: 0 1px 2px rgba(20, 39, 74, .05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg);
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
h1 { font-size: 19px; font-weight: 650; margin: 0; letter-spacing: -.2px; }
h2 { font-size: 14px; font-weight: 650; margin: 0; }
p { margin: 0; }
input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea {
  border: 1px solid var(--line-strong); border-radius: 6px; padding: 7px 10px; background: #fff; max-width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
input:hover, select:hover, textarea:hover { border-color: #AEB8C6; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 58, 104, .14); }
input::placeholder, textarea::placeholder { color: #A7B0BE; }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); width: 15px; height: 15px; padding: 0; vertical-align: -2px; }
input[type=file] { border: 0; padding: 0; font-size: 13px; }
textarea { width: 100%; resize: vertical; line-height: 1.55; }
/* 비밀값 입력칸: type=password 를 쓰면 브라우저가 로그인 정보를 채워 넣어서, 글자만 가린다 */
input.secret { -webkit-text-security: disc; }
button {
  border: 1px solid var(--line-strong); background: #fff; border-radius: 6px; padding: 7px 13px; cursor: pointer; font-weight: 500;
  white-space: nowrap; transition: background .12s, border-color .12s;
}
button:hover { background: var(--tint); border-color: #AEB8C6; }
button:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(31, 58, 104, .2); }
button.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
button.primary:hover { background: var(--blue); border-color: var(--blue); }
button:disabled { opacity: .5; cursor: default; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--sub); }
details > summary { cursor: pointer; font-weight: 500; color: var(--blue); }

/* 위 메뉴 */
.topbar {
  background: var(--surface); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px;
  padding: 0 24px; min-height: 52px; position: sticky; top: 0; z-index: 5;
}
.topbar strong { display: flex; align-items: center; margin-right: 22px; color: var(--navy); font-size: 15px; font-weight: 800; letter-spacing: 1.2px; }
.topbar a { display: flex; align-items: center; padding: 0 12px; color: var(--sub); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.topbar a:hover { color: var(--ink); }
.topbar a.on { color: var(--navy); border-bottom-color: var(--navy); font-weight: 650; }
.topbar .right { display: flex; align-items: center; margin-left: auto; font-size: 13px; color: var(--sub); }

/* 화면 틀 */
.page { padding: 22px 24px 48px; display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.side { flex: 1 1 280px; max-width: 320px; display: flex; flex-direction: column; gap: 18px; }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel > header { padding: 13px 16px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; align-items: center; }
.panel > header button { padding: 5px 11px; font-size: 13px; }
.panel .body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.side .body input, .side .body select { width: 100%; }

/* 목록 (캠페인 고르기) */
.list { padding: 6px; }
.list button { display: block; width: 100%; text-align: left; border: 0; border-radius: 6px; padding: 9px 10px; font-weight: 500; white-space: normal; line-height: 1.4; }
.list button .muted { font-weight: 400; font-size: 12.5px; }
.list button.on { background: var(--blue-bg); color: var(--navy); font-weight: 650; }

/* 표 */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
th { background: #FAFBFC; font-weight: 500; font-size: 12.5px; color: var(--sub); white-space: nowrap; padding-top: 8px; padding-bottom: 8px; }
tr:last-child > td { border-bottom: 0; }
tbody tr:hover > td { background: #FAFBFD; }
td.nowrap { white-space: nowrap; }
td .row { gap: 6px; flex-wrap: nowrap; }
td input, td select, td button { padding: 5px 8px; font-size: 13px; }

/* 꼬리표 · 안내 */
.tag { display: inline-block; font-size: 11.5px; font-weight: 500; line-height: 18px; border-radius: 4px; padding: 0 6px; margin-right: 4px; white-space: nowrap; background: #EEF1F5; color: var(--sub); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.blue { background: var(--blue-bg); color: var(--blue); }
.muted { color: var(--sub); font-size: 13px; }
.msg { padding: 10px 12px; background: var(--blue-bg); border-radius: 6px; color: var(--navy); font-size: 13.5px; }
.msg.err { background: var(--warn-bg); color: #7A3208; }
.empty { padding: 28px 16px; color: var(--faint); text-align: center; font-size: 13.5px; }
td.empty { padding: 28px 16px; }

/* 로그인 */
.auth { min-height: calc(100vh - 53px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.auth .panel { width: 380px; max-width: 100%; }
.auth .panel > header { padding: 18px 20px; }
.auth .panel > header h2 { font-size: 17px; }
.auth .panel > header button { border: 0; background: none; color: var(--blue); padding: 0; }
.auth .body { padding: 20px; }
.auth input, .auth select { padding: 10px 12px; }
.auth button.primary { padding: 11px; margin-top: 4px; }
.auth .lede { color: var(--sub); font-size: 13px; text-align: center; margin-top: 14px; }

/* 고객용 링크 화면 (휴대폰) */
.mobile { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #fff; display: flex; flex-direction: column; }
.mobile > header { background: var(--navy); color: #fff; padding: 20px 20px 18px; }
.mobile > header .agency { font-size: 13px; color: #C5D0E3; }
.mobile > header h1 { font-size: 21px; margin-top: 4px; }
.mobile main { padding: 18px 20px 32px; display: flex; flex-direction: column; gap: 22px; }
.mobile fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.mobile legend { font-weight: 650; font-size: 15px; padding: 0; margin-bottom: 8px; color: var(--ink); }
.mobile label { font-size: 13.5px; }
.mobile input, .mobile textarea, .mobile select { font-size: 16px; padding: 12px; border-radius: 8px; }
.mobile button { padding: 14px; font-size: 16px; border-radius: 8px; }
.mobile .empty { text-align: left; padding: 0; }
.choice { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line-strong); border-radius: 8px; padding: 13px 12px; flex-direction: row; font-size: 15px; font-weight: 400; color: var(--ink); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--blue-bg); }
.choice input { width: 20px; height: 20px; margin: 0; flex: none; }
.choice .grow { flex: 1; }
.pax { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pax input { width: 100%; }

@media (max-width: 720px) {
  .topbar { padding: 0 14px; }
  .page { padding: 14px; }
  .side { max-width: none; }
}

.topbar .right { gap: 12px; }
button.link { border: 0; background: none; padding: 0; color: var(--blue); font-weight: 500; font-size: 13px; }
button.link:hover { background: none; text-decoration: underline; }

/* 운영자 화면 안에 끼워 보여 줄 때 (?view=업체id) */
.embed .topbar { position: static; min-height: 44px; }
.embed .topbar strong, .embed .topbar .right { display: none; }
.embed .page { padding-top: 16px; }

/* ── 비밀번호 찾기 · 재설정 · 이메일 등록 (로그인 화면들) ── */
.auth .foot { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 12px; font-size: 13px; }
.auth .foot a, .auth .foot button.link { color: var(--blue); text-decoration: none; }
.auth .foot a:hover { text-decoration: underline; }
.auth form[hidden] { display: none; }

/* 예약 확인 링크: 여권 내용 본인 확인 */
.pp-check { border: 1px solid #e3e6ee; border-radius: 10px; padding: 12px; margin: 10px 0; display: flex; flex-direction: column; gap: 4px; }
.pp-check strong { letter-spacing: .04em; }
.pp-check .check { margin-top: 6px; display: flex; align-items: center; gap: 8px; }
