/*==============================================================================

    File:	    widget.js

    Version:	    1.0

    Autor:	    Victor Valencia Rico - valencia_vik@hotmail.com
		    https://github.com/victor-valencia

     Date:	    March 2013

==============================================================================*/

.widget {

    position: relative;
    clear: both;
    width: auto;
    margin-bottom: 2em;
    overflow: hidden;

}

.widget-header {

    height: 40px;
    line-height: 40px;
    position: relative;

    -webkit-background-clip: padding-box;

    -webkit-border-top-left-radius: 4px;
    -webkit-border-top-right-radius: 4px;
    -moz-border-radius-topleft: 4px;
    -moz-border-radius-topright: 4px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;

    color: #333333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    background-color: #f5f5f5;
    background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));
    background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);
    background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);
    background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);
    border-color: #e6e6e6 #e6e6e6 #bfbfbf;
    border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
    *background-color: #e6e6e6;
    /* Darken IE7 buttons by default so they stand out more given they won't have borders */

    filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);

}

.widget-header .options {

    width: auto;
    height: 40px;
    line-height: 40px;
    float: right;
    margin-right: 13px;

}

.widget-header .options i {

    margin-left: 4px;
    margin-right: 4px;

    -webkit-transition:all 0.2s ease-in-out;
    -moz-transition:all 0.2s ease-in-out;
    -o-transition:all 0.2s ease-in-out;
    transition:all 0.2s ease-in-out;

}


.widget-header .options i:hover {

    color: #000;

}

.widget-inverse .widget-header .options i:hover,
.widget-info .widget-header .options i:hover,
.widget-success .widget-header .options i:hover,
.widget-danger .widget-header .options i:hover,
.widget-warning .widget-header .options i:hover,
.widget-primary .widget-header .options i:hover,
.widget-private .widget-header .options i:hover {

    color: #FFF;

}

.widget-header .options i:first-child {

    margin-left: 0px;

}

.widget-header .options i:last-child {

    margin-right: 0px;

}


.widget-header h3 {

    position: relative;
    top: 2px;
    left: 10px;
    display: inline-block;
    margin-right: 3em;
    font-size: 14px;
    font-weight: 800;
    /*color: @color-base;*/
    line-height: 18px;
    /*text-shadow: 1px 1px 2px rgba(255,255,255,.5);*/

}

.widget-header [class^="icon"], .widget-header [class*=" icon"] {

    display: inline-block;
    margin-left: 13px;
    margin-right: -2px;
    font-size: 14px;
    /*color: @color-base;*/
    vertical-align: middle;

}

.widget-header .options [class^="icon"], .widget-header .options [class*=" icon"] {

    display: inline-block;
    margin-left: 13px;
    margin-right: -2px;
    font-size: 14px;
    color: rgba(0,0,0,.3);
    vertical-align: middle;

}

.widget-inverse .widget-header .options [class^="icon"], .widget-inverse .widget-header .options [class*="icon"],
.widget-info .widget-header .options [class^="icon"], .widget-info .widget-header .options [class*="icon"],
.widget-success .widget-header .options [class^="icon"], .widget-success .widget-header .options [class*="icon"],
.widget-danger .widget-header .options [class^="icon"], .widget-danger .widget-header .options [class*="icon"],
.widget-warning .widget-header .options [class^="icon"], .widget-warning .widget-header .options [class*="icon"],
.widget-primary .widget-header .options [class^="icon"], .widget-primary .widget-header .options [class*="icon"],
.widget-private .widget-header .options [class^="icon"], .widget-private .widget-header .options [class*="icon"] {

    color: rgba(255,255,255,.6);

}

.widget-inverse .widget-header,
.widget-info .widget-header,
.widget-success .widget-header,
.widget-danger .widget-header,
.widget-warning .widget-header,
.widget-primary .widget-header,
.widget-private .widget-header{

    color: #ffffff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);

}

.widget-primary .widget-header {

    background-color: #006dcc;
    background-image: -moz-linear-gradient(top, #0088cc, #0044cc);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc));
    background-image: -webkit-linear-gradient(top, #0088cc, #0044cc);
    background-image: -o-linear-gradient(top, #0088cc, #0044cc);
    background-image: linear-gradient(to bottom, #0088cc, #0044cc);

    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0);
    border-color: #0044cc #0044cc #002a80;

    *background-color: #0044cc;
    /* Darken IE7 buttons by default so they stand out more given they won't have borders */

}

.widget-warning .widget-header {

    background-color: #faa732;
    background-image: -moz-linear-gradient(top, #fbb450, #f89406);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406));
    background-image: -webkit-linear-gradient(top, #fbb450, #f89406);
    background-image: -o-linear-gradient(top, #fbb450, #f89406);
    background-image: linear-gradient(to bottom, #fbb450, #f89406);

    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0);
    border-color: #f89406 #f89406 #ad6704;

    *background-color: #f89406;
    /* Darken IE7 buttons by default so they stand out more given they won't have borders */

}

.widget-danger .widget-header {

    background-color: #da4f49;
    background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f));
    background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f);
    background-image: -o-linear-gradient(top, #ee5f5b, #bd362f);
    background-image: linear-gradient(to bottom, #ee5f5b, #bd362f);

    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0);
    border-color: #bd362f #bd362f #802420;

    *background-color: #bd362f;
    /* Darken IE7 buttons by default so they stand out more given they won't have borders */

}

.widget-success .widget-header{

    background-color: #5bb75b;
    background-image: -moz-linear-gradient(top, #62c462, #51a351);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351));
    background-image: -webkit-linear-gradient(top, #62c462, #51a351);
    background-image: -o-linear-gradient(top, #62c462, #51a351);
    background-image: linear-gradient(to bottom, #62c462, #51a351);

    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0);
    border-color: #51a351 #51a351 #387038;

    *background-color: #51a351;
    /* Darken IE7 buttons by default so they stand out more given they won't have borders */

}

.widget-info .widget-header {

    background-color: #49afcd;
    background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4));
    background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4);
    background-image: -o-linear-gradient(top, #5bc0de, #2f96b4);
    background-image: linear-gradient(to bottom, #5bc0de, #2f96b4);

    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f96b4', GradientType=0);
    border-color: #2f96b4 #2f96b4 #1f6377;

    *background-color: #2f96b4;
    /* Darken IE7 buttons by default so they stand out more given they won't have borders */

}

.widget-private .widget-header {

    background-color: #1ABB9C;
    background-image: -moz-linear-gradient(top, #45d3b6, #2bb99d);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#45d3b6), to(#2bb99d));
    background-image: -webkit-linear-gradient(top, #45d3b6, #2bb99d);
    background-image: -o-linear-gradient(top, #45d3b6, #2bb99d);
    background-image: linear-gradient(to bottom, #45d3b6, #2bb99d);

    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f96b4', GradientType=0);
    border-color: #1ABB9C #1ABB9C #1ABB9C;

    *background-color: #2f96b4;
    /* Darken IE7 buttons by default so they stand out more given they won't have borders */

}

.widget-inverse .widget-header {

    background-color: #363636;
    background-image: -moz-linear-gradient(top, #444444, #222222);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222));
    background-image: -webkit-linear-gradient(top, #444444, #222222);
    background-image: -o-linear-gradient(top, #444444, #222222);
    background-image: linear-gradient(to bottom, #444444, #222222);

    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444', endColorstr='#ff222222', GradientType=0);
    border-color: #222222 #222222 #000000;

    *background-color: #222222;
    /* Darken IE7 buttons by default so they stand out more given they won't have borders */

}

.widget-content {

    padding: 20px 15px 15px;
    background: #FFF;
    border: 1px solid #D5D5D5;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.widget-header+.widget-content {

    border-top: none;
    -webkit-border-top-left-radius: 0;
    -webkit-border-top-right-radius: 0;
    -moz-border-radius-topleft: 0;
    -moz-border-radius-topright: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;

}

.widget-nopad .widget-content {

    padding: 0;

}

/* Widget Content Clearfix */
.widget-content:before, .widget-content:after {

    content:"";
    display:table;

}

.widget-content:after {

    clear:both;

}

/* For IE 6/7 (trigger hasLayout) */
.widget-content {

    zoom:1;

}


/* Widget Plain */

.widget-content-transparent .widget-content {

    background: transparent;
    border: none;

}


/* Widget Fullscreen */

.widget-fullscreen {

    position: fixed;
    bottom: 20px;
    top: 50px;
    display: none;

}

.widget-fullscreen > div {

    height: 100%;

}

.widget-fullscreen .target {

    padding-left: 20px;
    padding-right: 20px;

}

.widget-fullscreen .widget, .widget-fullscreen .widget .widget-content {

    height: 100%;

}