/* Main */

body {
	font-size: 110%;
	color: #272c30;
	margin: 0;
	padding: 0;
	overflow-wrap: break-word;
	word-wrap: break-word;
	min-width: 320px;
}

a:link, a:visited {
	color: #009ee3;
}

a:hover {
	text-decoration: none;
}

a img {
	border: none;
}

input {
	outline: none;
}

.clear {
	clear: both;
}

.left {
	text-align: left;
}

.center {
	text-align: center;
}

.red {
	color: #c00;
}

#container {
	width: 100%;
}

.edit, .edit_obj, .invert, .delete {
	cursor: pointer;
}

/* Header */

#header {
	background: url("../images/bg_header.png") repeat-x;
}

#header_img {
	background: url("../images/header.png") no-repeat;
	margin: 0 auto;
	padding-top: 10px;
	height: 502px;
	position: relative;
	width: 990px;
}

#header h1, #header h2 {
	color: #f8f8f8;
	margin: 0;
	text-align: center;
}

#header_img table {
	bottom: 5px;
	left: 30%;
	margin: 0 auto;
	position: absolute;
	text-align: center;
	width: 40%;
}

#ask_button, #base_button {
	background-repeat: no-repeat;
	display: block;
	height: 40px;
	margin: 0 auto;
	width: 163px;
}

#ask_button {
	background-image: url("../images/ask_button.png");
}

#base_button {
	background-image: url("../images/base_button.png");
}

#ask_button:hover {
	background-image: url("../images/ask_button_active.png");
}

#base_button:hover {
	background-image: url("../images/base_button_active.png");
}

#separator {
	background: url("../images/bg_separator.png") repeat-x;
	height: 5px;
}

.refresh_captcha {
	border-bottom: 1px dashed #000;
	cursor: pointer;
}

/* Content */

#content {
	background: url("../images/bg_content.png") repeat;
	padding: 20px 30px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
}

#left {
	-webkit-box-ordinal-group: 2;-ms-flex-order: 1;order: 1;
	-ms-flex-preferred-size: 175px;flex-basis: 175px;
	-ms-flex-negative: 0;flex-shrink: 0;
}

#right {
	-webkit-box-ordinal-group: 4;-ms-flex-order: 3;order: 3;
	-ms-flex-negative: 0;flex-shrink: 0;
	-ms-flex-preferred-size: 300px;flex-basis: 310px;
}

#slider .cover {
	max-width: 100%;
	display: block;
	margin: 0 auto;
	width: auto;
}

#left h3, #right h3 {
	color: #626262;
	margin: 0 0 10px;
}

#right h3 {
	text-align: center;
}

#center {
	-webkit-box-ordinal-group: 3;-ms-flex-order: 2;order: 2;
}

#center, #center_full {
	padding: 0 30px;
	-webkit-box-flex: 1;-ms-flex-positive: 1;flex-grow: 1;
	-webkit-box-ordinal-group: 3;-ms-flex-order: 2;order: 2;
}

/* Message */

.message {
	color: #f00;
	margin: 0;
	text-align: center;
}

.ticket_email_help {
	margin: 18px 0 8px;
	padding: 14px 16px;
	border-left: 4px solid #2b7ca8;
	background: #eef6fa;
	line-height: 1.45;
}

/* Auth */

#auth {
	text-align: center;
}

#auth h3 {
	text-align: left;
}

#auth .input, #auth .input {
	margin: 10px 0;
	width: 180px;
}

#addinfo_auth p {
	color: #626262;
	font-size: 95%;
	margin: 5px 0 10px;
	text-align: left;
}

/* Center */

#center h1, #center_full h1 {
	margin: 0 0 10px;
	text-align: center;
}

/* Courses */

#slider div {
	opacity: 0;
	position: absolute;
	text-align: center;
}

#slider div.show {
	opacity: 1;
	z-index: 500;
}

#switch {
	margin-top: 360px;
	text-align: center;
}

#switch img {
	cursor: pointer;
}

#slider a {
	font-size: 84%;
	display: block;
}

/* Table Articles */

#articles {
	font-size: 110%;
	margin: 0 auto;
}

#articles .header, .data .header {
	font-size: 100%;
	color: #5f6263;
}

/* Input */

label {
	cursor: pointer;
}

.input, .textarea {
	background-color: #dfdfdf;
	border-bottom: 1px solid #fff;
	border-left: 2px solid #aaa;
	border-radius: 10px;
	border-right: 1px solid #fff;
	border-top: 2px solid #aaa;
}

.input {
	width: 230px;
}

input[type="text"], input[type="password"], input[type="submit"], textarea {
	background: transparent;
	border: none;
}

input[type="text"], input[type="password"] {
	border-radius: 8px;
	box-sizing : border-box;
	color: #656464;
	padding: 7px 7px 8px 9px;
	width: 100%;
}

/* Button */

.button {
	background-image: url("../images/button_bg.png");
	background-repeat: repeat-x;
	border-radius: 10px;
	display: inline-block;
	margin: 0 auto;
}

input[type="submit"], a.button {
	color: #fff;
	cursor: pointer;
}

input[type="submit"] {
	background: transparent;
	font-size: 95%;
	padding: 5px 30px;
	width: 100%;
}

a.button {
	font-size: 130%;
	margin-top: 10px;
	padding: 3px 20px 5px;
	text-decoration: none !important;
}

.button:hover {
	background-image: url("../images/button_bg_active.png");
}

/* Footer */

#footer {
	color: #5f6263;
	padding: 20px 0;
	text-align: center;
}

/* Article */

#article p {
	margin: 10px 0;
}

/* Form */

.form table {
	margin: 0 auto;
}

.form td {
	padding: 10px;
}

.form label {
	color: #717070;
}

.form h2 {
	margin: 0;
	text-align: center;
}

.form h3 {
	margin: 0;
	text-align: center;
}

.form td.header {
	padding: 0;
}

textarea {
	outline: none;
	overflow: auto;
	padding: 5px;
	resize: none;
	width: 99%;
}

select {
	background-color: #dfdfdf;
	height: 25px;
}

.select {
	background-color: #a9e0f5;
	border-radius: 20px;
	padding: 8px 0;
}

.select p {
	cursor: pointer;
	margin: 5px 0;
	padding: 4px 20px;
	z-index: 500;
}

.select p.active {
	background-color: #cae9f5;
}

/* Panel */

#panel h3 {
	margin: 0;
}

#panel p {
	color: #009ee3;
	font-weight: bold;
	margin: 5px 0;
}

#panel ul {
	margin: 0;
	padding: 5px 0 5px 15px;
}

#panel ul li {
	color: #8dc6e9;
	padding: 5px 0;
}

/* Data */

.data {
	margin: 0 auto 10px;
	text-align: center;
}

.data .header td {
	background: none;
}

.data td {
	background-color: #fff;
	padding: 5px;
}

.data .img {
	width: 70px;
}

.data .array_checkbox {
	text-align: left;
}

.data .array_checkbox td {
	padding: 0 3px;
}


.data .timetable {
	text-align: left;
}

.data .timetable td {
	padding: 0;
}

/* Pagination */

#pagination {
	margin: 20px auto 10px;
	text-align: center;
}

#pagination span {
	font-weight: bold;
}

#pagination a {
	border: 1px solid #cecece;
	display: inline-block;
	padding: 3px;
	margin: 0 2px;
	text-decoration: none;
}

#pagination a:hover {
	color: #687596;
}

/* Ticket */

#ticket {
	background: url("../images/bg_ticket.png") repeat;
	margin: -22px auto 20px;
	min-width: 375px;
	padding: 10px 25px;
	width: 50%;
}

#ticket .data {
	text-align: left;
}

#ticket .data span {
	font-weight: bold;
}

#ticket .send_admin {
	text-align: center;
}

#ticket .send_admin span {
	color: #009ee3;
	font-weight: normal;
	text-decoration: underline;
}

#ticket .send_admin span:hover {
	text-decoration: none;
}

.avatar_img {
	width: 60px;
}

.reply_info {
	border-collapse: collapse;
}

.reply_info td {
	padding: 0 5px 0 0;
	vertical-align: bottom;
}

.reply_info p {
	margin: 0;
}

.reply_info .date {
	margin-bottom: 3px;
}

.reply_info .name {
	font-weight: bold;
}

#ticket .text {
	margin-top: -4px;
	padding: 12px 10px 10px;
}

#ticket .reply_0, #ticket .reply_1, #ticket .reply_2 {
	margin: 30px 0;
}

.reply_0 .text {
	background-color: #d5e2e6;
}

.reply_1 .text {
	background-color: #fff;
}

.reply_2 .text {
	background-color: #f5d4c2;
}

#ticket .text p {
	margin: 0;
	word-break: break-word;
}

.actions {
	text-align: right;
}

.actions span, .reply_info .invert {
	color: #009ee3;
	cursor: pointer;
	text-decoration: underline;
}

.actions span:hover, .invert:hover {
	text-decoration: none;
}

#ai_draft {
	background: #eef3f5;
	border: 1px solid #aebbc0;
	margin: 30px 0 10px;
	padding: 14px;
}

.ai_draft_header {
	align-items: baseline;
	display: flex;
	justify-content: space-between;
	gap: 15px;
}

.ai_draft_header h2 {
	font-size: 20px;
	margin: 0 0 12px;
}

#ai_draft_status {
	color: #717070;
	font-size: 12px;
}

.ai_draft_textarea {
	border-radius: 4px;
}

.ai_draft_textarea textarea {
	box-sizing: border-box;
	min-height: 220px;
	resize: vertical;
}

#ai_draft_meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 10px;
}

#ai_draft_admin_note {
	background: #fff;
	border-left: 3px solid #7d929a;
	margin: 10px 0;
	padding: 8px 10px;
}

#ai_draft_admin_summary {
	margin: 5px 0 0;
}

#ai_draft_execution_error {
	background: #fff0f0;
	border-left: 3px solid #a44949;
	color: #7c2929;
	margin: 10px 0;
	padding: 8px 10px;
}

#ai_draft_execution_error p {
	margin: 5px 0 0;
}

#ai_prompt_details {
	background: #fff;
	border: 1px solid #c5cfd3;
	margin: 12px 0;
	padding: 9px 10px;
}

#ai_prompt_details summary {
	color: #26739a;
	cursor: pointer;
	font-weight: bold;
}

.ai_prompt_note {
	color: #717070;
	font-size: 12px;
	margin: 9px 0;
}

.ai_prompt_textarea {
	border-radius: 4px;
	min-height: 520px;
}

.ai_prompt_textarea textarea {
	display: block;
	box-sizing: border-box;
	height: 60vh;
	font-family: Consolas, "Courier New", monospace;
	font-size: 12px;
	min-height: 520px;
	resize: vertical;
	white-space: pre;
	width: 100%;
}

.ai_draft_actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.ai_button {
	background: #68777d;
	border: 0;
	color: #fff;
	cursor: pointer;
	font: inherit;
	padding: 7px 12px;
}

.ai_button:hover {
	background: #4f5c61;
}

.ai_button_primary {
	background: #347d56;
}

.ai_button_primary:hover {
	background: #286644;
}

.ai_button_danger {
	background: #a44949;
}

.ai_button_danger:hover {
	background: #873737;
}

.ai_button:disabled {
	cursor: wait;
	opacity: .55;
}

#ai_draft_loading {
	align-items: center;
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

#ai_draft_loading.hide {
	display: none;
}

/* Profile */

#profile h2 {
	margin: 10px 0 0;
	text-align: center;
}

#profile .avatar_info p {
	margin: 10px 0;
	text-align: center;
}

/* Tickets */

#row_filters {
	margin: 10px auto;
}

#row_filters td {
	padding: 0 5px;
}

/* Fines */

#fines_result {
	margin-top: 20px;
	text-align: center;
}

#fines_result h2 {
	margin: 0;
}

#fines_result p {
	margin: 10px 0;
}

/* Staff */

#timetable td {
	padding: 5px;
}

/* Base */

.article_info .actions {
	margin: 0;
}

.article_info p {
	font-weight: bold;
	margin: 5px 0;
}

.article_info span {
	font-weight: normal;
}

.article_info .text p {
	font-weight: normal;
}

/* Statistics */

#statistics h2 {
	margin-bottom: 0;
	text-align: center;
}

#statistics span {
	font-weight: bold;
}

/* Chat */

#chat {
	background-color: #fff;
	border-radius: 10px;
	left: 500px;
	min-width: 790px;
	position: fixed;
	top: 500px;
	width: 400px;
	z-index: 1000;
}

#chat_header {
	background: url("../images/chat_header_bg.png") repeat-x;
	border: 2px solid #619829;
	border-radius: 5px 5px 0 0;
	cursor: move;
	padding: 5px 10px 3px;
}

#chat_header span {
	color: #fff;
	font-size: 110%;
	margin: 0;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

#chat_header span span {
	color: #ff0000;
	text-shadow: none;
}

#chat_content {
	background-color: #fff;
	border: 2px solid #dfdfdf;
	border-radius: 0 0 10px 10px;
}

#chat_left {
	float: left;
	min-height: 170px;
	overflow: auto;
	text-align: center;
	width: 22%;
}

#chat_left sup {
	color: #ff6600;
	font-weight: bold;
}

#chat_left p {
	cursor: pointer;
	margin: 0 10px;
	padding: 10px 5px;
}

#chat_left p.active {
	background-color: #99de1d;
}

#chat_right {
	margin-left: 22%;
	padding: 10px;
}

#chat_messages {
	margin-bottom: 5px;
	min-height: 170px;
	overflow: auto;
}

#chat_messages div {
	display: none;
}

#chat_messages div.show {
	display: block;
}

#chat_messages p {
	font-size: 95%;
	margin: 0 0 10px;
}

#chat_messages span {
	font-weight: bold;
	margin-right: 5px;
}

#chat_messages p.staff span {
	color: #ff6600;
}

#chat_actions {
	text-align: center;
}

#chat .button {
	margin: 8px 0;
}

#chat input[type="button"] {
	background: url("../images/chat_button_bg.png") repeat-x;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	font-size: 85%;
	padding: 5px 20px;
}

#chat input[type="button"]:hover {
	background: url("../images/chat_button_bg_active.png") repeat-x;
}

#chat #min {
	background: url("../images/chat_min.png") no-repeat;
	cursor: pointer;
	float: right;
	height: 13px;
	margin-top: 5px;
	width: 13px;
}

#chat #min:hover {
	background: url("../images/chat_min_active.png") no-repeat;
}

#chat_resize {
	background: url("../images/chat_resize.png") no-repeat;
	cursor: se-resize;
	float: right;
	height: 12px;
	margin-right: -2px;
	margin-top: -10px;
	width: 12px;
}

/* BB */

#bb {
	margin: 0 auto;
	border-spacing: 10px 0;
	text-align: center;
}

#bb td {
	background-color: #ececec;
	border: 1px solid #aaa;
	font-size: 120%;
	color: #575757;
	cursor: pointer;
	padding: 0 5px;
}

#bb td:hover {
	color: #009ee3;
}

#bb div {
	background-color: #ececec;
	border: 1px solid #aaa;
	color: #575757;
	display: none;
	font-size: 90%;
	margin-left: -6px;
	margin-top: 5px;
	padding: 5px;
	position: absolute;
}

.hide {
	display: none;
}

/* Rating */

#rating {
	margin: 0 auto 20px;
	text-align: center;
}

#rating h2 {
	margin-bottom: 0;
}

#rating img {
	cursor: pointer;
}

.center--tickets {
	width: calc(100% - 175px);
	box-sizing: border-box;
	padding: 0;
}

.center--tickets-two {
	width: calc(100% - 175px - 300px);
	box-sizing: border-box;
	padding: 0;
}

.adaptive-table--tickets {
	overflow: auto;
	max-width: 100%;
}

.adaptive-table--tickets table {
	min-width: 860px;
	width: auto;
	overflow: hidden;
}

@media (max-width: 1200px) {

	#header_img {
		width: 100%;
		background-position: top center;
		padding-left: 15px;
		padding-right: 15px;
		box-sizing: border-box;
	}

	#header_img table {
		left: 50%;
		-webkit-transform: translateX(-50%);-ms-transform: translateX(-50%);transform: translateX(-50%);
	}

	#content {
		padding: 20px 15px;
	}

	#center, #center_full {
		padding-left: 15px;
		padding-right: 15px;
	}

	#ticket {
		width: 100%;
		box-sizing: border-box;
		margin-top: 0;
	}

	.content--users {
		-ms-flex-wrap: wrap;flex-wrap: wrap;
	}

	.content--users #left {
		/*-webkit-box-flex: 1;-ms-flex-positive: 1;flex-grow: 1;*/
	}

	.content--users #center_full {
		padding-left: 0;
		padding-right: 0;
	}

	#container .content--users {
		justify-content: center;
	}

}

@media (max-width: 1024px) {

	.center--tickets, .center--tickets-two {
		width: 100%;
		box-sizing: border-box;
		padding: 0;
	}

	#left {
		-ms-flex-item-align: center;
		-ms-grid-row-align: center;
		align-self: center;
		text-align: center;
		-ms-flex-preferred-size: auto;
		flex-basis: auto;
	}

	#right {
		-ms-flex-preferred-size: auto;flex-basis: auto;
	}

	#center, #center_full {
		flex-basis: auto;
		flex-grow: 1;
	}

	#panel ul {
		list-style: none;
		padding-left: 0;
	}

	#content {
		justify-content: center;
		-webkit-box-orient: vertical;-webkit-box-direction: normal;-ms-flex-direction: column;flex-direction: column;
	}

	#left {
		/*-webkit-box-flex: 1;-ms-flex-positive: 1;flex-grow: 1;*/
	}

	#center {
		-webkit-box-flex: 1;-ms-flex-positive: 1;flex-grow: 1;
		padding-right: 0;
		padding-left: 15px;
	}

	#center h1 {
		font-size: 28px;
	}

	#right {
		-webkit-box-flex: 1;-ms-flex-positive: 1;flex-grow: 1;
		margin-top: 30px;
		-ms-flex-preferred-size: 100%;flex-basis: 100%;
	}

	#slider div {
		left: 50%;
		-webkit-transform: translateX(-50%);-ms-transform: translateX(-50%);transform: translateX(-50%);
	}

	#slider div.show {
		width: 100%;
	}

	#auth .input {
		width: 100%;
	}

	#auth h3 {
		text-align: center;
	}

	#auth .button {
		display: block;
	}

	#addinfo_auth p {
		text-align: center;
	}

	#articles {
		width: 100%;
	}

	#articles a {
		font-size: 16px;
	}

	#articles .header td:last-child  {
		text-align: center;
	}

	#articles td {
		font-size: 16px;
	}

	a.button {
		font-size: 110%;
	}

	table.data {
		width: 100%;
	}

	.content--users #center_full {
		width: 100%;
		box-sizing: border-box;
		padding: 0;
	}

	.content--users .adaptive-table {
		overflow: auto;
		max-width: 100%;
	}

	.content--users .adaptive-table table {
		min-width: 980px;
		width: auto;
		overflow: hidden;
	}

}

@media (max-width: 880px) {

	.center--tickets {
		width: 100%;
		box-sizing: border-box;
		padding: 0;
	}

	.adaptive-table--tickets {
		overflow: auto;
		max-width: 100%;
	}

	.adaptive-table--tickets table {
		min-width: 860px;
		width: auto;
		overflow: hidden;
	}

}

@media (max-width: 768px) {

	#header h1 {
		font-size: 30px;
	}

	#header h2 {
		font-size: 26px;
	}

	#header_img {
		height: 300px;
	}

}

@media (max-width: 640px) {

	#center, #center_full {
		width: 100%;
		box-sizing: border-box;
		padding: 0;
	}

	.adaptive-table {
		overflow: auto;
		max-width: 100%;
	}

	.adaptive-table table {
		min-width: 560px;
		width: auto;
		overflow: hidden;
	}

	#row_filters tr td {
		display: block;
	}

}

@media (max-width: 560px) {

	#center {
		padding-left: 0;
	}

	form[name='add_article'] table td {
		display: block;
	}

	form[name='ask'] table td {
		display: block;
	}

	form[name='change_avatar'] table td {
		display: block;
	}

	form[name='change_name'] table td {
		display: block;
	}

	form[name='change_email'] table td {
		display: block;
	}

	form[name='change_password'] table td {
		display: block;
	}

	form[name='filter'] table td {
		display: block;
	}

	form[name='add_user'] table td {
		display: block;
	}

	#ticket {
		min-width: 290px;
		padding-left: 10px;
		padding-right: 10px;
	}

}

@media (max-width: 480px) {

	#header h1 {
		font-size: 24px;
	}

	#header h2 {
		font-size: 20px;
	}

	#header_img table tr:first-child {
		display: none;
	}

	#header_img table tr:last-child td {
		display: block;
	}

}

.g-recaptcha > div {
	width: auto !important;
}
