// 
// Panels
// --------------------------------------------------

.panel{
    @include box-shadow(none);
    @include border-radius(1px);    
    //-webkit-transform: scale3d(1,1,1); // to show hidden selectFx dropdowns http://stackoverflow.com/questions/11002195/chrome-does-not-redraw-div-after-it-is-hidden
    @include transition(all .2s ease);
    .panel-heading{
        background: transparent;
        border-radius:0px;
        border-bottom:0px;
        padding: 20px 15px 7px 22px;
        position: relative;
        z-index: 1;
        &.separator:after {
                    content:"";
                    height:1px;
                    background:$color-master-light;
                    left:16px;
                    right:16px;
                    position:absolute;
                    bottom:0;
        }
        & + .panel-body{
            padding-top: 0;
        }
        h4{
            font-family: 'Montserrat';
            text-transform: uppercase;
            display: inline-block;
            font-size: 14px;
            font-weight: 600;
            margin: 0;
            padding: 0;
            line-height: normal;
            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-text-stroke:0px;
        }
    }
    &.panel-default{
        border:1px solid $panel-border-color;
    }
    &.panel-bordered{
        border:1px solid fade($color-master-light, 70%);
    }
    &.panel-transparent{
        background: transparent;
        @include box-shadow(none);
        // &:hover{
        //     .panel-heading h4{
        //         opacity: 1;
        //     }
        // }
        .panel-heading{
            h4{
                opacity: 0.5;
                filter: alpha(opacity=50);
                 margin: 0;
                padding: 0;
                @include transition(opacity .3s ease);
            }
        }
        .panel-body{
            background: transparent;
        }
    }
    &.full-height{
        height: calc(~'100%');
        .panel-body{
            height: auto;
            width: 100%;
            height: 100%;
        }
    }
    &.panel-featured {
        @include box-shadow(-1px 1px 3px 0px rgba(121, 129, 135, 0.14));
        width: calc(~'100% - 50px');
        float: right;
        .panel-title {
            h4 {
                font-family: 'Montserrat';
                font-size: 16px;
                text-transform: uppercase;
                color: $color-master-lighter;

            }
        }
        .panel-body {
            h3 {
                line-height: 34px;
                font-size: 26px;
            }
        }
        .footer {
            .username {
                line-height: 8px;
                padding-top: 10px;
                font-size: 16px;
            }
            .buttons {
                li {
                    display: inline;
                    list-style: none;
                    font-weight: bold;
                    margin-left: 20px;
                    &:first-child {
                        margin-left: 0;
                    }
                }
                .heart {
                    color: $color-danger;

                }
                .comment {
                    color: $color-master;
                }
            }
        }
        .ribbon {
            width: 38px;
            height: 38px;
            margin-left: -39px;
            float: left;
            @include box-shadow( inset -3px 0px 3px 0px rgba(0,0,0,0.14) );
            &.green {
                background: $color-complete;

            }
            &.blue {
                background: $color-success;

            }
        }
    }
    &.hover-fill:hover{
        background:$color-master-lighter;
    }
    &.hover-stroke{
        &:hover{
            border:1px solid $color-master-light;
        }
    }

    .panel-body{
        padding: 24px;
        height: 100%;
        width: 100%;
        &.no-padding{ 
            .row{ 
                margin-left: 0; 
                margin-right: 0; 
            } 
        } 
        &.no-bottom-padding{
            padding-bottom: 0;
        }
        &.no-top-padding{
            padding-top: 0;
        }
        .title{
            margin-top:0px;
        }
    }
}

.sortable .grid .grid-title {
    cursor: move;    
}
.ui-sortable {
    min-height: 0px !important;
}
.ui-sortable-placeholder {
    border: 1px dotted black;
    visibility: visible !important;
    height: 100% !important;
    * {
        visibility: hidden;
    }
}
.sortable-box-placeholder {
    background-color: $color-master-lighter;
    border: 1px dashed $color-master-light;
    display: block;
    margin-top: 0px !important;
    margin-bottom: 24px !important;
    * {
        visibility: hidden;
    }
}

// Portlets
.portlet-progress{
    background: none repeat scroll 0 0 #fff;
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    display: none;
    opacity: .9;
}
.portlet-progress > .progress,
.portlet-progress > .progress.progress-small{
    height: 3px;
}
.portlet-progress > .progress-circle-indeterminate,
.portlet-progress > .portlet-bar-indeterminate{
    display: block;
    left: 50%;
    margin-left: -17px;
    margin-top: -17px;
    position: absolute;
    top: 50%;
    width: 35px;
    height: 35px;
}
.panel-maximized{
    position: fixed !important;
    left: $layout-sidepanel-width-collapsed;
    top: $layout-header-height;
    bottom: 0;
    right: 0;
    z-index: $zIndex-portlet;
    margin: 0;
}

.panel .pgn-wrapper{
    position: absolute;
    left: 10%;
    right: 10%;
    z-index: 1;
}
.panel .pgn-wrapper .alert{
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;

}