.tiles-container {
    margin-left: 0px;
    margin-right: 0px;
}
.tiles {
    background-color: #bcbcbc;
    color:  $color-white ;
    position: relative;
    &.overflow-hidden {
        overflow: hidden;
    }
    &.full-height {
        height: 100%;
    }
    &.added-margin {
        margin-right: -10px;
    }
    &.no-margin {
        margin-right: 0;
    }
    &.margin-reset {
        margin-left: 37px;
    }
    .tiles-title {
        font-size: 10.5px;
        font-family: $base-font-family;
        letter-spacing: 0.5px;
        font-weight: 600;
    }
    .tiles-body {
        padding: 19px 18px 15px 24px;
    }
    .controller {
        position: relative;
        display: inline-block;
        float: right;
        a {
            position: relative;
            background: url('../img/icon/portlet-tray.png') no-repeat;
            transition: all 0.1s linear 0s;
            display: inline-block;
            &.remove {
                background-position: -66px -38px;
                height: 10px;
                top: -5px;
                width: 10px;
            }
            &.config {
                background-position: -3px -32px;
                height: 22px;
                width: 22px;
            }
            &.reload {
                background-position: -37px -38px;
                height: 10px;
                top: -5px;
                width: 12px;
            }
            &.expand {
                background-position: -123px -11px;
                width: 10px;
                height: 6px;
                top: -5px;
            }
            &:hover {
                &.collapse {
                    background-position: -95px -40px;
                    height: 7px;
                    top: -5px;
                    width: 9px;
                    background-position: -95px -40px;
                    height: 7px;
                    top: -5px;
                    width: 9px;
                }
                &.remove {
                    background-position: -66px -9px;
                    height: 10px;
                    top: -5px;
                    width: 10px;
                }
                &.config {
                    background-position: -3px -32px;
                    height: 22px;
                    width: 22px;
                }
                &.reload {
                    background-position: -38px -9px;
                    height: 10px;
                    top: -5px;
                    width: 12px;
                }
                &.expand {
                    background-position: -123px -11px;
                    width: 10px;
                    height: 6px;
                    top: -5px;
                }
            }
        }
    }
    &.border-radius {
        @include border-radius(3px);
    }
    &.transparent {
        background-color: transparent;

    }
    &.white {
        background-color: $color-white;
        color: #8b91a0;
        .controller {
            a {
                &.remove {
                    &:hover {
                        background-position: -66px -38px;
                        height: 10px;
                        top: -5px;
                        width: 10px;
                        opacity: 0.6;
                    }
                }
                &.config {
                    &:hover {
                        background-position: -3px -32px;
                        height: 22px;
                        width: 22px;
                        opacity: 0.6;
                    }
                }
                &.reload {
                    &:hover {
                        background-position: -37px -38px;
                        height: 10px;
                        top: -5px;
                        width: 12px;
                        opacity: 0.6;
                    }
                }
                &.expand {
                    &:hover {
                        background-position: -123px -11px;
                        width: 10px;
                        height: 6px;
                        top: -5px;
                        opacity: 0.6;
                    }
                }
            }
        }
        & > .tile-footer {
            background-color: #eceff1;
            color: #d1d3d9;
            font-size: 13px;
            padding: 8px 15px;
        }
        &.borderall {
            border: 1px solid #e5e9ec;
        }
        &.border-left {
            border-left: 1px solid #e5e9ec;
        }
        &.border-right {
            border-right: 1px solid #e5e9ec;
        }
        &.border-top {
            border-top: 1px solid #e5e9ec;
        }
        &.border-bottom {
            border-bottom: 1px solid #e5e9ec;
        }
        hr {
            margin: 10px 0px;
            height: 1px;
            border: none;
            background-color: #f2f3f5;
        }
        label {
            color: #9aa0ad;
        }
        & > .tiles-body {
            & > .heading {
                color: #000;
            }
        }
        .tiles-body {
            & > .description {
                color: #8b91a0;
            }
        }
    }
    .settings-box {
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        padding: 1px 4px;
    }
    .heading {
        font-size: 25px;
        display: block;
        font-family: $base-font-family;
        font-weight: 600;
        margin: 4px 0px;
        .icon-grid {
            top: 1px;
            font-size: 31px;
            position: relative;
        }
    }
    p {
        margin: 0 0 5px;
    }
    hr {
        margin: 10px 0px;
        height: 1px;
        border: none;
        background-color: #2b3038;
    }
    .tiles-body-overlay {
        position: absolute;
        z-index: 100;
        padding: 19px 18px 17px 24px;
        width: auto;
    }
    .progress {
        width: 70%;
        margin-bottom: 15px;
    }
    .iconplaceholder {
        background-color: rgba(0, 0, 0, 0.28);
        i {
            color:  $color-white ;
        }
    }
    & > .tiles-body {
        & > .description {
            font-size: 12px;
            display: block;
            color:  $color-white ;
            display: table-cell;
            vertical-align: middle;
            -webkit-font-smoothing: antialiased;
        }
    }
    .description {
        i {
            font-size: 21px;
            color:  $color-white ;
        }
        .mini-description {
            position: relative;
            top: -5px;
        }
    }
    label {
        color:  $color-white ;
    }
    &.red {
        background-color: #f35958;
        .button {
            background: #bf3938;
            color: #f7bebe;
        }
    }
    &.purple {
        background-color: #736086;
        .button {
            background: #736086;
            color: #d7d5d7;
        }
    }
    &.blue {
        background-color: #0090d9;
    }
    &.green {
        background-color: $color-green;
    }
    &.black {
        background-color: #22262e;
        .blend {
            color: #8b91a0;
        }
        input {
            background-color: #0d0f12;
            border: 0;
        }
    }
    &.dark-blue {
        background-color: #365d98;
    }
    &.light-blue {
        background-color: #00abea;
    }
    &.light-red {
        background-color: #f96773;
    }
    &.grey {
        background-color: #f2f4f6;
    }
    &.gradient-grey {
        background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(131,131,131,0.65) 100%);
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(131,131,131,0.65)));
        background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(131,131,131,0.65) 100%);
        background: -o-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(131,131,131,0.65) 100%);
        background: -ms-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(131,131,131,0.65) 100%);
        background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(131,131,131,0.65) 100%);
    }
    &.gradient-black {
        background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
        background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,0.65)));
        background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
        background: -o-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
        background: -ms-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
        background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 100%);
    }
    &.tiles-overlay-hover {
        &:hover {
            .tiles {
                &.gradient-grey {
                }
            }
        }
    }
    .blend {
        color: rgba(0, 0, 0, 0.42);
    }
    .button {
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        padding: 3px 12px;
    }
}
.tile-more-content {
    background-color:  $color-white ;
    .tiles-body {
        padding: 19px 18px 17px 24px;
    }
}
.row-fluid.side-content .tiles,.row-fluid .tile-content {
    margin: 0;
}
.tile-footer {
    background-color: rgba(0, 0, 0, 0.28);
    color:  $color-white ;
    font-size: 13px;
    padding: 8px 15px;
}
.chart-wrapper {
    padding-top: 40px;
}
.tiles.red  .settings-box, .tiles.red  .button {
    background: #bf3938;
    color: #f35958;
}
.tiles.purple  .settings-box,.tiles.red  .button {
    background: #08897e;
    color: transparent;
}
.tiles-chart {
    position: relative;
    .tiles-body {
        position: absolute;
        z-index: 100;
        padding: 19px 18px 17px 24px;
        .heading {
            color: $color-primary;
        }
    }
    .controller {
        position: absolute;
        right: 15px;
        top: 15px;
        z-index: 100;
    }
}
.tiles-overlay {
    width: 100%;
    height: 100%;
    &.auto {
        width: auto;
        height: auto;
    }
    &.green {
        background-color: $color-green;
        @include opacity(0.8);
    }
    &.blue {
        background-color: rgba(0,144,217,0.8);
    }
}
.widget-item {
    position: relative;
    &.narrow-margin {
        margin-right: -10px;
    }
    .controller {
        position: absolute;
        display: block;
        z-index: 100;
        &.right {
            right: 20px;
            top: 20px;
        }
        &.left {
            left: 10px;
            top: 10px;
        }
        a {
            position: relative;
            background: url('../img/icon/portlet-tray.png') no-repeat;
            transition: all 0.1s linear 0s;
            display: inline-block;
            &.remove {
                background-position: -66px -38px;
                height: 10px;
                top: -5px;
                width: 10px;
            }
            &.config {
                background-position: -3px -32px;
                height: 22px;
                width: 22px;
            }
            &.reload {
                background-position: -37px -38px;
                height: 10px;
                top: -5px;
                width: 12px;
            }
            &.expand {
                background-position: -123px -11px;
                width: 10px;
                height: 6px;
                top: -5px;
            }
            &:hover {
                &.collapse {
                    background-position: -95px -40px;
                    height: 7px;
                    top: -5px;
                    width: 9px;
                }
            }
        }
    }
    &.white {
        .controller {
            a {
                &.remove {
                    &:hover {
                        background-position: -66px -38px;
                        height: 10px;
                        top: -5px;
                        width: 10px;
                        opacity: 0.6;
                    }
                }
                &.config {
                    &:hover {
                        background-position: -3px -32px;
                        height: 22px;
                        width: 22px;
                        opacity: 0.6;
                    }
                }
                &.reload {
                    &:hover {
                        background-position: -37px -38px;
                        height: 10px;
                        top: -5px;
                        width: 12px;
                        opacity: 0.6;
                    }
                }
            }
        }
    }
}
.widget-item .controller  a:hover.remove,.widget-item .controller a:hover.config,.widget-item .controller  a:hover.reload,.widget-item .controller a:hover.expand,.widget-item .controller  a:hover.collapse {
    opacity: 0.50;
}
.widget {
    display: block;
    margin-right: -10px;
    .widget-title {
        display: block;
        padding: 10px;
        padding-bottom: 14px;
        background-color:  $color-white ;
        color: #e5e9ec;
        text-align: center;
        font-weight: bold;
        &.dark {
            background-color: #1b1e24;
            color:  $color-white ;
            .controller {
                a {
                    &.remove {
                        background-position: -66px -9px;
                        height: 10px;
                        top: -5px;
                        width: 10px;
                    }
                    &.config {
                        background-position: -3px -32px;
                        height: 22px;
                        width: 22px;
                    }
                    &.reload {
                        background-position: -38px -9px;
                        height: 10px;
                        top: -5px;
                        width: 12px;
                    }
                }
            }
        }
        &.blue {
            background-color: #0090D9;
            color:  $color-white ;
        }
        &.red {
            background-color: #F35958;
            color:  $color-white ;
        }
        &.green {
            background-color: $color-green;
            color:  $color-white ;
        }
        &.purple {
            background-color: #736086;
            color:  $color-white ;
        }
    }
    .widget-body {
        display: block;
        background-color:  $color-white ;
        padding: 15px 25px;
    }
    .controller {
        position: relative;
        display: inline-block;
        float: right;
        top: 6px;
        margin-right: 8px;
        a {
            position: relative;
            background: url('../img/icon/portlet-tray.png') no-repeat;
            transition: all 0.1s linear 0s;
            display: inline-block;
            &.remove {
                background-position: -66px -38px;
                height: 10px;
                top: -5px;
                width: 10px;
            }
            &.config {
                background-position: -3px -32px;
                height: 22px;
                width: 22px;
            }
            &.reload {
                background-position: -37px -38px;
                height: 10px;
                top: -5px;
                width: 12px;
            }
            &.expand {
                background-position: -123px -11px;
                width: 10px;
                height: 6px;
                top: -5px;
            }
            &:hover {
                &.collapse {
                    background-position: -95px -40px;
                    height: 7px;
                    top: -5px;
                    width: 9px;
                    background-position: -95px -40px;
                    height: 7px;
                    top: -5px;
                    width: 9px;
                }
                &.remove {
                    background-position: -66px -9px;
                    height: 10px;
                    top: -5px;
                    width: 10px;
                }
                &.config {
                    background-position: -3px -32px;
                    height: 22px;
                    width: 22px;
                }
                &.reload {
                    background-position: -38px -9px;
                    height: 10px;
                    top: -5px;
                    width: 12px;
                }
                &.expand {
                    background-position: -123px -11px;
                    width: 10px;
                    height: 6px;
                    top: -5px;
                }
            }
        }
    }
}
.widget .widget-title.dark .controller  a.reload:hover, .widget .widget-title.dark .controller  a.remove:hover {
    opacity: 0.5;
}
.weather-widget {
    overflow: hidden;
    .big-icon {
        width: 120px;
        margin-right: auto;
        margin-left: auto;
        margin-top: 23px;
        margin-bottom: 8px;
    }
    .small-text-description {
        position: relative;
        top: -9px;
    }
}
.weather-widget-big-text {
    font-size: 48px !important;
}
.analytics-widget-big-text {
   font-size: 27px !important;
}
.widget-stats-wrapper {
    position: relative;
    display: table;
    width: 100%;
}
.widget-stats {
    padding-left: 0;
    // display: inline-block;
    display: table-cell;
    .wrapper {
        margin: 5px 7px 5px 0;
        border-right: 1px solid #363a41;
        // margin-right: 7px;
        padding-right: 7px;
        &.last {
            border: 0;
        }
    }
    .item-title {
        font-size: 12px;
        color: #797979;
        text-transform: uppercase;
    }
    .item-count {
        font-size: 14px;
        color:  $color-purple;
        display: block;
        font-weight: bold;
    }
}
.widget-dashboard {
    position: relative;
    // overflow: hidden;
    display: inline-block;
    .wticon-sort-down {
        &:before {
        		font-size: 24px;
            position: absolute;
            top: -35px;
            width: 24px;
            left: 50%;
            margin-left: -12px;
            text-align: center;
        }
    }
    .wticon-sort-up {
        &:before {
            font-size: 24px;
            position: absolute;
            top: -25px;
            width: 24px;
            left: 50%;
            margin-left: -12px;
            text-align: center;
        }
    }
}