@import "var.scss";
@each $item in ('green' $active)('black' $black) {
    $theme: nth($item, 1);
    $color: nth($item, 2);
    .skin-#{$theme} {
        .nav-box {
            background-color: $color;
        }
    }
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    position: fixed;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: tahoma, "microsoft yahei", "\5FAE\8F6F\96C5\9ED1"!important;
    min-width: 1024px;
    background-color: #fbfbfb;
    color: #666;
    font-size: 14px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

ul,
li {
    list-style: none;
    padding: 0;
    margin: 0;
}

th {
    font-weight: normal;
}

a {
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    color: #808080;
}

pre {
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0;
}

input,
select,
textarea {
    padding: 10px 8px;
    border-radius: 2px;
    border: 1px solid #d8d8d8;
    outline-color: #4fc08d;
    color: #555;
    width: $formWidth;
}


/*滚动条*/

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-thumb {
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:vertical:hover,
::-webkit-scrollbar-thumb:horizontal:hover {
    background-color: #aaa
}

::-webkit-scrollbar-thumb:vertical {
    background-color: #bbb
}

::-webkit-scrollbar-thumb:horizontal {
    background-color: #bbb
}

// 表单边框
::-webkit-input-placeholder {
    /* WebKit browsers */
    color: #bbb;
}

:-moz-placeholder {
    /* Mozilla Firefox 4 to 18 */
    color: #bbb;
}

::-moz-placeholder {
    /* Mozilla Firefox 19+ */
    color: #bbb;
}

:-ms-input-placeholder {
    /* Internet Explorer 10+ */
    color: #bbb;
}

#app,
.router {
    width: 100%;
    height: 100%;
}

main {
    background-color: #fff;
}

@mixin flex {
    display: flex;
    overflow: hidden;
}

.flex-level {
    @include flex;
    height: 100%;
}

.flex-vertical {
    @include flex;
    flex-direction: column;
}

.flex {
    flex: auto;
}

table {
    width: 100%;
}

.pointer {
    cursor: pointer;
}

.scroll-y {
    overflow-y: auto;
}

// 按钮样式
.button {
    font-size: 15px;
    padding: 7px 19px;
    background-color: #4fc08d;
    border-radius: 3px;
    border: none;
    color: white;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    margin: 0 3px;
    outline-color: #4fc08d;
    display: inline-block;
    &:hover {
        background-color: #4fc08d;
    }
    &.cancel {
        background-color: #f1f1f1;
        color: #808080;
        &:hover {
            background-color: #eee;
        }
    }
    &.warning {
        background-color: #ffa726;
        color: #fff;
        &:hover {
            background-color: #ff9e0c;
        }
    }
}

.p10 {
    padding: 10px;
}

.p10-tb {
    padding: 10px 0;
}

.p10lr {
    padding: 0 10px;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.fs10 {
    font-size: 10px;
}

.fs11 {
    font-size: 11px;
}

.fs12 {
    font-size: 12px;
}

.fs13 {
    font-size: 13px;
}

.fs14 {
    font-size: 14px;
}

.fs15 {
    font-size: 15px;
}

.fs16 {
    font-size: 16px;
}

.fs17 {
    font-size: 17px;
}

.fs18 {
    font-size: 18px;
}

.fs19 {
    font-size: 19px;
}

.fs20 {
    font-size: 20px;
}

.hide {
    display: none;
}

.active {
    color: $active;
}

// 应用顶栏
.appbar {
    position: relative;
    z-index: 1;
    background-color: #fff;
    box-shadow: 0 2px 2px #f3f3f3;
    height: 50px;
    .appbar-nav {
        position: fixed;
        width: 100%;
        line-height: 50px;
        text-align: center;
        font-size: 15px;
        left: 0;
        top: 0;
        color: #555;
        pointer-events: none;
    }
    .appbar-menu {
        padding-left: 5px;
    }
}

.search {
    position: absolute;
    right: 10px;
    top: 9px;
    input {
        border-style: none;
        outline: none;
        width: 220px;
        height: 32px;
        background-color: rgba(0, 0, 0, 0.06);
        color: #999;
        border-radius: 3px;
        padding: 2px 28px 0px 8px;
    }
    .search-button {
        position: absolute;
        top: 0;
        right: 0px;
        padding: 6px;
        cursor: pointer;
    }
}

// 应用底栏
.bottom-bar {
    position: relative;
    height: 50px;
    background-color: #fff;
    box-shadow: 0 -2px 2px #f3f3f3;
    .paging {
        position: absolute;
        top: 0;
        right: 6px;
    }
}

.appbar-button {
    display: inline-block;
    position: relative;
    line-height: 50px;
    height: 50px;
    margin: 0px 10px;
    cursor: pointer;
    &:hover {
        color: $hover;
    }
}

.disabled {
    color: #f1f1f1;
}

.no-data {
    padding-top: 180px;
    text-align: center;
    font-size: 16px;
}