/* SAMPLE 관리자 - 다크 사이드바 + 그린 (중고나라 스킨) */
:root {
  --side: #161616;
  --side2: #242424;
  --bg: #f6f7f8;
  --card: #fff;
  --line: #e8e8e8;
  --txt: #212124;
  --txt2: #6f6f6f;
  --txt3: #a3a3a3;
  --accent: #00c73c;
  --accent2: #00ad35;
  --accent-soft: #e8f9ee;
  --red: #f0433e;
  --green: #00c73c;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', -apple-system, 'Malgun Gothic', sans-serif; background: var(--bg); color: var(--txt); font-size: 14px; }
a { color: inherit; text-decoration: none; }
.admin-wrap { display: flex; min-height: 100vh; }
.side { width: 232px; background: var(--side); color: #a8a8a8; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-logo { padding: 20px 20px 14px; font-size: 19px; font-weight: 900; color: #fff; display: flex; align-items: center; gap: 8px; }
.side-logo .dtag { background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 4px; }
.side-sec { padding: 14px 20px 6px; font-size: 11px; font-weight: 800; color: #6f6f6f; letter-spacing: .08em; }
.side a.mi { display: block; padding: 9px 20px; font-size: 13.5px; font-weight: 600; color: #a8a8a8; border-left: 3px solid transparent; }
.side a.mi:hover { color: #fff; background: rgba(255,255,255,.05); }
.side a.mi.on { color: #fff; background: var(--side2); border-left-color: var(--accent); }
.menu-btn { display: none; margin-left: auto; background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 17px; border-radius: 8px; padding: 4px 11px; cursor: pointer; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 0 24px; height: 58px; display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 50; }
.topbar .pg-title { font-size: 16.5px; font-weight: 800; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--txt2); }
.demo-pill { background: var(--accent); color: #fff; font-weight: 800; font-size: 11px; padding: 3px 10px; border-radius: 20px; }
.content { padding: 24px; flex: 1; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 1px 3px rgba(0,0,0,.04); margin-bottom: 18px; }
.card-h { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.card-h h3 { font-size: 15px; font-weight: 800; margin-right: auto; }
.card-p { padding: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 13px; padding: 18px; }
.stat-card .lb { font-size: 12px; color: var(--txt3); font-weight: 700; }
.stat-card .vl { font-size: 23px; font-weight: 900; margin-top: 5px; font-variant-numeric: tabular-nums; }
.stat-card .vl.org { color: var(--accent); } .stat-card .vl.green { color: var(--green); } .stat-card .vl.red { color: var(--red); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { background: #fafafa; color: var(--txt3); font-size: 11.5px; font-weight: 700; padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.bdg { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.bdg.sale, .bdg.done, .bdg.on { background: #e8faf3; color: var(--green); }
.bdg.rsv, .bdg.ing { background: var(--accent-soft); color: var(--accent2); }
.bdg.req, .bdg.wait { background: #fff4dd; color: #b7791f; }
.bdg.cancel, .bdg.off { background: #eef0f4; color: var(--txt2); }
.bdg.new { background: #fdecec; color: var(--red); }
.btn { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12.5px; font-weight: 700; color: var(--txt2); cursor: pointer; font-family: inherit; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.acc { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.acc:hover { background: var(--accent2); }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.xs { padding: 5px 10px; font-size: 11.5px; }
.frm { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.frm input, .frm select { padding: 8px 11px; border: 1.5px solid var(--line); border-radius: 8px; font-size: 13px; font-family: inherit; }
.fld { margin-bottom: 13px; }
.fld label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: var(--txt2); }
.fld input, .fld select, .fld textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px; font-size: 13.5px; font-family: inherit; }
.alert-err { background: #fdecec; color: #c0392b; border: 1px solid #f5c6c6; padding: 11px 15px; border-radius: 9px; font-size: 13px; font-weight: 600; margin-bottom: 15px; }
.alert-ok { background: #e8faf3; color: #0b7a55; border: 1px solid #b9ecd9; padding: 11px 15px; border-radius: 9px; font-size: 13px; font-weight: 600; margin-bottom: 15px; }
.empty { text-align: center; color: var(--txt3); padding: 34px 0; font-size: 13px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kv { display: flex; padding: 8px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv .k { width: 110px; color: var(--txt3); font-weight: 600; flex: none; }
.kv .v { font-weight: 700; }
.thumb { width: 44px; height: 44px; border-radius: 8px; background: #f4f4f4; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; font-weight: 900; color: #cfcfcf; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) {
  .admin-wrap { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; }
  .menu-btn { display: inline-block; }
  .side .side-nav { display: none; }
  .side.open .side-nav { display: block; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .tbl-wrap { overflow-x: auto; }
}
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }
