/* ── 전역 ─────────────────────────────────────────────── */
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #f4f6f9;
  color: #222;
  font-size: 14px;
}

/* ── 헤더 ────────────────────────────────────────────── */
.pe-header {
  background: #fff;
  border-bottom: 1px solid #dde2ea;
  padding: 12px 0;
}
.pe-logo { font-size: 22px; }
.pe-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #1a6eff;
  letter-spacing: -0.3px;
}
.pe-logo-sub {
  font-size: 12px;
  color: #8a95a3;
  margin-left: 4px;
}

/* ── 푸터 배너 ────────────────────────────────────────── */
.pe-footer {
  padding: 24px 0 32px;
}
.pe-footer-banner-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity .15s;
}
.pe-footer-banner-link:hover { opacity: 0.9; }
.pe-footer-banner {
  display: block;
  width: 100%;
  height: auto;
}

/* ── 탭 바 ────────────────────────────────────────────── */
.pe-tab-bar {
  background: #fff;
  border-bottom: 2px solid #dde2ea;
}
.pe-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
}
.pe-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 22px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s, border-color .15s;
  position: relative;
  bottom: -2px;
}
.pe-tab:hover { color: #1a6eff; }
.pe-tab.active {
  color: #1a6eff;
  border-bottom-color: #1a6eff;
  font-weight: 700;
}
.pe-tab-badge {
  display: inline-block;
  background: #e8f0fe;
  color: #1a6eff;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 20px;
  min-width: 28px;
  text-align: center;
}
.pe-tab-badge:empty { display: none; }

/* ── 섹션 제목 ────────────────────────────────────────── */
.pe-section-title h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

/* ── 필터 박스 ────────────────────────────────────────── */
.pe-filter-box {
  background: #fff;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  padding: 16px 20px;
}
.pe-filter-label {
  font-size: 12px;
  font-weight: 500;
  color: #555;
  margin-bottom: 4px;
}
.pe-select,
.pe-date {
  font-size: 13px;
  border-color: #cdd4dc;
}
.pe-select:focus,
.pe-date:focus,
.form-control:focus {
  border-color: #1a6eff;
  box-shadow: 0 0 0 3px rgba(26,110,255,.12);
}

.pe-btn-search {
  background: #2c3e50;
  color: #fff;
  border-color: #2c3e50;
  font-weight: 500;
  padding: 4px 16px;
}
.pe-btn-search:hover {
  background: #1a2a38;
  border-color: #1a2a38;
  color: #fff;
}

/* ── 결과 건수 ────────────────────────────────────────── */
.pe-result-count {
  font-size: 14px;
  color: #444;
}
.pe-result-count strong {
  color: #1a6eff;
  font-size: 16px;
}

/* ── 테이블 ───────────────────────────────────────────── */
.pe-table-wrap {
  background: #fff;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.pe-table {
  margin: 0;
  font-size: 13px;
}
.pe-table thead th {
  background: #f0f3f7;
  font-weight: 600;
  font-size: 13px;
  color: #444;
  border-bottom: 1px solid #dde2ea;
  padding: 10px 12px;
  white-space: nowrap;
}
.pe-table tbody td {
  padding: 9px 12px;
  vertical-align: middle;
  border-color: #eef0f4;
}
.pe-table tbody tr:hover {
  background: #f5f8ff;
  cursor: pointer;
}
.pe-table tbody tr:last-child td {
  border-bottom: none;
}

.pe-th-name { white-space: nowrap; }
.pe-th-addr { width: 100%; min-width: 200px; }
.cell-name { font-weight: 500; color: #1c2333; white-space: nowrap; }
.cell-addr { color: #5a6475; font-size: 12.5px; }
.cell-no   { color: #9aa3b0; font-size: 12px; text-align: center; }
.cell-date { font-size: 12.5px; color: #555; white-space: nowrap; }

/* 영업상태 배지 */
.badge-open   { background: #ecfdf3; color: #0d7042; font-weight: 600; }
.badge-closed { background: #fef3f2; color: #c0392b; font-weight: 600; }
.badge-pause  { background: #fffaeb; color: #b7791f; font-weight: 600; }
.badge-etc    { background: #f0f2f5; color: #666;    font-weight: 600; }

/* ── 로딩 ────────────────────────────────────────────── */
.pe-loading {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #666;
  z-index: 10;
}

/* ── 페이징 ───────────────────────────────────────────── */
.pe-pagination .page-item .page-link {
  color: #444;
  border-color: #dde2ea;
  font-size: 13px;
  padding: 5px 10px;
}
.pe-pagination .page-item.active .page-link {
  background: #1a6eff;
  border-color: #1a6eff;
  color: #fff;
}
.pe-pagination .page-item .page-link:hover {
  background: #e8f0fe;
  color: #1a6eff;
}
.pe-pagination .page-item.disabled .page-link { color: #bbb; }

/* ── 모달 ────────────────────────────────────────────── */
.pe-modal .modal-header {
  background: #f0f3f7;
  border-bottom: 1px solid #dde2ea;
}
.pe-modal .modal-title { font-weight: 700; font-size: 16px; }
.pe-detail-table td:first-child {
  width: 110px;
  font-weight: 500;
  color: #555;
  font-size: 12.5px;
}
.pe-detail-table td { font-size: 13px; padding: 7px 10px; }