/*!
 * REasy UI CSS v1.0.5 2015-06-17
 *
 * Copyright 2015 ET.W
 * Licensed under the Apache License v2.0
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * The CSS for REasy UI.
 */


/**
 * UI animate.
 *
 * @section animate
 */

.ani-init {
    opacity: 0;
    transition: all 0.3s;
}

.ani-final {
    opacity: 1;
}


/**
 * UI mask.
 *
 * @section mask
 */

.overlay,
.overlay-white {
    position: fixed;
    z-index: 1999;
    left: 0;
    top: 0;
    bottom: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    /* for ie6 ,does not work with position fixed*/
    _position: absolute;
    _top: expression((0 + (ignoreMe=document.documentElement.scrollTop ? document.documentElement.scrollTop: document.body.scrollTop)) + 'px');
    _right: expression((0 + (ignoreMe2=document.documentElement.scrollLeft ? document.documentElement.scrollLeft: document.body.scrollLeft)) + 'px');
    _height: 980px;
}

.overlay {
    background: #000;
    opacity: 0.7;
    filter: alpha(opacity=70);
}

.overlay-white {
    background: #fff;
    opacity: 0.5;
    filter: alpha(opacity=80);
}


/* Placeholder */

.placeholder-content {
    position: relative;
}

input.placeholder-text,
.placeholder-text {
    color: #c6c3c0;
    opacity: 1;
}

.placeholder-content .placeholder-text {
    position: absolute;
    min-width: 290px;
    top: -5px;
    left: 7px;
    z-index: 1;
}


/**
 * UI message for ajax.
 *
 * @section message
 */

.message-ajax {
    position: fixed;
    z-index: 2000;
    top: 20%;
    left: 0;
    width: 100%;
    height: 0;
    text-align: center;
    transform-style: preserve-3d;
    perspective: 1200px;
    /*  
  left: 44%;
  width: 220px;
  background: #ffcc00;
  @include border-radius($ajax-msg-bd-radius);
  @include towColorGradient($ajax-msg-start-color, $ajax-msg-end-color); 
  */
}

.message-ajax .message-ajax-txt {
    /*display: inline-block;
    min-width: 200px;
    padding: 18px;
    -moz-border-radius: 6px;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    color: #fff;
    font-weight: normal;
    font-size: 18px;
    background-color: #000;
    opacity: 0.7;
    filter: alpha(opacity=70);*/

    position: fixed;
    top: 20%;
    left: 50%;
    width: 320px;
    margin-left: -160px;
    padding: 28px 18px;
    color: #fff;
    font-size: 14px;
    z-index: 9999;
    text-align: center;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    background-color: #000;
    opacity: .9;
    filter: alpha(opacity=90);
    /*filter: progid: dximagetransform.microsoft.gradient(startColorstr=#00000000, endColorstr=#00000000, GradientType=0);*/
}

:root .message-ajax .message-ajax-txt {
    /*background-color: #000;*/
    opacity: 0.7;
    filter: alpha(opacity=70);
   /* filter: progid: dximagetransform.microsoft.gradient(startColorstr=#00000000, endColorstr=#00000000, GradientType=0);*/
}

.message-ajax.ani-init {
    /* transform: rotateX(90deg); */    
    transition: all 0.1s ease-in-out;
    transform: translateY(20px);
    opacity: 0;
    /*transform: translate(0, -30px);
    transform-origin: 0 0;
    transition: all 1s;*/
}

.message-ajax.ani-final {
    transform: none;
}


/**
 * UI validate.
 *
 * @section validate
 */

.validatebox-tip-wrap {
    /* position: relative; */
    z-index: 999;
}

.validatebox-tip-wrap.ani-init {
    transition: all .0s;
    transform: translate(0px, 10px);
}

.validatebox-tip-wrap.ani-final {
    transform: none;
}

.validatebox-tip-wrap.none {
    display: none !important;
}

.validatebox-tip {
    position: absolute;
    /*visibility: hidden;*/
    top: 105%;
    z-index: 999;
    height: auto;
    cursor: pointer;
}

.validatebox-em .validatebox-tip {
    position: absolute;
    left: 0px;
    top: 36px;
}

.validatebox-tip-content {
    position: relative;
    font-size: 14px;
    line-height: 20px;
    z-index: 999;
    display: inline-block;
    width: 200px;
    max-width: 220px;
    min-width: 130px;
    padding: 6px 15px 6px 5px;
    color: #f00;
    border: 1px solid #c93;
    border-radius: 4px;
    box-shadow: 1px 1px 3px #888;
    background-color: #ffc;
    white-space: pre-wrap;
}

.validatebox-tip-pointer {
    position: absolute;
    z-index: 1000;
    top: -7px;
    left: 8px;
    display: inline-block;
    width: 19px;
    height: 16px;
    background: url('/common/img/validatebox_arrows.png') no-repeat -27px center;
}

.validatebox-invalid,
input.validatebox-invalid,
input.validatebox-invalid:focus {
    border: 1px solid #f00;
}

.validatebox-invalid input.text {
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

.validatebox-error-icon {
    position: absolute;
    z-index: 998;
    top: 9px;
    right: 1px;
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('/common/img/validate-error-icon.png') no-repeat center;
    background-size: 100% 100%;
    cursor: pointer;
}

.validatebox-tip-close {
    position: absolute;
    right: 1px;
    top: 1px;
    color: #c93;
    font-size: 14px;
    line-height: 14px;
    cursor: pointer;
}

.validate-elem-wrap {
    position: relative;
    display: inline-block;
}

@media (max-width: 480px) {
    .validate-elem-wrap {
        max-width: 100%;
    }
    .validatebox-tip-content {
        max-width: 140px;
    }
}

.modal .validate-elem-wrap {
    max-width: 100%;
}

@media (min-width: 768px) {
    .validatebox-tip {
        top: 0px;
        left: 100%;
        margin-left: 7px;
    }
    .validatebox-tip-pointer {
        top: 9px;
        left: -8px;
        width: 9px;
        background-position: 0px 0px;
    }
    .validatebox-tip-content {
        min-width: 150px;
        max-width: 180px;
    }
}

.form-control {
    display: inline-block;
}

.none {
    display: none;
}

.hide {
    visibility: hidden;
}

@media (max-width: 767px) {
    .controls {
        padding-right: 45px;
    }
    .panel {
        border-radius: 0;
    }
    .panel .panel-heading {
        border-radius: 0;
        border: none;
    }
}

@media (min-width: 768px) {
    .controls {
        float: right;
        padding-right: 45px;
        width: 245px;
    }
}

.controls-text {
    padding-top: 7px;
}
 
body {
    overflow-x: hidden;
}

body .controls-xs {
    width: 50px;
}

body .controls-sm {
    width: 150px;
}

body .controls-md {
    width: 300px;
}

body .controls-lg {
    width: 550px !important;
}

body .control-xs {
    width: 40px;
}

body .control-sm {
    width: 80px;
}

body .control-md {
    width: 150px;
}

body .control-fit {
    width: 130px;
}

body .control-lg {
    width: 300px;
}

.dl-horizontal dt {
    width: 140px !important;
}

.dl-horizontal dd {
    margin-right: 15px;
}

.dl-inline dd {
    float: left;
    padding-left: 0;
    margin-left: 0;
}

.field-label {
    font-weight: normal;
    padding-top: 7px;
    color: #d82228;
}

table thead {
    background: #f3f3f3;
}

select.form-control {
    padding-top: 4px;
}

@media (max-width: 480px) {
    .form-control,
    .input-append input {
        width: 150px;
    }
}

@media (min-width: 480px) {
    .form-control,
    .input-append input {
        width: 220px;
    }
}

@media (min-width: 768px) {
    .form-control,
    .input-append input {
        width: 240px;
    }
}

.modal .form-control,
.modal .input-append input {
    /* max-width: 100%; */
}

.th-checkbox {
    width: 30px;
}

.th-index {
    width: 60px;
}

.controls-inline {
    width: 100% !important;
}

.controls-inline > input {
    display: inline-block;
}

.controls-inline > span {
    display: inline;
}

.help-inline {
    display: inline;
}

table td .operate {
    cursor: pointer;
}

table td .operate span {
    background: url(/common/img/operate-new.png) no-repeat;
    padding: 10px 12px;
}

table td .operate span.enable {
    background-position: 0 -29px;
}

table td .operate span.disable {
    background-position: 0 11px;
}

table td .operate span.edit {
    background-position: 0 -150px;
}

table td .operate span.delete {
    background-position: 0 -70px;
}

table td .operate span.adv {
    background-position: -4px -227px;
}

table td .operate span.edit:hover {
    background-position: 0 -190px;
}

table td .operate span.delete:hover {
    background-position: 0 -110px;
}

button.btn-del {
    background-image: url(/common/img/operate-new.png);
    padding-left: 31px;
    background-repeat: no-repeat;
    background-position: 6px -74px;
}

button.btn-del:focus {
    background-image: url(/common/img/operate-new.png);
}

.btn.pageNum,
.btn.prev,
.btn.next {
    display: inline-block;
    line-height: 25px;
    margin-left: 3px;
    padding: 1px 2px;
    color: #555;
    cursor: pointer;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    text-align: center;
}

.btn.pageNum {
    width: 40px;
}

.btn.prev,
.btn.next {
    width: 32px;
}

.pageGo {
    display: inline-block;
    margin-bottom: -12px;
}

.dl-horizontal + .dl-horizontal {
    border-top: 1px solid #F2F2F2;
    padding-top: 18px;
}

label.file {
    position: relative;
}

label.file input[type='file'] {
    opacity: 0;
    background: transparent;
    height: 100%;
    width: 100%;
    filter: alpha(opacity=0);
    height: 0\0;
    width: 0\0;
    position: absolute;
    top: 0;
    left: 0;
}

.btn-static-sm {
    min-width: 80px;
}


.modal-backdrop {
    background: #000;
}

.modal-backdrop.in {
    background: #000;
    opacity: 0.3;
    filter: alpha(opacity=30);
}

@media (min-width: 768px) {
    .checkbox-list[id="appFilterList"] label {
        width: 121px;
        float: left;
    }
    .checkbox-list[id="urlFilterGroupList"] label {
        width: 116px;
        float: left;
    }
}

@media (max-width: 767px) {
    .checkbox-list[id="appFilterList"] label {
        width: 95px;
        float: left;
    }
    .checkbox-list[id="urlFilterGroupList"] label {
        width: 90px;
        float: left;
    }
}

.modal-backdrop.fade {
    -webkit-transition: opacity 0.1s linear;
    transition: opacity 0.1s linear;
}

.modal-dialog.modal-md {
    width: 455px;
}

.modal-dialog.modal-lg {
    width: 640px;
}

.modal-body {
    /* max-height: 400px; */
    /* overflow-y: auto; */
    /*
    .control-label {
        width: 135px;
    }
    */
}

@media (max-width: 600px) {
    .modal-body {
        overflow-x: auto;
    }
}

.modal-body .controls {
    padding-left: 150px;
    width: 350px;
}

.modal-footer {
    border-top: none;
}

a {
    cursor: pointer;
}

.msgbox {
    position: fixed;
    top: 140px;
    left: 50%;
    margin-left: -119px;
    width: 222px;
    padding: 28px 8px;
    color: #fff;
    font-size: 14px;
    z-index: 9999;
    text-align: center;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    background-color: #666;
    opacity: .9;
    filter: alpha(opacity=90);
}

.text-static {
    text-overflow: ellipsis;
    overflow: hidden;
    word-wrap: keep-all;
    white-space: nowrap;
}

td span.text-static {
    max-width: 375px;
    display: inline-block;
}

.table-page-navbtn {
    text-align: right;
}

.table-page-navbtn label {
    display: none;
}

.table-page-navbtn .pageGo {
    display: none;
}

.control-legend {
    padding-top: 7px;
    /* padding-bottom: 7px;
  padding-left: 30px;
  margin-bottom: 0;
  min-height: 34px;  */
}

.form-action {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

#pingInfo {
    display: inline-block;
    border: 1px solid #ccc;
    padding: 3px 6px;
    font-size: 12px;
    line-height: 20px;
    color: #333;
    width: 360px;
    height: 200px;
    margin: 10px 0;
    /* cursor: not-allowed; */
    background-color: #eeeeee;
    vertical-align: top;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -webkit-transition: border linear 0.2s, -webkit-box-shadow linear 0.2s;
    -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
    -o-transition: border linear 0.2s, box-shadow linear 0.2s;
    transition: border linear 0.2s, box-shadow linear 0.2s;
}

.controls-label {
    float: left;
    width: 320px;
    text-align: right;
    padding-top: 7px;
}

.label-right-ddos {
    margin-left: 171px;
    text-align: left;
    padding-top: 0px;
}

.label-right-iptack {
    width: 230px;
    margin-left: 171px;
    text-align: left;
    padding-top: 0px;
}

.title-left {
    position: absolute;
    padding-left: 15px;
}

.content-right {
    position: relative;
}


/* lang-cn */

.lang-cn .controls-legend {
    margin-left: 325px;
}

.lang-cn .label-right-ddos {
    width: 150px;
}

.lang-cn .title-left {
    width: 160px;
}

.lang-cn .content-right {
    width: 770px;
    margin-left: 165px;
}

.lang-cn .wan-Info-left {
    width: 440px;
}

.lang-cn .wan-Info-right {
    width: 340px;
}

/* lang-cn end */


/* lang-en */

.lang-en .controls-legend {
    margin-left: 335px;
}

.lang-en .label-right-ddos {
    width: 200px;
}

.lang-en .title-left {
    width: 200px;
}

.lang-en .content-right {
    width: 669px;
    margin-left: 205px;
}

.lang-en .pptp-server .title-left {
    width: 130px;
}

.lang-en .pptp-server .content-right {
    width: 740px;
    margin-left: 135px;
}

.lang-en .lan-set .title-left {
    width: 120px;
}

.lang-en .lan-set .content-right {
    width: 735px;
    margin-left: 140px;
}

.lang-en #routeTableContainer .title-left {
    width: 160px;
}

.lang-en #routeTableContainer .content-right {
    width: 700px;
    margin-left: 170px;
}

.lang-en #attackDefendContainer .title-left {
    width: 165px;
}

.lang-en #attackDefendContainer .content-right {
    margin-left: 170px;
}

.lang-en .pptp-server {
    padding-left: 6px;
    padding-right: 8px;
}

.lang-en #namepwd-modal .modal-dialog {
    width: 520px
}

.lang-en #namepwd-modal .control-label {
    width: 170px
}

.lang-en #pageWrap .modal-dialog .control-label {
    width: 200px;
}

.lang-en #pageWrap .modal-dialog .col-xs-7 {
    width: 240px;
}

.lang-en .unlimited-qos {
    margin-left: 0px;
    width: 885px;
    padding-right: 0;
}

.lang-en .uncontrol-Upload {
    width: 240px;
}

.lang-en .uncontrol-Download {
    width: 260px;
}

.lang-en .uncontrol-session {
    width: 365px;
    padding-right: 0;
}

.lang-en .wan-Info-left {
    width: 360px;
}

.lang-en .wan-Info-right {
    width: 360px;
}

/* lang-en end */



.line-limit {
    width: 240px;
    height: 4px;
    margin-top: 14px;
    background: #999;
    cursor: pointer;
    float: left;
}

.line-limit-narrow {
    position: absolute;
    width: 240px;
    height: 2px;
    margin-top: 15px;
    background: #999;
    cursor: pointer;
}
.move-content {
    position: relative;
    top: -63px;
    left: 34px;
    width: 20px;
    cursor: pointer;
}

.move-round {
    position: relative;
    background-color: #999;
    width: 5px;
    height: 20px;
    top: 6px;
    left: 230px;
    cursor: pointer;
}


.limit-input {
    position: absolute;
    margin-top: -22px;
    margin-left: 250px;
}

.nav-show {
    overflow-x: auto;
}

.text-over {
    display: inline-block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

#mainDay .checkbox-inline {
    width: 78px;
}

button.ap-refresh {
  background-image: url(/common/img/icon-buttons-s.png);
  padding-left: 31px;
  background-repeat: no-repeat;
  background-position: 6px 6px;
}

button.ap-refresh:focus {
  background-image: url(/common/img/icon-buttons-s.png);
}

.checked_order {
    color: #fff;
    background-color: #D82228;
}

.urlGroupTable td:hover {
    color: #D82228;
    text-decoration: underline;
}

#doReboot {
    color: #D82228;
    cursor: pointer;
}

#anTitle,#authTitle,.authTitle {
    display: inline-block;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-all;
}
#authSettingWrap .controls-label,
#wewifiSetupWrap .controls-label {
    width: 140px;
}
#authSettingWrap .controls-legend,
#wewifiSetupWrap .controls-legend {
    margin-left: 150px;
}
/*added by xh*/
.quickset-box {
    width: 800px;
    height: 573px;
    background-color: #fff;
    margin: 30px auto;
    border-radius: 5px;
    border: 1px solid #d7d7d7;
}
.box-header {
    width: 100%;
    height: 68px;
    border-bottom: 1px solid #eee;
}
.box-content {
    width: 100%;
    margin: 60px auto 30px;
    text-align: center;
}
.box-footer {
    text-align: center;
}

.btn-static-lg {
    width: 150px;
}
.btn-static-xl {
    width: 203px;
}
.btn-defualt {
    color: #fff;
    background-color: #58BF14;
}
.btn-defualt:hover {
    background-color: #61E04D;
    color: #fff;
}
.btn-defualt:active {
    background-color: #009F05;
    color: #fff;
}
.btn-defualt:focus {
    color: #fff;
}
.btn-grey {
    background-color: #E4E4E4;
    border:1px solid #ccc;
    color: #666;
}
.btn-grey:hover {
    background-color: #D7D7D7;
    color: #666;
}
.btn-grey:active {
    background-color: #c9c9c9;
    color: #666;
}
.btn-grey:focus {
    color: #666;
}

#connectType {
    color: #FF6633;
}
.detected-failed {
    color: #FF3333;
}

.set-connect .form-group,#doubleWan .form-group{
    margin-top: 15px;
}
.set-wireless input[type="text"],.set-connect input[type="text"]{
    padding: 3px;
    /*width: 200px*/
    width: 215px;
}
.set-wireless input[type="password"],.set-connect input[type="password"]{
    padding: 3px;
    /*width: 200px*/
    width: 215px;
}
.set-wireless select,.set-connect select{
    padding: 5px;
    /*width: 200px*/
    width: 215px;
}


#doubleWan form {
    text-align: left;
    display: inline-block;
    width: 328px;
}

.box-content .controls-legend img.eye-closed {
    position: absolute;
    cursor: pointer;
    /*top: 9px;*/
    top: 12px;
    /*left: 175px;*/
    left: 190px;
}
.box-content .controls-legend img.eye-open {
    position: absolute;
    cursor: pointer;
    top: 5px;
    /*left: 173px;*/
    left: 188px;
    width: 25px;
}

#skip {
    margin: 10px auto;
}

.success, .detecting {
    margin-top: 100px;
}
.success div {
    margin-top: 5px;
    font-size: 16px;
}

#setWireless .validatebox-error-icon {
    right: -21px;
}
#wirelessPwd .validatebox-error-icon {
    right: -20px;
    top: 7px;
}

#wirelessPwd .validate-elem-wrap,#loginPwd .validate-elem-wrap{
    /*width: 200px;*/
    width: 215px;
}
#wirelessPwd .input-wrap,#loginPwd .input-wrap,#wanPwd .input-wrap {
    /*width: 200px;*/
    width: 215px;
    border: 1px solid #ababab;
    display: inline-block;
    height: 30px
}

#wirelessPwd .change-type,#loginPwd .change-type,#wanPwd .change-type {
    /*width:172px;*/
    width: 187px;
    border:none;
    height:28px
}

input:focus {
    outline: none;
}

select:focus {
    outline: none;
}

#wanPwd .validatebox-tip {
    left: 116%;
}

.auto .validatebox-error-icon {
    right: -21px;
    top: 7px;
}

#wanPwd .validatebox-error-icon {
    right: -48px;
    top: 7px;
}

#setStatic .validatebox-error-icon {
    right: -21px;
    top: 7px;
}

#dhcpServer .control-sm {
    width:45px;
}

#message-modal-cfg textarea {
    width: 350px;
    height: 86px;
}

#message-modal-cfg .modal-lg {
    width: 700px;
}

#message-modal-cfg .form-control[readonly] {
    background: #fff;
}

.file {
    position: relative;
    display: inline-block;
    overflow: hidden;
    text-decoration: none;
    text-indent: 0;
    line-height: 20px;
}

.file input {
    position: absolute;
    font-size: 100px;
    right: 0;
    top: 0;
    opacity: 0;
    filter: alpha(opacity=0);
}

#gotoState {
    cursor: pointer;
}

.do-reboot {
    color: #D82228;
    cursor: pointer;
}

#finishUrl {
    width: 400px;
}

#replyUrl {
    width: 400px;
    height: 110px;
}

.auth-QRPicture {
    margin-top: 10px;
}

.message-filter {
    position: absolute;
    top: 30px;
    height: 27px;
    box-sizing: border-box;
    border-radius: 0px;
    opacity: 0.4;
    filter:Alpha(opacity=40);
    background-color: rgb(88, 191, 20);
    border: 1px solid rgb(88, 191, 20);
}

.filter-id {
    left: 46px;
    width: 43px;
}

.filter-password {
    left: 139px;
    width: 65px;
}

#getVarifyCodePC {
    width: 88px;
}

#getVarifyCode {
    position: absolute;
    width: 100px;
    border: none;
    text-align: center;
    line-height: 20px;
    top: 3px;
    /*left: 214px;*/
    height: 82%;
    padding-top: 7px;
    border-left: 1px solid #fff;
    cursor: pointer;
}

.message-auth-bg {
    width: 100%;
    height: 100%;
}

.qr-auth-content {
    width: 308px;
    height: 574px;
    margin: 0 auto;
    color: #fff;
    text-align: center;
}

.qr-auth-success {
    width: 200px;
    margin: 0 auto;
    color: #000;
    text-align: center;
}

.qr-bg {
    width: 100%;
    height: 226px;
    margin-top: 30px;
    background: url('/common/img/qrBg.png') no-repeat center;
}

.lang-cn #varifyCodePC {
    width: 165px;
}

.lang-cn #getVarifyCodePC {
    width: 88px;
}

.lang-en #varifyCodePC {
    width: 116px;
}

.lang-en #getVarifyCodePC {
    width: 137px;
}

.lang-cn #getVarifyCode {
    width: 88px;
}

.lang-en #getVarifyCode {
    width: 135px;
}

#msgAuthFormPc .placeholder-content .placeholder-text {
    top: 1px;
    padding-left: 5px;
    line-height: 16px;
    font-size: 14px; 
}

#msgAuthForm .placeholder-content .placeholder-text {
    top: -5px;
    padding-left: 5px;
    line-height: 16px;
    font-size: 14px; 
}

#msgAuthForm .varify-code .placeholder-content .placeholder-text {
    top: 23px;
    min-width: 180px;
    width: 180px !important;
}

/*  @media (min-width: 768px){
   .dns-hijack-add .validatebox-tip-content,
   .dns-forward-add .validatebox-tip-content {
       width: 230px;
       min-width: 150px;
       max-width: 230px;
   }
} */

::-ms-clear{display: none;}
::-ms-reveal{display: none;}


body .controls-ms {
    width: 100px;
}

/*safari下，WAN口参数页面隐藏的select有补白，所以WAN口vlan要有左边距*/
_::-moz-svg-foreign-content, :root .hasWanVlan .controls-legend {
   margin-left: 25px;
}
