@charset "UTF-8";
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: #f5f6f8;
  color: #2d3748;
  line-height: 1.6;
  min-height: 100vh;
}

.app-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}
.app-container .app-env {
  position: fixed;
  opacity: 0.7;
  z-index: 999;
  top: 0;
  right: 0;
  padding: 1px 8px 2px;
  font-size: 11px;
  color: #fff;
  border-bottom-left-radius: 4px;
}
.app-container .app-env.env-local {
  background-color: #1e8449;
}
.app-container .app-env.env-staging {
  background-color: #2563eb;
}

/* 헤더 */
.app-header {
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  height: 60px;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 32px;
  z-index: 100;
  border-bottom: 1px solid #e5e7eb;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a5568;
  font-size: 0.875rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: #374151;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.logout-btn {
  background: white;
  color: #4a5568;
  border: 1.5px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.logout-btn:hover {
  border-color: #cbd5e0;
  background: #f7fafc;
}

/* 사이드바 */
.sidebar {
  width: 240px;
  background: white;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.06);
  padding: 24px 0;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
  border-right: 1px solid #e5e7eb;
}

.logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.logo h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: center;
}

.logo h1::before {
  content: "🏥";
  margin-right: 8px;
  font-size: 1.5rem;
}

.logo p {
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 2px;
}

.d-flex {
  display: flex;
}

/* 사용자 프로필 */
.user-profile {
  padding: 0 16px 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  background: #374151;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.profile-role {
  font-size: 0.75rem;
  color: #6b7280;
}

.profile-actions {
  display: flex;
  gap: 4px;
}

.profile-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.profile-btn.logout:hover {
  background: #fee;
  border-color: #fca5a5;
}

.nav-menu {
  padding: 0 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 5px 14px;
  margin: 2px 0;
  border-radius: 6px;
  cursor: pointer;
  color: #4b5563;
  font-weight: 500;
  font-size: 0.8125rem;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
}

.nav-item:hover {
  background: #f3f4f6;
  color: #111827;
}

.nav-item.active {
  background: #111827;
  color: white;
}

.nav-item .icon {
  margin-right: 10px;
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.nav-section {
  margin-top: 20px;
  padding: 0 16px;
}

.nav-section-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

/* 메인 컨텐츠 */
.main-content {
  flex: 1;
  margin-left: 240px;
  margin-top: 0;
  padding: 32px;
}

.page-header {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-title {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.page-subtitle {
  color: #6b7280;
  font-size: 14px;
}

.page-content {
  display: none;
}

.page-content.active {
  display: block;
}

/* 통계 카드 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #374151;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.stat-label {
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
}

.stat-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  opacity: 0.1;
}

/* 컨트롤 패널 */
.control-panel {
  background: white;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.control-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}

.control-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  background: white;
  color: #374151;
  border: 1.5px solid #d1d5db;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  border-color: #9ca3af;
  background: #f9fafb;
}

.btn-primary {
  background: #111827;
  color: white;
  border-color: #111827;
}

.btn-primary:hover {
  background: #1f2937;
  border-color: #1f2937;
}

.btn-success {
  background: #059669;
  color: white;
  border-color: #059669;
}

.btn-success:hover {
  background: #047857;
  border-color: #047857;
}

.btn-danger {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
}

.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

/* 필터 */
.filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 16px;
  margin-bottom: 24px;
  align-items: end;
}

.filter-container {
  display: flex;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: visible;
}

.filter-group.buttons {
  flex-direction: row;
  gap: 8px;
  align-items: stretch;
}

.filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.6;
  padding-top: 10px;
  padding-left: 0;
  margin-bottom: 4px;
}

.filter-input {
  padding: 10px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  background: white;
  transition: all 0.2s ease;
  color: #111827;
}
.filter-input:focus {
  outline: none;
  border-color: #374151;
  box-shadow: 0 0 0 3px rgba(55, 65, 81, 0.1);
}
.filter-input:disabled, .filter-input[readonly] {
  background-color: #f3f4f6;
  cursor: not-allowed;
  color: #6b7280;
}

/* 날짜 입력 필드 스타일 */
.filter-input[type=date] {
  position: relative;
  cursor: pointer;
  color: #374151;
}

.filter-input[type=date]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23374151" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>') no-repeat center;
  background-size: 16px 16px;
  width: 20px;
  height: 20px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.filter-input[type=date]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.filter-input[type=date]:focus::-webkit-calendar-picker-indicator {
  filter: brightness(1.2);
}

.filter-input[type=date]::-moz-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
}

.filter-input[type=date]::-moz-calendar-picker-indicator:hover {
  opacity: 1;
}

.filter-input[type=date]:invalid {
  color: #9ca3af;
}

.filter-input[type=date]:focus:invalid {
  color: #374151;
}

/* 광고 예산 배너 (1행) */
.ad-budget-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.ad-budget-banner:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.budget-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
  border-bottom: 1px solid #4b5563;
}

.budget-banner-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.budget-icon {
  font-size: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.budget-company-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.budget-subtitle {
  font-size: 13px;
  color: #d1d5db;
  font-weight: 500;
  padding-left: 12px;
  border-left: 2px solid #6b7280;
}

.budget-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.budget-detail-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(3px);
}

.budget-metrics {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  gap: 24px;
}

.budget-metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.metric-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.5px;
}

.metric-value.charge {
  color: #000;
}

.metric-value.deduct {
  color: #000;
}

.metric-value.balance {
  color: #000;
}

.metric-value.usage-rate {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.usage-percentage {
  font-size: 24px;
  font-weight: 800;
}

.usage-bar {
  width: 100%;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.usage-progress {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease, background 0.3s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.budget-divider {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #d1d5db 20%, #d1d5db 80%, transparent);
}

/* 테이블 */
.table-container {
  background: white;
  border-radius: 4px;
  overflow: visible !important;
}

.customer-table {
  width: 100% !important;
  border-collapse: collapse;
}

.customer-table th {
  background: #f9fafb;
  color: #374151;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e5e7eb !important;
}

.customer-table td {
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
  font-size: 0.875rem;
  color: #111827;
}

.customer-table tr:hover {
  background: #f9fafb;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending {
  background: #fee2e2;
  color: #991b1b;
}

.status-sent {
  background: #d1fae5;
  color: #065f46;
}

.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 6px;
}

.crm-button {
  background: #111827;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.crm-button:hover:not(:disabled) {
  background: #1f2937;
}

.crm-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.area-tag {
  background: #f3f4f6;
  color: #374151;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.crm-tag {
  background: #111827;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}

.crm-tag.not-sent {
  background: #f3f4f6;
  color: #374151;
}

.customer-name {
  font-weight: 600;
  color: #111827;
}

.customer-phone {
  font-family: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", monospace;
  color: #4b5563;
}

.source-website {
  color: #6b7280;
  font-size: 0.8125rem;
}

.registered-time {
  color: #6b7280;
  font-size: 0.8125rem;
}

/* 알림 */
.notification {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 16px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  font-size: 0.875rem;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification.success {
  background: #059669;
}

.notification.error {
  background: #dc2626;
}

.notification.info {
  background: #2563eb;
}

.notification.warning {
  background: #d97706;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #6b7280;
}

.empty-state h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: #374151;
}

.empty-state p {
  font-size: 0.875rem;
}

/* 준비 중 페이지 */
.coming-soon {
  background: white;
  border-radius: 8px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.coming-soon h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
}

.coming-soon p {
  color: #6b7280;
  font-size: 1rem;
}

.coming-soon .icon {
  font-size: 4rem;
  margin-bottom: 24px;
  opacity: 0.3;
}

/* 모달 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 8px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-header {
  margin-bottom: 24px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
}

.modal-body {
  margin-bottom: 24px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #059669;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* 검색 결과 정보 */
.search-results-info {
  background: #eff6ff;
  padding: 12px 16px;
  border-radius: 6px;
  margin: 15px 0;
  border-left: 4px solid #2563eb;
}

.search-results-info p {
  margin: 0;
  color: #1e40af;
  font-size: 14px;
}

/* 페이지네이션 */
.pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  padding: 20px 0 20px 20px;
  border-top: 1px solid #e5e7eb;
}

.pagination-nav {
  display: flex;
  gap: 8px;
}

.page-btn {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  background: white;
  color: #374151;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}

.page-btn:hover:not(.active) {
  background: #f9fafb;
  border-color: #9ca3af;
}

.page-btn.active {
  border-color: #111827;
  background: #111827;
  color: white;
  font-weight: 600;
}

.pagination-info {
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
}

/* 인라인 스타일을 위한 추가 클래스들 */
.flex-contents {
  display: contents;
}

.btn-margin-left {
  margin-left: 0;
}

.btn-compact {
  padding: 10px 12px;
  font-size: 0.875rem;
  white-space: nowrap;
}

.pagination-ellipsis {
  padding: 8px 4px;
  color: #9ca3af;
}

.valid-badge {
  background-color: #059669;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  min-width: 50px;
  text-align: center;
}

.invalid-badge {
  background-color: #dc2626;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  min-width: 50px;
  text-align: center;
}

.unset-badge {
  background-color: #6b7280;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  min-width: 50px;
  text-align: center;
}

.absent1-badge {
  background-color: #f59e0b;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  min-width: 50px;
  text-align: center;
}

.absent2-badge {
  background-color: #f97316;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  min-width: 50px;
  text-align: center;
}

.absent3-badge {
  background-color: #8b5cf6;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  min-width: 50px;
  text-align: center;
}

.absent4-badge {
  background-color: #ec4899;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  min-width: 50px;
  text-align: center;
}

.absent5-badge {
  background-color: #10b981;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  min-width: 50px;
  text-align: center;
}

.absent6-badge {
  background-color: #06b6d4;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  min-width: 50px;
  text-align: center;
}

.absent7-badge {
  background-color: #7c3aed;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  min-width: 50px;
  text-align: center;
}

.absent8-badge {
  background-color: #db2777;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
  min-width: 50px;
  text-align: center;
}

.btn-delete {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.btn-delete:hover {
  background: #b91c1c;
}

.btn-delete i {
  font-size: 13px;
}

.parent-row {
  background: white;
}

.parent-row.has-children {
  cursor: pointer;
}

.child-row {
  background: #f9fafb;
}

/* 랜딩페이지 리스트 쪽 */
.hospital-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
}

.tab-button {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  transition: all 0.2s;
}

.tab-button:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.tab-button.active {
  background: #111827;
  color: white;
  border-color: #111827;
}

.btn-secondary {
  background-color: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background-color: #4b5563;
}

.control-buttons {
  display: flex;
  gap: 8px;
}

.parent-row {
  background: white;
  transition: background-color 0.2s;
}

.parent-row:hover {
  background-color: #f9fafb;
}

.child-row {
  background: #fafbfc;
}

.child-row td {
  border-bottom: none !important;
}

/* 하위 테이블 스타일 */
.child-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.child-table thead {
  background: #f9fafb;
}

.child-table th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #374151;
  border-bottom: 2px solid #e5e7eb;
}

.child-table tbody tr {
  transition: background-color 0.2s;
}

.child-table tbody tr:hover {
  background-color: #f9fafb;
}

.child-table td {
  padding: 12px;
  font-size: 14px;
  color: #111827;
  border-bottom: 1px solid #f3f4f6;
}

.child-table tbody tr:last-child td {
  border-bottom: none;
}

.child-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

/* 전체 URL 컨테이너 */
.full-url-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.full-url-link {
  flex: 1;
  color: #2563eb;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.full-url-link:hover {
  text-decoration: underline;
}

.btn-copy {
  flex-shrink: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.btn-copy:active {
  transform: scale(0.95);
}

.accordion-toggle {
  background: white;
  color: #374151;
  border: 1px solid #d1d5db;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.accordion-toggle:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.accordion-toggle.expanded {
  background: #111827;
  color: white;
  border-color: #111827;
}

/* 유입경로 체크박스 스타일 */
.path-checkbox-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 6px;
  max-height: 300px;
  overflow-y: auto;
}

.path-checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.path-checkbox-item:hover {
  background: #f3f4f6;
}

.path-checkbox-item input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.path-checkbox-item span {
  font-size: 14px;
  color: #374151;
}

.action-buttons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* 반응형 */
@media (max-width: 1200px) {
  .budget-metrics {
    flex-wrap: wrap;
    gap: 16px;
  }
  .budget-metric {
    flex-basis: calc(50% - 8px);
  }
  .budget-divider:nth-child(odd) {
    display: none;
  }
}
@media (max-width: 768px) {
  .budget-banner-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .budget-metrics {
    flex-direction: column;
    gap: 20px;
  }
  .budget-metric {
    flex-basis: 100%;
  }
  .budget-divider {
    display: none;
  }
  .metric-value {
    font-size: 20px;
  }
}
/* 유입경로 URL 툴팁 - 글자 크기 증가 */
.source-website {
  position: relative;
}

.tooltip-container {
  position: relative;
  display: inline-block;
  cursor: help;
}

.source-name {
  border-bottom: 1px dotted #999;
  display: inline-block;
}

.url-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background-color: #2c3e50;
  color: #fff;
  padding: 10px 14px; /* ← 8px 12px에서 증가 */
  border-radius: 6px;
  font-size: 13px; /* ← 11px에서 13px로 증가 */
  white-space: normal;
  word-break: break-all;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s ease;
  pointer-events: none;
  min-width: 200px;
  max-width: 600px;
  line-height: 1.5; /* ← 1.4에서 1.5로 증가 */
}

.url-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 15px;
  border: 6px solid transparent;
  border-top-color: #2c3e50;
}

.tooltip-container:hover .url-tooltip {
  visibility: visible;
  opacity: 1;
}

/* 툴팁/팝오버에 */
.tooltip, .popover {
  z-index: 9999 !important;
}

.checkbox-toggle {
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

.checkbox-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-toggle .track {
  position: relative;
  width: 60px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1; /* off */
  transition: background 0.2s ease;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}

/* 공통 텍스트 */
.checkbox-toggle .text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  pointer-events: none;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

/* 미사용 */
.checkbox-toggle .text.off {
  left: 10px;
  opacity: 1;
}

/* 사용 */
.checkbox-toggle .text.on {
  right: 10px;
  opacity: 0;
}

/* 동그란 버튼 */
.checkbox-toggle .track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

/* ON 상태 */
.checkbox-toggle input:checked + .track {
  background: #22c55e;
}

.checkbox-toggle input:checked + .track::after {
  transform: translateX(36px);
}

.checkbox-toggle input:checked + .track .text.off {
  opacity: 0;
}

.checkbox-toggle input:checked + .track .text.on {
  opacity: 1;
}

/* Disabled */
.checkbox-toggle input:disabled + .track {
  opacity: 0.5;
  cursor: not-allowed;
}

.swal2-popup {
  font-size: 13px; /* 원하는 사이즈 */
}
.swal2-popup .swal2-title {
  font-size: 1.5em;
}

/*# sourceMappingURL=db_center.css.map */
