/*! gridster.js - v0.5.2 - 2014-06-16
* http://gridster.net/
* Copyright (c) 2014 ducksboard; Licensed MIT */

.gridster {
    position:relative;
    color: #333;
}

.gridster > * {
    margin: 0 auto;
    -webkit-transition: height .4s, width .4s;
    -moz-transition: height .4s, width .4s;
    -o-transition: height .4s, width .4s;
    -ms-transition: height .4s, width .4s;
    transition: height .4s, width .4s;
}

.gridster .gs-w {
    z-index: 2;
    position: absolute;
}

.ready .gs-w:not(.preview-holder) {
    -webkit-transition: opacity .3s, left .3s, top .3s;
    -moz-transition: opacity .3s, left .3s, top .3s;
    -o-transition: opacity .3s, left .3s, top .3s;
    transition: opacity .3s, left .3s, top .3s;
}

.ready .gs-w:not(.preview-holder),
.ready .resize-preview-holder {
    -webkit-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
    -moz-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
    -o-transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
    transition: opacity .3s, left .3s, top .3s, width .3s, height .3s;
}

.gridster .preview-holder {
    z-index: 1;
    position: absolute;
    background-color: #fff;
    border-color: #fff;
    opacity: 0.3;
}

.gridster .player-revert {
    z-index: 10!important;
    -webkit-transition: left .3s, top .3s!important;
    -moz-transition: left .3s, top .3s!important;
    -o-transition: left .3s, top .3s!important;
    transition:  left .3s, top .3s!important;
}

.gridster .dragging,
.gridster .resizing {
    background: transparent !important;
    z-index: 10!important;
    -webkit-transition: all 0s !important;
    -moz-transition: all 0s !important;
    -o-transition: all 0s !important;
    transition: all 0s !important;
}

.dragging {
    background: transparent;
}

.gs-resize-handle {
    position: absolute;
    z-index: 1;
}

.gs-resize-handle-both {
    width: 20px;
    height: 20px;
    bottom: -8px;
    right: -8px;
    background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg08IS0tIEdlbmVyYXRvcjogQWRvYmUgRmlyZXdvcmtzIENTNiwgRXhwb3J0IFNWRyBFeHRlbnNpb24gYnkgQWFyb24gQmVhbGwgKGh0dHA6Ly9maXJld29ya3MuYWJlYWxsLmNvbSkgLiBWZXJzaW9uOiAwLjYuMSAgLS0+DTwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DTxzdmcgaWQ9IlVudGl0bGVkLVBhZ2UlMjAxIiB2aWV3Qm94PSIwIDAgNiA2IiBzdHlsZT0iYmFja2dyb3VuZC1jb2xvcjojZmZmZmZmMDAiIHZlcnNpb249IjEuMSINCXhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHhtbDpzcGFjZT0icHJlc2VydmUiDQl4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjZweCIgaGVpZ2h0PSI2cHgiDT4NCTxnIG9wYWNpdHk9IjAuMzAyIj4NCQk8cGF0aCBkPSJNIDYgNiBMIDAgNiBMIDAgNC4yIEwgNCA0LjIgTCA0LjIgNC4yIEwgNC4yIDAgTCA2IDAgTCA2IDYgTCA2IDYgWiIgZmlsbD0iIzAwMDAwMCIvPg0JPC9nPg08L3N2Zz4=');
    background-position: top left;
    background-repeat: no-repeat;
    cursor: se-resize;
    z-index: 20;
}

.gs-resize-handle-x {
    top: 0;
    bottom: 13px;
    right: -5px;
    width: 10px;
    cursor: e-resize;
}

.gs-resize-handle-y {
    left: 0;
    right: 13px;
    bottom: -5px;
    height: 10px;
    cursor: s-resize;
}

.gs-w:hover .gs-resize-handle,
.resizing .gs-resize-handle {
    opacity: 1;
}

.gs-resize-handle,
.gs-w.dragging .gs-resize-handle {
    opacity: 0;
}

.gs-resize-disabled .gs-resize-handle {
    display: none!important;
}

[data-max-sizex="1"] .gs-resize-handle-x,
[data-max-sizey="1"] .gs-resize-handle-y,
[data-max-sizey="1"][data-max-sizex="1"] .gs-resize-handle {
    display: none !important;
}

/* Uncomment this if you set helper : "clone" in draggable options */
/*.gridster .player {
  opacity:0;
}
*/
.gridster * {
    margin:0;
}

.answer table {
    width: 100%;
    max-height: 100%;
    font-size:inherit !important;
}
.answer th {
    font-size:inherit !important;
    padding:2px 4px;
    white-space: normal;
    width: auto !important;
}
.answer > img {
    max-width: 100%;
    width: auto;
    height: auto;
}
.answer > .head {
    padding:5px !important;
}
.answer > .subHeader {
    font-size: 0.8em;
    font-weight: normal !important;
    padding: 5px !important;
}

ul {
  list-style-type: none;
}

p {
    min-height: 12px;
}


/*/
/* demo
/*/
.controls {
    margin-bottom: 20px;
}

/*/
/* gridster
/*/

.gridster>ul {
    width:760px !important;
    height: 1190px;
}

.gridster>ul>li {
    font-size: 14px;
    /*text-align: center;*/
    line-height: 125%;
    border:2px solid transparent;
}


.gridster {
    margin: 0 auto;

    opacity: .8;

    -webkit-transition: opacity .6s;
    -moz-transition: opacity .6s;
    -o-transition: opacity .6s;
    -ms-transition: opacity .6s;
    transition: opacity .6s;
}

.gridster .gs-w {
    background: rgba(218,214,214,0.1);
    cursor: pointer;
}

.gridster .player {
    background: #BBB !important;
}


.gridster .preview-holder {
    border: none!important;
    background: red!important;
}

.gridster ul li:hover > .widgetMenu {
    opacity: 0.95;
    /*top:-28px;*/
}
.widgetMenu {
    position: absolute;
    height: 28px;
    top:0;
    width:56px;
    right:-1px;
    background: rgba(218,214,214,0.1);
    opacity: 0.15;
    transition: all linear 0.2s; z-index: 9999;
}
.widgetMenu > img {
    position:relative;
    margin-top:4px;margin-right:4px;
    float:right;width:20px;height:20px;
}

.hiddenEl {
    opacity: 0.1;
}
.deleted {
    display:none !important;
}

/* Page Seperator */
.page_seperator {
    position: absolute;
    background-color: #999;
    width: 860px;
    margin-left: -30px;
    height:5px;
    box-shadow: 0px 4px 4px #222 inset;
    z-index: 999;
}

.toolbar-set>button {
    cursor:pointer;
}

#widget-tools {
    margin-top: 5px;
}
/*Add image button*/
#widget-tools>li {
    cursor: pointer;
    float:left;
    padding:3px 4px;
    border-radius:4px;
    height: 40px;
}
#widget-tools>li:hover {
    background: url(/assets/v3/images/drag-back.png);
    border: 1px solid #999;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}
/*Image Dialog*/
.dialog {
    position: fixed;
    top:40%;
    width: 280px;
    left: calc(50% - 140px);
    border-radius: 8px;
    box-shadow: 1px 1px 5px #999;
    padding:10px;
    z-index: 999999;
    background-color: white;
    font-size: 14px;
}
#imageUrl {
    padding:5px;
    width:250px;
    min-height:20px;
    border-radius: 4px;
    box-shadow: 1px 1px 3px #999 inset;
    border:1px solid #666;
    display: inline-block;
    margin:4px 8px;
}
.dialogButton {
    padding:5px 12px;
    margin-right: 10px;
    box-shadow: 1px 1px 4px #fff inset;
    background-color: rgba(66,66,210,0.8);
    cursor: pointer;
    border-radius: 8px;
    float:right;
    color: white;
}

#widgetOptions
{
    position: absolute;
    display: inline-block;
    padding:1px;
    border-radius: 5px;
    background-color: #ddd;
    box-shadow:1px 1px 5px #666;
}
#widgetOptions>img
{
    float:left;
    margin:2px;
    padding:4px;
    width:18px;
    height:20px;
    cursor: pointer;
    border-radius: 4px;
}
#widgetOptions>img:hover
{
    box-shadow:1px 1px 5px #888 inset;
    background-color: #ccc;
}
#widgetOptions[x-align~="left"] #left{
    box-shadow:1px 1px 5px #666 inset;
    background-color: #bbb;
}
#widgetOptions[x-align~="right"] #right{
    box-shadow:1px 1px 5px #666 inset;
    background-color: #bbb;
}
#widgetOptions[x-align~="center"] #center{
    box-shadow:1px 1px 5px #666 inset;
    background-color: #bbb;
}
#widgetOptions[x-bold~="bold"] #bold{
    box-shadow:1px 1px 5px #666 inset;
    background-color: #bbb;
}
.gridster>ul>li[x-align~="left"] {
    text-align: left;
}
.gridster>ul>li[x-align~="right"] {
    text-align: right;
}
.gridster>ul>li[x-align~="center"] {
    text-align: center;
}
.gridster>ul>li[x-bold~="bold"] {
    font-weight: bold;
}
.gridster>ul>li[x-bold~="normal"] {
    font-weight: normal;
}

#previewDim, #previewStage {
    display:none;
}

#previewDim {
    z-index:9998;
    background-color:rgba(33,33,39,0.6);
    position:fixed;
    top:0;left:0;
    width:100%;
    min-height:1500px;
}
#previewStage {
    position:absolute;top:50px;
    left:calc(50% - 360px);
    z-index:9999;
    width:760px;
    margin:40px auto;
    padding:10px;
    background-color:rgba(251,251,252,0.92);
    border-radius:4px;border:1px solid #999;
    box-shadow:1px 1px 4px #999;
}
#previewFrame {
    width:760px;
    min-height:1133px;
    border-width:0px;
    background-color:white;border-radius:4px;
}

#reports-content{
    -moz-border-radius:0 0 10px 10px;
    -webkit-border-radius:0 0 10px 10px;
    border:none;
    background:#fff;
    /*margin-top: 68px;*/
    padding-top:0px;
    min-height:410px;
    position:relative;
}

#content {
    margin-bottom: 40px;
}

#reports-content {
    width: 900px;
    display: inline-block;
    background: #999;
}

.message {
    text-align: center;
    padding: 4px 0;
    font-size: 12px;
    margin: 6px;
    border-radius: 4px;
    background-color: rgba(190,140,0,0.6);
    position: absolute;
    width: 60%;
    left: 20%;
}

#report-stage {
    text-align: left;
    margin: 20px auto;
    padding:25px;
    /*margin-top:100px;*/
    min-height: 1250px;
    width: 760px !important;
    max-width: 760px !important;
    min-width: 760px !important;
    border: 1px solid #ccc;
    background: #ffffff;
    -moz-box-shadow: 0px 5px 10px #222;
    -webkit-box-shadow: 0px 5px 10px #222;
    position: relative;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}
#stageLoader {
    position: absolute;
    top:5px;
    left: 0;
    padding: 20px;
    margin: -6px 21px;
    z-index: 999;
}
#preferences td {padding:5px;}
#tool_bar { margin-top:-4px;}
#tool_bar>button {
     padding-left: 5px;
}

.label,.answer,.answerTpl,.formTitle,.image
{
    position: relative;
    display: table-cell;
    vertical-align: middle;
    line-height: normal;
    border:1px solid transparent;
}

.name, .value {
    display: table;
    margin-top:3px;
    margin-bottom:3px;
}

.image, .image > img
{
    max-height: 100%;
    max-width: 100%;
    z-index: 1;
}

.freeText {
    position: absolute;
    left:1%;
    width:92%;
    height:calc(94% - 20px);
    min-height:20px;
    cursor:text;
    /*margin:15px 0 5px 10px;*/
    margin:6px;
    border: 0px;
    text-align: inherit;
    font-weight: inherit;
    font-family: inherit;
    background-color: inherit;
    color: inherit;
    font-size: inherit;
    resize: none;
    white-space: pre-wrap;
    overflow: hidden;
}

/* Reports css hack - to show color picker */
.edit-box {
    display: block;
    width:200px;
}
.title-cont {
    height:26px;
}

/*/*  Feedback Button CSS */
.jfFeedbackButton-text{
    margin-left: -15px;
}

.jfFeedbackButton{
    margin-bottom: 10px;
}

/* New PDF Editor Icon */
.title-bar.pdfEditor { position: relative; }
.title-bar.pdfEditor .title-cont { width: 100%; }

.title-bar.pdfEditor a.try-pdf-designer-button {
    position: absolute;
    padding: 7px 8px;
    display: inline-block;
    border-radius: 14px;
    text-decoration: none;
    color: #060b33;
    margin-top: -14px;
    background-color: #fff;
    right: 10px; top: 50%;
}

.title-bar.pdfEditor a.try-pdf-designer-button span {
    padding: 3px 10px;
    margin-right: 5px;
    color: #fff;
    background-color: #4c7ff4;
    border-radius: 14px;
}
