/* 관리자 페이지 */
* { box-sizing: border-box; }
body { margin: 0; font-family: "Pretendard Variable", Pretendard, "Malgun Gothic", sans-serif; background: #f4f6f9; color: #202631; font-size: 15px; line-height: 1.55; }
a { color: #d94b0c; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 14px; line-height: 1.3; }
h2 { font-size: 18px; }
h3 { font-size: 15px; margin-top: 20px; }
hr { border: 0; border-top: 1px solid #e8ebf0; margin: 18px 0; }
code { background: #f1f3f6; padding: 1px 6px; border-radius: 4px; }
.muted { color: #7b8394; }
.small { font-size: 13px; }
.center { text-align: center; display: block; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 14px; }
.inline { display: inline; }

.atop { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; background: #202631; color: #fff; padding: 0 24px; height: 58px; }
.atop__brand { color: #fff; font-weight: 900; font-size: 18px; white-space: nowrap; }
.atop__brand small { font-weight: 500; color: #ffb48c; font-size: 13px; margin-left: 4px; }
.atop__menu { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }
.anav { display: flex; gap: 4px; flex: 1; }
.anav a { color: #c9cfda; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; }
.anav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.anav a.is-on { background: #ee5b18; color: #fff; }
.anav a em { font-style: normal; background: #fff; color: #ee5b18; border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.anav a:nth-last-child(2) { margin-left: auto; }

.amain { max-width: 1200px; margin: 0 auto; padding: 28px 24px 80px; }
.atitle { font-size: 24px; font-weight: 900; }
.box { background: #fff; border: 1px solid #e6e9ef; border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.box__head { display: flex; justify-content: space-between; align-items: baseline; }
.narrow { max-width: 520px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid2--wide { grid-template-columns: 1.7fr 1fr; }
.grid2 > .box { margin-bottom: 0; }

.alert { padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.alert--ok { background: #e7f7ee; color: #0f7a43; }
.alert--err { background: #fdecec; color: #c62828; }

.abtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border: 1px solid #d5dae2; background: #fff; color: #202631; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; }
.abtn:hover { background: #f4f6f9; }
.abtn--primary { background: #ee5b18; border-color: #ee5b18; color: #fff; }
.abtn--primary:hover { background: #d94b0c; }
.abtn--danger { color: #c62828; border-color: #f2c4c4; }
.abtn--danger:hover { background: #fdecec; }
.abtn--sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.abtn--block { width: 100%; margin-top: 8px; }

.aform label, .login label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.aform label b { color: #ee5b18; }
.aform small { font-weight: 400; }
.aform input:not([type=checkbox]):not([type=file]), .aform select, .aform textarea, .login input, .pcard__form input, .pcard__form select {
  width: 100%; border: 1px solid #d5dae2; border-radius: 9px; padding: 10px 12px; font: inherit; font-weight: 400; background: #fff; }
.aform textarea { resize: vertical; line-height: 1.7; }
.aform input:focus, .aform select:focus, .aform textarea:focus, .login input:focus { outline: 0; border-color: #ee5b18; box-shadow: 0 0 0 3px rgba(238,91,24,.12); }
.aform .check { display: flex; align-items: center; gap: 8px; }
.aform--row { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.aform--row label { margin-bottom: 0; }
.aform--row .grow { flex: 1; min-width: 200px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.fields .full { grid-column: 1 / -1; }
.savebar { position: sticky; bottom: 0; background: rgba(244,246,249,.95); padding: 14px 0; text-align: right; }
.preview { max-width: 100%; max-height: 180px; border-radius: 10px; object-fit: cover; }
.preview--hero { width: 260px; height: 170px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid #e6e9ef; border-radius: 14px; padding: 18px 20px; color: #202631; text-decoration: none !important; }
.stat small { color: #7b8394; font-weight: 600; }
.stat strong { display: block; font-size: 32px; font-weight: 900; }
.stat--hot { background: #ee5b18; border-color: #ee5b18; color: #fff; }
.stat--hot small { color: #ffe0d0; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 11px 8px; border-bottom: 1px solid #eef0f4; text-align: left; vertical-align: middle; }
.tbl th { font-size: 13px; color: #7b8394; font-weight: 700; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #fff8f2; }
.tthumb { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge--new { background: #ee5b18; color: #fff; }
.badge--contact { background: #e3efff; color: #1d5fc4; }
.badge--done { background: #e7f7ee; color: #0f7a43; }
.badge--hold { background: #eef0f4; color: #6b7280; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs a { padding: 7px 14px; border-radius: 9px; background: #fff; border: 1px solid #e0e4ea; color: #202631; font-weight: 700; font-size: 14px; text-decoration: none; }
.tabs a.is-on { background: #202631; color: #fff; border-color: #202631; }
.apager { display: flex; gap: 6px; margin-top: 16px; justify-content: center; }
.apager a { padding: 6px 12px; border-radius: 8px; border: 1px solid #e0e4ea; color: #202631; }
.apager a.is-on { background: #ee5b18; color: #fff; border-color: #ee5b18; }

.dl { display: grid; grid-template-columns: 110px 1fr; gap: 12px 14px; margin: 0; }
.dl dt { color: #7b8394; font-weight: 700; font-size: 14px; }
.dl dd { margin: 0; }
.pre { white-space: pre-wrap; background: #f8f9fb; padding: 12px; border-radius: 8px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; }
.thumbs img { width: 140px; height: 105px; object-fit: cover; border-radius: 8px; border: 1px solid #e6e9ef; }
.thumbs__item { display: grid !important; gap: 4px !important; font-weight: 500 !important; }
.thumbs__item span { display: flex; align-items: center; gap: 4px; font-size: 13px; }

.checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li > span { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.checks li.ok > span { background: #e7f7ee; color: #0f7a43; }
.checks li.no > span { background: #fff1e8; color: #ee5b18; }
.checks small { display: block; color: #7b8394; }

.bulkbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.pcard { position: relative; background: #fff; border: 1px solid #e6e9ef; border-radius: 12px; overflow: hidden; }
.pcard img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.pcard__pick { position: absolute; top: 8px; left: 8px; background: #fff; border-radius: 6px; padding: 3px 5px; line-height: 0; }
.pcard__pick input { width: 18px; height: 18px; }
.pcard__form { padding: 10px; display: grid; gap: 6px; }
.pcard__form input, .pcard__form select { padding: 7px 9px; font-size: 13px; }
.pcard__btns { display: flex; gap: 4px; }
.pcard__btns .abtn { flex: 1; padding: 5px 4px; }

.login { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: linear-gradient(160deg, #fff3e9, #f4f6f9); }
.login__box { width: 100%; max-width: 380px; background: #fff; padding: 34px 30px; border-radius: 18px; box-shadow: 0 20px 50px rgba(32,38,49,.1); }
.login__box h1 { font-size: 24px; font-weight: 900; text-align: center; margin-bottom: 22px; }
.login__box h1 small { color: #ee5b18; font-size: 15px; }
.login .muted { margin: 14px 0; }

@media (max-width: 900px) {
  .atop { flex-wrap: wrap; height: auto; min-height: 58px; padding: 10px 16px; }
  .atop__menu { display: block; }
  .anav { display: none; flex-basis: 100%; flex-direction: column; padding-bottom: 8px; }
  .nav-open .anav { display: flex; }
  .anav a:nth-last-child(2) { margin-left: 0; }
  .amain { padding: 20px 14px 60px; }
  .grid2, .grid2--wide, .fields { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hide-m { display: none; }
  .dl { grid-template-columns: 90px 1fr; }
}
