/* =============================================================
   FitManager — 공통 CSS  v2
   편의성 중심 라이트 테마 디자인 시스템
   ============================================================= */

/* -------------------------------------------------------------
   CSS 변수
   ------------------------------------------------------------- */
:root {
	/* 배경 레이어 */
	--bg-base:        #f0f4f8;
	--bg-surface:     #ffffff;
	--bg-subtle:      #f8fafc;
	--bg-elevated:    #ffffff;

	/* 테두리 */
	--border:         #e2e8f0;
	--border-strong:  #cbd5e1;

	/* 텍스트 */
	--text-primary:   #0f172a;
	--text-secondary: #475569;
	--text-muted:     #94a3b8;

	/* 브랜드 컬러 */
	--blue:           #3b82f6;
	--blue-soft:      #eff6ff;
	--blue-border:    #bfdbfe;
	--green:          #10b981;
	--green-soft:     #f0fdf4;
	--orange:         #f97316;
	--orange-soft:    #fff7ed;
	--purple:         #8b5cf6;
	--purple-soft:    #f5f3ff;
	--red:            #ef4444;
	--red-soft:       #fef2f2;
	--yellow:         #f59e0b;
	--yellow-soft:    #fffbeb;
	--teal:           #14b8a6;
	--teal-soft:      #f0fdfa;
	--pink:           #ec4899;
	--pink-soft:      #fdf2f8;

	/* 사이드바 */
	--sidebar-w:      248px;

	/* 반경 */
	--radius-sm:      7px;
	--radius-md:      12px;
	--radius-lg:      16px;
	--radius-xl:      20px;

	/* 그림자 */
	--shadow-xs:      0 1px 2px rgba(0,0,0,0.06);
	--shadow-sm:      0 1px 4px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
	--shadow-md:      0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
	--shadow-lg:      0 12px 32px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.06);
	--shadow-xl:      0 24px 48px rgba(0,0,0,0.16);

	/* 하위 호환 */
	--color-bg:         var(--bg-base);
	--color-sidebar:    #1e293b;
	--color-primary:    var(--blue);
	--color-text:       var(--text-primary);
	--color-text-muted: var(--text-secondary);
	--color-border:     var(--border);
	--color-card:       var(--bg-surface);
	--shadow-card:      var(--shadow-sm);
	--shadow-modal:     var(--shadow-xl);
	--border-soft:      var(--border-strong);
}

/* -------------------------------------------------------------
   리셋
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; scroll-behavior: smooth; }

body {
	font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 14px;
	color: var(--text-primary);
	background: var(--bg-base);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { display: block; }
input, select, textarea { font-family: inherit; }

/* -------------------------------------------------------------
   앱 레이아웃
   ------------------------------------------------------------- */
.app-layout {
	display: flex;
	height: 100vh;
	overflow: hidden;
	background: var(--bg-base);
}

/* -------------------------------------------------------------
   사이드바
   ------------------------------------------------------------- */
.sidebar {
	width: var(--sidebar-w);
	background: #0f172a;
	display: flex;
	flex-direction: column;
	border-right: 1px solid rgba(255,255,255,0.04);
	flex-shrink: 0;
	transition: width 0.25s ease;
	position: relative;
	z-index: 100;
}

/* 로고 */
.sidebar .logo {
	padding: 20px 18px 18px;
	border-bottom: 1px solid rgba(255,255,255,0.06);
	display: flex;
	align-items: center;
	gap: 11px;
	flex-shrink: 0;
}

.sidebar .logo .logo-icon {
	width: 36px;
	height: 36px;
	background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 16px;
	flex-shrink: 0;
	box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}

.sidebar .logo .logo-text {
	font-size: 15.5px;
	font-weight: 800;
	color: #f8fafc;
	letter-spacing: -0.4px;
}

/* 내비 메뉴 */
.sidebar .nav-menu {
	flex: 1;
	overflow-y: auto;
	padding: 14px 0 10px;
}

.sidebar .nav-menu::-webkit-scrollbar { width: 3px; }
.sidebar .nav-menu::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.1);
	border-radius: 2px;
}

/* 내비 그룹 라벨 */
.sidebar .nav-group-label {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	color: #475569;
	text-transform: uppercase;
	padding: 14px 20px 5px;
}

/* 내비 아이템 */
.sidebar .nav-item {
	display: flex;
	align-items: center;
	padding: 10px 16px;
	margin: 2px 10px;
	color: #94a3b8;
	text-decoration: none;
	border-radius: var(--radius-sm);
	transition: background 0.15s, color 0.15s;
	font-size: 13.5px;
	font-weight: 500;
	gap: 10px;
	position: relative;
}

.sidebar .nav-item:hover {
	background: rgba(255,255,255,0.07);
	color: #e2e8f0;
}

.sidebar .nav-item.active {
	background: rgba(59,130,246,0.18);
	color: #60a5fa;
	font-weight: 600;
}

.sidebar .nav-item.active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 60%;
	background: #3b82f6;
	border-radius: 0 3px 3px 0;
}

.sidebar .nav-item i {
	width: 18px;
	font-size: 14px;
	text-align: center;
	flex-shrink: 0;
	opacity: 0.85;
}

.sidebar .nav-item.active i { opacity: 1; }

/* 키오스크 바로가기 버튼 */
.sidebar .nav-item.nav-kiosk {
	background: rgba(16,185,129,0.1);
	border: 1px solid rgba(16,185,129,0.25);
	border-radius: 10px;
	color: #34d399;
	margin: 4px 8px 10px;
	padding: 10px 12px;
}

.sidebar .nav-item.nav-kiosk:hover {
	background: rgba(16,185,129,0.2);
	color: #6ee7b7;
}

.sidebar .nav-item.nav-kiosk i { opacity: 1; color: #34d399; }

/* 하단 사용자 정보 */
.sidebar .user-info {
	padding: 14px 16px;
	border-top: 1px solid rgba(255,255,255,0.06);
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.sidebar .user-info .user-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(59,130,246,0.2);
	border: 1px solid rgba(59,130,246,0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #60a5fa;
	font-size: 14px;
	flex-shrink: 0;
	overflow: hidden;
}

.sidebar .user-info .user-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sidebar .user-info .user-detail {
	flex: 1;
	min-width: 0;
}

.sidebar .user-info .user-name {
	font-size: 13px;
	font-weight: 600;
	color: #f1f5f9;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar .user-info .user-role {
	font-size: 11px;
	color: #475569;
	margin-top: 1px;
}

.sidebar .user-info .btn-logout {
	background: transparent;
	border: none;
	color: #475569;
	cursor: pointer;
	padding: 6px 7px;
	border-radius: var(--radius-sm);
	font-size: 14px;
	transition: color 0.15s, background 0.15s;
	flex-shrink: 0;
}

.sidebar .user-info .btn-logout:hover {
	color: #ef4444;
	background: rgba(239,68,68,0.12);
}

/* -------------------------------------------------------------
   메인 콘텐츠
   ------------------------------------------------------------- */
.main-content {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	background: var(--bg-base);
}

/* 스크롤바 */
.main-content::-webkit-scrollbar { width: 6px; }
.main-content::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 3px;
}
.main-content::-webkit-scrollbar-track { background: transparent; }

/* 페이지 헤더 */
.page-header {
	padding: 20px 30px;
	background: #ffffff;
	border-bottom: 1px solid #e8edf3;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-shrink: 0;
	gap: 12px;
	box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.page-header h1 {
	font-size: 19px;
	font-weight: 800;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 10px;
	letter-spacing: -0.4px;
}

.page-header h1 i {
	font-size: 17px;
	color: #3b82f6;
}

.page-header .header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

/* 콘텐츠 본문 */
.content-body {
	padding: 26px 30px;
	flex: 1;
}

/* -------------------------------------------------------------
   통계 카드
   ------------------------------------------------------------- */
.grid-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.stat-card {
	background: #ffffff;
	border: 1px solid #e8edf3;
	border-radius: var(--radius-md);
	padding: 22px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	box-shadow: var(--shadow-sm);
	transition: transform 0.2s, box-shadow 0.2s;
	position: relative;
	overflow: hidden;
}

.stat-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, transparent, transparent);
	border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.stat-card.color-blue::before  { background: linear-gradient(90deg, #3b82f6, #6366f1); }
.stat-card.color-green::before { background: linear-gradient(90deg, #10b981, #34d399); }
.stat-card.color-orange::before{ background: linear-gradient(90deg, #f97316, #fb923c); }
.stat-card.color-purple::before{ background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.stat-card.color-red::before   { background: linear-gradient(90deg, #ef4444, #f87171); }
.stat-card.color-teal::before  { background: linear-gradient(90deg, #14b8a6, #2dd4bf); }

.stat-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.stat-icon {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex-shrink: 0;
}

.stat-icon.blue   { background: #eff6ff; color: #3b82f6; }
.stat-icon.green  { background: #f0fdf4; color: #10b981; }
.stat-icon.orange { background: #fff7ed; color: #f97316; }
.stat-icon.purple { background: #f5f3ff; color: #8b5cf6; }
.stat-icon.red    { background: #fef2f2; color: #ef4444; }
.stat-icon.teal   { background: #f0fdfa; color: #14b8a6; }
.stat-icon.yellow { background: #fffbeb; color: #f59e0b; }

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

.stat-value {
	font-size: 28px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.1;
	letter-spacing: -0.8px;
}

.stat-label {
	font-size: 12.5px;
	color: #64748b;
	margin-top: 4px;
	font-weight: 500;
}

.stat-sub {
	font-size: 11px;
	color: #94a3b8;
	margin-top: 3px;
}

/* -------------------------------------------------------------
   카드
   ------------------------------------------------------------- */
.card {
	background: #ffffff;
	border: 1px solid #e8edf3;
	border-radius: var(--radius-md);
	padding: 22px;
	box-shadow: var(--shadow-sm);
}

.card-title {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 18px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.section-title {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 2px solid #f1f5f9;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Settings.cshtml section-header 호환 */
.section-header {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 2px solid #f1f5f9;
}

/* -------------------------------------------------------------
   그리드
   ------------------------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* -------------------------------------------------------------
   버튼
   ------------------------------------------------------------- */
.btn-primary {
	background: #3b82f6;
	color: #fff;
	border: none;
	padding: 9px 18px;
	border-radius: var(--radius-sm);
	font-weight: 600;
	font-size: 13.5px;
	transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
	cursor: pointer;
}

.btn-primary:hover {
	background: #2563eb;
	box-shadow: 0 3px 10px rgba(59,130,246,0.35);
}

.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
	background: #ffffff;
	color: #475569;
	border: 1px solid #e2e8f0;
	padding: 9px 18px;
	border-radius: var(--radius-sm);
	font-size: 13.5px;
	font-weight: 500;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	white-space: nowrap;
	cursor: pointer;
}

.btn-secondary:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
	color: #0f172a;
}

.btn-danger {
	background: #fef2f2;
	color: #ef4444;
	border: 1px solid #fecaca;
	padding: 7px 13px;
	border-radius: var(--radius-sm);
	font-size: 12.5px;
	font-weight: 600;
	transition: background 0.15s, border-color 0.15s;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}

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

.btn-success {
	background: #f0fdf4;
	color: #10b981;
	border: 1px solid #bbf7d0;
	padding: 7px 13px;
	border-radius: var(--radius-sm);
	font-size: 12.5px;
	font-weight: 600;
	transition: background 0.15s;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}

.btn-success:hover { background: #dcfce7; }

.btn-warning {
	background: #fffbeb;
	color: #d97706;
	border: 1px solid #fde68a;
	padding: 7px 13px;
	border-radius: var(--radius-sm);
	font-size: 12.5px;
	font-weight: 600;
	transition: background 0.15s, border-color 0.15s;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}

.btn-warning:hover {
	background: #fef3c7;
	border-color: #fcd34d;
}

.btn-info {
	background: #eff6ff;
	color: #3b82f6;
	border: 1px solid #bfdbfe;
	padding: 7px 13px;
	border-radius: var(--radius-sm);
	font-size: 12.5px;
	font-weight: 600;
	transition: background 0.15s, border-color 0.15s;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}

.btn-info:hover {
	background: #dbeafe;
	border-color: #93c5fd;
}

.btn-sm { padding: 5px 11px !important; font-size: 12px !important; }
.btn-icon {
	width: 34px;
	height: 34px;
	padding: 0 !important;
	justify-content: center;
	border-radius: var(--radius-sm);
}

/* -------------------------------------------------------------
   검색/필터 바
   ------------------------------------------------------------- */
.search-bar {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	flex-wrap: wrap;
	align-items: center;
}

/* -------------------------------------------------------------
   폼
   ------------------------------------------------------------- */
.form-group { margin-bottom: 16px; }

.form-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 6px;
	letter-spacing: 0.2px;
}

.form-input {
	width: 100%;
	background: #ffffff;
	border: 1.5px solid #e2e8f0;
	color: #0f172a;
	border-radius: var(--radius-sm);
	padding: 9px 13px;
	font-size: 13.5px;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	font-family: inherit;
}

.form-input:focus {
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.form-input:hover:not(:focus) {
	border-color: #cbd5e1;
}

.form-input::placeholder { color: #94a3b8; }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 80px; line-height: 1.5; }

/* -------------------------------------------------------------
   테이블
   ------------------------------------------------------------- */
.table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.table-custom {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.table-custom thead tr {
	background: #f8fafc;
	border-bottom: 2px solid #e8edf3;
}

.table-custom th {
	padding: 12px 16px;
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	color: #64748b;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	white-space: nowrap;
}

.table-custom td {
	padding: 13px 16px;
	color: #1e293b;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

.table-custom tbody tr {
	transition: background 0.12s;
}

.table-custom tbody tr:hover td {
	background: #f8faff;
}

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

/* -------------------------------------------------------------
   배지
   ------------------------------------------------------------- */
.badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}

.badge-active   { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }
.badge-inactive { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.badge-warning  { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }
.badge-info     { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.badge-danger   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge-purple   { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.badge-teal     { background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }

/* -------------------------------------------------------------
   모달
   ------------------------------------------------------------- */
.modal-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(15,23,42,0.55);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	z-index: 1060;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal-backdrop.is-open {
	display: flex !important;
}

.modal {
	display: block !important;
	position: relative !important;
	top: auto !important;
	left: auto !important;
	width: 100% !important;
	height: auto !important;
	overflow-x: visible !important;
	overflow-y: auto;
	outline: none;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: var(--radius-lg);
	padding: 28px;
	min-width: 400px;
	max-width: 560px;
	max-height: 90vh;
	box-shadow: var(--shadow-xl);
	z-index: 1;
}

.modal::-webkit-scrollbar { width: 4px; }
.modal::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 22px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f1f5f9;
}

.modal-title {
	font-size: 17px;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.3px;
}

.modal-close {
	width: 30px;
	height: 30px;
	background: transparent;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	border-radius: var(--radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	transition: color 0.15s, background 0.15s;
}

.modal-close:hover {
	color: #475569;
	background: #f1f5f9;
}

.modal-footer {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #f1f5f9;
}

/* -------------------------------------------------------------
   토스트
   ------------------------------------------------------------- */
#toast-container {
	position: fixed;
	top: 18px;
	right: 18px;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}

.toast-item {
	padding: 12px 18px;
	border-radius: var(--radius-md);
	font-size: 13.5px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 10px;
	pointer-events: all;
	animation: toastIn 0.24s cubic-bezier(0.34,1.56,0.64,1);
	min-width: 230px;
	max-width: 360px;
	box-shadow: var(--shadow-md);
	border: 1px solid transparent;
}

.toast-item.success {
	background: #f0fdf4;
	color: #15803d;
	border-color: #bbf7d0;
}

.toast-item.error {
	background: #fef2f2;
	color: #dc2626;
	border-color: #fecaca;
}

.toast-item.warn {
	background: #fffbeb;
	color: #d97706;
	border-color: #fde68a;
}

.toast-item.info {
	background: #eff6ff;
	color: #2563eb;
	border-color: #bfdbfe;
}

@keyframes toastIn {
	from { opacity: 0; transform: translateX(20px) scale(0.96); }
	to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* -------------------------------------------------------------
   빈 상태
   ------------------------------------------------------------- */
.empty-state {
	text-align: center;
	padding: 56px 24px;
	color: #94a3b8;
}

.empty-state i {
	font-size: 40px;
	margin-bottom: 14px;
	opacity: 0.35;
	display: block;
}

.empty-state p { font-size: 14px; }

td.empty-state {
	padding: 44px 16px;
	font-size: 13px;
}

/* -------------------------------------------------------------
   구분선 / 유틸리티
   ------------------------------------------------------------- */
.divider {
	border: none;
	border-top: 1px solid var(--border);
	margin: 16px 0;
}

.mt-4  { margin-top: 4px;  }
.mt-8  { margin-top: 8px;  }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-4  { margin-bottom: 4px;  }
.mb-8  { margin-bottom: 8px;  }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-6  { gap: 6px;  }
.gap-8  { gap: 8px;  }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-end     { display: flex; justify-content: flex-end; align-items: center; }
.flex-wrap    { flex-wrap: wrap; }
.text-muted   { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-right   { text-align: right; }
.text-center  { text-align: center; }
.fw-bold      { font-weight: 700; }
.fw-semibold  { font-weight: 600; }
.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-14 { font-size: 14px; }
.w-100 { width: 100%; }

/* -------------------------------------------------------------
   햄버거 버튼 (모바일 사이드바 토글)
   ------------------------------------------------------------- */
.btn-menu {
	display: none;
	width: 36px;
	height: 36px;
	background: transparent;
	border: 1px solid #e2e8f0;
	border-radius: var(--radius-sm);
	color: #475569;
	font-size: 16px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}

/* 사이드바 오버레이 (모바일) */
.sidebar-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 99;
}

.sidebar-overlay.active { display: block; }

/* -------------------------------------------------------------
   반응형
   ------------------------------------------------------------- */
@media (max-width: 1280px) {
	.grid-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
	.grid-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	/* 사이드바: 슬라이드 오버레이로 전환 */
	.sidebar {
		position: fixed;
		left: -260px;
		top: 0;
		height: 100%;
		z-index: 200;
		transition: left 0.25s ease;
		width: 248px;
	}

	.sidebar.open { left: 0; }

	.main-content { width: 100%; }
	.btn-menu { display: inline-flex; }

	.content-body { padding: 16px 16px; }
	.page-header  { padding: 14px 16px; }
	.page-header h1 { font-size: 16px; }

	.grid-stats, .grid-2, .grid-3 { grid-template-columns: 1fr; }

	.modal { min-width: unset; width: 100%; max-height: 92vh; }

	.table-wrap, .card { overflow-x: auto; }

	.search-bar { flex-wrap: wrap; }
	.search-bar .form-input { max-width: 100% !important; }
}

@media (max-width: 480px) {
	.content-body { padding: 12px; }
	.page-header  { padding: 12px; }
}
