/* ----- ----- ----- ----- ----- MAIN ----- ----- ----- ----- ----- */

#admin-container {
	width: 1400px;
	margin: auto;
	padding: 80px 0 50px 0;
}

#admin-container header {
	width: 1400px;
	height: 82px;
}

#admin-container #header-warning {
	top: 82px;
}

#admin-panel {
	background: #101010;
	display: flex;
}

#admin-content {
	width: 1060px;
	float: left;
	padding: 20px;
}

.admin-staticstics {
	display: flex;
}

.stat-col {
	width: 250px;
	float: left;
	margin-right: 15px;
}

.stat-row {
	width: 170px;
	display: inline-block;
	color: #7d7d7d;
}

.aligned-page {
	display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ----- ----- ----- ----- ----- HEADER ----- ----- ----- ----- ----- */

#admin-userbar {
	padding: 2px 20px 2px 0;
	background: #000000;
	text-align: right;
}

#admin-header {
	height: 60px;
	background: url('/res/img/admin/background_header_admin.png') right no-repeat;
}

/* ----- ----- ----- ----- ----- FOOTER ----- ----- ----- ----- ----- */

#admin-footer {
	text-align: center;
	color: #3f3f3f;
	padding-top: 10px;
}

/* ----- ----- ----- ----- ----- MENU ----- ----- ----- ----- ----- */

#admin-left-menu {
	width: 300px;
	background: #000000;
	float: left;
}

.admin-ul, .admin-submenu {
	margin: 0;
	padding: 0;
	cursor: pointer;
	list-style: none;
}

.admin-ul .active {
	background-color: #161616;
}

.admin-menu-catbutton, 
.admin-manu-catname {
	padding: 15px 20px 15px 45px;
}

.admin-menu-button {
	padding: 15px 20px 15px 60px;
}

.admin-menu-catbutton,
.admin-menu-catname {
	transition: background-color 0.3s;
	position: relative;
}

.admin-submenu {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.2s ease;
}

.admin-submenu.open {
	max-height: 500px;
	opacity: 1;
}

.admin-menu-button {
	transition: all 0.2s;
	display: block;
}

.admin-menu-catbutton:hover, 
.admin-manu-catname:hover, 
.admin-menu-button:hover {
	background: #ffffff12;
	color: #f1f1f1;
	background-repeat: no-repeat;
    background-position-x: 18px;
    background-position-y: 14px;
    background-size: 6%;
}

.admin-menu-catbutton, .admin-menu-cat {
	background-repeat: no-repeat;
    background-position-x: 18px;
    background-position-y: 14px;
    background-size: 6%;
}

#icon_main {
	background-image: url('/res/img/admin/icon_main.png');
}

#icon_control {
	background-image: url('/res/img/admin/icon_control.png');
}

#icon_news {
	background-image: url('/res/img/admin/icon_news.png');
}

#icon_wiki {
	background-image: url('/res/img/admin/iсon_wiki.png');
}

#icon_util {
	background-image: url('/res/img/admin/iсon_util.png');
}

/* ----- ----- ----- ----- ----- TASKS ----- ----- ----- ----- ----- */

.task-form {
	padding: 5px;
    background: #ffffff1c;
    border: 1px dashed #ffffff3b;
}

.task-parameter {
	padding: 2px 0;
	display: flex;
	align-items: center;
}

.task-textinput {
	width: -webkit-fill-available;
	min-height: 52px;
    font-size: 15px;
    color: var(--color-light);
}

.task-parameter-name {
	width: -webkit-fill-available;
}

.task-body {
	margin: 5px 0;
}

.task-title {
	font-weight: bold;
    padding-left: 5px;
}

.task-message {
	padding: 5px;
	font-size: 13px;
}

.task-date {
	margin-top: -15px;
    font-size: 13px;
    text-align: right;
    padding-right: 5px;
}

.task-class-normal {
	background: #ffffff0d;
}

.task-type-normal {
	background: #ffffff2b;
}

.task-class-urgent {
	background: #ffb52817;
}

.task-type-urgent {
	background: #ffb52866;
	color: #ffb300;
}

.task-class-critical {
	background: #ff00000a;
}

.task-type-critical {
	background: #ff00002b;
	color: red;
}

/* ----- ----- ----- ----- ----- PAGES ----- ----- ----- ----- ----- */

#aa-page-selector {
	width: max-content;
}

/* ----- Main page ----- */

#admin-content-cols {
	display: flex;
}

#admin-content-info {
	width: 650px;
}

#admin-content-tasks {
	border: 1px solid var(--border-light);
    background: #1d2121;
	margin-left: 10px;
	width: 348px;
	height: fit-content;
	max-width: 500px;
	padding: 20px;
}

#panel-task-list {
	max-height: 400px;
	overflow: auto;
}

/* ----- Access ----- */

.access-block {
	padding: 15px;
    background: #ffffff1c;
    border: 1px dashed #ffffff3b;
}

.access-block-status {
	padding: 20px 0;
    text-align: center;
	font-size: 22px;
}

.access-granted {
	background: #1e3524;
    color: #d5ebd0;
}

.access-denied {
	background: #351e1e;
    color: #ebd0d0;
}

.access-block-title {
	padding-left: 10px;
    text-transform: uppercase;
}

.access-change {
	text-align: center;
    padding: 10px 0;
    background: #ffffff0a;
    cursor: pointer;
}

.access-change:hover {
	background: #ffffff1a;
}

.access-change:active {
	background: #ffffff1f;
	color: #ffffff;
}

.access-block-change {
	border: 3px solid #ffffff0a;
}

.access-status-var-line {
	display: flex;
	padding: 10px 0;
}

.access-status-var-radio {
	width: 200px;
	text-align: right;
}

.access-status-var-value {
	width: 808px;
	margin-left: 20px;
}

.access-status-password-line {
	padding: 10px 0;
	padding-left: 218px;
}

.access-status-button-line {
	padding: 10px 0;
	text-align: center;
}

.access-status-message-success {
	padding: 15px 0;
    text-align: center;
    color: #d5ebd0;
}

.access-status-message-error {
	padding: 15px 0;
    text-align: center;
    color: #ebd0d0;
}

/* ----- Safity ----- */

.safity-message {
	color: var(--color-dark);
}

.admin-safity-large-block {
	margin: 50px 150px;
    padding: 20px;
    background: #ffffff1c;
    border: 3px solid #ffffff0a
}

.safity-var-line, .safity-var-aligned {
	display: flex;
	align-items: center;
	padding: 10px 0;
}

.safity-var-aligned {
	justify-content: center;
}

.safity-var-title {
	width: 200px;
}

.safity-var-value {
	width: 494px;
	margin-left: 20px;
}

#change-group {
	width: 220px;
}

/* ----- Tasks ----- */

.task-bar {
	display: flex;
	align-items: center;
}

.task-filter-buttons {
	width: max-content;
}

.task-filter-buttons .active {
	background: var(--color-button-hover);
}

.task-statistics {
	width: max-content;
	margin-left: 20px;
}

#task-block-empty {
	width: 1060px;
	height: 596px;
	background: url('/res/img/admin/tasks-empty.png') no-repeat;
	display: flex;
    align-items: center;
    justify-content: center;
	font-size: 22px;
}

/* ----- Log list ----- */

.panel-log-navigation {
	padding: 10px 0;
}

.panel-log-bar {
	padding: 10px 0;
	display: flex;
    justify-content: space-between;
}

/* ----- News list ----- */

.panel-news-navigation {
	padding: 10px 0;
}

.panel-news-bar {
	padding: 10px 0;
	display: flex;
    justify-content: space-between;
}

/* ----- Login ----- */

#login-container {
	background: #101010;
	width: 300px;
	padding: 30px;
}

.login-input {
	font-size: 16px;
    padding: 5px 20px !important;
    margin: 5px 0;
    width: 260px !important;
}

.login-button {
	margin-top: 10px;
}

.login-recover-pass {
	text-align: left;
	margin-left: 20px;
}

.login-error-message {
    padding: 15px 0;
    color: var(--color-error);
}

.captcha-container {
	display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.captcha-refresh-btn, .captcha-refresh-btn:hover, .captcha-refresh-btn:active {
	width: 40px;
    height: 40px;
	background-image: url('/res/img/icons/icon_refresh.png');
    background-repeat: no-repeat;
    background-position: center;
}

/* ----- Help ----- */

#help-container {
	background: #101010;
	width: 500px;
	padding: 30px;
}

/* ----- ----- ----- ----- ----- TABLES ----- ----- ----- ----- ----- */

.panel-line-header {
	border-top: 1px dashed var(--border-light);
	border-bottom: 1px dashed var(--border-light);
	height: 48px;
}

.panel-line-header div {
	border-left: 1px solid var(--border-light);
	float: left;
	padding: 15px 10px;
	color: var(--color-dark);
}

.panel-line {
	border-bottom: 1px dashed var(--border-light);
	display: flex;
}

.panel-line div {
	border-left: 1px solid var(--border-light);
	float: left;
	padding: 5px 10px;
}

.panel-line-empty {
	border-left: 1px solid var(--border-light);
	border-right: 1px solid var(--border-light);
	border-bottom: 1px dashed var(--border-light);
	padding: 15px 0;
	text-align: center;
}

/* ----- logs ----- */

.logs-line-date {
	width: 150px;
	text-align: center;
}

.logs-line-code {
	width: 80px;
}

.logs-line-owner {
	width: 160px;
	text-align: center;
}

.logs-line-message {
	width: 585px;
	border-right: 1px solid var(--border-light);
}

.panel-line-system {
	background: #8913130f;
}

.panel-line-warning {
	color: var(--color-error);
}

.panel-line-fishily {
	color: #a58b29;
}

.panel-line-cron {
	color: #39b78a;
}

/* ----- news ----- */

.news-line-id {
	width: 42px;
	text-align: center;
}

.news-line-name {
	width: 326px;
}

.news-line-cat {
	width: 105px;
	text-align: center;
}

.news-line-created {
	width: 175px;
	text-align: center;
}

.news-line-hide {
	width: 60px;
	text-align: center;
}

.news-line-nav {
	border-right: 1px solid var(--border-light);
	width: 225px;
	text-align: center;
}