/* 출금 신청 · 관리자 페이지 공용 스타일 (site.css 뒤에 읽음) */
.page-form { background: radial-gradient(900px 500px at 50% -10%, #FFE9F0 0%, var(--bg) 60%); }
.page-form .site-footer { padding-bottom: 40px; }
.fm { max-width: 640px; padding-block: clamp(28px, 5vw, 56px) 80px; display: grid; gap: 18px; }
.fm-head { text-align: center; display: grid; gap: 12px; justify-items: center; margin-bottom: 10px; }
.fm-head h1 { font-size: var(--t-2xl); font-weight: 800; line-height: 1.2; }
.fm-head p { color: var(--ink-2); font-size: var(--t-m); }
.fbox { padding: clamp(20px, 3vw, 28px); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--vol-lg); display: grid; gap: 18px; }
.fm-h2 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font-size: var(--t-l); font-weight: 800; }
.fm-h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px var(--rose-soft); }
.fm-h2 small { font-size: var(--t-xs); font-weight: 500; color: var(--ink-3); }
.fm-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.fm-list li { position: relative; padding-left: 30px; font-size: var(--t-s); color: var(--ink-2); line-height: 1.65; }
.fm-list li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 7px; background: var(--rose-soft); color: var(--rose-2); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.fm-list strong { color: var(--ink); }
.fm-offline { padding: 18px 20px; border-radius: var(--r-m); background: var(--warn-soft); color: var(--ink); font-size: var(--t-s); line-height: 1.7; display: grid; gap: 12px; justify-items: start; box-shadow: 0 0 0 1px rgba(226,114,46,.2) inset; }
.fm-form { display: grid; gap: 18px; }
.fm-form.is-disabled { opacity: .45; pointer-events: none; filter: grayscale(.4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fm-field { display: grid; gap: 8px; }
.fm-field label { font-weight: 700; font-size: var(--t-s); }
.fm-field label i { color: var(--rose); font-style: normal; }
.fm-field input, .fm-field select, .fm-field textarea, .fm-amount { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 16px; border: 0; background: #FFF6F8; color: var(--ink); font: 500 var(--t-m)/1.4 var(--f-body); box-shadow: 0 0 0 1.5px var(--line) inset, 0 2px 0 rgba(255,255,255,.8) inset; transition: box-shadow .2s, background-color .2s; }
.fm-field input::placeholder { color: var(--ink-3); font-weight: 400; }
.fm-field input:focus, .fm-field select:focus, .fm-amount:focus-within { outline: 0; background: #fff; box-shadow: 0 0 0 2px var(--rose) inset, 0 8px 24px -12px rgba(255,79,134,.45); }
.fm-field input.is-bad, .fm-field select.is-bad { box-shadow: 0 0 0 2px var(--warn) inset; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.fm-field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%239C8CA2' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; cursor: pointer; }
.fm-hint { font-size: var(--t-xs); color: var(--ink-3); line-height: 1.6; }
.fm-amount { display: flex; align-items: center; gap: 10px; min-height: 64px; }
.fm-amount input { flex: 1; min-width: 0; border: 0; background: transparent; box-shadow: none; padding: 0; text-align: right; font-family: var(--f-num); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--rose-2); }
.fm-amount input:focus { outline: 0; }
.fm-amount span { font-weight: 700; color: var(--ink-2); }
.fm-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.fm-quick button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink); font: 700 var(--t-xs)/1 var(--f-body); cursor: pointer; box-shadow: var(--vol), 0 0 0 1px var(--line) inset; transition: transform .15s, background-color .15s, color .15s; }
.fm-quick button:hover { transform: translateY(-2px); background: var(--rose-soft); color: var(--rose-2); }
.fm-quick button:active { transform: translateY(1px); }
.fm-net { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(120deg, #FFF0F4, #FFF8F2); font-size: var(--t-s); font-weight: 600; color: var(--ink-2); }
.fm-net small { font-weight: 500; color: var(--ink-3); }
.fm-net strong { font-family: var(--f-num); font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fm-net strong.pop { animation: popIn .4s cubic-bezier(.2,1.4,.4,1); }
.fm-rrn { display: flex; align-items: center; gap: 8px; }
.fm-rrn input { flex: 1; min-width: 0; text-align: center; letter-spacing: .12em; font-family: var(--f-num); font-weight: 700; }
.fm-rrn span { color: var(--ink-3); font-weight: 700; }
.fm-eye { flex: none; min-height: 54px; padding: 0 14px; border-radius: 14px; border: 0; background: var(--surface); color: var(--ink-2); font: 700 var(--t-xs)/1 var(--f-body); cursor: pointer; box-shadow: var(--vol), 0 0 0 1px var(--line) inset; }
.fm-safe { display: flex; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #EEFBF4; color: #1F5B3F; font-size: var(--t-xs); line-height: 1.6; }
.fm-safe svg { width: 20px; height: 20px; flex: none; color: var(--ok, #10A876); margin-top: 2px; }
.fm-safe strong { color: #0E4A31; }
.fm-agree { padding: 18px 20px; }
.fm-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; cursor: pointer; }
.fm-check input { width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--rose); cursor: pointer; }
.fm-check span { display: grid; gap: 4px; font-size: var(--t-s); }
.fm-check small { font-size: var(--t-xs); color: var(--ink-3); line-height: 1.6; }
.fm-check a { color: var(--rose-2); }
.fm-error { margin: 0; padding: 14px 18px; border-radius: 14px; background: var(--warn-soft); color: #9A4411; font-size: var(--t-s); font-weight: 600; box-shadow: 0 0 0 1px rgba(226,114,46,.25) inset; }
.fm-submit { width: 100%; min-height: 62px; font-size: var(--t-l); }
.fm-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.fm-foot { text-align: center; font-size: var(--t-xs); color: var(--ink-3); }

/* 완료 페이지 */
.fm--done { min-height: 60vh; align-content: center; }
.fm-done { text-align: center; justify-items: center; gap: 16px; padding: clamp(32px, 5vw, 48px) clamp(20px, 4vw, 40px); }
.fm-done-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--glow); animation: popIn .7s cubic-bezier(.2,1.4,.4,1) both; }
.fm-done-icon svg { width: 40px; height: 40px; }
.fm-done h1 { font-size: var(--t-xl); font-weight: 800; }
.fm-done p { color: var(--ink-2); font-size: var(--t-s); }
.fm-done-info { margin: 6px 0 10px; width: 100%; max-width: 380px; display: grid; gap: 8px; }
.fm-done-info div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-radius: 12px; background: #FFF6F8; font-size: var(--t-s); }
.fm-done-info dt { color: var(--ink-3); font-weight: 500; }
.fm-done-info dd { margin: 0; font-weight: 800; }

/* ---------- 관리자 ---------- */
.adm { max-width: 1240px; padding-block: 28px 80px; display: grid; gap: 18px; }
.adm-login { max-width: 420px; margin: 8vh auto 0; }
.adm-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.adm-top h1 { font-size: var(--t-xl); font-weight: 800; margin-right: auto; }
.adm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.adm-stat { padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--vol); display: grid; gap: 2px; }
.adm-stat span { font-size: var(--t-xs); color: var(--ink-3); font-weight: 600; }
.adm-stat strong { font-family: var(--f-num); font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.adm-stat.hot strong { color: var(--rose-2); }
.adm-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.adm-bar input[type="search"] { flex: 1; min-width: 200px; min-height: 46px; padding: 0 16px; border-radius: 14px; border: 0; background: var(--surface); box-shadow: var(--vol), 0 0 0 1px var(--line) inset; font: 500 var(--t-s) var(--f-body); color: var(--ink); }
.adm-bar input:focus { outline: 0; box-shadow: 0 0 0 2px var(--rose) inset; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: var(--vol), 0 0 0 1px var(--line) inset; }
.seg button { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font: 700 var(--t-xs)/1 var(--f-body); cursor: pointer; }
.seg button.on { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.tbl-wrap { overflow-x: auto; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--vol-lg); }
.tbl { width: 100%; min-width: 1180px; border-collapse: collapse; font-size: var(--t-xs); }
.tbl th, .tbl td { padding: 11px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl th { position: sticky; top: 0; background: #FFF6F8; font-weight: 700; color: var(--ink-2); z-index: 1; }
.tbl tbody tr:hover { background: #FFFBFC; }
.tbl td.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-weight: 800; text-align: right; }
.tbl td.mono { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.tbl .memo { min-width: 160px; border: 0; background: #FFF6F8; border-radius: 8px; padding: 6px 10px; font: 500 var(--t-xs) var(--f-body); color: var(--ink); width: 100%; }
.tbl .memo:focus { outline: 0; box-shadow: 0 0 0 2px var(--rose) inset; }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: .75rem; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st--대기 { background: var(--warn-soft); color: #9A4411; }
.st--송금완료 { background: #E6F8EF; color: #1F6B45; }
.st--보류 { background: #EEF0FF; color: #3B4AA6; }
.st--취소 { background: #F3F0F2; color: var(--ink-3); }
.row-done td { opacity: .62; }
.act { display: flex; gap: 6px; }
.act button { min-height: 32px; padding: 0 10px; border-radius: 8px; border: 0; background: var(--surface); color: var(--ink); font: 700 .75rem/1 var(--f-body); cursor: pointer; box-shadow: 0 0 0 1px var(--line) inset; }
.act button.ok { background: var(--grad); color: #fff; }
.act button:hover { filter: brightness(.97); }
.rrn-cell button { border: 0; background: transparent; color: var(--rose-2); font: 700 .75rem var(--f-body); cursor: pointer; padding: 0 4px; }
.adm-empty { padding: 48px; text-align: center; color: var(--ink-3); }
.adm-note { font-size: var(--t-xs); color: var(--ink-3); line-height: 1.7; }
@media (max-width: 760px) {
  .adm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fm-h2 { font-size: var(--t-m); }
  .fm-quick button { padding: 0 11px; }
}
.fm-done .btn-row { width: 100%; }
.fm-done .btn { flex: 1 1 150px; min-width: 0; padding-inline: 16px; }
.seg { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { white-space: nowrap; flex: none; }
