/**
 *  Edge is a clean HTML5 theme for LuCI. It is based on luci-theme-Argon
 *
 *  luci-theme-edge
 *      Copyright 2020 Kiddin'
 *
 *  Have a bug? Please create an issue here on GitHub!
 *      https://github.com/kiddin9/luci-theme-edge/issues
 *
 *  luci-theme-material: header
 *      Copyright 2015 Lutty Yang <lutty@wcan.in>
 *		https://github.com/LuttyYang/luci-theme-material/
 *
 *  Agron Theme
 *	    https://demos.creative-tim.com/argon-dashboard/index.html
 *
 *  Login background
 *      https://unsplash.com/
 *  Font generate by Icomoon<icomoon.io>
 *
 *  Licensed to the public under the Apache License 2.0
 */
/*
 *	Include base and custom css
 */
@import url("custom.css?v=1");
/*
  *	Icon Css and Fonts 
  */
@font-face {
	font-family: 'Google Sans';
    src:
        url('data:application/font-woff;charset=utf-8;base64, ') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
	font-family: 'argon';
  src: url('fonts/argon.woff?vncylf') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

[class^="icon-"],
[class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
	font-family: 'argon' !important;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
  /* Better Font Rendering =========== */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: #5A8DEE;
	text-decoration: none;
	background-color: transparent;
}

*::-webkit-scrollbar:hover {
	background-color: rgba(100, 100, 100, .09);
}

*::-webkit-scrollbar-thumb:vertical {
	background: rgba(100, 100, 100, .5);
	-webkit-border-radius: 100px;
}

*::-webkit-scrollbar-thumb:vertical:active {
	background: rgba(100, 100, 100, .61);
	-webkit-border-radius: 100px;
}

*::-webkit-scrollbar {
	width: 0.5em !important;
	overflow: visible;
	border-radius: 4px;
	-webkit-border-radius: 4px;
}

*::-webkit-scrollbar-track {
	opacity: 0;
	-webkit-transition: all .5s;
}

*::-webkit-scrollbar-thumb {
	overflow: visible;
	border-radius: 4px;
	background: rgba(100, 100, 100, .2);
}

.icon-hello-world:before {
	content: "\e90e";
}

.icon-expand_more:before {
	content: "\e20b";
}

.icon-menu:before {
	content: "\e20e";
}

.icon-favorite:before {
	content: "\e291";
}

.icon-spinner:before {
	content: "\e603";
}

.icon-delete:before {
	content: "\e900";
}

.icon-edit:before {
	content: "\e901";
}

.icon-use:before {
	content: "\e902";
}

.icon-loading:before {
	content: "\e903";
}

.icon-switch:before {
	content: "\e904";
}

.icon-error:before {
	content: "\e905";
}

.icon-dashboard:before {
	content: "\e906";
}

.icon-logout:before {
	content: "\e907";
}

.icon-Network:before {
	content: "\e908";
}

.icon-services:before {
	content: "\e909";
}

.icon-system:before {
	content: "\e90a";
}

.icon-vpn:before {
	content: "\e90b";
}

.icon-storage:before {
	content: "\e90c";
}

.icon-statistics:before {
	content: "\e90d";
}

.icon-angle-right:before {
	content: "\e90f";
}

.icon-password:before {
	content: "\e910";
}

.icon-user:before {
	content: "\e971";
}

.icon-question:before {
	content: "\f059";
}

.sk-folding-cube {
	position: absolute;
	width: 40px;
	height: 40px;
	left: 50%;
	top: 50%;
	margin: -20px 0 0 -20px;
	-webkit-transform: rotateZ(45deg);
	transform: rotateZ(45deg);
}

.sk-folding-cube .sk-cube {
	float: left;
	width: 50%;
	height: 50%;
	position: relative;
	-webkit-transform: scale(1.1);
	-ms-transform: scale(1.1);
	transform: scale(1.1);
}

.sk-folding-cube .sk-cube:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #5A8DEE;
	-webkit-animation: sk-foldCubeAngle 2.4s infinite linear both;
	animation: sk-foldCubeAngle 2.4s infinite linear both;
	-webkit-transform-origin: 100% 100%;
	-ms-transform-origin: 100% 100%;
	transform-origin: 100% 100%;
}

.sk-folding-cube .sk-cube2 {
	-webkit-transform: scale(1.1) rotateZ(90deg);
	transform: scale(1.1) rotateZ(90deg);
}

.sk-folding-cube .sk-cube3 {
	-webkit-transform: scale(1.1) rotateZ(180deg);
	transform: scale(1.1) rotateZ(180deg);
}

.sk-folding-cube .sk-cube4 {
	-webkit-transform: scale(1.1) rotateZ(270deg);
	transform: scale(1.1) rotateZ(270deg);
}

.sk-folding-cube .sk-cube2:before {
	-webkit-animation-delay: 0.3s;
	animation-delay: 0.3s;
}

.sk-folding-cube .sk-cube3:before {
	-webkit-animation-delay: 0.6s;
	animation-delay: 0.6s;
}

.sk-folding-cube .sk-cube4:before {
	-webkit-animation-delay: 0.9s;
	animation-delay: 0.9s;
}

@-webkit-keyframes sk-foldCubeAngle {
	0%,
  10% {
		-webkit-transform: perspective(140px) rotateX(-180deg);
		transform: perspective(140px) rotateX(-180deg);
		opacity: 0;
	}

	25%,
  75% {
		-webkit-transform: perspective(140px) rotateX(0deg);
		transform: perspective(140px) rotateX(0deg);
		opacity: 1;
	}

	90%,
  100% {
		-webkit-transform: perspective(140px) rotateY(180deg);
		transform: perspective(140px) rotateY(180deg);
		opacity: 0;
	}
}

@keyframes sk-foldCubeAngle {
	0%,
  10% {
		-webkit-transform: perspective(140px) rotateX(-180deg);
		transform: perspective(140px) rotateX(-180deg);
		opacity: 0;
	}

	25%,
  75% {
		-webkit-transform: perspective(140px) rotateX(0deg);
		transform: perspective(140px) rotateX(0deg);
		opacity: 1;
	}

	90%,
  100% {
		-webkit-transform: perspective(140px) rotateY(180deg);
		transform: perspective(140px) rotateY(180deg);
		opacity: 0;
	}
}

.table {
	position: relative;
	display: table;
}

.tr {
	display: table-row;
}

.thead {
	display: table-header-group;
}

.tbody {
	display: table-row-group;
}

.tfoot {
	display: table-footer-group;
}

.td,
.th {
	line-height: normal;
	display: table-cell;
	padding: 0.5em;
	text-align: center;
	vertical-align: middle;
}

.th {
	font-weight: bold;
}

.tr.placeholder {
	height: 4em;
}

.tr.placeholder > .td {
	line-height: 3;
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 0.4rem 0 !important;
	text-align: center !important;
	background: inherit;
}

.td[width="33%"] {
	padding: 1.1em 2rem;
}

.table[width="33%"],
.th[width="33%"],
.td[width="33%"] {
	width: 33%;
}

.table[width="100%"],
.th[width="100%"],
.td[width="100%"] {
	width: 100%;
}


* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: inherit;
	font-weight: normal;
	line-height: 1.1rem;
	color: inherit;
}

html {
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

body {
	font-family: "Google Sans", "Microsoft Yahei", "WenQuanYi Micro Hei", "sans-serif", "Helvetica Neue", "Helvetica", "Hiragino Sans GB";
	font-size: 0.82rem;
	color: #4d5156
}

html,
body {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

select {
	padding: 0.36rem 0.8rem;
	color: #555;
	border: thin solid #ccc;
	background-color: #fff;
	background-image: none;
}

div {
	position: relative;
}

.btn,
button,
select,
input,
.cbi-button,
.cbi-dropdown {
	color: #4d5156;
	border: none;
	border-bottom: 1px solid #9e9e9e;
	outline: 0;
	background-image: none;
	box-shadow: none;
	transition: box-shadow 0.15s ease;
}

input:not([type]), input[type=text]:not(.browser-default), input[type=password]:not(.browser-default), input[type=email]:not(.browser-default), input[type=url]:not(.browser-default), input[type=time]:not(.browser-default), input[type=date]:not(.browser-default), input[type=datetime]:not(.browser-default), input[type=datetime-local]:not(.browser-default), input[type=tel]:not(.browser-default), input[type=number]:not(.browser-default), input[type=search]:not(.browser-default), textarea.materialize-textarea {
	background-color: transparent;
	border: none;
	border-bottom: 1px solid #9e9e9e;
	border-radius: 0;
	outline: none;
	margin: 0;
	padding: 0 0.5rem;
	-webkit-box-shadow: none;
	box-shadow: none;
	-webkit-box-sizing: content-box;
	box-sizing: content-box;
	transition: box-shadow .3s, border .3s;
}

.cbi-value-field>div {
	position: relative;
}

.focus-input {
	position: absolute;
	display: block;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	pointer-events: none;
}

.focus-input::before {
	content: "";
	display: block;
	position: absolute;
	top: 2.2rem;
	left: 0;
	width: 0;
	height: 2px;
	-webkit-transition: all 0.4s;
	-o-transition: all 0.4s;
	-moz-transition: all 0.4s;
	transition: all 0.4s;
	background: #5A8DEE;
}

select+.focus-input::before {
	top: 2.12rem;
}

.node-main-login .focus-input::before {
	top: 2.73rem;
}

input:focus + .focus-input::before,select:focus + .focus-input::before {
	width: 100%;
}

select,
.cbi-dropdown {
	width: inherit;
	cursor: default;
}

select:not([multiple="multiple"]):focus,
input:not(.cbi-button):focus,
.cbi-dropdown:focus {
}

.cbi-dropdown,
select[multiple="multiple"] {
}

pre {
	overflow: auto;
}

code {
	font-size: 1rem;
	font-size-adjust: 0.35;
	padding: 1px 3px;
	color: #101010;
	border-radius: 2px;
	background: #ddd;
}

abbr {
	cursor: help;
	text-decoration: underline;
	color: #797474;
}

hr {
	margin: 1rem 0;
	opacity: 0.1;
	border-color: #eee;
}

header,
.main {
	width: 100%;
}

footer {
	font-size: 0.8rem;
	overflow: hidden;
	padding: 1rem;
	text-align: right;
	white-space: nowrap;
	color: #aaa;
	text-shadow: 0 0 2px #bbb;
}

footer > a {
	text-decoration: none;
	color: #aaa;
}

small {
	font-size: 90%;
	line-height: 1.42857143;
	white-space: normal;
}

.main {
	position: relative;
	top: 0;
	bottom: 0;
	overflow-y: auto;
	height: 100%;
}

.main > .loading {
	position: fixed;
	z-index: 1000;
	top: 0;
	display: block;
	width: 100%;
	height: 100%;
	pointer-events: none;
	background-color: #f0f0f0;
}

.main > .loading > span {
	font-family: monospace;
	font-size: 2rem;
	font-size-adjust: 0.35;
	position: relative;
	top: 12.5%;
	display: block;
	text-align: center;
	color: #888;
}

.main > .loading > span > .loading-img {
	position: relative;
	top: 0.1rem;
	left: 0.05rem;
	display: inline-block;
	width: 1.25rem;
	height: 1.25rem;
	margin-right: 1rem;
	animation: anim-rotate 2s infinite linear;
	background: url(icons/spinner.svg) no-repeat center;
}

@keyframes anim-rotate {
	0% {
		-webkit-transform: rotate(0);
		-ms-transform: rotate(0);
		transform: rotate(0);
	}

	100% {
		-webkit-transform: rotate(360deg);
		-ms-transform: rotate(360deg);
		transform: rotate(360deg);
	}
}

p {
	line-height: 1.8rem;
}

.main-left {
	top: 0;
	float: left;
	width: 15%;
	width: calc(0% + 15rem);
	height: 100%;
	background-color: #fff;
	background-color: var(--menu-bg-color);
	box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
	transition: box-shadow .25s, -webkit-box-shadow .25s;
	overflow-x: auto;
	position: fixed;
	z-index: 100;
}

.main-left .sidenav-header {
	padding: 1.5rem 0 0.6rem;
	text-align: center;
	width: calc(0% + 13rem);
}

.main-left .sidenav-header .brand {
	font-size: 1.8rem;
	color: #5A8DEE;
	font-family: "TypoGraphica";
	text-decoration: none;
	text-align: center;
	cursor: default;
	vertical-align: text-bottom;
	white-space: nowrap;
}

.brand img {
	width: 180px;
}

.main-right {
	float: right;
	width: 85%;
	width: calc(100% - 15rem);
	height: 100%;
	transition: all 0.2s;
	overflow-x: hidden;
}

.main-right > #maincontent {
	position: relative;
	z-index: 50;
	margin-top: 2rem;
}

.pull-right {
	float: right;
}

.pull-left {
	float: left;
}

.nowrap:not(.td) {
	white-space: nowrap;
}
[disabled="disabled"] {
	pointer-events: none;
}

header {
	color: #fff;
	color: var(--header-color);
	display: none;
}

header .fill {
	padding: 0.8rem 0;
}

header .container {
	height: 2rem;
	padding: 0 1rem;
}

header .container .showSide {
	display: none;
	font-size: 1.4rem;
}

header .container .brand {
	font-size: 1.5rem;
	color: #fff;
	font-family: "TypoGraphica";
	text-decoration: none;
	padding-left: 1rem;
	cursor: default;
	vertical-align: text-bottom;
	display: none;
}

header .container .pull-right {
	float: right;
	margin-top: 0rem;
	display: flex;
}

header .fill .status {
	position: absolute;
	top: 25%;
	right: 1em;
	float: right;
}

header .fill .status * {
	position: relative;
	top: 0.2rem;
	float: left;
	margin-left: 0.3rem;
	cursor: pointer;
}

#xhr_poll_status {
	display: flex;
	margin-left: 0.5rem;
}

#xhr_poll_status * {
	color: #fff;
}

.modal.alert-message {
	background-color: #5A8DEE;
	color: #fff;
}

.modal.alert-message p {
	font-weight: bold;
	font-size: 0.9rem;
	text-align: center;
}

.modal .label.warning {
	background-color: #FDAC41 !important;
	color: #fff !important;
}

.danger,.error {
	background-color: rgba(255, 91, 92, 0.2) !important;
	color: #FF5B5C !important;
}

.danger a,.error a {
	color: #FF5B5C !important;
}

.warning {
	background-color: rgba(253, 172, 65, 0.2) !important;
	color: #FDAC41 !important;
}

.warning a {
	color: #FDAC41 !important;
}

.modal.warning {
	color: #fff !important;
	background-color: #FDAC41 !important;
}

.success {
	background-color: rgba(57, 218, 138, 0.2) !important;
	color: #39DA8A !important;
}

.success a {
	color: #39DA8A !important;
}

.alert,
.alert-message {
	font-weight: bold;
	margin-bottom: 1em;
	padding: 0.7rem 1rem;
	background: rgba(90, 141, 238, 0.2);
	color: #5A8DEE;
	border: 0;
}

.alert a,
.alert-message a {
	color: #5A8DEE;
}

.alert h4,
.alert-message h4 {
	padding: 0rem 1.5rem 0.75rem 0rem;
}

.alert .btn,
.alert-message .btn {
	height: auto;
}

.alert-message > h4 {
	font-size: 110%;
	font-weight: bold;
}

.alert-message .btn {
	padding: 0.3rem 0.6rem;
}

.container .alert,
.container .alert-message {
	margin-top: 1rem;
}
/*
 *	Main Menu
 */
.main .main-left {
	transition: all 0.2s;
}

.main .main-left .nav {
	margin-top: 0rem;
}

.main .main-left .nav li {
	padding: 0.5rem 1rem;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.main .main-left .nav li a {
	display: block;
	color: #5f6368;
	color: var(--menu-color);
}

.main .main-left .nav li {
	padding: 0;
}

.main .main-left .nav li ul {
	display: none;
}

.main .main-left .nav>li>a {
	display: block;
	margin: 0.4rem 0.5rem !important;
	padding: 0.5rem 0 0.5rem 2.5rem !important;
	transition: box-shadow .25s, -webkit-box-shadow .25s;
	border-radius: 2px;
	text-decoration: none;
	cursor: default;
	transition: all 0.2s;
	position: relative;
	font-size: 0.93rem;
}

.main .main-left .nav li .menu.active {
	color: #fff;
	background: #5A8DEE;
}

.main .main-left .nav li .menu.active::before {
	color: #fff !important;
}

.main .main-left .nav li .menu.active::after {
	transform: rotate(90deg);
	color: #fff !important;
}

.main .main-left .nav>li>a:first-child:hover {
	cursor: pointer;
	color: #fff;
	background: #5A8DEE;
}

.main .main-left .nav>li>a:first-child:hover::before {
	color: #fff !important;
}

.main .main-left .nav>li>a:first-child::before {
	font-family: 'argon' !important;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
  /* Better Font Rendering =========== */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	position: absolute;
	left: 0.8rem;
	padding-top: 3px;
	transition: all 0.3s;
}

.main .main-left .nav li .menu::after {
	position: absolute;
	right: 0.5rem;
	top: 0.8rem;
	font-family: 'argon' !important;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
  /* Better Font Rendering =========== */
	-moz-osx-font-smoothing: grayscale;
	content: '\e90f';
	transition: all 0.15s ease;
	color: #ced4da;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	transition: all 0.3s;
}

.main .main-left .nav li .menu[data-title=Status]:before {
	content: "\e906";
	color: #5e72e4;
}

.main .main-left .nav li .menu[data-title=System]:before {
	content: "\e90a";
	color: #fb6340;
}

.main .main-left .nav li .menu[data-title=Services]:before {
	content: "\e909";
	color: #11cdef;
}

.main .main-left .nav li .menu[data-title=NAS]:before {
	content: "\e90c";
	color: #f3a4b5;
}

.main .main-left .nav li .menu[data-title=VPN]:before {
	content: "\e90b";
	color: #8965e0;
}

.main .main-left .nav li .menu[data-title=Network]:before {
	content: "\e908";
	color: #8965e0;
}

.main .main-left .nav li .menu[data-title=Bandwidth_Monitor]:before {
	content: "\e90d";
	color: #2dce89;
}

.main .main-left .nav li .menu[data-title=Docker]:before {
	content: "\e911";
	color: #6699ff;
}

.main .main-left .nav li .menu[data-title=Statistics]:before {
	content: "\e913";
	color: #8965e0;
}

.main .main-left .nav li .menu[data-title=Control]:before {
	content: "\e912";
	color: #5e72e4;
}

.main .main-left .nav li .menu[data-title=Asterisk]:before {
	content: "\e914";
	color: #fb6340;
}

.main .main-left .nav li a[data-title=Logout]:before {
	content: "\e907";
	color: #adb5bd;
}

.main .main-left .nav li:hover {
	background: none;
}

.main .main-left .nav li .slide-menu {
	margin: 0 0.5rem 0 2.5rem;
	padding: 0rem 0.5rem;
}

.main .main-left .nav li .slide-menu li {
	position: relative;
	border-radius: 2px;
	margin: 0.2rem 0;
	padding: 0.5rem 0rem;
	background: none;
}

.main .main-left .nav li .slide-menu li a {
	white-space: nowrap;
	text-decoration: none;
}

.main .main-left .nav li .slide-menu li::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2px;
	background-color: #5A8DEE;
	transition: all 0.2s;
}

.main .main-left .nav li .slide-menu li:hover {
	background: none;
}

.main .main-left .nav li .slide-menu li:hover::after {
	width: 100%;
}

.main .main-left .nav li .slide-menu .active {
	background: none;
	color: var(--menu-color);
}

.main .main-left .nav li .slide-menu .active a {
	color: var(--menu-color);
}

.main .main-left .nav li .slide-menu .active::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background-color: #5A8DEE;
	transition: all 0.2s;
}

.main .main-left .nav li .slide-menu .active:hover {
	background: none;
}

.main .main-left .nav li .slide-menu .active:hover::after {
	width: 100%;
}

body[class*="node-"] > .main > .main-left > .nav > .slide > .menu::before {
	transition: transform 0.1s ease-in-out;
}

body[class*="node-"] > .main > .main-left > .nav > .slide > .menu.active::before {
	transition: transform 0.2s ease-in-out;
}

.main > .main-left[style*="overflow: hidden"] > .nav > .slide > .menu::before {
	display: none;
}

#maincontent > .container {
	padding:0 2%;
}

.Overview.node-admin-status #maincontent > .container {
	padding:0;
}

.Overview.node-admin-status #maincontent > .container h2{
	padding-left:2rem;
}
ul {
	line-height: normal;
}

li {
	list-style-type: none;
}

h1 {
	font-size: 2rem;
	padding-bottom: 10px;
	border-bottom: thin solid #eee;
}

h2 {
	font-size: 1.8rem;
	padding: 1rem 2rem;
}

h3 {
	font-size: 1.4rem;
	margin: 0rem 0 0 0;
	padding: 2rem 2rem 1.25rem 2rem;
}

h4 {
	font-size: 1.2rem;
	margin: 1.2rem 0 0 0;
	padding: 0rem 2rem 0.75rem 2rem;
}

h5 {
	font-size: 1rem;
	margin: 2rem 0 0 0;
	padding-bottom: 10px;
}

.container .cbi-section{
	margin-bottom:1rem;
	
}

.cbi-modal .cbi-section,
.cbi-section .cbi-section {
	padding: 0;
	box-shadow: none;
}

.cbi-modal .cbi-tabmenu {
	margin-left: 0;
}

.cbi-map-descr,
.cbi-section-descr {
	font-size: small;
	line-height: 2rem;
	padding: 0 0 0.5rem 0;
}

.cbi-section-node {
	padding-left: 2rem;
}

.cbi-section .cbi-section-node {
	padding-left: 0;
}

.cbi-section-descr {
	color: #404040;
}

.cbi-map-descr + fieldset {
	margin-top: 1rem;
}

.cbi-map-descr > abbr {
	cursor: help;
	text-decoration: underline;
}

.cbi-section > legend {
	display: none !important;
}

fieldset.cbi-section{
border:none;	
}

fieldset > fieldset,
.cbi-section > .cbi-section {
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
}

.cbi-section > h3:first-child,
.panel-title {
	font-size: 1.4rem;
	line-height: 1;
	display: block;
	width: 100%;
	margin: 0;
	margin-bottom: 0;
	padding: 1.25rem 2rem;
	color: #32325d;
	color: var(--gray-dark);
}

.cbi-section > h3:first-child,
.cbi-section > h4:first-child,
.cbi-section > p:first-child,
[data-tab-title] > h3:first-child,
[data-tab-title] > h4:first-child,
[data-tab-title] > p:first-child {
	padding: 0.5rem;
}

table {
	border-spacing: 0;
	border-collapse: collapse;
}

table,
.table {
	overflow-y: hidden;
	width: 100%;
}

table > tbody > tr > td,
table > tbody > tr > th,
table > tfoot > tr > td,
table > tfoot > tr > th,
table > thead > tr > td,
table > thead > tr > th,
.table > .tbody > .tr > .td,
.table > .tbody > .tr > .th,
.table > .tfoot > .tr > .td,
.table > .tfoot > .tr > .th,
.table > .thead > .tr > .td,
.table > .thead > .tr > .th,
.table > .tr > .td.cbi-value-field,
.table > .tr > .th.cbi-section-table-cell {
	padding: 0.5rem;
}

.container > .cbi-section:first-of-type > .table[width="100%"] > .tr > .td {
	padding: 0.6rem;
}

.cbi-section-table-cell {
	line-height: 1.1;
	align-self: flex-end;
	flex: 1 1 auto;
}

tr > td,
tr > th,
.tr > .td,
.tr > .th,
.cbi-section-table-row::before,
#cbi-wireless > #wifi_assoclist_table > .tr:nth-child(2) {
	padding: 1rem 1rem 1rem 1rem;
}

#cbi-wireless .td,
#cbi-network .tr:first-child > .td,
.table[width="100%"] > .tr:first-child > .td,
[data-page="admin-network-diagnostics"] .tr > .td,
.tr.table-titles > .th,
.tr.cbi-section-table-titles > .th {
	border-top: 0 !important;
	padding: 1.1em 1rem;
	line-height: 1.3rem;
}

.cbi-tab-descr {
	padding: 1rem;
}

.table[width="100%"] > .tr:first-child > .td {
	margin: auto 0;
}

.cbi-section-table-row {
	margin-bottom: 1rem;
	text-align: center !important;
	background: #f4f4f4;
}

.cbi-section-table-row:last-child {
	margin-bottom: 0;
}

.cbi-section-table-row > .cbi-value-field .cbi-dropdown,
.cbi-section-table-row > .cbi-value-field .cbi-input-select,
.cbi-section-table-row > .cbi-value-field .cbi-input-text,
.cbi-section-table-row > .cbi-value-field .cbi-input-password {
	width: 100%;
	min-width: 0 !important;
}

.cbi-section-table-row > .cbi-value-field [data-dynlist] > input,
.cbi-section-table-row > .cbi-value-field input.cbi-input-password {
	width: calc(100% - 1.5rem);
}

.cbi-section-table-row .td {
	text-align: center !important;
}

table > tbody > tr,
div > .table > .tr,.cbi-map >.cbi-section .cbi-value {
	background-color: #fff;
	transition: background-color .25s
}

table > tbody > tr:nth-of-type(4n+2),
div > .table > .tr:nth-of-type(4n+2),.cbi-map >.cbi-section .cbi-value:nth-of-type(2n) {
	background-color: #e5effd;
}

table > tbody > tr:nth-of-type(4n+2):hover,
div > .table > .tr:nth-of-type(4n+2):hover {
	background-color: #d9e9ff;
}

table > tbody > tr:nth-of-type(4n),
div > .table > .tr:nth-of-type(4n) {
	background-color: rgba(223, 56, 18, 0.04);
}

table > tbody > tr:nth-of-type(4n):hover,
div > .table > .tr:nth-of-type(4n):hover {
	background-color: rgba(223, 56, 18, 0.09);
}

.cbi-map >.cbi-section .cbi-value:nth-of-type(2n) {
	background-color: #e5effdb8;
}

.cbi-map >.cbi-section .cbi-value:nth-of-type(2n):hover {
	background-color: #e5effd;
}

/* fix multiple table */
table table,
.table .table,
.cbi-value-field table,
.cbi-value-field .table,
td > table > tbody > tr > td,
.td > .table > .tbody > .tr > .td,
.cbi-value-field > table > tbody > tr > td,
.cbi-value-field > .table > .tbody > .tr > .td {
	border: 0;
}
/* button style */
.btn,
.cbi-button,
.item::after {
	font-size: 0.8rem;
	display: inline-block;
	width: auto !important;
	padding: 0 0.8rem;
	cursor: pointer;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	transition: all 0.2s ease-in-out;
	text-align: center;
	vertical-align: middle;
	text-decoration: none;
	color: #fff;
	border: 0;
	border-radius: 0.2rem;
	background-image: none;
	-webkit-appearance: none;
	-ms-touch-action: manipulation;
	touch-action: manipulation;
}

.cbi-button-up,
.cbi-button-down {
	font-size: 1.2rem;
	display: inline-block;
	min-width: 0;
	padding: 0.2rem 0.3rem;
	color: transparent !important;
	background: url(icons/arrow.svg) no-repeat center !important;
	background-size: 12px 20px !important;
}

.cbi-button-up {
	transform: scaleY(-1);
}

.cbi-button:not(select) {
	-webkit-appearance: none !important;
}

button:hover,
.waves-input-wrapper:hover,
.btn:hover,
.cbi-button:hover,
.item:hover::after {
	opacity: 0.7;
	top: 0.1rem;
}

.cbi-button-up:hover,
.cbi-button-up:focus {
	opacity: 0.7;
}

.btn:disabled,
.cbi-button:disabled {
	cursor: not-allowed;
	pointer-events: none;
	opacity: 0.5;
	box-shadow: none;
}
/* gray */
.alert-message [class="btn"],
.modal div[class="btn"],
.cbi-button-find,
.cbi-button-link,
.cbi-button-up,
.cbi-button-down,
.cbi-button-neutral,
.cbi-button[name="zero"],
.cbi-button[name="restart"],
.cbi-button[onclick="hide_empty(this)"] {
	color: #fff;
	background-color: #A3AFBD !important;
}
/* dark blue */
.btn.primary,
.cbi-page-actions .cbi-button-save,
.cbi-page-actions .cbi-button-apply + .cbi-button-save,
.cbi-button-add,
.cbi-button-save,
.cbi-button-positive,
.cbi-button-link,
.cbi-button[value="Enable"],
.cbi-button[value="Scan"],
.cbi-button[value^="Back"],
.cbi-button-neutral[onclick="handleConfig(event)"] {
	font-weight: normal;
	color: #fff;
	border: none;
	background-color: #23bd70 !important;
}
/* light blue */
.cbi-page-actions .cbi-button-apply,
.cbi-section-actions .cbi-button-edit,
.cbi-button-edit,
.cbi-button-apply,
.cbi-button-reload,
.cbi-button-action,
.cbi-button[value="Submit"],
.cbi-button[value="Upload"],
.cbi-button[value$="Apply"],
.cbi-button[onclick="addKey(event)"] {
	font-weight: normal;
	color: #fff;
	background-color: #5A8DEE !important;
}
/* red */
.btn.danger,
.cbi-section-remove > .cbi-button,
.cbi-button-remove,
.btn[onclick="handleOpkg(event)"],
.cbi-button-reset,
.cbi-button-negative,
.cbi-button[value="Stop"],
.cbi-button[value="Kill"],
.cbi-button[onclick="reboot(this)"],
.cbi-button-neutral[value="Restart"] {
	font-weight: normal;
	color: #fff;
	border: none;
	background-color: #fdb75a !important;
}
/* yellow */
.btn[value="Dismiss"],
.cbi-button[value="Terminate"],
.cbi-button[value="Reset"],
.cbi-button[value="Disabled"],
.cbi-button[onclick^="iface_reconnect"],
.cbi-button[onclick="handleReset(event)"],
.cbi-button-neutral[value="Disable"] {
	font-weight: normal;
	color: #fff;
	border: none;
	background-color: #23bd70 !important;
}
/* green */
.cbi-button-success,
.cbi-button-download,
.cbi-button[name="backup"],
.cbi-button[value="Download"],
.cbi-button[value="Save mtdblock"] {
	font-weight: normal;
	color: #fff;
	background-color: #5cb85c !important;
}

.cbi-page-actions .cbi-button-link:first-child {
	float: left;
}

.a-to-btn {
	text-decoration: none;
}

.cbi-value-field .cbi-button-add {
	font-weight: bold;
	margin: 9px 0 4px 3px;
	padding: 1px 6px;
}

.tabs > li,
.cbi-tabmenu > li {
	display: inline-block;
	padding: 0;
	margin: 0;
	cursor: pointer;
}

.tabs > li,.cbi-tabmenu > li {
	border-bottom: 0.2rem solid transparent;
	background-color: #fff;
}

.tabs > li[class~="active"],
.tabs > li:hover {
	border-bottom-color: #5A8DEE;
	background-color: #669bff36;
}

.tabs > li:hover {
	cursor: pointer;
}

.tabs > li > a,
.cbi-tabmenu > li > a {
	padding: 0.8rem 1.9rem;
	text-decoration: none;
	color: #404040;
	display: inline-block;
}

.tabs > li[class~="active"] > a {
	color: #5A8DEE;
	color: #5A8DEE;
}

ul.tabs,.tabmenu .tabs,#tabmenu .tabs,ul.cbi-tabmenu {
	padding-left: 2.5%;
	box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12);
	transition: box-shadow .25s, -webkit-box-shadow .25s;
	border-radius: 2px;
	border-bottom: 0;
	margin-bottom: 10px;
	background-color: #fff;
	padding-top: 1rem;
}

#packages{
	margin-left: -2%;
    width: 105%;
}

#packages td.col-10 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 30em;
    overflow: hidden;
}

.cbi-tabmenu > li:hover {
	background-color: rgba(246,178,181,0.2);
}

.cbi-tabmenu > li[class~="cbi-tab"] {
	background-color: rgba(246,178,181,0.2);
	border-bottom-color: #ff9b84;
}

.cbi-tabmenu > li[class~="cbi-tab"] a {
	color: #ee6e73;
}

.cbi-section .cbi-section-remove:nth-of-type(2n),
.container > .cbi-section .cbi-section-node:nth-of-type(2n) {
	background-color: #f9f9f9;
}
[data-tab-title] {
	overflow: hidden;
	height: 0;
	opacity: 0;
	margin: 0;
	padding: 0rem 0rem !important;
}
[data-tab-title] p {
	margin-left: 1rem;
	margin-bottom: 1rem;
}
[data-tab-active="true"] {
	overflow: visible;
	height: auto;
	opacity: 1;
	transition: opacity 0.25s ease-in;
	margin: inherit !important;
}

.cbi-section-node-tabbed {
	margin-top: 0;
	padding: 0;
	transition: box-shadow .25s, -webkit-box-shadow .25s;
	border-radius: 2px;
}

.cbi-value-field,
.cbi-value-description {
	display: table-cell;
	position: relative;
	margin-top: 1rem;
	margin-bottom: 1rem;
}

.cbi-value-field abbr,
.cbi-value-description abbr {
	color: #32325d;
	color: var(--gray-dark);
}

.cbi-value-description {
	line-height: inherit !important;
}

.cbi-value-title {
	display: table-cell;
	float: left;
	width: 15rem;
	padding-right: 2rem;
	text-align: right;
	word-wrap: break-word;
}

.cbi-value {
	display: inline-block;
	width: 100%;
	padding: 0.5rem 1rem;
	line-height: 2.4rem;
}

.cbi-value-field >* {
	line-height: 1.3rem;
}

.cbi-value ul {
	line-height: 1.25;
}

.cbi-value-field .cbi-dropdown,
.cbi-value-field .cbi-input-select,
.cbi-value input[type="text"],
.cbi-value input[type="password"] {
	min-width: 18rem;
}

#cbi-firewall-zone .cbi-input-select,
#cbi-network-switch_vlan .cbi-input-select {
	min-width: 11rem;
}

#cbi-network-switch_vlan .cbi-input-text {
	max-width: 3rem;
}

.cbi-input-invalid {
	color: #f5365c;
	border-bottom-color: #f5365c;
}

.cbi-section-error {
	font-weight: bold;
	line-height: 1.42857143;
	margin: 18px;
	padding: 6px;
	border: thin solid #f5365c;
	border-radius: 3px;
	background-color: #fce6e6;
}

.cbi-section-error ul {
	margin: 0 0 0 20px;
}

.cbi-section-error ul li {
	font-weight: bold;
	color: #f5365c;
}

.td[data-title]::before {
	font-weight: bold;
	display: none;
	padding: 0.25rem 0;
	content: attr(data-title) ":\20";
	text-align: left;
	white-space: nowrap;
}

.tr.placeholder .td[data-title]::before {
	display: none;
}

.tr[data-title]::before,
.tr.cbi-section-table-titles.named::before {
	font-weight: bold;
	display: table-cell;
	align-self: center;
	flex: 1 1 5%;
	padding: 0.25rem;
	content: attr(data-title) "\20";
	text-align: center;
	vertical-align: middle;
	white-space: normal;
	word-wrap: break-word;
}

.cbi-rowstyle-1 {
	background-color: #f9f9f9;
}

.cbi-rowstyle-2 {
}

.cbi-rowstyle-2 .cbi-button-up,
.cbi-rowstyle-2 .cbi-button-down,
body:not(.Interfaces) .cbi-rowstyle-2:first-child {
	background-color: #fff !important;
}

.cbi-section-table .cbi-section-table-titles .cbi-section-table-cell {
	width: auto !important;
}

.td.cbi-section-actions {
	text-align: right !important;
	vertical-align: middle;
}

.td.cbi-section-actions > * {
	display: inline-flex;
}

.td.cbi-section-actions > * > *,
.td.cbi-section-actions > * > form > * {
	margin: 0 5px;
	display: flex;
	align-items: center;
}

.td.cbi-section-actions > * > form {
	display: inline-flex;
	margin: 0;
}
/* lists */
.cbi-dynlist {
	line-height: 1.3;
	flex-direction: column;
	min-height: 30px;
	cursor: text;
}

.cbi-dynlist > .item {
	position: relative;
	max-width: 25rem;
	margin-right: 2em;
	margin-bottom: 0.3rem;
	padding: 1em 0.25em 0.25em 0;
	pointer-events: none;
	color: #8898aa;
	border-bottom: 2px solid #5A8DEE;
	border-bottom: 2px solid #5A8DEE;
	outline: 0;
}

.cbi-dynlist[name="sshkeys"] > .item {
	max-width: none;
}

.cbi-dynlist > .item::after {
	font-weight: bold;
	position: absolute;
	right: -2em;
	bottom: 0;
	display: inline-flex;
	min-height: 17px;
	padding: 0 6px;
	content: "\00D7";
	pointer-events: auto;
	color: #fff;
	border: thin solid #f5365c;
	border: thin solid var(--red);
	background-color: #f5365c;
	background-color: var(--red);
}

.cbi-dynlist > .item > span {
	white-space: normal;
	word-break: break-word;
}

.cbi-dynlist > .add-item {
	display: inline-flex;
	align-items: center;
	width: 100%;
	min-width: 16rem;
}

.cbi-dynlist > .add-item:not([ondrop]) > input {
	overflow: hidden;
	width: 100%;
	min-width: 15rem;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.cbi-dynlist > .add-item[ondrop] > input {
	min-width: 13rem;
}

.cbi-dynlist,
.cbi-dropdown {
	position: relative;
	display: inline-flex;
	padding: 0.2rem;
}

.cbi-dropdown[placeholder*="select"] {
	max-width: 25rem;
	margin-top: -3px;
}

.cbi-dropdown > ul {
	display: flex;
	overflow-x: hidden;
	overflow-y: auto;
	width: 100%;
	margin: 0 !important;
	padding: 0;
	list-style: none;
	outline: 0;
}

#cbi-adblock-global-adb_sources .cbi-dropdown > ul.preview {
	display: none;
}

.cbi-button-apply > ul.preview {
	display: none;
}

.cbi-button-apply > ul.preview li {
	color: #fff;
}

.cbi-button-apply > ul:first-child li {
	color: #fff;
}

.cbi-dropdown > .open {
	flex-basis: 15px;
}

.cbi-dropdown > .open,
.cbi-dropdown > .more {
	font-size: 1rem;
	font-weight: 900;
	display: flex;
	flex-direction: column;
	flex-grow: 0;
	flex-shrink: 0;
	justify-content: center;
	padding: 0 0.25em;
	cursor: default;
	text-align: center;
	outline: 0;
	line-height: 1rem;
}

.cbi-dropdown > .more,
.cbi-dropdown > ul > li[placeholder] {
	font-weight: bold;
	display: none;
	color: #777;
	text-shadow: 1px 1px 0 #fff;
}

.cbi-dropdown > ul > li {
	display: none;
	overflow: hidden;
	align-items: center;
	align-self: center;
	flex-grow: 1;
	flex-shrink: 1;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.cbi-dropdown > ul > li .hide-open {
	display: initial;
}

.cbi-dropdown > ul > li .hide-close {
	display: none;
}

.cbi-dropdown > ul > li[display]:not([display="0"]) {
	border-left: thin solid #ccc;
}

.cbi-dropdown[empty] > ul {
	max-width: 1px;
}

.cbi-dropdown > ul > li > form {
	display: none;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

.cbi-dropdown > ul > li img {
	margin-right: 0.25em;
	vertical-align: middle;
}

.cbi-dropdown > ul > li > form > input[type="checkbox"] {
	height: auto;
	margin: 0;
	display:inline-block;
}

.cbi-dropdown > ul > li input[type="text"] {
	height: 20px;
}

.cbi-dropdown[open] > ul.dropdown {
	position: absolute;
	z-index: 1100;
	display: block;
	width: auto;
	min-width: 100%;
	max-width: none;
	max-height: 200px;
	border: thin solid #918e8c;
	background: #f6f6f6;
	box-shadow: 0 0 4px #918e8c;
	color: var(--main-menu-color);
	left: 0;
}

.cbi-dropdown[open] > ul.dropdown li {
	color: #000;
}

.cbi-dropdown > ul > li[display],
.cbi-dropdown[open] > ul.preview,
.cbi-dropdown[open] > ul.dropdown > li,
.cbi-dropdown[multiple] > ul > li > label,
.cbi-dropdown[multiple][open] > ul.dropdown > li,
.cbi-dropdown[multiple][more] > .more,
.cbi-dropdown[multiple][empty] > .more {
	display: flex;
	align-items: center;
	flex-grow: 1;
}

.cbi-dropdown[empty] > ul > li,
.cbi-dropdown[optional][open] > ul.dropdown > li[placeholder],
.cbi-dropdown[multiple][open] > ul.dropdown > li > form {
	display: block;
}

.cbi-dropdown[open] > ul.dropdown > li .hide-open {
	display: none;
}

.cbi-dropdown[open] > ul.dropdown > li .hide-close {
	display: initial;
}

.cbi-dropdown[open] > ul.dropdown > li {
	border-bottom: thin solid #ccc;
	padding: 0.5rem 0.8rem;
}

.cbi-dropdown[open] > ul.dropdown > li[selected] {
	background: #b0d0f0;
}

.cbi-dropdown[open] > ul.dropdown > li.focus {
	background: linear-gradient(90deg, #a3c2e8 0%, #84aad9 100%);
}

.cbi-dropdown[open] > ul.dropdown > li:last-child {
	margin-bottom: 0;
	border-bottom: 0;
}

.cbi-dropdown[open] > ul.dropdown > li[unselectable] {
	opacity: 0.7;
}

.cbi-dropdown[open] > ul.dropdown > li > input.create-item-input:first-child:last-child {
	width: 100%;
}

.cbi-dropdown[disabled] {
	pointer-events: none;
	opacity: 0.6;
}

.cbi-dropdown .zonebadge {
	width: 100%;
}

.cbi-dropdown[open] .zonebadge {
	width: auto;
}
/* progressbar */
.cbi-progressbar {
	position: relative;
	min-width: 170px;
	height: 20px;
	margin: 6px 0;
	border: thin solid #999;
	border-radius: 0.2rem;
	box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
}

@keyframes progress-bar-stripes {
	from {
		background-position: 0.357rem 0;
	}

	to {
		background-position: 0 0;
	}
}

.cbi-progressbar > div {
	width: 0;
	height: 100%;
	transition: width 0.25s ease-in;
	background-color: #5A8DEE;
	background-image: linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);
	background-size: auto auto;
	animation: progress-bar-stripes 1s linear infinite;
}

.cbi-progressbar::after {
	font-family: monospace;
	font-size: 1em;
	font-weight: bold;
	font-size-adjust: 0.38;
	line-height: normal;
	position: absolute;
	top: 2px;
	right: 0;
	bottom: 2px;
	left: 0;
	overflow: hidden;
	content: attr(title);
	text-align: center;
	white-space: pre;
	text-overflow: ellipsis;
	color: #ff4500d1;
}

#modal_overlay {
	position: fixed;
	z-index: 900;
	top: 0;
	right: 10000px;
	bottom: 0;
	left: -10000px;
	overflow-y: scroll;
	transition: opacity 0.125s ease-in;
	opacity: 0;
	background: rgba(0, 0, 0, 0.7);
	-webkit-overflow-scrolling: touch;
}

.modal {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	width: 90%;
	min-width: 270px;
	max-width: 695px;
	min-height: 32px;
	margin: 25vh auto;
	padding: 1em;
	border-radius: 3px !important;
	background: #fff;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.12);
}

.modal > * {
	line-height: normal;
	flex-basis: 100%;
	max-width: 100%;
}

.modal > pre,
.modal > textarea {
	font-size: 1rem;
	font-size-adjust: 0.35;
	overflow: auto;
	margin-bottom: 0.5em;
	padding: 8.5px;
	cursor: auto;
	white-space: pre-wrap;
	color: #eee;
	outline: 0;
	background-color: #101010;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.12);
}

.modal > h4 {
	margin: 0.5em 0;
}

.modal ul {
	margin-left: 2.2em;
}

.modal li {
	list-style-type: square;
	color: #808080;
}

.modal p {
	word-break: break-word;
	margin: 1rem 0;
}

h3+p,h4+p {
	margin-top: 0 !important;
}

.modal .label {
	font-size: 0.6rem;
	font-weight: normal;
	padding: 0.1rem 0.3rem;
	cursor: default;
	border-radius: 0;
	background: #9b9b9b;
	color: #fff;
}

.modal .label.notice {
	color: #fff;
	background: #5A8DEE;
}

body.modal-overlay-active {
	overflow: hidden;
	height: 100vh;
}

body.modal-overlay-active #modal_overlay {
	right: 0;
	left: 0;
	opacity: 1;
}

.spinning {
	position: relative;
	padding-left: 32px !important;
}

.spinning::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0.2em;
	width: 32px;
	content: "";
	background: url(../resources/icons/loading.gif) no-repeat center;
	background-size: 16px;
}
/* luci */
.hidden {
	display: none;
}

.left,
.left::before {
	text-align: left !important;
}

.right,
.right::before {
	text-align: right !important;
}

.center,
.center::before {
	text-align: center !important;
}

.top {
	align-self: flex-start !important;
	vertical-align: top !important;
}

.bottom {
	align-self: flex-end !important;
	vertical-align: bottom !important;
}

.inline {
	display: inline;
}

.cbi-page-actions {
	padding-top: 1rem;
	text-align: right;
}

.node-main-login .cbi-page-actions {
	padding-right: 0;
}

.cbi-page-actions > form[method="post"] {
	display: inline-block;
}

.th[data-type="button"],
.td[data-type="button"],
.th[data-type="fvalue"],
.td[data-type="fvalue"] {
	flex: 1 1 2em;
	text-align: center;
}

.ifacebadge {
	display: inline-flex;
	padding: 0.5rem 0.8rem;
	border-bottom: thin solid #ccc;
	background: #eee;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

td > .ifacebadge,
.td > .ifacebadge {
	font-size: 0.8rem;
	background-color: #f0f0f0;
}

.ifacebadge > em,
.ifacebadge > img {
	display: inline-block;
	align-self: flex-start;
	margin: 0 0.2rem;
}

.ifacebadge > img + img {
	margin: 0 0.2rem 0 0;
}

.network-status-table {
	display: flex;
	flex-wrap: wrap;
}

.network-status-table .ifacebox {
	flex-grow: 1;
}

.network-status-table .ifacebox-body {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.network-status-table .ifacebox-body > span {
	flex: 10 10 auto;
	height: 100%;
}

.network-status-table .ifacebox-body > div {
	display: flex;
	flex-wrap: wrap;
}

.network-status-table .ifacebox-body .ifacebadge {
	align-items: center;
	flex: 1 1 auto;
	min-width: 220px;
	margin: 0.5em 0em 0 0em;
	padding: 0.5em;
	background-color: #fff;
}
/* textarea */
textarea {
	font-family: monospace;
	width: 95%;
	min-width: 28rem;
	padding: 0.8rem;
	line-height: 1.6rem !important;
	box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
	transition: box-shadow .25s, -webkit-box-shadow .25s;
	border-radius: 2px;
	border: 0 !important;
}

textarea:focus{
	outline: none;
	border: 1px solid #5A8DEE !important;
	box-shadow: 0 0px 5px 0 #5A8DEE;
}

.cbi-section textarea {
	margin: 0rem;
}

#syslog {
	font-size: small;
	line-height: 1.25;
	width: 100%;
	padding: 1rem;
	resize: none;
	color: #eee;
	border: 0;
	box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
	transition: box-shadow .25s, -webkit-box-shadow .25s;
	border-radius: 2px;
	background-color: #242424;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.12);
	max-height: 100% !important;
}

#syslog:focus {
	outline: 0;
}
/* config changes */
.uci-change-list {
	font-family: monospace;
}

.uci-change-list ins,
.uci-change-legend-label ins {
	display: block;
	padding: 2px;
	text-decoration: none;
	border: thin solid #0f0;
	background-color: #cfc;
}

.uci-change-list del,
.uci-change-legend-label del {
	font-style: normal;
	display: block;
	padding: 2px;
	text-decoration: none;
	border: thin solid #f00;
	background-color: #fcc;
}

.uci-change-list var,
.uci-change-legend-label var {
	font-style: normal;
	display: block;
	padding: 2px;
	text-decoration: none;
	border: thin solid #ccc;
	background-color: #eee;
}

.uci-change-list var ins,
.uci-change-list var del {
	font-style: normal;
	padding: 0;
	white-space: pre;
	border: 0;
}

.uci-change-legend {
	padding: 5px;
}

.uci-change-legend-label {
	float: left;
	width: 150px;
}

.uci-change-legend-label > ins,
.uci-change-legend-label > del,
.uci-change-legend-label > var {
	display: block;
	float: left;
	width: 10px;
	height: 10px;
	margin-right: 4px;
}

.uci-change-legend-label var ins,
.uci-change-legend-label var del {
	line-height: 0.4;
	border: 0;
}

.uci-change-list var,
.uci-change-list del,
.uci-change-list ins {
	padding: 0.5rem;
}
/* other fix */
#iwsvg,
#iwsvg2,
#bwsvg {
	border: thin solid #d4d4d4 !important;
}

#iwsvg,
[data-page="admin-status-realtime-bandwidth"] #bwsvg {
	border-top: 0 !important;
}

.ifacebox {
	line-height: 1.25;
	display: inline-flex;
	flex-direction: column;
	min-width: 100px;
}

.ifacebox-head {
	padding: 0.25em;
	background: #eee;
}

.ifacebox-head.active {
	background: #5A8DEE;
}

.ifacebox-head.active * {
	color: #fff;
	color: var(--white);
}

.ifacebox-body {
	padding: 0.5em 2rem;
	line-height: 1.6em;
}

.cbi-image-button {
	margin-left: 0.5rem;
}

.zonebadge {
	display: inline-block;
	padding: 0.2rem 0.5rem;
}

.zonebadge .ifacebadge {
	margin: 0.1rem 0.2rem;
	padding: 0.2rem 0.3rem;
	border: thin solid #6c6c6c;
}

.zonebadge > input[type="text"] {
	min-width: 10rem;
	margin-top: 0.3rem;
	padding: 0.16rem 1rem;
}

.zonebadge > em,
.zonebadge > strong {
	display: inline-block;
	margin: 0 0.2rem;
}

.cbi-value-field .cbi-input-checkbox,
.cbi-value-field .cbi-input-radio {
	margin-right: 5px;
}

.cbi-value-field > ul > li {
	display: flex;
}

.cbi-value-field > ul > li > label {
	margin-top: 0.5rem;
}

.cbi-value-field > ul > li .ifacebadge {
	margin-top: -0.5rem;
	margin-left: 0.4rem;
	background-color: #eee;
}

.cbi-section-table-row > .cbi-value-field .cbi-dropdown {
	min-width: 7rem;
}

.cbi-section-create {
	display: inline-flex;
	align-items: center;
	margin: 0.25rem 0 0.25rem 1rem;
}

.cbi-section-create > * {
	margin: 0.5rem;
}

.cbi-section-remove {
	padding: 0.5rem;
}

div.cbi-value var,
td.cbi-value-field var,
.td.cbi-value-field var {
	font-style: italic;
	color: #0069d6;
}

.cbi-optionals {
	padding: 1rem 1rem 0 1rem;
	border-top: thin solid #ccc;
}

.cbi-dropdown-container {
	position: relative;
}

.cbi-tooltip-container,
span[data-tooltip],
span[data-tooltip] .label {
	cursor: help !important;
}

.cbi-tooltip {
	position: absolute;
	z-index: 1000;
	left: -1000px;
	padding: 2px 5px;
	transition: opacity 0.25s ease-out;
	white-space: pre;
	pointer-events: none;
	opacity: 0;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 0 2px #444;
}

.cbi-tooltip-container:hover .cbi-tooltip {
	left: auto;
	transition: opacity 0.25s ease-in;
	opacity: 1;
}

.zonebadge .cbi-tooltip {
	margin: -1.5rem 0 0 -0.5rem;
	padding: 0.25rem;
	background: inherit;
}

.zonebadge-empty {
	color: #404040;
	background: repeating-linear-gradient(45deg, rgba(204, 204, 204, 0.5), rgba(204, 204, 204, 0.5) 5px, rgba(255, 255, 255, 0.5) 5px, rgba(255, 255, 255, 0.5) 10px);
}

.zone-forwards {
	display: flex;
	min-width: 10rem;
}

.zone-forwards > * {
	flex: 1 1 45%;
}

.zone-forwards > span {
	flex-basis: 10%;
	padding: 0 0.25rem;
	text-align: center;
}

.zone-forwards .zone-src,
.zone-forwards .zone-dest {
	display: flex;
	flex-direction: column;
}

.label,#indicators span {
	font-size: 0.8rem;
	padding: 0.3rem 0.8rem;
	white-space: nowrap;
	text-decoration: none;
	text-transform: uppercase;
	border-radius: 3px;
	text-shadow: none;
	margin: 0 0.5rem;
	color: #fff;
	background: #5A8DEE;
}

#indicators span[data-indicator="poll-status"] {
	color: #FDAC41 !important;
	background-color: #FFEED9;
}

#indicators span[data-indicator="uci-changes"] {
	color: #39DA8A !important;
	background-color: #D2FFE8;
}

input[type="checkbox"],
input[type="radio"] {
	position: relative;
	right: 0.2rem;
	margin: 0;
	vertical-align: bottom;
}

label[data-index][data-depends] {
	padding-right: 2em;
}

.showSide {
	display: none;
}

.darkMask {
	position: fixed;
	z-index: 99;
	display: none;
	width: 100%;
	height: 100%;
	content: "";
	top: 0;
	background-color: rgba(0, 0, 0, 0.56);
}
/* diagnostics */
#diag-rc-output > pre,
#command-rc-output > pre,
[data-page="admin-services-wol"] .notice code {
	font-size: 1.2rem;
	font-size-adjust: 0.35;
	line-height: normal;
	display: block;
	overflow-y: hidden;
	width: 100%;
	padding: 8.5px;
	white-space: pre;
	color: #eee;
	background-color: #101010;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.12);
}
[data-page="admin-network-diagnostics"] .table {
	box-shadow: none;
}

input[name="ping"],
input[name="traceroute"],
input[name="nslookup"] {
	width: 80%;
}
/* fix Main Login */
.node-main-login .main {
	top: 0;
	height: 100% !important;
}

.node-main-login .main .main-left {
	display: none;
}

.node-main-login .main .main-right {
	width: 100%;
	text-align: center;
	overflow: hidden;
}

.node-main-login .main .main-right header {
	background: none !important;
	box-shadow: none !important;
	display: none !important;
}

.node-main-login .main .main-right .login-bg {
	display: block;
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0px;
	top: 0px;
	background-size: cover;
	background-color: #000;
	background-position: top center;
	transition: all 0.5s;
}

.node-main-login .main .main-right .login-bg.blur {
	transform: scale(1.05);
	-webkit-filter: blur(5px);
  /* Chrome, Safari, Opera */
	filter: blur(5px);
}

.node-main-login .main .main-right #maincontent {
	height: 100%;
	padding-top: 23vh;
	padding-bottom:1rem;
	margin-top: 0rem;
	background-color: transparent !important;
	text-align: center;
	display: inline-block;
	z-index: 999;
}

.node-main-login .main .main-right #maincontent .container {
	display: inline-block;
	padding: 1rem 1.2rem;
	position: relative;
	box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
	transition: box-shadow .25s, -webkit-box-shadow .25s;
	border-radius: 2px;
	text-align: left;
	background: rgba(255, 255, 255, 0.75);
	margin: 0;
}

.node-main-login .main .main-right #maincontent .alert-message.warning {
	position: absolute;
	color: #fff;
	width: calc(100%);
	box-sizing: border-box;
	margin-top: -3.5rem;
	border-radius: 5px !important;
	padding: 0.5rem 1rem;
	text-align: center;
	background-color: #eea236  !important;
}

.node-main-login .main .main-right #maincontent .alert-message p {
	color: #fff;
	font-weight: normal;
	font-size: 0.83rem;
}

.node-main-login .main .main-right #maincontent .alert-message.error {
	position: absolute;
	color: #fff;
	width: calc(100%);
	background-color: #f0ad4e;
	border-color: #eea236;
	box-sizing: border-box;
	margin-top: -7.5rem;
	border-radius: 5px !important;
	padding: 1rem 1rem 0.5rem 1rem;
	text-align: center;
}

.node-main-login .main .main-right #maincontent .alert-message.error p {
	color: #fff;
}

.alert-message p {
	text-align: center;
}

.node-main-login .main .main-right #maincontent .alert-message.error h4 {
	font-size: 1rem;
}

.node-main-login .main .main-right #maincontent .alert-message.error .btn {
	height: auto;
}

.node-main-login .main .main-right #maincontent .container .cbi-map h2 {
	display: block;
	margin: 10px auto 10px auto;
	padding: 0;
	text-align: center;
}

.node-main-login .main .main-right #maincontent .container .cbi-map .cbi-map-descr {
	text-align: center;
	padding: 1rem;
	color: #8898aa;
	font-size: 1.2rem;
}

.node-main-login .main .main-right #maincontent .container .cbi-map .cbi-section {
	padding: 0.5rem;
	margin-top: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

.node-main-login .main .main-right #maincontent .container .cbi-map .cbi-section .cbi-section-node {
	padding: 0;
}

.node-main-login .main .main-right #maincontent .container .cbi-map .cbi-section .cbi-section-node .cbi-value {
	display: block;
	padding: 0;
	background: none;
}

.node-main-login .main .main-right #maincontent .container .cbi-map .cbi-section .cbi-section-node .cbi-value * {
	display: inline-block !important;
}

.node-main-login .main .main-right #maincontent .container .cbi-map .cbi-section .cbi-section-node .cbi-value .cbi-value-title {
	display: none !important;
}

.node-main-login .main .main-right #maincontent .container .cbi-map .cbi-section .cbi-section-node .cbi-value .cbi-value-field {
	position: relative;
	width: 18rem;
	margin-bottom: 1em;
}

.node-main-login .main .main-right #maincontent .container .cbi-map .cbi-section .cbi-section-node .cbi-value .cbi-value-field input {
	font-size: 1rem;
	line-height: 1.5;
	display: block;
	width: 100%;
	height: calc(2.75rem + 2px);
	padding: 0.625rem 0.75rem;
	transition: all 0.15s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	color: #8898aa;
	background-clip: padding-box;
	box-sizing: border-box;
	padding-left: 3em !important;
	margin: 0;
	text-align: center;
	text-indent: -3rem;
	background: transparent content-box !important;
	box-sizing: border-box;
	height: 0 !important;
	padding: 1.38rem 0;
}

.node-main-login .main .main-right #maincontent .container .cbi-map .cbi-section .cbi-section-node .cbi-value .cbi-value-field input:focus {
	color: #8898aa;
	outline: 0;
}

.node-main-login .main .main-right #maincontent .container .cbi-map .cbi-section .cbi-section-node .cbi-value .cbi-value-field:before {
	font-family: 'argon' !important;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	content: "\e971";
	color: #adb5bd;
	font-size: 1.5rem;
	position: absolute;
	z-index: 100;
	left: 10px;
	top: 10px;
}

.node-main-login .main .main-right #maincontent .container .cbi-map .cbi-section .cbi-section-node .cbi-value.cbi-value-last .cbi-value-field:before {
	content: "\e910";
}

.node-main-login .main .main-right #maincontent .container .cbi-page-actions {
	text-align: center;
	padding-top: 0;
	margin-bottom: 20px;
}

.node-main-login .main .main-right #maincontent .container .cbi-page-actions input {
	padding: 0.7rem 5.5rem
}

.node-main-login .main .main-right #maincontent .container .cbi-page-actions .cbi-button {
	background-color: #5a8deec7;
}

.node-main-login .main .main-right #maincontent .container .cbi-page-actions .cbi-button.cbi-button-reset {
	display: none !important;
}

.node-main-login .main .main-right #maincontent footer {
	bottom: 0;
	position: absolute;
	width: 100%;
	color: #fff;
}

.node-main-login .main .main-right #maincontent footer a {
	color: #fff;
}

@media screen and (min-height: 585px) {
	.node-main-login footer {
		display: none;
		position: absolute;
		bottom: 0;
		width: 100%;
	}
}
/* fix status */
.node-status-overview > .main fieldset:nth-child(4) .td:nth-child(2),
.node-status-processes > .main .table .tr .td:nth-child(3) {
	white-space: normal;
}
/* fix system reboot */
[data-page="admin-system-reboot"] p {
	padding-left: 0rem;
	color: #fff;
}
[data-page="admin-system-reboot"] .cbi-button {
	background: #fb6340 !important;
}
[data-page="admin-system-reboot"] p > span {
	position: relative;
	top: 0.1rem;
	left: 1rem;
}
/* samba */
#cbi-samba [data-tab="template"] .cbi-value-field {
	display: block;
}

#cbi-samba [data-tab="template"] .cbi-value-title {
	width: auto;
	padding-bottom: 0.6rem;
}
/* admin-system-admin-password */
[data-page="admin-system-admin"] .cbi-map h2,
[data-page="admin-system-admin-password"] .cbi-map h2,
[data-page="admin-system-admin"] .cbi-map .cbi-map-descr,
[data-page="admin-system-admin-password"] .cbi-map .cbi-map-descr {
	margin-left: 1.5rem;
	color: #32325d;
	color: var(--gray-dark);
}
/* software */


.controls {
	margin: 0.5em 0 1em 0 !important;
}

.controls > * > .btn:not([aria-label$="page"]) {
	flex-grow: initial !important;
	margin-top: 0.25rem;
}

.controls > #pager > .btn[aria-label$="page"] {
	font-size: 1.4rem;
	font-weight: bold;
}

.controls > * > label {
	margin-bottom: 0.2rem;
}
[data-page="admin-system-opkg"] div.btn {
	line-height: 3;
	display: inline;
}
[data-page^="admin-system-admin"]:not(.node-main-login) .cbi-map:not(#cbi-dropbear) {
	margin-top: 2rem;
	padding-top: 0.1rem;
}


.cbi-tabmenu + .cbi-section {
	margin-top: 0;
}
/* admin-system-crontab*/
[data-page="admin-system-crontab"] #view p {
	color: #fff;
	margin-bottom: 1rem;
}
/*admin-system-flash*/
[data-page="admin-system-flash"] .cbi-value {
	padding: 0;
}
[data-page="admin-system-flash"] .cbi-section .cbi-section {
	margin-top: 0;
}
[data-page="admin-system-flash"] legend {
	display: block !important;
	font-size: 1.2rem;
	width: 100%;
	display: block;
	margin-bottom: 0;
	padding: 1rem 0 1rem 1.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	line-height: 1.5;
	margin-bottom: 0rem;
	letter-spacing: 0.1rem;
	color: #32325d;
	font-weight: bold;
}
[data-page="admin-system-flash"] .cbi-section-descr {
	font-weight: 600;
	padding: 1rem 0 1rem 1.5rem;
	color: #525f7f;
}
/* wireless overview */
#cbi-wireless > #wifi_assoclist_table > .tr {
	box-shadow: inset 1px -1px 0 #ddd, inset -1px -1px 0 #ddd;
}

#cbi-wireless > #wifi_assoclist_table > .tr.placeholder > .td {
	right: 33px;
	bottom: 33px;
	left: 33px;
	border-top: thin solid #ddd !important;
}

#cbi-wireless > #wifi_assoclist_table > .tr.table-titles {
	box-shadow: inset 1px 0 0 #ddd, inset -1px 0 0 #ddd;
}

#cbi-wireless > #wifi_assoclist_table > .tr.table-titles > .th {
	border-bottom: thin solid #ddd;
	box-shadow: 0 -1px 0 0 #ddd;
}

#wifi_assoclist_table > .tr > .td[data-title="RX Rate / TX Rate"] {
	width: 23rem;
}
[data-page="admin-network-dhcp"] .cbi-value {
	padding: 0;
}
[data-page="admin-network-dhcp"] [data-tab-active="true"] {
	padding: 1rem 0 !important;
}
/* firewall */
#iptables {
	margin: 0;
}

.Firewall form {
	margin: 2rem 2rem 0 0;
	padding: 0;
	box-shadow: none;
}

#cbi-firewall-redirect table *,
#cbi-network-switch_vlan table *,
#cbi-firewall-zone table * {
	font-size: small;
}

#cbi-firewall-redirect table input[type="text"],
#cbi-network-switch_vlan table input[type="text"],
#cbi-firewall-zone table input[type="text"] {
	width: 5rem;
}

#cbi-firewall-redirect table select,
#cbi-network-switch_vlan table select,
#cbi-firewall-zone table select {
	min-width: 3.5rem;
}

#cbi-network-switch_vlan .th,
#cbi-network-switch_vlan .td {
	flex-basis: 12%;
}

#cbi-firewall-zone .table,
#cbi-network-switch_vlan .table {
	display: block;
}

#cbi-firewall-zone .td,
#cbi-network-switch_vlan .td {
	width: 100%;
}
[data-page="admin-network-firewall-custom"] #view p {
	color: #fff;
	margin-bottom: 1rem;
}
[data-page="admin-network-firewall-custom"] #view p textarea {
	margin: 1.5rem;
	box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
	transition: box-shadow .25s, -webkit-box-shadow .25s;
	border-radius: 2px;
	width: 95% !important;
}
/* applyreboot fix */
#applyreboot-container {
	margin: 2rem;
}

#applyreboot-section {
	line-height: 300%;
	margin: 2rem;
}
/* openvpn bug fix */
.OpenVPN a {
	line-height: initial !important;
}
/* custom commands */
.commandbox {
	width: 24% !important;
	margin: 10px 0 0 10px !important;
	padding: 0.5rem 1rem;
	border-bottom: thin solid #ccc;
	background: #eee;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.commandbox h3 {
	line-height: normal !important;
	overflow: hidden;
	margin: 6px 0 !important;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.commandbox div {
	left: auto !important;
}

.commandbox code {
	position: absolute;
	overflow: hidden;
	max-width: 60%;
	margin-left: 4px;
	padding: 2px 3px;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.commandbox code:hover {
	overflow-y: auto;
	max-height: 50px;
	white-space: normal;
}

.commandbox p:first-of-type {
	margin-top: -6px;
}

.commandbox p:nth-of-type(2) {
	margin-top: 2px;
}
[data-page^="admin-system-commands"] .panel-title,
[data-page^="command-cfg"] .mobile-hide,
[data-page^="command-cfg"] .showSide {
	display: none;
}

#command-rc-output .alert-message {
	line-height: 1.42857143;
	position: absolute;
	top: 40px;
	right: 32px;
	max-width: 40%;
	margin: 0;
	animation: anim-fade-in 1.5s forwards;
	word-break: break-word;
	opacity: 0;
}

@keyframes anim-fade-in {
	100% {
		opacity: 1;
	}
}
/* other fix */
input[type="checkbox"] {
	appearance: none !important;
	-webkit-appearance: none !important;
	border: 1px solid #dee2e6;
	width: 16px !important;
	height: 16px !important;
	padding: 0;
	cursor: pointer;
	transition: all 0.2s;
	display:none;
}

.cbi-dropdown[open]>ul.dropdown>li label {
    margin-left: .5rem;
}

#cbi-adblock-global-adb_sources .cbi-dropdown-open .cbi-dropdown[open] > ul.dropdown{
	position:relative !important;
	bottom:0 !important;
}

#cbi-adblock-global-adb_sources .cbi-dropdown-open #cbi-adblock-global-adb_sources .preview,.cbi-dropdown-open .more,.cbi-dropdown-open .open{
display:none !important;	
}

input[type="checkbox"]:checked {
	border: 1px solid #5A8DEE;
	background-image: url('data:image/svg+xml,%3csvg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 8 8\'%3e%3cpath fill=\'%23fff\' d=\'M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z\'/%3e%3c/svg%3e') !important;
	background-color: #5A8DEE;
	background-size: 70%;
	background-repeat: no-repeat;
	background-position: center;
}

@media screen and (max-width: 1600px) {
	header > .fill > .container > #logo {
		margin: 0 2.5rem 0 0.5rem;
	}

	.main-left {
		width: calc(0% + 13rem);
	}

	.main-right {
		width: calc(100% - 13rem);
	}

	.label {
		padding: 0.2rem 0.6rem;
	}

	.cbi-value-title {
		width: 15rem;
		padding-right: 1.5rem;
	}

	.cbi-value-field .cbi-dropdown,
  .cbi-value-field .cbi-input-select,
  .cbi-value input[type="text"],
  .cbi-value input[type="password"] {
		min-width: 15rem;
	}

	#cbi-firewall-zone .cbi-input-select {
		min-width: 9rem;
	}

	.cbi-input-textarea {
		font-size: small;
	}

	.node-admin-status > .main fieldset li > a {
		padding: 0.3rem 0.6rem;
	}
}

@media screen and (max-width: 1366px) {
	header > .fill > .container {
		cursor: default;
	}

	.main-left {
		width: calc(0% + 13rem);
	}

	.main-right {
		width: calc(100% - 13rem);
	}

	.panel-title {
		font-size: 1.1rem;
		padding-bottom: 1rem;
	}

	table {
		font-size: 0.7rem !important;
		width: 100%;
	}

	.table .cbi-input-text {
		width: 100%;
	}

	.cbi-value-field .cbi-dropdown,
  .cbi-value-field .cbi-input-select,
  .cbi-value input[type="text"],
  .cbi-value input[type="password"] {
		min-width: 16rem;
	}

	#cbi-firewall-zone .cbi-input-select {
		min-width: 4rem;
	}

	.main > .main-left > .nav > .slide > .slide-menu > li > a {
		font-size: 0.8rem;
	}

	#modal_overlay {
		top: 0rem;
	}
  [	data-page="admin-network-firewall-forwards"] .table:not(.cbi-section-table) {
		display: block;
	}
  [	data-page="admin-network-firewall-forwards"] .table:not(.cbi-section-table),
  [data-page="admin-network-firewall-rules"] .table:not(.cbi-section-table),
  [data-page="admin-network-hosts"] .table,
  [data-page="admin-network-routes"] .table {
		overflow-y: visible;
	}

	.commandbox {
		width: 32% !important;
	}
}

@media screen and (max-width: 1152px) {
	header > .fill > .container > #logo {
		display: none;
	}

	header > .fill > .container > .brand {
		position: relative;
	}

	html,
  .main {
		overflow-y: visible;
	}

	.main > .loading > span {
		top: 25%;
	}

	.main-left {
		width: calc(0% + 13rem);
	}

	.main-right {
		width: calc(100% - 13rem);
	}

	body:not(.logged-in) .showSide {
		visibility: hidden;
		width: 0;
		margin: 0;
	}

	.node-main-login > .main .cbi-value-title {
		text-align: left;
	}

	.cbi-value-title {
		width: 10rem;
		padding-right: 1rem;
	}

	.cbi-value-field .cbi-dropdown,
  .cbi-value-field .cbi-input-select,
  .cbi-value input[type="text"] {
		width: 16rem;
		min-width: 16rem;
	}
  /*.cbi-value input[type="password"],*/
	.cbi-value input[name^="pw"],
  .cbi-value input[data-update="change"]:nth-child(2) {
		width: 13rem !important;
		min-width: 13rem;
	}

	#diag-rc-output > pre,
  #command-rc-output > pre,
  [data-page="admin-services-wol"] .notice code {
		font-size: 1rem;
	}

	.Interfaces .table {
		overflow-x: hidden;
	}

	#packages.table {
		display: grid;
	}

	.Overview .table[width="100%"] > .tr {
		flex-wrap: nowrap;
	}

	.tr.placeholder {
		border-bottom: thin solid #ddd;
	}

	.tr.placeholder > .td,
  #cbi-firewall .tr > .td,
  #cbi-network .tr:nth-child(2) > .td,
  .cbi-section #wifi_assoclist_table .tr > .td {
		border-top: 0;
	}

.node-admin-status.Overview .tr {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
	
	.th,
  .td {
		display: inline-block;
		align-self: flex-start;
		flex: 2 2 25%;
		text-overflow: ellipsis;
		word-wrap: break-word;
	}

	.td select,
  .td input[type="text"] {
		width: 100%;
		word-wrap: normal;
	}

	.td [data-dynlist] > input,
  .td input.cbi-input-password {
		width: calc(100% - 1.5rem);
	}

	.td[data-type="button"],
  .td[data-type="fvalue"] {
		flex: 1 1 12.5%;
		text-align: left;
	}

	.th.cbi-value-field,
  .td.cbi-value-field,
  .th.cbi-section-table-cell,
  .td.cbi-section-table-cell {
		flex-basis: auto;
		padding-top: 1rem;
	}

	.td.cbi-value-field,
  .cbi-section-table-cell {
		display: inline-block;
		flex: 10 10 auto;
		flex-basis: 50%;
		text-align: center;
	}

	.td.cbi-section-actions {
		vertical-align: bottom;
	}

	.tr.table-titles,
  .tr.cbi-section-table-titles,
  .tr.cbi-section-table-descr {
		display: none;
	}

	.tr[data-title]::before,
  .tr.cbi-section-table-titles.named::before {
		font-size: 0.9rem;
		display: block;
		flex: 1 1 100%;
		border-bottom: thin solid rgba(0, 0, 0, 0.26);
		background: #e9ecef;
	}

	.td[data-title],
  [data-page^="admin-status-realtime"] .td[id] {
		text-align: left;
	}

	.td[data-title]::before {
		display: block;
	}

	.cbi-button + .cbi-button {
		margin-left: 0;
	}

	.td.cbi-section-actions > * > *,
  .td.cbi-section-actions > * > form > * {
		margin: 2.1px 3px;
	}

	.Firewall form {
		position: static !important;
		margin: 0 0 2rem 0;
		padding: 2rem;
		box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.12);
	}

	.Firewall form input {
		width: 100% !important;
		margin: 0;
		margin-top: 1rem;
	}

	.Firewall .center,
  .Firewall .center::before {
		text-align: left !important;
	}

	.commandbox {
		width: 100% !important;
		margin-left: 0 !important;
	}
#packages .tr {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
#packages .td {
    padding: 1em 2rem;
}
}

@media screen and (max-width: 768px) {
	header {
		display: block;
	}

	body {
		font-size: 0.8rem;
	}

	.tabs > li > a, .cbi-tabmenu > li > a {
		padding: 0.7rem 1.2rem;
	}

	.btn, button, .cbi-button, input[type=button], input[type=submit], input[type=reset] {
		padding: 0.5rem 1.2rem !important;
	}

	.cbi-progressbar::after {
		font-size: 0.95em;
		line-height: 1.5;
	}

	.main-left {
		position: fixed;
		z-index: 100;
		width: 0;
	}

	.main-right {
		width: 100%;
	}

	.main-right > #maincontent {
		margin-top: 0.5rem;
	}

	.showSide {
		padding: 0.1rem;
		position: relative;
		z-index: 99;
		top: -0.7rem;
		display: inline-block !important;
	}

	.showSide::before {
		font-family: 'argon' !important;
		font-style: normal !important;
		font-weight: normal !important;
		font-variant: normal !important;
		text-transform: none !important;
		line-height: 1;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		content: "\e20e";
		font-size: 1.7rem;
	}

	header > .fill > .container > .brand {
		display: inline-block;
	}

	.cbi-section > div {
		overflow-x: auto;
	}
}

@media screen and (max-width: 600px) {
	.mobile-hide {
		display: none;
	}

	#maincontent > .container {
		margin: 1rem 0 1rem 0;
	}

	.cbi-value-title {
		text-align: left;
	}
  [	data-page="admin-system-flash"] legend {
		padding: 1rem 0 1rem 1rem;
	}
  [	data-page="admin-system-flash"] .cbi-section-descr {
		padding: 1rem 0 1rem 1rem;
	}
  [	data-page="admin-system-flash"] .cbi-value {
		padding: 0 1rem;
	}
  [	data-page="admin-network-dhcp"] [data-tab-active="true"] {
		padding: 1rem 1rem !important;
	}

	body {
		overflow-x: hidden;
	}

	.node-main-login .main .main-right #maincontent .container .cbi-map .cbi-section .cbi-section-node .cbi-value .cbi-value-field {
		width: 16rem;
	}

	.node-main-login footer {
		display: none;
	}
}

@media screen and (min-width: 600px) {
	::-webkit-scrollbar {
		width: 10px;
		height: 10px;
	}

	::-webkit-scrollbar,
  ::-webkit-scrollbar-corner {
		background: transparent;
	}

	::-webkit-scrollbar-thumb {
		background: #9e9e9e;
	}

	::-webkit-scrollbar-thumb:hover {
		background: #757575;
	}

	::-webkit-scrollbar-thumb:active {
		background: #424242;
	}
}

.waves-input-wrapper {
	background-color: #475F7B;
}

.cbi-button,.btn {
	background-color: #23bd70;
}

.cbi-button.reconnect {
	background-color: #23bd70 !important;
}

.cpu .cbi-progressbar > div {
	background-color: #5A8DEE !important;
}

.memory .cbi-progressbar > div {
	background-color: #FDAC41 !important;
}

.cbi-map style+fieldset.cbi-section:first-of-type {
	box-shadow: none !important;
	display: block;
	text-align: center;
	overflow: hidden;
	margin: 0.5rem 0;
	background: none;
	padding: 0;
	border:none;
}

.cbi-map style+fieldset.cbi-section:first-of-type p font {
	position: relative;
	display: inline-block;
	padding: 0 1rem;
}

.cbi-map style+fieldset.cbi-section:first-of-type p font:before, .cbi-map style+fieldset.cbi-section:first-of-type p font:after {
	border-color: #FDAC41 !important;
	content: "";
	position: absolute;
	top: 50%;
	width: 9999px;
	border-top: 2px solid #DFE3E7;
}

.cbi-map style+fieldset.cbi-section:first-of-type p font:before {
	right: 100%;
}

.cbi-map style+fieldset.cbi-section:first-of-type p font:after {
	left: 100%;
}

.cbi-map style+fieldset.cbi-section:first-of-type p em {
	display: block;
}

.cbi-section .cbi-section {
	box-shadow: none !important;
}
/* Checkboxes
   ========================================================================== */
/* Remove default checkbox */

[type="checkbox"] + label:not(.lever) {
	position: relative;
	padding-left: 35px;
	cursor: pointer;
	display: inline-block;
	height: 25px;
	line-height: 25px;
	font-size: 1rem;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

[type="checkbox"] + label:not(.lever):before,
[type="checkbox"]:not(.filled-in) + label:not(.lever):after {
	content: '';
	position: absolute;
	top: 0.4rem;
	left: 0;
	width: 15px;
	height: 15px;
	z-index: 0;
	border: 2px solid #5a5a5a;
	border-radius: 1px;
	margin-top: 3px;
	-webkit-transition: .2s;
	transition: .2s;
}

[type="checkbox"]:not(.filled-in) + label:not(.lever):after {
	border: 0;
	-webkit-transform: scale(0);
	transform: scale(0);
}

[type="checkbox"]:not(:checked):disabled + label:not(.lever):before {
	border: none;
	background-color: rgba(0, 0, 0, 0.42);
}

[type="checkbox"].tabbed:focus + label:not(.lever):after {
	-webkit-transform: scale(1);
	transform: scale(1);
	border: 0;
	border-radius: 50%;
	-webkit-box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.1);
	box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.1);
	background-color: rgba(0, 0, 0, 0.1);
}

[type="checkbox"]:checked + label:not(.lever):before {
	top: 0.1rem;
	left: -5px;
	width: 9px;
	height: 18px;
	border-top: 2px solid transparent;
	border-left: 2px solid transparent;
	border-right: 2px solid orangered;
	border-bottom: 2px solid orangered;
	-webkit-transform: rotate(40deg);
	transform: rotate(40deg);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform-origin: 100% 100%;
	transform-origin: 100% 100%;
}

[type="checkbox"]:checked:disabled + label:before {
	border-right: 2px solid rgba(0, 0, 0, 0.42);
	border-bottom: 2px solid rgba(0, 0, 0, 0.42);
}

/* Indeterminate checkbox */
[type="checkbox"]:indeterminate + label:not(.lever):before {
	top: -11px;
	left: -12px;
	width: 10px;
	height: 22px;
	border-top: none;
	border-left: none;
	border-right: 2px solid orangered;
	border-bottom: none;
	-webkit-transform: rotate(90deg);
	transform: rotate(90deg);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
	-webkit-transform-origin: 100% 100%;
	transform-origin: 100% 100%;
}

[type="checkbox"]:indeterminate:disabled + label:not(.lever):before {
	border-right: 2px solid rgba(0, 0, 0, 0.42);
	background-color: transparent;
}

[type="checkbox"].filled-in + label:not(.lever):after {
	border-radius: 2px;
}

[type="checkbox"].filled-in + label:not(.lever):before,
[type="checkbox"].filled-in + label:not(.lever):after {
	content: '';
	left: 0;
	position: absolute;
  /* .1s delay is for check animation */
	-webkit-transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;
	transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;
	z-index: 1;
}

[type="checkbox"].filled-in:not(:checked) + label:not(.lever):before {
	width: 0;
	height: 0;
	border: 3px solid transparent;
	left: 6px;
	top: 10px;
	-webkit-transform: rotateZ(37deg);
	transform: rotateZ(37deg);
	-webkit-transform-origin: 100% 100%;
	transform-origin: 100% 100%;
}

[type="checkbox"].filled-in:not(:checked) + label:not(.lever):after {
	height: 20px;
	width: 20px;
	background-color: transparent;
	border: 2px solid #5a5a5a;
	top: 0px;
	z-index: 0;
}

[type="checkbox"].filled-in:checked + label:not(.lever):before {
	top: 0;
	left: 1px;
	width: 8px;
	height: 13px;
	border-top: 2px solid transparent;
	border-left: 2px solid transparent;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	-webkit-transform: rotateZ(37deg);
	transform: rotateZ(37deg);
	-webkit-transform-origin: 100% 100%;
	transform-origin: 100% 100%;
}

[type="checkbox"].filled-in:checked + label:not(.lever):after {
	top: 0;
	width: 20px;
	height: 20px;
	border: 2px solid orangered;
	background-color: orangered;
	z-index: 0;
}

[type="checkbox"].filled-in.tabbed:focus + label:not(.lever):after {
	border-radius: 2px;
	border-color: #5a5a5a;
	background-color: rgba(0, 0, 0, 0.1);
}

[type="checkbox"].filled-in.tabbed:checked:focus + label:not(.lever):after {
	border-radius: 2px;
	background-color: orangered;
	border-color: orangered;
}

[type="checkbox"].filled-in:disabled:not(:checked) + label:not(.lever):before {
	background-color: transparent;
	border: 2px solid transparent;
}

[type="checkbox"].filled-in:disabled:not(:checked) + label:not(.lever):after {
	border-color: transparent;
	background-color: #949494;
}

[type="checkbox"].filled-in:disabled:checked + label:not(.lever):before {
	background-color: transparent;
}

[type="checkbox"].filled-in:disabled:checked + label:not(.lever):after {
	background-color: #949494;
	border-color: #949494;
}

.controls > *:nth-child(2), .controls > *:nth-child(3) {
	position: relative;
}

.controls>div .focus-input {
	top: 1.53rem;
}

#indicators {
	cursor: pointer;
	position: absolute;
	top: 1.5rem;
	right: 1.5rem;
	z-index: 99;
}

.cbi-section > h3:first-child, .panel-title {
	font-size: 1.1rem !important;
}

h2 {
	font-size: 1.4rem !important;
}

.main .main-left .nav li .slide-menu li {
	padding: 0.4rem 0rem !important;
}

h3 {
	font-size: 1.1rem !important;
	padding: 1rem 2rem !important;
}

code,.cbi-progressbar::after {
	font-size-adjust: none !important;
	font-family: inherit !important;
	font-size: 0.9em !important;
}
[data-page="admin-system-flash"] legend {
	font-size: 1.1rem !important;
	padding-bottom: 0.6rem !important;
}

.main .main-left .nav>li>a:first-child::before {
	font-size: 1.1rem !important;
}

.td.version {
	word-break: normal !important;
}

.node-main-login .main .main-right .login-bg {
	background-color: white !important;
}

.cbi-map >.cbi-section .cbi-value {
	padding-left: 1rem;
	padding-right: 1rem;
}

.cbi-section ~ .cbi-section> .panel-title {
	padding-top: 0;
}

#cbi-openclash .cbi-map-descr {
	color: #404040
}

input,select {
	height: 2.2rem;
	background: none;
}

.btn,button,
  .cbi-button,input[type=button],input[type=submit],input[type=reset],.waves-input-wrapper {
	height: auto !important;
	width: auto !important;
	padding: 0.6rem 1.6rem;
	line-height: 1rem;
	webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
	box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14), 0 3px 1px -2px rgba(0,0,0,0.12), 0 1px 5px 0 rgba(0,0,0,0.2);
	border-radius: 2px;
	transition: all .20s linear;
	top: 0;
	margin-left: 0.5rem;
}

.btn:first-child,button:first-child,
  .cbi-button:first-child,input[type=button]:first-child,input[type=submit]:first-child,input[type=reset]:first-child,.waves-input-wrapper:first-child {
	margin-left: 0;
}

i.waves-input-wrapper {
	padding: 0 !important;
}

i input {
	margin: 0 !important
}

.controls > * > .btn {
	flex-basis: auto !important;
}


.cbi-map >.cbi-section .cbi-section-table,.container .cbi-tabmenu,.container #tabmenu,.cbi-map >.cbi-section .table {
	margin-left: -2%;
    width: 105%;
}

.admin-status-overview h2.content {
	display: none;
}

#view>.cbi-section:first-child {
	padding-top: 0;
}

.node-admin-status div {
	border: none !important;
}

.cbi-section-table .tr .td:first-child,.cbi-section-table .tr .th:first-child,
.table .tr .td:first-child,.table .tr .th:first-child,
.table .tr:before {
	padding-left: 2rem !important;
}

.node-admin-status .table .tr .td:first-child {
	padding-left: 3rem !important;
}

ul.errors li {
	margin-bottom: 1rem;
}

.Wireless .cbi-section {
	padding: 0 2rem;
}

.cbi-section-table-row > .cbi-value-field .cbi-input-select {
	min-width: 5rem !important;
}

#cbi-passwall .block h4 {
	padding:0;
}

.waves-input-wrapper .waves-button-input {
	line-height: 1rem;
}

.cbi-dropdown.waves-effect {
	display: inline-flex;
}

#cbi-AdGuardHome-AdGuardHome .waves-input-wrapper>input {
	color: #fff !important;
}

input[type=password]+.cbi-button.cbi-button-neutral {
	padding: 0 0.4rem;
	color: #fff !important;
}

.cbi-input-password[type=text]+.cbi-button.cbi-button-neutral {
	padding: 0.2rem 0.5rem;
}

.main-right>hr {
	height: 6px;
	background-color: rgba(255, 0, 27, 0.95);
	background: linear-gradient(90deg,#e75239 0%,#e75239 12.5%,#ff961c 12.5%,#ff961c 25%,#ffcc27 25%,#ffcc27 37.5%,#fce62f 37.5%,#fce62f 50%,#cde35b 50%,#cde35b 62.5%,#82cc33 62.5%,#82cc33 75%,#41bece 75%,#41bece 87.5%,#049cdb 87.5%,#049cdb 100%);
	background-position: 50% 0;
	box-shadow: 0 1px 2px rgba(0,0,0,.0625) inset;
	margin: 0 0 10px;
	border: none;
	opacity: 0.9;
}

div[id^="cbi-unblockmusic"] .cbi-button {
	top: -1.2rem;
}
[data-page^="admin-network-wifi"] form {
	padding-left: 1.5rem;
}
[data-page^="admin-network-wifi"] form td {
	padding-left: 1.5rem;
}

#packages .tr>.td:last-child{
	padding-right:3%;
}
.cbi-section-table .tr>.td:last-child{
	padding-right:2rem;
}

.command-output {
	padding: 0 2rem;
}

.chromeframe {
	padding: 2rem 3rem;
	margin: 0 auto;
	font-size: 16px;
	font-weight: bold;
	color: #fff;
	position: absolute;
	top: 10rem;
	width: 100%;
	z-index: 9999;
	text-align: center;
	background: #5A8DEE;
}

.chromeframe {
	display: none;
}

.chromeframe a {
	color: orangered;
}

.landscape {
	position: absolute;
	width: 100%;
	height: 100%;
}

[data-page="admin-network-wifi"] tr > td .cbi-button{
	margin-left: 0 !important;
}
[data-page="admin-network-wifi"] tr > td input[type="button"]{
	    padding: 0.5rem 1rem !important;
}
table.interfaces .th{
	padding:1.1em 0.5rem !important;
}
.cbi-value>.cbi-value-field>div:first-child+br{
display:none;
}
.cbi-page-actions.control-group.fixed {
    position: fixed;
    bottom: 1.3rem;
    right: 2rem;
}