@import "bootstrap.min.css";
@import "bootstrap-theme.min.css";
@import "alertify-core.css";
@import "alertify-bootstrap3.css";
@import "daterangepicker-bs3.css";
@import "bootstrap-switch.min.css";

html, body {
    min-height:100%;
    background: #eee;
}
.loader_backdrop {
    z-index: 1060;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    position: fixed;
}
.loader_backdrop .backdrop_close {position:fixed; display:block; width:50px; height:50px; top:5px; right:30px; cursor: pointer;}
#login_box{
    height: 250px;
    left: 50%;
    margin-left: -200px;
    margin-top: -125px;
    position: absolute;
    top: 50%;
    width: 400px;
}
#login_box .nav-tabs {
    padding-left: 120px;
}
#login_box .tab-content {
    padding: 15px;
    border: 1px solid #ccc;
    border-top: none;
    background: #fff;
}
.nav a {
    outline: none;
	font-weight:bold;
}
/*#notice_wrapper {
	position:fixed;
	top:0;
	left:0;
	z-index:100;
	width:100%;
	text-align:center;
}*/
.my-alert {
	margin:5px auto;
	max-width:500px;
	position: relative;
	z-index:1100;
}
.nav-sidebar {
    margin-top: 25px;
    margin-left: -20px;
    margin-right: -21px;
}
.nav-sidebar > li > a {
    padding-left: 20px;
    padding-right: 20px;
}
.nav-sidebar > .active > a, .nav-sidebar > .active > a:focus {
    background-color: #428BCA;
    color: #FFFFFF;
}
#content_box {
	background-color: #FFF;
	position: absolute;
	width: 100%;
	min-height: 100%;
	top:0;
}
#content_box .sidebar {
	background-color: #FFF;
}
#content_box .main {

}
.server_content .table tbody td{
	text-align: center;
}
.server_content .table tbody td:first-child{
	text-align: left;
}
.server_content .table tbody td:last-child{
	text-align: right;
}

#task_list_table tbody td:first-child, th:first-child{
    text-align: center;
}

#task_list_table tbody td:first-child+td{
    text-align: left;
}

#task_list_table tbody td.align_with_tablesorter {
    padding: 4px 18px 4px 4px;
}

#servers_page_header .server_content .table tbody td:nth-child(4){
	text-align: left;
}
.note-panel {
	margin: 10px -10px 10px 0;
}
.note-panel .badge {
	margin-right: 10px;
}
@media (min-width: 768px) {
	#content_box .sidebar {		
		bottom: 0;
		display: block;
		left: 0;
		overflow-x: hidden;
		overflow-y: auto;
		padding: 0 20px;
		position: fixed;
		top: 0;
		z-index: 100;
	}
}
.loader-anim {
	width:400px;
	height:100px;
    padding-left: 60px;
	position:absolute;
	left:50%;
	top:50%;
	margin-top:-24px;
	margin-left:-24px;
	background: url('../img/loader.gif') no-repeat left top;
    font-weight: bold;
}
.commonTopPanel {float: left;}
.commonTopPanel .btn-lg{
    margin-right: 15px;
    width: 90px;
}
.commonTopPanel .btn-lg .glyphicon{
    font-size:32px;
}
.commonTopPanel .btn-lg small {
    font-size: 12px;
}
.commonTopPanel .general_info {
    margin-bottom: 15px;
}
.commonTopPanel .badge.status {
    margin-right: 30px;
}
#subtab {
    margin-bottom: 8px;
}
#supportIndexContent .part {
    padding: 10px 20px;
}
#supportIndexContent .part .glyphicon {
    font-size: 40px;
    margin-right: 20px;
    vertical-align: middle;
}
#supportIndexContent .part .glyphicon.question {
    border: 2px solid #000000;
    border-radius: 40px;
    font-weight: bold;
    line-height: 21px;
    padding: 0 8px 12px;
    width: 39px;
    margin-left: 2px;
}
#edit_task_form .modal-body .row, #add_task_form .modal-body .row{
    margin-bottom: 5px;
    word-wrap: break-word;
}
#edit_task_form .modal-body .row .checkbox, #add_task_form .modal-body .row .checkbox {
    padding-left: 40px;
    margin:0;
}
.my-form-control {
    background-color: #FFFFFF;
    background-image: none;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
    color: #555555;
    display: block;
    font-size: 14px;
    height: 25px;
    line-height: 1.42857;
    padding: 0px 12px;
    transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
}

#add_task_form .has-feedback {
    margin-top: 10px;
}
#add_task_form .has-feedback .glyphicon-refresh {
    cursor:pointer;
}
.glyphicon-refresh-animate {
    animation: spin 1.5s infinite linear;
    -webkit-animation: spin2 1.5s infinite linear;
}

@-webkit-keyframes spin2 {
    from { -webkit-transform: rotate(0deg);}
    to { -webkit-transform: rotate(360deg);}
}

@keyframes spin {
    from { transform: scale(1) rotate(0deg);}
    to { transform: scale(1) rotate(360deg);}
}

.error_msg {
    display: none;
}

.has-error .error_msg {
    display: inline-block;
}

#edit_task_form .row div{
    padding: .4em .6em .5em;
    vertical-align: baseline;
    display: inline;
    line-height: 1;
}

.color_state {
    display: inline;
    padding: .4em .6em .5em;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    text-align: left;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .75em;
}

.color_state_0 {
    background-color:transparent;
    color: black;
    font-weight: normal;
}

.color_state_1, .color_state_2, .color_state_3 {
    background-color:LawnGreen;
    color: #FFF;
}

.color_state_4, .color_state_5 {
    background-color:Gold;
    color: #FFF;
}

.color_state_6, .color_state_7 {
    background-color:orange;
    color: #FFF;
}

.color_state_8, .color_state_9, .color_state_10 {
    background-color:red;
    color: #FFF;
}

.color_state_11, .color_state_12, .color_state_13, .color_state_14, .color_state_15 {
    background-color:darkred;
    color: #FFF;
}

/* HTML 5 Validation classes*/
input.form-control:required:invalid {
    border-color: #a94442;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}
input.form-control:focus:invalid {
    border-color: #843534;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
}

#taskDetailsModal .modal-dialog {
    width: 1400px;
}

#server_tab_stat_summary {float: left; clear: left; font-style: italic;}
#server_tab_stat_summary li {display: inline-block; padding-right: 10px;}
#server_tab_stat_summary li span {font-weight: 700;}

#editTaskModal .modal-dialog {width: 1000px;}

/* http://stackoverflow.com/a/1199957/1002036 */
.shorten {
    white-space: nowrap;
    width: 100%;                   /* IE6 needs any width */
    overflow: hidden;              /* "overflow" value must be different from  visible"*/
    -o-text-overflow: ellipsis;    /* Opera < 11*/
    text-overflow:    ellipsis;    /* IE, Safari (WebKit), Opera >= 11, FF > 6 */
}

#edit_metadata {cursor: pointer;}
#editTaskModal .url_input {clear: both; display: block; float: left; width: 100%;}
#editTaskModal .url_input button.dropdown-toggle {margin-top: -8px;}
#editTaskModal  .url_input input.left {width: 220px; text-align: center;}
#editTaskModal  .url_input input.right {min-width: 450px;}
#editTaskModal  .url_input a.glyphicon-new-window {position: relative; top: -13px; left: 10px;}
#editTaskModal  .col-xs-10 {padding-left: 0}
#editTaskModal  #schema_selector {width:90px;}
#editTaskModal  .url_input #change_domain_part {position: absolute; top:13px; right:-23px; display:none;}

#task_list_tbl tr.highlight td {background-color: rgba(253, 255, 187, 0.58);}

#top_alert_block {width: 70%; margin:0 auto; text-align: center;}
#editTaskModal .url_label, #editTaskModal .url_label input {width: 500px;}
#editTaskModal .badge {cursor: default;}
#editTaskModal ul.properties {list-style-type:none; padding-left:0;}
#editTaskModal ul.properties li {display:inline-block; margin-right:10px;}

#taskDetailsModal #manual_run {float: left; margin-left: 10px;}
#taskDetailsModal #manual_run span {display: block; position: relative; top:2px; left:8px; float:right; }

#taskDetailsModal #edit_task {float: left; margin-left: 30px;}
#taskDetailsModal #edit_task span {display:block; position:relative; top:2px; left:0; float:right; width:30px; height:30px;}
#taskDetailsModal h4 {color: black;}

#taskHistoryModal .modal-dialog {width: 1500px;}

#historyControlPanel {padding: 10px; height: 50px;}
#historyControlPanel #updateHistoryRange {margin-left: 15px; margin-top: -4px;}
#historyControlPanel #periodPicker {width: 200px;}

#apiContent #api_form {width: 600px;}
#apiContent #apiKeyInput {width: 350px;}
#apiContent #api_info {margin-top: 15px;}
#taskDetailsModal #dl_overview {max-height: 200px; overflow: scroll;}
#taskDetailsModal #dl_overview dd {float: left; clear: right; width: 260px; margin-left: 30px; margin-right: 23px;}
#taskDetailsModal #dl_overview #taskUrlField {width: 200px;}
#taskDetailsModal #dl_overview #copyTaskUrlToClipboardBtn {width:56px;}
#taskDetailsModal #dl_overview dt {float: left; width: 130px; clear: none;}

#taskDetailsModal #checks_area {max-height:500px; overflow: scroll;}

#taskDetailsModal #checks_area .check_name {width: 240px;}
#taskDetailsModal #checks_area .check_value, #taskDetailsModal #checks_area .check_model, #taskDetailsModal #checks_area .check_prev {width: 100px; text-align: center;}
#taskDetailsModal #checks_area .check_state, #taskDetailsModal #checks_area .check_pr_state, #taskDetailsModal #checks_area .check_penalty {width: 80px; text-align: center;}
#taskDetailsModal #checks_area .check_duration {width: 120px;}
#taskDetailsModal #checks_area .check_pr_datetime {width: 130px;}
/*#taskDetailsModal #checks_area th.check_reasons {width: 100px;}*/

span.badge span.spot {position:absolute; display:block; width:12px; height:12px; top: -3px; right: -5px; border-radius:15px; border:2px white solid;}
span.badge {position: relative;}

#taskHistoryStat {margin-top:5px; border:1px black solid; float:left; width:600px;}
#lowerPlotArea {height:410px;}

#task_list_tbl tr.disabled td, #server_list_tbl tr.disabled td {background-color: #cacac8; font-style: italic; color: #838383;}
#task_list_tbl tr.disabled td span.badge, #server_list_tbl tr.disabled td span.badge {background-color: #B0B0B0 !important;}

#server_list_tbl td.ip, #server_list_tbl td.enter_cell {position:relative;}
#server_list_tbl .ip .set-ips, #server_list_tbl .set-label {cursor: pointer; position:absolute; top:10px; right:5px;}
#server_list_tbl .ip .set-ips, #server_list_tbl tr .set-label {display:none;}
#server_list_tbl td.ip:hover .set-ips, #server_list_tbl td:hover .set-label {display:block;}

#serverSetIPsModal .ip_section input:first-child {width:300px;}
#serverSetIPsModal .ip_content {clear:both; margin-left:15px;}
#serverSetIPsModal #add_ip_field {cursor:pointer;}

#domainInitialData .modal-body table    {width:95%; /*background-color:#AFD9EE;*/}
#domainInitialData .modal-body table td {/*border:1px black dashed;*/ padding:4px 15px;}
#domainInitialData .modal-body table td.name {width:70px;}
#domainInitialData .modal-body table td input.text {width: 95%;}
#domainInitialData #add_ip_item, #domainInitialData .remove-ip {cursor:pointer;}

#servers_page_header h1 {float:left;}
#server-group-selector {float:left; margin:29px 0 0 50px;}
#refresh_list_btn {top:6px;}

#add_group_details_form {display:none;}
#add_group_details_form .container {clear:both; padding:10px;}
#add_group_details_form .container input.text {width:500px; margin:2px 0;}

#server-group-description {float:left; clear:right; width:600px; visibility:hidden; max-height:40px; margin:35px 0 0 30px; font-style:italic;   font-family: "Courier new", serif;}

/*#check_list label span.label_str {position:relative; top:3px; left:8px;}*/
#check_list label .bootstrap-switch.bootstrap-switch-wrapper {top:-1px; margin-right:5px;}
#ipv6_selector .bootstrap-switch.bootstrap-switch-wrapper {margin-left:10px;}
