@charset "utf-8";

@media all {

html {
	min-height: 100%;
	height: auto;
}

body {
	color: #ccc;
	background: #e5eef5 linear-gradient(#fff 0%, #e5eef5 100%) no-repeat;
	font-family: Verdana, Arial, sans-serif;
	font-size: 100%;
	line-height: 100%;
	padding-bottom: 1.5em;
}

html, body {
	height: 99%;
}

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

.table { display: table; width: 100%; position: relative; }
.tr { display: table-row; }
.thead { display: table-header-group; }
.tbody { display: table-row-group; }
.tfoot { display: table-footer-group; }
.td, .th { display: table-cell; }
.th { font-weight: bold; }

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

.col-1 { flex: 1 1 30px !important; -webkit-flex: 1 1 30px !important; }
.col-2 { flex: 2 2 60px !important; -webkit-flex: 2 2 60px !important; }
.col-3 { flex: 3 3 90px !important; -webkit-flex: 3 3 90px !important; }
.col-4 { flex: 4 4 120px !important; -webkit-flex: 4 4 120px !important; }
.col-5 { flex: 5 5 150px !important; -webkit-flex: 5 5 150px !important; }
.col-6 { flex: 6 6 180px !important; -webkit-flex: 6 6 180px !important; }
.col-7 { flex: 7 7 210px !important; -webkit-flex: 7 7 210px !important; }
.col-8 { flex: 8 8 240px !important; -webkit-flex: 8 8 240px !important; }
.col-9 { flex: 9 9 270px !important; -webkit-flex: 9 9 270px !important; }
.col-10 { flex: 10 10 300px !important; -webkit-flex: 10 10 300px !important; }

.tr.placeholder {
	height: 3.5em;
}

.tr.placeholder > .td {
	position: absolute;
	left: 1px;
	right: 1px;
	bottom: 1px;
	text-align: center;
	line-height: 3em;
}

abbr,
acronym {
	font-style: normal;
	font-variant: normal;
}

abbr[title],
acronym[title] {
	border-bottom: 1px dotted;
	cursor: help;
}

a:link abbr[title],
a:visited abbr[title],
a:link acronym[title],
a:visited acronym[title] {
	cursor: pointer;
}

code {
	font-family: monospace;
	white-space: pre;
}

h2, h3, h4, legend {
	font-size: 150%;
	font-family: Trebuchet MS, Verdana, sans-serif;
	font-weight: bold;
	margin: .25em 0 .5em 0;
	border-bottom: 1px solid;
	padding-bottom: 4px;
	display: block;
	width: 100%;
}

h3, legend {
	font-size: 125%;
}

h4 {
	font-size: 112%;
}

.cbi-section-node + h4 {
	margin-top: 1em;
}

fieldset { border: none; }

fieldset > legend { float: left; }
fieldset > legend + * { clear: both; }

#maincontent ul {
	margin-left: 2em;
}

.warning {
	color: red;
	background-color: white;
	font-weight: bold;
	text-decoration: blink;
}

.clear {
	clear: both;
}

a img {
	border: 0;
}

.skiplink,
.navigation,
.hidden {
	position: absolute;
	left: -1000px;
	top: -1000px;
	width: 0px;
	height: 0px;
	overflow: hidden;
	display: inline;
}

.error {
	color: #f00;
	background-color: white;
}

.alert-message {
	font-weight: normal;
	padding: .5em;
	border-radius: 3px;
	color: #000;
}

.alert-message.notice {
	background: linear-gradient(#ccc 0%, #eee 100%);
	color: #4a6b7c;
}

.alert-message.warning {
	background: linear-gradient(#dda 0%, #dd8 100%);
	color: #c00;
}

.alert-message > * {
	margin: .5em;
}

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


.ifacebadge, .ifacebox {
	display: inline-flex;
	align-content: center;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 2px;
	background: #fff;
	margin: .25em .5em;
}

.ifacebox-head {
	background: #eee;
}

.ifacebox-head.active {
	background: #90c0e0;
}

.ifacebadge, .zonebadge {
	align-items: center;
}

.ifacebadge > * {
	align-self: flex-start;
}

.ifacebadge > img,
.ifacebadge > em {
	margin-right: 5px;
	display: inline-block;
	height: 16px;
}

.ifacebadge-active {
	border-color: #000000;
	font-weight: bold;
}

.ifacebox {
	flex-direction: column;
	margin: 0;
	padding: 0;
	min-width: 100px;
	text-align: center;
}

.ifacebox > * {
	padding: 2px;
}

.td > .ifacebadge,
.td > .zonebadge {
	margin: 0;
	vertical-align: top;
}

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

.network-status-table .ifacebox {
	margin: .5em;
	font-size: 90%;
	flex-grow: 1;
}

.network-status-table .ifacebox-body {
	display: flex;
	flex-direction: column;
	flex: 1 0;
}

.network-status-table .ifacebox-body > span {
	flex: 10;
}

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

.ifacebadge.large,
.network-status-table .ifacebox-body .ifacebadge {
	flex: 1;
	margin: .5em .25em .25em .25em;
	padding: .5em;
	min-width: 220px;
	white-space: nowrap;
}


.zonebadge {
	padding: 2px;
	display: inline-block;
	white-space: nowrap;
	border-radius: 3px;
}

.zonebadge > em,
.zonebadge > strong {
	margin: 3px;
}

.zonebadge input {
	width: 6em;
	height: 1.5em;
}

.zonebadge .ifacebadge,
.cbi-dropdown .ifacebadge {
	margin: 1px;
}

.zonebadge .ifacebadge img,
.zonebadge .ifacebadge em,
.cbi-dropdown .ifacebadge img,
.cbi-dropdown .ifacebadge em {
	margin: 0 1px;
}

.zonebadge-empty {
	border: 1px dashed #AAAAAA;
	color: #AAAAAA;
	font-style: italic;
	font-size: smaller;
}



#header {
	height: auto;
	background: #FFF url(header.jpg) repeat-x left bottom;
	color: #ccc;
	font-weight: bold;
	text-align:right;
}

.header_left {
	padding-bottom: 10px;
}

.header_left img {
	padding: 10px 10px 0px 10px;
}

.header_banner {
	overflow:hidden;
	padding-bottom: 6px;
	text-align:left;
}

.header_banner img{
	padding: 0px;
}

.header_left {
	text-align:left;
	max-width: 50%;
	float:left;
}

.header_left a {
	color: #dc0067;
	font: bold 36px Helvetica, Verdana, Arial, sans-serif;
	text-decoration: none;
}

#header h1,
.header_right {
	max-width: 45%;
	text-align: right;
	font-size: 70%;
	font-weight: normal;
	line-height: 160%;
	float:right;
	padding: 10px 10px 0 0;
}

ul.dropdowns {
	float: left;
	margin: 0;
	padding: 0;
	width: auto;
	list-style: none;
}

html>body ul.dropdowns {
	position: relative;
}

ul.dropdowns li,
ul.dropdowns ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

ul.dropdowns li {
	float: left;
	position: relative;
	white-space: nowrap;
}

ul.dropdowns li ul {
	position: absolute;
	z-index: 1000;
	top: auto;
	min-width: 10em;
}

ul.dropdowns li li {
	float: none;
	position: relative;
}

ul.dropdowns li a {
	display: block;
}

ul.dropdowns ul li ul {
	top: 0;
}

ul.dropdowns li ul,
ul.dropdowns li.over ul ul,
ul.dropdowns li.focus ul ul,
ul.dropdowns li:hover ul ul,
ul.dropdowns li.over ul ul ul,
ul.dropdowns li.focus ul ul ul,
ul.dropdowns li:hover ul ul ul,
ul.dropdowns li.over ul ul ul ul,
ul.dropdowns li.focus ul ul ul ul,
ul.dropdowns li:hover ul ul ul ul {
	left: -3000px;
}

ul.dropdowns li.over ul,
ul.dropdowns li.focus ul,
ul.dropdowns li:hover ul {
	left: 0;
}

ul.dropdowns ul li.over ul,
ul.dropdowns ul li.focus ul,
ul.dropdowns ul li:hover ul,
ul.dropdowns ul ul li.over ul,
ul.dropdowns ul ul li.focus ul,
ul.dropdowns ul ul li:hover ul,
ul.dropdowns ul ul ul li.over ul,
ul.dropdowns ul ul ul li.focus ul,
ul.dropdowns ul ul ul li:hover ul {
	left: 100%;
}

#xhr_poll_status {
	cursor: pointer;
}

#xhr_poll_status #xhr_poll_status_off {
	font-weight: bold;
	color: #FF0000;
}

#xhr_poll_status #xhr_poll_status_on {
	font-weight: bold;
	color: #00FF00;
}

#menubar {
	position: relative;
	width: 100%;
	background: #FFF;
	color: #004a9c;
	border-bottom: 1px dotted #5A5A5A;
}
#menubar .warning {
	color: red;
	background-color: #FFF;
}

#menubar ul.dropdowns {
	min-height: 1.8em;
	background: #FFF;
	color: #004a9c;
}

#menubar ul.dropdowns li ul {
	background: #FFF;
	color: #004a9c;
	border-width: 0 1px 1px 1px;
	border-style: dotted;
	border-color: #5a5a5a;
}

#menubar ul.dropdowns ul li ul {
	border-width: 1px;
}

html #menubar a:link,
html #menubar a:visited {
	position: relative;
	display: block;
	padding: 0.5em;
	background: #FFF;
	color: #004a9c;
	text-decoration: none;
	font-size: 80%;
	font-weight: normal;
}

html #menubar a:link:hover,
html #menubar a:visited:hover,
html #menubar a:link:active,
html #menubar a:visited:active,
#menubar a:link:focus,
#menubar a:visited:focus {
	background: #F2F2F2;
	color: #e60076;
}

html #menubar a:link.active,
html #menubar a:visited.active,
html #menubar a:link.preactive,
html #menubar a:visited.preactive {
	background: #FFF;
	color: #e60076;
}

html #menubar a:link.warning,
html #menubar a:visited.warning {
	background: #FFF;
	color: red;
	font-weight: bold;
	text-decoration: blink;
}

#menubar ul.dropdowns li.over>a,
#menubar ul.dropdowns li.focus>a,
#menubar ul.dropdowns li:hover>a {
}

.lang_de #submenu_mini_system { min-width: 13.3em; }
* html .lang_de #submenu_mini_system { width: 13.3em; }

.lang_pt-br #submenu_mini_network { min-width: 14em; }
* html .lang_pt-br #submenu_mini_network { width: 14em; }

.lang_pt-br #submenu_mini_system { min-width: 11.5em; }
* html .lang_pt-br #submenu_mini_system { width: 11.5em; }

.lang_ru #submenu_mini_system { min-width: 18em; }
* html .lang_ru #submenu_mini_system { width: 18em; }

.lang_pt-br #submenu_admin_index { min-width: 11em; }
* html .lang_pt-br #submenu_admin_index { width: 11em; }

.lang_ru #submenu_admin_index { min-width: 15.5em; }
* html .lang_ru #submenu_admin_index { width: 15.5em; }

.lang_ru #submenu_admin_status { min-width: 10.5em; }
* html .lang_ru #submenu_admin_status { width: 10.5em; }

.lang_de #submenu_admin_system { min-width: 13.3em; }
* html .lang_de #submenu_admin_system { width: 13.3em; }

.lang_fr #submenu_admin_system { min-width: 14.5em; }
* html .lang_fr #submenu_admin_system { width: 14.5em; }

.lang_pt-br #submenu_admin_system { min-width: 11.5em; }
* html .lang_pt-br #submenu_admin_system { width: 11.5em; }

.lang_ru #submenu_admin_system { min-width: 18em; }
* html .lang_ru #submenu_admin_system { width: 18em; }

#submenu_admin_services_chillispot { min-width: 15.5em; }
* html #submenu_admin_services_chillispot { width: 15.5em; }

#submenu_admin_services_coovachilli { min-width: 15em; }
* html #submenu_admin_services_coovachilli { width: 15em; }

.lang_ru #submenu_admin_network_routes { min-width: 15.3em; }
* html .lang_ru #submenu_admin_network_routes { width: 15.3em; }

#submenu_admin_network_firewall { min-width: 14em; }
* html #submenu_admin_network_firewall { width: 14em; }

.lang_de #submenu_admin_network_firewall { min-width: 16.5em; }
* html .lang_de #submenu_admin_network_firewall { width: 16.5em; }

.lang_pt-br #submenu_admin_network_firewall { min-width: 15em; }
* html .lang_pt-br #submenu_admin_network_firewall { width: 15em; }

#modemenu {
/*	width: auto;*/
	background: #000;
	color: #fff;
	list-style: none;
	margin-right: 1px;
}

#modemenu li {
	float: right;
	list-style: none;
}

#savemenu {
	float: right;
	margin-right: 2em;
}

#applyreboot-section {
	line-height: 300%;
}

.lang_de #submenu_admin_uci {
	width: 12em;
}

.lang_ru #submenu_admin_uci {
	width: 11.5em;
}

textarea#syslog {
	width: 98%;
	min-height: 500px;
	border: 3px solid #ccc;
	padding: 5px;
	font-family: monospace;
}


#maincontent {
	clear: both;
	width: 90%;
	margin: 0 auto;
	padding: 0.5em;
	color: #000;
	font-size: 80%;
}

#maincontent p {
	margin-bottom: 1em;
}

.cbi-section {
	margin-bottom: 1.5em;
	color: #000;
}

.cbi-section-descr {
	margin-bottom: 0.5em;
	font-size: 95%;
}

.cbi-title-ref {
	color: inherit;
	text-decoration: none;
	padding-right: 18px;
	background: url('../resources/cbi/link.gif') no-repeat scroll right center;
	background-color: inherit;
}

ul.cbi-apply {
	font-size: 90%;
}

ul.cbi-tabmenu {
	list-style-type: none;
	display: flex;
	margin: 0 0 .5em 0 !important;
	padding: 0 0 0 5px;
	border-bottom: 1px solid #bbb;
}

ul.cbi-tabmenu li {
	display: inline-flex;
	margin: 0 5px -1px 0;
	flex: 0 1 auto;
	border: 1px solid #bbb;
	border-bottom: none;
	border-radius: 3px 3px 0 0;
	background: linear-gradient(#ddd 90%, #aaa 100%);
	color: #888;
	overflow: hidden;
	text-overflow: ellipsis;
	word-wrap: break-word;
}

ul.cbi-tabmenu li a,
ul.cbi-tabmenu li a:hover {
	text-decoration: none;
	color: inherit;
	padding: 5px;
	flex: 1;
	width: 100%;
	height: 100%;
}

ul.cbi-tabmenu li.cbi-tab-highlighted {
	color: #000;
	background: #fea;
}

ul.cbi-tabmenu li.cbi-tab {
	color: #000;
	background: #fff;
}

ul.cbi-tabmenu + .cbi-section-node {
	margin-top: -.5em;
}


div.cbi-tab-descr {
	background-image: url(/luci-static/resources/cbi/help.gif);
	background-position: 0.25em 50%;
	background-repeat: no-repeat;
	border-bottom: 1px solid #ccc;
	margin: 0.25em 0.25em 2em;
	padding: 0.5em 0.5em 0.5em 2em;
}

input[type=submit],
input[type=reset],
input[type=image],
input[type=button] {
	cursor: pointer;
}

select,
input,
textarea {
	background: #fff;
	color: #000;
	border: 1px solid #cccccc;
}

input[type=image] {
	border: none;
}

input:focus,
input:hover,
select:focus,
select:hover,
textarea:focus,
textarea:hover {
	background-color: #fff;
	color: #000;
}

select,
input[type=text],
input[type=password] {
	width: 20em;
	font-size: inherit;
	line-height: 13pt;
	height: 14pt;
}

select[multiple] {
	height: auto;
}

input[type=radio],
input[type=checkbox],
[data-dynlist] > input + img,
input.cbi-input-password + img {
	vertical-align: middle;
}

.td select,
.td .cbi-dropdown,
.td input[type=text] {
	width: 100%;
}

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

img.cbi-image-button {
	cursor: pointer;
	margin: 0 2px;
	vertical-align: middle;
}

.btn, .cbi-button {
	padding: 0 .5em;
	border-radius: 3px;
	border: 1px solid #aaa;
	text-decoration: none;
	color: #000;
	display: inline-block;
	font-size: inherit;
	-webkit-appearance: none;
	background: #fff;
	text-align: center;
	font-weight: bold;
	line-height: 13pt;
	height: 14pt;
}

.btn:hover, .cbi-button:hover {
	box-shadow: 0 0 3px #59d;
}

.btn[disabled],
.btn[disabled]:hover,
.cbi-button[disabled],
.cbi-button[disabled]:hover {
	opacity: .6;
	cursor: default;
	pointer-events: none;
}

.cbi-button-positive,
.cbi-button-fieldadd,
.cbi-button-add,
.cbi-button-save {
	border-color: #7b7;
	color: #7b7;
}

.cbi-button-neutral,
.cbi-button-reset,
.cbi-button-download,
.cbi-button-find,
.cbi-button-link,
.cbi-button-up,
.cbi-button-down {
	border-color: #444;
	color: #444;
}

.cbi-button-action,
.cbi-button-apply,
.cbi-button-reload,
.cbi-button-edit {
	border-color: #59d;
	color: #59d;
}

.cbi-button-negative,
.cbi-section-remove .cbi-button,
.cbi-button-remove {
	border-color: #b77;
	color: #b77;
}

.cbi-button-action.important,
.cbi-page-actions .cbi-button-apply,
.cbi-section-actions .cbi-button-edit {
	color: #fff;
	background: #59d;
}

.cbi-button-positive.important,
.cbi-page-actions .cbi-button-save {
	color: #fff;
	background: #7b7;
}

.cbi-page-actions .cbi-button-apply + .cbi-button-save {
	background: #fff;
	color: #7b7;
}

.cbi-input-invalid {
	background-image: url('../resources/cbi/reset.gif');
	background-repeat: no-repeat;
	background-position: right;
	color: #FF0000 !important;
	border-color: #FF0000;
}

.cbi-input-invalid {
	background-image: url('../resources/cbi/reset.gif');
	background-repeat: no-repeat;
	background-position: right;
	color: #FF0000 !important;
	border-color: #FF0000;
}

div.cbi-section-remove input {
	border-bottom: none;
}

textarea {
	margin-left: -1px;
	margin-bottom: 0.5em;
}

.table .td, .table .th {
	color: #000000;
	padding: .25em;
}

.table.smalltext {
	background: #f5f5f5;
	color: #000;
	border: 1px solid #666;
	font-size: 90%;
	width: 80%;
	margin-left: auto;
	margin-right: auto;
	border-collapse: collapse;
}

.table.smalltext .tr:hover .td {
	background-color: #bbddee;
	color: #000;
}

.table.smalltext .tr .th {
	padding: 0 0.25em;
	border-left: 1px dotted #666;
	text-align: left;
}

.table.smalltext .tr .td {
	padding: 0.2em;
	border-top: 1px dotted #666;
	border-left: 1px dotted #666;
}

.cbi-section-node .tr:not(.placeholder):nth-child(even) {
	background: #e5eef5;
}

.table.cbi-section-table .cbi-section-table-cell {
	padding: 3px;
	white-space: nowrap;
}

.table .tr > .th:empty {
	display: none;
}

.table.cbi-section-table .tr > *,
.table.cbi-section-table .tr[data-title]::before {
	border-top: 1px dotted #bbb;
	display: table-cell;
}

.table.cbi-section-table .tr.table-titles > *,
.table.cbi-section-table .tr.cbi-section-table-titles > *,
.table.cbi-section-table .tr.cbi-section-table-desc > *,
.table.cbi-section-table .tr.table-titles::before,
.table.cbi-section-table .tr.cbi-section-table-titles::before,
.table.cbi-section-table .tr.cbi-section-table-desc::before {
	border-top: none;
}

.table.cbi-section-table .tr:hover::before,
.table.cbi-section-table .tr:hover > * {
	background: #eee;
}

.table.cbi-section-table .tr:nth-child(even):hover::before,
.table.cbi-section-table .tr:nth-child(even):hover > * {
	background: #bde;
}


div.cbi-value {
	clear: left;
	vertical-align: middle;
	padding-left: 0.25em;
	border-bottom: 1px dotted #bbb;
}

div.cbi-value:hover {
	background: #f8f8f8;
	color: #000;
}

.cbi-value-title {
	float: left;
	width: 40%;
	line-height: 1.8em;
}

.cbi-value-field {
	width: 58%;
	margin-left: 40%;
	padding: 0.25em 0;
}

.td.cbi-value-field {
	width: auto;
	margin-left: 0;
	align-self: center;
}

.cbi-value-description {
	background-image: url(/luci-static/resources/cbi/help.gif);
	background-position: .25em .25em;
	background-repeat: no-repeat;
	margin: .25em 0 0 0;
	padding: .25em .25em .25em 1.75em;
}

.cbi-section-create {
	padding: 0 0 .25em 0;
	margin: -3px;
	display: inline-flex;
	align-items: center;
}

.cbi-section-create > * {
	margin: 3px;
	flex: 1 1 auto;
}

.cbi-section-create > * > input {
	width: 100%;
}

.cbi-section-remove > .cbi-button {
	margin-bottom: -1px;
	border-radius: 3px 3px 0 0;
}

.cbi-section-node + .cbi-section-create {
	padding-top: 0;
}

div.cbi-map-descr {
	margin-bottom: 1em;
}

div.cbi-optionals {
	padding: 0.25em;
	border-bottom: 1px dotted #bbb;
}



.cbi-section-node {
	clear: both;
	padding-bottom: 0;
	position: relative;
	border: 1px dotted #555;
	background: #fff;
	margin-bottom: 5px;
}

.cbi-section-node-tabbed {
	border-top: none;
}

.cbi-section-node .cbi-optionals:last-child,
.cbi-section-node .cbi-value:last-child {
	border-bottom: none;
}

.table.cbi-section-table {
	width: 100%;
	font-size: 95%;
	border: 1px dotted #444;
	background: #fff;
	margin: 0 0 .5em 0;
}

.cbi-section-node > .table.cbi-section-table {
	border: none;
	margin: 0;
}

@keyframes flash {
	0% { opacity: 1; }
	50% { opacity: .5; }
	100% { opacity: 1; }
}

.tr.cbi-section-table-row.flash {
	animation: flash .35s;
}

.tr.cbi-section-table-descr .th {
	font-weight: normal;
	font-size: 90%;
	vertical-align: top;
}

.td.cbi-section-table-optionals {
	text-align: left !important;
	padding-top: 1em;
}

.th.cbi-section-actions,
.td.cbi-section-actions {
	display: flex;
	justify-content: flex-end;
	flex-direction: row;
	flex: 1 1 150px;
	margin: auto 0 auto auto;
}

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

.td.cbi-section-actions > *,
.td.cbi-section-actions > form > * {
	flex: 1 1 4em;
	margin: 1px;
}

.cbi-page-actions {
	display: flex;
	justify-content: flex-end;
	margin: -3px;
	padding: 0 .25em .25em .25em;
}

.cbi-page-actions > form {
	display: flex;
}

.cbi-page-actions > * {
	flex: 0 1 auto;
	margin: 3px;
}

.cbi-page-actions > form > * {
	flex: 1;
	margin: 0 3px 0 0;
}

.cbi-page-actions > .cbi-button-link,
.cbi-page-actions > form[method="get"]:first-child {
	margin-right: auto;
}


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

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

#cbi-wireless-overview .td:first-child {
	align-self: center;
}

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

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

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

.cbi-value-helpicon img {
	vertical-align: bottom;
}

div.cbi-error {
	font-size: 95%;
	font-weight: bold;
	color: #f00;
	background-color: #fff;
}

td.cbi-value-error {
	border-color: red;
}

.cbi-value-error input,
.cbi-value-error select {
	color: red;
	background-color: #fcc;
}

.cbi-section-error {
	color: red;
	background-color: white;
	font-size: 95%;
	border: 1px dotted red;
	margin: 3px;
	padding: 3px;
}


.cbi-dropdown {
	border: 1px solid #ccc;
	display: inline-flex;
	cursor: pointer;
	background: #fff;
	position: relative;
	padding: 0;
	color: #000;
	min-width: 20em;
	max-width: 100%;
}

.cbi-dropdown:focus {
	outline: 2px solid #4b6e9b;
}

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

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

.cbi-dropdown > .open {
	background: #eee;
	border: 2px outset #eee;
	flex-basis: 15px;
}

.cbi-dropdown > .open,
.cbi-dropdown > .more {
	flex-grow: 0;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	line-height: 2em;
	padding: 0 .25em;
}

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

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

.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: 1px 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 {
	vertical-align: middle;
	margin-right: .25em;
}

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

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

.cbi-dropdown[open] {
	position: relative;
}

.cbi-dropdown[open] > ul.dropdown {
	display: block;
	background: #f6f6f5;
	border: 1px solid #918e8c;
	box-shadow: 0 0 4px #918e8c;
	position: absolute;
	z-index: 1000;
	max-width: none;
	min-width: 100%;
	width: auto;
}

.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 {
	flex-grow: 1;
	display: flex;
	align-items: center;
}

.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: 1px solid #ccc;
}

.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: none;
}

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


.cbi-tooltip-container {
	cursor: help;
}

.cbi-tooltip {
	position: absolute;
	z-index: 1000;
	left: -1000px;
	opacity: 0;
	transition: opacity .25s ease-out;
	pointer-events: none;
	box-shadow: 0 0 2px #444;
}

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

.zonebadge .cbi-tooltip {
	padding: 1px;
	background: inherit;
	margin: -1.6em 0 0 -5px;
}


.zone-forwards {
	display: flex;
	flex-wrap: wrap;
}

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

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

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


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

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

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

.td.bottom {
	align-self: flex-end;
}

.td.top {
	align-self: flex-start;
}

.td.middle {
	align-self: center;
}


.footer, .push {
	height: 2em;
}

.footer {
	width: 99%;
	padding: 0.3em;
}


.wrapper {
	min-height: 100%;
	height: auto !important;
	height: 100%;
	margin: 0 auto -2em;
}

.luci a:link,
.luci a:visited,
.exectime {
	color: #666;
	text-decoration: none;
	font-size: 70%;
}

.inline {
	display: inline;
}

.error500 {
	white-space: normal;
	border: 1px dotted #f00;
	background-color: #fff;
	color: #000;
	padding: 0.5em;
}

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

.uci-change-list ins,
.uci-change-legend-label ins {
        text-decoration: none;
        border: 1px solid #00FF00;
        background-color: #CCFFCC;
        display: block;
        padding: 2px;
}

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

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

.uci-change-list var ins,
.uci-change-list var del {
        /*display: inline;*/
        border: none;
        white-space: pre;
        font-style: normal;
        padding: 0px;
}

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

.uci-change-legend-label {
        width: 150px;
        float: left;
        font-size: 80%;
}

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

.uci-change-legend-label var ins,
.uci-change-legend-label var del {
        line-height: 6px;
        border: none;
}

}

@media screen and (max-width: 992px) {
	body {
		-webkit-text-size-adjust: 100%;
	}

	#maincontent {
		width: 100%;
	}

	.table {
		display: flex;
		flex-direction: column;
		width: 100%;
	}

	.tr {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-end;
	}

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

	.td select {
		word-wrap: normal;
	}

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

	.td.cbi-value-field {
		align-self: flex-start;
	}

	.td.cbi-value-field .cbi-button {
		width: 100%;
	}

	.table.cbi-section-table {
		border: none;
		background: none;
		margin: 0;
	}

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

	.table.cbi-section-table .tr > *,
	.table.cbi-section-table .tr[data-title]::before {
		border-top: none;
	}

	.cbi-section-table-row {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		border: 1px dotted #444;
		margin: 0 0 .5em 0;
		background: #fff;
	}

	.cbi-section-table-row:hover {
		border: 1px solid #4a6b7c;
	}

	.table.cbi-section-table .tr:hover > *,
	.table.cbi-section-table .tr:nth-child(2n):hover > * {
		background: none;
	}

	.cbi-section-table + .cbi-section-create {
		padding-top: 0;
	}

	.tr[data-title]::before {
		display: block;
		flex: 1 1 100%;
		background: #eef;
	}

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

	.td.cbi-section-actions {
		flex-basis: 100%;
		margin: auto 0 0 auto;
	}

	.td.cbi-section-actions > *,
	.td.cbi-section-actions > form > * {
		flex: 0 1 100%;
		max-width: 150px;
	}

	.hide-sm,
	.hide-xs {
		display: none;
	}
}

@media screen and (max-width: 480px) {
	body {
		font-size: 12pt;
	}

	input, textarea, select {
		font-size: 12pt !important;
		line-height: 1.4em;
	}

	select, input[type="text"], input[type="password"] {
		width: 100%;
		height: 1.4em;
	}

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

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

	.btn, .cbi-button {
		font-size: 9pt !important;
		line-height: 11pt;
	}

	#maincontent {
		padding: .25em;
	}

	#tabmenu {
		margin: -.25em -.25em 1em -.25em;
	}

	.th, .td {
		flex: 2 2 50%;
	}

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

	.td.cbi-value-field[data-type="dvalue"] {
		flex-basis: 50%;
	}

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

	.cbi-section {
		padding: .25em;
	}

	.cbi-value {
		padding: 0 .25em;
	}

	.cbi-value-title {
		float: none;
		font-weight: bold;
	}

	.cbi-value-field {
		width: 100%;
		margin: 0;
	}

	.cbi-value-description {
		margin-top: 5px;
		display: block;
	}

	.cbi-section-create {
		margin-bottom: 1em;
	}

	.cbi-optionals {
		display: flex;
	}

	.cbi-page-actions {
		flex-wrap: wrap;
	}

	.cbi-page-actions > .cbi-button-link {
		flex-basis: 100%;
		margin-right: 2px;
	}

	.cbi-optionals > *,
	.cbi-page-actions > * {
		flex: 1 1 auto;
		margin: 2px;
		height: auto;
	}

	ul.cbi-tabmenu {
		padding: 0 3px;
	}

	ul.cbi-tabmenu li {
		font-size: 90%;
		margin: 0 1px -1px 0;
	}

	.hide-xs {
		display: none;
	}

	#cbi-network .td[id] > strong {
		display: block;
	}

	#cbi-network-switch_vlan .td.cbi-section-actions {
		flex-basis: 100%;
	}

	.network-status-table .ifacebox {
		margin: 0 0 .5em 0;
	}
}
