/* 운영 관리 콘솔 스타일 */
:root { --accent: #2f6b3c; }
.ad-body { background: #f4eede; color: #1c1812; }
::selection { background: #2f6b3c; color: #fff; }

@keyframes ad-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ad-rise { animation: ad-rise .5s ease both; }

.ad-top { background: #1c1812; color: #fbf7ef; padding: 0 clamp(16px, 4vw, 40px); }
.ad-top-inner { max-width: 1240px; margin: 0 auto; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ad-top .brand { font-family: 'Hahmlet', serif; font-weight: 900; font-size: 20px; }
.ad-top .sub { font-size: 12px; color: #a89c86; margin-left: 12px; }
.ad-top a { color: #c9bfab; font-size: 13px; text-decoration: none; }
.ad-top-actions { display:flex; align-items:center; gap:14px; }
.ad-top-actions form { margin:0; }
.ad-logout { background:transparent!important; color:#fbf7ef!important; border-color:rgba(251,247,239,.35)!important; }

.ad-shell { max-width: 1500px; margin: 0 auto; display:grid; grid-template-columns:230px minmax(0,1fr); gap:0; min-height:calc(100vh - 64px); }
.ad-sidebar { padding:24px 12px 60px 20px; border-right:1px solid #dfd5c2; }
.ad-nav { position:sticky; top:20px; display:flex; flex-direction:column; gap:4px; }
.ad-nav-group { color:#a79b85; font-size:10.5px; font-weight:900; letter-spacing:.14em; margin:18px 12px 6px; text-transform:uppercase; }
.ad-nav-group:first-child { margin-top:0; }
.ad-nav-link { display:flex; align-items:center; justify-content:space-between; gap:10px; color:#645b4d; text-decoration:none; font-size:13.5px; font-weight:800; padding:11px 12px; border-radius:11px; }
.ad-nav-link:hover { background:#ebe3d4; color:#1c1812; }
.ad-nav-link.on { background:#1f4f35; color:#fff; }
.ad-nav-link b { font-size:10px; background:rgba(255,255,255,.14); border-radius:100px; padding:3px 7px; }

.ad-tabs { background: #fff; border-bottom: 1px solid #e5dcc9; padding: 0 clamp(16px, 4vw, 40px); }
.ad-tabs-inner { max-width: 1240px; margin: 0 auto; display: flex; gap: 26px; overflow-x: auto; }
.ad-tab { text-decoration: none; font-size: 14.5px; font-weight: 800; color: #8a7d66; padding: 16px 4px; border-bottom: 2.5px solid transparent; white-space: nowrap; transition: color .15s, border-color .15s; }
.ad-tab:hover { color: #1c1812; }
.ad-tab.on { color: #1c1812; border-bottom-color: var(--accent); }

.ad-main { width:100%; min-width:0; box-sizing:border-box; margin:0; padding:clamp(24px,4vw,40px) clamp(16px,4vw,40px) 80px; }

.ad-msgs { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.ad-msg { background: #eef5ee; border: 1px solid #bcd8bc; color: #2f6b3c; font-weight: 700; font-size: 14px; padding: 12px 16px; border-radius: 12px; }

.ad-card { background: #fff; border: 1px solid #e5dcc9; border-radius: 18px; padding: 22px 24px; }
.ad-kpi { font-family: 'Hahmlet', serif; font-weight: 900; font-size: clamp(30px, 4vw, 46px); line-height: 1; color: #1c1812; }
.ad-kpi .u { font-size: .4em; font-weight: 700; color: #8a7d66; margin-left: 4px; }
.ad-klabel { font-size: 12.5px; color: #8a7d66; margin-top: 10px; font-weight: 600; }

.ad-h { font-family: 'Hahmlet', serif; font-weight: 900; font-size: 18px; margin-bottom: 18px; }
.ad-barrow { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.ad-barrow .lbl { width: 96px; font-size: 13px; font-weight: 700; color: #3a352c; }
.ad-barrow .num { width: 34px; text-align: right; font-size: 13px; font-weight: 800; color: #1c1812; }
.ad-bar-track { background: #f0eadc; border-radius: 100px; height: 14px; overflow: hidden; flex: 1; }
.ad-bar-fill { height: 100%; background: var(--accent); border-radius: 100px; }

table.ad-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.ad-tbl th { text-align: left; font-weight: 800; color: #8a7d66; font-size: 12px; padding: 12px; border-bottom: 1px solid #e5dcc9; white-space: nowrap; }
table.ad-tbl td { padding: 13px 12px; border-bottom: 1px solid #f0eadc; color: #3a352c; vertical-align: top; }
table.ad-tbl tr:hover td { background: #faf6ec; }

.ad-badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 100px; }
.ad-del { border: 1px solid #e6cfcf; background: #fff; color: #c0392b; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 100px; cursor: pointer; }
.ad-del:hover { background: #fdecec; }

.ad-in { width: 100%; font-family: 'Gothic A1', sans-serif; font-size: 14px; color: #1c1812; background: #fff; border: 1.5px solid #ddd2bc; border-radius: 10px; padding: 11px 13px; }
.ad-in:focus { outline: none; border-color: var(--accent); }
.ad-btn { border: none; cursor: pointer; background: var(--accent); color: #fff; font-family: 'Gothic A1', sans-serif; font-size: 14px; font-weight: 800; padding: 12px 22px; border-radius: 100px; text-decoration: none; display: inline-block; }
.ad-btn.ghost { background: #fff; color: #1c1812; border: 1.5px solid #ddd2bc; }
.ad-btn.sm { padding: 9px 16px; font-size: 13px; }
.ad-btn.danger { background:#a33b2e; }
.ad-btn.secondary { background:#1c1812; }

.ad-page-head { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:14px; margin-bottom:20px; }
.ad-page-head h1 { font-family:'Hahmlet',serif; font-size:clamp(25px,4vw,34px); margin:0; }
.ad-page-head p { color:#8a7d66; font-size:13px; margin:6px 0 0; }
.ad-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.ad-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.ad-field { display:flex; flex-direction:column; gap:7px; }
.ad-field.full { grid-column:1/-1; }
.ad-field label { font-size:12px; font-weight:900; color:#675d4e; }
.ad-field input,.ad-field select,.ad-field textarea { width:100%; box-sizing:border-box; font-family:'Gothic A1',sans-serif; font-size:14px; color:#1c1812; background:#fff; border:1.5px solid #ddd2bc; border-radius:10px; padding:11px 13px; }
.ad-field textarea { min-height:120px; resize:vertical; }
.ad-field input[type=checkbox] { width:auto; }
.ad-errors { color:#b43c2c; font-size:12px; margin:0; padding-left:18px; }
.ad-filter { display:flex; flex-wrap:wrap; gap:8px; padding:14px; background:#fff; border:1px solid #e5dcc9; border-radius:16px; margin-bottom:14px; }
.ad-filter input,.ad-filter select { min-height:40px; border:1px solid #d9cfbd; border-radius:10px; padding:8px 10px; background:#fff; }
.ad-pill { display:inline-flex; align-items:center; gap:5px; border-radius:100px; padding:5px 9px; font-size:11px; font-weight:800; background:#eee7d9; color:#655c4e; white-space:nowrap; }
.ad-pill.green { background:#e7f2e9; color:#28603a; }
.ad-pill.orange { background:#fbe9df; color:#a34527; }
.ad-pill.gray { background:#eee; color:#666; }
.ad-list { display:grid; gap:12px; }
.ad-list-card { background:#fff; border:1px solid #e5dcc9; border-radius:18px; padding:18px; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.ad-list-card h3 { margin:0 0 6px; font-size:16px; }
.ad-list-card p { color:#807461; font-size:13px; line-height:1.65; margin:0; }
.ad-thumb { width:96px; height:72px; object-fit:cover; border-radius:12px; border:1px solid #e5dcc9; background:#f3eee4; }
.ad-code { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:11px; word-break:break-all; background:#f4efe4; border-radius:8px; padding:8px; }
.ad-progress { height:9px; background:#eee6d8; border-radius:100px; overflow:hidden; }
.ad-progress > span { display:block; height:100%; background:#2f6b3c; border-radius:inherit; }

.ad-grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ad-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .ad-grid4 { grid-template-columns: 1fr 1fr; } .ad-grid2 { grid-template-columns: 1fr; } }
.ad-scroll { overflow-x: auto; }
.ad-empty { padding: 40px; text-align: center; color: #b3a78e; font-size: 14px; }

@media (max-width:980px) {
  .ad-shell { display:block; }
  .ad-sidebar { padding:10px 14px; border-right:0; border-bottom:1px solid #dfd5c2; overflow-x:auto; }
  .ad-nav { position:static; flex-direction:row; width:max-content; }
  .ad-nav-group { display:none; }
  .ad-nav-link { background:#eee6d8; }
}
@media (max-width:620px) {
  .ad-top .sub,.ad-top-actions > a { display:none; }
  .ad-grid4 { grid-template-columns:1fr 1fr; gap:9px; }
  .ad-card { padding:17px; border-radius:15px; }
  .ad-form-grid { grid-template-columns:1fr; }
  .ad-field.full { grid-column:auto; }
  .ad-list-card { flex-direction:column; }
}
