/*
 * WiND - Wireless Nodes Database
 *
 * Copyright (C) 2005-2014 	by WiND Contributors (see AUTHORS.txt)
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
/* Default configuration */
html, body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	font-size: 0.9em;
	background-color: #232323;
}


.ui-widget{
	font-size:11px;
}
.ui-widget input {
	font-size: 12px;
}

.no-title-dialog .ui-dialog-titlebar {
	display: none
}

/** Page Layout  **/
.layout {
	width: 100%;
	position: relative;
	background-color: #FFFFFF;
}

.layout > .header {
	height: 90px;
}

.layout > .main {
	min-height: 500px;
	width: auto;
	overflow: hidden;
}

.layout > .navigation {
	width: 210px;
	float: left;
}

.layout > .footer {
	clear: both;
	width: 100%;
	color: #c1c1c1;
	font-size: 10px;
	background-color: #232323;
	border-top: 5px solid #A8A8A8;
	padding: 20px 0px;
}

/** Header **/
div.header {
	width: 100%;
	height: 93px;
	background-image: -webkit-gradient(
		linear,
		left top,
		left bottom,
		color-stop(0, #161E49),
		color-stop(1, #394C86)
	);
	background-image: -o-linear-gradient(bottom, #161E49 0%, #394C86 100%);
	background-image: -moz-linear-gradient(bottom, #161E49 0%, #394C86 100%);
	background-image: -webkit-linear-gradient(bottom, #161E49 0%, #394C86 100%);
	background-image: -ms-linear-gradient(bottom, #161E49 0%, #394C86 100%);
	background-image: linear-gradient(to bottom, #161E49 0%, #394C86 100%);
	position: relative;
	border-bottom: 1px solid #FFFFFF;
}

div.header img.logo {
	display: block;
}

div.user-panel {
	background-color: #698FB5;
	border-color: #FFFFFF;
	border-radius: 5px 0 0;
	border-style: solid;
	border-width: 1px 0 0 1px;
	bottom: -1px;
	font-size: 11px;
	padding: 5px 10px 0px 10px;
	position: absolute;
	right: 0;
	z-index: 1;
	color: #d1d1d1;
}

div.user-panel .quicksearch{
	display: inline-block;
	margin-left: 10px;
}

div.user-panel .quicksearch input{
	border: 0px;
	padding: 2px 4px;
	border-radius: 2px;
	font-style: italic;
	width: 150px;
}

#searchResult {
	font-family: Arial;
	font-size: 12px;
	background-color: white;
	padding: 5px;
	display: none;
	position: absolute;
	width: 150px;
	vertical-align: left;
	border: 1px solid #d1d1d1;
	border-top-width: 0px;
}

#searchResult td{
	padding: 2px 0px;
}

#searchResult td.node_id{
	color: #878787;
}
	
div#login-dialog {
	display: none;
}

div.user-panel .user{
	font-size: 14px;
	color: white;
	font-weight: bold;
}

div.user-panel > a { 
	color: #CACCD0;
}

div.user-panel > a:hover { 
	color: white;
}

.language-selection {
	display: inline-block;
	margin-right: 8px;
}

.language-selection a img{
	border: 0px;
	margin: 0px;
	vertical-align: bottom;
}

ul.languages{
	list-style-type: none;
	margin: 0px;
	display: block;
	float: right;
	position: absolute;
	z-index: 1000;
	top: 25px;
	background: white;
	border: 1px solid #d1d1d1;
	border-radius: 5px;
	padding: 5px 15px;
	display: none;
}

ul.languages li{
	margin: 5px 0px;
	padding: 0px
	
}
.languages li a{
	white-space: pre;
}


/* Page Title */
div.page-title {
	background-color: #698FB5;
	height: 56px;
	margin-bottom: 10px;
	position: relative;
	//margin-left: -210px;
}

div.page-title h1 {
	color: white;
	font-size: 20px;
	font-weight: normal;
	line-height: 60px;
	margin: 0;
	padding-left: 20px;
}

div.page-title h1 small{
	color: #d1d1d1;
}

div.page-title .extra {
	position: absolute;
	bottom: 10px;
	right: 25px;
}

#help-dialog-icon:hover {
	cursor: pointer;
}

#help-dialog {
	display: none;
}

/** Navigation **/

.navigation .gadget{
	background-color: #f1f1f1;
	margin-bottom: 5px;
	border-radius: 10px;
	margin: 15px 5px 15px 5px;
	padding: 5px;
}


.navigation .gadget .title{
	padding: 5px 10px;
	font-weight: bold;
	font-size: 14px;
	border-bottom: 1px solid #d1d1d1;
	display: block;
}

ul.menu {
	padding: 0px;
	list-style-type: none;
}

ul.menu > li > a{
	display: block;
	padding: 0px 5px;
}
ul.menu > li:nth-child(odd) {
	background-color: rgb(253, 253, 253);
}

ul.menu > li:nth-child(even) {
	background-color: rgb(245, 245, 245);
}

ul.main-menu {
	padding: 0px;
	background-color: #313131;
}

ul.main-menu > li {
	border-bottom: 1px solid black;
	font-size: 1.1em;
	font-weight: bold;
	text-align: left;
	vertical-align: text-bottom;
	background-color: transparent !important;
}

ul.main-menu > li:last-child, ul.main-menu > li:last-child > a {
	border-bottom: none;
}

ul.main-menu > li > a{
	padding: 8px;
	color: #EEEEEE;
	height: 40px;
	padding-left: 10px;
	border-bottom: 1px solid #545454;
}
ul.main-menu > li > a:hover{
	text-decoration: none;
}

ul.main-menu > li.active:not(.has-children) > a, ul.main-menu > li > ul > li.active > a{
	background-color: #545454;
}

ul.main-menu li img {
	margin-right: 10px;
}

ul.main-menu li a:hover{
	background-color: #3f6ca2;
}

ul.main-menu >li >ul {
	padding: 0px;
}
ul.main-menu >li >ul > li a{
	display: block;
	color: white;
	font-size: 0.8em;
	padding: 3px 5px;
	padding-left: 25px;
}

ul.node-list .node-id{
	float: right;
	color: #848484;
}

div.statistics ul {
	list-style-type: none;
	padding: 2px 5px;
	margin: 0px;
}

div.statistics li .quantity{
	font-weight: bold;
}

div.toolbox ul.menu li {
	padding: 3px 0px;
	white-space: normal;
	color: rgb(0, 0, 0);
	font-weight: normal;
}

.navigation div.toolbox .title {
	background: url('../images/node.gif') no-repeat 2px center;
	padding-left: 40px;
	height: 30px;
	line-height: 20px
}

.navigation div.toolbox.administration .title {
	background-image: url('../images/admin.gif');
}
.navigation div.toolbox.hostmaster .title {
	background-image: url('../images/admin.gif');
}

.navigation div.toolbox.hostmaster .button {
	display: block;
	
}


/** Footer **/

.footer > *{
	margin: 0px;
	vertical-align: middle;
	text-align: center;
}

.footer > .credits{
	text-align: right;
	width: 250px;
	margin: 0px auto;
	text-align: center;
	font-size: 1.1em;
	line-height: 18px;
}

.footer > .technologies{
	text-align: left;
	float: right;
	margin-right: 35px;
}

.footer > .technologies a img{
	margin: 0px 5px;
	display: inline-block;
	opacity: 0.4;
	border: 1px solid #656565;
}

.footer > .technologies a img:hover{
	opacity: 1;
	box-shadow: 0px 0px 3px 0px #d1d1d1;
}

/** Sections **/
.section .panel-heading {
	position: relative;
}
.section .panel-heading .buttons {
	position: absolute;
	right: 15px;
	top: 5px;
}

/** Messages **/
.message {
	width: 500px;
	margin: 50px auto;
}
/** Table Filter **/
.table-data-filter-toolbar {
	line-height: 34px;
	border-radius: 5px;
	padding: 4px 5px;
	text-align: right;
}
.table-data-filter-wrapper .enabled-filters {
	display: inline-block;
	list-style-type: none;
	margin: 0px;
	padding: 0px;
	font-size: 1.2em;
}
.table-data-filter-wrapper .enabled-filters li {
	line-height: 22px;
	background-color: #f3f3f3;
	border-radius: 5px;
	padding: 4px 15px;
	display: inline-block;
	margin: 0px 5px;
}
.table-data-filter-wrapper .enabled-filters .value {
	font-weight: bold;
	margin: 0px 5px;
	color: rgb(201, 47, 102);
}

/** Tables Extra */
.table-data .extra{
	margin-top: -15px;
	margin-bottom: 20px;
}
.table-data .extra .pagination{
	margin: 0px;
	width: auto;
}

.table-data .extra .buttons {
	text-align: right;
	display: inline-block;
	float: right;
}

/** Forms **/
.form-bs {
	padding: 10px 20px;
}
.form-bs .buttons{
	text-align: right;
	padding: 10px 0px;	
}

.form-bs .comparison select{
	width: 80px;
}
.form-bs .comparison input{
	width: 270px;
}


/** Login dialog **/

.login-dialog {
	padding: 15px 15px;
	border-radius: 15px;
	border-width: 0px;
	font-size: 1em;
	color: white !important;
	background-color: #A0A0A0 !important;
	background-image: none;
	box-shadow: 0px 0px 10px #343434;
	width: 280px !important;
	position: relative;
}

.login-dialog button.close{
	position: absolute;
	right: 0px;
	top: -13px;
	font-size: 28px;
}
	
.login-dialog a {
	color: #474ca0;
}
.login-dialog a:hover {
	text-decoration: none;
}

.login-dialog .notification{
	display: none;
}

.login-dialog .info .notification{
	display: block;
	background-color: #D6D6D6;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 5px;
    width: 212px;
}

.login-dialog .error .notification{
	color: #CF0D0D !important;
}

.login-dialog label{
	display: block;
	margin: 15px 0px;
	font-weight: normal;
}

.login-dialog fieldset {
	border: 0px;
	padding: 0px;;
}

.login-dialog input[type=text], .login-dialog input[type=password]{
	font-size: 1.2em;
}

.login-dialog .btn {
	margin-right: 10px;
	font-size: 1.2em;
}

/** Node view **/
.node-status {
	padding: 2px 4px;
	font-size: 1.2em;
	background-color: #f2f2f2;
	text-transform: capitalize;
	border-radius: 4px;
}

.node-status-active {
	background-color: #398439;
	color: white;
}

.plot-table {
	position: relative;
	width: 300px;
	text-shadow: 0px 0px 5px white;
	color: black;
	font-weight: bold;
}

.plot-table .plot-peers{
	position: absolute;
	top: 2px;
	right: 0px;
	left: 0px;
	font-weight: normal;
	padding: 0px 5px;
}

.plot-table .plot-peers .plot-right-peer{
	float: right;
}

.plot-table  .plot-distance{
	display: block;
	text-align: center;
	position: absolute;
	bottom: 0px;
	right: 0px;
	left: 0px;
}

/** Misc **/
.page-content {
	padding: 5px 25px 15px 25px;
}
