/* 신청 */
* {
	box-sizing: border-box;
}

.estimate-wrap {
	width: calc(100% - 20px);
	max-width: 850px;
	margin: 20px auto;
	color: #222;
	font-family:'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif !important;
}

.estimate-title {
	margin-bottom: 18px;
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.5;
	word-break: keep-all;
}

.estimate-title .snap {
	display: inline-block;
	position: relative;
	margin: 0 3px;
	padding: 0 7px 2px;
	font-size: 27px;
	font-weight: 900;
	letter-spacing: -1px;
	border: 2px solid #222;
	border-radius: 4px;
	transform: rotate(-2deg);
}

.estimate-title .snap::after {
	content: "";
	position: absolute;
	left: 5px;
	right: 5px;
	bottom: -5px;
	height: 2px;
	background: #222;
}

.estimate-box {
	padding: 24px;
	border: 1px solid #ccc;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.estimate-table-wrap {
	width: 100%;
	overflow-x: auto;
}

.estimate-table {
	width: 100%;
	min-width: 650px;
	border-collapse: collapse;
	table-layout: fixed;
}

.estimate-table th {
	padding: 0 6px 10px;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
	color: #555;
}

.estimate-table td {
	padding: 6px;
	vertical-align: middle;
}

.estimate-table th:nth-child(1),
.estimate-table td:nth-child(1) {
	width: 21%;
}

.estimate-table th:nth-child(2),
.estimate-table td:nth-child(2) {
	width: 34%;
}

.estimate-table th:nth-child(3),
.estimate-table td:nth-child(3) {
	width: 23%;
}

.estimate-table th:nth-child(4),
.estimate-table td:nth-child(4) {
	width: 22%;
}

.estimate-field {
	width: 100%;
	height: 46px;
	padding: 0 13px;
	border: 1px solid #bbb;
	border-radius: 7px;
	background: #fff;
	font-size: 14px;
	color: #222;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.estimate-field:focus {
	border-color: #222;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.estimate-field::placeholder {
	color: #666 !important;
	opacity: 1;
}

select.estimate-field {
	cursor: pointer;
}

.estimate-submit {
	width: 100%;
	height: 46px;
	border: 1px solid #222;
	border-radius: 7px;
	background: #222;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.estimate-submit:hover {
	background: #222;
	color: #fff;
	border-color: #222;
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
}

.estimate-submit:active {
	transform: translateY(1px);
}

.estimate-help {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #ddd;
	text-align: center;
	font-size: 14px;
	line-height: 1.7;
	color: #666;
}

.estimate-help .phone {
	display: inline-block;
	margin-left: 5px;
	font-size: 17px;
	font-weight: 800;
	color: #222;
	letter-spacing: 0.5px;
}

.estimate-wrap input,
.estimate-wrap select,
.estimate-wrap button {
	font-family: inherit !important;
}

@media screen and (max-width: 700px) {
	.estimate-wrap {
		margin: 14px auto;
	}

	.estimate-title {
		font-size: 19px;
	}

	.estimate-title .snap {
		font-size: 23px;
	}

	.estimate-box {
		padding: 18px 14px;
	}

	.estimate-table {
		min-width: 0;
	}

	.estimate-table,
	.estimate-table tbody,
	.estimate-table tr,
	.estimate-table td {
		display: block;
		width: 100% !important;
	}

	.estimate-table thead {
		display: none;
	}

	.estimate-table td {
		padding: 5px 0;
	}

	.estimate-submit {
		margin-top: 5px;
	}
}

/* 신청 목록 */
.school-table-wrap {
	padding: 24px;
	width: calc(100% - 20px);
    max-width: 850px;
    margin: 20px auto;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.school-table-title {
	margin: 0 0 18px;
	font-size: 20px;
	font-weight: 700;
	color: #111827;
}

.school-table-scroll {
	width: 100%;
	overflow-x: auto;
}

.school-table {
	width: 100%;
	min-width: 600px;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 14px;
	color: #374151;
}

.school-table th,
.school-table td {
	padding: 14px 16px;
	border-bottom: 1px solid #e5e7eb;
	text-align: center;
	vertical-align: middle;
}

.school-table thead th {
	background: #f8fafc;
	font-weight: 700;
	color: #1f2937;
	border-top: 2px solid #334155;
	border-bottom: 1px solid #cbd5e1;
}

.school-table tbody tr {
	transition: background-color 0.15s ease;
}

.school-table tbody tr:hover {
	background: #f8fafc;
}

.school-table tbody tr:last-child td {
	border-bottom: 0;
}

.school-table th:nth-child(1),
.school-table td:nth-child(1) {
	width: 70px;
}

.school-table th:nth-child(2),
.school-table td:nth-child(2) {
	width: 140px;
}

.school-table th:nth-child(4),
.school-table td:nth-child(4) {
	width: 110px;
}

.school-table td:nth-child(3) {
	text-align: left;
	font-weight: 600;
	color: #111827;
}

.school-table-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	padding: 5px 10px;
	background: #eef2ff;
	border-radius: 20px;
	color: #4338ca;
	font-weight: 700;
}

.school-table-empty {
	padding: 50px 20px !important;
	color: #9ca3af;
	text-align: center !important;
}

@media (max-width: 768px) {
	.school-table-wrap {
		padding: 18px 14px;
		border-radius: 10px;
	}

	.school-table-title {
		font-size: 18px;
	}

	.school-table th,
	.school-table td {
		padding: 12px;
	}
}

.school-excel-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;

	/* 오른쪽 끝 배치 */
	margin-left: auto;

	padding: 10px 16px;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	color: #374151;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: 0.15s ease;
}

.school-excel-btn:hover {
	background: #f0fdf4;
	border-color: #22c55e;
	color: #15803d;
	transform: translateY(-1px);
}

.school-excel-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	background: #dcfce7;
	border-radius: 5px;
	color: #15803d;
	font-size: 13px;
	font-weight: 800;
}
.school-table-header {
	display: flex;
	align-items: center;
	width: 100%;
	margin-bottom: 18px;
}

.school-table-header .school-table-title {
	margin: 0;
}

.school-table-header .school-excel-btn {
	margin-left: auto;
}
.school-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 22px;
}

.school-pagination .page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 12px;
	box-sizing: border-box;
	background: #ffffff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	color: #374151;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: 0.15s ease;
}

.school-pagination .page-btn:hover {
	background: #f8fafc;
	border-color: #94a3b8;
	color: #111827;
}

.school-pagination .page-btn.active {
	background: #334155;
	border-color: #334155;
	color: #ffffff;
	cursor: default;
}

/*  학교 검색 */
.school-search-wrap {
	position: relative;
}

#school_search_list {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	max-height: 250px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid #ddd;
	z-index: 1000;
	box-sizing: border-box;
}

#school_search_list .school-item {
	padding: 8px 10px;
	cursor: pointer;
}

#school_search_list .school-item:hover {
	background: #f5f5f5;
}