@charset "utf-8";
/* GBCU blue/purple brand for the whole mobile template + home dashboard.
   Loaded last so it overrides the older red/green rules in style.css and dashboard.css. */

:root {
	--gb-lime: #7ac143;
	--gb-red: #d93a32;
	--gb-green: #1f7a35;
	--gb-green-deep: #185f29;
	--gb-green-dark: #24502c;
	--gb-green-mid: #3f8f4f;
	--gb-green-light: #a5d38b;
	--gb-green-pale: #e3f1dc;
	--gb-page: #f0f1f1;
	--gb-line: #dcdcdc;
}

body {
	background: var(--gb-page);
}

/* ---------- Top navbar ---------- */
.bg-dark,
.navbar.bg-dark {
	background-color: var(--gb-green-dark) !important;
	border-bottom: 3px solid var(--gb-lime);
}
.navbar-dark .navbar-nav .nav-link {
	color: rgba(255, 255, 255, .85);
}
.navbar-dark .navbar-nav .nav-link:hover {
	color: #fff;
}

/* ---------- Sidebar ---------- */
#sidebar,
#sidebar .bg-light {
	background: #f7f7f8 !important;
}
#sidebar .sidebar-heading {
	margin: 14px 10px 6px !important;
	padding: 9px 14px !important;
	border-radius: 6px;
	background: #e9e9ec;
}
.text-muted,
#sidebar .text-muted {
	color: var(--gb-green-dark) !important;
}
#sidebar .nav-item {
	margin: 0 10px 4px;
}
#sidebar .nav-link {
	padding: 7px 14px !important;
	border: 0;
	border-radius: 6px;
	background: #fff;
	color: #222;
}
#sidebar .nav-link:hover {
	background: var(--gb-green-pale);
	color: var(--gb-green-dark);
	text-decoration: none;
}
#sidebar .nav-link img,
#sidebar .nav-link svg {
	width: 15px;
	height: 15px;
	vertical-align: -2px;
	opacity: .85;
	color: var(--gb-green-dark);
}
#sidebar .menu-search-container .form-control:focus {
	border-color: var(--gb-green-dark);
	box-shadow: 0 0 0 2px rgba(36, 80, 44, .12);
}

/* ---------- Headings, buttons, legacy coloured blocks ---------- */
h2, h3 {
	color: var(--gb-green-dark);
}
h2 {
	border-bottom-color: var(--gb-green-light);
}
.studentname {
	background-color: var(--gb-green) !important;
}
.studentsubmenu a:hover {
	background-color: var(--gb-green);
}
.trdd {
	background-color: var(--gb-green) !important;
}
.greeter {
	float: none;
	height: auto;
	margin: 0 0 22px;
	padding: 12px 18px;
	border-radius: 0;
	background-color: var(--gb-green-dark);
	font-size: 19px;
	line-height: 1.3;
}

/* ---------- Dashboard: quick links ---------- */
.db-links {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 220px));
	gap: 24px;
	margin: 0 0 36px 24px;
}
.db-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 128px;
	padding: 18px 12px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
	font-size: 13px;
	font-weight: 600;
	color: #111 !important;
	text-align: center;
	text-decoration: none !important;
	transition: transform .15s, box-shadow .15s;
}
.db-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(36, 80, 44, .18);
}
.db-link svg {
	width: 46px;
	height: 46px;
	fill: none;
	stroke: var(--gb-green-dark);
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Dashboard: section titles ---------- */
.db-title {
	margin: 0 0 12px;
	padding: 0 0 0 12px;
	border: 0;
	border-left: 4px solid var(--gb-red);
	font-size: 26px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.25;
	color: #222;
}
.db-subtitle {
	margin: -6px 0 22px 10px;
	color: #444;
}
.db-section {
	padding: 30px 16px;
	border-top: 1px solid #d5d5d8;
}
.db-section:first-of-type {
	border-top: 0;
}

/* ---------- Dashboard: statistic cards ---------- */
.db-stats {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 15px;
}
.db-stat {
	display: block;
	padding: 22px 10px 20px;
	border-top: 4px solid var(--gb-green-dark);
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
	text-align: center;
	color: inherit !important;
	text-decoration: none !important;
}
a.db-stat:hover {
	border-top-color: var(--gb-green);
}
.db-stat-label {
	min-height: 2.6em;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: #333;
}
.db-stat-value {
	font-size: 46px;
	font-weight: 600;
	line-height: 1.05;
	color: var(--gb-green-dark);
}
.db-stat-applicants .db-stat-value {
	color: var(--gb-green-deep);
}

/* ---------- Dashboard: charts ---------- */
.db-charts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}
.db-chart-box {
	position: relative;
	height: 270px;
}

/* ---------- Dashboard: news and memos ---------- */
.db-news {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
}
.db-news .panel {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 !important;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	height: auto;
	top: 0;
}
.db-news .itemheader h2 {
	margin: 0 0 12px;
	padding-left: 12px;
	border: 0;
	border-left: 4px solid var(--gb-red);
	font-size: 26px;
	font-weight: 400;
	letter-spacing: 0;
	color: #222;
}
.db-news .panel > div[style*="border-bottom"] {
	display: flex;
	height: auto !important;
	padding: 9px 10px;
	border-bottom: 0 !important;
	background: #e2e2e4;
	margin-bottom: 4px;
}
.db-news .panel a {
	font-size: 13px;
	color: #222;
}

/* ---------- Dashboard: school statistics ---------- */
.db-schools {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 30px;
	align-items: center;
}
.db-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	font-size: 14px;
}
.db-table th,
.db-table td {
	padding: 10px;
	border: 1px solid #e3e3e3;
	text-align: left;
}
.db-table th {
	background: #ebebeb;
	font-weight: 600;
}
.db-table td.db-swatch {
	width: 52px;
	color: rgba(255, 255, 255, .6);
}
.db-table tr.db-total td {
	background: #cfcfcf;
	font-weight: 600;
}
.db-table-wrap {
	overflow-x: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
	.db-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.db-charts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 1100px) {
	.db-charts,
	.db-news,
	.db-schools {
		grid-template-columns: minmax(0, 1fr);
	}
}
@media (max-width: 767px) {
	.greeter {
		font-size: 16px;
		margin-bottom: 16px;
	}
	.db-links {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		margin: 0 0 24px;
	}
	.db-link {
		min-height: 104px;
		font-size: 12px;
	}
	.db-link svg {
		width: 36px;
		height: 36px;
	}
	.db-section {
		padding: 22px 0;
	}
	.db-title,
	.db-news .itemheader h2 {
		font-size: 21px;
	}
	.db-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}
	.db-stat {
		padding: 14px 8px;
	}
	.db-stat-label {
		font-size: 11px;
	}
	.db-stat-value {
		font-size: 34px;
	}
	.db-chart-box {
		height: 240px;
	}
	.bg-dark,
	.navbar.bg-dark {
		background-color: var(--gb-green-dark) !important;
	}
	#sidebar .nav-item a {
		font-size: 14px;
	}
}

/* news rows: title left, date right on one line */
.db-news .panel > div[style*="border-bottom"] > div:first-child {
	flex: 1 1 auto;
	width: auto !important;
}
.db-news .panel > div[style*="border-bottom"] > div:last-child {
	flex: none;
	width: auto !important;
	padding-left: 12px;
	white-space: nowrap;
	font-style: italic;
}
@media (max-width: 767px) {
	.db-news .panel > div[style*="border-bottom"] {
		flex-direction: column;
	}
	.db-news .panel > div[style*="border-bottom"] > div:last-child {
		padding-left: 0;
		font-size: 12px;
	}
}

/* breadcrumb sits on a light bar under the white header: keep it readable */
.breadcrumb,
.breadcrumb a {
	color: var(--gb-green-dark) !important;
	font-weight: 600;
}

/* ---------- Home: keep sections below the (floated) legacy panels ---------- */
.db-section {
	clear: both;
}
.db-news .panel {
	float: none;
	width: 100%;
}
.greeter {
	clear: both;
}

/* ---------- Student home: info card ---------- */
.db-info {
	margin: -22px 0 0;
	padding: 14px 18px;
	background: #fff;
	border: 1px solid var(--gb-line);
	border-top: 0;
}
.db-info .pf-table td:first-child {
	width: 180px;
}

/* ---------- Student home: quick links ---------- */
.db-quick-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 16px;
}
.db-quick {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 120px;
	padding: 16px 10px;
	border: 1px solid #e6e6ea;
	border-bottom: 4px solid var(--gb-green-dark);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
	text-align: center;
	text-decoration: none !important;
	color: #222 !important;
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.db-quick:hover {
	transform: translateY(-2px);
	border-bottom-color: var(--gb-green);
	box-shadow: 0 6px 16px rgba(36, 80, 44, .15);
}
.db-quick-icon svg,
.db-quick-icon img {
	display: block;
	width: 32px;
	height: 32px;
	color: var(--gb-green-dark);
	stroke-width: 1.6;
}
.db-quick-label {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
}

@media (max-width: 767px) {
	.db-info {
		margin-top: -16px;
		padding: 12px;
	}
	.db-info .pf-table td:first-child {
		width: 42%;
	}
	.db-quick-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}
	.db-quick {
		min-height: 108px;
	}
	.db-quick-label {
		font-size: 13px;
	}
}

/* ---------- Page toolbars (Return to profile, Print statement, ...) ---------- */
.toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	height: auto;
	padding: 8px;
	background: #e9e9ec;
	border-radius: 6px;
}
.toolbar a {
	float: none;
	height: auto;
	padding: 9px 16px;
	border-radius: 5px;
	background-color: var(--gb-green-dark) !important;
	color: #fff !important;
	text-decoration: none !important;
}
.toolbar a:hover {
	/* same box as the normal state: the old style.css changes size and float on hover */
	float: none;
	height: auto;
	padding: 9px 16px;
	margin-left: 0;
	background-color: var(--gb-green) !important;
}

/* =====================================================================
   Phones: make the legacy page bodies (student modules) fit the screen
   ===================================================================== */
@media (max-width: 768px) {
	#content img,
	#content iframe,
	#content video {
		max-width: 100%;
		height: auto;
	}
	#content .segment {
		width: auto;
		max-width: 100%;
		height: auto;
		padding-left: 14px;
	}
	#content [style*="width"]:not(table):not(td):not(th):not(svg):not(canvas) {
		max-width: 100% !important;
	}

	/* Data tables scroll sideways inside their own box instead of widening the page */
	#content table:not(.pf-table):not(.db-table) {
		display: block;
		width: auto !important;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* Form tables (label | field) stack: label on top, full-width field below */
	#content form table:not(.pf-table):not(.db-table),
	#content form table:not(.pf-table):not(.db-table) > tbody,
	#content form table:not(.pf-table):not(.db-table) > tbody > tr,
	#content form table:not(.pf-table):not(.db-table) > tbody > tr > td,
	#content form table:not(.pf-table):not(.db-table) > tbody > tr > th,
	#content form table:not(.pf-table):not(.db-table) > tr,
	#content form table:not(.pf-table):not(.db-table) > tr > td,
	#content form table:not(.pf-table):not(.db-table) > tr > th {
		display: block;
		width: 100% !important;
		overflow: visible;
	}
	#content form table:not(.pf-table):not(.db-table) td,
	#content form table:not(.pf-table):not(.db-table) th {
		padding: 3px 0 !important;
		height: auto !important;
	}
	#content form table:not(.pf-table):not(.db-table) tr {
		padding: 6px 0;
	}
	#content form table:not(.pf-table):not(.db-table) td:empty {
		display: none;
	}
	#content input[type="text"],
	#content input[type="password"],
	#content input[type="email"],
	#content input[type="number"],
	#content input[type="date"],
	#content input[type="tel"],
	#content input[type="file"],
	#content select,
	#content textarea {
		width: 100% !important;
		max-width: 100%;
		box-sizing: border-box;
		font-size: 16px;	/* stops iOS zooming into fields */
	}
	#content input[type="submit"],
	#content button[type="submit"] {
		min-height: 42px;
		padding-left: 18px;
		padding-right: 18px;
	}

	/* Floated legacy blocks stack */
	#content .float,
	#content .statistics,
	#content .easymen {
		float: none;
		width: 100%;
	}
	.toolbar a {
		flex: 1 1 auto;
		text-align: center;
	}
}

@media (max-width: 768px) {
	/* fixed desktop heights would cut off stacked content */
	#content table,
	#content div[style*="height"]:not(.db-chart-box) {
		height: auto !important;
		min-height: 0;
	}
	#content .easymencontainer,
	#content .fixedheightpanel,
	#content .varheightpanel {
		float: none;
		height: auto !important;
		padding: 14px;
	}
	/* header-only rows ("Information | Selection") are noise once cells stack */
	#content form table:not(.pf-table):not(.db-table) tr:has(> th):not(:has(> td)) {
		display: none;
	}
}

/* name bars wrap on narrow screens: let them grow */
.studentname {
	height: auto;
	min-height: 50px;
}

/* sidebar helpdesk counters: unread = green, pending = red accent */
.mailcount {
	background-color: var(--gb-green) !important;
}
.pendingcount {
	background-color: var(--gb-red) !important;
}
