/* For pattern settings */

body{
    width: 100%;
    font-family: 'Open Sans', sans-serif;
}

.addModuleButton, .moduleSettingsButton {
    margin: 5px;
}

.editable-module{
    position: relative;
}

div.module-owerlay{
    position: absolute;
    text-align: right;
    background: rgba( 205, 205, 205, .25);
    z-index: 1000;
}

.module-wisible-for-settings{
    min-height: 40px;
}

.mce-fullscreen{
    z-index: 1039 !important;
}

#moduleOutline{
    pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(0,0,0,0.5);
    position: absolute;
}

#moduleOutlineInner{
    height: 50%;
    width: 50%;
    position: relative;
    top: 25%;
    left: 25%;
}

#moduleOutline .popover{
    pointer-events: auto;
    min-width: 200px;
}

#layoutSettingsGroup{
    bottom: 10px;
    right: 100px;
    position: fixed;
}

#tinyMCEcontainer {
    width: 100%;
}

/* END For pattern settings */

/* some bootstrap improvements */

/* columns of same height styles */
.container-xs-height {
    display:table;
    padding-left:0px;
    padding-right:0px;
}
.row-xs-height {
    display:table-row;
}
.col-xs-height {
    display:table-cell;
    float:none;
}

@media (min-width: 768px) {
    .container-sm-height {
        display:table;
        padding-left:0px;
        padding-right:0px;
    }
    .row-sm-height {
        display:table-row;
    }
    .col-sm-height {
        display:table-cell;
        float:none;
    }
}

@media (min-width: 992px) {
    .container-md-height {
        display:table;
        padding-left:0px;
        padding-right:0px;
    }
    .row-md-height {
        display:table-row;
    }
    .col-md-height {
        display:table-cell;
        float:none;
    }
}

@media (min-width: 1200px) {
    .container-lg-height {
        display:table;
        padding-left:0px;
        padding-right:0px;
    }
    .row-lg-height {
        display:table-row;
    }
    .col-lg-height {
        display:table-cell;
        float:none;
    }
}

/* bootstrap responsive text align */

.text-xs-left { text-align: left; }
.text-xs-right { text-align: right; }
.text-xs-center { text-align: center; }
.text-xs-justify { text-align: justify; }

@media (min-width: 768px) {
    .text-sm-left { text-align: left; }
    .text-sm-right { text-align: right; }
    .text-sm-center { text-align: center; }
    .text-sm-justify { text-align: justify; }
}

@media (min-width: 992px) {
    .text-md-left { text-align: left; }
    .text-md-right { text-align: right; }
    .text-md-center { text-align: center; }
    .text-md-justify { text-align: justify; }
}

@media (min-width: 1200px) {
    .text-lg-left { text-align: left; }
    .text-lg-right { text-align: right; }
    .text-lg-center { text-align: center; }
    .text-lg-justify { text-align: justify; }
}

/* firefox fix */
.img-responsive {
    max-width: 100%;
}

/* vertical alignment styles */
.col-top {
    vertical-align:top;
}
.col-middle {
    vertical-align:middle;
}
.col-bottom {
    vertical-align:bottom;
}

/* image covers */

.thumbnailCover{
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-position: center center;
    position: relative;
}

.thumbnailCover i.fileEditor{
    position: absolute;
    display: table-cell;
    text-align: center;
    width: 100%;
    height: 100%;
    background: lightgrey;
    color: white;
    line-height: 1.5;
}

.thumbnail div img{
    max-width: 100%;
}

.thumbnailCover.tileSelection {
    position: relative;
}

.thumbnailCover.tileSelection .tileBg {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
}

.thumbnailCover.tileSelection .tileContent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.thumbnailCover.tileSelection .tileContent .tileContentWrapper{
    display: table;
    width: 100%;
    height: 100%;
}

.thumbnailCover.tileSelection .tileContent .tileContentMiddle{
    width: 100%;
    height: 100%;
    text-align: center;
    vertical-align:middle;
    display: table-cell;
}

.thumbnail.thumbnailInTable {
    width: 100px;
    margin-bottom: 0px;
    margin-right: 10px;
    float: left;
}

/* lightbox changes */

.lb-data .lb-caption {
    font-weight: normal;
    line-height: 1.5em;
}

.lb-data .lb-caption strong{
    font-size: 15px;
}

.social-button{
    margin-right: 5px;
}

table.table-middle tr td,
table.table-middle tr th{
    vertical-align: middle;
}

.table-noBottomMargin {
    margin-bottom: 0px;
}

footer#footer, footer#footer .footer-wrapper {
    border-top: none;
    padding: 0px;
}

footer#footer a {
    color: #999999;
}

.dashboardGrid{
    margin-bottom: 20px;
    margin-left: -10px;
    margin-right: -10px;
}

.dashboardGrid .grid-stack-item.ui-draggable:not(.ui-draggable-disabled){
    cursor: move; 
}

.dashboardGrid .grid-stack-item-content {
    background: #ffffff;  
}

.dashboardGrid .grid-stack-item-content.grid-stack-item-preloader{
    background: #ffffff url("./FLATTY/assets/images/ajax-loaders/15.gif") center center no-repeat;
}

.dashboardGrid .grid-stack-item-over-preloader{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
    background: #ffffff url("./FLATTY/assets/images/ajax-loaders/15.gif") center center no-repeat;
    background-color: rgba(255, 255, 255, 0.6);
}

.dashboardGrid .grid-stack-item-content .widget{
    margin: 0px;
    border: 1px solid #dddddd;
    height: 100%;
}

.dashboardGrid .grid-stack-item-content .widget .box-content{
    margin: 0px;
    border: none;
    box-shadow: none;
}

.dashboardGrid .grid-stack-item-content .removeWidgetButton{
    z-index: 90;
    position: absolute;
    top: 0px;
    right: 0px;
}

.chartBlue{
    color: rgb(151,187,255);
}

.chartRed{
    color: rgb(139, 0, 0);
}

.CodeMirror {
    height: auto !important;
}

/* MOSEOVER CLASS */
.moseoverLink {
    cursor: pointer; cursor: hand;
}

.moseoverDisabled {
    cursor: not-allowed;
}

/* ADMIN UPDATES */
li.message.updateNotPushed {
    border-left: 2px solid #b94a48;
}

li.message.updatePushed {
    border-left: 2px solid #3a87ad;
}

li.message.updateOld {
    border-left: 2px solid #468847;
}

li.message.updateVersionUpdate {
    background-color: #dff0d8 !important;
}

li.message.updateVersionUpdateComment {
    background-color: #D9EDF7 !important;
}

/* BELL - RINGING ANIMATION */

@-webkit-keyframes ring {
    0% {
        -webkit-transform: rotate(-15deg);
        transform: rotate(-15deg);
    }

    2% {
        -webkit-transform: rotate(15deg);
        transform: rotate(15deg);
    }

    4% {
        -webkit-transform: rotate(-18deg);
        transform: rotate(-18deg);
    }

    6% {
        -webkit-transform: rotate(18deg);
        transform: rotate(18deg);
    }

    8% {
        -webkit-transform: rotate(-22deg);
        transform: rotate(-22deg);
    }

    10% {
        -webkit-transform: rotate(22deg);
        transform: rotate(22deg);
    }

    12% {
        -webkit-transform: rotate(-18deg);
        transform: rotate(-18deg);
    }

    14% {
        -webkit-transform: rotate(18deg);
        transform: rotate(18deg);
    }

    16% {
        -webkit-transform: rotate(-12deg);
        transform: rotate(-12deg);
    }

    18% {
        -webkit-transform: rotate(12deg);
        transform: rotate(12deg);
    }

    20% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

@keyframes ring {
    0% {
        -webkit-transform: rotate(-15deg);
        -ms-transform: rotate(-15deg);
        transform: rotate(-15deg);
    }

    2% {
        -webkit-transform: rotate(15deg);
        -ms-transform: rotate(15deg);
        transform: rotate(15deg);
    }

    4% {
        -webkit-transform: rotate(-18deg);
        -ms-transform: rotate(-18deg);
        transform: rotate(-18deg);
    }

    6% {
        -webkit-transform: rotate(18deg);
        -ms-transform: rotate(18deg);
        transform: rotate(18deg);
    }

    8% {
        -webkit-transform: rotate(-22deg);
        -ms-transform: rotate(-22deg);
        transform: rotate(-22deg);
    }

    10% {
        -webkit-transform: rotate(22deg);
        -ms-transform: rotate(22deg);
        transform: rotate(22deg);
    }

    12% {
        -webkit-transform: rotate(-18deg);
        -ms-transform: rotate(-18deg);
        transform: rotate(-18deg);
    }

    14% {
        -webkit-transform: rotate(18deg);
        -ms-transform: rotate(18deg);
        transform: rotate(18deg);
    }

    16% {
        -webkit-transform: rotate(-12deg);
        -ms-transform: rotate(-12deg);
        transform: rotate(-12deg);
    }

    18% {
        -webkit-transform: rotate(12deg);
        -ms-transform: rotate(12deg);
        transform: rotate(12deg);
    }

    20% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }
}

.faa-ring.animated,
.faa-ring.animated-hover:hover,
.faa-parent.animated-hover:hover > .faa-ring {
    -webkit-animation: ring 2s ease infinite;
    animation: ring 2s ease infinite;
    transform-origin-x: 50%;
    transform-origin-y: 0px;
    transform-origin-z: initial;
}

/* USER NOTIFICATIONS */
.userNotification {
    border-left: 5px solid #F9F9F9;
}

.userNotification:hover {
    border-left: 5px solid #DDDDDD;
}

.userNotification.new {
    border-left: 3px solid #F34541;
}

/* USER HOURS TABLE */

.userHours thead tr th {
    background-color: white;
}

.userHours tbody tr td {
    position: relative;
    padding: 0px;
}

.userHours tbody tr td.activeMonth {
    background-color: white;
}

.userHours tbody tr td .cellDate {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 5px 0 0;
}

.userHours tbody tr td .cellHours {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.userHours tbody tr td .cellHours div {
    text-align: center;
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    font-size: 1.2em;
}

.userHours tbody tr td.activeMonth .cellHours div.workday.past {
    font-weight: bold;
}

.userHours tbody tr td .cellHours div.paddingDay {
    color: #999999;
}