/* ============================================================
   Admit Card Reference Design (Screen & Print Styles)
   ============================================================ */

.wlsm-admit-card-wrapper {
	width: 100%;
	padding: 10px 0;
	box-sizing: border-box;
}

.wlsm-admit-card-reference-box {
	width: 100%;
	max-width: 820px;
	margin: 0 auto;
	background: #ffffff;
	border: 3.5px solid #063a86;
	border-radius: 20px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
}

/* --- Card Header --- */
.wlsm-card-header-wrap {
	position: relative;
	width: 100%;
	min-height: 130px;
	overflow: hidden;
}

.wlsm-header-svg-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.wlsm-header-svg-bg svg {
	width: 100%;
	height: 100%;
	display: block;
}

.wlsm-header-content-inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	padding: 12px 20px 22px 20px;
}

.wlsm-header-emblem-badge {
	flex-shrink: 0;
	margin-right: 15px;
	margin-left: 5px;
}

.wlsm-emblem-outer-ring {
	width: 95px;
	height: 95px;
	border-radius: 50%;
	background: #041e60;
	border: 3.5px solid #ffcc00;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
	padding: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.wlsm-emblem-inner-circle {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 4px;
	box-sizing: border-box;
}

.wlsm-school-logo-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.wlsm-school-logo-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
}

.wlsm-header-info-text {
	flex: 1;
	text-align: center;
	padding-right: 35px; /* Visual centering adjustment opposite the badge */
}

.wlsm-school-title {
	font-family: 'Times New Roman', Times, Georgia, serif, sans-serif;
	font-size: 25px;
	font-weight: 800;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
	line-height: 1.2;
	margin-bottom: 4px;
	letter-spacing: 0.5px;
}

.wlsm-school-address {
	font-size: 13px;
	color: #ffffff;
	margin-bottom: 3px;
	opacity: 0.95;
	font-family: Arial, sans-serif;
}

.wlsm-school-contacts {
	font-size: 12.5px;
	color: #ffffff;
	opacity: 0.95;
	font-family: Arial, sans-serif;
}

.wlsm-contact-item {
	display: inline-block;
}

.wlsm-contact-sep {
	margin: 0 6px;
	opacity: 0.8;
}

/* --- Admit Card Title Badge --- */
.wlsm-admit-card-title-wrap {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 4px;
	margin-bottom: 6px;
	z-index: 6;
}

.wlsm-admit-card-title-badge {
	background: linear-gradient(135deg, #041e60 0%, #06317d 100%);
	color: #ffffff;
	border: 2px solid #ffd700;
	border-radius: 20px;
	padding: 4px 26px;
	text-align: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
	box-sizing: border-box;
}

.wlsm-admit-card-title-text {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15.5px;
	font-weight: 800;
	color: #ffffff;
	letter-spacing: 0.8px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	line-height: 1.2;
	white-space: nowrap;
}

/* --- 3D Crimson Red Ribbon --- */
.wlsm-ribbon-wrapper {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 2px;
	margin-bottom: 12px;
	z-index: 5;
}

.wlsm-ribbon-main {
	position: relative;
	background: linear-gradient(180deg, #d81026 0%, #aa0014 55%, #7a000a 100%);
	border-top: 2px solid #ffd700;
	border-bottom: 2px solid #ffd700;
	padding: 5px 36px;
	min-width: 360px;
	max-width: 520px;
	text-align: center;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.28);
	border-radius: 3px;
	box-sizing: border-box;
}

.wlsm-ribbon-text {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 18px;
	font-weight: 800;
	color: #fffb91;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
	letter-spacing: 0.5px;
	white-space: nowrap;
	text-transform: capitalize;
}

.wlsm-ribbon-tail-left {
	position: absolute;
	left: -20px;
	top: 4px;
	width: 25px;
	height: 34px;
	background: linear-gradient(180deg, #b80c1f 0%, #80000e 100%);
	border-top: 2px solid #ffd700;
	border-bottom: 2px solid #ffd700;
	clip-path: polygon(100% 0, 0 0, 10px 50%, 0 100%, 100% 100%);
	-webkit-clip-path: polygon(100% 0, 0 0, 10px 50%, 0 100%, 100% 100%);
	z-index: -1;
}

.wlsm-ribbon-fold-left {
	position: absolute;
	left: 0;
	bottom: -7px;
	width: 0;
	height: 0;
	border-top: 7px solid #4a0007;
	border-left: 7px solid transparent;
}

.wlsm-ribbon-tail-right {
	position: absolute;
	right: -20px;
	top: 4px;
	width: 25px;
	height: 34px;
	background: linear-gradient(180deg, #b80c1f 0%, #80000e 100%);
	border-top: 2px solid #ffd700;
	border-bottom: 2px solid #ffd700;
	clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
	-webkit-clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 50%, 100% 100%, 0 100%);
	z-index: -1;
}

.wlsm-ribbon-fold-right {
	position: absolute;
	right: 0;
	bottom: -7px;
	width: 0;
	height: 0;
	border-top: 7px solid #4a0007;
	border-right: 7px solid transparent;
}

/* --- Student Details Section --- */
.wlsm-card-details-row {
	display: flex;
	align-items: stretch;
	padding: 10px 24px 6px 24px;
	position: relative;
	z-index: 2;
	box-sizing: border-box;
}

.wlsm-card-col-left {
	flex: 0 0 46%;
	max-width: 46%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.wlsm-card-col-divider {
	width: 2px;
	background-color: #041e60;
	margin: 2px 16px 2px 14px;
	flex-shrink: 0;
}

.wlsm-card-col-middle {
	flex: 0 0 32%;
	max-width: 32%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	gap: 12px;
	padding-top: 2px;
}

.wlsm-card-col-right {
	flex: 0 0 calc(22% - 30px);
	max-width: calc(22% - 30px);
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.wlsm-detail-item {
	display: flex;
	align-items: flex-end;
	margin-bottom: 11px;
	line-height: 1.2;
}

.wlsm-detail-label {
	font-family: 'Times New Roman', Times, Georgia, serif;
	font-size: 15px;
	font-weight: 700;
	color: #041e60;
	white-space: nowrap;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-shrink: 0;
}

.wlsm-card-col-left .wlsm-detail-label {
	width: 150px;
}

.wlsm-card-col-middle .wlsm-detail-label {
	width: 75px;
}

.wlsm-colon {
	margin-left: auto;
	padding-right: 6px;
}

.wlsm-detail-value-line {
	flex: 1;
	border-bottom: 1.5px solid #041e60;
	min-height: 20px;
	display: flex;
	align-items: flex-end;
	padding-left: 6px;
	padding-right: 4px;
}

.wlsm-detail-value {
	font-family: 'Times New Roman', Times, Georgia, serif, sans-serif;
	font-size: 14.5px;
	font-weight: 700;
	color: #041e60;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-bottom: 1px;
}

/* --- Photo Frame --- */
.wlsm-card-photo-box {
	width: 108px;
	height: 132px;
	border: 2.5px solid #0056b3;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.wlsm-card-photo-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wlsm-card-photo-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #888;
	font-size: 11px;
	font-weight: 600;
}

/* --- Signatures Row --- */
.wlsm-card-signatures-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding: 8px 45px 10px 45px;
	position: relative;
	z-index: 2;
}

.wlsm-sign-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 165px;
}

.wlsm-sign-space {
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 4px;
}

.wlsm-principal-sig-img,
.wlsm-teacher-sig-img {
	max-height: 38px;
	max-width: 135px;
	object-fit: contain;
	display: block;
}

.wlsm-sign-pill {
	background-color: #041e60 !important;
	color: #ffffff !important;
	border-radius: 20px;
	padding: 4px 24px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-align: center;
	white-space: nowrap;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	display: inline-block;
}

/* --- Bottom Waves --- */
.wlsm-card-bottom-wave {
	position: relative;
	height: 48px;
	width: 100%;
	overflow: hidden;
	margin-top: 2px;
}

.wlsm-card-bottom-wave svg {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
}

/* --- Below Card: Timetable Details --- */
.wlsm-timetable-below-wrap {
	max-width: 820px;
	margin: 22px auto 10px auto;
	box-sizing: border-box;
}

.wlsm-timetable-card-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(135deg, #06317d 0%, #0843a8 100%);
	color: #fff;
	padding: 9px 18px;
	border-radius: 8px 8px 0 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wlsm-timetable-badge {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.wlsm-timetable-dates {
	font-size: 13px;
	opacity: 0.95;
	font-weight: 500;
}

.wlsm-view-exam-time-table {
	width: 100% !important;
	border-collapse: collapse !important;
	margin-bottom: 0 !important;
	background: #fff;
	border: 1px solid #c2d1e8 !important;
	border-radius: 0 0 8px 8px;
}

.wlsm-view-exam-time-table th {
	background-color: #f0f4fa !important;
	color: #041e60 !important;
	font-weight: 700 !important;
	font-size: 13.5px !important;
	border: 1px solid #c2d1e8 !important;
	padding: 8px 12px !important;
	text-align: left;
}

.wlsm-view-exam-time-table td {
	color: #222 !important;
	font-size: 13px !important;
	border: 1px solid #dce4f0 !important;
	padding: 7px 12px !important;
	vertical-align: middle !important;
}

.wlsm-view-exam-time-table tbody tr:nth-child(even) td {
	background-color: #fbfcfe !important;
}

.wlsm-view-exam-time-table tfoot th,
.wlsm-view-exam-time-table tfoot td {
	background-color: #eaf1fa !important;
	font-weight: 600;
	color: #041e60 !important;
	border-top: 2px solid #0843a8 !important;
}

.page-break {
	page-break-after: always;
	break-after: page;
}

@media screen {
	.page-break {
		margin: 35px auto;
		border-bottom: 2px dashed #b8c7db;
		width: 100%;
		max-width: 820px;
	}
}

/* ============================================================
   Print Media Styles
   ============================================================ */
@media print {
	body {
		font-size: 12pt;
		margin: 0;
		padding: 0;
		color: #000;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
		color-adjust: exact !important;
	}

	.wlsm-font-bold {
		font-weight: 600;
	}

	.text-secondary {
		color: #6c757d !important;
	}

	.text-dark {
		color: #343a40 !important;
	}

	.text-nowrap {
		white-space: nowrap !important;
	}

	.table-responsive {
		display: table;
		overflow: unset;
		width: 100%;
	}

	.wlsm-container {
		padding: 0 !important;
		margin: 0 !important;
		width: 100% !important;
	}

	.wlsm-admit-card-wrapper {
		padding: 0 !important;
		margin: 0 !important;
		width: 100% !important;
	}

	.wlsm-admit-card-reference-box {
		max-width: 100% !important;
		width: 100% !important;
		border: 3px solid #063a86 !important;
		border-radius: 18px !important;
		box-shadow: none !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	.wlsm-timetable-below-wrap {
		max-width: 100% !important;
		width: 100% !important;
		margin-top: 14pt !important;
	}

	.wlsm-timetable-card-head {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	.wlsm-view-exam-time-table {
		width: 100% !important;
		border-collapse: collapse !important;
	}

	.wlsm-view-exam-time-table th,
	.wlsm-view-exam-time-table td {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
		font-size: 11pt !important;
		padding: 5pt 7pt !important;
		border-color: #888 !important;
	}

	.wlsm-sign-pill,
	.wlsm-admit-card-title-badge {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	.wlsm-ribbon-main,
	.wlsm-ribbon-tail-left,
	.wlsm-ribbon-tail-right {
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

	@page {
		size: A4 portrait;
		margin: 8mm 6mm;
	}

	div.page-break,
	.page-break {
		page-break-after: always !important;
		break-after: page !important;
		height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		border: none !important;
	}
}
