﻿html.feature-panel-open {
    overflow: hidden;
}

.feature-panel,
.feature-panel .wrapper,
.feature-panel .slider-container,
.feature-panel .toggle-body {
    width: 500px;
}

.feature-panel {
    background-color: rgba(255,255,255,.9);
    position: fixed;
    top: 0px;
    z-index: 1020;
    bottom: 0;
    color: rgb(0, 0, 0);
    -webkit-overflow-scrolling: touch;
    overflow: hidden;
    transition: all ease .5s;
}

    .feature-panel form {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .feature-panel .bg {
        position: fixed;
        background-color: rgba(255,255,255,.6);
        opacity: 0;
        transition: all ease .5s;
    }

    .feature-panel.open .bg {
        left: 0px;
        top: 0px;
        right: 0px;
        bottom: 0px;
        opacity: 1;
    }

    .feature-panel .wrapper {
        position: absolute;
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 0px;
        overflow: hidden;
        background-color: #ffffff;
    }

    .feature-panel .slider {
        position: absolute;
        top: 0px;
        left: 0px;
        bottom: 0px;
        display: flex;
    }

        .feature-panel .slider .slider-container {
            display: flex;
            flex-direction: column;
            flex: 1;
        }

    .feature-panel .header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 0px;
        background-color: #f1f3f6;
        height: 60px;
        margin: 0px;
    }

        .feature-panel .header > * {
            width: 60px;
            height: 50px;
            line-height: 50px;
            text-align: center;
        }

        .feature-panel .header .dropdown .dropdown-menu {
            line-height: 20px;
            margin-top: -1px;
        }

        .feature-panel .header .dropdown.pull-right .dropdown-menu {
            margin-right: -1px;
        }

        .feature-panel .header .title {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            word-break: break-all;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
        }

        .feature-panel .header .left,
        .feature-panel .header .right,
        .feature-panel .header .prev,
        .feature-panel .header .back,
        .feature-panel .header .next,
        .feature-panel .header .forward,
        .feature-panel .header .toggle,
        .feature-panel .header .close {
            cursor: pointer;
        }

            .feature-panel .header .prev::after,
            .feature-panel .header .back::after {
                content: "\f053";
                font-family: FontAwesome;
            }

            .feature-panel .header .next::after,
            .feature-panel .header .forward::after {
                content: "\f054";
                font-family: FontAwesome;
            }

            .feature-panel .header .toggle::after {
                content: "\f078";
                font-family: FontAwesome;
                display: block;
                transition: all ease .5s;
            }

            .feature-panel .header .toggle.open::after {
                transform: rotate(-540deg);
            }

        .feature-panel .header .close {
            font-size: 1rem;
            font-weight: inherit;
        }

            .feature-panel .header .close::after {
                content: "\f00d";
                font-family: FontAwesome;
            }

    .feature-panel .tools {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        padding: 10px;
        margin: 0px;
        border-bottom: 1px solid #eaeaea;
    }

    .feature-panel .toggle-body {
        position: absolute;
        padding: 0px;
        overflow-y: hidden;
        height: 0%;
        background-color: rgba(255,255,255,.9);
        transition: all ease .3s;
        display: flex;
        flex-direction: column;
        z-index: 1;
    }

        .feature-panel .toggle-body.down {
            top: 60px;
        }

        .feature-panel .toggle-body.up {
            bottom: 0px;
        }

        .feature-panel .toggle-body.open {
            height: calc(100% - 60px);
        }

    .feature-panel .nav-tabs {
        padding: 0px;
        background-color: #fff;
    }

        .feature-panel .nav-tabs li {
            flex: 1;
        }

            .feature-panel .nav-tabs li a {
                text-align: center;
                display: block;
                padding: 8px;
                border: none;
                border-right: 1px solid #f9f9f9;
                cursor: pointer;
                background-color: #f9f9f9;
                color: #999;
                white-space: nowrap;
            }

                .feature-panel .nav-tabs li a.active, .feature-panel .nav-tabs li a:hover {
                    border: none;
                    border-right: 1px solid #f9f9f9;
                    background-color: #fff;
                    color: #000;
                }

            .feature-panel .nav-tabs li i {
                font-size: 20px;
            }

    .feature-panel .tabs-container {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
    }

    .feature-panel .tab-content {
        flex: 1;
        display: flex;
        overflow-y: auto;
    }

        .feature-panel .tab-content > .active {
            display: flex;
            flex-direction: column;
            flex: 1;
        }

    .feature-panel .body {
        padding: 20px;
        background-color: #fff;
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        position: relative;
    }

        .feature-panel .body.no-padding {
            padding: 0px;
        }

        .feature-panel .body.list > div {
            border-bottom: 1px solid #eaeaea;
            padding: 10px;
            position: relative;
        }

            .feature-panel .body.list > div:hover {
                background-color: #fafbfc;
            }

        .feature-panel .body.list.input {
            padding: 0px;
        }

            .feature-panel .body.list.input > div {
                padding: 20px;
            }

    .feature-panel .list.input .add {
        display: block;
        text-align: center;
        padding: 10px;
    }

    .feature-panel .body .arrow {
        padding-right: 20px !important;
        cursor: pointer;
    }

        .feature-panel .body .arrow::after {
            position: absolute;
            content: "\f054";
            font-family: FontAwesome;
            display: block;
            transition: all ease .5s;
            right: 5px;
            top: 50%;
            height: 50px;
            width: 10px;
            line-height: 50px;
            margin-top: -25px;
            text-align: center;
        }

    .feature-panel .select-mode .body > div::before {
        content: "\f096";
        font: normal normal normal 16px/1 FontAwesome;
        display: flex;
        align-items: center;
        width: 25px;
        justify-content: center;
    }

    .feature-panel .select-mode .body > div.select::before {
        content: "\f046";
    }

    .feature-panel .feature {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px 20px;
        background-color: #f1f3f6;
        height: 60px;
    }

        .feature-panel .feature form, .feature-panel .body form {
            display: block;
            height: auto;
        }

        .feature-panel .feature .btn {
            margin-left: 5px;
        }

        .feature-panel .feature .btn-group .btn {
            margin-left: 0px;
        }

        .feature-panel .feature .btn-group > .btn:not(:first-child),
        .feature-panel .feature .btn-group > .btn-group:not(:first-child) > .btn {
            margin-left: -1px;
        }

    /*修正裡面還有tools feature 的樣式*/
    .feature-panel .body .tools {
        padding: 0px;
        border: 0px;
    }

    .feature-panel .body .feature {
        background-color: transparent;
        display: block;
        padding: 0px;
        height: auto;
    }

    /*修正裡面還有tools feature 的樣式*/
    .feature-panel .body .tools {
        padding: 0px;
        border: 0px;
    }

    .feature-panel .body .feature {
        background-color: transparent;
        display: block;
        padding: 0px;
        height: auto;
    }

    /*right--------------------------*/

    .feature-panel.right, .feature-panel.right.hold.hide {
        right: -500px;
        border-left: 1px solid #eaeaea;
    }

        .feature-panel.right.open, .feature-panel.right.hold {
            right: 0px;
            box-shadow: -10px 0px 10px rgba(0, 0, 0, 0.06);
        }

    /*left--------------------------*/

    .feature-panel.left, .feature-panel.left.hold.hide {
        left: -500px;
        border-right: 1px solid #eaeaea;
    }

        .feature-panel.left.open, .feature-panel.left.hold {
            left: 0px;
            box-shadow: 10px 0px 10px rgba(0, 0, 0, 0.06);
        }

    /*center--------------------------*/

    .feature-panel.center {
        left: calc(50% - 250px);
        top: 50%;
        bottom: 50%;
        border-right: 1px solid #eaeaea;
        border-left: 1px solid #eaeaea;
    }

        .feature-panel.center.open {
            bottom: 0px;
            top: 0px;
            bottom: 0px;
            box-shadow: 10px 0px 10px rgba(0, 0, 0, 0.06), -10px 0px 10px rgba(0, 0, 0, 0.06);
        }


    .feature-panel.hold.left {
        left: -0px;
    }

    .feature-panel.hold.right {
        right: -0px;
    }

@media (min-width:992px) {
    .feature-panel.lg,
    .feature-panel.lg .wrapper,
    .feature-panel.lg .slider-container,
    .feature-panel.lg .toggle-body {
        width: 900px;
    }

        .feature-panel.lg.right, .feature-panel.lg.right.hold.hide {
            right: -900px;
        }

        .feature-panel.lg.left, .feature-panel.lg.left.hold.hide {
            left: -900px;
        }

        .feature-panel.lg.center {
            left: calc(50% - 450px);
        }
}

@media (max-width:767px) {
    .feature-panel,
    .feature-panel .wrapper,
    .feature-panel .slider-container,
    .feature-panel .toggle-body {
        width: 100%;
    }

        .feature-panel.right {
            right: -100%;
            border-left: none;
        }

            .feature-panel.right.hold.hide {
                right: 0%;
                border-left: none;
            }

        .feature-panel.left {
            left: -100%;
            border-right: none;
        }

            .feature-panel.left.hold.hide {
                left: 0%;
                border-right: none;
            }

        .feature-panel.center {
            left: 0%;
            right: 0%;
        }

        .feature-panel .slider .slider-container {
            width: 100%;
            position: relative;
        }

        .feature-panel.hold.left {
            left: -100%;
        }

        .feature-panel.hold.right {
            right: -100%;
        }

        .feature-panel.hold.hide .bg {
            left: 0px;
            top: 0px;
            right: 0px;
            bottom: 0px;
            opacity: 1;
        }
}
