/**
 * NIOSHE Core — Portal Design System & Layout Styles
 * Version: 1.0.0
 * Architecture: Clean Vanilla CSS, WCAG 2.2 AA compliant, zero framework bloat.
 */

:root {
	--nioshe-primary: #0f2b48;
	--nioshe-primary-hover: #173d63;
	--nioshe-accent: #1d68a7;
	--nioshe-accent-hover: #155184;
	--nioshe-gold: #d97706;
	--nioshe-gold-light: #fef3c7;
	
	--nioshe-bg: #f1f5f9;
	--nioshe-card-bg: #ffffff;
	--nioshe-sidebar-bg: #0b2036;
	--nioshe-sidebar-text: #94a3b8;
	--nioshe-sidebar-active: #ffffff;
	--nioshe-sidebar-active-bg: rgba(255, 255, 255, 0.08);
	
	--nioshe-text-main: #1e293b;
	--nioshe-text-muted: #64748b;
	--nioshe-border: #e2e8f0;
	--nioshe-border-focus: #1d68a7;
	
	--nioshe-success: #10b981;
	--nioshe-success-bg: #ecfdf5;
	--nioshe-success-border: #a7f3d0;
	
	--nioshe-warning: #f59e0b;
	--nioshe-warning-bg: #fffbeb;
	--nioshe-warning-border: #fde68a;
	
	--nioshe-danger: #ef4444;
	--nioshe-danger-bg: #fef2f2;
	--nioshe-danger-border: #fecaca;

	--nioshe-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--nioshe-radius: 6px;
	--nioshe-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
	--nioshe-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

/* Base resets for portal pages */
*, *::before, *::after {
	box-sizing: border-box;
}

body.nioshe-portal-auth-body,
body.nioshe-portal-shell-body {
	margin: 0;
	padding: 0;
	font-family: var(--nioshe-font-family);
	background-color: var(--nioshe-bg);
	color: var(--nioshe-text-main);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Auth / Login Layout
   ========================================================================== */
.nioshe-auth-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	background: linear-gradient(135deg, #0b2036 0%, #0f2b48 50%, #173d63 100%);
}

.nioshe-auth-card {
	width: 100%;
	max-width: 440px;
	background: var(--nioshe-card-bg);
	border-radius: 8px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
	padding: 36px 32px;
}

.nioshe-auth-header {
	text-align: center;
	margin-bottom: 28px;
}

.nioshe-logo-badge {
	display: inline-block;
	background: var(--nioshe-primary);
	color: #ffffff;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 2px;
	padding: 6px 14px;
	border-radius: 4px;
	margin-bottom: 12px;
}

.nioshe-auth-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--nioshe-primary);
	margin: 0 0 6px 0;
}

.nioshe-auth-subtitle {
	font-size: 14px;
	color: var(--nioshe-text-muted);
	margin: 0;
}

.nioshe-auth-footer {
	margin-top: 32px;
	text-align: center;
	border-top: 1px solid var(--nioshe-border);
	padding-top: 20px;
	font-size: 12px;
	color: var(--nioshe-text-muted);
}

.nioshe-auth-footer p {
	margin: 4px 0;
}

/* ==========================================================================
   Forms & Controls
   ========================================================================== */
.nioshe-form-group {
	margin-bottom: 18px;
}

.nioshe-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--nioshe-text-main);
	margin-bottom: 6px;
}

.nioshe-label-split {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.nioshe-link-subtle {
	font-size: 12px;
	color: var(--nioshe-accent);
	text-decoration: none;
	font-weight: 500;
}

.nioshe-link-subtle:hover {
	text-decoration: underline;
}

.nioshe-input {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	border: 1px solid var(--nioshe-border);
	border-radius: var(--nioshe-radius);
	background-color: #ffffff;
	color: var(--nioshe-text-main);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nioshe-input:focus-visible {
	outline: none;
	border-color: var(--nioshe-border-focus);
	box-shadow: 0 0 0 3px rgba(29, 104, 167, 0.15);
}

.nioshe-input[readonly] {
	background-color: #f8fafc;
	color: #64748b;
}

.nioshe-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--nioshe-text-main);
	cursor: pointer;
}

.nioshe-help-text {
	display: block;
	font-size: 12px;
	color: var(--nioshe-text-muted);
	margin-top: 4px;
}

/* Buttons */
.nioshe-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	border-radius: var(--nioshe-radius);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nioshe-btn-primary {
	background-color: var(--nioshe-accent);
	color: #ffffff;
}

.nioshe-btn-primary:hover {
	background-color: var(--nioshe-accent-hover);
}

.nioshe-btn-block {
	width: 100%;
}

.nioshe-btn-sm {
	padding: 6px 12px;
	font-size: 12px;
}

.nioshe-btn-outline-danger {
	background: transparent;
	border-color: var(--nioshe-danger-border);
	color: var(--nioshe-danger);
}

.nioshe-btn-outline-danger:hover {
	background-color: var(--nioshe-danger-bg);
}

/* Alerts */
.nioshe-alert {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px;
	border-radius: var(--nioshe-radius);
	font-size: 13px;
	line-height: 1.4;
	margin-bottom: 18px;
}

.nioshe-alert-danger {
	background-color: var(--nioshe-danger-bg);
	border: 1px solid var(--nioshe-danger-border);
	color: #991b1b;
}

.nioshe-alert-success {
	background-color: var(--nioshe-success-bg);
	border: 1px solid var(--nioshe-success-border);
	color: #065f46;
}

.nioshe-alert-icon {
	font-weight: bold;
	font-size: 15px;
}

/* ==========================================================================
   Portal Shell Layout
   ========================================================================== */
.nioshe-app-layout {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* Topbar */
.nioshe-topbar {
	height: 60px;
	background-color: #ffffff;
	border-bottom: 1px solid var(--nioshe-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	position: sticky;
	top: 0;
	z-index: 100;
}

.nioshe-topbar-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.nioshe-sidebar-toggle {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 6px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nioshe-burger-bar {
	width: 20px;
	height: 2px;
	background-color: var(--nioshe-text-main);
	border-radius: 2px;
}

.nioshe-brand-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nioshe-brand-title {
	font-size: 18px;
	font-weight: 800;
	color: var(--nioshe-primary);
	letter-spacing: 1px;
}

.nioshe-portal-badge {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	padding: 2px 8px;
	background-color: var(--nioshe-bg);
	color: var(--nioshe-accent);
	border-radius: 4px;
	border: 1px solid var(--nioshe-border);
}

.nioshe-topbar-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.nioshe-user-pill {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nioshe-user-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background-color: var(--nioshe-primary);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
}

.nioshe-user-meta {
	display: flex;
	flex-direction: column;
}

.nioshe-user-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--nioshe-text-main);
	line-height: 1.2;
}

.nioshe-user-role {
	font-size: 11px;
	color: var(--nioshe-text-muted);
}

/* Body & Sidebar Wrapper */
.nioshe-body-wrapper {
	display: flex;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
}

.nioshe-sidebar {
	width: 240px;
	background-color: var(--nioshe-sidebar-bg);
	color: var(--nioshe-sidebar-text);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: transform 0.2s ease;
}

.nioshe-nav-menu {
	padding: 20px 12px;
}

.nioshe-nav-section-title {
	font-size: 11px;
	text-transform: uppercase;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: #64748b;
	padding: 0 10px 8px 10px;
}

.nioshe-nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nioshe-nav-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	color: var(--nioshe-sidebar-text);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	border-radius: var(--nioshe-radius);
	transition: color 0.15s ease, background-color 0.15s ease;
}

.nioshe-nav-link:hover {
	color: #ffffff;
	background-color: rgba(255, 255, 255, 0.05);
}

.nioshe-nav-item.is-active .nioshe-nav-link {
	color: var(--nioshe-sidebar-active);
	background-color: var(--nioshe-sidebar-active-bg);
	font-weight: 600;
}

.nioshe-nav-icon {
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.nioshe-sidebar-footer {
	padding: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
}

.nioshe-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--nioshe-success);
}

/* Main Content Area */
.nioshe-main-content {
	flex: 1 1 auto;
	width: calc(100% - 240px);
	min-width: 0;
	max-width: none;
	padding: 24px clamp(20px, 3vw, 44px) 48px;
	box-sizing: border-box;
}

.nioshe-breadcrumb-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--nioshe-text-muted);
	margin-bottom: 20px;
}

.nioshe-breadcrumb-separator {
	color: #cbd5e1;
}

.nioshe-breadcrumb-current {
	color: var(--nioshe-text-main);
	font-weight: 600;
}

.nioshe-content-header {
	margin-bottom: 24px;
}

.nioshe-page-heading {
	font-size: 24px;
	font-weight: 700;
	color: var(--nioshe-primary);
	margin: 0 0 4px 0;
}

.nioshe-page-subheading {
	font-size: 14px;
	color: var(--nioshe-text-muted);
	margin: 0;
}

/* Cards & Components */
.nioshe-card {
	background: var(--nioshe-card-bg);
	border: 1px solid var(--nioshe-border);
	border-radius: 8px;
	box-shadow: var(--nioshe-shadow);
	overflow: hidden;
}

.nioshe-card-header {
	padding: 16px 20px;
	border-bottom: 1px solid var(--nioshe-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: #fafbfd;
}

.nioshe-card-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--nioshe-primary);
	margin: 0;
}

.nioshe-card-body {
	padding: 20px;
}

.nioshe-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
}

.nioshe-meta-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nioshe-meta-label {
	font-size: 12px;
	color: var(--nioshe-text-muted);
	text-transform: uppercase;
	font-weight: 600;
	letter-spacing: 0.3px;
}

.nioshe-meta-value {
	font-size: 14px;
	font-weight: 600;
	color: var(--nioshe-text-main);
}

.nioshe-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.nioshe-badge-success {
	background-color: var(--nioshe-success-bg);
	color: #065f46;
	border: 1px solid var(--nioshe-success-border);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.nioshe-body-wrapper {
		position: relative;
	}

	.nioshe-sidebar {
		position: fixed;
		top: 60px;
		bottom: 0;
		left: 0;
		z-index: 99;
		transform: translateX(-100%);
	}

	.nioshe-sidebar.is-open {
		transform: translateX(0);
	}

	.nioshe-main-content {
		padding: 20px 16px;
	}

	.nioshe-user-meta {
		display: none;
	}
}

/* ========================================================================== 
   Product-wide Portal UI — shared across Agent, Center and Student workspaces
   ========================================================================== */
.nioshe-main-wrapper,
.nioshe-body-wrapper { display: flex; flex: 1 1 auto; width: 100%; min-width: 0; }
.nioshe-main-content {
	flex: 1 1 auto;
	width: calc(100% - 248px);
	max-width: none;
	min-width: 0;
	padding: 24px clamp(20px, 3vw, 44px) 48px;
	box-sizing: border-box;
}
.nioshe-table-responsive { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nioshe-table { width: 100%; border-collapse: collapse; }
.nioshe-nav { padding: 18px 12px; overflow-y: auto; }
.nioshe-sidebar { flex: 0 0 248px; width: 248px; min-height: calc(100vh - 60px); position: sticky; top: 60px; height: calc(100vh - 60px); }
.nioshe-nav-list { gap: 5px; }
.nioshe-nav-link { min-height: 42px; padding: 10px 12px; border-radius: 8px; }
.nioshe-nav-item.is-active .nioshe-nav-link { box-shadow: inset 3px 0 var(--nioshe-accent); }
.nioshe-nav-badge { margin-left: auto; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; text-align: center; font-size: 10px; }
.nioshe-btn-logout { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 11px; border: 1px solid var(--nioshe-border); border-radius: 7px; color: var(--nioshe-text-main); text-decoration: none; font-size: 13px; font-weight: 600; }
.nioshe-btn-logout:hover { border-color: var(--nioshe-danger-border); background: var(--nioshe-danger-bg); color: #991b1b; }
.nioshe-breadcrumb-bar { margin-bottom: 16px; padding: 7px 0; }
.nioshe-content-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.nioshe-content-header > div:first-child { min-width: 0; }
.nioshe-page-heading { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; letter-spacing: -.02em; }
.nioshe-page-subheading { max-width: 780px; margin-top: 5px; line-height: 1.55; }

.nioshe-card { border-radius: 10px; box-shadow: 0 1px 2px rgba(15,43,72,.03), 0 8px 22px rgba(15,43,72,.045); }
.nioshe-card + .nioshe-card { margin-top: 20px; }
.nioshe-card-header { min-height: 56px; padding: 15px 20px; gap: 12px; }
.nioshe-card-title { font-size: 16px; }
.nioshe-card-body { padding: 22px; }
.nioshe-meta-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.nioshe-meta-item { min-width: 0; padding: 12px 14px; border-radius: 7px; background: #f8fafc; }
.nioshe-meta-value { overflow-wrap: anywhere; }
.nioshe-badge-info { border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.nioshe-badge-warning { border: 1px solid var(--nioshe-warning-border); background: var(--nioshe-warning-bg); color: #92400e; }
.nioshe-badge-danger { border: 1px solid var(--nioshe-danger-border); background: var(--nioshe-danger-bg); color: #991b1b; }

.nioshe-main-content form:not([style*="display:inline"]):not([style*="display: inline"]) input[type="text"],
.nioshe-main-content form:not([style*="display:inline"]):not([style*="display: inline"]) input[type="email"],
.nioshe-main-content form:not([style*="display:inline"]):not([style*="display: inline"]) input[type="password"],
.nioshe-main-content form:not([style*="display:inline"]):not([style*="display: inline"]) input[type="search"],
.nioshe-main-content form:not([style*="display:inline"]):not([style*="display: inline"]) input[type="number"],
.nioshe-main-content form:not([style*="display:inline"]):not([style*="display: inline"]) input[type="date"],
.nioshe-main-content form:not([style*="display:inline"]):not([style*="display: inline"]) input[type="tel"],
.nioshe-main-content form:not([style*="display:inline"]):not([style*="display: inline"]) input[type="file"],
.nioshe-main-content form:not([style*="display:inline"]):not([style*="display: inline"]) select,
.nioshe-main-content form:not([style*="display:inline"]):not([style*="display: inline"]) textarea {
	box-sizing: border-box;
	min-height: 42px;
	max-width: 100%;
	padding: 9px 11px;
	border: 1px solid #cbd5e1;
	border-radius: 7px;
	background: #fff;
	color: var(--nioshe-text-main);
	font: inherit;
}
.nioshe-main-content textarea { min-height: 104px; resize: vertical; }
.nioshe-main-content input:focus,
.nioshe-main-content select:focus,
.nioshe-main-content textarea:focus { outline: 0; border-color: var(--nioshe-accent); box-shadow: 0 0 0 3px rgba(29,104,167,.13); }
.nioshe-main-content label { line-height: 1.4; }
.nioshe-main-content small { color: var(--nioshe-text-muted); line-height: 1.45; }
.nioshe-main-content .button,
.nioshe-main-content button.button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 14px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #334155; font-weight: 650; text-decoration: none; cursor: pointer; }
.nioshe-main-content .button:hover { border-color: var(--nioshe-accent); color: var(--nioshe-accent); }
.nioshe-main-content .button-primary { border-color: var(--nioshe-accent); background: var(--nioshe-accent); color: #fff; }
.nioshe-main-content .button-primary:hover { background: var(--nioshe-accent-hover); color: #fff; }
.nioshe-btn { min-height: 40px; border-radius: 7px; }

.nioshe-table-responsive,
.nioshe-card-body:has(> table),
.nioshe-certificates-wrap,
.nioshe-results-wrap,
.nioshe-reports-wrap { max-width: 100%; overflow-x: auto; }
.nioshe-table,
.nioshe-main-content .wp-list-table,
.nioshe-main-content table.widefat,
.nioshe-certificates-wrap table,
.nioshe-results-wrap table,
.nioshe-reports-wrap table { width: 100%; border: 1px solid var(--nioshe-border) !important; border-collapse: separate !important; border-spacing: 0; border-radius: 9px; background: #fff; overflow: hidden; }
.nioshe-table th,
.nioshe-main-content .wp-list-table th,
.nioshe-main-content table.widefat th,
.nioshe-certificates-wrap th,
.nioshe-results-wrap th,
.nioshe-reports-wrap th { padding: 12px 14px !important; border-bottom: 1px solid var(--nioshe-border); background: #f8fafc; color: #475569; font-size: 11px; font-weight: 750; letter-spacing: .025em; text-align: left; text-transform: uppercase; }
.nioshe-table td,
.nioshe-main-content .wp-list-table td,
.nioshe-main-content table.widefat td,
.nioshe-certificates-wrap td,
.nioshe-results-wrap td,
.nioshe-reports-wrap td { padding: 13px 14px !important; border-bottom: 1px solid #edf2f7; vertical-align: middle; }
.nioshe-table tbody tr:last-child td,
.nioshe-main-content table tbody tr:last-child td { border-bottom: 0; }
.nioshe-table tbody tr:hover,
.nioshe-main-content table tbody tr:hover { background: #f8fbfe; }

.nioshe-notices-wrap,
.nioshe-certificates-wrap,
.nioshe-results-wrap,
.nioshe-reports-wrap { padding: 22px; border: 1px solid var(--nioshe-border); border-radius: 10px; background: #fff; box-shadow: var(--nioshe-shadow); }
.nioshe-student-form { display: grid; gap: 20px; }
.nioshe-student-section { overflow: hidden; border: 1px solid var(--nioshe-border); border-radius: 10px; background: #fff; box-shadow: var(--nioshe-shadow); }
.nioshe-student-section__head { padding: 16px 20px; border-bottom: 1px solid var(--nioshe-border); background: #f8fafc; }
.nioshe-student-section__head h2 { margin: 0; color: var(--nioshe-primary); font-size: 16px; }
.nioshe-student-section__body { padding: 20px; }
.nioshe-student-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.nioshe-student-field { display: flex; flex-direction: column; gap: 6px; }
.nioshe-student-field--wide { grid-column: 1 / -1; }
.nioshe-student-field label { color: #334155; font-size: 13px; font-weight: 650; }
.nioshe-photo-layout { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; }
.nioshe-photo-preview { display: flex; width: 140px; height: 160px; align-items: center; justify-content: center; overflow: hidden; border: 1px dashed #94a3b8; border-radius: 9px; background: #f8fafc; color: #64748b; text-align: center; }
.nioshe-photo-preview img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.nioshe-student-actions { position: sticky; bottom: 10px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border: 1px solid var(--nioshe-border); border-radius: 10px; background: #fff; box-shadow: 0 -4px 16px rgba(15,23,42,.06); }
.nioshe-primary-action { padding: 10px 21px !important; font-weight: 700 !important; }
.nioshe-scope-note { padding: 13px 15px; border-radius: 7px; background: #eff6ff; color: #1e3a8a; font-size: 13px; }
.nioshe-admission-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nioshe-admission-summary div { padding: 12px; border-radius: 7px; background: #f8fafc; }
.nioshe-admission-summary span { display: block; color: #64748b; font-size: 11px; text-transform: uppercase; }
.nioshe-admission-summary strong { display: block; margin-top: 4px; color: #0f172a; }
.nioshe-main-content [style*="padding:28px"][style*="background:#f9fafb"],
.nioshe-main-content [style*="padding: 40px"][style*="text-align: center"],
.nioshe-main-content [style*="padding: 36px"][style*="text-align: center"] { border: 1px dashed #cbd5e1 !important; border-radius: 9px !important; background: #f8fafc !important; color: var(--nioshe-text-muted) !important; }

.nioshe-auth-container { padding: 32px 18px; }
.nioshe-auth-card { max-width: 460px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 40px 36px; }
.nioshe-logo-badge { border-radius: 7px; }
.nioshe-auth-title { font-size: 25px; letter-spacing: -.02em; }
.nioshe-auth-card .nioshe-input { min-height: 44px; }
.nioshe-auth-card .nioshe-btn { min-height: 44px; }

@media (max-width: 1024px) {
	.nioshe-main-content { padding: 24px 22px 40px; }
	.nioshe-sidebar { flex-basis: 224px; width: 224px; }
}

@media (max-width: 768px) {
	.nioshe-main-wrapper { display: block; }
	.nioshe-sidebar { position: fixed; top: 60px; bottom: 0; left: 0; width: min(286px, 86vw); height: calc(100vh - 60px); min-height: 0; transform: translateX(-105%); box-shadow: 12px 0 32px rgba(0,0,0,.2); }
	.nioshe-sidebar.is-open { transform: translateX(0); }
	.nioshe-main-content { width: 100%; padding: 20px 15px 34px; }
	.nioshe-topbar { padding: 0 14px; }
	.nioshe-brand-title { font-size: 16px; }
	.nioshe-portal-badge { display: none; }
	.nioshe-logout-text { display: none; }
	.nioshe-content-header { align-items: stretch; flex-direction: column; }
	.nioshe-content-header > a,
	.nioshe-content-header > button { width: 100%; }
	.nioshe-card-header { align-items: flex-start; flex-wrap: wrap; }
	.nioshe-card-body { padding: 17px; }
	.nioshe-meta-grid { grid-template-columns: 1fr; }
	.nioshe-main-content form[style*="display: flex"],
	.nioshe-main-content form[style*="display:flex"] { align-items: stretch !important; flex-direction: column; }
	.nioshe-main-content form[style*="display: flex"] > *,
	.nioshe-main-content form[style*="display:flex"] > * { width: 100% !important; min-width: 0 !important; }
	.nioshe-table,
	.nioshe-main-content table,
	.nioshe-certificates-wrap table,
	.nioshe-results-wrap table { min-width: 680px; }
	.nioshe-auth-card { padding: 30px 22px; }
	.nioshe-student-grid,
	.nioshe-photo-layout,
	.nioshe-admission-summary { grid-template-columns: 1fr; }
	.nioshe-photo-preview { margin: auto; }
	.nioshe-student-actions { position: static; align-items: stretch; flex-direction: column; }
	.nioshe-student-actions > div { display: grid; gap: 8px; }
	.nioshe-student-actions .button { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
	.nioshe-topbar-right { gap: 8px; }
	.nioshe-user-avatar { width: 31px; height: 31px; }
	.nioshe-page-heading { font-size: 22px; }
	.nioshe-breadcrumb-bar { margin-bottom: 12px; }
	.nioshe-notices-wrap,
	.nioshe-certificates-wrap,
	.nioshe-results-wrap,
	.nioshe-reports-wrap { padding: 16px; }
}

/* Role-specific portal dashboards */
.nioshe-role-hero,
.nioshe-student-hero { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:18px; padding:28px 30px; border-radius:14px; color:#fff; box-shadow:var(--nioshe-shadow-md); }
.nioshe-role-hero--agent { background:linear-gradient(125deg,#12375c,#1769aa); }
.nioshe-role-hero--center { background:linear-gradient(125deg,#164e3c,#25805f); }
.nioshe-student-hero { justify-content:flex-start; background:linear-gradient(125deg,#392f77,#6556c7); }
.nioshe-role-hero h1,.nioshe-student-hero h1 { margin:3px 0; color:#fff; font-size:clamp(24px,3vw,34px); }
.nioshe-role-hero p,.nioshe-student-hero p { margin:0; color:rgba(255,255,255,.8); }
.nioshe-role-kicker { color:rgba(255,255,255,.75); font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.nioshe-role-status { padding:6px 12px; border:1px solid rgba(255,255,255,.3); border-radius:999px; background:rgba(255,255,255,.12); font-weight:700; }
.nioshe-student-avatar { display:flex; flex:0 0 104px; width:104px; height:118px; align-items:center; justify-content:center; overflow:hidden; border:3px solid rgba(255,255,255,.6); border-radius:12px; background:rgba(255,255,255,.16); font-size:38px; font-weight:800; }
.nioshe-student-avatar img { width:100%; height:100%; object-fit:contain; background:#fff; }
.nioshe-student-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }.nioshe-student-tags span { padding:4px 9px; border-radius:999px; background:rgba(255,255,255,.13); font-size:12px; }
.nioshe-dashboard-actions { display:flex; gap:10px; margin:0 0 18px; }.nioshe-btn-secondary { border-color:var(--nioshe-border); background:#fff; color:var(--nioshe-primary); }
.nioshe-stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:14px; margin-bottom:20px; }
.nioshe-stat-card { display:flex; min-height:96px; align-items:center; gap:14px; padding:18px; border:1px solid var(--nioshe-border); border-radius:11px; background:#fff; color:var(--nioshe-text-main); text-decoration:none; box-shadow:var(--nioshe-shadow); }
.nioshe-stat-card > .dashicons { display:grid; width:42px; height:42px; place-items:center; border-radius:10px; background:#eef6fd; color:var(--nioshe-accent); font-size:21px; }.nioshe-stat-card div { display:flex; min-width:0; flex-direction:column; }.nioshe-stat-card strong { font-size:23px; line-height:1.2; }.nioshe-stat-card small { color:var(--nioshe-text-muted); }
.nioshe-stat-grid--student .nioshe-stat-card { border-top:3px solid #6556c7; }.nioshe-student-status-card { justify-content:space-between; }.nioshe-student-status-card strong { margin-top:5px; font-size:16px; }
.nioshe-dashboard-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }.nioshe-compact-list { display:grid; }.nioshe-compact-list a { display:flex; justify-content:space-between; gap:12px; padding:12px 3px; border-bottom:1px solid #edf2f7; color:var(--nioshe-text-main); text-decoration:none; }.nioshe-compact-list a:last-child { border-bottom:0; }.nioshe-compact-list span { color:var(--nioshe-text-muted); font-size:12px; }
.nioshe-empty-state { padding:28px 18px; border:1px dashed #cbd5e1; border-radius:9px; background:#f8fafc; color:var(--nioshe-text-muted); text-align:center; }
.nioshe-student-services { margin:24px 0; }.nioshe-student-services h2 { color:var(--nioshe-primary); font-size:18px; }.nioshe-student-services > div { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }.nioshe-student-services a { display:flex; min-height:116px; flex-direction:column; justify-content:center; gap:7px; padding:16px; border:1px solid var(--nioshe-border); border-radius:11px; background:#fff; color:var(--nioshe-primary); text-decoration:none; box-shadow:var(--nioshe-shadow); }.nioshe-student-services a .dashicons { color:#6556c7; font-size:24px; }.nioshe-student-services a small { margin-top:auto; }
.nioshe-latest-notice .nioshe-card-body { display:flex; justify-content:space-between; gap:16px; }.nioshe-agent-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:14px; }.nioshe-agent-grid article { display:flex; gap:13px; padding:16px; border:1px solid var(--nioshe-border); border-radius:10px; }.nioshe-agent-grid p { margin:3px 0; color:var(--nioshe-text-muted); }.nioshe-profile-identity { display:flex; align-items:center; gap:13px; }.nioshe-profile-identity img { width:64px; height:76px; border-radius:8px; object-fit:contain; background:#fff; }
.nioshe-role-student .nioshe-sidebar { background:#29245d; }.nioshe-role-agent .nioshe-sidebar { background:#0b2946; }.nioshe-role-center .nioshe-sidebar { background:#113d31; }
@media (max-width:900px){.nioshe-student-services > div{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:768px){.nioshe-role-hero,.nioshe-student-hero{align-items:flex-start; flex-direction:column; padding:22px}.nioshe-dashboard-columns{grid-template-columns:1fr}.nioshe-dashboard-actions{display:grid}.nioshe-dashboard-actions a{width:100%}.nioshe-latest-notice .nioshe-card-body{flex-direction:column}}
@media (max-width:480px){.nioshe-student-services > div{grid-template-columns:1fr}.nioshe-stat-grid{grid-template-columns:1fr}.nioshe-student-avatar{width:88px;height:100px;flex-basis:88px}}

/* ==========================================================================
   Mobile Sidebar Backdrop & Navigation Locking
   ========================================================================== */
.nioshe-sidebar-backdrop {
	display: none;
	position: fixed;
	top: 60px;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(11, 32, 54, 0.65);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	z-index: 98;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

@media (max-width: 768px) {
	.nioshe-sidebar-backdrop {
		display: block;
	}
	.nioshe-sidebar-backdrop.is-open {
		opacity: 1;
		pointer-events: auto;
	}
	body.nioshe-nav-locked {
		overflow: hidden;
	}
}

/* ==========================================================================
   Action & Submit Feedback
   ========================================================================== */
.nioshe-btn-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 6px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: nioshe-spin 0.7s linear infinite;
	vertical-align: middle;
}

@keyframes nioshe-spin {
	to { transform: rotate(360deg); }
}

button.is-loading,
input[type="submit"].is-loading {
	opacity: 0.85;
	cursor: wait !important;
}

/* ==========================================================================
   Mobile Card-Style Table Layout (<=768px)
   ========================================================================== */
@media (max-width: 768px) {
	.nioshe-table.nioshe-table-cards-mobile,
	table.nioshe-table-cards-mobile,
	.nioshe-main-content table.nioshe-table-cards-mobile,
	.nioshe-certificates-wrap table.nioshe-table-cards-mobile,
	.nioshe-results-wrap table.nioshe-table-cards-mobile {
		min-width: 0 !important;
		width: 100% !important;
		border: none !important;
		background: transparent !important;
	}

	.nioshe-table-cards-mobile thead {
		display: none !important;
	}

	.nioshe-table-cards-mobile,
	.nioshe-table-cards-mobile tbody,
	.nioshe-table-cards-mobile tr,
	.nioshe-table-cards-mobile td {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
		min-width: 0 !important;
	}

	.nioshe-table-cards-mobile tr {
		margin: 12px 0 !important;
		border: 1px solid var(--nioshe-border) !important;
		border-radius: 9px !important;
		background: #ffffff !important;
		padding: 14px 16px !important;
		box-shadow: 0 1px 3px rgba(15, 43, 72, 0.05) !important;
	}

	.nioshe-table-cards-mobile tr:first-child {
		margin-top: 4px !important;
	}

	.nioshe-table-cards-mobile td {
		display: flex !important;
		justify-content: space-between !important;
		align-items: center !important;
		flex-wrap: wrap !important;
		gap: 8px !important;
		padding: 9px 0 !important;
		border-bottom: 1px solid #f1f5f9 !important;
		text-align: right !important;
		font-size: 13px !important;
	}

	.nioshe-table-cards-mobile td:last-child {
		border-bottom: 0 !important;
		padding-top: 12px !important;
		justify-content: flex-end !important;
	}

	.nioshe-table-cards-mobile td[data-label]::before {
		content: attr(data-label);
		font-weight: 700;
		color: #64748b;
		font-size: 11px;
		text-transform: uppercase;
		letter-spacing: 0.03em;
		text-align: left;
		margin-right: auto;
		flex-shrink: 0;
	}

	.nioshe-table-cards-mobile td[data-label="Actions"],
	.nioshe-table-cards-mobile td[data-label="Action"],
	.nioshe-table-cards-mobile td[data-label="Download"],
	.nioshe-table-cards-mobile td[data-label="Marksheet"] {
		border-top: 1px dashed #e2e8f0 !important;
		margin-top: 4px !important;
		padding-top: 12px !important;
	}

	.nioshe-table-cards-mobile td[data-label="Actions"] .button,
	.nioshe-table-cards-mobile td[data-label="Action"] .button,
	.nioshe-table-cards-mobile td[data-label="Download"] .button,
	.nioshe-table-cards-mobile td[data-label="Marksheet"] .button,
	.nioshe-table-cards-mobile td[data-label="Actions"] a,
	.nioshe-table-cards-mobile td[data-label="Action"] a,
	.nioshe-table-cards-mobile td[data-label="Download"] a,
	.nioshe-table-cards-mobile td[data-label="Marksheet"] a {
		display: inline-flex !important;
		align-items: center !important;
		justify-content: center !important;
		min-height: 38px !important;
		padding: 6px 14px !important;
	}
}

/* ==========================================================================
   Small Mobile (390px) & Touch Polish
   ========================================================================== */
@media (max-width: 480px) {
	.nioshe-topbar {
		height: 56px;
		padding: 0 12px;
	}
	.nioshe-brand-title {
		max-width: 170px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.nioshe-sidebar-toggle {
		min-width: 44px;
		min-height: 44px;
		align-items: center;
		justify-content: center;
	}
	.nioshe-btn-logout {
		min-width: 40px;
		min-height: 40px;
		justify-content: center;
		padding: 6px 8px;
	}
	.nioshe-main-content {
		padding: 16px 12px 28px;
	}
	.nioshe-card-header {
		padding: 14px 16px;
	}
	.nioshe-card-body {
		padding: 14px 16px;
	}
	.nioshe-admission-submit button {
		width: 100% !important;
	}
}

