/* MatOn 운영자 콘솔 — 서비스 웹앱과 같은 토큰 체계, 운영자용으로 더 짙은 사이드바 */
:root {
  --c-bg: #f2f3f5; --c-surface: #fff; --c-surface-2: #f7f8fa; --c-line: #dee2e8; --c-line-strong: #c6ccd5;
  --c-ink: #171c26; --c-ink-2: #3f4756; --c-ink-3: #6b7383; --c-ink-4: #9aa1ad;
  --c-side: #1b1f27; --c-side-2: #262b35; --c-side-ink: #b9c0cc;
  --c-blue: #2c5bc4; --c-blue-weak: #e9effb; --c-green: #2b7a55; --c-green-weak: #e6f2ec;
  --c-orange: #b3640d; --c-orange-weak: #fbf0e2; --c-red: #bf3a30; --c-red-weak: #fbeceb; --c-navy: #15233f;
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --r: 6px; --r-lg: 8px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--c-ink); background: var(--c-bg); -webkit-font-smoothing: antialiased; }
a { color: var(--c-blue); text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--c-ink-3); } .small { font-size: 12px; } .strong { font-weight: 600; }
.layout { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: var(--c-side); color: var(--c-side-ink); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side .brand { height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.06); color: #fff; font-weight: 700; }
.side .brand small { display: block; font-size: 11px; color: #7f8796; font-weight: 500; }
.side nav { padding: 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side nav .label { font-size: 11px; color: #6f7786; padding: 14px 10px 4px; }
.side nav a { display: block; padding: 8px 12px; border-radius: var(--r); color: var(--c-side-ink); text-decoration: none; }
.side nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.side nav a.on { background: var(--c-side-2); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #7fa2ec; }
.side .foot { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.06); font-size: 12px; }
.side .foot a { color: #9aa3b2; }
.main { min-width: 0; }
.top { height: 56px; display: flex; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--c-line); background: var(--c-surface); gap: 12px; }
.top h1 { font-size: 17px; font-weight: 700; flex: 1; }
.content { padding: 24px; }
.panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); margin-bottom: 16px; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); flex-wrap: wrap; }
.panel-head h2 { font-size: 15px; font-weight: 600; flex: 1; }
.panel-body { padding: 16px; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); margin-bottom: 16px; }
.strip > div { padding: 12px 16px; border-left: 1px solid var(--c-line); }
.strip > div:first-child { border-left: 0; }
.strip dt { font-size: 12px; color: var(--c-ink-3); } .strip dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.strip dd small { font-size: 12px; font-weight: 500; color: var(--c-ink-3); margin-left: 4px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-2 > .panel { margin-bottom: 0; }
.filters { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--c-line); flex-wrap: wrap; align-items: center; }
.input, .select, .textarea { height: 34px; padding: 0 10px; border: 1px solid var(--c-line-strong); border-radius: var(--r); background: #fff; font-size: 14px; }
.textarea { height: auto; padding: 8px 10px; width: 100%; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(44,91,196,.14); }
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--c-line-strong); background: #fff; color: var(--c-ink); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--c-surface-2); text-decoration: none; }
.btn-primary { background: var(--c-blue); border-color: var(--c-blue); color: #fff; } .btn-primary:hover { background: #234ca8; }
.btn-danger { color: var(--c-red); border-color: #e5b7b3; } .btn-danger:hover { background: var(--c-red-weak); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn[aria-disabled] { opacity: .45; pointer-events: none; }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th, table.t td { padding: 0 12px; height: 38px; border-bottom: 1px solid var(--c-line); text-align: left; }
table.t thead th { background: var(--c-surface-2); color: var(--c-ink-3); font-size: 12px; font-weight: 600; height: 34px; white-space: nowrap; border-bottom-color: var(--c-line-strong); }
table.t tbody tr:hover td { background: #fafbfc; }
table.t tbody tr:last-child td { border-bottom: 0; }
table.t tfoot td { background: var(--c-surface-2); font-weight: 600; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 600; background: #eceef2; color: var(--c-ink-2); white-space: nowrap; }
.tag-blue { background: var(--c-blue-weak); color: var(--c-blue); } .tag-green { background: var(--c-green-weak); color: var(--c-green); }
.tag-orange { background: var(--c-orange-weak); color: var(--c-orange); } .tag-red { background: var(--c-red-weak); color: var(--c-red); } .tag-navy { background: var(--c-navy); color: #fff; }
.kv { display: grid; grid-template-columns: 130px 1fr; margin: 0; }
.kv dt, .kv dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--c-line); }
.kv dt { color: var(--c-ink-3); }
.kv > :nth-last-child(-n+2) { border-bottom: 0; }
.alert { padding: 10px 14px; border-radius: var(--r); margin-bottom: 16px; border: 1px solid; font-size: 13px; }
.alert-ok { background: var(--c-green-weak); border-color: #bcdccb; color: #1d5a3d; }
.alert-error { background: var(--c-red-weak); border-color: #efc2be; color: #8a241c; }
.alert-warn { background: var(--c-orange-weak); border-color: #efd2ad; color: #7b4307; }
.pager { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 10px 16px; border-top: 1px solid var(--c-line); font-size: 13px; color: var(--c-ink-3); }
.empty { padding: 40px; text-align: center; color: var(--c-ink-3); }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; color: var(--c-ink-2); font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; padding: 8px 0 0; }
.bars div { flex: 1; background: #c9d6f2; border-radius: 2px 2px 0 0; min-height: 2px; position: relative; }
.bars div:hover { background: var(--c-blue); }
.bars-x { display: flex; justify-content: space-between; font-size: 11px; color: var(--c-ink-4); margin-top: 4px; }
.login { min-height: 100vh; display: grid; place-items: center; background: var(--c-side); }
.login form { width: 360px; background: #fff; border-radius: 10px; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.login h1 { font-size: 20px; }
.login .input { height: 42px; width: 100%; }
.login .btn { height: 42px; justify-content: center; }
.temp-pw { font-family: ui-monospace, Menlo, monospace; font-size: 18px; letter-spacing: .05em; background: #fff; padding: 6px 10px; border: 1px dashed var(--c-line-strong); border-radius: 4px; display: inline-block; margin-top: 6px; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { position: static; height: auto; }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .side nav .label { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .strip { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .content { padding: 16px 12px; }
}
.nowrap{white-space:nowrap}

/* 약관 · 정책 편집 (Summernote) */
.page-edit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.page-edit > .panel { margin-bottom: 0; }
@media (max-width: 1100px) { .page-edit { grid-template-columns: 1fr; } }
.page-edit .note-editor.note-frame { border-color: var(--c-line-strong); border-radius: var(--r); }
.page-edit .note-editable { font-family: inherit; font-size: 15px; line-height: 1.75; color: var(--c-ink); }
.page-edit .note-editable h2 { font-size: 20px; margin: 18px 0 8px; }
.page-edit .note-editable h3 { font-size: 17px; margin: 14px 0 6px; }
.page-edit .note-editable table td, .page-edit .note-editable table th { border: 1px solid #d5dae2; padding: 6px 8px; }
