/* MAIN STYLES */

::-webkit-scrollbar { width: 10px;  height: 10px;}
::-webkit-scrollbar-thumb { background: #c0c0c0;  border-radius: 5px;}

* {margin: 0; padding: 0; box-sizing: border-box; vertical-align: middle; }
html, body {
	height: 100%;
	margin: 0;
	display: flex;
	flex-direction: column;
	font-family: "Arial", "sans-serif";
	font-size: 14px;
	background: #eee !important;
	overflow-y: auto;
	color:#222;
}
.header-container {display: flex; justify-content: space-between; align-items: center; width: 970px; height: 100%;}
header, footer {color: white; display:flex; position:sticky; left:0; right:0; z-index:10; flex-shrink: 0;}
header { top:0; height: 93px; display:flex; justify-content:center; background:linear-gradient(#2A5480, #407FA4);}
header > h1 { text-indent: -9999px;}
footer {bottom: 0;height: 60px; background:linear-gradient(#407FA4, #2A5480); justify-content:center; align-items:center; padding-right:20px;}
footer div { padding: 24px; }
footer p { text-align: right; padding: 18px; }
footer a { color: #e8e8e8; font-weight:bold;}

#main { display: grid; grid-template-columns: 200px 750px; left: 0; right: 0; justify-content: center; column-gap: 0; flex: 1; margin:  20px; gap:20px;}
#content {height: auto;  scroll-margin-top: 110px;}

a {color: #3468A8; text-decoration:none; display: inline;}
a:hover, a:active {text-decoration: underline;}
a img { border: 0; }
h1, h3  {text-align: center; margin:10px 0 10px 0;}
h2 {text-align: left; }
b {font-weight:bold;}
legend { font-weight:bold; font-size: 14px;}
small {font-size:12px;}
fieldset { margin-bottom: 10px; padding: 8px; box-shadow:none;}
legend { margin: 0px 8px; color: #244977; }
pre {font: 13px "Courier New"; padding:6px; overflow-x:auto;}
pre b {font-size: 12px;}option {color: #444;}
#clear { clear: both; height: 2px; background: #1F3E64;}
fieldset, pre {background:#fcfcfc; border: 1px solid #ccc;  border-radius: 7px;}
form {width:100%;}
.hidden {display:none;}
.aright { text-align: right; }

/*button input and other */
textarea { display: block; width: 99%;  margin: 3px auto; color:#444;  font:14px "Courier New";}
input[type="checkbox"] {width:16px; height:16px; flex-shrink: 0;}
input[type="text"], input[type="password"], input[type="file"], input[type="date"],select, textarea {outline:none; font-family: "Arial", "sans-serif";
	font-size: 14px; padding: 4px; border: 1px solid #888; border-radius: 6px; background: #fff; margin: 3px 1px; max-width: 100%; color:#444;}
input[type="file"]{padding: 14px 10px;}
input[type="submit"], input[type="button"], button { background: #4478B8; color: #fff;  font-weight: bold; cursor: pointer; margin: 3px 1px; padding:5px 15px; border: 1px solid #ccc;
	border-radius: 7px;}
input[type="submit"]:hover, input[type="button"]:hover, button:hover { background: #4478B8; }
input[readonly] {
	color: #666;
}
input[type="submit"]:hover, input[type="button"]:hover, button:hover {background: #5c8ac9;}

button.toolbar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 7px;
	transition: background-color 0.5s ease;
	margin-right: 10px;
	color: #222;
}

button.table {
	height: 18px;
	width: auto;
	padding: 0 6px;
	font-size: 13px;
	color: #fff;
	border: 1px solid #ccc;
	border-radius: 3px;
	margin: 0 2px 0 0;
	cursor: pointer;
	display: inline-block;
}
button.table.green {
	background-color: green;
}
button.table.gray {
	background-color: #6d6d6d;
}
button.table.blue {
	background-color: blue;
}
button.table.orange {
	background-color: orange;
}
button.table.red {
	background-color: red;
}
button.toolbar:hover{ background-color: #f8f8f8;}

button.toolbar.active {
	background-color: #888;
	color: #fff ;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/*menu*/
#sidebar {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: end;
}
.menu {
	width: 200px;
	display: flex;
	align-items: center;
	padding: 10px;
	transition: background-color 0.3s;
	cursor: pointer;
	white-space: nowrap;
	font-size: 15px;
	letter-spacing: 1px;
	font-weight: 200;
	background-color: #fff;
	color:#222;
	flex-direction: row;
}
a.menu {text-decoration: none;}
.menu:first-child {border-radius: 8px 8px 0 0;}
.menu:last-child {border-radius: 0 0 8px 8px;}
.menu:hover {background-color: #f8f8f8;}
.menu.active {background-color: #888; color: #fff;}

/*layout*/
.flex-block {
	display: inline-flex;
	flex-direction: row;
	flex-flow: wrap;
	justify-content: start;
	min-width: 0;
	width: 100%;
	gap: 20px;
	margin-top: 20px;
	margin-bottom: 20px;
}

.grid-block {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin:20px 0 20px 0;
}

.white_block {
	display: block;
	width: fit-content;
	background: #fcfcfc;
	border: 1px solid #ccc;
	border-radius: 7px;
	margin-bottom: 10px;
	padding: 8px;
	box-shadow: none;
}

/*icons style*/
.icon {
	width: 16px;
	height: 16px;
	display: inline-block;
	fill:#6d6d6d;
	position: relative;
	flex-shrink: 0;
	transform: translateY(-1px);
	margin-right: 10px;
	cursor:pointer;
}
.icon-small {	width: 14px; height: 14px;}
.icon-text {cursor:default;  margin: 0;}
.icon-menu {width: 18px; height: 18px;}
.icon-webftp, .icon-head {width: 20px; height: 20px;}
.icon--toggle { height: 13px; width: 26px;}
button.toolbar svg {width: 20px; height: 20px;}

.menu.active .icon,  button.toolbar.active .icon{fill:#fff;}
/*colourful icons */
.icon--white{ fill:white;}
.icon--black{ fill:#222;}
.icon--inactive {fill:#ccc; cursor:default;}
.icon--green {fill:green;}
.icon--red {fill:#d22;}
.logo {
	width: 195px;
	height: 80px;
	margin-left: 10px;
}

/*table styles */
.table-wrapper {
	display: flex;
	width: 100%;
	flex-direction: column;
	border: 1px solid #ccc;
	border-radius: 10px;
	position: relative;
	background: #fff;
	align-items: start;
	justify-content: start;
	padding: 8px;
	overflow: hidden;
}
.function > td, .function >td:last-child{text-align: center;}
.compressed {width:fit-content;}
.compressed > table {width:auto;}

table {
	/*height: 100%;*/
	width: 100%;
	table-layout: auto;
	border-collapse: separate;
	border-spacing: 4px;
	line-height: 1.3;
}

table, tr, td, th {
	border: none;
	background: none;
}

td {
	text-align: left;
	padding-right:1px;
}
.right td:last-child{text-align: right;}
.big-ellipsis td{ max-width: 440px;}
.medium-ellipsis td { max-width: 340px;}
.small-ellipsis td {max-width: 260px;}
/*.webftp td {*/
/*	width: fit-content;*/
/*	min-width: fit-content;*/
/*	max-width: fit-content;*/
/*}*/
.webftp td{ max-width: 40%;}
.webftp td:nth-of-type(2){ width: 324px;}

.table-grid {
	display: grid;
	grid-template-columns: auto 1fr auto auto auto auto auto auto auto;
	background: #fff;
	padding: 7px;
	border: 1px solid #ccc;
	border-radius: 10px;
	position: relative;
}

.cell {
	display: flex;
	align-items: center;
	flex-flow: wrap;
	padding: 2px 4px;
	min-width: 0;
	position: relative;
}

.row {
	display: contents;
}

.row:nth-child(even) .cell{
	background-color: #f2f2f2;
}

.compressible {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.title:hover::before {
	content: attr(data-tooltip);
	position: absolute;
	top: -5px;
	left: 0;
	transform: translateY(-100%);
	background: #ddd;
	padding: 8px 12px;
	border-radius: 4px;
	white-space: normal;
	width: max-content;
	max-width: 300px;
	z-index: 1000;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/*.title:hover::after {*/
/*	content: '';*/
/*	position: absolute;*/
/*	top: -4px;*/
/*	left: 20px;*/
/*	border: 6px solid transparent;*/
/*	border-top-color: #383c51;*/
/*}*/

/* dns  */
.dns-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}
.dns-row > * {
	flex: 1 1 0;
	min-width: 0;
}
.dns-row > :first-child {
	flex: 5 1 0;
}
.dns-row > :nth-child(2) {flex: 0 0 80px;}
.dns-row > :last-child {
	flex: 10 1 0;
}
.dns-divider {
	height: 1px;
	background: #ccc;
	margin: 7px 0;
	width: 100%;
}
.label {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	font-weight: bold;
	font-size: 14px;
	white-space: nowrap;
}

.editor {
	width: 710px;

}

.nav_bar {
	justify-content: space-between;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin-bottom: 8px;

}

.nav_bar form {
	display: flex;
	flex: 1;
	gap: 5px;
}

.nav_bar input[type="text"] {
	flex: 1;
	min-width: 0;
}
.separate-content {
	display: flex;
	align-items: center;
	gap: 6px;
	max-width: 100%;
	width: auto;
	min-width: 0;
}

.task-icon {
	position: relative;
	cursor: pointer;
	display: inline-block;
}
.task-badge {
	display: flex;
	position: absolute;
	top: -5px;
	right: 0px;
	background: #FFC300;
	color: white;
	font-size: 11px;
	font-weight: bold;
	width: 18px;
	height: 16px;
	vertical-align: center;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
}
.green_circle,.red_circle {
	display: inline-block;
	width: 13px;
	height: 13px;
	border-radius: 50%;
}
.green_circle {
	background:green;
}
.red_circle {
	background:#d22;;
}

.top-right-button {
	position: absolute;
	top: 8px;
	right: 8px;
	margin: 6px;
	z-index: 1;
}

/*set ellipsis for long text */
.ellipsis {
	display: inline-block;
	align-items: center;
	cursor:pointer;
	max-width:  100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-decoration: none;
	min-width: 0
}
.auth {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.login {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	background: #f2f2f2;
}

form.enter {
	width: 300px;
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 9px;
}
form.enter button {
	padding: 10px;
	margin:0;
}
/*Smart input*/

.field, .pass-group, .search-group {
	display: inline-flex;
	position: relative;
	width: auto;
}
.search-group {display: flex;}

.pass-group, .search-group {
	border: 1px solid #888;
	border-radius: 3px;
}

.field input, .field textarea, .field select, .pass-group input, .search-group input{
	flex: 1;
	padding: 10px 8px;
}
.login { padding: 14px 10px;}

.pass-group.valid {
	border: 1px solid #50C878 !important;
}
.pass-group.invalid {
	border: 1px solid red !important;
}
.pass-group input, .pass-group select, .search-group input {
	border: none;
	background: transparent;
	outline: none;
	margin: 0;
}
.search-group {background: 	#FFFFFF;}
.field input:focus,.pass-group:focus-within, .search-group:focus-within {
	border-color: #2b6081;
	background: #fff;
}
.field label,.pass-group label, .search-group label{
	position: absolute;
	font-size: 13px;
	left: 10px;
	top: 50%;
	color: #666;
	transform: translateY(-50%);
	pointer-events: none;
	transition: 0.2s;
	padding: 0 4px;
}
.field:has(textarea) label {top:20px;}

.field input.filled + label,
.field select + label,
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.pass-group input.filled + label,
.pass-group input:focus + label,
.pass-group input:not(:placeholder-shown) + label,
.search-group input.filled + label,
.search-group input:focus + label,
.search-group input:not(:placeholder-shown) + label{
	top: 0;
	background: #fff;
}

/*colapsible div */
/*.collapsible { min-width: 0;}*/
.collapsible .body,.collapsible.open .header  { display: none;}
.collapsible.open .body, .collapsible .header {
	display: flex;
	gap: 2px;
	flex-direction: column;}
.collapsible .header {
	flex-direction: row;
	white-space: wrap;
}
/*special style for mobile addapt */
.hide-on-mobile {display:block;}
.hide-flex-on-mobile {display:flex;}


table.hide-on-mobile {display:table;}
tr.hide-on-mobile {display: table-row;}
td.hide-on-mobile {display: table-cell;}
.show-on-mobile {display: none;}
.show-flex-on-mobile {display: none;}


@media (max-width: 1130px) {
	.header-container {
		width: 750px;
		height: 100%;
	}
	header {position: static;}
	header>h1 {position: relative;}
	footer {position: static;}
	#content { max-width: 100%;overflow-x: hidden; margin-top: 10px;}

	#main {
		grid-template-columns: 750px;
		grid-template-rows: max-content 1fr;
		justify-content: center;
		max-width: 100%;
		margin: 10px;
		gap:10px;
	}

	#sidebar {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}

	.menu,.menu:first-child,.menu:last-child  {
		border-radius: 8px;
		width:100%;
	}

	td {padding-right:2px;}

}
@media (max-width: 770px){
	#main {grid-template-columns: 100%;}
	.show-on-mobile {display: block;}
	.show-flex-on-mobile {display: flex;}
	tr.show-on-mobile {display: table-row;}
	table.show-on-mobile {display:table;}
	.hide-flex-on-mobile, tr.hide-on-mobile, table.hide-on-mobile,td.hide-on-mobile {display: none;}
	.medium-ellipsis td{ max-width: 220px;}
	.webftp td:nth-of-type(2){width:460px; max-width: 460px;}
	.hide-on-mobile{ display: none;}
	.table-grid {grid-template-columns: auto 1fr auto auto auto auto;}
	.editor {
		width: 640px;
	}
}

@media (max-width: 600px){
	#main {grid-template-columns: 100%;}
	.menu { font-size: 15px; letter-spacing: 0; font-weight: 100; min-width: 0;}
	.dns-row { gap: 4px;}
	.dns-row > * { flex: 1 10 12%;}
	.dns-row > :first-child { flex: 10 1 75%;}
	.dns-row > :last-child { flex: 10 1 84%;}
	.big-ellipsis td{ max-width: 165px;}
	.medium-ellipsis td { max-width: 110px;}
	/*.webftp td:nth-of-type(2){width: 110px;}*/
	.small-ellipsis td {max-width: 70px;}
	/*table.show-on-mobile > tbody > tr > td {*/
	/*	max-width: 200px;*/
	/*}*/
	.editor {
		width: 320px;
	}
	.task-badge {
		right: -2px;
		font-size: 10px;
		padding: 1px 3px;
	}

	.grid-block {
		grid-template-columns: 1fr;
		gap: 10px;
		margin: 10px 0 10px 0;
	}
	.flex-block{gap:10px; margin: 10px 0 10px 0;}
	.header-container { width: 95%; height: 100%;}
	button.toolbar {
		width: 100%;
		justify-content: start;
		gap: 6px;
		color: #222;
		margin-right: 4px;
	}
	/*icons styles*/
	.icon {width: 13px; height: 13px;}
	.icon-menu {width: 16px; height: 16px; margin: 0 5px 0 0;}
	.icon-head {width: 18px; height: 18px; margin: 0 5px 0 0;}
	.icon-webftp {width: 21px; height: 21px;}
	.icon--toggle { height: 13px; width: 26px;}
	.logo {
		width: 110.06px;
		height: 45px;
	}
	button.toolbar svg {width: 17px; height: 17px;}
}


