:root {
	--color-primary: #102D41;
	--color-secondary: #E6EEF4;
	--color-accent: #B3B3B3;
	--color-bg: #102d41;
	--color-text: #FFFFFF;
	--font-heading: Arial, sans-serif;
	--font-body: Arial, sans-serif;
	--font-size-base: 12px;
	--radius-base: 2px;
	--shadow-1: 0 2px 6px rgba(0, 0, 0, 0.15);
	--layout-density: 8px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--font-size-base);
	color: var(--color-text);
	background: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	margin: 0 0 12px 0;
}

.app-shell {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-width: 100vh;
}

.app-header h1 {
	font-size: 18px;
	margin: 0;
}

.app-header-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
}

.app-brand {
	display: flex;
	align-items: center;
	gap: 8px;
}

.app-brand img {
	max-width: 20em;
	height: auto;
}
.app-brand h1 {
	font-size: 22px;
	padding-left: 20px;
	display: block;
	font-variant: small-caps;
}

.app-footer {
	padding: 12px 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 11px;
	position:relative;
	bottom:0;
}

.app-header {
	padding: 12px 16px 8px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.app-header nav {
	float: none;
	width: 100%;
}

.app-header nav > ul > li.template-switch {
	float: right;
	margin-left: auto;
	background: transparent;
}

.app-header nav > ul > li.template-switch:hover {
	background: transparent;
}

.app-header .template-switch form {
	margin: 0;
}

.app-header .template-switch button {
	margin: 7px 10px;
	padding: 4px 8px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 3px;
	background: transparent;
	color: rgba(255, 255, 255, 0.78);
	font: inherit;
	font-size: 11px;
	cursor: pointer;
}

.app-header .template-switch button:hover,
.app-header .template-switch button:focus-visible {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.65);
}

.app-header h1 a {
	color: inherit;
	text-decoration: none;
}

.app-userbar {
	color: var(--color-text);
	font-size: 12px;
	margin-bottom: 6px;
}

.app-userbar a {
	color: var(--color-text);
	text-decoration: underline;
}

.app-userbar-update {
	font-size: 10px;
}

.app-content {
	padding: 0;
	background: var(--color-secondary);
	color: var(--color-primary);
	min-height: calc(100vh - 80px);
	padding: 5px;
}

.card {
	background: var(--color-secondary);
	border-radius: var(--radius-base);
	box-shadow: var(--shadow-1);
	padding: 16px;
	color: var(--color-primary);
}

.btn {
	border: 1px solid var(--color-secondary);
	background: transparent;
	color: var(--color-secondary);
	padding: 6px 12px;
	border-radius: var(--radius-base);
	cursor: pointer;
}

.btn-primary {
	border-color: var(--color-secondary);
	background: var(--color-secondary);
	color: var(--color-primary);
	border: 1px solid var(--color-primary);
}

.btn-accent {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.btn-nav {
	border-color: var(--color-secondary);
	color: black;
	background: transparent;
	padding: 4px 8px;
	border-radius: var(--radius-base);
	cursor: pointer;
	display: inline-block;
	margin-right: 8px;
}

.btn-nav-group {
	display: flex;
	gap: 8px;
}

.table {
	width: 100%;
	border-collapse: collapse;
}

.table th,
.table td {
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 6px;
	color: var(--color-primary);
}

.table th {
	text-align: left;
}

.alert {
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: var(--radius-base);
	padding: 8px 10px;
	margin-bottom: 12px;
}

.alert-success {
	background: rgba(46, 204, 113, 0.2);
	border-color: rgba(46, 204, 113, 0.6);
}

.alert-warning {
	background: rgba(241, 196, 15, 0.2);
	border-color: rgba(241, 196, 15, 0.6);
}

.alert-danger {
	background: rgba(231, 76, 60, 0.2);
	border-color: rgba(231, 76, 60, 0.6);
}

input,
select,
textarea {
	border: 1px solid rgba(16, 45, 65, 0.4);
	border-radius: var(--radius-base);
	padding: 6px;
	background: #FFFFFF;
	color: var(--color-primary);
}

select option {
	color: var(--color-primary);
	background: var(--color-secondary);
}

.form-group {
	margin-bottom: 12px;
}

.label {
	display: block;
	margin-bottom: 4px;
}

.year-overview table {
	border-collapse: collapse;
	width: 100%;
}

.year-overview-day {
	border: 1px solid rgba(16, 45, 65, 0.2);
	padding: 6px;
	white-space: nowrap;
}

.year-overview-day--active {
	background: #C0FF00;
}

.teacher-admin-wrap {
	width: 100%;
	max-width: 1080px;
	overflow-x: auto;
}

.teacher-admin-table {
	width: 100%;
	min-width: 760px;
	table-layout: fixed;
	border-collapse: collapse;
	background: #fff;
	font-size: 13px;
}

.teacher-admin-table .teacher-col-kz { width: 14%; }
.teacher-admin-table .teacher-col-name { width: 25%; }
.teacher-admin-table .teacher-col-role { width: 12%; }
.teacher-admin-table .teacher-col-password { width: 29%; }
.teacher-admin-table .teacher-col-actions { width: 20%; }

.teacher-admin-table th,
.teacher-admin-table td {
	padding: 6px 8px;
	border: 1px solid #aebbc4;
	text-align: left;
	vertical-align: middle;
}

.teacher-admin-table th {
	background: #e6eef4;
	font-weight: 600;
}

.teacher-admin-table tbody tr:nth-child(even) {
	background: #f0f5f8;
}

.teacher-admin-table tbody tr:hover {
	background: #e0edf5;
}

.teacher-admin-table td input[type="text"],
.teacher-admin-table td input[type="password"],
.teacher-admin-table td select {
	width: 100%;
	min-width: 0;
}

.teacher-admin-table td .teacher-clear-password {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-top: 5px;
	font-size: 12px;
}

.teacher-admin-table td .teacher-clear-password input {
	width: auto;
	margin: 0;
}

.teacher-admin-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.teacher-admin-add {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding: 10px;
}

.teacher-admin-add p {
	flex-basis: 100%;
	margin: 0;
}

@media (max-width: 760px) {
	.teacher-admin-wrap { max-width: 100%; }
}

body .app-content:not(:has(.editlist_teacher)) .teacher-admin-wrap {
	width: 100% !important;
	max-width: 1080px !important;
	overflow-x: auto !important;
}

body .app-content:not(:has(.editlist_teacher)) .teacher-admin-table {
	width: 100% !important;
	min-width: 760px !important;
	max-width: 100% !important;
	table-layout: fixed !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	border-radius: 0 !important;
	font: 13px/1.35 Arial, sans-serif !important;
}

body .app-content:not(:has(.editlist_teacher)) .teacher-admin-table th,
body .app-content:not(:has(.editlist_teacher)) .teacher-admin-table td {
	position: static !important;
	padding: 6px 8px !important;
	border: 1px solid #aebbc4 !important;
	vertical-align: middle !important;
}

body .app-content:not(:has(.editlist_teacher)) .teacher-admin-table th {
	background: #e6eef4 !important;
	color: #102d41 !important;
	text-align: left !important;
}

body .app-content:not(:has(.editlist_teacher)) .teacher-admin-table tbody tr:nth-child(even) td {
	background: #f0f5f8 !important;
}

body .app-content:not(:has(.editlist_teacher)) .teacher-admin-table tbody tr:hover td {
	background: #e0edf5 !important;
}

body .app-content:not(:has(.editlist_teacher)) .teacher-admin-table td input[type="text"],
body .app-content:not(:has(.editlist_teacher)) .teacher-admin-table td input[type="password"],
body .app-content:not(:has(.editlist_teacher)) .teacher-admin-table td select {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	min-height: 32px !important;
	height: auto !important;
	box-sizing: border-box !important;
	font-size: 13px !important;
}

body .app-content:not(:has(.editlist_teacher)) .teacher-admin-table td .teacher-clear-password {
	display: flex !important;
	align-items: center !important;
	gap: 5px !important;
	margin-top: 5px !important;
	font-size: 12px !important;
}

body .app-content:not(:has(.editlist_teacher)) .teacher-admin-table td .teacher-clear-password input {
	width: auto !important;
	min-height: 0 !important;
	height: auto !important;
}

body .app-content:not(:has(.editlist_teacher)) .teacher-admin-actions {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 5px !important;
}

body .app-content:not(:has(.editlist_teacher)) .teacher-admin-actions button {
	min-height: 32px !important;
	padding: 0 8px !important;
	font: 13px/1 Arial, sans-serif !important;
}

body .app-content:not(:has(.editlist_teacher)) .teacher-admin-add {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 10px !important;
}

body .app-content:not(:has(.editlist_teacher)) .teacher-admin-add p {
	flex-basis: 100% !important;
	margin: 0 !important;
	font-size: 13px !important;
}

body .app-content:not(:has(.editlist_teacher)) .admin-list-wrap {
	width: 100% !important;
	max-width: 900px !important;
	overflow-x: auto !important;
}

body .app-content:not(:has(.editlist_teacher)) .admin-list-table {
	width: 100% !important;
	min-width: 520px !important;
	max-width: 100% !important;
	table-layout: fixed !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	font: 13px/1.35 Arial, sans-serif !important;
}

body .app-content:not(:has(.editlist_teacher)) .admin-list-table--rooms th:first-child,
body .app-content:not(:has(.editlist_teacher)) .admin-list-table--objects th:first-child {
	width: 68% !important;
}

body .app-content:not(:has(.editlist_teacher)) .admin-list-table--rooms th:last-child,
body .app-content:not(:has(.editlist_teacher)) .admin-list-table--objects th:last-child {
	width: 32% !important;
}

body .app-content:not(:has(.editlist_teacher)) .admin-list-table--competence th:first-child { width: 25% !important; }
body .app-content:not(:has(.editlist_teacher)) .admin-list-table--competence th:nth-child(2) { width: 50% !important; }
body .app-content:not(:has(.editlist_teacher)) .admin-list-table--competence th:last-child { width: 25% !important; }

body .app-content:not(:has(.editlist_teacher)) .admin-list-table th,
body .app-content:not(:has(.editlist_teacher)) .admin-list-table td {
	position: static !important;
	padding: 6px 8px !important;
	border: 1px solid #aebbc4 !important;
	text-align: left !important;
	vertical-align: middle !important;
}

body .app-content:not(:has(.editlist_teacher)) .admin-list-table th {
	background: #e6eef4 !important;
	color: #102d41 !important;
	font-weight: 600 !important;
}

body .app-content:not(:has(.editlist_teacher)) .admin-list-table tbody tr:nth-child(even) td {
	background: #f0f5f8 !important;
}

body .app-content:not(:has(.editlist_teacher)) .admin-list-table tbody tr:hover td {
	background: #e0edf5 !important;
}

body .app-content:not(:has(.editlist_teacher)) .admin-list-table td input[type="text"] {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	min-height: 32px !important;
	height: auto !important;
	box-sizing: border-box !important;
	font-size: 13px !important;
}

body .app-content:not(:has(.editlist_teacher)) .admin-list-actions {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 5px !important;
}

body .app-content:not(:has(.editlist_teacher)) .admin-list-actions form { margin: 0 !important; }

body .app-content:not(:has(.editlist_teacher)) .admin-list-actions button,
body .app-content:not(:has(.editlist_teacher)) .admin-list-add button {
	min-height: 32px !important;
	padding: 0 8px !important;
	font: 13px/1 Arial, sans-serif !important;
}

body .app-content:not(:has(.editlist_teacher)) .admin-list-add {
	display: flex !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 10px !important;
}
