/* ═══════════════════════════════════════════════════════
   GCILLP Franchise Panel — franchise.css
   Brand: gcillp.com colors
   Desktop sidebar: WHITE bg, gold active border (Aarogyom style)
   Mobile: Dark navy topbar + white body + gold bottom nav
═══════════════════════════════════════════════════════ */

:root {
	/* ── Brand colors from gcillp.com ── */
	--fr-primary:      #1A2A4A;   /* deep navy */
	--fr-primary-dk:   #0d1a2e;   /* topbar / loader bg */
	--fr-primary-2:    #243558;
	--fr-gold:         #F0A500;   /* gold */
	--fr-gold-light:   #F5C842;
	--fr-gold-pale:    #FEF8E7;   /* active bg tint */
	--fr-text:         #1e1e2e;
	--fr-muted:        #6B7280;
	--fr-border:       #f0f0f0;
	--fr-body-bg:      #F4F6FB;
	--fr-card-bg:      #ffffff;
	--fr-shadow:       0 2px 12px rgba(26,42,74,0.08);
	--fr-radius:       12px;
	--fr-transition:   0.25s ease;

	/* ── Layout dims ── */
	--fr-sidebar-w:    240px;
	--fr-header-h:     58px;
	--fr-bottom-h:     58px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
	font-family: 'Inter', sans-serif;
	background: var(--fr-body-bg);
	color: var(--fr-text);
	font-size: 0.875rem;
	overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════
   PAGE LOADER
═══════════════════════════════════════════════════════ */
#frLoader {
	position: fixed;
	inset: 0;
	background: var(--fr-primary);
	z-index: 99999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}
#frLoader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
#frLoader .loader-logo { width: 72px; }
#frLoader .loader-bar-wrap {
	width: 160px; height: 3px;
	background: rgba(255,255,255,0.15);
	border-radius: 3px; overflow: hidden;
}
#frLoader .loader-bar {
	height: 100%;
	background: linear-gradient(90deg, var(--fr-gold), var(--fr-gold-light));
	border-radius: 3px;
	animation: frLoadBar 1.1s ease-in-out forwards;
}
@keyframes frLoadBar { from { width: 0; } to { width: 100%; } }
#frLoader .loader-text {
	font-size: 0.68rem; letter-spacing: 0.14em;
	text-transform: uppercase; color: rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════════════════════
   DESKTOP SIDEBAR  — WHITE background, Aarogyom style
═══════════════════════════════════════════════════════ */
.fr-sidebar {
	position: fixed;
	top: 0; left: 0;
	width: var(--fr-sidebar-w);
	height: 100vh;
	background: #ffffff;
	border-right: 1px solid var(--fr-border);
	display: flex;
	flex-direction: column;
	z-index: 1040;
	box-shadow: 2px 0 16px rgba(26,42,74,0.06);
	overflow: hidden;
	transition: transform var(--fr-transition);
}

/* Brand area — matches desktop topbar exactly */
.fr-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 18px;
	height: var(--fr-header-h);   /* exact match with topbar height */
	background: var(--fr-primary-dk);
	border-bottom: 2px solid rgba(240,165,0,0.25);
	text-decoration: none;
	flex-shrink: 0;
}
.fr-brand-logo {
	width: 36px; height: 36px; min-width: 36px;
	background: rgba(255,255,255,0.12);
	border-radius: 8px;
	display: flex; align-items: center; justify-content: center;
	overflow: hidden;
}
.fr-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.fr-brand-text {
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.3px;
	white-space: nowrap;
}
.fr-brand-text span { color: var(--fr-gold); }

/* Nav scroll area */
.fr-nav {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 8px 0;
	scrollbar-width: thin;
	scrollbar-color: #e5e7eb transparent;
}
.fr-nav::-webkit-scrollbar { width: 3px; }
.fr-nav::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }

/* Section headings */
.fr-nav-heading {
	font-size: 0.63rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fr-muted);
	padding: 16px 18px 4px;
	white-space: nowrap;
}

/* Nav links — white bg by default */
.fr-nav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 18px;
	color: var(--fr-text);
	text-decoration: none;
	font-size: 0.83rem;
	font-weight: 500;
	border-left: 3px solid transparent;
	border-bottom: 1px solid var(--fr-border);
	transition: background var(--fr-transition), color var(--fr-transition), border-color var(--fr-transition);
	white-space: nowrap;
}
.fr-nav-link i {
	font-size: 1rem;
	min-width: 20px;
	text-align: center;
	color: var(--fr-gold);
}
.fr-nav-link:hover {
	background: var(--fr-gold-pale);
	color: var(--fr-gold);
	border-left-color: var(--fr-gold);
}
.fr-nav-link.active {
	background: var(--fr-gold-pale);
	color: var(--fr-gold);
	font-weight: 700;
	border-left-color: var(--fr-gold);
}
.fr-nav-link.active i { color: var(--fr-gold); }

/* Sidebar footer — franchise info */
.fr-sidebar-footer {
	padding: 12px 16px;
	border-top: 1px solid var(--fr-border);
	flex-shrink: 0;
	background: #fafafa;
}
.fr-sidebar-user {
	display: flex; align-items: center; gap: 10px;
	min-width: 0;
}
.fr-sidebar-user .avatar {
	width: 34px; height: 34px; min-width: 34px;
	background: var(--fr-primary);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-size: 0.82rem; font-weight: 700;
	flex-shrink: 0;
}
.fr-sidebar-user .user-info {
	min-width: 0; flex: 1; overflow: hidden;
}
.fr-sidebar-user .user-name {
	color: var(--fr-text);
	font-size: 0.78rem; font-weight: 600;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	display: block;
}
.fr-sidebar-user .user-code {
	color: var(--fr-muted);
	font-size: 0.68rem;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	display: block;
}

/* ═══════════════════════════════════════════════════════
   DESKTOP TOPBAR
═══════════════════════════════════════════════════════ */
.fr-header {
	position: fixed;
	top: 0;
	left: var(--fr-sidebar-w);
	right: 0;
	height: var(--fr-header-h);
	background: var(--fr-primary-dk);
	border-bottom: 2px solid rgba(240,165,0,0.25);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px 0 20px;
	z-index: 1030;
	box-shadow: 0 2px 12px rgba(13,26,46,0.2);
	min-width: 0;
}
.fr-header-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.fr-header-title {
	color: #ffffff !important;
	font-weight: 600;
	font-size: 0.9rem;
}
.fr-header-right {
	display: flex; align-items: center; gap: 10px;
	flex-shrink: 0; overflow: visible;
}
.fr-header-code {
	font-size: 0.72rem;
	color: var(--fr-gold) !important;
	font-family: 'Courier New', monospace;
	font-weight: 700;
	white-space: nowrap;
	flex-shrink: 0;
}
.fr-header-name {
	font-size: 0.8rem;
	color: #ffffff !important;
	font-weight: 600;
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex-shrink: 1;
}
.fr-header-divider {
	color: rgba(255,255,255,0.5) !important;
	flex-shrink: 0;
}
.fr-logout-btn {
	display: flex; align-items: center; gap: 5px;
	padding: 6px 14px;
	background: rgba(240,165,0,0.15);
	border: 1.5px solid rgba(240,165,0,0.45);
	border-radius: 6px;
	font-size: 0.75rem; color: #F5C842;
	font-weight: 600;
	text-decoration: none; cursor: pointer; flex-shrink: 0;
	white-space: nowrap;
	transition: background var(--fr-transition), color var(--fr-transition), border-color var(--fr-transition);
}
.fr-logout-btn:hover { background: rgba(220,38,38,0.2); color: #fca5a5; border-color: rgba(220,38,38,0.4); }

/* ═══════════════════════════════════════════════════════
   MAIN CONTENT (desktop)
═══════════════════════════════════════════════════════ */
.fr-main {
	margin-left: var(--fr-sidebar-w);
	margin-top: var(--fr-header-h);
	padding: 20px;
	min-height: calc(100vh - var(--fr-header-h));
}

/* ═══════════════════════════════════════════════════════
   CARDS & STAT CARDS
═══════════════════════════════════════════════════════ */
.fr-card {
	background: var(--fr-card-bg);
	border-radius: var(--fr-radius);
	box-shadow: var(--fr-shadow);
	border: 1px solid var(--fr-border);
	padding: 20px;
}
.fr-stat-card {
	background: var(--fr-card-bg);
	border-radius: var(--fr-radius);
	box-shadow: var(--fr-shadow);
	border: 1px solid var(--fr-border);
	padding: 16px 18px;
	display: flex; align-items: center; gap: 14px;
}
.fr-stat-icon {
	width: 46px; height: 46px; border-radius: 12px;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.25rem; flex-shrink: 0;
}
.fr-stat-val { font-size: 1.5rem; font-weight: 700; color: var(--fr-text); line-height: 1.1; }
.fr-stat-label { font-size: 0.72rem; color: var(--fr-muted); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════
   PAGE TITLE
═══════════════════════════════════════════════════════ */
.fr-page-title {
	font-weight: 700; font-size: 0.95rem;
	text-transform: uppercase; color: var(--fr-text);
	letter-spacing: 0.3px;
}
.fr-page-title::after {
	content: ''; display: block; width: 28px; height: 3px;
	background: var(--fr-gold); border-radius: 2px; margin-top: 4px;
}
.fr-page-sub { font-size: 0.75rem; color: var(--fr-muted); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════
   TABLE
═══════════════════════════════════════════════════════ */
.fr-table { font-size: 0.82rem; width: 100%; }
.fr-table thead th {
	background: var(--fr-body-bg);
	color: var(--fr-muted);
	font-weight: 700; font-size: 0.7rem;
	text-transform: uppercase; letter-spacing: 0.06em;
	border-bottom: 2px solid var(--fr-border);
	white-space: nowrap; padding: 10px 12px;
}
.fr-table td {
	vertical-align: middle;
	border-color: var(--fr-border);
	padding: 9px 12px;
}
.fr-table tbody tr:hover { background: var(--fr-gold-pale); }

/* ═══════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════ */
.fr-label {
	display: block;
	font-size: 0.78rem; font-weight: 600;
	color: var(--fr-text); margin-bottom: 5px;
}
.form-control, .form-select {
	background: var(--fr-body-bg);
	border: 1.5px solid #e5e7eb;
	color: var(--fr-text);
	border-radius: 8px; font-size: 0.82rem;
}
.form-control:focus, .form-select:focus {
	background: #fff;
	border-color: var(--fr-gold);
	box-shadow: 0 0 0 3px rgba(240,165,0,0.15);
	outline: none;
}
.form-control::placeholder { color: #b0b7c3; }
.input-group-text {
	background: var(--fr-body-bg);
	border: 1.5px solid #e5e7eb;
	color: var(--fr-muted);
}

/* ═══════════════════════════════════════════════════════
   MODAL — navy header with gold border
═══════════════════════════════════════════════════════ */
.modal-content {
	border: none;
	border-radius: var(--fr-radius);
	box-shadow: 0 20px 60px rgba(0,0,0,0.18);
	overflow: hidden;
}
.modal-header {
	background: var(--fr-primary);
	border-bottom: 2px solid rgba(240,165,0,0.3);
	padding: 10px 16px;
}
.modal-header .btn-close { filter: invert(1); opacity: 0.7; }
.modal-header .btn-close:hover { opacity: 1; }
.modal-title { color: #fff; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.5px; }
.modal-footer { border-top: 1px solid var(--fr-border); padding: 8px 16px; }

/* ═══════════════════════════════════════════════════════
   CODE BADGE
═══════════════════════════════════════════════════════ */
.fr-code {
	font-family: 'Courier New', monospace;
	font-size: 0.72rem; font-weight: 700;
	background: rgba(26,42,74,0.07);
	color: var(--fr-primary);
	border: 1px solid rgba(240,165,0,0.3);
	padding: 2px 7px; border-radius: 4px;
	letter-spacing: 0.5px;
}

/* Photo preview */
.photo-preview {
	width: 88px; height: 88px;
	border-radius: 10px;
	border: 2px solid var(--fr-border);
	background: var(--fr-body-bg);
	display: flex; align-items: center; justify-content: center;
	overflow: hidden; flex-shrink: 0;
}
.photo-placeholder { color: var(--fr-muted); font-size: 1.8rem; }

/* Datatable overrides */
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
	background: #fff; border: 1px solid #e5e7eb;
	border-radius: 6px; color: var(--fr-text); font-size: 0.8rem;
	padding: 4px 8px;
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label { font-size: 0.78rem; color: var(--fr-muted); }
.page-link { border-color: #e5e7eb; color: var(--fr-primary); font-size: 0.8rem; }
.page-item.active .page-link { background: var(--fr-gold); border-color: var(--fr-gold); color: #000; font-weight: 700; }

/* Bootstrap btn overrides */
.btn-primary { background: var(--fr-primary) !important; border-color: var(--fr-primary) !important; }
.btn-primary:hover { background: var(--fr-primary-2) !important; border-color: var(--fr-primary-2) !important; }
.btn-outline-primary { color: var(--fr-primary) !important; border-color: var(--fr-primary) !important; }
.btn-outline-primary:hover { background: var(--fr-primary) !important; color: #fff !important; }
.btn-gold { background: var(--fr-gold); border: none; color: #000; font-weight: 700; }
.btn-gold:hover { background: var(--fr-gold-light); color: #000; }

/* ═══════════════════════════════════════════════════════
   MOBILE — topbar + drawer + bottom nav
═══════════════════════════════════════════════════════ */

/* Mobile topbar — exact Aarogyom dark navy style */
.fr-mobile-header {
	display: none;
	position: fixed;
	top: 0; left: 0; right: 0;
	height: var(--fr-header-h);
	background: var(--fr-primary-dk);
	border-bottom: 2px solid rgba(240,165,0,0.25);
	z-index: 1040;
	align-items: center;
	justify-content: space-between;
	padding: 0 16px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.fr-mobile-header .mob-logo { height: 32px; object-fit: contain; }
.fr-mobile-header .mob-title {
	color: #fff; font-weight: 700; font-size: 0.9rem;
	flex: 1; text-align: center;
}
.fr-mobile-header .mob-btn {
	background: none; border: none; cursor: pointer;
	color: rgba(255,255,255,0.8); font-size: 1.3rem;
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 8px; flex-shrink: 0;
}
.fr-mobile-header .mob-btn:hover { background: rgba(255,255,255,0.1); }

/* Drawer overlay */
/* ═══ MOBILE MENU OVERLAY (Aarogyom grid style) ═══ */
.fr-menu-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: var(--fr-body-bg);
	z-index: 1060;
	overflow-y: auto;
	padding-bottom: calc(var(--fr-bottom-h) + 12px);
}
.fr-menu-overlay.open { display: block; }

/* User banner at top of menu */
.fr-menu-banner {
	background: linear-gradient(135deg, var(--fr-primary-dk) 0%, var(--fr-primary) 100%);
	padding: 20px 16px 24px;
	border-bottom: 2px solid rgba(240,165,0,0.25);
	margin-bottom: 16px;
}
.fr-menu-avatar {
	width: 52px; height: 52px;
	border-radius: 50%;
	background: var(--fr-gold);
	display: flex; align-items: center; justify-content: center;
	font-size: 1.3rem; font-weight: 700; color: #000;
	margin-bottom: 10px;
}
.fr-menu-banner .mn { color: #fff; font-size: 0.95rem; font-weight: 700; }
.fr-menu-banner .mc { color: var(--fr-gold); font-size: 0.75rem; font-weight: 600; margin-top: 2px; }

/* Close button inside mobile menu banner */
.fr-menu-close {
	position: absolute;
	top: 14px; right: 14px;
	background: rgba(255,255,255,0.12);
	border: 1.5px solid rgba(255,255,255,0.25);
	border-radius: 50%;
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.2s;
	line-height: 1;
}
.fr-menu-close:hover { background: rgba(255,255,255,0.25); }

/* Section heading */
.fr-menu-section {
	font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
	text-transform: uppercase; color: var(--fr-muted);
	padding: 4px 16px 8px;
}

/* Grid of icon cards */
.fr-menu-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
	padding: 0 12px 16px;
}
.fr-menu-card {
	background: #fff;
	border-radius: 14px;
	border: 1px solid var(--fr-border);
	display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	gap: 6px; padding: 14px 6px;
	text-decoration: none;
	color: var(--fr-text);
	font-size: 0.65rem; font-weight: 600;
	text-align: center; line-height: 1.2;
	transition: background var(--fr-transition), border-color var(--fr-transition);
	box-shadow: 0 1px 6px rgba(26,42,74,0.06);
}
.fr-menu-card i {
	font-size: 1.4rem;
	color: var(--fr-primary);
	margin-bottom: 2px;
}
.fr-menu-card:hover, .fr-menu-card.active {
	background: var(--fr-gold-pale);
	border-color: rgba(240,165,0,0.4);
	color: var(--fr-gold);
}
.fr-menu-card:hover i, .fr-menu-card.active i { color: var(--fr-gold); }

/* Sign out button */
.fr-menu-signout {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	margin: 4px 12px 8px;
	padding: 14px;
	background: rgba(220,38,38,0.07);
	border: 1.5px solid rgba(220,38,38,0.2);
	border-radius: 12px;
	color: #dc2626; font-weight: 700; font-size: 0.85rem;
	text-decoration: none;
	transition: background var(--fr-transition);
}
.fr-menu-signout:hover { background: rgba(220,38,38,0.14); color: #dc2626; }

/* Bottom nav — Aarogyom style */
.fr-bottom-nav {
	display: none;
	position: fixed; bottom: 0; left: 0; right: 0;
	height: var(--fr-bottom-h);
	background: #fff;
	border-top: 1px solid #e5e7eb;
	z-index: 1050;
	box-shadow: 0 -2px 12px rgba(26,42,74,0.08);
}
.fr-bottom-nav .bnav-items {
	display: flex; height: 100%;
}
.fr-bottom-nav .bnav-item {
	flex: 1;
	display: flex; flex-direction: column;
	align-items: center; justify-content: center; gap: 3px;
	text-decoration: none;
	color: var(--fr-muted);
	font-size: 0.6rem; font-weight: 500;
	position: relative;
	transition: color var(--fr-transition);
}
.fr-bottom-nav .bnav-item i { font-size: 1.25rem; }
.fr-bottom-nav .bnav-item.active { color: var(--fr-gold); }
/* Gold top bar on active */
.fr-bottom-nav .bnav-item.active::before {
	content: '';
	position: absolute; top: 0; left: 20%; right: 20%;
	height: 3px; background: var(--fr-gold);
	border-radius: 0 0 4px 4px;
}

/* ═══════════════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════════════ */
.fr-login-page {
	min-height: 100vh;
	background: linear-gradient(160deg, var(--fr-primary-dk) 0%, var(--fr-primary) 60%, var(--fr-primary-2) 100%);
	display: flex; align-items: center; justify-content: center;
	padding: 20px; position: relative; overflow: hidden;
}
.fr-login-page::before {
	content: '';
	position: absolute; inset: 0; pointer-events: none;
	background: radial-gradient(ellipse at 75% 15%, rgba(240,165,0,0.09) 0%, transparent 55%),
	            radial-gradient(ellipse at 15% 85%, rgba(240,165,0,0.06) 0%, transparent 50%);
}
.fr-login-card {
	background: #fff;
	border-radius: 16px;
	padding: 40px 36px;
	width: 100%; max-width: 420px;
	box-shadow: 0 24px 80px rgba(13,26,46,0.45);
	border-top: 4px solid var(--fr-gold);
	position: relative; z-index: 1;
}
.fr-login-card .logo-wrap { text-align: center; margin-bottom: 20px; }
.fr-login-card .logo-wrap img { height: 64px; }
.fr-login-card h4 {
	text-align: center; font-weight: 700; font-size: 1.1rem;
	color: var(--fr-primary); margin-bottom: 4px;
}
.fr-login-card .sub {
	text-align: center; color: var(--fr-muted);
	font-size: 0.78rem; margin-bottom: 28px; line-height: 1.6;
}
.fr-login-card .form-label {
	font-size: 0.78rem; font-weight: 600; color: var(--fr-text); margin-bottom: 5px;
}
.fr-login-card .form-control {
	border-radius: 8px; font-size: 0.85rem; padding: 10px 14px;
}
.fr-login-card .input-group-text {
	border-right: none; border-radius: 8px 0 0 8px;
}
.fr-login-card .form-control:first-of-type { border-left: none; border-radius: 0 8px 8px 0; }
.fr-login-btn {
	width: 100%; background: var(--fr-gold);
	border: none; color: #000; font-weight: 700;
	font-size: 0.88rem; padding: 12px; border-radius: 8px;
	cursor: pointer; letter-spacing: 0.5px; text-transform: uppercase;
	transition: background var(--fr-transition), box-shadow var(--fr-transition), transform 0.1s;
	margin-top: 8px; box-shadow: 0 4px 14px rgba(240,165,0,0.35);
}
.fr-login-btn:hover { background: var(--fr-gold-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(240,165,0,0.45); }
.fr-login-btn:active { transform: translateY(0); }
.fr-login-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.fr-login-footer { text-align: center; margin-top: 22px; font-size: 0.72rem; color: var(--fr-muted); line-height: 1.7; }
@media (max-width: 480px) { .fr-login-card { padding: 28px 18px; } }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — ≤768px → app mode
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
	.fr-sidebar  { display: none; }
	.fr-header   { display: none; }

	.fr-mobile-header  { display: flex; }
	.fr-bottom-nav     { display: block; }

	.fr-main {
		margin-left: 0 !important;
		margin-top: var(--fr-header-h);
		padding: 14px 12px;
		padding-bottom: calc(var(--fr-bottom-h) + 14px);
	}

	.fr-card { border-radius: 10px; padding: 14px; }
	.fr-stat-card { border-radius: 10px; padding: 13px 14px; }
}

/* ── High-specificity override: all text inside topbar must be white ── */
.fr-header .fr-header-title,
.fr-header .fr-header-name,
.fr-header .fr-header-code,
.fr-header .fr-header-divider {
	color: inherit;
}
.fr-header .fr-header-title { color: #ffffff !important; }
.fr-header .fr-header-name  { color: #ffffff !important; }
.fr-header .fr-header-code  { color: #F0A500 !important; }
.fr-header .fr-header-divider { color: rgba(255,255,255,0.45) !important; }

/* Student list — portal status badge doubles as a button */
.portal-btn { cursor: pointer; font-size: .62rem; transition: filter .15s, transform .1s; }
.portal-btn:hover { filter: brightness(.92); }
.portal-btn:active { transform: scale(.96); }
.portal-btn .bi { font-size: .55rem; margin-left: 2px; }

/* ── Searchable select (frSearchSelect) ── */
.frss { position: relative; flex: 1 1 auto; min-width: 0; }
.input-group > .frss .frss-input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.frss-input { padding-right: 30px; background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%236b7280' d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398l3.85 3.85a1 1 0 0 0 1.414-1.414l-3.85-3.85zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3e%3c/svg%3e") no-repeat right 10px center / 13px; }
.frss.has-value .frss-input { background-image: none; font-weight: 600; }
.frss-clear { display: none; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #9ca3af; padding: 2px 4px; z-index: 3; }
.frss.has-value:not(.is-disabled) .frss-clear { display: block; }
.frss.is-disabled .frss-input { background-color: #f3f4f6; cursor: not-allowed; }
.frss-list { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 3px); z-index: 1065; background: #fff; border: 1px solid #dbe2ef; border-radius: 8px; box-shadow: 0 10px 28px rgba(15,23,42,.14); max-height: 280px; overflow-y: auto; padding: 4px; }
.frss-list.open { display: block; }
.frss-item { padding: 7px 10px; border-radius: 6px; cursor: pointer; }
.frss-item.hi { background: #eef3ff; }
.frss-item.sel .frss-t { color: #1d4ed8; }
.frss-t { font-size: .82rem; font-weight: 600; color: #1A2A4A; }
.frss-s { font-size: .72rem; color: #6b7280; margin-top: 1px; }
.frss-badge { display: inline-block; font-size: .6rem; font-weight: 700; background: #e0f2fe; color: #0369a1; border-radius: 10px; padding: 1px 6px; vertical-align: middle; }
.frss-empty, .frss-more { font-size: .78rem; color: #9ca3af; padding: 8px 10px; }
