/* =====================================================================
   마이클리닝앱 글로벌 디자인 시스템 (mycleaning.css)
   컨셉: "산뜻한 세탁" — 라벤더 바이올렛 + 코랄, 에어리한 화이트 카드 UI
   (월드크리닝 Teal/Blue 계열과 차별화된 신규 디자인)
   ===================================================================== */

/* ---------------------------------------------------------------
   0. 폰트 (Pretendard)
   --------------------------------------------------------------- */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* ---------------------------------------------------------------
   1. 디자인 토큰
   --------------------------------------------------------------- */
:root {
  /* 컬러 — Primary: 섬유유연제 라벤더, Accent: 코랄 */
  --mcl-primary: #6C5CE7;
  --mcl-primary-dark: #5A4BD1;
  --mcl-primary-weak: #EFEDFD;
  --mcl-accent: #FF7A59;
  --mcl-accent-dark: #F2643F;
  --mcl-accent-weak: #FFF1EC;

  --mcl-bg: #F7F7FC;
  --mcl-surface: #FFFFFF;
  --mcl-text: #1F2333;
  --mcl-text-sub: #5C6175;
  --mcl-muted: #8A8FA3;
  --mcl-border: #E8E9F2;
  --mcl-divider: #F1F2F8;

  --mcl-success: #2EBD85;
  --mcl-success-weak: #E6F8F1;
  --mcl-warn: #FFB020;
  --mcl-warn-weak: #FFF6E5;
  --mcl-danger: #F0455A;
  --mcl-danger-weak: #FEECEF;
  --mcl-info: #3D9BF5;
  --mcl-info-weak: #EAF4FE;

  --mcl-grad-primary: linear-gradient(135deg, #7C6CF0 0%, #6C5CE7 55%, #5A4BD1 100%);
  --mcl-grad-accent: linear-gradient(135deg, #FF8E6E 0%, #FF7A59 100%);

  /* 타이포 */
  --mcl-font: "Pretendard", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;

  /* 라운드 / 그림자 / 간격 */
  --mcl-radius-s: 10px;
  --mcl-radius-m: 16px;
  --mcl-radius-l: 20px;
  --mcl-radius-pill: 9999px;

  --mcl-shadow-xs: 0 1px 3px rgba(31, 35, 51, 0.06);
  --mcl-shadow-s: 0 2px 8px rgba(31, 35, 51, 0.07);
  --mcl-shadow-m: 0 6px 20px rgba(31, 35, 51, 0.09);
  --mcl-shadow-primary: 0 6px 16px rgba(108, 92, 231, 0.28);

  --mcl-sp-1: 4px;
  --mcl-sp-2: 8px;
  --mcl-sp-3: 12px;
  --mcl-sp-4: 16px;
  --mcl-sp-5: 20px;
  --mcl-sp-6: 24px;
  --mcl-sp-8: 32px;

  --mcl-appbar-h: 56px;
  --mcl-bottomnav-h: 64px;
  --mcl-maxw: 560px;
}

/* ---------------------------------------------------------------
   2. 리셋 & 베이스
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--mcl-font);
  color: var(--mcl-text);
  background: var(--mcl-bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
input, select, textarea { font: inherit; color: inherit; }

/* 모바일 앱 컨테이너 (중앙 고정 최대폭) */
.mcl-app {
  max-width: var(--mcl-maxw);
  margin: 0 auto;
  min-height: 100%;
  background: var(--mcl-bg);
  position: relative;
  padding-bottom: calc(var(--mcl-bottomnav-h) + env(safe-area-inset-bottom, 0px) + 12px);
}
.mcl-app.no-bottomnav { padding-bottom: 24px; }

/* ---------------------------------------------------------------
   3. 앱바 (상단) — 화이트 + 바이올렛 포인트
   --------------------------------------------------------------- */
.appbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--mcl-appbar-h);
  display: flex;
  align-items: center;
  gap: var(--mcl-sp-3);
  padding: 0 var(--mcl-sp-4);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mcl-divider);
  max-width: var(--mcl-maxw);
  margin: 0 auto;
}
.appbar-title {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  color: var(--mcl-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appbar .btn-back,
.appbar .btn-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--mcl-radius-pill);
  color: var(--mcl-text);
  font-size: 17px;
  flex: none;
}
.appbar .btn-back:active,
.appbar .btn-icon:active { background: var(--mcl-primary-weak); }
.appbar-spacer { width: 38px; flex: none; }
.appbar-logo { height: 28px; width: auto; }
.appbar-shopname {
  flex: 1;
  font-size: 18px;
  font-weight: 800;
  color: var(--mcl-primary);
  letter-spacing: -0.3px;
}

/* ---------------------------------------------------------------
   4. 히어로 (메인 상단) — 라벤더 그라데이션
   --------------------------------------------------------------- */
.hero {
  margin: var(--mcl-sp-4);
  padding: var(--mcl-sp-6) var(--mcl-sp-5);
  border-radius: var(--mcl-radius-l);
  background: var(--mcl-grad-primary);
  color: #fff;
  box-shadow: var(--mcl-shadow-primary);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
}
.hero-title { font-size: 21px; font-weight: 800; line-height: 1.35; letter-spacing: -0.4px; }
.hero-sub { margin-top: 6px; font-size: 13.5px; opacity: 0.88; }
.hero .btn { margin-top: var(--mcl-sp-4); }

/* ---------------------------------------------------------------
   5. 카드 / 섹션
   --------------------------------------------------------------- */
.card {
  background: var(--mcl-surface);
  border-radius: var(--mcl-radius-l);
  box-shadow: var(--mcl-shadow-s);
  margin: var(--mcl-sp-4);
  padding: var(--mcl-sp-5);
}
.card.flat { box-shadow: none; border: 1px solid var(--mcl-border); }
.card-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: var(--mcl-sp-3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-title .ico {
  width: 30px; height: 30px;
  border-radius: var(--mcl-radius-s);
  background: var(--mcl-primary-weak);
  color: var(--mcl-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex: none;
}
.section-title {
  margin: var(--mcl-sp-6) var(--mcl-sp-4) var(--mcl-sp-2);
  font-size: 15px;
  font-weight: 700;
  color: var(--mcl-text-sub);
}

/* 정보 행 (라벨-값) */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--mcl-sp-3);
  padding: 9px 0;
}
.info-row + .info-row { border-top: 1px solid var(--mcl-divider); }
.info-label { font-size: 13.5px; color: var(--mcl-muted); flex: none; }
.info-value { font-size: 14px; font-weight: 500; text-align: right; word-break: break-all; }
.info-value.strong { font-weight: 800; font-size: 16px; color: var(--mcl-primary); }

/* ---------------------------------------------------------------
   6. 버튼
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 50px;
  padding: 0 var(--mcl-sp-5);
  border-radius: var(--mcl-radius-m);
  font-size: 15.5px;
  font-weight: 700;
  transition: filter 0.15s, transform 0.05s;
  text-align: center;
}
.btn:active { transform: scale(0.985); filter: brightness(0.96); }
.btn-primary { background: var(--mcl-grad-primary); color: #fff; box-shadow: var(--mcl-shadow-primary); }
.btn-accent { background: var(--mcl-grad-accent); color: #fff; box-shadow: 0 6px 16px rgba(255, 122, 89, 0.28); }
.btn-outline { background: var(--mcl-surface); color: var(--mcl-primary); border: 1.5px solid var(--mcl-primary); }
.btn-ghost { background: var(--mcl-primary-weak); color: var(--mcl-primary-dark); }
.btn-gray { background: #EDEEF5; color: var(--mcl-text-sub); }
.btn-danger { background: var(--mcl-danger); color: #fff; }
.btn-sm { height: 38px; font-size: 13.5px; border-radius: var(--mcl-radius-s); width: auto; padding: 0 var(--mcl-sp-4); }
.btn-lg { height: 56px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }

/* 소셜 로그인 버튼 */
.btn-kakao { background: #FEE500; color: #1F2333; }
.btn-google { background: #fff; color: #1F2333; border: 1.5px solid var(--mcl-border); }

/* ---------------------------------------------------------------
   7. 입력폼
   --------------------------------------------------------------- */
.field { margin-bottom: var(--mcl-sp-4); }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mcl-text-sub);
  margin-bottom: 7px;
}
.field-label .req { color: var(--mcl-danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%;
  height: 50px;
  padding: 0 var(--mcl-sp-4);
  border: 1.5px solid var(--mcl-border);
  border-radius: var(--mcl-radius-m);
  background: var(--mcl-surface);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { height: auto; min-height: 96px; padding: var(--mcl-sp-3) var(--mcl-sp-4); resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--mcl-primary);
  box-shadow: 0 0 0 3px var(--mcl-primary-weak);
}
.input::placeholder, .textarea::placeholder { color: #B4B8C8; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238A8FA3' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field-help { margin-top: 6px; font-size: 12px; color: var(--mcl-muted); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.input-group .btn { width: auto; flex: none; padding: 0 var(--mcl-sp-4); }

/* 라디오 칩 (수거시간대/주소 선택 등) */
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: var(--mcl-radius-pill);
  border: 1.5px solid var(--mcl-border);
  background: var(--mcl-surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mcl-text-sub);
  cursor: pointer;
  transition: all 0.15s;
}
.chip.on, .chip:has(input:checked) {
  border-color: var(--mcl-primary);
  background: var(--mcl-primary-weak);
  color: var(--mcl-primary-dark);
}
.chip input { display: none; }

/* ---------------------------------------------------------------
   8. 상태 배지 (주문상태 1~11)
   --------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 11px;
  border-radius: var(--mcl-radius-pill);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.st-accepted        { background: var(--mcl-info-weak);    color: var(--mcl-info); }      /* 1 주문접수 */
.st-pickup-ready    { background: var(--mcl-primary-weak); color: var(--mcl-primary); }   /* 2 수거준비 */
.st-pickup-ing      { background: var(--mcl-primary-weak); color: var(--mcl-primary-dark);} /* 3 수거중 */
.st-pickup-done     { background: var(--mcl-success-weak); color: var(--mcl-success); }   /* 4 수거완료 */
.st-pay-wait        { background: var(--mcl-warn-weak);    color: #D98C00; }              /* 5 결제대기 */
.st-pay-done        { background: var(--mcl-success-weak); color: var(--mcl-success); }   /* 6 결제완료 */
.st-washing         { background: #EAF7FE;                 color: #1893D8; }              /* 7 세탁중 */
.st-delivery-ready  { background: var(--mcl-accent-weak);  color: var(--mcl-accent-dark);} /* 8 배송준비 */
.st-delivery-ing    { background: var(--mcl-accent-weak);  color: var(--mcl-accent); }    /* 9 배송중 */
.st-completed       { background: #EDEEF5;                 color: var(--mcl-text-sub); }  /* 10 배송완료 */
.st-cancelled       { background: var(--mcl-danger-weak);  color: var(--mcl-danger); }    /* 11 취소 */
.st-unknown         { background: #EDEEF5;                 color: var(--mcl-muted); }

/* ---------------------------------------------------------------
   9. 리스트 (주문목록 등)
   --------------------------------------------------------------- */
.list-row {
  display: flex;
  align-items: center;
  gap: var(--mcl-sp-3);
  background: var(--mcl-surface);
  border-radius: var(--mcl-radius-m);
  box-shadow: var(--mcl-shadow-xs);
  margin: var(--mcl-sp-3) var(--mcl-sp-4);
  padding: var(--mcl-sp-4);
  transition: transform 0.05s;
}
.list-row:active { transform: scale(0.99); }
.list-row .row-main { flex: 1; min-width: 0; }
.list-row .row-title { font-size: 14.5px; font-weight: 700; }
.list-row .row-sub { margin-top: 3px; font-size: 12.5px; color: var(--mcl-muted); }
.list-row .row-side { flex: none; text-align: right; }
.list-row .row-amount { font-size: 15px; font-weight: 800; color: var(--mcl-text); }
.list-row .row-arrow { color: #C3C6D4; font-size: 13px; flex: none; }

/* 빈 상태 */
.empty-state {
  padding: 56px 24px;
  text-align: center;
  color: var(--mcl-muted);
}
.empty-state .ico { font-size: 40px; margin-bottom: 12px; color: #D4D6E4; }
.empty-state p { font-size: 14px; }

/* ---------------------------------------------------------------
   10. 진행 타임라인 (주문상세)
   --------------------------------------------------------------- */
.timeline { position: relative; padding-left: 4px; }
.timeline-step {
  position: relative;
  display: flex;
  gap: 14px;
  padding-bottom: 22px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: var(--mcl-divider);
}
.timeline-step:last-child::before { display: none; }
.timeline-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--mcl-surface);
  border: 2px solid var(--mcl-border);
  flex: none;
  z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px;
  color: transparent;
}
.timeline-step.done .timeline-dot {
  background: var(--mcl-primary);
  border-color: var(--mcl-primary);
  color: #fff;
}
.timeline-step.active .timeline-dot {
  background: var(--mcl-surface);
  border-color: var(--mcl-primary);
  box-shadow: 0 0 0 4px var(--mcl-primary-weak);
}
.timeline-step.active .timeline-dot::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mcl-primary);
}
.timeline-body { flex: 1; padding-top: 0px; }
.timeline-title { font-size: 14px; font-weight: 600; color: var(--mcl-muted); }
.timeline-step.done .timeline-title,
.timeline-step.active .timeline-title { color: var(--mcl-text); font-weight: 700; }
.timeline-step.active .timeline-title { color: var(--mcl-primary-dark); }
.timeline-date { font-size: 12px; color: var(--mcl-muted); margin-top: 1px; }

/* ---------------------------------------------------------------
   11. 하단 네비게이션 (소비자/기사 공용)
   --------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--mcl-maxw);
  height: calc(var(--mcl-bottomnav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--mcl-surface);
  border-top: 1px solid var(--mcl-divider);
  display: flex;
  z-index: 60;
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: #A6AABB;
}
.bottom-nav a i { font-size: 19px; }
.bottom-nav a.on { color: var(--mcl-primary); }
.bottom-nav .nav-cta {
  margin-top: -22px;
}
.bottom-nav .nav-cta .cta-circle {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--mcl-grad-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 21px;
  box-shadow: 0 6px 16px rgba(255, 122, 89, 0.38);
}
.bottom-nav .nav-cta span { color: var(--mcl-accent); }

/* ---------------------------------------------------------------
   12. 가격표
   --------------------------------------------------------------- */
.price-cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: var(--mcl-sp-3) var(--mcl-sp-4);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.price-cat-tabs::-webkit-scrollbar { display: none; }
.price-table { margin: 0 var(--mcl-sp-4); }
.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--mcl-surface);
  border-radius: var(--mcl-radius-m);
  box-shadow: var(--mcl-shadow-xs);
  padding: var(--mcl-sp-4);
  margin-bottom: var(--mcl-sp-2);
}
.price-item .p-name { font-size: 14.5px; font-weight: 600; }
.price-item .p-desc { font-size: 12px; color: var(--mcl-muted); margin-top: 2px; }
.price-item .p-price { font-size: 15px; font-weight: 800; color: var(--mcl-primary); }

/* ---------------------------------------------------------------
   13. 단계 인디케이터 (수거신청 step)
   --------------------------------------------------------------- */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--mcl-sp-4);
}
.steps .step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #D8DAE6;
  transition: all 0.2s;
}
.steps .step-dot.on { width: 22px; border-radius: 4px; background: var(--mcl-primary); }

/* ---------------------------------------------------------------
   14. 로그인 페이지
   --------------------------------------------------------------- */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--mcl-sp-8) var(--mcl-sp-6);
  background:
    radial-gradient(circle at 85% 8%, rgba(108, 92, 231, 0.10), transparent 38%),
    radial-gradient(circle at 10% 95%, rgba(255, 122, 89, 0.08), transparent 38%),
    var(--mcl-bg);
}
.login-logo-area { text-align: center; margin-bottom: var(--mcl-sp-8); }
.login-logo-area img { max-height: 72px; margin: 0 auto 14px; }
.login-shopname { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; color: var(--mcl-primary-dark); }
.login-title { margin-top: 8px; font-size: 14px; color: var(--mcl-muted); }
.login-buttons { display: flex; flex-direction: column; gap: 10px; }
.login-footer { margin-top: var(--mcl-sp-6); font-size: 11.5px; color: var(--mcl-muted); text-align: center; line-height: 1.6; }
.login-footer a { text-decoration: underline; }

/* ---------------------------------------------------------------
   15. 관리자(PC) 레이아웃 — 사장님/최고관리자 공용
   --------------------------------------------------------------- */
.adm-body { background: var(--mcl-bg); }
.adm-wrap { display: flex; min-height: 100vh; }
.adm-sidebar {
  width: 232px;
  flex: none;
  background: #232540;
  color: #C9CBE2;
  padding: var(--mcl-sp-5) 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.adm-sidebar .adm-logo {
  padding: 0 var(--mcl-sp-5) var(--mcl-sp-5);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.adm-sidebar .adm-logo .sub { display: block; font-size: 11px; font-weight: 500; color: #8E92B8; margin-top: 2px; }
.adm-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px var(--mcl-sp-5);
  font-size: 14px;
  font-weight: 500;
  color: #C9CBE2;
  border-left: 3px solid transparent;
}
.adm-menu a i { width: 18px; text-align: center; font-size: 14px; }
.adm-menu a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.adm-menu a.on {
  background: rgba(108, 92, 231, 0.18);
  border-left-color: var(--mcl-primary);
  color: #fff;
  font-weight: 700;
}
.adm-menu .menu-group {
  padding: 16px var(--mcl-sp-5) 6px;
  font-size: 11px;
  font-weight: 700;
  color: #7B7FA8;
  letter-spacing: 0.5px;
}
.adm-main { flex: 1; min-width: 0; padding: var(--mcl-sp-6); }
.adm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--mcl-sp-5);
}
.adm-topbar h1 { font-size: 21px; font-weight: 800; letter-spacing: -0.4px; }
.adm-topbar .adm-user { font-size: 13px; color: var(--mcl-muted); display: flex; align-items: center; gap: 10px; }

/* 관리자 카드/통계 */
.adm-card {
  background: var(--mcl-surface);
  border-radius: var(--mcl-radius-m);
  box-shadow: var(--mcl-shadow-xs);
  padding: var(--mcl-sp-5);
  margin-bottom: var(--mcl-sp-4);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--mcl-sp-3);
  margin-bottom: var(--mcl-sp-4);
}
.stat-card {
  background: var(--mcl-surface);
  border-radius: var(--mcl-radius-m);
  box-shadow: var(--mcl-shadow-xs);
  padding: var(--mcl-sp-4) var(--mcl-sp-5);
}
.stat-card .stat-label { font-size: 12.5px; color: var(--mcl-muted); font-weight: 600; }
.stat-card .stat-value { margin-top: 4px; font-size: 23px; font-weight: 800; letter-spacing: -0.5px; }
.stat-card .stat-value small { font-size: 13px; font-weight: 600; color: var(--mcl-muted); }
.stat-card.hl { background: var(--mcl-grad-primary); }
.stat-card.hl .stat-label, .stat-card.hl .stat-value { color: #fff; }

/* 관리자 테이블 */
.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th {
  text-align: left;
  padding: 11px 12px;
  background: #F4F5FA;
  color: var(--mcl-text-sub);
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
}
.adm-table th:first-child { border-radius: 8px 0 0 8px; }
.adm-table th:last-child { border-radius: 0 8px 8px 0; }
.adm-table td {
  padding: 12px;
  border-bottom: 1px solid var(--mcl-divider);
  vertical-align: middle;
}
.adm-table tr:hover td { background: #FAFAFE; }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* 검색/필터 바 */
.adm-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: var(--mcl-sp-4);
}
.adm-filter .input, .adm-filter .select { height: 40px; width: auto; min-width: 140px; font-size: 13.5px; }
.adm-filter .btn { height: 40px; width: auto; font-size: 13.5px; padding: 0 var(--mcl-sp-4); }

/* 페이징 */
.paging { display: flex; justify-content: center; gap: 6px; margin: var(--mcl-sp-5) 0; }
.paging a, .paging strong {
  min-width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--mcl-radius-s);
  font-size: 13px;
  color: var(--mcl-text-sub);
  background: var(--mcl-surface);
  border: 1px solid var(--mcl-border);
}
.paging strong { background: var(--mcl-primary); border-color: var(--mcl-primary); color: #fff; font-weight: 700; }

/* ---------------------------------------------------------------
   16. 기사앱 전용
   --------------------------------------------------------------- */
.drv-tabs {
  display: flex;
  margin: var(--mcl-sp-4);
  background: #EDEEF5;
  border-radius: var(--mcl-radius-m);
  padding: 4px;
}
.drv-tabs a {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--mcl-muted);
}
.drv-tabs a.on { background: var(--mcl-surface); color: var(--mcl-primary-dark); box-shadow: var(--mcl-shadow-xs); }
.drv-order-card {
  background: var(--mcl-surface);
  border-radius: var(--mcl-radius-m);
  box-shadow: var(--mcl-shadow-xs);
  margin: var(--mcl-sp-3) var(--mcl-sp-4);
  padding: var(--mcl-sp-4);
  border-left: 4px solid var(--mcl-primary);
}
.drv-order-card.type-delivery { border-left-color: var(--mcl-accent); }
.drv-order-card .d-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drv-order-card .d-name { font-size: 15px; font-weight: 800; }
.drv-order-card .d-addr { font-size: 13.5px; color: var(--mcl-text-sub); line-height: 1.5; }
.drv-order-card .d-meta { margin-top: 6px; font-size: 12.5px; color: var(--mcl-muted); }
.drv-order-card .d-actions { display: flex; gap: 8px; margin-top: var(--mcl-sp-3); }
.drv-order-card .d-actions .btn { height: 42px; font-size: 14px; }

/* ---------------------------------------------------------------
   17. 유틸리티
   --------------------------------------------------------------- */
.tc { text-align: center; }
.tr { text-align: right; }
.mt-1 { margin-top: var(--mcl-sp-1); } .mt-2 { margin-top: var(--mcl-sp-2); }
.mt-3 { margin-top: var(--mcl-sp-3); } .mt-4 { margin-top: var(--mcl-sp-4); }
.mt-5 { margin-top: var(--mcl-sp-5); } .mt-6 { margin-top: var(--mcl-sp-6); }
.mb-2 { margin-bottom: var(--mcl-sp-2); } .mb-4 { margin-bottom: var(--mcl-sp-4); }
.px-4 { padding-left: var(--mcl-sp-4); padding-right: var(--mcl-sp-4); }
.flex { display: flex; } .flex-1 { flex: 1; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap-2 { gap: var(--mcl-sp-2); } .gap-3 { gap: var(--mcl-sp-3); }
.text-muted { color: var(--mcl-muted); }
.text-primary { color: var(--mcl-primary); }
.text-accent { color: var(--mcl-accent); }
.text-danger { color: var(--mcl-danger); }
.text-success { color: var(--mcl-success); }
.fw-7 { font-weight: 700; } .fw-8 { font-weight: 800; }
.fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-14 { font-size: 14px; }
.divider { height: 1px; background: var(--mcl-divider); margin: var(--mcl-sp-3) 0; }
.hidden { display: none !important; }

/* 하단 고정 버튼 영역 */
.fixed-bottom-actions {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--mcl-maxw);
  padding: var(--mcl-sp-3) var(--mcl-sp-4) calc(var(--mcl-sp-3) + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(247, 247, 252, 0) 0%, var(--mcl-bg) 35%);
  display: flex;
  gap: 10px;
  z-index: 55;
}

/* 반응형: PC에서 관리자 외 화면도 보기 좋게 */
@media (max-width: 900px) {
  .adm-wrap { flex-direction: column; }
  .adm-sidebar { width: 100%; height: auto; position: static; }
  .adm-main { padding: var(--mcl-sp-4); }
}
