/* NBU Marksheet & Admit Card Designer — document styles */

/* ------------------------------------------------------------------ */
/* Request form & notices (self-service pages)                         */
/* ------------------------------------------------------------------ */

.numdd-form {
	max-width: 520px;
	margin: 1em 0 2em;
}
.numdd-form p { margin: 0 0 1em; }
.numdd-form label { font-weight: 600; display: block; }
.numdd-form input,
.numdd-form select {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	margin-top: 4px;
	font-weight: 400;
}
.numdd-btn {
	display: inline-block;
	background: #16305c;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 10px 22px;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
}
.numdd-btn:hover,
.numdd-btn:focus { background: #274f7a; color: #fff; }
.numdd-notice {
	border-left: 4px solid #8a1f11;
	background: #fcf0f1;
	border-radius: 3px;
	padding: 12px 16px;
	margin: 1em 0;
}

/* ------------------------------------------------------------------ */
/* Shared document chrome (marksheet + admit card)                     */
/* ------------------------------------------------------------------ */

.numdd-marksheet,
.numdd-admit {
	position: relative;
	max-width: 840px;
	margin: 0 auto;
	padding: 28px 34px;
	color: #1d2327;
	overflow: hidden;
	box-sizing: border-box;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.numdd-watermark {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 64px;
	font-weight: 800;
	letter-spacing: 6px;
	color: rgba(0, 0, 0, 0.045);
	transform: rotate(-24deg);
	pointer-events: none;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
}

.numdd-doc-head {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	border-bottom: 2px solid var(--numdd-accent, #16305c);
	padding-bottom: 12px;
	margin-bottom: 14px;
}
.numdd-doc-logo {
	max-height: 84px;
	max-width: 90px;
	flex: 0 0 auto;
}
.numdd-doc-head-text {
	flex: 1 1 auto;
	text-align: center;
}
.numdd-doc-head-text h2 {
	margin: 0;
	font-size: 24px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--numdd-accent, #16305c);
}
.numdd-inst2 { margin: 2px 0 0; font-weight: 600; }
.numdd-inst3 { margin: 1px 0 0; font-size: 13px; color: #50575e; }
.numdd-doc-title {
	margin: 6px 0 2px;
	font-size: 16px;
	letter-spacing: 4px;
	color: var(--numdd-accent, #16305c);
	text-transform: uppercase;
}
.numdd-exam-title { margin: 0; font-weight: 600; }

.numdd-photo-box {
	flex: 0 0 auto;
	border: 1.5px dashed #6c7781;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 11px;
	color: #6c7781;
	padding: 6px;
	box-sizing: border-box;
}

/* Meta grids */
.numdd-meta {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 14px;
}
.numdd-meta th,
.numdd-meta td {
	border: 1px solid #c9d4dd;
	padding: 7px 10px;
	text-align: left;
	font-size: 14px;
}
.numdd-meta th {
	background: rgba(0, 0, 0, 0.035);
	width: 17%;
	white-space: nowrap;
}

/* Papers / schedule table */
.numdd-subhead {
	margin: 12px 0 4px;
	color: var(--numdd-accent, #16305c);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 14px;
}
.numdd-papers {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 12px;
}
.numdd-papers th,
.numdd-papers td {
	border: 1px solid #c9d4dd;
	padding: 7px 10px;
	text-align: center;
	font-size: 14px;
	vertical-align: top;
}
.numdd-papers thead th {
	background: var(--numdd-accent, #16305c);
	color: #fff;
}
.numdd-papers td.numdd-paper-name,
.numdd-papers td:first-child { text-align: left; }
.numdd-total-row td {
	font-weight: 700;
	background: rgba(0, 0, 0, 0.04);
}

/* Summary strip (marksheet) */
.numdd-summary {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 18px;
}
.numdd-summary th,
.numdd-summary td {
	border: 1px solid #c9d4dd;
	padding: 8px 10px;
	font-size: 14px;
	text-align: center;
}
.numdd-summary th { background: rgba(0, 0, 0, 0.035); }
.numdd-pass { color: #007017; letter-spacing: 1px; }
.numdd-fail { color: #8a1f11; letter-spacing: 1px; }

/* Signatures */
.numdd-sign-row {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	margin: 34px 0 8px;
}
.numdd-admit-foot {
	display: flex;
	gap: 26px;
	align-items: flex-end;
	margin-top: 16px;
}
.numdd-instructions { flex: 1 1 auto; font-size: 12.5px; }
.numdd-instructions h4 {
	margin: 0 0 4px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--numdd-accent, #16305c);
}
.numdd-instructions ol { margin: 0; padding-left: 18px; }
.numdd-instructions li { margin-bottom: 3px; }
.numdd-sign-col {
	flex: 0 0 230px;
	display: flex;
	flex-direction: column;
	gap: 26px;
}
.numdd-sign-block {
	flex: 0 0 220px;
	text-align: center;
	font-size: 12px;
}
.numdd-sign-line {
	border-bottom: 1px solid #1d2327;
	height: 34px;
	margin-bottom: 4px;
}
.numdd-sign-img {
	max-height: 44px;
	display: block;
	margin: 0 auto 2px;
}

/* Footer strip */
.numdd-doc-footer {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #50575e;
	border-top: 1px solid #c9d4dd;
	padding-top: 6px;
	margin-top: 8px;
}
.numdd-footnote {
	margin: 8px 0 0;
	font-size: 10.5px;
	color: #787c82;
	font-style: italic;
}

/* Admin preview scaling */
.numdd-preview-scale {
	transform: scale(0.78);
	transform-origin: top left;
	width: 128%;
}

/* ------------------------------------------------------------------ */
/* Print                                                               */
/* ------------------------------------------------------------------ */

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

@media print {
	.numdd-no-print,
	header, footer, nav, aside, #wpadminbar { display: none !important; }
	body { background: #fff !important; }
	.numdd-marksheet,
	.numdd-admit {
		box-shadow: none;
		max-width: 100%;
		page-break-inside: avoid;
	}
	.numdd-papers thead th {
		background: var(--numdd-accent, #16305c) !important;
		color: #fff !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}
}

@media (max-width: 680px) {
	.numdd-doc-head { flex-wrap: wrap; justify-content: center; }
	.numdd-admit-foot { flex-direction: column; align-items: stretch; }
	.numdd-sign-col { flex-direction: row; justify-content: space-between; flex: 1 1 auto; }
	.numdd-sign-row { flex-wrap: wrap; }
}
