/* ===========================================================================
   펫바자 파트너센터 셸 — 왼쪽 사이드바 + 상단 바 + 본문
   (관리자 화면과 파트너센터가 공유)
   =========================================================================== */
:root {
  --pc-bg: #f5f6f7;
  --pc-side-w: 232px;
}
body.pc { background: var(--pc-bg); }
/* hidden 속성이 display 규칙에 덮이지 않도록 (로그인 카드·섹션 전환에 사용) */
[hidden] { display: none !important; }

.pc-layout { display: grid; grid-template-columns: var(--pc-side-w) minmax(0, 1fr); min-height: 100vh; }

/* ---------- 사이드바 (파트너센터 — 흰 바탕, 단정한 목록형) ---------- */
.pc-side {
  background: #fff; color: #2f3836; border-right: 1px solid #e3e7e7;
  padding: 18px 12px 12px; display: flex; flex-direction: column; gap: 1px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin;
}
.pc-brand { display: flex; align-items: center; gap: 9px; padding: 2px 10px 18px; text-decoration: none; }
.pc-brand img { height: 20px; width: auto; display: block; }
.pc-brand span { font-size: 12.5px; font-weight: 600; color: #6c7775; }

.pc-group { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #98a2a0; padding: 16px 12px 5px; }
.pc-group .pc-off { font-style: normal; font-size: 10.5px; font-weight: 600; color: #98a2a0; background: #eef1f1; border-radius: 4px; padding: 1px 6px; }

.pc-nav { display: flex; flex-direction: column; gap: 1px; }
.pc-nav .tab, .pc-nav .pc-item, .pc-link {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 12px; border: 0; border-radius: 6px; background: none;
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.4;
  color: #3b4543; text-align: left; cursor: pointer; text-decoration: none;
}
.pc-nav .tab svg, .pc-nav .pc-item svg, .pc-link svg { flex: none; width: 17px; height: 17px; color: #8d9896; stroke-width: 1.7; }
.pc-nav .tab:hover, .pc-nav .pc-item:hover, .pc-link:hover { background: #f2f5f5; color: #1f2826; }
.pc-nav .tab.active, .pc-nav .pc-item.active { background: #e8f2f1; color: #0b5c58; font-weight: 600; border-bottom: 0; }
.pc-nav .tab.active svg, .pc-nav .pc-item.active svg { color: #0f7a73; }
.pc-nav .tab .tab-dot { margin-left: auto; width: 6px; height: 6px; background: #e0533f; }
.pc-nav .pc-item .ext { margin-left: auto; color: #a1aaa8; font-size: 11px; }
/* 이용 전 서비스 — 같은 줄의 흐린 메뉴 (입점 신청 / 이용 신청) */
.pc-nav .pc-item.off { color: #98a2a0; font-weight: 500; }
.pc-nav .pc-item.off svg { color: #bcc4c2; }
.pc-nav .pc-item.off:hover { color: #0b5c58; }
.pc-nav .pc-item.off:hover svg { color: #0f7a73; }
.pc-nav .pc-item.off.active { color: #0b5c58; font-weight: 600; }
.pc-nav .pc-item.off.active svg { color: #0f7a73; }

.pc-sp { flex: 1; min-height: 14px; }
.pc-side > .pc-link { font-size: 13px; color: #6c7775; padding: 7px 12px; }
.pc-side > .pc-link svg { width: 16px; height: 16px; }

.pc-who { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; margin-top: 6px; border-top: 1px solid #eceff0; }
.pc-av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #0f7a73; color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.pc-who > span:last-child { min-width: 0; }
.pc-who b { display: block; font-size: 13px; font-weight: 600; color: #26302e; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 160px; }
.pc-who small { display: block; font-size: 11px; color: #8d9896; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; max-width: 160px; }

/* ---------- 상단 바 + 본문 ---------- */
.pc-body { min-width: 0; display: flex; flex-direction: column; }
.pc-topbar {
  position: sticky; top: 0; z-index: 40; height: 56px; flex: none;
  display: flex; align-items: center; gap: 12px; padding: 0 26px;
  background: #fff; border-bottom: 1px solid #e3e7e7;
}
.pc-crumb { font-size: 13px; color: #8d9896; }
.pc-crumb b { color: #1f2826; font-size: 15px; font-weight: 700; }
.pc-topbar .pc-sp { flex: 1; min-height: 0; }
.pc-topbar .noti-slot { display: flex; align-items: center; }
.pc-main { padding: 24px 26px 64px; width: 100%; max-width: 1320px; }
.pc-main > section > .manifest-title:first-child,
.pc-main > section > .stat-row:first-child { margin-top: 0; }

/* 상단 [문의] */
.pc-ask { height: 32px; padding: 0 13px; margin-right: 6px; border: 1px solid #dde3e2; border-radius: 6px; background: #fff;
  font: inherit; font-size: 13px; font-weight: 600; color: #3b4543; cursor: pointer; }
.pc-ask:hover { border-color: #0f7a73; color: #0b5c58; }

/* 게이트(로그인 필요) — 사이드바 없이 가운데 */
.pc-gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 16px; }
.pc-gate-logo { height: 30px; margin-bottom: 18px; }

/* ---------- 관리자 — 단색 짙은 회색 사이드바로 파트너센터와 구분 ---------- */
body.pc-admin .pc-side { background: #262a31; color: #e4e7eb; border-right: 0; }
body.pc-admin .pc-brand span { color: #f0b457; font-weight: 700; }
body.pc-admin .pc-nav .tab, body.pc-admin .pc-side > .pc-link { color: #c4cad1; }
body.pc-admin .pc-nav .tab svg, body.pc-admin .pc-side > .pc-link svg { color: #8f98a3; }
body.pc-admin .pc-nav .tab:hover, body.pc-admin .pc-side > .pc-link:hover { background: #30353d; color: #fff; }
body.pc-admin .pc-nav .tab.active { background: #363c45; color: #fff; }
body.pc-admin .pc-nav .tab.active svg { color: #f0b457; }
body.pc-admin .pc-parent { display: flex; align-items: center; gap: 10px; padding: 8px 12px 3px; margin-top: 4px;
  font-size: 14px; font-weight: 500; color: #c4cad1; }
body.pc-admin .pc-parent svg { flex: none; width: 17px; height: 17px; color: #8f98a3; stroke-width: 1.7; }
body.pc-admin .pc-nav .tab.sub { padding: 6px 12px 6px 39px; font-size: 13.5px; }
body.pc-admin .pc-nav .tab.sub svg { display: none; }
body.pc-admin .pc-who { border-top-color: #353a42; }
body.pc-admin .pc-who b { color: #f1f3f5; }
body.pc-admin .pc-who small { color: #98a1ab; }
body.pc-admin .pc-av { background: #f0b457; color: #2a1c06; }
body.pc-admin .pc-topbar { box-shadow: inset 0 3px 0 #f0b457; }
body.pc-admin .pc-crumb::before { content: "관리자"; display: inline-block; margin-right: 10px; padding: 2px 8px; border-radius: 4px;
  background: #fff3df; color: #955a0d; font-size: 11.5px; font-weight: 700; vertical-align: 1px; }

/* ---------- 모바일: 사이드바 → 상단 가로 메뉴 ---------- */
@media (max-width: 860px) {
  .pc-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .pc-side { position: sticky; top: 0; z-index: 60; height: auto; flex-direction: row; align-items: center;
    flex-wrap: nowrap; gap: 2px; padding: 8px 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e3e7e7; }
  .pc-side > * { flex: none; }
  .pc-brand { padding: 0 8px 0 2px; }
  .pc-brand span, .pc-group, .pc-sp, .pc-who, .pc-parent { display: none !important; }
  .pc-nav { flex-direction: row; gap: 2px; }
  .pc-nav .tab, .pc-nav .pc-item, .pc-link, .pc-side > .pc-link { width: auto; white-space: nowrap; padding: 7px 11px; font-size: 13.5px; }
  body.pc-admin .pc-nav .tab.sub { padding: 7px 11px; font-size: 13px; }
  .pc-nav .tab svg, .pc-nav .pc-item svg, .pc-link svg { display: none; }
  .pc-topbar { position: static; height: 48px; padding: 0 16px; }
  .pc-main { padding: 16px 14px 50px; }
}

/* 파트너센터 셸에 들어간 기존 회원 페이지(거래 관리·재고 등록·업체 정보) 보정 */
.pc-shell .pc-main > main.wrap, .pc-shell .pc-main .wrap { max-width: none; padding-left: 0; padding-right: 0; }
.pc-shell .pc-main .page-head { margin-top: 0; }

/* 관리자 — 업체 이용 서비스 뱃지 · 필터 칩 */
.svc-bd { display: inline-block; font-size: 10.5px; font-weight: 800; border-radius: 5px; padding: 1px 6px; margin-right: 4px; }
.svc-bd.b2b { background: #e9f4f3; color: #065c5c; }
.svc-bd.pet { background: #fff1e4; color: #a15c14; }
.ug-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ug-chip { height: 30px; padding: 0 12px; border-radius: 99px; border: 1.5px solid #cdd4d4; background: #fff;
  font: inherit; font-size: 12px; font-weight: 700; color: #4b585c; cursor: pointer; }
.ug-chip.on { border-color: #107A7A; background: #e8f0f0; color: #0C5E5E; }

/* 관리자 — 업체 관리 통합 목록 · 업체 모달 */
tr.co-row { cursor: pointer; }
tr.co-row:hover td { background: #f6faf9; }
.co-feed { margin: -20px 0 30px; }
.co-feed summary { cursor: pointer; font-size: 13px; font-weight: 700; color: #6a7478; padding: 6px 0; }
.co-ev { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px dashed #e6eaea; font-size: 13px; }
.co-ev .t-sub { min-width: 92px; }
.svc-box { display: grid; gap: 10px; margin-bottom: 16px; }
.svc-item { border: 1px solid #e6eaea; border-radius: 12px; padding: 13px 15px; background: #fbfcfc; }
.svc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.svc-head b { font-size: 14.5px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 8px 0 2px; font-size: 13px; }
.svc-grid div { display: flex; flex-direction: column; }
.svc-grid .full { grid-column: 1 / -1; }
.svc-grid span { font-size: 11.5px; color: #6a7478; font-weight: 700; }
.svc-act { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
