:root {
	--primary-color: #2c3e50;
	--bg-color: #f4f7f6;
}

body {
	font-family: 'Pretendard', sans-serif;
	background-color: var(--bg-color);
	margin: 0;
	padding: 20px;
}

.page {
	max-width: 1400px;
	margin: 0 auto;
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding: 12px 16px;
	border-bottom: 2px solid #e5e7eb;
}

.header h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
}

.header h2 a {
	color: #111827;
	text-decoration: none;
}

.header h2 a:hover {
	text-decoration: underline;
}

.header-actions {
	display: flex;
	gap: 10px;
}

.toolbar {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-top: 10px;
	background: #f9f9f9;
	padding: 14px;
	border-radius: 5px;
	margin-bottom: 14px;
	border: 1px solid #eee;
}

.toolbar-left {
	flex: 1;
	display: flex;
}

.toolbar-left input[type="text"] {
	width: 100%;
	max-width: 100%;
}

.toolbar-right {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.summary {
	font-size: 13px;
	color: #444;
	margin: 6px 2px 12px;
}

.toolbar input[type="text"],
.toolbar select,
.toolbar input[type="date"] {
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	background: white;
}

.card {
	margin-top: 10px;
}

table.tbl {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

.tbl th,
.tbl td {
	padding: 12px;
	border-bottom: 1px solid #eee;
	font-size: 14px;
	vertical-align: middle;
}

.tbl th {
	background-color: var(--primary-color);
	color: white;
	position: sticky;
	top: 0;
	z-index: 1;
}

.tbl tr:hover {
	background-color: #f8f9fa;
}

.empty {
	text-align: center;
	color: #666;
	padding: 24px 10px;
}

.center {
	text-align: center;
}

.mono {
	font-family: monospace;
}

.strong {
	font-weight: 700;
}

.muted {
	color: #666;
}

.btn {
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	border: 1px solid #ddd;
	background: white;
	color: #111;
	cursor: pointer;
}

.btn:hover {
	background: #f3f4f6;
}

.btn.primary {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
}

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

.btn.ghost {
	background: transparent;
}

.btn.sm {
	padding: 6px 10px;
	font-size: 13px;
}

.btn.disabled {
	opacity: 0.5;
	pointer-events: none;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	white-space: nowrap;
}

.pill.ok {
	background: #eef7ff;
	border-color: #b6d7ff;
	color: #1459c7;
}

.pill.off {
	background: #f2f2f2;
	border-color: #ddd;
	color: #666;
}

.pagination {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-top: 20px;
	flex-wrap: wrap;
}

.pageinfo {
	font-size: 13px;
	color: #444;
	align-self: center;
	margin-left: 8px;
}

/* 헤더 정렬 링크 - 색 변화 제거 */
.tbl th a {
	color: inherit;
	text-decoration: none;
}
.tbl th a:hover {
	text-decoration: underline;
	color: inherit;
}
.tbl th a:active,
.tbl th a:visited,
.tbl th a:focus {
	color: inherit;
	text-decoration: none;
}
.tbl th .sort-icon {
	color: inherit;
}

/* ✅ 채널 전용: 코드 컬럼 숨김용 */
.col-code {
	display: none !important;
}
