@charset "utf-8";

html,
body {
	min-height: 100%;
}
body {
	background: #fff;
	color: #17213a;
}

#wrapper {
	min-height: 100vh;
}

/* 좌측 메뉴 */
#sidebar {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 1000;
	display: flex;
	width: 240px;
	flex-direction: column;
	border-right: 1px solid #dfe5ef;
	transition: transform .2s ease;
	background-color: #fff;
	background-image: url("../img/layout/001.jpg");
	background-repeat: no-repeat;
	background-position: left bottom;
	background-size: 100% auto;
}
.sidebar-brand {
	position: relative;
	display: block;
	min-height: 86px;
	padding: 21px 54px 17px 20px;
	color: #17213a;
}
.sidebar-brand:hover {
	color: #17213a;
}
.sidebar-brand .brand-name {
	display: block;
	overflow: hidden;
	margin-bottom: 5px;
	font-size: 20px;
	font-weight: 700;
	color: #0758ff;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.sidebar-brand strong {
	font-size: 20px;
	font-weight: 700;
}
.sidebar-brand strong b {
	color: #0758ff;
}
.sidebar-nav {
	flex: 1;
	overflow-y: auto;
	padding: 9px 12px;
}
.sidebar-nav > ul > li {
	margin-bottom: 6px;
}
.sidebar-nav > ul > li > a {
	display: flex;
	min-height: 44px;
	align-items: center;
	gap: 13px;
	padding: 0 14px;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 600;
	color: #26334e;
}
.sidebar-nav > ul > li > a:hover {
	background: #eaf0ff;
	color: #0758ff;
}
.sidebar-nav > ul > li.active > a {
	background: linear-gradient(135deg, #0758ff, #0643db);
	box-shadow: 0 5px 12px rgba(7, 88, 255, .2);
	color: #fff;
}
.menu-arrow {
	margin-left: auto;
}
.sidebar-sub {
	display: none;
	padding: 5px 0 3px 42px;
}
.sidebar-nav li.active > .sidebar-sub {
	display: block;
}
.sidebar-sub a {
	display: block;
	padding: 7px 8px;
	font-size: 13px;
	color: #63708a;
}
.sidebar-sub li.active a,
.sidebar-sub a:hover {
	color: #0758ff;
}
.sidebar-footer {
	padding: 20px;
	font-size: 12px;
	color: #7a879f;
}
#sidebar_overlay {
	display: none;
}

/* 상단 및 본문 */
.app-shell {
	min-height: 100vh;
	margin-left: 240px;
	transition: margin-left .2s ease;
}
#header {
	position: sticky;
	top: 0;
	z-index: 900;
	display: flex;
	height: 56px;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid #dfe5ef;
}
.header-left,
.header-right {
	display: flex;
	align-items: center;
}
.header-left {
	gap: 19px;
}
.header-right {
	gap: 28px;
}
#sidebar_toggle {
	width: 28px;
	height: 28px;
	border: 0;
	background: transparent;
	color: #66758f;
}
.mode-badge {
	padding: 8px 15px;
	border-radius: 6px;
	background: #0758ff;
	font-size: 12px;
	color: #fff;
}
#current_time {
	font-size: 12px;
	font-weight: 600;
	color: #26334e;
	white-space: nowrap;
}
#current_time i {
	margin-right: 9px;
	color: #52627d;
}
.user-menu {
	position: relative;
}
#user_menu_button {
	display: flex;
	min-width: 112px;
	height: 34px;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 13px;
	border: 1px solid #e3e7ee;
	border-radius: 4px;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	color: #26334e;
}
#user_menu_panel {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	width: 100%;
	padding: 5px;
	background: #fff;
	border: 1px solid #e3e7ee;
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(32, 45, 70, .12);
}
#user_menu_panel a {
	display: block;
	padding: 8px 10px;
	border-radius: 3px;
	font-size: 12px;
	color: #26334e;
}
#user_menu_panel a:hover {
	background: #f0f4fb;
	color: #0758ff;
}

#visual {
	padding: 24px 20px 13px;
}
.breadcrumb {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 12px;
}
.breadcrumb li {
	position: relative;
	font-size: 11px;
	color: #7b879b;
}
.breadcrumb li + li::before {
	position: absolute;
	top: 0;
	left: -11px;
	content: ">";
}
.breadcrumb a {
	color: inherit;
}
#page_title {
	font-size: 23px;
	font-weight: 700;
	line-height: 1.3;
	color: #17213a;
}
#container {
	position: relative;
	float: none;
	width: auto;
	min-height: calc(100vh - 138px);
	margin: 0;
	padding: 10px 20px 40px;
}
#container > .inner,
.inner {
	width: 100%;
	max-width: none;
	margin: 0;
}

body.sidebar-collapsed #sidebar {
	transform: translateX(-100%);
}
body.sidebar-collapsed .app-shell {
	margin-left: 0;
}

@media (max-width: 900px) {
	#sidebar {
		width: 240px;
		transform: translateX(-100%);
		box-shadow: 12px 0 30px rgba(19, 35, 66, .14);
	}
	.app-shell,
	body.sidebar-collapsed .app-shell {
		margin-left: 0;
	}
	body.sidebar-open #sidebar {
		transform: translateX(0);
	}
	body.sidebar-open #sidebar_overlay {
		position: fixed;
		inset: 0;
		z-index: 950;
		display: block;
		width: 100%;
		height: 100%;
		border: 0;
		background: rgba(15, 25, 45, .35);
	}
	.mode-badge {
		display: none;
	}
	.header-right {
		gap: 10px;
	}
	#current_time {
		font-size: 11px;
	}
}

@media (max-width: 560px) {
	#header {
		padding: 0 14px;
	}
	#current_time {
		display: none;
	}
	#visual {
		padding: 20px 16px 10px;
	}
	#container {
		padding: 8px 16px 30px;
	}
}

@media print {
	#sidebar,
	#header,
	#sidebar_overlay {
		display: none !important;
	}
	.app-shell {
		margin-left: 0 !important;
	}
}
