/******* structure and layout *******/
html,
body {
	margin: 0;
	padding: 0px;
	height: 100%;
	font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
	font-size: 14px;
	color: #333;
	letter-spacing: 0.2px;
	background: #f4f7f6;
}

#container {
	min-height: 100%;
	position: relative;
}

/**banner redu */
#banner {
	background: #003366 url(images/uzemharebanner.png) no-repeat;
	width: 100%;
	border-bottom: 4px solid #f79422;
	height: 200px;
	color: #fff;
    background-size: cover;
    background-position: center;
}

#welcome {
	position: relative;
	top: 8px;
	text-align: right;
    padding-right: 20px;
	font-size: 14px;
}

#welcome a {
    background: #f79422;
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 600;
}

.leftcontent {
	position: absolute;
	width: 240px;
	left: 20px;
	top: 220px;
}

#centercontent {
	margin-top: 20px;
	margin-left: 280px;
	margin-right: 40px;
	line-height: 1.6em;
}

.dashboard-fallback {
	background: #fff;
	border: 1px solid #d9dee6;
	border-radius: 6px;
	padding: 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dashboard-fallback h2 {
	margin-top: 0;
	color: #003366;
}

/* Restore Cake scaffold two-column layout in main content area */
#centercontent::after {
	content: "";
	display: table;
	clear: both;
}

#centercontent div.form,
#centercontent div.index,
#centercontent div.view {
	float: right;
	width: 76%;
	border-left: 1px solid #d9dee6;
	padding: 10px 2%;
	box-sizing: border-box;
}

#centercontent div.actions {
	float: left;
	width: 16%;
	padding: 10px 1.5%;
	box-sizing: border-box;
}

#centercontent div.actions h3 {
	padding-top: 0;
	color: #555;
}

/* Keep report pages aligned with sidebar/content spacing and avoid scaffold float gaps. */
#centercontent .report-page {
	float: none;
	width: 100%;
	border-left: 0;
	padding: 0;
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	#centercontent div.form,
	#centercontent div.index,
	#centercontent div.view,
	#centercontent div.actions {
		float: none;
		width: 100%;
		border-left: 0;
		padding-left: 0;
		padding-right: 0;
	}
}

/* Student portal users (group 14) do not render the left sidebar menu.
   Remove the reserved sidebar gutter so portal pages align normally. */
body.is-student-portal #centercontent {
	margin-left: 40px;
	margin-right: 40px;
}

body.is-student-portal.has-student-nav #centercontent {
	margin-left: 280px;
}

body.is-student-portal #centercontent div.form,
body.is-student-portal #centercontent div.index,
body.is-student-portal #centercontent div.view,
body.is-student-portal #centercontent div.actions {
	float: none;
	width: 100%;
	border-left: 0;
	padding-left: 0;
	padding-right: 0;
}

body.is-student-portal table {
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: auto;
	width: 100%;
	max-width: 100%;
}

body.is-student-portal fieldset {
	background: #fff;
	border: 1px solid #d9dee6;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 18px;
}

body.is-student-portal fieldset > table {
	margin-bottom: 0;
}

body.is-student-portal th,
body.is-student-portal td {
	border: 1px solid #d9dee6;
}

body.is-student-portal #navstud.leftcontent {
	top: 220px;
}

body.is-student-portal .invoice-page {
	background: #fff;
	border: 1px solid #d9dee6;
	border-radius: 8px;
	padding: 16px;
}

body.is-student-portal .invoice-page .invoice-page__brand-logo-img {
	width: 88px !important;
	height: 88px !important;
	max-width: 88px !important;
	max-height: 88px !important;
	min-width: 88px !important;
	min-height: 88px !important;
}

body.is-student-portal .invoice-page .invoice-table {
	border-collapse: collapse !important;
	border-spacing: 0 !important;
}

@media (max-width: 1024px) and (min-width: 769px) {
	body.is-student-portal #navstud.leftcontent {
		width: 220px;
		left: 16px;
		top: 220px;
	}

	body.is-student-portal.has-student-nav #centercontent {
		margin-left: 252px;
		margin-right: 16px;
	}

	body.is-student-portal #centercontent {
		margin-right: 16px;
	}
}

@media (max-width: 768px) {
	body.is-student-portal #navstud.leftcontent {
		position: static;
		width: auto;
		left: auto;
		top: auto;
		margin: 16px;
	}

	body.is-student-portal #centercontent,
	body.is-student-portal.has-student-nav #centercontent {
		margin: 16px;
	}

	body.is-student-portal #centercontent table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}
}


/* Quick Links Styles */
#navleft ul, #nav ul, #navstud ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e1e4e8;
}

.quick-links-header {
    background-color: #003366;
    color: #fff;
    padding: 15px 20px;
    font-weight: 700;
    text-align: left;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 14px;
    border-bottom: 2px solid #f79422;
}

#navleft li, #nav li, #navstud li {
    border-bottom: 1px solid #f0f2f5;
}

#navleft li:last-child, #nav li:last-child, #navstud li:last-child {
    border-bottom: none;
}

#navleft li a, #nav li a, #navstud li a {
    color: #003366;
    text-decoration: none;
    text-transform: capitalize;
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#navleft li a:hover, #nav li a:hover, #navstud li a:hover {
    background: #f8f9fa;
    color: #f79422;
    padding-left: 25px;
}


/* Modernizing tables in center content */
table {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

th {
    background: #003366;
    color: #fff;
    padding: 15px;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 600;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f2f5;
}

tr:nth-child(even) {
    background-color: #fafbfc;
}

tr:hover {
    background-color: #f1f4f9;
}

/* Button styles */
.styled-button, input[type="submit"] {
    background-color: #003366;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.styled-button:hover, input[type="submit"]:hover {
    background-color: #002244;
}

/* Confirm applicant page alignment */
.confirm-applicant-page {
	max-width: 1080px;
}

.confirm-applicant-page h2,
.confirm-applicant-page h3 {
	margin: 16px 0 10px 0;
	color: #1f2d3d;
}

.confirm-applicant-page .ca-top-link {
	margin-bottom: 10px;
}

.confirm-applicant-page .ca-inline-link {
	margin: 10px 0 14px 0;
}

.confirm-applicant-page .ca-table {
	width: 100%;
	background: #fff;
	border-collapse: collapse;
	margin: 0 0 18px 0;
}

.confirm-applicant-page .ca-table th {
	white-space: nowrap;
}

.confirm-applicant-page .ca-table--details th,
.confirm-applicant-page .ca-table--details td {
	width: 25%;
}

.confirm-applicant-page .ca-empty {
	color: #b23a3a;
	font-weight: 600;
	margin: 0 0 16px 0;
}

.confirm-applicant-page .ca-actions {
	margin: 14px 0 10px 0;
}

.confirm-applicant-page .ca-inline-form {
	display: inline-block;
	margin-right: 10px;
}
