/* ============================================================
   인애드 인트라넷 — 통합 스타일시트 v3.0
   직전 SaaS 모던 디자인 + 구 시스템 컴포넌트 병합
   Dark Navy Gradient Sidebar + White Card UI
   ============================================================ */

/* ── 기본 ── */
html, body {
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Noto Sans KR', sans-serif;
  background: #F9FAFB !important;
  overflow-x: hidden !important;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ── 애니메이션 ── */
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes slideIn { from { opacity:0; transform:translateX(-10px); } to { opacity:1; transform:translateX(0); } }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.5;} }
@keyframes wsModalIn { from{opacity:0;transform:translateY(16px);} to{opacity:1;transform:translateY(0);} }
.fade-in { animation: fadeIn .3s ease-out; }
.slide-in { animation: slideIn .3s ease-out; }

/* ═══════════════════════════════════════════════════════
   앱 레이아웃
   ═══════════════════════════════════════════════════════ */
#app-layout {
  display: flex !important;
  min-height: 100vh !important;
  width: 100% !important;
}

/* ═══════════════════════════════════════════════════════
   사이드바 — SaaS 그라디언트 스타일
   ═══════════════════════════════════════════════════════ */
#sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;
  height: 100vh !important;
  background: linear-gradient(180deg, #153088 0%, #142a6e 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 200 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-shadow: 4px 0 20px rgba(0,0,0,.15) !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

/* 사이드바 로고 */
.sidebar-logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 20px 18px !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  flex-shrink: 0 !important;
}
.sidebar-logo img {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  border-radius: 9px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  background: #fff !important;
  display: block !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.15) !important;
}
.sidebar-logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; flex-shrink: 0;
}
.sidebar-logo-text {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.logo-name {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -.3px !important;
  white-space: nowrap !important;
}
.logo-sub {
  font-size: 10px !important;
  color: rgba(255,255,255,.45) !important;
  font-weight: 400 !important;
  letter-spacing: .5px !important;
  white-space: nowrap !important;
}

/* 사이드바 사용자 정보 */
.sidebar-user {
  padding: 12px 14px !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  flex-shrink: 0 !important;
}
.sidebar-user-inner {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: rgba(255,255,255,.07) !important;
  border-radius: 10px !important;
  padding: 10px 12px !important;
}
.sidebar-user-avatar {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #3b82f6, #6366f1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.sidebar-user-avatar i { font-size: 12px !important; color: #fff !important; }
.sidebar-user-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #e2e8f0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* 사이드바 네비게이션 */
.sidebar-nav {
  flex: 1 !important;
  padding: 6px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
}
/* 섹션 라벨 — 양쪽 클래스명 모두 지원 */
.sidebar-section-label, .sidebar-section {
  padding: 14px 18px 4px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.3) !important;
  text-transform: uppercase !important;
  letter-spacing: 1.2px !important;
}

/* ── 탭 버튼 / 네비게이션 아이템 ─────────────────── */
.tab-btn, .nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 9px 18px !important;
  margin: 1px 0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.6) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all .15s ease !important;
  text-align: left !important;
  border-radius: 0 !important;
  position: relative !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.tab-btn i, .nav-item i {
  width: 18px !important;
  text-align: center !important;
  font-size: 13px !important;
  flex-shrink: 0 !important;
  opacity: .7 !important;
  transition: opacity .15s !important;
}
.tab-btn:hover, .nav-item:hover {
  background: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.9) !important;
}
.tab-btn:hover i, .nav-item:hover i { opacity: 1 !important; }

/* 활성 탭 */
.tab-active, .nav-item.active {
  background: rgba(255,255,255,.12) !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.tab-active i, .nav-item.active i { opacity: 1 !important; color: #60a5fa !important; }
.tab-active::before, .nav-item.active::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 4px !important;
  bottom: 4px !important;
  width: 3px !important;
  background: #60a5fa !important;
  border-radius: 0 3px 3px 0 !important;
}

/* 사이드바 특수 버튼 */
.sidebar-special-btn {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 9px 18px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all .15s ease !important;
  text-align: left !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  color: rgba(255,255,255,.6) !important;
}
.sidebar-special-btn i {
  width: 18px !important;
  text-align: center !important;
  font-size: 13px !important;
  flex-shrink: 0 !important;
  opacity: .7 !important;
}
.sidebar-special-btn:hover {
  background: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.9) !important;
}
.sidebar-special-btn:hover i { opacity: 1 !important; }
.sidebar-special-btn.accent-purple { color: #a78bfa !important; }
.sidebar-special-btn.accent-purple:hover { background: rgba(139,92,246,0.15) !important; color: #c4b5fd !important; }
.sidebar-special-btn.accent-slate  { color: rgba(255,255,255,.5) !important; }
.sidebar-special-btn.accent-orange { color: #fb923c !important; }
.sidebar-special-btn.accent-orange:hover { background: rgba(249,115,22,0.12) !important; color: #fdba74 !important; }

/* 배지 */
.nav-badge {
  min-width: 18px !important; height: 18px !important; padding: 0 5px !important;
  border-radius: 9999px !important; background: #ef4444 !important; color: #fff !important;
  font-size: 10px !important; font-weight: 700 !important; line-height: 18px !important;
  text-align: center !important; display: inline-flex !important;
  align-items: center !important; justify-content: center !important;
  margin-left: auto !important;
}

/* 관리자 탭 */
#admin-tabs { flex-direction: column !important; }

/* 사이드바 하단 액션 */
.sidebar-actions {
  padding: 10px 14px 16px !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
.sidebar-action-btn {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,.5) !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  transition: all .15s !important;
  text-decoration: none !important;
  text-align: left !important;
  box-sizing: border-box !important;
}
.sidebar-action-btn i { width: 14px !important; text-align: center !important; font-size: 12px !important; }
.sidebar-action-btn:hover { background: rgba(255,255,255,.08) !important; color: rgba(255,255,255,.8) !important; }
.sidebar-action-btn.btn-pwd { background: rgba(255,255,255,.05) !important; color: rgba(255,255,255,.5) !important; }
.sidebar-action-btn.btn-pwd:hover { background: rgba(255,255,255,.12) !important; color: #e2e8f0 !important; }
.sidebar-action-btn.btn-logout, .sidebar-action-btn.logout { background: rgba(239,68,68,0.08) !important; color: #f87171 !important; }
.sidebar-action-btn.btn-logout:hover, .sidebar-action-btn.logout:hover { background: rgba(239,68,68,0.18) !important; color: #fca5a5 !important; }

/* ═══════════════════════════════════════════════════════
   메인 콘텐츠 영역
   ═══════════════════════════════════════════════════════ */
#main-content {
  margin-left: 250px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
  min-width: 0 !important;
  background: #F9FAFB !important;
}

/* 상단 탑바 */
#topbar {
  height: 56px !important;
  min-height: 56px !important;
  background: #fff !important;
  border-bottom: 1px solid #e5e7eb !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 24px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  flex-shrink: 0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.04) !important;
}
#topbar-title, .topbar-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
}
.topbar-month-badge {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #3563e9 !important;
  background: #eff6ff !important;
  padding: 3px 10px !important;
  border-radius: 8px !important;
  border: 1px solid #bfdbfe !important;
}

/* 콘텐츠 영역 */
#content-wrapper {
  flex: 1 !important;
  padding: 24px !important;
  overflow-x: hidden !important;
}

/* 탭 콘텐츠 */
.tab-content { display: block; animation: fadeIn .3s ease-out; }
.tab-content.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════
   카드 — SaaS 스타일
   ═══════════════════════════════════════════════════════ */
.card {
  background: #fff; border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 0 0 1px rgba(0,0,0,.03);
  border: 1px solid #f3f4f6; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.03); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #f3f4f6;
}
.card-header-stacked { padding: 16px 20px; border-bottom: 1px solid #f3f4f6; }
.card-title { font-size: 15px; font-weight: 700; color: #1f2937; display: flex; align-items: center; }
.card-body { padding: 16px 20px; }

/* ═══════════════════════════════════════════════════════
   통계 카드
   ═══════════════════════════════════════════════════════ */
.stat-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: 16px; padding: 18px 20px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.stat-card-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.stat-card-info { flex: 1; min-width: 0; }
.stat-card-label { font-size: 12px; color: #9ca3af; font-weight: 500; }
.stat-card-value { font-size: 22px; font-weight: 800; color: #1f2937; margin-top: 2px; }

/* ═══════════════════════════════════════════════════════
   버튼
   ═══════════════════════════════════════════════════════ */
.btn { display:inline-flex; align-items:center; padding:8px 16px; border-radius:10px; font-size:13px; font-weight:600; border:none; cursor:pointer; transition:all .2s; }
.btn-sm { display:inline-flex; align-items:center; padding:5px 12px; border-radius:8px; font-size:12px; font-weight:600; border:none; cursor:pointer; transition:all .2s; }
.btn-blue { background:#3563e9; color:#fff; }
.btn-blue:hover { background:#2347cc; }
.btn-green { background:#16a34a; color:#fff; }
.btn-green:hover { background:#15803d; }
.btn-amber { background:#f59e0b; color:#fff; }
.btn-amber:hover { background:#d97706; }
.btn-red { background:#ef4444; color:#fff; }
.btn-red:hover { background:#dc2626; }
.btn-outline { background:#fff; color:#374151; border:1px solid #d1d5db; }
.btn-outline:hover { background:#f9fafb; }
.btn-icon { width:32px; height:32px; border-radius:8px; display:flex; align-items:center; justify-content:center; background:#f3f4f6; color:#6b7280; border:none; cursor:pointer; transition:all .15s; }
.btn-icon:hover { background:#e5e7eb; color:#374151; }

/* 구 시스템 버튼 호환 */
.ws-btn-edit   { color:#3b82f6; font-size:12px; background:none; border:none; cursor:pointer; padding:4px 6px; border-radius:4px; }
.ws-btn-edit:hover { background:#eff6ff; }
.ws-btn-del    { color:#ef4444; font-size:12px; background:none; border:none; cursor:pointer; padding:4px 6px; border-radius:4px; }
.ws-btn-del:hover { background:#fef2f2; }
.ws-btn-approve { color:#10b981; font-size:12px; background:none; border:none; cursor:pointer; padding:4px 6px; border-radius:4px; }
.ws-btn-approve:hover { background:#ecfdf5; }
.ws-btn-del-text { color:#ef4444; font-size:13px; background:none; border:none; cursor:pointer; padding:6px 12px; border-radius:6px; }
.ws-btn-del-text:hover { background:#fef2f2; }
.ws-btn-cancel { padding:7px 18px; border:1px solid #d1d5db; border-radius:8px; font-weight:600; font-size:13px; cursor:pointer; background:#fff; color:#374151; }
.ws-btn-cancel:hover { background:#f3f4f6; }
.ws-btn-save { padding:7px 18px; background:#3563e9; color:#fff; border:none; border-radius:8px; font-weight:600; font-size:13px; cursor:pointer; }
.ws-btn-save:hover { background:#2347cc; }

/* ═══════════════════════════════════════════════════════
   입력
   ═══════════════════════════════════════════════════════ */
.input, .ws-input {
  width: 100% !important; padding: 8px 14px !important;
  border: 1px solid #d1d5db !important; border-radius: 10px !important;
  font-size: 13px !important; background: #fff !important;
  transition: all .2s !important; font-family: 'Noto Sans KR', sans-serif;
  box-sizing: border-box !important; color: #1e293b !important;
  outline: none !important;
}
.input:focus, .ws-input:focus {
  border-color: #3563e9 !important;
  box-shadow: 0 0 0 3px rgba(53,99,233,.12) !important;
}
.input-select {
  padding: 8px 32px 8px 14px; border: 1px solid #d1d5db; border-radius: 10px;
  font-size: 13px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none; cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
}
.input-select:focus { outline: none; border-color: #3563e9; box-shadow: 0 0 0 3px rgba(53,99,233,.12); }
.label, .ws-label {
  display: block !important; font-size: 13px !important;
  font-weight: 600 !important; color: #374151 !important; margin-bottom: 4px !important;
}
textarea.input { resize: vertical; min-height: 80px; }

/* ═══════════════════════════════════════════════════════
   테이블
   ═══════════════════════════════════════════════════════ */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead th { padding: 10px 12px; text-align: left; font-weight: 600; color: #6b7280; background: #f9fafb; border-bottom: 1px solid #e5e7eb; white-space: nowrap; font-size: 12px; }
.data-table tbody td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; color: #374151; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: #f9fafb; }

/* 구 시스템 테이블 호환 */
.ws-th {
  padding: 9px 12px !important; text-align: left !important;
  font-size: 11px !important; font-weight: 600 !important; color: #64748b !important;
  background: #f8fafc !important; border-bottom: 1px solid #e2e8f0 !important;
  white-space: nowrap !important; letter-spacing: 0.3px !important;
}
.ws-td {
  padding: 10px 12px !important; font-size: 13px !important;
  border-bottom: 1px solid #f1f5f9 !important; vertical-align: middle !important;
  color: #334155 !important;
}

/* ═══════════════════════════════════════════════════════
   배지
   ═══════════════════════════════════════════════════════ */
.badge { display:inline-flex; align-items:center; padding:2px 10px; border-radius:9999px; font-size:11px; font-weight:600; }
.badge-blue { background:#dbeafe; color:#1d4ed8; }
.badge-green { background:#dcfce7; color:#16a34a; }
.badge-amber { background:#fef3c7; color:#b45309; }
.badge-red { background:#fee2e2; color:#dc2626; }
.badge-gray { background:#f3f4f6; color:#6b7280; }
.badge-purple { background:#f3e8ff; color:#7c3aed; }

/* ═══════════════════════════════════════════════════════
   모달 — 양쪽 호환
   ═══════════════════════════════════════════════════════ */
.modal { display:none; position:fixed; z-index:1000; left:0; top:0; width:100%; height:100%; background:rgba(0,0,0,.45); }
.modal.active { display:flex; align-items:center; justify-content:center; }

/* SaaS 모달 */
.modal-overlay {
  position:fixed; inset:0; z-index:1000;
  background:rgba(0,0,0,.5); backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center; padding:16px;
}
.modal-overlay.hidden { display:none; }
.modal-content {
  background:#fff; border-radius:20px; width:100%; max-width:560px;
  max-height:90vh; overflow-y:auto;
  box-shadow:0 25px 50px -12px rgba(0,0,0,.25);
  animation: fadeIn .2s ease-out;
}
.modal-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 20px; border-bottom:1px solid #f3f4f6;
  font-size:16px; font-weight:700; color:#1f2937;
}
.modal-close { background:none; border:none; font-size:24px; color:#9ca3af; cursor:pointer; transition:color .15s; padding:0 4px; }
.modal-close:hover { color:#374151; }
.modal-body { padding:20px; }
.modal-footer { display:flex; justify-content:flex-end; gap:8px; padding:12px 20px; border-top:1px solid #f3f4f6; }

/* 구 시스템 모달 */
.ws-modal-overlay {
  position: fixed !important; inset: 0 !important; z-index: 1100 !important;
  background: rgba(0,0,0,.45) !important; display: flex !important;
  align-items: center !important; justify-content: center !important; padding: 16px !important;
}
.ws-modal-box {
  background: #fff !important; border-radius: 16px !important;
  width: 100% !important; max-width: 560px !important;
  max-height: 90vh !important; overflow-y: auto !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.2) !important;
  animation: wsModalIn .18s ease !important;
}
.ws-modal-header {
  display: flex !important; justify-content: space-between !important;
  align-items: center !important; padding: 16px 20px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
.ws-modal-title { font-size: 16px !important; font-weight: 700 !important; color: #1e293b !important; }
.ws-modal-close {
  font-size: 20px !important; background: none !important; border: none !important;
  cursor: pointer !important; color: #94a3b8 !important; padding: 2px 6px !important; border-radius: 4px !important;
}
.ws-modal-close:hover { color: #1e293b !important; background: #f1f5f9 !important; }

/* 광고주 모달 */
.adv-label { display:block; font-size:12px; font-weight:600; color:#374151; margin-bottom:5px; }
.adv-input { width:100%; padding:8px 11px; border:1px solid #d1d5db; border-radius:8px; font-size:13px; outline:none; box-sizing:border-box; }
.adv-input:focus { border-color:#3563e9; box-shadow:0 0 0 3px rgba(53,99,233,.12); }

/* ═══════════════════════════════════════════════════════
   업무지원 탭
   ═══════════════════════════════════════════════════════ */
.ws-tab {
  padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: #fff; color: #6b7280; border: 1px solid #e5e7eb;
  cursor: pointer; transition: all .15s;
}
.ws-tab:hover { background: #f9fafb; color: #374151; }
.ws-tab.active { background: #3563e9; color: #fff; border-color: #3563e9; }
.ws-sub-active {
  background: #3563e9 !important;
  color: #fff !important;
  border-color: #3563e9 !important;
}
.ws-panel.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════
   캘린더
   ═══════════════════════════════════════════════════════ */
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:1px; background:#e5e7eb; border-radius:12px; overflow:hidden; }
.cal-header { padding:8px; text-align:center; font-size:11px; font-weight:700; color:#6b7280; background:#f9fafb; }
.cal-header:first-child { color: #ef4444; }
.cal-header:last-child { color: #3b82f6; }
.cal-cell { min-height:80px; padding:4px 6px; background:#fff; font-size:12px; cursor:pointer; transition:background .15s; }
.cal-cell:hover { background:#f0f7ff; }
.cal-cell.today { background:#eff6ff; }
.cal-cell.other-month { color:#d1d5db; background:#fafafa; }
.cal-day { font-weight:600; margin-bottom:2px; }
.cal-event { font-size:10px; padding:1px 4px; border-radius:3px; margin-bottom:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:#fff; }

/* ═══════════════════════════════════════════════════════
   로딩 / 스켈레톤
   ═══════════════════════════════════════════════════════ */
.loading-placeholder { text-align:center; padding:40px 0; color:#9ca3af; font-size:14px; }
.skeleton { background:linear-gradient(90deg,#f3f4f6 25%,#e5e7eb 50%,#f3f4f6 75%); background-size:200% 100%; animation:pulse 1.5s infinite; border-radius:6px; height:16px; margin:8px 0; }

/* ═══════════════════════════════════════════════════════
   토스트
   ═══════════════════════════════════════════════════════ */
.toast {
  display:flex; align-items:center; gap:10px;
  padding:12px 16px; border-radius:12px; color:#fff;
  font-size:13px; font-weight:500;
  box-shadow:0 4px 12px rgba(0,0,0,.15);
  pointer-events:auto; animation:fadeIn .3s ease-out;
}
.toast-success { background:#16a34a; }
.toast-error { background:#dc2626; }
.toast-warning { background:#b45309; }
.toast-info { background:#3563e9; }

/* ═══════════════════════════════════════════════════════
   영업기록 모달 UX — 스텝퍼·칩·접이식·진행바
   ═══════════════════════════════════════════════════════ */
.act-chip input:checked + .act-chip-label {
  border-color: #3563e9 !important;
  background: #3563e9 !important;
  color: #ffffff !important;
}
.act-chip-label { transition: all .15s ease; }
.act-step-display:hover::after { content:'✏'; font-size:10px; margin-left:4px; opacity:0.4; }
.act-step-input:focus { border-bottom-color:#3563e9; box-shadow:0 2px 0 0 #93c5fd; }
#act-iboss-body, #act-memento-body, #act-history-body { transition:max-height .2s ease; }
#act-progress-bar { min-width:4px; }
#act-history-list .flex:hover { background:#f8fafc; border-radius:6px; }
.act-stepper-wrap.col-span-2 .act-step-display { font-size:1.5rem; line-height:2rem; }
#activity-record-modal > div > div:last-child { box-shadow:0 -2px 8px rgba(0,0,0,0.06); }

/* ═══════════════════════════════════════════════════════
   반응형
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  #sidebar { width: 220px !important; min-width: 220px !important; max-width: 220px !important; }
  #main-content { margin-left: 220px !important; }
}
@media (max-width: 768px) {
  #sidebar { width: 56px !important; min-width: 56px !important; max-width: 56px !important; }
  #main-content { margin-left: 56px !important; }
  .sidebar-logo-text, .sidebar-user-name, .sidebar-section-label, .sidebar-section,
  .tab-btn span, .nav-item span, .sidebar-special-btn span, .sidebar-action-btn span { display: none !important; }
  .tab-btn, .nav-item, .sidebar-special-btn { justify-content: center !important; padding: 10px !important; }
  .tab-btn i, .nav-item i, .sidebar-special-btn i { width: auto !important; margin: 0 !important; }
  #content-wrapper { padding: 12px !important; }
}
