/* ══════════════════════════════════════════════════════
   HILLMARU GOLF & RESORT  ·  여행사 파트너 포털  ·  agency.css
   ══════════════════════════════════════════════════════ */

:root {
  --green-deep  : #060020;
  --green-mid   : #0d0a4a;
  --gold        : #c9a96a;
  --gold-light  : #fdf8f0;
  --white       : #ffffff;
  --bg          : #f4f6f8;
  --card-bg     : #ffffff;
  --text-dark   : #1a1a1a;
  --text-mid    : #4a4a4a;
  --text-muted  : #8a8a8a;
  --border      : #e4e8ec;
  --sidebar-w   : 220px;
  --header-h    : 58px;
  --sans        : 'Inter', 'Noto Sans KR', sans-serif;
  --kr          : 'Noto Sans KR', sans-serif;
  --serif       : 'Cormorant Garamond', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--bg); color: var(--text-dark); transition: background .2s, color .2s; }

/* ══════════════════════════════
   다크모드 변수 오버라이드
══════════════════════════════ */
[data-theme="dark"] {
  --green-deep  : #0e0b35;
  --green-mid   : #1a166a;
  --gold        : #d4b070;
  --gold-light  : #1e1a0e;
  --white       : #1e2130;
  --bg          : #13161e;
  --card-bg     : #1e2130;
  --text-dark   : #e2e6f0;
  --text-mid    : #a0a8bc;
  --text-muted  : #5c6478;
  --border      : #2e3448;
}
[data-theme="dark"] body { background: #13161e; }
[data-theme="dark"] .ap-header { background: #0e0b35; box-shadow: 0 2px 16px rgba(0,0,0,.5); }
[data-theme="dark"] .ap-sidebar { background: #1e2130; border-right-color: #2e3448; }
[data-theme="dark"] .ap-sidebar-profile { border-bottom-color: #2e3448; }
[data-theme="dark"] .ap-profile-name { color: #e2e6f0; }
[data-theme="dark"] .ap-nav-item { color: #a0a8bc; }
[data-theme="dark"] .ap-nav-item:hover { background: rgba(255,255,255,.06); color: #e2e6f0; }
[data-theme="dark"] .ap-nav-item--active,
[data-theme="dark"] .ap-nav-item.active { background: rgba(201,169,106,.15); color: #d4b070; }
[data-theme="dark"] .ap-sidebar-bottom { border-top-color: #2e3448; }
[data-theme="dark"] .ap-sidebar-link { color: #5c6478; }
[data-theme="dark"] .ap-sidebar-link:hover { color: #a0a8bc; }
[data-theme="dark"] .ap-nav-group-label { color: #3a4060; }
[data-theme="dark"] .ap-card { background: #1e2130; border-color: #2e3448; box-shadow: 0 2px 12px rgba(0,0,0,.3); }
[data-theme="dark"] .ap-card-head { border-bottom-color: #2e3448; }
[data-theme="dark"] .ap-card-title { color: #e2e6f0; }
[data-theme="dark"] .ap-kpi-card { background: #1e2130; border-color: #2e3448; }
[data-theme="dark"] .ap-kpi-num  { color: #e2e6f0; }
[data-theme="dark"] .ap-kpi-label { color: #5c6478; }
[data-theme="dark"] .ap-table-wrap { background: #1e2130; border-color: #2e3448; }
[data-theme="dark"] .ap-table thead th { background: #252a3a; color: #5c6478; border-bottom-color: #2e3448; }
[data-theme="dark"] .ap-table tbody tr { border-bottom-color: #2e3448; }
[data-theme="dark"] .ap-table tbody td { color: #e2e6f0; }
[data-theme="dark"] .ap-resv-row:hover { background: rgba(201,169,106,.08) !important; }
[data-theme="dark"] .ap-filter-bar { background: #1e2130; border-color: #2e3448; }
[data-theme="dark"] .ap-search-wrap { background: #252a3a; border-color: #2e3448; }
[data-theme="dark"] .ap-search-input { background: transparent; color: #e2e6f0; }
[data-theme="dark"] .ap-status-tabs { background: #252a3a; }
[data-theme="dark"] .ap-stab { color: #a0a8bc; }
[data-theme="dark"] .ap-stab.active { background: #1e2130; color: #d4b070; box-shadow: 0 1px 4px rgba(0,0,0,.3); }

[data-theme="dark"] .ap-form-label { color: #a0a8bc; }
[data-theme="dark"] .ap-form-input,
[data-theme="dark"] .ap-form-select,
[data-theme="dark"] .ap-form-textarea { background: #252a3a; border-color: #2e3448; color: #e2e6f0; }
[data-theme="dark"] .ap-form-input:focus,
[data-theme="dark"] .ap-form-select:focus,
[data-theme="dark"] .ap-form-textarea:focus { border-color: var(--gold); }

[data-theme="dark"] .ap-pkg-opt-inner { background: #252a3a; border-color: #2e3448; }
[data-theme="dark"] .ap-pkg-option input:checked + .ap-pkg-opt-inner { background: rgba(201,169,106,.1); border-color: var(--gold); }
[data-theme="dark"] .ap-pkg-opt-text { color: #e2e6f0; }
[data-theme="dark"] .ap-modal { background: #1e2130; }
[data-theme="dark"] .ap-modal-body { background: #1e2130; }
[data-theme="dark"] .ap-modal-footer { background: #252a3a; border-top-color: #2e3448; }
[data-theme="dark"] .ap-detail-table tr { border-bottom-color: #2e3448; }
[data-theme="dark"] .ap-detail-table th { color: #5c6478; }
[data-theme="dark"] .ap-detail-table td { color: #e2e6f0; }
[data-theme="dark"] .ap-modal-req-textarea { background: #252a3a; border-color: #2e3448; color: #e2e6f0; }
[data-theme="dark"] .ap-modal-cancel-btn { background: #252a3a; border-color: #2e3448; color: #a0a8bc; }
[data-theme="dark"] .ap-price-table { background: #1e2130; border-color: #2e3448; }
[data-theme="dark"] .ap-price-table thead th { background: #252a3a; border-bottom-color: #2e3448; }
[data-theme="dark"] .ap-price-table tbody tr { border-bottom-color: #2e3448; }
[data-theme="dark"] .ap-price-table tbody td { color: #e2e6f0; }
[data-theme="dark"] .ap-price-num { color: #d4b070; }
[data-theme="dark"] .ap-notice-item { background: #1e2130; border-color: #2e3448; }
[data-theme="dark"] .ap-notice-item:hover { border-color: var(--gold); }
[data-theme="dark"] .ap-notice-item--pinned { background: rgba(201,169,106,.07); border-color: #3a3010; }
[data-theme="dark"] .ap-notice-title { color: #e2e6f0; }
[data-theme="dark"] .ap-grp-team-header { background: #252a3a; border-color: #2e3448; }
[data-theme="dark"] .ap-grp-team-row { background: #1e2130; border-color: #2e3448; }
[data-theme="dark"] .ap-grp-team-row:hover { background: rgba(201,169,106,.06); }
[data-theme="dark"] .ap-dash-resv-item { background: #252a3a; border-color: #2e3448; }
[data-theme="dark"] .ap-link-box,
[data-theme="dark"] .ap-link-big-box { background: #252a3a; border-color: #2e3448; }
[data-theme="dark"] .ap-link-url,
[data-theme="dark"] .ap-link-big-url { color: #6aa0f0; }
[data-theme="dark"] .ap-view-title { color: #e2e6f0; }
[data-theme="dark"] .ap-view-sub   { color: #5c6478; }
[data-theme="dark"] .ap-loading-box { color: #5c6478; }

/* ── 헤더는 항상 어두운 배경 → 다크모드에서도 텍스트 색상 고정 ── */
[data-theme="dark"] .ap-header-page-title { color: rgba(255,255,255,.45); }
[data-theme="dark"] .ap-header-clock { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .ap-sidebar-toggle { color: rgba(255,255,255,.7); }
[data-theme="dark"] .ap-sidebar-toggle:hover { background: rgba(255,255,255,.12); }
[data-theme="dark"] .ap-ar-btn { background: rgba(255,255,255,.07); color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .ap-ar-btn:hover { background: rgba(255,255,255,.14); color: #ffffff; }
[data-theme="dark"] .ap-icon-btn { background: rgba(255,255,255,.07); color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .ap-icon-btn:hover { background: rgba(255,255,255,.18); color: #ffffff; }
[data-theme="dark"] .ap-icon-btn--new { background: rgba(201,169,106,.2); color: #c9a96a; border-color: rgba(201,169,106,.35); }
[data-theme="dark"] .ap-header-agency { color: rgba(255,255,255,.75); }
[data-theme="dark"] .ap-logout-btn { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.15); }
[data-theme="dark"] .ap-logout-btn:hover { background: rgba(255,255,255,.2); color: #ffffff; }
[data-theme="dark"] #apClockTime { color: rgba(255,255,255,.9); }
[data-theme="dark"] .ap-clock-date { color: rgba(255,255,255,.5); }

/* ══════════════════════════════
   UTILITIES
══════════════════════════════ */
.hidden { display: none !important; }
.req { color: #dc2626; }

/* ══════════════════════════════
   LOGIN SCREEN
══════════════════════════════ */
.ap-login-screen {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--green-deep) 0%, #1a1060 60%, #0d0a4a 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.ap-login-card {
  background: rgba(255,255,255,.97);
  border-radius: 20px;
  padding: 40px 40px 32px;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.ap-login-logo {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.ap-login-logo-img { height: 40px; object-fit: contain; }
.ap-logo-main {
  display: block; font-family: var(--serif); font-size: 1.4rem;
  font-weight: 500; color: var(--green-deep); letter-spacing: .12em;
}
.ap-logo-sub {
  display: block; font-family: var(--kr); font-size: .72rem;
  color: var(--gold); font-weight: 600; letter-spacing: .05em;
}
.ap-login-divider {
  height: 1px; background: var(--border); margin-bottom: 22px;
}
.ap-login-title {
  font-size: 1.15rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 5px;
}
.ap-login-desc {
  font-size: .82rem; color: var(--text-muted); margin-bottom: 22px;
}
.ap-login-form { display: flex; flex-direction: column; gap: 14px; }
.ap-login-group { display: flex; flex-direction: column; gap: 5px; }
.ap-login-label {
  font-size: .78rem; font-weight: 600; color: var(--text-mid);
  display: flex; align-items: center; gap: 6px;
}
.ap-login-input {
  padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .88rem; color: var(--text-dark); outline: none;
  transition: border-color .15s; font-family: var(--sans);
}
.ap-login-input:focus { border-color: var(--gold); }
.ap-login-input.is-invalid { border-color: #dc2626; }
.ap-pw-wrap { position: relative; display: flex; align-items: center; }
.ap-pw-wrap .ap-login-input { flex: 1; padding-right: 40px; }
.ap-eye-btn {
  position: absolute; right: 10px; background: none; border: none;
  color: var(--text-muted); cursor: pointer; font-size: .88rem;
  display: flex; align-items: center; justify-content: center;
}
.ap-login-err {
  font-size: .8rem; color: #dc2626; min-height: 18px; text-align: center;
}
.ap-login-btn {
  padding: 12px; background: var(--green-deep); color: #ffffff;
  border: none; border-radius: 9px; font-size: .95rem; font-weight: 700;
  cursor: pointer; transition: background .15s; margin-top: 4px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  letter-spacing: .04em; width: 100%;
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.ap-login-btn:hover { background: #1a166a; }
.ap-login-btn:disabled { opacity: .6; cursor: not-allowed; }
.ap-login-footer {
  text-align: center; font-size: .75rem; color: var(--text-muted);
  margin-top: 18px;
}

/* ══════════════════════════════
   PORTAL LAYOUT
══════════════════════════════ */
.ap-portal-hidden { display: none; }
.ap-portal-visible {
  display: block;
  min-height: 100vh;
}

/* HEADER */
.ap-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--header-h);
  background: var(--green-deep);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.ap-header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 0 14px;
  gap: 0;
}

/* 좌측: 햄버거 + 로고묶음 */
.ap-header-left {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0; min-width: 0;
}
.ap-header-logo {
  display: flex; flex-direction: column; gap: 1px;
  min-width: 0;
}
.ap-hlogo-row {
  display: flex; align-items: center;
}

/* 현재 뷰 이름: 로고 바로 아래 서브텍스트 */
.ap-header-page-title {
  font-size: .68rem; font-weight: 600;
  color: rgba(255,255,255,.45);
  letter-spacing: .06em; white-space: nowrap;
  text-overflow: ellipsis; overflow: hidden;
  line-height: 1;
  padding-left: 2px;
  text-transform: uppercase;
}

.ap-sidebar-toggle {
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  color: rgba(255,255,255,.7); font-size: 1.1rem;
  cursor: pointer; padding: 6px; border-radius: 6px;
  transition: background .14s;
}
.ap-sidebar-toggle:hover { background: rgba(255,255,255,.12); }
.ap-hlogo-main {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 500;
  color: #ffffff; letter-spacing: .12em;
}
.ap-hlogo-sep { color: #c9a96a; margin: 0 5px; font-size: .9rem; }
.ap-hlogo-sub {
  font-family: var(--kr); font-size: .72rem; color: rgba(255,255,255,.6);
  font-weight: 500; letter-spacing: .03em;
}

/* ── 헤더 구분선 ── */
.ap-header-divider {
  display: block; width: 1px; height: 20px;
  background: rgba(255,255,255,.15);
  margin: 0 4px; flex-shrink: 0;
}

/* ── 헤더 우측 영역: 절대 고정 ── */
.ap-header-right {
  display: flex; align-items: center; gap: 5px;
  flex-shrink: 0; /* 절대 줄어들지 않음 */
  margin-left: auto; /* 좌측 밀어냄 */
  padding-left: 12px;
}

/* 실시간 시계 */
.ap-header-clock {
  display: flex; align-items: center; gap: 5px;
  font-size: .75rem; color: rgba(255,255,255,.6);
  padding: 4px 10px; border-radius: 7px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  white-space: nowrap;
}
.ap-header-clock i { color: #c9a96a; font-size: .7rem; }
#apClockTime {
  font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.9);
  font-family: 'Inter', monospace; letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  min-width: 56px;   /* HH:MM:SS 최대 너비 고정 */
  display: inline-block; text-align: center;
}
.ap-clock-date {
  font-size: .7rem; color: rgba(255,255,255,.5);
  padding-left: 5px; border-left: 1px solid rgba(255,255,255,.15);
  margin-left: 2px;
}

/* 자동 새로고침 버튼 */
.ap-ar-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 7px;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.12); font-size: .75rem;
  cursor: pointer; transition: all .14s; white-space: nowrap;
}
.ap-ar-btn:hover { background: rgba(255,255,255,.14); color: #ffffff; }
.ap-ar-btn.ap-ar-btn--on { background: rgba(6,200,80,.15); border-color: rgba(6,200,80,.35); color: #4ade80; }
.ap-ar-btn.ap-ar-btn--on i { color: #4ade80; animation: ap-spin .8s linear infinite; }
.ap-ar-label { font-weight: 600; font-size: .72rem; }
.ap-ar-countdown {
  font-size: .7rem; background: rgba(255,255,255,.12); border-radius: 4px;
  padding: 1px 5px; font-family: 'Inter', monospace; font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 28px;   /* "30초" 최대 너비 고정 */
  display: inline-block; text-align: center;
}
@keyframes ap-spin { to { transform: rotate(360deg); } }

/* 아이콘 버튼 (새로고침, 다크모드, 신규예약) */
.ap-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 7px;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.12); font-size: .9rem;
  cursor: pointer; transition: all .14s;
}
.ap-icon-btn:hover { background: rgba(255,255,255,.18); color: #ffffff; }
.ap-icon-btn--new {
  background: rgba(201,169,106,.2); color: #c9a96a;
  border-color: rgba(201,169,106,.35);
}
.ap-icon-btn--new:hover { background: rgba(201,169,106,.35); color: #f0c878; }

.ap-header-agency {
  display: flex; align-items: center; gap: 7px;
  font-size: .8rem; color: rgba(255,255,255,.75); font-weight: 500;
  white-space: nowrap;
}
.ap-header-agency i { color: #c9a96a; }
.ap-logout-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 7px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.15); font-size: .78rem;
  cursor: pointer; transition: all .14s;
}
.ap-logout-btn:hover { background: rgba(255,255,255,.2); color: #ffffff; }

/* SIDEBAR */
.ap-sidebar {
  position: fixed; top: var(--header-h); left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1.5px solid var(--border);
  display: flex; flex-direction: column;
  overflow-y: auto; z-index: 100;
  transition: transform .3s ease;
}
.ap-sidebar-profile {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 16px; border-bottom: 1.5px solid var(--border);
}
.ap-profile-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green-deep), #0d0a4a);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: .95rem; flex-shrink: 0;
}
.ap-profile-name { font-size: .88rem; font-weight: 700; color: var(--text-dark); }
.ap-profile-id   { font-size: .73rem; color: var(--text-muted); margin-top: 2px; }
.ap-sidebar-nav {
  flex: 1; padding: 10px 8px;
  display: flex; flex-direction: column; gap: 2px;
  overflow-y: auto;
}
.ap-nav-group-label {
  font-size: .65rem; font-weight: 800; letter-spacing: .1em;
  color: var(--text-muted); text-transform: uppercase;
  padding: 4px 12px 2px; margin-top: 2px;
  opacity: .7;
}
.ap-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  font-size: .85rem; font-weight: 500; color: var(--text-mid);
  text-decoration: none; transition: all .14s;
  position: relative;
}
.ap-nav-item i { width: 18px; text-align: center; font-size: .88rem; }
.ap-nav-item:hover { background: var(--bg); color: var(--text-dark); }
.ap-nav-item--active,
.ap-nav-item.active {
  background: rgba(6,0,32,.07);
  color: var(--green-deep); font-weight: 700;
}
.ap-nav-item--active i,
.ap-nav-item.active i { color: var(--gold); }
.ap-nav-badge {
  margin-left: auto; background: #dc2626; color: var(--white);
  font-size: .65rem; font-weight: 700; padding: 1px 6px; border-radius: 10px;
  min-width: 18px; text-align: center;
}
.ap-nav-badge:empty { display: none; }
.ap-sidebar-bottom {
  padding: 12px 8px; border-top: 1.5px solid var(--border);
  display: flex; flex-direction: column; gap: 1px;
}
.ap-sidebar-link {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 8px;
  font-size: .8rem; color: var(--text-muted);
  text-decoration: none; transition: all .14s;
}
.ap-sidebar-link i { width: 16px; text-align: center; font-size: .8rem; color: var(--text-muted); }
.ap-sidebar-link:hover { background: var(--bg); color: var(--text-dark); }
.ap-sidebar-link:hover i { color: var(--gold); }

/* MAIN */
.ap-main {
  padding: 28px;
  padding-top: calc(var(--header-h) + 28px);
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* ══════════════════════════════
   VIEW
══════════════════════════════ */
.ap-view { animation: apFadeIn .25s ease; }
@keyframes apFadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
.ap-view-head { margin-bottom: 22px; }
.ap-view-title {
  font-size: 1.25rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 4px;
}
.ap-view-sub { font-size: .83rem; color: var(--text-muted); }

/* ══════════════════════════════
   KPI CARDS (대시보드)
══════════════════════════════ */
.ap-kpi-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 22px;
}
.ap-kpi-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.ap-kpi-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.ap-kpi-card--total   .ap-kpi-icon { background: #eff6ff; color: #2563eb; }
.ap-kpi-card--confirm .ap-kpi-icon { background: #ecfdf5; color: #059669; }
.ap-kpi-card--wait    .ap-kpi-icon { background: #fef9ec; color: #d97706; }
.ap-kpi-card--cancel  .ap-kpi-icon { background: #fef2f2; color: #dc2626; }
.ap-kpi-num   { font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--text-dark); }
.ap-kpi-label { font-size: .75rem; color: var(--text-muted); margin-top: 3px; }

/* ══════════════════════════════
   CARD
══════════════════════════════ */
.ap-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.ap-card--link { border-color: rgba(201,168,76,.35); }
.ap-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.ap-card-title {
  font-size: .9rem; font-weight: 700; color: var(--text-dark);
  display: flex; align-items: center; gap: 7px;
}
.ap-card-title i { color: var(--gold); }
.ap-card-more {
  font-size: .78rem; color: var(--text-muted); background: none;
  border: none; cursor: pointer; display: flex; align-items: center; gap: 4px;
  transition: color .14s;
}
.ap-card-more:hover { color: var(--green-deep); }
.ap-card-body { padding: 16px 18px; }

/* 대시보드 최근 예약 목록 */
.ap-dash-resv-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--border); gap: 10px;
  flex-wrap: wrap;
}
.ap-dash-resv-item:last-child { border-bottom: none; }
.ap-dash-resv-name  { font-size: .88rem; font-weight: 600; }
.ap-dash-resv-date  { font-size: .78rem; color: var(--text-muted); }
.ap-dash-resv-right { display: flex; align-items: center; gap: 8px; }
.ap-dash-resv-pkg   { font-size: .75rem; font-weight: 700;
  padding: 2px 8px; border-radius: 4px; }
.ap-dash-resv-pkg--a { background: #ecfdf5; color: #059669; }
.ap-dash-resv-pkg--b { background: #eff6ff; color: #2563eb; }

/* 링크 박스 */
.ap-link-body { }
.ap-link-desc { font-size: .83rem; color: var(--text-muted); margin-bottom: 12px; }
.ap-link-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border-radius: 8px; padding: 11px 14px;
  border: 1.5px solid var(--border);
}
.ap-link-url {
  font-size: .8rem; color: #2563eb; font-family: monospace;
  flex: 1; word-break: break-all; line-height: 1.4;
}
.ap-copy-btn {
  padding: 6px 14px; border-radius: 6px; border: 1.5px solid var(--border);
  background: var(--white); font-size: .78rem; color: var(--text-mid);
  cursor: pointer; white-space: nowrap; transition: all .14s;
  display: flex; align-items: center; gap: 5px; flex-shrink: 0;
}
.ap-copy-btn:hover { background: var(--green-deep); color: var(--white); border-color: var(--green-deep); }

/* ══════════════════════════════
   예약 목록
══════════════════════════════ */
.ap-filter-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.ap-search-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 7px 12px; flex: 1; min-width: 200px;
}
.ap-search-wrap i { color: var(--text-muted); font-size: .85rem; }
.ap-search-input {
  border: none; outline: none; background: transparent;
  font-size: .86rem; color: var(--text-dark); width: 100%;
}
.ap-status-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.ap-stab {
  padding: 6px 12px; border-radius: 20px; border: 1.5px solid var(--border);
  background: var(--white); font-size: .77rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: all .14s;
}
.ap-stab.active { background: var(--green-deep); color: var(--white); border-color: var(--green-deep); }

.ap-table-wrap {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; overflow-x: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.ap-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.ap-table thead tr { background: var(--bg); border-bottom: 1.5px solid var(--border); }
.ap-table th {
  padding: 9px 12px; font-size: .74rem; font-weight: 700;
  color: var(--text-muted); text-align: left; white-space: nowrap;
  letter-spacing: .03em;
}
.ap-table tbody tr { border-bottom: 1px solid var(--border); transition: background .12s; }
.ap-table tbody tr:last-child { border-bottom: none; }
.ap-table tbody tr:hover { background: #f9fbff; }
.ap-table td { padding: 10px 12px; font-size: .84rem; color: var(--text-dark); vertical-align: middle; }

/* 상태 배지 */
.ap-status-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 3px 8px; border-radius: 12px; font-size: .72rem; font-weight: 700;
}
.ap-status-badge--wait    { background: #fef5ec; color: #d97706; }
.ap-status-badge--review  { background: #f5eefb; color: #7c3aed; }
.ap-status-badge--confirm { background: #ecfdf5; color: #059669; }
.ap-status-badge--cancel  { background: #fef2f2; color: #dc2626; }

/* 빈 상태 */
.ap-empty {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 40px; color: var(--text-muted); font-size: .88rem;
}
.ap-empty i { font-size: 1.4rem; }

/* ══════════════════════════════
   신규 예약 뷰 — 전체 레이아웃
══════════════════════════════ */

/* 뷰 헤더: 타이틀(좌) + 모드 셀렉터(우) */
.ap-new-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; margin-bottom: 20px; flex-wrap: wrap;
}
.ap-new-header-text { flex: 1; min-width: 0; }
.ap-new-header-text .ap-view-title { margin-bottom: 4px; }

/* 모드 셀렉터 (헤더 우측) */
.ap-booking-mode-wrap {
  display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap;
}
.ap-booking-mode-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 10px;
  background: var(--white); border: 2px solid var(--border);
  cursor: pointer; transition: all .18s; white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.ap-booking-mode-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 3px 12px rgba(201,169,106,.18);
}
.ap-booking-mode-btn--active {
  border-color: var(--gold); background: var(--gold-light);
  box-shadow: 0 3px 12px rgba(201,169,106,.22);
}
.ap-bm-icon {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; background: rgba(201,169,106,.12); color: var(--gold);
  transition: background .18s;
}
.ap-booking-mode-btn--active .ap-bm-icon {
  background: rgba(201,169,106,.25); color: #a07828;
}
.ap-bm-body { display: flex; flex-direction: column; gap: 1px; }
.ap-bm-title { font-size: .85rem; font-weight: 700; color: var(--text-dark); }
.ap-bm-desc  { font-size: .72rem; color: var(--text-muted); }
.ap-bm-check { font-size: .95rem; color: var(--border); margin-left: 2px; transition: color .18s; }
.ap-booking-mode-btn--active .ap-bm-check { color: var(--gold); }
.ap-booking-mode-btn:not(.ap-booking-mode-btn--active) .ap-bm-check { opacity: 0; }

/* ── 2컬럼 본문 ── */
.ap-new-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: start;
}

/* 좌측: 공통 설정 */
.ap-new-left {
  display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: calc(var(--header-h) + 18px);
}

/* 우측: 예약자 입력 */
.ap-new-right { display: flex; flex-direction: column; gap: 14px; }

/* 패널 애니메이션 */
.ap-new-panel { display: flex; flex-direction: column; gap: 14px; }
.ap-new-panel.hidden { display: none !important; }
#apPanelSingle,
#apPanelGroup { animation: apPanelFadeIn .22s ease; }
@keyframes apPanelFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 섹션 카드 */
.ap-new-section-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}

/* 섹션 헤더 */
.ap-new-sec-head {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 700; color: var(--text-dark);
  margin-bottom: 14px;
}
.ap-new-sec-head i { color: var(--gold); font-size: .88rem; }
.ap-new-sec-head--between {
  justify-content: space-between;
}

/* 필드 스택 (좌측 일정용) */
.ap-new-field-stack { display: flex; flex-direction: column; gap: 10px; }

/* 2열 필드 행 */
.ap-new-field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

/* 제출 바 */
.ap-new-submit-bar {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}

/* 패키지 선택: 좌측 세로 배열 */
.ap-pkg-select-col { display: flex; flex-direction: column; gap: 8px; }
.ap-pkg-option--block { display: block; cursor: pointer; }
.ap-pkg-option--block input[type="radio"] { display: none; }
.ap-pkg-option--block .ap-pkg-opt-inner {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 9px;
  border: 2px solid var(--border); background: var(--bg);
  transition: all .15s; user-select: none;
}
.ap-pkg-option--block input:checked + .ap-pkg-opt-inner {
  border-color: var(--gold); background: var(--gold-light);
}
.ap-pkg-opt-body { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.ap-pkg-opt-text { font-size: .88rem; font-weight: 700; color: var(--text-dark); }
.ap-pkg-opt-sub  { font-size: .72rem; color: var(--text-muted); }
.ap-pkg-opt-chk  { font-size: .95rem; color: var(--border); transition: color .15s; }
.ap-pkg-option--block input:checked + .ap-pkg-opt-inner .ap-pkg-opt-chk { color: var(--gold); }
.ap-pkg-option--block:not(:has(input:checked)) .ap-pkg-opt-chk { opacity: .3; }

/* ── 다크모드 ── */
[data-theme="dark"] .ap-booking-mode-btn { background: #1e2130; border-color: #2e3448; }
[data-theme="dark"] .ap-booking-mode-btn:hover { border-color: var(--gold); }
[data-theme="dark"] .ap-booking-mode-btn--active { border-color: var(--gold); background: rgba(201,169,106,.1); }
[data-theme="dark"] .ap-bm-title { color: #e2e6f0; }
[data-theme="dark"] .ap-bm-desc  { color: #5c6478; }
[data-theme="dark"] .ap-bm-icon  { background: rgba(201,169,106,.1); color: #d4b070; }
[data-theme="dark"] .ap-booking-mode-btn--active .ap-bm-icon { background: rgba(201,169,106,.2); }
[data-theme="dark"] .ap-new-section-card { background: #1e2130; border-color: #2e3448; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
[data-theme="dark"] .ap-new-sec-head { color: #e2e6f0; }
[data-theme="dark"] .ap-new-submit-bar { background: #1e2130; border-color: #2e3448; }
[data-theme="dark"] .ap-pkg-option--block .ap-pkg-opt-inner { background: #252a3a; border-color: #2e3448; }
[data-theme="dark"] .ap-pkg-option--block input:checked + .ap-pkg-opt-inner { background: rgba(201,169,106,.1); border-color: var(--gold); }
[data-theme="dark"] .ap-pkg-opt-text { color: #e2e6f0; }

/* ── 반응형 ── */
@media (max-width: 1100px) {
  .ap-new-body { grid-template-columns: 280px 1fr; }
}
@media (max-width: 860px) {
  .ap-new-body { grid-template-columns: 1fr; }
  .ap-new-left  { position: static; }
  .ap-booking-mode-wrap { flex: unset; width: 100%; }
  .ap-booking-mode-btn  { flex: 1; }
  .ap-new-header { flex-direction: column; gap: 14px; }
}
@media (max-width: 540px) {
  .ap-new-field-row { grid-template-columns: 1fr; }
  .ap-bm-desc { display: none; }
}


.ap-pkg-opt-badge {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
.ap-pkg-opt-badge--a { background: #ecfdf5; color: #059669; }
.ap-pkg-opt-badge--b { background: #eff6ff; color: #2563eb; }
.ap-pkg-opt-text { font-size: .88rem; font-weight: 600; color: var(--text-dark); }

/* 폼 그리드 */
.ap-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 13px 18px;
}
.ap-fg--full { grid-column: 1 / -1; }
.ap-form-group { display: flex; flex-direction: column; gap: 5px; }
.ap-form-label {
  font-size: .78rem; font-weight: 600; color: var(--text-mid);
  display: flex; align-items: center; gap: 4px;
}
.ap-form-input, .ap-form-select, .ap-form-textarea {
  padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 7px;
  font-size: .86rem; color: var(--text-dark); outline: none;
  transition: border-color .15s; font-family: var(--sans);
  width: 100%; box-sizing: border-box;
}
.ap-form-input:focus, .ap-form-select:focus, .ap-form-textarea:focus { border-color: var(--gold); }
.ap-form-input.is-invalid, .ap-form-select.is-invalid { border-color: #dc2626; }
.ap-form-textarea { resize: vertical; min-height: 64px; }
.ap-form-select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b8f72' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }

.ap-form-footer {
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  background: var(--bg);
  border-top: 1.5px solid var(--border);
}
.ap-form-notice {
  font-size: .8rem; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 6px; flex: 1;
}
.ap-form-notice i { color: var(--gold); margin-top: 1px; flex-shrink: 0; }
.ap-submit-btn {
  padding: 11px 28px; background: var(--green-deep); color: var(--white);
  border: none; border-radius: 9px; font-size: .9rem; font-weight: 700;
  cursor: pointer; transition: background .15s;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
.ap-submit-btn:hover { background: #0d0a4a; }
.ap-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ══════════════════════════════
   전용 링크 뷰
══════════════════════════════ */
.ap-card--link-big { max-width: 620px; }
.ap-link-guide {
  display: flex; gap: 0; margin-bottom: 24px;
}
.ap-link-guide-step {
  display: flex; align-items: flex-start; gap: 12px;
  flex: 1; padding: 0 16px 0 0;
}
.ap-link-guide-step:not(:last-child) {
  border-right: 1px solid var(--border); margin-right: 16px;
}
.ap-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green-deep); color: var(--white);
  font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ap-step-text { font-size: .82rem; color: var(--text-mid); line-height: 1.5; padding-top: 3px; }
.ap-link-big-box {
  background: var(--bg); border-radius: 10px;
  padding: 18px; border: 1.5px solid var(--border);
  margin-bottom: 14px;
}
.ap-link-big-label {
  font-size: .75rem; font-weight: 700; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px; margin-bottom: 9px;
}
.ap-link-big-url {
  font-size: .88rem; color: #2563eb; font-family: monospace;
  word-break: break-all; line-height: 1.5; margin-bottom: 12px;
}
.ap-copy-big-btn {
  padding: 9px 22px; border-radius: 8px;
  background: var(--green-deep); color: var(--white);
  border: none; font-size: .85rem; font-weight: 700; cursor: pointer;
  transition: background .14s; display: inline-flex; align-items: center; gap: 7px;
}
.ap-copy-big-btn:hover { background: #0d0a4a; }
.ap-link-note {
  font-size: .78rem; color: var(--text-muted); line-height: 1.6;
  display: flex; align-items: flex-start; gap: 6px;
}
.ap-link-note i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }

/* ══════════════════════════════
   TOAST
══════════════════════════════ */
.ap-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--green-deep); color: var(--white);
  padding: 11px 22px; border-radius: 30px; font-size: .85rem; font-weight: 500;
  box-shadow: 0 8px 24px rgba(0,0,0,.22); z-index: 9999;
  white-space: nowrap; pointer-events: none; transition: opacity .3s;
}
.ap-toast.ap-toast--error  { background: #dc2626; }
.ap-toast.ap-toast--success{ background: #059669; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
  .ap-kpi-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ap-portal-visible { padding-left: 0; }
  .ap-sidebar {
    width: 220px; transform: translateX(-100%);
    box-shadow: 4px 0 20px rgba(0,0,0,.12);
  }
  .ap-sidebar.open { transform: translateX(0); }
  .ap-main {
    margin-left: 0;
    padding: calc(var(--header-h) + 18px) 14px 18px;
  }
  .ap-form-grid { grid-template-columns: 1fr; }
  .ap-fg--full { grid-column: 1; }
  .ap-link-guide { flex-direction: column; gap: 12px; }
  .ap-link-guide-step { border-right: none !important; margin-right: 0 !important; padding: 0; }
}

@media (max-width: 540px) {
  .ap-kpi-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ap-login-card { padding: 28px 22px 24px; }
  .ap-hlogo-sub { display: none; }
  .ap-header-agency { display: none; }    /* 540px 이하: 여행사명 숨김 */
  .ap-logout-btn span { display: none; }
  .ap-table { font-size: .78rem; }
  .ap-header-clock { display: none; }     /* 540px 이하: 시계 숨김 */
  .ap-ar-label { display: none; }         /* 자동갱신 텍스트 숨김 */
  .ap-header-page-title { display: none; } /* 로고 아래 뷰명 숨김 */
}

@media (max-width: 720px) {
  .ap-clock-date { display: none; }       /* 날짜 텍스트 숨김 */
  .ap-ar-label { display: none; }
}

@media (max-width: 860px) {
  .ap-header-agency { display: none; }
  .ap-header-divider:last-of-type { display: none; } /* 여행사명 앞 구분선도 숨김 */
}


/* ══════════════════════════════════════════════════
   뷰 헤더 새로고침 버튼
══════════════════════════════════════════════════ */
.ap-view-head { position: relative; }
.ap-refresh-btn {
  position: absolute; top: 0; right: 0;
  padding: 7px 14px; border-radius: 8px;
  background: transparent; border: 1.5px solid var(--border);
  color: var(--text-mid); font-size: .8rem; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: all .14s;
}
.ap-refresh-btn:hover { background: var(--bg); border-color: var(--gold); color: var(--gold); }

/* 로딩 박스 */
.ap-loading-box {
  display: flex; align-items: center; gap: 10px;
  padding: 40px 24px; color: var(--text-muted); font-size: .9rem;
}


/* ══════════════════════════════════════════════════
   ① 예약 상세 모달
══════════════════════════════════════════════════ */
.ap-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}
.ap-modal {
  background: var(--white);
  border-radius: 16px;
  width: 100%; max-width: 640px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
  overflow: hidden;
}
.ap-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px 16px;
  border-bottom: 1.5px solid var(--border);
  background: var(--green-deep);
  color: var(--white);
  flex-shrink: 0;
}
.ap-modal-header h3 {
  font-size: 1rem; font-weight: 700;
  display: flex; align-items: center; gap: 8px; color: var(--white);
}
.ap-modal-header h3 i { color: var(--gold); }
.ap-modal-close {
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 1.1rem; cursor: pointer; padding: 4px 6px; border-radius: 6px;
  transition: color .14s;
}
.ap-modal-close:hover { color: var(--white); }

.ap-modal-body {
  flex: 1; overflow-y: auto; padding: 20px 24px;
}

/* 상세 테이블 */
.ap-detail-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ap-detail-table tr { border-bottom: 1px solid var(--border); }
.ap-detail-table tr:last-child { border-bottom: none; }
.ap-detail-table th {
  width: 110px; padding: 9px 12px 9px 0;
  text-align: left; font-weight: 600; color: var(--text-muted);
  font-size: .78rem; vertical-align: top; white-space: nowrap;
}
.ap-detail-table td {
  padding: 9px 4px;
  color: var(--text-dark); line-height: 1.5;
}

.ap-modal-footer {
  border-top: 1.5px solid var(--border);
  padding: 16px 24px;
  background: var(--bg);
  flex-shrink: 0;
}
.ap-modal-req-label {
  font-size: .78rem; font-weight: 700; color: var(--text-mid);
  display: flex; align-items: center; gap: 5px; margin-bottom: 7px;
}
.ap-modal-req-textarea {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .85rem; font-family: var(--sans); color: var(--text-dark);
  resize: vertical; min-height: 70px; outline: none;
  transition: border-color .14s;
}
.ap-modal-req-textarea:focus { border-color: var(--gold); }
.ap-modal-footer-btns {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px;
}
.ap-modal-cancel-btn {
  padding: 9px 20px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--white);
  color: var(--text-mid); font-size: .86rem; font-weight: 600;
  cursor: pointer; transition: all .14s;
}
.ap-modal-cancel-btn:hover { border-color: var(--gold); color: var(--gold); }
.ap-modal-send-btn {
  padding: 9px 22px; border-radius: 8px;
  background: var(--green-deep); color: var(--white);
  border: none; font-size: .86rem; font-weight: 700;
  cursor: pointer; transition: background .14s;
  display: inline-flex; align-items: center; gap: 7px;
}
.ap-modal-send-btn:hover { background: #0d0a4a; }
.ap-modal-send-btn:disabled { opacity: .6; cursor: not-allowed; }

/* 테이블 행 호버 */
.ap-resv-row:hover { background: var(--gold-light); }
.ap-resv-row td { border-bottom: 1px solid var(--border); }


/* ══════════════════════════════════════════════════
   ② 패키지 요금표
══════════════════════════════════════════════════ */
.ap-price-updated {
  font-size: .75rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 14px;
}
.ap-price-block { margin-bottom: 28px; }
.ap-price-block-title {
  font-size: .9rem; font-weight: 700; padding: 8px 14px;
  border-radius: 8px 8px 0 0;
  border-left: 4px solid;
  margin-bottom: 0;
}
.ap-price-block-title--a  { background: #ecfdf5; color: #059669; border-color: #059669; }
.ap-price-block-title--b  { background: #eff6ff; color: #2563eb; border-color: #2563eb; }
.ap-price-block-title--etc{ background: var(--bg); color: var(--text-mid); border-color: var(--text-muted); }

.ap-price-table {
  width: 100%; border-collapse: collapse;
  font-size: .85rem; background: var(--white);
  border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 8px 8px; overflow: hidden;
}
.ap-price-table thead th {
  background: var(--bg); padding: 9px 12px;
  text-align: left; font-size: .75rem; font-weight: 700; color: var(--text-muted);
  border-bottom: 1.5px solid var(--border);
}
.ap-price-table tbody tr { border-bottom: 1px solid var(--border); }
.ap-price-table tbody tr:last-child { border-bottom: none; }
.ap-price-table tbody td { padding: 9px 12px; color: var(--text-dark); }
.ap-price-item-name { font-weight: 600; }
.ap-price-num { font-weight: 700; color: var(--green-deep); font-family: 'Inter', monospace; }
.ap-price-note { font-size: .78rem; color: var(--text-muted); }

/* 원본 카드 (컬럼 불명 시) */
.ap-price-raw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 12px; }
.ap-price-raw-card {
  background: var(--white); border-radius: 10px; padding: 14px;
  border: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px;
}
.ap-price-raw-key { font-size: .72rem; font-weight: 700; color: var(--text-muted); margin-right: 6px; }
.ap-price-raw-val { font-size: .85rem; color: var(--text-dark); }


/* ══════════════════════════════════════════════════
   ③ 공지사항
══════════════════════════════════════════════════ */
.ap-notice-list { display: flex; flex-direction: column; gap: 2px; }
.ap-notice-item {
  background: var(--white); border-radius: 10px;
  padding: 14px 18px; border: 1.5px solid var(--border);
  cursor: pointer; transition: all .14s;
  display: flex; flex-direction: column; gap: 7px;
}
.ap-notice-item:hover { border-color: var(--gold); box-shadow: 0 2px 12px rgba(201,169,106,.15); }
.ap-notice-item--pinned { border-color: var(--gold); background: var(--gold-light); }
.ap-notice-item-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ap-notice-item-bot { display: flex; align-items: center; gap: 12px; }
.ap-notice-pin { color: var(--gold); font-size: .85rem; }
.ap-notice-cat {
  font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 20px;
  flex-shrink: 0;
}
.ap-notice-cat--normal  { background: #f1f5f9; color: #475569; }
.ap-notice-cat--urgent  { background: #fee2e2; color: #dc2626; }
.ap-notice-cat--update  { background: #eff6ff; color: #2563eb; }
.ap-notice-title { font-size: .88rem; font-weight: 600; color: var(--text-dark); flex: 1; }
.ap-notice-author { font-size: .75rem; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.ap-notice-date   { font-size: .75rem; color: var(--text-muted); margin-left: auto; }

/* 공지 상세 모달 내용 */
.ap-notice-modal-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.ap-notice-modal-content {
  font-size: .9rem; color: var(--text-dark); line-height: 1.8;
  white-space: pre-wrap; word-break: break-word;
}




.ap-grp-teams-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.ap-grp-teams-hint {
  font-size: .78rem; color: var(--text-muted); margin-bottom: 12px;
}
.ap-grp-add-btn {
  padding: 7px 16px; border-radius: 8px;
  background: var(--green-deep); color: var(--white);
  border: none; font-size: .82rem; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: background .14s;
}
.ap-grp-add-btn:hover { background: #0d0a4a; }

.ap-grp-team-header {
  display: grid;
  grid-template-columns: 32px 1fr 1fr 1.2fr 80px 1fr 36px;
  gap: 8px; padding: 7px 8px;
  background: var(--bg); border-radius: 7px 7px 0 0;
  border: 1px solid var(--border); border-bottom: none;
  font-size: .72rem; font-weight: 700; color: var(--text-muted);
  align-items: center;
}
.ap-grp-team-row {
  display: grid;
  grid-template-columns: 32px 1fr 1fr 1.2fr 80px 1fr 36px;
  gap: 8px; padding: 7px 8px;
  border: 1px solid var(--border); border-top: none;
  align-items: center; background: var(--white);
  transition: background .1s;
}
.ap-grp-team-row:last-child { border-radius: 0 0 7px 7px; }
.ap-grp-team-row:hover { background: var(--gold-light); }
.ap-grp-col-no {
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
  text-align: center;
}
.ap-grp-del-btn {
  background: none; border: none; color: #dc2626;
  cursor: pointer; font-size: .82rem; padding: 4px;
  border-radius: 5px; transition: background .12s;
}
.ap-grp-del-btn:hover { background: #fee2e2; }
.ap-grp-team-count {
  font-size: .82rem; font-weight: 700; color: var(--text-muted);
}

/* ── 반응형: 단체 예약 ── */
@media (max-width: 768px) {
  .ap-grp-team-header,
  .ap-grp-team-row {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .ap-grp-col-no     { display: none; }
  .ap-grp-col-memo   { grid-column: 1 / -1; }
  .ap-grp-col-del    { grid-column: 1 / -1; text-align: right; }
}

/* ── 반응형: 모달 ── */
@media (max-width: 540px) {
  .ap-modal { border-radius: 12px; }
  .ap-modal-header { padding: 14px 16px 12px; }
  .ap-modal-body { padding: 14px 16px; }
  .ap-modal-footer { padding: 12px 16px; }
  .ap-detail-table th { width: 80px; font-size: .72rem; }
  .ap-grp-team-header { display: none; }
  .ap-price-table { font-size: .78rem; }
  .ap-price-table thead th, .ap-price-table tbody td { padding: 6px 8px; }
}
