$portlet-img-path:           		'../../assets/images/' !default;

@mixin opacity($opacity) {
  opacity: $opacity;
  // IE8 filter
  $opacity-ie: ($opacity * 100);
  filter: alpha(opacity=$opacity-ie);
}

.portlet {
  > .portlet-title {
        .caption {
            float: left;
            display: inline-block;
            font-size: 18px;
            line-height: 18px;
            padding: 10px 0;

            &.bold {
                font-weight: 400;
            }

            > i {
                float: left;
                margin-top: 4px;
                display: inline-block;
                font-size: 13px;
                margin-right: 5px;
                color: #666;

                &.glyphicon {
                    margin-top: 2px;
                }
            }

            > .caption-helper {
                padding: 0;
                margin: 0;
                line-height: 13px;
                color: #9eacb4;
                font-size: 13px;
                font-weight: 400;
            }
        }
        .actions {
            float: right;
            display: inline-block;
            padding: 6px 0;

            .dropdown-menu i {
                color: #555555;
            }

            .btn-icon-only {
                padding: 5px 7px 3px 7px;

                &.btn-default {
                    padding: 4px 6px 2px 6px;

                    > i {
                        font-size: 14px;
                    }

                    &.fullscreen {
                        font-family: FontAwesome;
                        color: lighten(#8c8c8c, 8%);
                        padding-top: 3px;

                        &.btn-sm {
                            padding: 3px 3px !important;
                            height: 27px;
                            width: 27px;
                        }

                        &:before {
                            content: "\f065";
                        }

                        &.on {
                            &:before {
                                content: "\f066";
                            }
                        }
                    }
                }
            }
        }
        .tools {
            float: right;
            display: inline-block;
            padding: 12px 0 8px 0;

            > a {
                display: inline-block;
                height: 16px;
                margin-left:5px;
                @include opacity(1)
            }

            > a.remove {
                background-image:url(#{$portlet-img-path}portlet-remove-icon.png);
                background-repeat: no-repeat;
                width: 11px;
            }

            > a.config {
                background-image:url(#{$portlet-img-path}portlet-config-icon.png);
                background-repeat: no-repeat;
                width: 12px;
            }

            > a.reload {
                background-image:url(#{$portlet-img-path}portlet-reload-icon.png);
                width: 13px;
            }

            > a.expand {
                background-image:url(#{$portlet-img-path}portlet-expand-icon.png);
                width: 14px;
                visibility: visible;
            }

            > a.collapse {
                background-image:url(#{$portlet-img-path}portlet-collapse-icon.png);
                width: 14px;
                visibility: visible;
            }

            > a.fullscreen {
                display: inline-block;
                top: -3px;
                position: relative;
                font-size: 13px;
                font-family: FontAwesome;
                color: #ACACAC;

                &:before {
                    content: "\f065";
                }

                &.on {
                    &:before {
                        content: "\f066";
                    }
                }
            }

            > a:hover {
                text-decoration: none;
                -webkit-transition: all 0.1s ease-in-out;
                -moz-transition: all 0.1s ease-in-out;
                -o-transition: all 0.1s ease-in-out;
                -ms-transition: all 0.1s ease-in-out;
                transition: all 0.1s ease-in-out;

                @include opacity(0.8);
            }
        }
        .pagination {
            float: right;
            display: inline-block;
            margin: 2px 0 0 0;
            border: 0;
            padding: 4px 0;
        }
        .nav-tabs {
            background: none;
            margin: 1px 0 0 0;
            float: right;
            display: inline-block;
            border: 0;

            > li {
                background: none;
                margin: 0;
                border: 0;

                > a {
                    background: none;
                    margin: 5px 0 0 1px;
                    border: 0;
                    padding: 8px 10px;
                    color: #fff;
                }

                &.active > a,
                &:hover > a {
                    color: #333;
                    background: #fff;
                    border: 0;
                }
            }
        }
    }
}

.portlet.light {
      > .portlet-title {
        .caption {
            color: #666;
            padding: 10px 0;

            > .caption-subject {
                font-size: 16px;
            }

            > i {
                color: #777;
                font-size: 15px;
                font-weight: 300;
                margin-top: 3px;
            }

            &.caption-md {
                > .caption-subject {
                    font-size: 15px;
                }

                > i {
                    font-size: 14px;
                }
            }
        }
        .actions {
            padding: 6px 0 14px 0;

            .btn-icon-only {
                height: 27px;
                width: 27px;
            }

            .dropdown-menu {
                li > a {
                    color: #555;
                }
            }
        }
        .inputs {
            float: right;
            display: inline-block;
            padding: 4px 0;

            > .portlet-input {
                .input-icon {
                    > i {
                        font-size: 14px;
                        margin-top: 9px;
                    }

                    > .form-control {
                        height: 30px;
                        padding: 2px 26px 3px 10px;
                        font-size: 13px;
                    }
                }

                > .form-control {
                    height: 30px;
                    padding: 3px 10px;
                    font-size: 13px;
                }
            }
        }
        .pagination {
            padding: 2px 0 13px 0;
        }
        .tools {
            padding: 10px 0 13px 0;
            margin-top: 2px;
        }
        .nav-tabs {
            > li {
                margin: 0;
                padding: 0;

                > a {
                    margin: 0;
                    padding: 12px 13px 13px 13px;
                    font-size: 13px;
                    color: #666;
                }

                &.active > a,
                &:hover > a {
                    margin: 0;
                    background: none;
                    color: #333;
                    border-bottom: 4px solid #36c6d3;
                }
            }
        }
    }
}
