$body-bg-color:#e8f3fb;
$border-color:#acbbc2;

$font-title-color:#333;
$font-color:#1f2c33;
$font-des-color:#999;

$lighten-blue:#126fc6;

$border-color:#ddd;

$white-color:#fff;
$lake-blue:#1da7db;
$green-color:#429e47;
$yellow-color:#e99003;
$red-color:#e33734;

$head-bg-color:#00488c;
$head-menu-bg-color:#126fc6;
$table-tbody-hover:#e8f5ff;

@import url(iconfont/iconfont.css);

.clearfix {
	zoom:1;
	&:after {
		display: block;
		content: "";
		clear: both;
		height: 0;
		visibility: hidden;
	}
}

img,
label,
span{
	vertical-align:middle;
}

.table-forms-box {
	width:500px;
	float:left;
}

.table-model-box {
	width:200px;
	float:left;
	.table-model-box-img {
		width: 200px;
		height: 200px;
		line-height:200px;
		border:1px solid $border-color;
		text-align: center;
		img {
			max-height: 100%;
			max-width: 100%;
			vertical-align: middle;
		}
	}
	.table-model-box-name {
		text-align: center;
		margin-top: 10px;
		margin-bottom: 10px;
	}
}

.networktext {
	width:200px;
	margin-bottom:10px !important;
}
.com-head{
	margin:-5px 0px 6px;
	h1{
	   line-height: 1em;
    }
}
 .filter-trigger.filter-active{
    z-index:1;
 }
.body-div {
	margin:10px 0;
	text-align:right;
	.radio-segmented {
		display: inline-block;
	}
	.radio-segmented,
	select,
	button {
		vertical-align: middle;
	}
}

.header-title,
.header-title-nobg {
	position:relative;	
    margin-bottom: 0;
    border: 0;
    padding: 6px 0;   
    width:100%;
    h1 {
    	padding-right:60px;
    }
    ul{
    	position: absolute;
	    top: 0;
	    right: 0;
	    li{
	    	display: inline-block;
		    vertical-align: top;
		    position: relative;
		    padding: 0 0 0 10px;
	    }
    }
}
.header-title{
	background: $lake-blue;
	color: $white-color;
	h1 {
		margin-left:10px;
	}	
}

.lightenblue-bg,
.lightenblue-bg input[type="radio"]:checked+label {
	background-color:$lake-blue;
}

.dashbrd-widget2,
.dashbrd-widget3 {
	min-width: 250px;
    margin: 0 10px 10px 10px;
    background-color: $white-color;
    .body {
    	padding:8px;
    }
}

.dashbrd-widget3 {
	margin:0;
}

.cell-has-line{
	border-left:1px solid $border-color;
}

.dashbrd-ul {
	li{
		text-align: left;
		line-height: 1;
		padding:8px 15px;
		margin:5px;
		border-radius:4px;
		a {
			color:$font-color;
			span,
			label {
				vertical-align: middle;
				cursor: pointer;
			}
			.iconfont{
				margin-right: 5px;
				color:$lighten-blue;
			}
			&:hover ,
			&:active {
				border:0;				
			}
			&:focus {
				box-shadow:none;
			}
			&:link {
				transition: color 0 ease-out;
				-webkit-transition: color 0s ease-out;
    			-moz-transition: color 0s ease-out;
			}
		}
		&:hover {
			background:lighten($lake-blue,15%);
		}
		&:hover,
		&.current {
			a,
			.iconfont {
				color: $white-color;				
			}
		}
		&.current {
			background:$lake-blue;
		}
	}
}

.body-title {
	padding:10px;
}

.pot-green,
.pot-yellow,
.pot-red{
	border-radius:50%;
	width:6px;
	height:6px;
	background:$green-color;
	display:inline-block;
	margin-right:5px;
}
.pot-yellow {
	background:$yellow-color;
}
.pot-red {
	background:$red-color;
}

.tree-parent{
	padding-left:0;
}
.tree-child{
	padding-left:2.5em;
}
form {
	position:relative;
}

.fade {
    opacity: 0;
    -webkit-transition: opacity .15s linear;
    -o-transition: opacity .15s linear;
    transition: opacity .15s linear;
}

.fade.in {
    opacity: 1;
}

.close {
    float: right;
    font-size: 21px;
    padding:0 5px;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 $white-color;
    background:none;
    border:0;
    &:hover,
    &:active,
    &:focus {
    	background:$red-color;
    	border:0;
    }
}

.btn {
    display: inline-block;
    padding: 6px 12px;
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: normal;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;
}

.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.btn-primary {
    color: #fff;
    background-color: #337ab7;
    border-color: #2e6da4;
}

.model {
	position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1050;
    display: none;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    outline: 0;
    background: rgba(0,0,0,.3);
	.modal-dialog {
	    position: relative;
	    width: 600px;
	    margin: 0 auto;
    	margin-top: 5%;
	}
	.modal-content {
	    position: relative;
	    background-color: $white-color;
	    -webkit-background-clip: padding-box;
	    background-clip: padding-box;
	    border: 1px solid #999;
	    border: 1px solid rgba(0,0,0,.2);
	    border-radius: 6px;
	    outline: 0;
	    -webkit-box-shadow: 0 3px 9px rgba(0,0,0,.5);
	    box-shadow: 0 3px 9px rgba(0,0,0,.5);
	}
	.modal-header {
	    padding:8px 15px;
	    border-bottom: 1px solid $head-bg-color;
	    .close {
		    margin-top: -2px;
		}
		.modal-title {
		    margin: 0;
		    line-height: 1.42857143;
		}
	}
	.modal-body {
	    position: relative;
	    padding: 15px;
	}
	.modal-footer {
	    padding:8px 15px;
	    text-align: right;
	    border-top: 1px solid #e5e5e5;
	    .btn+.btn {
		    margin-bottom: 0;
		    margin-left: 5px;
		}
	}
	&.fade .modal-dialog {
	    -webkit-transition: -webkit-transform .3s ease-out;
	    -o-transition: -o-transform .3s ease-out;
	    transition: transform .3s ease-out;
	    -webkit-transform: translate(0,-25%);
	    -ms-transform: translate(0,-25%);
	    -o-transform: translate(0,-25%);
	    transform: translate(0,-25%);
	}
	&.in .modal-dialog {
	    -webkit-transform: translate(0,0);
	    -ms-transform: translate(0,0);
	    -o-transform: translate(0,0);
	    transform: translate(0,0);
	}
}

.btn-move-left,
.btn-move-right {
	padding:0 6px;
	font-size:12px;
}

.ce-title {
	margin-bottom:10px;
}
.ce-select {
	margin-bottom:10px;
	select,
	form {
		vertical-align: middle;
	}
	form {
		display: inline-block;
	}
	.btn-search {
		top:1px;
		right:7px;
		&:focus {
			box-shadow:none;
		}
	}
}
.ce-box {
	max-height:500px;
	overflow:auto;	
}
.ce-hieght{
	height:400px;
	border:1px solid $border-color;
}
.ce-button {
	li{
		margin:5px;
	}
}
.ce-ul {
	border:1px solid $border-color;
	min-height:208px;
	li {
		padding:5px 10px;
		cursor: pointer;
		&:hover {
			//background-color: $table-tbody-hover;
		}
		&.current {
			background-color: $table-tbody-hover;
		}
	}
}
.table-forms-btn {
	margin-right:20px;
	vertical-align:middle;
}

.btn-color{
	&-red,
	&-green {
		display: inline-block;
		width: 20px;
		height: 20px;
		border-radius:50%;
		vertical-align: middle;
	}
	&-red {
		background: $red-color;
	}
	&-green {
		background:$green-color;
	}
}

iframe body {
	margin-bottom:0 !important;
}

#cpuSetting_Dialog,
#memorySetting_Dialog,
#diskSetting_Dialog,
#responsetimeSetting_Dialog {
	.modal-dialog {
		width:400px;
	}
}

.ce-tbody {
	tr:hover {
		background-color:none;
	}
	tr.current {
		background:$table-tbody-hover;
	}
}

.dashbrd-widget-head-hasbtn {
	li {
		margin:4px 4px 0 0;
	}
}

#resource-cell {
	background-color:$body-bg-color;
	position:relative;
	z-index:223;
}

#resourcetabs {
	tr[class*="p"]{
		&.current {
			background-color:$table-tbody-hover;
		}
	}
}
.fadeRes {
	.article {
		position: fixed;
		background: $body-bg-color;
	    padding: 10px 15px;
	    bottom: 0px;	    
	    z-index: 222;
	    max-width:1500px;
	    overflow: auto;
	    -webkit-box-shadow: 1px 0 5px rgba(0,0,0,.14);
	    box-shadow: 1px 0 5px rgba(0,0,0,.14);	
	    width: 900px;    	    
	}
    .article-main {
        width:98%;
    }
    .article {
		-webkit-transition-property: -webkit-transform,width;
	    transition-property: transform,width;
	    -webkit-transition-timing-function: ease-in;
	    transition-timing-function: ease-in;
	    -webkit-transition-duration: .6s;
	    transition-duration: .6s;
	    -webkit-transform: translateX(0);
	    -ms-transform: translateX(0);
	    -o-transform: translateX(0);
	    transform: translateX(0);
	    -webkit-transform: translateZ(0);
	    -ms-transform: translateZ(0);
	    -o-transform: translateZ(0);
	    transform: translateZ(0);
	}
}
.fadeformodal {
	.article {
		position: fixed;
		background: $body-bg-color;
	    padding: 10px 15px;
	    bottom: 0px;	    
	    z-index: 222;
	    max-width:1500px;
	    overflow: auto;
	    -webkit-box-shadow: 1px 0 5px rgba(0,0,0,.14);
	    box-shadow: 1px 0 5px rgba(0,0,0,.14);	
	    width: 900px;    	    
	}
	.article,
	.overlay {
		left:211px;
		top:110px;
	}
    .article-main {
        width:81.5%;
    }
	.article {
		-webkit-transition-property: -webkit-transform,width;
	    transition-property: transform,width;
	    -webkit-transition-timing-function: ease-in;
	    transition-timing-function: ease-in;
	    -webkit-transition-duration: .6s;
	    transition-duration: .6s;
	    -webkit-transform: translateX(0);
	    -ms-transform: translateX(0);
	    -o-transform: translateX(0);
	    transform: translateX(0);
	    -webkit-transform: translateZ(0);
	    -ms-transform: translateZ(0);
	    -o-transform: translateZ(0);
	    transform: translateZ(0);
	}

	.overlay {
	    position: absolute;
	    z-index: 8;
	    right: 0;
	    bottom: 0;
	    background: #000;
	    opacity: .3;
	    filter: alpha(opacity=30);
	    display: block;
	}

	&.modal-hide{
		.overlay {
			display: none;
		}
		.article {
			-webkit-transform: translateX(-2000px);
		    -ms-transform: translateX(-2000px);
		    -o-transform: translateX(-2000px);
		    transform: translateX(-2000px);
		}		
    }  

   
}

.xs_slide {
	display:inline-block;
	width:100px;
	height:7px;
	border-radius:4px;
	overflow:hidden;
	position:relative;
	background:$border-color;
	> span {
		display: inline-block;
		width: 0;
		height: 100%;
		background:$green-color;
		position: absolute;
	    left: 0;
	    top: 0;
	}
}

#resourcebox_widget {
	min-width:200px;
}

#alarm_Dialog {
	.modal-dialog {
		height: 80%;
	}
	.modal-content {
		height:100%;
	}
	.modal-body {
		height:calc(100% - 37px - 30px);
		overflow: auto;
	}
}

.loading {
	text-align:center;
	padding:15px;
	img {
		margin-right: 5px;
	}
}
.loadingindex{
	position:fixed;
	left:50%;
	top:50%;
}

.loaddiv {
	position:relative;
	&:before {
		position:absolute;
		left: 50%;
		top:50%;
		content: "正在加载请稍后……";
		margin-left: -30px;
		margin-top: -7px;
	}
}

#mapbox_widget,
#abnormalalarmstabox_widget,
#alarmcomparisonbox_widget,
#cpubodybox_widget,
#memorybodybox_widget,
#diskbodybox_widget,
#responsetimebodybox_widget,
#currentNoticeBox_widget {
	display:none;
}

.dashbrd-widget-head-nobg {
	background:none;
	h4 {
		color:$font-color;
	}
}

#resourcebox_widget{
	#resourcebox {
		margin:0;
		border-radius:0;
		.list-table {
			border:none;
		}
	}	
}

.btn-month,
.btn-week {
	padding: 4px 8px;
    display: inline-block;
    cursor: pointer;
    background:#fff;
	border-color:#fff;
	color:$font-color;
	border-radius:0 2px 2px 0;
	&:first-child {
		border-radius:2px 0 0 2px;
	}
	&.current {
		background:#e37d29;
		border-color:#e37d29;
		color:#fff;
	}
}

//alert
#mb {
	&_box {
		width: 100%;
	    height: 100%;
	    z-index: 99999;
	    position: fixed;
	    top: 0px;
	    left: 0px;
	    background: rgba(0,0,0,.3);
	}	
    &_con{
    	position:relative;
    	z-index: 999999;
	    min-width: 200px;
	    max-width: 400px;
	    background-color: #fff;
	    margin-top:5%;
	    border: 1px solid rgba(0, 0, 0, 0.2);
	    border-radius: 6px;
	    outline: 0;
	    -webkit-box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
	    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
	    margin-right: auto;
	    margin-left: auto;
    }
    &_head{
		padding: 8px 15px;
    	border-bottom: 1px solid $head-bg-color;
    }
    &_tit{
    	font-size: 1.167em;
	    color: #1f2c33;
	    font-size: 1.167em;
    }
    &_ico{
    	float: right;
	    font-size: 21px;
	    padding: 0 5px;
	    line-height: 1;
	    color: #000;
	    text-shadow: 0 1px 0 #fff;
	    background: none;
	    border: 0;
	    margin-top: -2px;
	    cursor: pointer;
	    border-radius:2px;
	    &:hover,
	    &:active,
	    &:focus {
	    	background: $red-color;
    		color: $white-color;
	    }
    }
    &_msg{
    	position: relative;
    	padding: 15px;
    }
    &_btnbox{
    	padding: 8px 15px;
	    text-align: right;
	    border-top: 1px solid #e5e5e5;
	    .btn + .btn {
		    margin-bottom: 0;
		    margin-left: 5px;
		}
    }
}
#container-responseTime,
#container-icmppingLoss,
#container-cpuOnly,
#container-memoryOnly {
	float:left;
	height:200px;
	width:50%;
	> div {
		width:100% !important;
		background:$white-color;
	}
}
.cellDrag{
	padding-bottom:60px;
}
.reports{
	.reports-cell{
		float: left;
		&:first-child {
			width: 250px;
			margin:0;
			position:relative;
			z-index: 2;
		}
		margin-left:-250px;
		width: 100%;
		.margin-w {
			margin-left: 260px;
		}
	}
}
.mainViewContent {
	position:absolute;
	top:178px;
	bottom:30px;
	left:5px;
	right:5px;
	overflow:auto;
	/*overflow-x: hidden;*/
}
.mainViewContentMax {
	position:absolute;
	top:62px;
	bottom:0;
	left:5px;
	right:5px;
	 overflow:auto; 
	/*overflow-x:hidden;
	overflow-y:auto;*/
}
.last {
	margin-bottom:-20px;
}
#demoTh {
   position:relative;
   overflow:visible;
}
.demoExp {
	position:absolute;
	left:80px;
	bottom:-16px;
	width:10px;
	height:13px;
	background:blue;
	z-index:1;
}
.demoExp textara {
	position:absolute;
	left:0px;
	top:300px;
	
}
.btn-border{
	border:1px solid #0275b8;
}
#testCpu .tree-parent label{
	font-size:15px;
	margin-left: 25px;
}
#testCpu .tree-child label{
	font-size:13px;
}
#testComputer .tree-parent label{
	font-size:15px;
}
#testComputer .tree-child label{
	font-size:13px;
	margin-left: 25px;
}
.hostBg{
	position:relative;
}
#testComputer .hostBg:after{
	left: 35px;
}
.hostBg::after{
	 content: " ";
	 font-size: 24pt;
	 text-align: center;
	 line-height: 24px;
	 position: absolute;
	 right: -26px;
     top: -2px;
	 background: url(../img/host.png) 0px 0px;
	 display: block;
	 height: 20px;
	 width: 22px;
	 background-size:cover;
}
.hostBg2::after{
	 background: url(../img/host.png) -97px 0px;
	 background-size:cover;
}
.hostBg3::after{
	 background: url(../img/host.png) -65px 0px;
	 background-size:cover;
}
.hostBg4::after{
	 background: url(../img/host.png) -32px 0px;
	 background-size:cover;
}
.hostBg5::after{
	 background: url(../img/host.png) -129px 0px;
	 background-size:cover;
}
.hostBg6::after{
	 background: url(../img/host.png) -161px 0px;
	 background-size:cover;
}
input:disabled{
	border:1px solid #DDD;
	background-color:red;
	color:#ACA899;
}
#currentNoticeBox_widget td,th{
	border-right:1px solid #e5e5e5;
	
}
.table-forms-container .creatBorder{
	    border: 1px solid #e5e5e5;
    padding: 10px;
}
.creatWaring{
	font-size:13px;
	margin-left:80px;
}
.table-forms .tfoot-buttons .creatBtn{
	 margin-left:85px; 
}