/* ===================================================
   HQ Enterprise Master Scheduler ??Design System
   =================================================== */

:root {
  /* ?? 메인 ?역: ?린 ?이??(?피???이?? ?? */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-surface: #e2e8f0;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --border-color: #e2e8f0;
  --border-focus: #3B45C4;

  --primary: #3B45C4;
  --primary-light: #818cf8;
  --primary-gradient: linear-gradient(135deg, #3B45C4 0%, #9333ea 100%);
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --text-main: #14161A;
  --text-muted: #475569;
  --text-dim: #5B616E;

  /* ?? ?이?바: ?프???크 ?이??? */
  --sidebar-bg: #263448;
  --sidebar-border: #37495d;
  --sidebar-text: #f1f5f9;
  --sidebar-text-muted: #94a3b8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(59, 69, 196, 0.15);

  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Sans KR', 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
}

/* ?? ?이?웃 구조 ?? */
.app-container {
  display: flex;
  width: 100vw;
  min-height: 100vh;
}

/* ── 1. 사이드바 (Sidebar) ── */
.hq-sidebar {
  width: 230px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border, #334155);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
  /* Lock main scroll, let lists scroll */
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sidebar-border, #334155);
  margin-bottom: 12px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-glow);
}

.brand-text h1 {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #ffffff, #D5D9F7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text span {
  font-size: 12px;
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 사이드바 메뉴 & 필터 */
.sidebar-section {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.sidebar-title {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--sidebar-text-muted, #94a3b8);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title .btn-add-mini {
  background: transparent;
  border: none;
  color: var(--primary-light);
  cursor: pointer;
  font-size: 12px;
  padding: 2px 5px;
  border-radius: 4px;
}

.sidebar-title .btn-add-mini:hover {
  background: var(--bg-surface);
}

/* 아티스트 필터 리스트 */
.artist-chip-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  flex: 1;
  padding-right: 2px;
  /* for scrollbar */
}

.artist-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}

.artist-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: translateY(-1px);
}

.artist-chip.active {
  background: rgba(59, 69, 196, 0.22);
  border-color: #4C57D6;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(59, 69, 196, 0.25);
}

.artist-avatar {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.artist-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  text-align: left;
}

.artist-meta .name {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.artist-chip.active .artist-meta .name {
  color: #ffffff;
  font-weight: 800;
}

.artist-meta .sub {
  font-size: 12px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}

.artist-chip.active .artist-meta .sub {
  color: #E3E6FA;
}

.count-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.artist-chip.active .count-badge {
  background: #4C57D6;
  color: #ffffff;
  border-color: #818cf8;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--sidebar-border, #334155);
}

.sidebar-footer #btn-open-settings {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  background: rgba(59, 69, 196, 0.15);
  border: 1px solid rgba(59, 69, 196, 0.4);
  color: #D5D9F7;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sidebar-footer #btn-open-settings:hover {
  background: linear-gradient(135deg, #4C57D6, #8b5cf6);
  color: #ffffff;
  border-color: #B4BBF0;
  box-shadow: 0 4px 14px rgba(59, 69, 196, 0.4);
  transform: translateY(-1px);
}

.sidebar-footer #btn-open-settings svg {
  stroke: #818cf8;
  transition: stroke 0.2s ease, transform 0.3s ease;
}

.sidebar-footer #btn-open-settings:hover svg {
  stroke: #ffffff;
  transform: rotate(45deg);
}

.link-to-planner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(59, 69, 196, 0.1);
  border: 1px solid rgba(59, 69, 196, 0.2);
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.link-to-planner:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

/* ── 2. 메인 컨텐츠 영역 (Main Content) ── */
.hq-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 14px 20px;
  background: var(--bg-main);
}

/* 헤더 & 상단 네비게이션 */
.main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.header-title-group h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  white-space: nowrap;
}

.header-title-group p {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.btn-primary {
  width: auto;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-light);
}

/* ── 3. KPI 대시보드 통계 카드 (Stats Cards) ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--stat-color, var(--primary));
}

.stat-info .stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.stat-info .stat-val {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 1px;
  line-height: 1.15;
}

.stat-icon-wrapper {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── 4. 캘린더 영역 (Master Calendar) ── */
.calendar-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.calendar-toolbar {
  padding: 8px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
}

.date-nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-nav-group h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.nav-arrow-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 12px;
}

.nav-arrow-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.nav-btn-box {
  display: flex;
  align-items: center;
  gap: 5px;
}

.today-btn {
  background: rgba(59, 69, 196, 0.08);
  border: 1px solid rgba(59, 69, 196, 0.25);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.today-btn:hover {
  background: var(--primary);
  color: #fff;
}

.view-tabs {
  display: flex;
  background: var(--bg-surface);
  padding: 2px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  gap: 2px;
}

.view-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.view-tab-btn:hover {
  background: var(--bg-card);
  color: var(--text-main);
}

.view-tab-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}


.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(85px, auto);
  background: var(--bg-surface);
  gap: 1px;
  flex: 1;
}

.cal-month-cell {
  background: var(--bg-card);
  padding: 4px 5px;
  min-height: 85px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.cal-month-cell:hover {
  background: var(--bg-card-hover);
}

.cal-month-cell.today {
  background: rgba(59, 69, 196, 0.03);
}

.cal-month-view-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  padding: 6px 0;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 700;
  text-align: center;
}

/* 캘린더 이벤트 뱃지 */
.cal-event-pill {
  padding: 0 6px;
  height: 20px;
  line-height: 20px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: var(--art-color, var(--primary));
  margin-bottom: 2px;
}

/* ?? 5. 모달 공통 (Modal) ?? */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* 창(모달)이 떠 있는 동안 뒤 화면은 움직이지 않게 — 마우스 휠·손가락 스크롤이 창 안에서만 */
.modal-overlay { overscroll-behavior: contain; }
.modal-overlay .modal-body,
.modal-overlay .modal-content { overscroll-behavior: contain; }
html:has(.modal-overlay.active),
html:has(.modal-overlay.active) body,
body.modal-lock { overflow: hidden !important; }

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-md);
  transform: translateY(20px);
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

.modal-header {
  padding: 18px 24px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 5px;
  letter-spacing: -0.2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #14161A;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #4C57D6;
  box-shadow: 0 0 0 2px rgba(59, 69, 196, 0.15);
  background: #ffffff;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
  font-size: 12.5px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ?태 뱃? (Status Badge) */
.badge-status {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-status.ready {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-status.moving {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-status.shop {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.badge-status.done {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* 반응??모바???블?*/
@media (max-width: 1024px) {
  .app-container {
    flex-direction: column;
  }

  .hq-sidebar {
    width: 100%;
    height: auto;
    position: relative;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ?? Real-time Kanban Control Board & Map View ?? */
.kanban-board-container {
  display: grid;
  grid-template-columns: repeat(5, minmax(240px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  align-items: start;
}

.kanban-column {
  background: #1e293b;
  border-radius: var(--radius-md);
  border: 1px solid #334155;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  box-shadow: var(--shadow-sm);
}

.kanban-col-header {
  padding: 14px 16px;
  border-bottom: 1px solid #334155;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 14px;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.4);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.kanban-col-count {
  background: #334155;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

.kanban-col-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 320px);
}

.kanban-card {
  background: #14161A;
  border: 1px solid #334155;
  border-left: 4px solid var(--accent-theme, #3B45C4);
  border-radius: var(--radius-sm);
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: #475569;
}

.kanban-card-moving {
  border-left-color: #f59e0b !important;
  animation: pulse-amber 2s infinite ease-in-out;
}

@keyframes pulse-amber {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
}

.kanban-card-done {
  border-left-color: #10b981 !important;
  opacity: 0.85;
}

.map-control-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  min-height: 520px;
}

.map-canvas-card {
  background: #14161A;
  border-radius: var(--radius-md);
  border: 1px solid #334155;
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.map-vehicle-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 520px;
}

/* ?? Analytics & Performance Report Dashboard ?? */
.analytics-dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analytics-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.analytics-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.analytics-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.analytics-card-value {
  font-size: 26px;
  font-weight: 800;
  color: #f8fafc;
}

.analytics-card-sub {
  font-size: 12px;
  color: #38bdf8;
  font-weight: 600;
}

.analytics-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.analytics-section-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.analytics-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  padding-bottom: 10px;
}

.analytics-section-header h4 {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-bar-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.category-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}

.category-bar-track {
  height: 10px;
  background: #14161A;
  border-radius: 5px;
  overflow: hidden;
}

.category-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s ease-in-out;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.subscription-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-main);
  white-space: nowrap;
}

.btn-secondary {
  white-space: nowrap;
}



/* --- NUCLEAR LAYOUT FIX --- */
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

.app-container {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}

.hq-main {
  flex: 1 !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.hq-main>* {
  width: 100% !important;
  min-width: 100% !important;
}

.header-title-group h2 {
  white-space: nowrap !important;
}
/* 아이폰에서 입력칸을 누르면 화면이 확대되는 것 방지 (16px 미만이면 확대됨) */
@media (pointer: coarse) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
}
