@import '_layout.css';
/* 공통 레이아웃 */
@import '_color.css';
/* 컬러 */
@import '_icon.css';
/* 이미지 */
@import '_input.css';
/* input */
@import '_button.css';
/* button */
@import '_header.css';
/* header */
@import '_sidebar.css';
/* lnb side bar */
@import '_utils.css';
/* width 등의 utils */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css'); /* pretendard 폰트 */

/* filter__box */
.content .filter__box {
	display: flex;
	gap: 8px;
	margin-bottom: 15px;
}
.content .filter__box .filter_state {
	display: block;
	text-indent: -99999px;
	width: 32px;
	height: 16px;
	background-image: var(--filter-large-off);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center center;
	border: none;
	background-color: transparent;
}
.content .filter__box .filter_state.on {
	background-image: var(--filter-large-on);
}
.content .filter__box p {
	font-weight: 500;
	color: var(--brand-primary-dark);
}

/* table__inner */
.content .table__box {
	overflow: hidden;
	height: 100%;
	max-height: calc(100% - 86px);
}
.content .table__inner {
	overflow: auto;
	max-height: calc(100% - 55px);
	border: 1px solid var(--neutral-medium);
	border-bottom: 0;
	border-radius: 6px 6px 0 0;
	box-sizing: border-box;
}
.content .table__box table {
	width: 100%;
	height: 100%;
	table-layout: fixed;
	font-size: 14px;
	background-color: var(--bg-default);
	color: var(--neutral-default);
	border-collapse: separate;
	border-spacing: 0;
}
/* highlight effect */
.content .table__box table .highlight {
	background-color: var(--brand-primary-light-table-focus);
	cursor: default;
}
.content .table__box table thead {
	position: sticky;
	top: 0;
	left: 0;
	z-index: 10;
	height: 50px;
	text-align: left;
	background-color: var(--brand-primary-lightest);
}
.content .table__box table thead th,
.content .table__box table tbody td {
	border: 1px solid var(--neutral-lighter);
	vertical-align: middle;
}
.content .table__box table thead th,
.content .table__box table tbody td {
	position: relative;
	padding: 10px 15px;
	box-sizing: border-box;
}
.content .table__box table thead th {
	font-weight: 600;
}
.content .table__box table thead th div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}
.content .table__box table thead th div p {
	width: calc(100% - 32px);
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.content .table__box table thead th div button {
	width: 16px;
	height: 16px;
	border: none;
	text-indent: -99999px;
	background-color: transparent;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}
.content .table__box table thead th div button.btn_table_filter {
	background-image: var(--table-header-filter);
}
.content .table__box table thead th div button.btn_table_sort {
	background-image: var(--table-header-sort);
}

.content .table__box table thead th:before,
.content .table__box table thead th:after {
	position: absolute;
	top: 50%;
	content: '';
	width: 2px;
	height: 10px;
	transform: translateY(-50%);
	background-color: var(--brand-primary-lighter);
}
.content .table__box table thead th:before {
	left: 0;
}
.content .table__box table thead th:after {
	right: 0;
}
.content .table__box table thead th:first-of-type::before,
.content .table__box table thead th:last-of-type::after {
	display: none;
}
.content .table__box table tbody tr:nth-of-type(odd) {
	background-color: var(--neutral-lightest);
}
.content .table__box table tbody tr:first-of-type,
.content .table__box table tbody tr:nth-of-type(even) {
	background-color: var(--bg-default);
}
.content .table__box table tbody tr:first-of-type {
	position: sticky;
	z-index: 1;
	top: 50px;
	left: 0;
}

.content .table__box table tbody td {
	height: 50px;
	text-align: left;
}
.content .table__box table tbody td.text_center {
	text-align: center;
}
.content .table__box table tbody td p {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.content .table__box table tbody td input[type='text'],
.content .table__box table tbody td input[type='date'],
.content .table__box table tbody td select {
	width: 100%;
	height: auto;
	border: 1px solid var(--field-table-border);
	padding: 7px 10px;
	box-sizing: border-box;
	border-radius: 4px;
	font-size: 14px;
	margin-top: 0;
}

.content .table__box table tbody td select {
	box-sizing: border-box;
	-webkit-appearance: none; /* for chrome */
	-moz-appearance: none; /*for firefox*/
	appearance: none;
	background: var(--select-arrow) no-repeat 95% 50%/12px auto;
	background-color: var(--field-inactive-bg);
	cursor: pointer;
}
.content .table__box table tbody td select:focus {
	outline: 1.5px solid var(--field-focused-border);
}
.content .table__box table tbody td select:invalid {
	color: var(--gray-70);
}
.content .table__box table tbody td option {
	color: var(--neutral-default);
}

.content .table__box table tbody td.pdf__box .pdf_info {
	display: flex;
	align-items: center;
	justify-content: center;
}
.content .table__box table tbody td.pdf__box .pdf_info p {
	position: relative;
	width: calc(100% - 106px);
	padding-right: 15px;
	margin-right: 25px;
}
.content .table__box table tbody td.pdf__box .pdf_info p:after {
	position: absolute;
	top: 50%;
	right: 0;
	content: '';
	width: 1px;
	height: 10px;
	transform: translateY(-50%);
	background-color: var(--gray-80);
}
.content .table__box table tbody td.pdf__box .pdf_info a {
	text-indent: -99999px;
	width: 66px;
	height: 32px;
	background-image: var(--table-pdf);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center center;
}

/* table_control */
.table_control {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 55px;
	background-color: var(--bg-default);
	border-radius: 0 0 6px 6px;
	border: 1px solid var(--neutral-medium);
	box-sizing: border-box;
}
.table_control .page_navigation {
	display: flex;
	justify-content: center;
	align-items: center;
}
.table_control .page_navigation p {
	font-size: 15px;
	font-weight: 500;
	color: var(--neutral-darkest);
	margin: 0 70px;
}
.table_control .page_navigation button {
	width: 14px;
	height: 14px;
	background-color: transparent;
	border: none;
	text-indent: -99999px;
	background-size: contain;
	background-position: center center;
	background-repeat: no-repeat;
}
.table_control .page_navigation button.off {
	opacity: 0.3;
}
.table_control .page_navigation .btn_first {
	background-image: var(--table-slide-first);
	margin-right: 20px;
}
.table_control .page_navigation .btn_prev {
	background-image: var(--table-slide-prev);
}
.table_control .page_navigation .btn_last {
	background-image: var(--table-slide-last);
	margin-left: 20px;
}
.table_control .page_navigation .btn_next {
	background-image: var(--table-slide-next);
}
.table_control .page_control {
	position: absolute;
	right: 20px;
	display: flex;
	align-items: center;
	font-size: 14px;
	font-weight: 500;
	color: var(--neutral-darker);
}
.table_control .page_control .page_text {
	margin-right: 8px;
}
.table_control .page_control select {
	width: 80px;
	padding: 8px 10px;
	border: 1px solid var(--neutral-light);
	border-radius: 4px;
	box-sizing: border-box;
	cursor: pointer;
	-webkit-appearance: none; /* for chrome */
	-moz-appearance: none; /*for firefox*/
	appearance: none;
	background: var(--select-arrow) no-repeat 95% 50%/12px auto;
}
.table_control .page_control select:focus {
	outline: 1.5px solid var(--field-focused-border);
}
.table_control .page_control .line {
	display: block;
	width: 1px;
	height: 10px;
	background-color: var(--neutral-medium);
	margin: 0 15px;
}

.loading-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	z-index: 9999;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: #333;
	opacity: .5;
}
.loading-spinner {
	width: 40px;
	height: 40px;
	border: 5px solid #3498db;
	border-top: 5px solid transparent;
	border-radius: 50%;
	animation: rotate 1s linear infinite;
}

@keyframes rotate {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

/************ Responsive *************/
/* tablet */
@media screen and (max-width: 1280px) {
	.table_control {
		padding-left: 20px;
		justify-content: flex-start;
	}
}
@media screen and (max-width: 1024px) {
	.content .table__inner {
		max-height: calc(100% - 90px);
	}

	.table_control {
		height: 90px;
		padding-left: 0;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		gap: 15px;
	}

	.table_control .page_control {
		position: relative;
		right: 0;
	}
}

