/* Base */
:root {
	--dark-main-color: #09c;
	--dark-header-bg: #2b2b2b;
	--dark-header-color: #0a0a0a;
	--dark-bar-bg: #5bc0de;
	--dark-menu-bg-color: #161616;
	--dark-menu-color: #5f6368;
	--dark-menu-color-hover: #202124;
	--dark-main-menu-color: #b1b1b1;
	--dark-submenu-bg-hover: #858585;
	--dark-submenu-bg-hover-active: #09c;
	--dark-font-body: "Microsoft Yahei", "WenQuanYi Micro Hei", sans-serif,
 "Helvetica Neue", Helvetica, "Hiragino Sans GB";
}

body.dark {
	background: var(--dark-menu-bg-color);
}

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

.dark .tr {
	display: table-row;
}

.dark th,
.dark td  {
	color: white;
}

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

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

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

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

.dark .th {
	font-weight: 700;
}

.dark .tr.placeholder {
	height: 4em;
}

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

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

.dark .col-1 {
	flex: 1 1 30px !important;
}

.dark .col-2 {
	flex: 2 2 60px !important;
}

.dark .col-3 {
	flex: 3 3 90px !important;
}

.dark .col-4 {
	flex: 4 4 120px !important;
}

.dark .col-5 {
	flex: 5 5 150px !important;
}

.dark .col-6 {
	flex: 6 6 180px !important;
}

.dark .col-7 {
	flex: 7 7 210px !important;
}

.dark .col-8 {
	flex: 8 8 240px !important;
}

.dark .col-9 {
	flex: 9 9 270px !important;
}

.dark .col-10 {
	flex: 10 10 300px !important;
}

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

.dark .h1,
  .dark .h2,
  .dark .h3,
  .dark .h4,
  .dark .h5,
  .dark .h6,
  .dark h1,
  .dark h2,
  .dark h3,
  .dark h4,
  .dark h5,
  .dark h6 {
	font-family: inherit;
	font-weight: 400;
	line-height: 1.1 !important;
	color: ivory;
	background-color: #161616;
}

.dark html {
	overflow-y: hidden;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
}

.dark body {
	font-size: 0.8rem;
	color: #ffffff;
	background-color: white;
}

.dark html,
  .dark body {
	font-family: var(--dark-font-body);
	height: 100%;
	margin: 0;
	padding: 0;
}

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

.dark .btn,
  .dark button,
  .dark select,
  .dark input,
  .dark .cbi-dropdown {
	height: 1.8rem;
	color: rgba(255, 255, 255, 0.87);
	border: 0;
	border-bottom: 2px solid rgba(99, 99, 99, 0.26);
	border-radius: 0;
	outline: 0;
	background-color: transparent;
	background-image: none;
	box-shadow: none;
	padding: 0;
}

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

.dark select:not([multiple="multiple"]):focus,
  .dark input:not(.cbi-button):focus,
  .dark .cbi-dropdown:focus {
	border-color: var(--dark-main-color);
}

.dark .cbi-dropdown,
  .dark select[multiple="multiple"] {
	height: auto;
}

.dark pre {
	overflow: auto;
}

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

.dark abbr {
	cursor: help;
	text-decoration: underline;
	color: #005470;
}

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

.dark header,
  .dark .main {
	position: absolute;
	width: 100%;
}

.dark header {
	position: fixed;
	z-index: 2000;
	float: left;
	height: 4rem;
	transition: box-shadow 0.2s;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.26);
	color: var(--dark-header-color);
	background: var(--dark-header-bg);
}

.dark header > .fill > .container > .brand {
	font-size: 1.4rem;
	position: absolute;
	cursor: default;
	vertical-align: text-bottom;
	text-decoration: none;
	color: var(--dark-header-color);
}

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

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

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

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

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

@media screen and (min-width: 720px) {
	.dark .navbar {
		position: fixed;
		bottom: 50%;
		transform: translateY(50%);
		transition-duration: 200ms;
		right: 30px;
		border-top: var(--navBorder);
		text-align: center;
		background-color: #1b1b1b;
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		box-sizing: content-box;
	}

	.dark .navbar--hidden {
		transform: translateY(50px);
		box-shadow: none;
	}

	.dark .navbar .toggler {
		transition-duration: 100ms;
		position: absolute;
		background: white;
		transform: translateY(50%);
		bottom: 50%;
		right: calc(100% + 10px);
		width: 32px;
		height: 32px;
		padding: 8px;
		border-radius: 100%;
		content: "";
		box-sizing: border-box;
		cursor: pointer;
	}

	.dark .navbar .toggler img {
		transform: rotate(270deg);
	}

	.dark .navbar .dropdown {
		display: flex;
		flex-direction: column;
		overflow: hidden;
		width: 64px;
		padding: 0.25rem;
	}

	.dark .navbar .dropdown a {
		display: block;
		text-align: center;
		padding: 8px;
		text-decoration: none;
		max-width: 100px;
		width: 100%;
	}

	.dark .navbar .dropdown a img {
		width: 100%;
	}

	.dark .navbar.active {
		right: -64px;
	}

	.dark .navbar.active .toggler {
		right: calc(100% + 10px);
	}

	.dark .navbar.active .toggler img {
		transform: rotate(90deg);
	}
}

@media screen and (max-width: 720px) {
	.dark .navbar {
		overflow: hidden;
		position: fixed;
		bottom: 0;
		width: 100%;
		transition: transform 0.5s;
		border-top: var(--navBorder);
		text-align: center;
		height: calc(50px + constant(safe-area-inset-bottom));
		height: calc(50px + env(safe-area-inset-bottom));
		background-color: #1b1b1b;
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}

	.dark .navbar--hidden {
		transform: translateY(50px);
		box-shadow: none;
	}

	.dark .navbar a {
		float: left;
		text-align: center;
		padding: 8px 0;
		text-decoration: none;
		max-width: 100px;
	}

	.dark .navbar a img {
		width: 28px;
	}
}

.dark .main {
	position: relative;
	top: 4rem;
	bottom: 0;
	overflow-y: auto;
	height: calc(100% - 4rem);
}

.dark .main > .loading {
	position: fixed;
	z-index: 1000;
	top: 0;
	opacity: 1;
	visibility: visible;
	width: 100%;
	height: 100%;
	pointer-events: none;
	background-color: #161616;
	transition: visibility 400ms, opacity 400ms;
}

.dark .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;
}

.dark .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;
}

.dark .cbi-map {
	margin-top: 10px;
}

.dark #cbi-shadowsocksr .cbi-map-descr {
	display: none;
}

.dark .main-right {
	float: right;
	width: calc(100% - 16rem);
	height: 100%;
	background-color: #161616;
}

.dark .nowrap:not(.td) {
	white-space: nowrap;
}

.dark [disabled="disabled"] {
	pointer-events: none;
}

.dark .main > .main-left {
	background-color: var(--dark-menu-bg-color);
}

.dark .main > .main-left > .nav {
	padding: 0.5rem 0.5rem 2rem;
}

.dark .main > .main-left > .nav > li {
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.dark .main > .main-left > .nav > li:last-child {
	display: flex;
	margin: 2rem 0 1rem;
	padding: 0 0 0 2rem;
}

.dark .main > .main-left > .nav > li a {
	display: block;
	color: var(--dark-menu-color);
}

.dark .main > .main-left > .nav > li.slide.active {
	background-color: unset;
}

.dark .main > .main-left > .nav > .slide {
	padding: 0;
}

.dark .main > .main-left > .nav > .slide > .menu,
  .dark .main > .main-left > .nav > li > [data-title="Logout"],
  .dark .main > .main-left > .nav > li > [data-title="Dashboard"] {
	font-size: 1rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	width: 100%;
	text-decoration: none;
	color: var(--dark-main-menu-color);
	padding: 0.5rem 1rem;
	transition-duration: 200ms;
	margin-bottom: 5px;
}

.dark .main > .main-left > .nav > .slide > .menu::before {
	position: absolute;
	right: 17px;
	width: 16px;
	height: 16px;
	content: "";
	background: url(./icons/arrow.svg) no-repeat;
	filter: invert(1);
}

.dark .main > .main-left > .nav > .slide > .menu.active::before {
	transform: rotate(-180deg);
}

.dark .modemenu-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	color: var(--dark-header-color);
	background: var(--dark-header-bg);
	transition: box-shadow 0.2s;
	padding: 0.5rem;
}

.dark #modemenu {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	margin: 0.25rem;
}

.dark #modemenu > li.divider {
	margin-left: 0.25rem;
	margin-right: 0.25rem;
	border: 0.5rem solid var(--dark-submenu-bg-hover);
	border-left: 1px solid var(--dark-submenu-bg-hover);
	border-right: 1px solid var(--dark-submenu-bg-hover);
	border-radius: 1rem;
}

.dark .danger {
	background-color: #ff7d60 !important;
}

.dark .warning {
	background-color: #f0e68c !important;
}

.dark .success {
	background-color: #5cb85c !important;
}

.dark .error {
	color: red;
}

.dark .alert,
  .dark .alert-message {
	font-weight: 700;
	margin-bottom: 1em;
	border: 0;
	border-radius: 0 !important;
	background-color: #fff;
	box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.12);
	text-shadow: 1px 1px rgba(173, 31, 31, 0.1);
	padding: 1rem;
}

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

.dark .alert-message > * {
	margin: 0.5rem 0;
}

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

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

.dark .main > .main-left > .nav > li:last-child::before {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 14px;
	width: 24px;
	height: 24px;
	content: url(./icons/logout.svg);
}

.dark .main > .main-left > .nav > .slide:hover {
	background: none;
}

.dark .main > .main-left > .nav > .slide > .slide-menu > li > a {
	white-space: nowrap;
	text-decoration: none;
	padding: 0.4rem 2rem;
}

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

.dark .main > .main-left > .nav > .slide > .slide-menu > .active:hover {
	background-color: var(--dark-main-color);
}

.dark .main > .main-left > .nav > .slide > .menu,
  .dark .main > .main-left > .nav > .slide > .slide-menu > li,
  .dark .main > .main-left > .nav > li:last-child {
	position: relative;
	overflow: hidden;
	transform: translate3d(0, 0, 0);
}

.dark .main > .main-left > .nav > .slide > .menu::after,
  .dark .main > .main-left > .nav > .slide > .slide-menu > li::after,
  .dark .main > .main-left > .nav > li:last-child::after {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	content: "";
	transition: transform 0.5s, opacity 1s;
	transform: scale(10, 10);
	pointer-events: none;
	opacity: 0;
	background-image: radial-gradient(circle, #000 10%, transparent 10.01%);
	background-repeat: no-repeat;
	background-position: 50%;
}

.dark .main > .main-left > .nav > .slide > .menu:active::after,
  .dark .main > .main-left > .nav > .slide > .slide-menu > li:active::after,
  .dark .main > .main-left > .nav > li:last-child:active::after {
	transition: 0s;
	transform: scale(0, 0);
	opacity: 0.2;
}

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

.dark ul {
	line-height: normal;
}

.dark li {
	list-style-type: none;
}

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

.dark h2 {
	font-size: 1.8rem;
	padding-bottom: 10px;
	border-bottom: thin solid #eeeeee00;
	margin: 2rem 0 0;
}

.dark h3 {
	font-size: 1.4rem;
	padding-bottom: 10px;
	margin: 2rem 0 0;
}

.dark h4 {
	font-size: 1.2rem;
	padding-bottom: 10px;
	margin: 2rem 0 0;
}

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

.dark .cbi-section,
  .dark .cbi-section-error,
  .dark #iptables,
  .dark .Firewall form,
  .dark #cbi-network > .cbi-section-node,
  .dark #cbi-wireless > .cbi-section-node,
  .dark #cbi-wireless > #wifi_assoclist_table,
  .dark [data-tab-title],
  .dark [data-page^="admin-system-admin"]:not(.node-main-login)
.cbi-map:not(#cbi-dropbear),
  .dark [data-page="admin-system-opkg"] #maincontent > .container {
	font-family: inherit;
	font-weight: 400;
	font-style: normal;
	line-height: normal;
	min-width: inherit;
	border: 0;
	border-radius: 0;
	background-color: #161616;
	margin: 1rem 0 0;
	padding: 2rem;
}

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

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

.dark .cbi-map-descr,
  .dark .cbi-section-descr {
	font-size: small;
	line-height: 1.42857143;
	color: #999;
	padding: 0.5rem;
}

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

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

.dark .cbi-section > h3:first-child,
  .dark .panel-title {
	font-size: 1.4rem;
	line-height: 1;
	display: block;
	width: 100%;
	padding-bottom: 1rem;
	color: #2e6da4;
	margin: 0 0 0.5rem;
}

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

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

.dark table,
  .dark .table {
	overflow-y: hidden;
	width: 100%;
	box-shadow: 0 0 0 1px #161616;
}

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

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

.dark tr > td,
  .dark tr > th,
  .dark .tr > .td,
  .dark .tr > .th,
  .dark .cbi-section-table-row::before,
  .dark #cbi-wireless > #wifi_assoclist_table > .tr:nth-child(2) {
	border-top: none;
}

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

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

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

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

.dark table table,
  .dark .table .table,
  .dark .cbi-value-field table,
  .dark .cbi-value-field .table,
  .dark td > table > tbody > tr > td,
  .dark .td > .table > .tbody > .tr > .td,
  .dark .cbi-value-field > table > tbody > tr > td,
  .dark .cbi-value-field > .table > .tbody > .tr > .td {
	border: 0;
}

.dark .btn,
  .dark .cbi-button,
  .dark .item::after {
	font-size: 0.8rem;
	display: inline-block;
	width: auto !important;
	cursor: pointer;
	-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;
	white-space: nowrap;
	text-decoration: none;
	text-transform: uppercase;
	color: rgba(0, 0, 0, 0.87);
	border: 0;
	border-radius: 0.2rem;
	background-color: #f0f0f0;
	background-image: none;
	-webkit-appearance: none;
	-ms-touch-action: manipulation;
	touch-action: manipulation;
	padding: 0 0.8rem;
}

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

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

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

.dark .cbi-button + .cbi-button {
	margin-left: 0.6rem;
}

.dark .btn:hover,
  .dark .btn:focus,
  .dark .btn:active,
  .dark .cbi-button:hover,
  .dark .cbi-button:focus,
  .dark .cbi-button:active,
  .dark .item:hover::after,
  .dark .item:focus::after,
  .dark .item:active::after,
  .dark .cbi-page-actions .cbi-button-apply + .cbi-button-save:hover,
  .dark .cbi-page-actions .cbi-button-apply + .cbi-button-save:focus,
  .dark .cbi-page-actions .cbi-button-apply + .cbi-button-save:active {
	text-decoration: none;
	outline: 0;
}

.dark .btn:hover,
  .dark .btn:focus,
  .dark .cbi-button:hover,
  .dark .cbi-button:focus,
  .dark .item:hover::after,
  .dark .item:focus::after {
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.2);
}

.dark .btn:active,
  .dark .cbi-button:active,
  .dark .item:active::after {
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
}

.dark .cbi-button-up:hover,
  .dark .cbi-button-up:focus {
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.12), 0 -2px 2px rgba(0, 0, 0, 0.2);
}

.dark .cbi-button-up:active {
	box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.19), 0 -6px 6px rgba(0, 0, 0, 0.23);
}

.dark .btn:disabled,
  .dark .cbi-button:disabled {
	cursor: not-allowed;
	pointer-events: none;
	opacity: 0.5;
	box-shadow: none;
}

.dark .alert-message [class="btn"],
  .dark .modal div[class="btn"],
  .dark .cbi-button-find,
  .dark .cbi-button-link,
  .dark .cbi-button-up,
  .dark .cbi-button-down,
  .dark .cbi-button-neutral,
  .dark .cbi-button[name="zero"],
  .dark .cbi-button[name="restart"],
  .dark .cbi-button[onclick="hide_empty(this)"] {
	font-weight: 700;
	border: thin solid #bfbfbf;
	background-color: #d4d4d4;
}

.dark .btn.primary,
  .dark .cbi-page-actions .cbi-button-save,
  .dark .cbi-page-actions .cbi-button-apply + .cbi-button-save,
  .dark .cbi-button-add,
  .dark .cbi-button-save,
  .dark .cbi-button-positive,
  .dark .cbi-button-link,
  .dark .cbi-button[value="Enable"],
  .dark .cbi-button[value="Scan"],
  .dark .cbi-button[value^="Back"],
  .dark .cbi-button-neutral[onclick="handleConfig(event)"] {
	font-weight: 400;
	color: #fff;
	border: thin solid #2e6da4;
	background-color: #337ab7;
}

.dark .cbi-page-actions .cbi-button-apply,
  .dark .cbi-section-actions .cbi-button-edit,
  .dark .cbi-button-edit,
  .dark .cbi-button-apply,
  .dark .cbi-button-reload,
  .dark .cbi-button-action,
  .dark .cbi-button[value="Submit"],
  .dark .cbi-button[value="Upload"],
  .dark .cbi-button[value$="Apply"],
  .dark .cbi-button[onclick="addKey(event)"] {
	font-weight: 400;
	color: #fff;
	background-color: #5bdede;
}

.dark .btn.danger,
  .dark .cbi-section-remove > .cbi-button,
  .dark .cbi-button-remove,
  .dark .cbi-button-reset,
  .dark .cbi-button-negative,
  .dark .cbi-button[value="Stop"],
  .dark .cbi-button[value="Kill"],
  .dark .cbi-button[onclick="reboot(this)"],
  .dark .cbi-button-neutral[value="Restart"] {
	font-weight: 400;
	color: #fff;
	border: thin solid #d43f3a;
	background-color: #d9534f;
}

.dark .btn[value="Dismiss"],
  .dark .cbi-button[value="Terminate"],
  .dark .cbi-button[value="Reset"],
  .dark .cbi-button[value="Disabled"],
  .dark .cbi-button[onclick^="iface_reconnect"],
  .dark .cbi-button[onclick="handleReset(event)"],
  .dark .cbi-button-neutral[value="Disable"] {
	font-weight: 400;
	color: #fff;
	border: thin solid #eea236;
	background-color: #f0ad4e;
}

.dark .cbi-button-success,
  .dark .cbi-button-download,
  .dark .cbi-button[name="backup"],
  .dark .cbi-button[value="Download"],
  .dark .cbi-button[value="Save mtdblock"] {
	font-weight: 400;
	color: #fff;
	border: thin solid #4cae4c;
	background-color: #5cb85c;
}

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

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

.dark .tabs {
	padding-left: 0.5rem;
	background-color: #fff;
	margin: 0 -2rem;
}

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

.dark .tabs > li {
	padding-bottom: 0.4rem;
	border-bottom: 0.2rem solid transparent;
}

.dark .tabs > li[class~="active"],
  .dark .tabs > li:hover {
	border-bottom-color: var(--dark-main-color);
}

.dark .tabs > li:hover {
	cursor: pointer;
	border-bottom-color: #c9c9c9;
}

.dark .tabs > li > a,
  .dark .cbi-tabmenu > li > a {
	text-decoration: none;
	color: #979797;
	padding: 0.6rem 0.9rem;
}

.dark .tabs > li[class~="active"] > a {
	color: var(--dark-main-color);
}

.dark .cbi-tabmenu {
	border: thin solid #202020;
	border-bottom: 0;
	background-color: #202020;
}

.dark .cbi-tabmenu > li:hover {
	background-color: #f1f1f1;
}

.dark .cbi-tabmenu > li[class~="cbi-tab"] {
	background-color: #3c3c3c;
}

.dark [data-tab-title] {
	overflow: hidden;
	height: 0;
	opacity: 0;
	margin: 0;
	padding: 0rem 1rem !important;
}

.dark [data-tab-active="true"] {
	overflow: visible;
	height: auto;
	opacity: 1;
	transition: opacity 0.25s ease-in;
	margin: inherit !important;
}

.dark .cbi-section-node-tabbed {
	margin-top: 0;
	border: thin solid #d4d4d4;
	border-top: 0;
	padding: 0;
}

.dark .cbi-value-field,
  .dark .cbi-value-description {
	line-height: 1.25;
	display: table-cell;
}

.dark .cbi-value-description {
	font-size: small;
	padding-top: 0.4rem;
	opacity: 0.5;
}

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

.dark .cbi-value {
	display: inline-block;
	width: 100%;
	padding: 0.35rem 1rem 0.2rem;
}

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

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

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

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

.dark .cbi-input-invalid {
	color: red;
	border-bottom-color: red;
}

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

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

.dark .cbi-section-error ul li {
	font-weight: 700;
	color: red;
}

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

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

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

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

.dark .td.cbi-section-actions {
	text-align: right !important;
	vertical-align: middle;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 5px;
}

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

.dark .td.cbi-section-actions > button {
	display: block;
}

.dark .td.cbi-section-actions > * > *,
  .dark .td.cbi-section-actions > * > form > * {
	margin: 0 5px;
}

.dark .td.cbi-section-actions > * > form {
	display: inline-flex;
	margin: 0;
}

.dark .cbi-dynlist {
	line-height: 1.3;
	flex-direction: column;
	min-height: 30px;
	cursor: text;
}

.dark .cbi-dynlist > .item {
	position: relative;
	max-width: 25rem;
	margin-right: 2em;
	pointer-events: none;
	color: #666;
	border-bottom: 2px solid rgba(0, 0, 0, 0.26);
	outline: 0;
	padding: 0.5em 0.25em 0.25em 0;
}

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

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

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

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

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

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

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

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

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

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

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

.dark .cbi-dropdown.btn {
	min-height: 1.8rem;
	padding-top: 0px;
	padding-bottom: 0px;
	padding-right: 0px;
}

.dark .cbi-dropdown.btn > .open {
	font-size: 0.8rem;
	margin: 0 5px;
	padding: 0px;
}

.dark .cbi-dropdown.btn > div {
	margin: 0px;
}

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

.dark .cbi-dropdown > ul > li {
	display: none;
	overflow: hidden;
	align-items: center;
	align-self: center;
	flex-grow: 1;
	flex-shrink: 1;
	min-height: 20px;
	white-space: nowrap;
	text-overflow: ellipsis;
	padding: 0.25em;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.dark .cbi-dropdown[open] .zonebadge {
	width: auto;
}

.dark .cbi-progressbar {
	border-radius: 15px;
	overflow: hidden;
	position: relative;
	min-width: 170px;
	height: 30px;
	border: thin solid #999;
	background: #222222;
	margin: 6px 0;
}

.dark .cbi-progressbar > div {
	width: 0;
	height: 100%;
	transition: width 0.25s ease-in;
	background: var(--dark-bar-bg);
}

.dark .cbi-progressbar::after {
	font-family: monospace;
	font-size: 1.2em;
	font-weight: 700;
	font-size-adjust: 0.38;
	line-height: normal;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	right: 0;
	left: 0;
	overflow: hidden;
	content: attr(title);
	text-align: center;
	white-space: pre;
	text-overflow: ellipsis;
	text-shadow: none;
}

.dark #modal_overlay {
	position: fixed;
	z-index: 900;
	top: 4rem;
	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;
}

.dark .modal {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	width: 90%;
	min-width: 270px;
	max-width: 600px;
	min-height: 32px;
	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);
	margin: 5em auto;
	padding: 1em;
}

.dark .modal > * {
	line-height: normal;
	flex-basis: 100%;
	margin-bottom: 0.5em;
	max-width: 100%;
}

.dark .modal > pre,
  .dark .modal > textarea {
	font-size: 1rem;
	font-size-adjust: 0.35;
	overflow: auto;
	margin-bottom: 0.5em;
	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);
	padding: 8.5px;
}

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

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

.dark .modal li {
	list-style-type: square;
	color: gray;
}

.dark .modal p {
	padding-left: 0.25rem;
	word-break: break-word;
}

.dark .modal .label {
	font-size: 0.6rem;
	font-weight: 400;
	cursor: default;
	border-radius: 0;
	padding: 0.1rem 0.3rem 0;
}

.dark .modal .label.warning {
	background-color: #f0ad4e !important;
}

.dark .modal.cbi-modal {
	max-width: 90%;
	max-height: none;
}

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

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

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

.dark .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;
}

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

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

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

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

.dark .inline {
	display: inline;
}

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

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

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

.dark .ifacebadge {
	display: inline-flex;
	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);
	padding: 0.5rem 0.8rem;
}

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

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

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

.dark .network-status-table .ifacebox {
	flex-grow: 1;
	margin: 0.5em;
}

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

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

.dark .network-status-table .ifacebox-body .ifacebadge {
	align-items: center;
	flex: 1 1 auto;
	min-width: 220px;
	background-color: #ffffff;
	margin: 0.5em 0.25em 0;
	padding: 0.5em;
}

.dark .cbi-input-textarea {
	font-family: monospace;
	width: 100%;
	min-height: 14rem;
	color: #000;
	padding: 0.8rem;
}

.dark #syslog {
	font-size: small;
	overflow-y: hidden;
	width: 100%;
	min-height: 15rem;
	resize: none;
	color: #eee;
	border: 0;
	border-radius: 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);
	padding: 1rem;
}

.dark #syslog:focus {
	outline: 0;
}

.dark .uci-change-list {
	font-family: monospace;
}

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

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

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

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

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

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

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

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

.dark #iwsvg,
  .dark #iwsvg2,
  .dark #bwsvg {
	border: thin solid #d4d4d4 !important;
}

.dark .ifacebox {
	line-height: 1.25;
	display: inline-flex;
	flex-direction: column;
	min-width: 100px;
	border-bottom: thin solid #ccc;
	background-color: #424242;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

.dark .ifacebox-head.active {
	background: var(--dark-bar-bg);
}

.dark .ifacebox-body {
	padding: 0.25em;
}

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

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

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

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

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

.dark .cbi-value-field .cbi-input-checkbox,
  .dark .cbi-value-field .cbi-input-radio {
	margin-top: 0.1rem;
}

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

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

.dark .cbi-section-create {
	display: inline-flex;
	align-items: center;
	margin: 0.5rem -3px;
}

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

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

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

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

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

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

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

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

.dark .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);
}

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

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

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

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

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

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

.dark .darkMask {
	position: fixed;
	z-index: 99;
	width: 100%;
	height: 100%;
	content: "";
	background-color: rgba(151, 151, 151, 0.56);
	transition: opacity 400ms, visibility 400ms;
	visibility: hidden;
	opacity: 0;
}

.dark #diag-rc-output > pre,
  .dark #command-rc-output > pre,
  .dark [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%;
	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);
	padding: 8.5px;
}

.dark input[name="ping"],
  .dark input[name="traceroute"],
  .dark input[name="nslookup"] {
	width: 80%;
}

.dark .node-main-login > .main fieldset {
	display: inline;
	overflow: hidden;
	margin-bottom: 1rem;
	border: 0;
	background: none;
	box-shadow: none;
	padding: 0.5rem;
}

.dark .node-main-login > .main .cbi-value-title {
	width: 9.5rem;
}

.dark .node-main-login > .main #maincontent {
	text-align: center;
}

.dark .node-main-login > .main .container {
	display: inline-block;
	margin-top: 2rem !important;
	text-align: left;
	background-color: #161616;
	padding: 1rem 3.5rem 2rem;
}

.dark .node-main-login > .main .cbi-value > * {
	display: inline-block !important;
}

.dark .node-main-login > .main .cbi-input-text {
	width: 100% !important;
	min-width: 15rem;
}

.dark .node-status-overview > .main fieldset:nth-child(4) .td:nth-child(2),
  .dark .node-status-processes > .main .table .tr .td:nth-child(3) {
	white-space: normal;
}

.dark [data-page="admin-system-reboot"] p {
	padding-left: 2rem;
}

.dark [data-page="admin-system-reboot"] p > span {
	position: relative;
	top: 0.1rem;
	left: 1rem;
}

.dark #cbi-samba [data-tab="template"] .cbi-value-title {
	width: auto;
	padding-bottom: 0.6rem;
}

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

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

.dark .controls > * > label {
	margin-bottom: 0.2rem;
}

.dark [data-page="admin-system-opkg"] div.btn {
	line-height: 3;
	display: inline;
	padding: 0.3rem 0.6rem;
}

.dark [data-page^="admin-system-admin"]:not(.node-main-login)
.cbi-map:not(#cbi-dropbear),
  .dark [data-page="admin-system-opkg"] #maincontent > .container {
	margin-top: 2rem;
	padding-top: 0.1rem;
}

.dark [data-page="admin-system-opkg"] #maincontent > .container {
	margin: 2rem 2rem 1rem;
}

.dark .td.version,
  .dark .td.size {
	white-space: normal !important;
	word-break: break-word;
}

.dark .cbi-tabmenu + .cbi-section {
	margin-top: 0;
}

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

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

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

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

.dark #wifi_assoclist_table > .tr > .td[data-title="RX Rate / TX Rate"] {
	width: 23rem;
}

.dark #iptables {
	margin: 0;
}

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

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

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

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

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

.dark #applyreboot-container {
	margin: 2rem;
}

.dark #applyreboot-section {
	line-height: 300%;
	margin: 2rem;
}

.dark .OpenVPN a {
	line-height: initial !important;
}

.dark .commandbox {
	width: 24% !important;
	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);
	margin: 10px 0 0 10px !important;
	padding: 0.5rem 1rem;
}

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

.dark .commandbox div {
	left: auto !important;
}

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

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

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

.dark .commandbox p:nth-of-type(2) {
	margin-top: 2px;
}

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

.dark .table[width="100%"],
  .dark .th[width="100%"],
  .dark .td[width="100%"],
  .dark .cbi-section-table-row > .cbi-value-field .cbi-dropdown,
  .dark .cbi-section-table-row > .cbi-value-field .cbi-input-select,
  .dark .cbi-section-table-row > .cbi-value-field .cbi-input-text,
  .dark .cbi-section-table-row > .cbi-value-field .cbi-input-password,
  .dark .cbi-dropdown[open]
> ul.dropdown
> li
> input.create-item-input:first-child:last-child,
  .dark .cbi-dropdown .zonebadge,
  .dark .node-main-login > .main > .main-right,
  .dark #cbi-firewall-zone .td,
  .dark #cbi-network-switch_vlan .td {
	width: 100%;
}

.dark .cbi-rowstyle-2 {
	background-color: #161616;
}

.dark .pull-right,
  .dark .node-main-login > .main form > div:last-child {
	float: right;
}

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

.dark #modemenu > li > a,
  .dark .label,
  .dark [data-indicator] {
	background-color: #bfbfbf;
	border-radius: 3px;
	color: #fff !important;
	font-size: 0.8rem;
	font-weight: 700;
	text-decoration: none;
	text-shadow: none;
	text-transform: uppercase;
	white-space: nowrap;
	padding: 0.3rem 0.8rem;
}

.dark #modemenu > li > a.active,
  .dark .notice,
  .dark [data-indicator]:not([data-style="inactive"]) {
	background-color: #5bc0de !important;
}

.dark #xhr_poll_status,
  .dark .cbi-value-field > ul > li {
	display: flex;
}

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

.dark .container .alert,
  .dark .container .alert-message,
  .dark .cbi-map-descr + fieldset {
	margin-top: 1rem;
}

.dark .main > .main-left > .nav,
  .dark .cbi-value-field > ul > li > label {
	margin-top: 0.5rem;
}

.dark .main > .main-left > .nav > li.active > a,
  .dark .main > .main-left > .nav > .slide > .slide-menu > .active > a {
	color: #fff;
}

.dark .main > .main-left > .nav > li.active,
  .dark .main > .main-left > .nav > .slide > .slide-menu > .active {
	background-color: var(--dark-submenu-bg-hover-active);
}

.dark .main > .main-left > .nav > .slide > ul,
  .dark .main > .main-left[style*="overflow: hidden"] > .nav > .slide > .menu::before,
  .dark .tr.placeholder .td[data-title]::before,
  .dark .cbi-dropdown > ul.preview,
  .dark .cbi-dropdown > ul > li .hide-close,
  .dark .cbi-dropdown[open] > ul.dropdown > li .hide-open,
  .dark .hidden,
  .dark .showSide,
  .dark .node-main-login > .main > .main-left,
  .dark [data-page^="admin-system-commands"] .panel-title,
  .dark [data-page^="command-cfg"] .mobile-hide,
  .dark [data-page^="command-cfg"] .showSide {
	display: none;
}

.dark .main > .main-left > .nav > .slide.active > ul,
  .dark .cbi-dropdown[empty] > ul > li,
  .dark .cbi-dropdown[optional][open] > ul.dropdown > li[placeholder],
  .dark .cbi-dropdown[multiple][open] > ul.dropdown > li > form,
  .dark .node-main-login > .main .cbi-value,
  .dark #cbi-samba [data-tab="template"] .cbi-value-field,
  .dark #cbi-firewall-zone .table,
  .dark #cbi-network-switch_vlan .table {
	display: block;
}

.dark .main > .main-left > .nav > li:hover,
  .dark .main > .main-left > .nav > .slide > .menu:hover,
  .dark .main > .main-left > .nav > .slide > .slide-menu > li:hover {
	background: var(--dark-submenu-bg-hover);
}

.dark table > tbody > tr > td,
  .dark table > tbody > tr > th,
  .dark table > tfoot > tr > td,
  .dark table > tfoot > tr > th,
  .dark table > thead > tr > td,
  .dark table > thead > tr > th,
  .dark .table > .tbody > .tr > .td,
  .dark .table > .tbody > .tr > .th,
  .dark .table > .tfoot > .tr > .td,
  .dark .table > .tfoot > .tr > .th,
  .dark .table > .thead > .tr > .td,
  .dark .table > .thead > .tr > .th,
  .dark .table > .tr > .td.cbi-value-field,
  .dark .table > .tr > .th.cbi-section-table-cell,
  .dark .uci-change-list var,
  .dark .uci-change-list del,
  .dark .uci-change-list ins,
  .dark .cbi-section-remove {
	padding: 0.5rem;
}

.dark #cbi-wireless .td,
  .dark #cbi-network .tr:first-child > .td,
  .dark .table[width="100%"] > .tr:first-child > .td,
  .dark [data-page="admin-network-diagnostics"] .tr > .td,
  .dark .tr.table-titles > .th,
  .dark .tr.cbi-section-table-titles > .th,
  .dark #iwsvg,
  .dark [data-page="admin-status-realtime-bandwidth"] #bwsvg {
	border-top: 0 !important;
}

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

.dark div > table > tbody > tr:nth-of-type(2n),
  .dark div > .table > .tr:nth-of-type(2n),
  .dark .cbi-section .cbi-section-remove:nth-of-type(2n),
  .dark .container > .cbi-section .cbi-section-node:nth-of-type(2n),
  .dark .cbi-section[id] .cbi-section-remove:nth-of-type(4n + 3),
  .dark .cbi-section[id] .cbi-section-node:nth-of-type(4n + 4),
  .dark .cbi-tabcontainer > .cbi-value:nth-of-type(2n),
  .dark .cbi-rowstyle-1 {
	background-color: #161616;
}

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

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

.dark [data-page="admin-network-diagnostics"] .table,
  .dark .node-main-login .cbi-section {
	box-shadow: none;
}

@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);
	}
}

@media screen and (min-height: 585px) {
	.dark .node-main-login footer {
		position: absolute;
		bottom: 0;
		width: 100%;
	}
}

@keyframes anim-fade-in {
	100% {
		opacity: 1;
	}
}

@media all and (-ms-high-contrast: none) {
	.dark .main > .main-left > .nav > .slide > .menu::before {
		top: 30.25%;
	}

	.dark .main > .main-left > .nav > li:last-child::before {
		top: 20%;
	}

	.dark .showSide::before {
		top: -12px;
	}
}

@media screen and (max-width: 1600px) {
	.dark header > .fill > .container {
		display: flex;
		align-items: center;
		margin-top: 0;
	}

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

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

	.dark .btn:not(button),
    .dark .cbi-button {
		font-size: 0.8rem;
		padding: 0.3rem 0.6rem;
	}

	.dark .label,
    .dark [data-indicator] {
		padding: 0.2rem 0.6rem;
	}

	.dark fieldset,
    .dark .cbi-section {
		padding: 1rem;
	}

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

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

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

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

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

@media screen and (max-width: 1366px) {
	.dark header {
		height: 3.5rem;
	}

	.dark header > .fill > .container {
		margin-top: 0.25rem;
		cursor: default;
		padding: 0.5rem 1rem;
	}

	.dark .main {
		top: 3.5rem;
		height: calc(100% - 3.5rem);
	}

	.dark .main-left {
		top: 3.5rem;
		width: calc(0% + 13rem);
		height: calc(100% - 3.5rem);
	}

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

	.dark .tabs > li > a,
    .dark .cbi-tabmenu > li > a {
		padding: 0.2rem 0.5rem;
	}

	.dark .cbi-section > h3:first-child,
    .dark .panel-title {
		font-size: 1.1rem;
		padding-bottom: 1rem;
	}

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

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

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

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

	.dark .main > .main-left > .nav > li,
    .dark .main > .main-left > .nav > li a,
    .dark .main > .main-left > .nav > .slide > .menu,
    .dark .main > .main-left > .nav > li > [data-title="Logout"] {
		font-size: 0.9rem;
	}

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

	.dark #modal_overlay {
		top: 3.5rem;
	}

	.dark [data-page="admin-network-firewall-forwards"] .table:not(.cbi-section-table) {
		display: block;
	}

	.dark [data-page="admin-network-firewall-forwards"] .table:not(.cbi-section-table),
    .dark [data-page="admin-network-firewall-rules"] .table:not(.cbi-section-table),
    .dark [data-page="admin-network-hosts"] .table,
    .dark [data-page="admin-network-routes"] .table {
		overflow-y: visible;
	}

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

@media screen and (max-width: 1152px) {
	.dark header > .fill > .container > .brand {
		position: relative;
	}

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

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

	.dark .main-left {
		position: fixed;
		z-index: 100;
		visibility: hidden;
	}

	.dark .main-right {
		width: 100%;
	}

	.dark .showSide {
		position: relative;
		top: 0rem;
		display: inline-flex;
		align-items: center;
		height: 100%;
		margin-right: 0.7rem;
		cursor: pointer;
	}

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

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

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

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

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

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

	.dark #packages.table {
		display: grid;
	}

	.dark .tr {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
	}

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

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

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

	.dark .th,
    .dark .td {
		display: inline-block;
		align-self: flex-start;
		flex: 2 2 25%;
		text-overflow: ellipsis;
		word-wrap: break-word;
	}

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

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

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

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

	.dark .cbi-section-table-row {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 2px 0 rgba(0, 0, 0, 0.12);
	}

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

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

	.dark .tr[data-title]::before,
    .dark .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: #90c0e0;
	}

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

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

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

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

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

	.dark .commandbox {
		width: 100% !important;
		margin-left: 0 !important;
	}

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

	.dark .node-main-login > .main .cbi-value-title,
    .dark .td[data-title],
    .dark [data-page^="admin-status-realtime"] .td[id] {
		text-align: left;
	}

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

@media screen and (max-width: 600px) {
	.dark .cbi-progressbar::after {
		font-size: 0.95em;
		line-height: 1.5;
	}

	.dark fieldset,
    .dark .cbi-section {
		margin: 1rem 0 0;
	}

	.dark .tabs {
		margin: 0 -1rem;
	}

	.dark #maincontent > .container {
		margin: 0 0.5rem 1.5rem;
	}

	.dark .main > .main-left > .nav > .slide > .menu,
    .dark .main > .main-left > .nav > li > [data-title="Logout"] {
		font-size: 1.1rem;
	}

	.dark .cbi-value-title {
		display: block;
		min-width: 0 !important;
		text-align: left;
		margin: 0.5rem 0;
	}

	.dark .cbi-value > .cbi-value-field {
		display: inline-block;
	}

	.dark .tabs > li > a,
    .dark .cbi-tabmenu > li > a {
		font-size: 0.9rem;
		padding: 0.2rem 0.3rem;
	}

	.dark .cbi-page-actions > .cbi-button {
		margin-top: 0.2rem;
	}

	.dark .node-main-login > .main .container {
		margin: 2rem 1.2rem 1.5rem !important;
		padding: 0.3rem 1.7rem 2rem 1.6rem;
	}

	.dark .node-main-login > .main .cbi-value {
		padding: 0;
	}

	.dark .node-main-login > .main form > div:last-child {
		margin-top: 2rem;
	}

	.dark .node-main-login > .main .cbi-value-title {
		font-size: 1.2rem;
		width: 100% !important;
	}

	.dark .node-main-login > .main fieldset {
		margin: 0;
		padding: 0.5rem;
	}

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

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

	.dark h2 {
		font-size: 2rem;
	}

	.dark .cbi-section > h3:first-child,
    .dark .panel-title {
		font-size: 1.4rem;
		padding-bottom: 1rem;
	}

	.dark .node-system-packages > .main .cbi-value.cbi-value-last > div {
		width: 100% !important;
	}

	.dark .th,
    .dark .td {
		flex-basis: 50%;
		padding: 1.1rem;
		color: white;
	}

	.dark .td.cbi-value-field {
		flex-basis: 100%;
	}

	.dark .td.cbi-value-field[data-type="button"],
    .dark .td.cbi-value-field[data-type="fvalue"] {
		flex-basis: 25%;
		text-align: left;
	}

	.dark td > .ifacebadge,
    .dark .td > .ifacebadge {
		font-size: 0.62rem;
	}

	.dark #cbi-wireless > #wifi_assoclist_table .td {
		overflow: hidden;
	}

	.dark #cbi-wireless > .cbi-section-node .td,
    .dark .Interfaces .td.cbi-section-actions {
		text-align: center !important;
	}

	.dark .cbi-modal {
		padding: 0.5rem;
	}

	.dark .cbi-modal .cbi-value {
		padding: 0 0 0.25rem;
	}

	.dark .cbi-modal [data-tab-title] {
		padding: 0 0.25rem !important;
	}

	.dark [data-tab-title] {
		padding: 0 0.5rem !important;
	}

	.dark body,
    .dark code {
		font-size: 0.8rem;
	}

	.dark .main > .main-left > .nav > .slide > .slide-menu > li > a,
    .dark .tr[data-title]::before,
    .dark .tr.cbi-section-table-titles.named::before {
		font-size: 1rem;
	}

	.dark .cbi-value-title,
    .dark .cbi-value-description,
    .dark .cbi-value-field,
    .dark .cbi-value-field .cbi-dropdown,
    .dark .cbi-value-field .cbi-input-select,
    .dark .cbi-value input[type="text"],
    .dark .node-system-packages > .main .cbi-value .cbi-value-field input {
		width: 100%;
	}

	.dark .cbi-page-actions > div > input,
    .dark .mobile-hide,
    .dark [data-page="admin-status-processes"] .td[data-title="Hang Up"]::before,
    .dark [data-page="admin-status-processes"] .td[data-title="Terminate"]::before,
    .dark [data-page="admin-status-processes"] .td[data-title="Kill"]::before,
    .dark .hide-sm,
    .dark .hide-xs:not([data-title="MAC-Address"]) {
		display: none;
	}

	.dark .tabs > li > a,
    .dark select,
    .dark input {
		font-size: 0.9rem;
	}
}

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

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

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

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

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