/**
 * Board list page layout fixes.
 *
 * @package AriawellTheme
 */

body.ms-board-list {
	background: #fff;
}

body.ms-board-list #header {
	position: sticky;
}

body.ms-board-list #main-content {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.ms-board-list #wrap > .container.wrap-medium,
body.ms-board-list .container.wrap-medium {
	overflow: hidden;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 120px 20px 0;
}

body.ms-board-list .xans-board-listpackage {
	width: 100%;
}

body.ms-board-list .path + .titleArea h2::before {
	content: '법무법인 이엘 성범죄 센터';
}

body.ms-board-list .ms-table {
	width: 100%;
}

body.ms-board-list .ms-table table {
	width: 100%;
	border-collapse: collapse;
	border-top: 1px solid #bbb;
}

body.ms-board-list .ms-table table caption {
	display: none;
}

body.ms-board-list .ms-table table th,
body.ms-board-list .ms-table table td {
	padding: 14px 10px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	vertical-align: middle;
}

body.ms-board-list .ms-table table th {
	background-color: #f6f6f6;
	text-align: center;
}

body.ms-board-list .ms-table table td {
	border-bottom: 1px solid #e8e8e8;
	color: #555;
}

body.ms-board-list .ms-table table td.number,
body.ms-board-list .ms-table table th:first-child {
	text-align: center;
}

body.ms-board-list .ms-table table td.subject {
	text-align: left;
}

body.ms-board-list .ms-table table td.subject a {
	color: #000 !important;
}

body.ms-board-list .ms-table table td.message {
	padding: 60px 0;
	text-align: center;
	font-size: 13px;
	color: #888;
}

@media screen and (max-width: 1240px) {
	body.ms-board-list .ms-table {
		padding: 0 20px;
	}
}

@media all and (min-width: 1024px) {
	body.ms-board-list .xans-board-listpackage .xans-board-listheader {
		display: table-header-group;
	}

	body.ms-board-list .xans-board-listpackage table {
		display: table;
		table-layout: fixed;
	}

	body.ms-board-list .xans-board-listpackage table col.col-number {
		width: 80px;
	}

	body.ms-board-list .xans-board-listpackage table col.col-author {
		width: 100px;
	}

	body.ms-board-list .xans-board-listpackage table col.col-subject {
		width: auto;
	}

	body.ms-board-list .xans-board-listpackage thead th:nth-child(1),
	body.ms-board-list .xans-board-listpackage tbody td.number {
		width: 80px;
		white-space: nowrap;
	}

	body.ms-board-list .xans-board-listpackage thead th:nth-child(3),
	body.ms-board-list .xans-board-listpackage tbody td:nth-child(3) {
		width: 100px;
		white-space: nowrap;
		text-align: center;
	}

	body.ms-board-list .xans-board-listpackage thead th:nth-child(2),
	body.ms-board-list .xans-board-listpackage tbody td.subject {
		width: auto;
	}

	body.ms-board-list .xans-board-listpackage tbody {
		display: table-row-group;
	}

	body.ms-board-list .xans-board-listpackage thead {
		display: table-header-group;
	}

	body.ms-board-list .xans-board-listpackage tbody tr {
		display: table-row;
		float: none;
		padding: 0;
		overflow: visible;
		background: #fff !important;
	}

	body.ms-board-list .xans-board-listpackage tbody tr td {
		display: table-cell;
		float: none;
		padding: 14px 10px;
		font-size: 14px;
		color: #555;
		border-bottom: 1px solid #e8e8e8;
		background: transparent !important;
	}

	body.ms-board-list .xans-board-listpackage tbody tr td.subject {
		font-size: 14px;
		font-weight: 400;
		color: #555;
	}

	body.ms-board-list .xans-board-listpackage tbody tr td.subject a {
		color: #000 !important;
		font-size: 14px;
		font-weight: 400;
		line-height: 1.5;
	}
}

body.ms-board-list .xans-board-listpackage tbody tr td span::before {
	content: none !important;
}

body.ms-board-list .ms-paginate {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 100px auto 0;
	padding: 0 20px;
	max-width: 1200px;
}

body.ms-board-list .ms-paginate > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 35px;
	font-size: 0;
}

body.ms-board-list .ms-paginate > a svg {
	width: 14px;
	height: 14px;
	opacity: 0.3;
	transition: opacity 0.4s;
}

body.ms-board-list .ms-paginate > a:hover svg {
	opacity: 1;
}

body.ms-board-list .ms-paginate > ol {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin: 0;
	padding: 0 15px;
	list-style: none;
}

body.ms-board-list .ms-paginate > ol > li {
	text-align: center;
}

body.ms-board-list .ms-paginate > ol > li a {
	display: block;
	width: 35px;
	line-height: 35px;
	font-size: 13px;
	background: #f3f3f3;
	border-radius: 2px;
	padding: 0;
	text-decoration: none;
	color: inherit;
}

body.ms-board-list .ms-paginate > ol > li a.this {
	background: #2a2d2b;
	color: #fff;
}

body.ms-board-list #boardSearchForm {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

body.ms-board-list .boardSearch {
	text-align: center;
	margin: 30px auto 120px;
	padding: 0 20px;
	max-width: 1200px;
	font-size: 0;
}

body.ms-board-list .boardSearch p {
	display: block;
	width: 100%;
	margin: 0 0 5px;
	text-align: center;
}

body.ms-board-list .boardSearch p > * {
	display: inline-block;
	vertical-align: middle;
}

body.ms-board-list .boardSearch select,
body.ms-board-list .boardSearch input[type="text"] {
	box-sizing: border-box;
	height: 30px;
	margin: 0 2px;
	padding: 0 10px;
	border: 1px solid #e8e8e8;
	border-radius: 5px;
	background: #fff;
	color: #000;
	font-size: 12px;
}

body.ms-board-list .boardSearch select {
	width: auto;
	min-width: 80px;
	padding-right: 25px;
	appearance: none;
	background-image: url('https://24sos.co.kr/maeng/images/icons/select_arrow.svg');
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 8px auto;
}

body.ms-board-list .boardSearch input[type="text"] {
	width: 174px;
	max-width: 100%;
}

body.ms-board-list .boardSearch .ms-button {
	display: inline-block;
	box-sizing: border-box;
	width: auto;
	min-width: 40px;
	height: 30px;
	margin: 0 2px;
	padding: 0 10px;
	border: 1px solid #bbb;
	border-radius: 4px;
	background: #fff;
	color: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 28px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
}

@media all and (max-width: 1023px) {
	body.ms-board-list #wrap > .container.wrap-medium,
	body.ms-board-list .container.wrap-medium {
		padding-top: 70px;
	}

	body.ms-board-list .xans-board-listpackage .xans-board-listheader {
		display: none;
	}

	body.ms-board-list .xans-board-listpackage table,
	body.ms-board-list .xans-board-listpackage tbody,
	body.ms-board-list .xans-board-listpackage tbody tr {
		display: block;
		text-align: left;
	}

	body.ms-board-list .xans-board-listpackage tbody tr {
		border-bottom: 1px solid #e8e8e8;
		position: relative;
		overflow: hidden;
		padding: 10px 0;
		background: #fff !important;
	}

	body.ms-board-list .xans-board-listpackage tbody tr td {
		display: block;
		float: left;
		border: none;
		padding: 3px 8px;
		font-size: 12px;
		color: #666;
		background: transparent !important;
	}

	body.ms-board-list .xans-board-listpackage tbody tr td.number {
		font-size: 0;
		padding: 0;
	}

	body.ms-board-list .xans-board-listpackage tbody tr td.subject {
		float: none;
		width: 100%;
		font-size: 14px;
		color: #222;
		font-weight: 500;
	}

	body.ms-board-list .xans-board-listpackage tbody tr td.subject a {
		color: #222 !important;
		font-size: 14px;
		line-height: 1.5;
		font-weight: 500;
	}

	body.ms-board-list .xans-board-listpackage tbody tr td.message {
		float: none;
		width: 100%;
		padding: 20px 8px;
		text-align: center;
	}
}

@media all and (max-width: 767px) {
	body.ms-board-list .boardSearch p {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-wrap: wrap;
		gap: 5px 0;
	}

	body.ms-board-list .boardSearch p > * {
		flex: 1;
	}

	body.ms-board-list .boardSearch input[type="text"] {
		width: auto;
	}
}

@media all and (max-width: 500px) {
	body.ms-board-list .boardSearch p input[type="text"] {
		flex: 3;
	}
}

@media all and (max-width: 660px) {
	body.ms-board-list .xans-board-listpackage tbody tr td.number {
		display: none;
	}

	body.ms-board-list .ms-paginate {
		margin-top: 60px;
	}

	body.ms-board-list .boardSearch {
		margin-bottom: 80px;
	}
}
