/* 관리자: 브랜드 연출을 뺀 업무 화면 */
body[data-page='admin'] { --bg: #f1f1ef; --fg: #1a1815; --muted: #6b675f; --line: rgba(26, 24, 21, .12); --accent: #d6461a; color-scheme: light; }
.a-app { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100svh; }
.a-side { position: sticky; top: 0; align-self: start; height: 100svh; display: flex; flex-direction: column; gap: 18px; padding: 22px 16px; background: #1a1815; color: #f1efe9; }
.a-logo { display: flex; align-items: baseline; gap: 8px; }
.a-logo .d { font-size: 26px; }
.a-logo small { color: #b5b0a6; font-size: 13px; }
.a-side .seg { width: 100%; border-color: rgba(241, 239, 233, .2); }
.a-side .seg button { flex: 1; padding: 0 8px; color: #cfcac0; }
.a-side .seg button[aria-pressed='true'] { background: #f1efe9; color: #1a1815; }
.a-tabs { display: grid; gap: 2px; }
.a-tab { min-height: 44px; padding: 0 12px; border-radius: 10px; text-align: left; color: #cfcac0; font-weight: 500; transition: background .2s, color .2s; }
.a-tab:hover { background: rgba(241, 239, 233, .08); }
.a-tab.is-on { background: #f1efe9; color: #1a1815; }
.a-side__foot { margin-top: auto; display: grid; gap: 6px; }
.a-side__foot .a-btn { background: transparent; color: #cfcac0; border-color: rgba(241, 239, 233, .2); }

.a-main { padding: clamp(18px, 3vw, 36px); display: grid; gap: 18px; align-content: start; min-width: 0; }
.a-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.a-top h1 { font-size: clamp(26px, 2.6vw, 38px); }
.a-top p { color: var(--muted); font-size: 13px; }
#aBody { display: grid; gap: 14px; min-width: 0; }

.a-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.a-tile { display: grid; gap: 2px; padding: 18px 20px; border-radius: 14px; background: #fff; border-left: 4px solid transparent; }
.a-tile p { font-size: 14px; color: var(--muted); font-weight: 500; }
.a-tile b { font-family: var(--display); font-size: clamp(36px, 3.4vw, 52px); font-weight: 500; line-height: 1.15; }
.a-tile small { font-size: .38em; margin-left: 3px; }
.a-tile span { font-size: 13px; color: var(--muted); }
.a-tile.is-alert { border-left-color: var(--accent); }

.a-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.a-card { display: grid; gap: 12px; padding: 18px 20px; border-radius: 14px; background: #fff; min-width: 0; }
.a-card h2 { font-size: 16px; font-weight: 700; }
.a-card h2 small { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.a-row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 10px; min-height: 52px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.a-row b { font-weight: 600; }
.a-empty { padding: 12px 0; color: var(--muted); border-top: 1px solid var(--line); }
.a-chip { padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eeece8; white-space: nowrap; }
.a-chip--portal { background: #e3f4e5; color: #1a6a33; }
.a-chip--phone { background: #e6edf7; color: #29558f; }
.a-chip--web { background: #fbe6dd; color: #a53a12; }

.a-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 600; background: #fff; transition: background .2s, color .2s; white-space: nowrap; }
.a-btn:hover { background: #f1f1ef; }
.a-btn--main { background: #1a1815; color: #fff; border-color: #1a1815; }
.a-btn--main:hover { background: var(--accent); border-color: var(--accent); }
.a-btn--link { border-color: transparent; background: transparent; }

.a-dates { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.a-date { flex: none; min-height: 42px; padding: 0 14px; border-radius: 99px; background: #fff; font-size: 14px; font-weight: 500; }
.a-date.is-on { background: #1a1815; color: #fff; }
.a-scroll { overflow-x: auto; }
.a-grid { width: 100%; min-width: 640px; table-layout: fixed; border-collapse: separate; border-spacing: 4px; font-size: 14px; }
.a-grid th:first-child { width: 64px; }
.a-prices th:first-child { width: 28%; }
.a-cell.is-booked b { overflow-wrap: anywhere; }
.a-grid thead th { font-weight: 600; text-align: left; padding: 4px 6px; color: var(--muted); }
.a-grid thead small { font-size: 11px; font-weight: 700; color: #1a6a33; }
.a-grid tbody th { text-align: left; font-weight: 600; padding: 0 6px; vertical-align: middle; }
.a-cell { height: 70px; padding: 8px 10px; border-radius: 10px; background: #f6f5f3; vertical-align: top; }
.a-cell.is-booked { background: #fff2ec; box-shadow: inset 3px 0 0 var(--accent); }
.a-cell.is-booked b { display: block; font-weight: 600; margin-bottom: 4px; }
.a-cell.is-closed { background: repeating-linear-gradient(135deg, #ecebe8 0 7px, #e2e0dc 7px 14px); color: var(--muted); font-weight: 600; }
.a-cell.is-taken { color: var(--muted); }
.a-add { width: 100%; height: 100%; min-height: 44px; border-radius: 8px; color: var(--muted); font-size: 13px; transition: background .2s, color .2s; }
.a-add:hover { background: #fff; color: var(--fg); }
.a-manual__row { display: grid; grid-template-columns: 1.4fr .7fr .8fr; gap: 10px; }
.a-manual { box-shadow: 0 0 0 2px var(--accent); }

.a-lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; }
.a-lane ul { display: grid; gap: 8px; }
.a-order { display: grid; gap: 4px; padding: 12px; border-radius: 10px; background: #f6f5f3; font-size: 14px; }
.a-order__top { display: flex; justify-content: space-between; }
.a-order__top b { font-size: 18px; font-weight: 600; }
.a-order__top span { color: var(--muted); font-size: 13px; }
.a-order .a-btn { margin-top: 6px; }

.a-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 13px; font-weight: 600; color: var(--muted); }
.a-switch i { position: relative; width: 42px; height: 24px; border-radius: 99px; background: #d8d6d1; transition: background .25s; flex: none; }
.a-switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.a-switch.is-on { color: var(--accent); }
.a-switch.is-on i { background: var(--accent); }
.a-switch.is-on i::after { transform: translateX(18px); }

.a-prices td, .a-prices th { padding: 10px 8px !important; border-top: 1px solid var(--line); background: none; }
.a-prices th small, .a-prices td small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.a-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.a-stepper button { width: 40px; height: 42px; font-size: 18px; background: #f6f5f3; }
.a-stepper button:hover { background: #ebeae6; }
.a-stepper input { width: 92px; height: 42px; border: 0; text-align: center; font-weight: 600; background: #fff; }
.a-stepper input::-webkit-outer-spin-button, .a-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.a-stepper input { -moz-appearance: textfield; appearance: textfield; }
.a-post { gap: 14px; }

@media (max-width: 899px) {
  .a-app { display: block; padding-bottom: 76px; }
  .a-side { position: static; height: auto; padding: 16px; gap: 12px; }
  .a-tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: #1a1815; }
  .a-tab { min-height: 48px; padding: 0 2px; text-align: center; font-size: 12px; }
  .a-side__foot { display: flex; }
  .a-side__foot .a-btn { flex: 1; font-size: 13px; }
  .a-tiles { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .a-tile { padding: 12px; }
  .a-tile span { display: none; }
  .a-cols, .a-lanes { grid-template-columns: 1fr; }
  .a-row { grid-template-columns: 74px 1fr auto; font-size: 14px; }
  .a-manual__row { grid-template-columns: 1fr 1fr; }
  .a-manual__row .field:first-child { grid-column: 1 / -1; }
}
