/* IE8 hack to display selected fields in disabled multi select */
#wfs-container option[disabled="disabled"][selected="selected"] {background-color:#D4D0C8;}

#wfs-container {
    padding-top: 10px;
    margin-bottom: 10px;
}

#wfs-container textarea {
    resize: vertical; /* user can resize vertically, but width is fixed */
}

#wfs-container .wfs-input-field {
    height: 34px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 14px;
}

div[wfs-field-type="attachment"] {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 14px;
}

div[wfs-field-type="attachment"] label {
    padding-bottom: 2px;
}

#wfs-container [wfs-field-type="table"] th {
    font-weight: bold;
}

#wfs-container .form-horizontal .wfs-input-field {
    margin-bottom: 0px;
}

#wfs-container input[type=checkbox] {
    margin-top: 14px;
}

#wfs-container .form-horizontal input[type=checkbox] {
    margin-top: 5px;
}

#wfs-container .radio-form-group {
    padding-left: 0px;
    padding-top: 17px;
}

#wfs-container input[type=radio] {
    margin-top: 0px;
}

#wfs-container .form-horizontal .radio-form-group {
    padding-top: 10px;
}

#wfs-container .form-horizontal input[type=radio] {
    margin-top: 1px;
}

#wfs-container .form-horizontal .radio {
    padding-top: 0px;
}

#wfs-container .form-horizontal .radio-inline {
    padding-top: 8px;
}

.bootstrap-timepicker-widget table td input {
    width: 50px;
}

.datepicker table tr td, .datepicker table tr th {
    width: 1px;
    height: 1px;
}

#wfs-container .form-group.required .control-label:after {
    color: #d00;
    content: "*";
}

#wfs-container .form-horizontal .control-label {
    text-align: left;
}

#wfs-container .wfs-loading {
    padding-left: 10px;
    margin-top: 5px;
}

#wfs-container .help-link:focus {
    outline: none;
}

#wfs-container .alert {
    padding: 8px;
    margin-bottom: 10px;
}

#wfs-container .alert-dismissible .close {
    right: -2px;
}

#wfs-container .wfs-button-row {
    border-top: 1px solid #e5e5e5;
    padding-top: 12px;
    margin-top: 10px;
}

/* Strange hack to get the button width correct */
.bootstrap-touchspin .input-group-btn-vertical > .btn {
    width: 0
}

.bootstrap-timepicker .input-group-addon {
    cursor: pointer;
}


/* Animated spinner */
.glyphicon-refresh-animate {
    animation: spin .7s infinite linear;
    -animation: spin .7s infinite linear;
    -webkit-animation: spin2 .7s infinite linear;
}

@-webkit-keyframes spin2 {
    from { -webkit-transform: rotate(0deg);}
    to { -webkit-transform: rotate(360deg);}
}

@keyframes spin {
    from { transform: scale(1) rotate(0deg);}
    to { transform: scale(1) rotate(360deg);}
}

input[wfs-hide-empty] {
    color: #8a6d3b !important;
    background-color: #fcf8e3 !important;
    border-color: #8a6d3b !important;
}
label[wfs-hide-empty] {
    visibility: hidden;
}
div[wfs-hidden-div] {
    display: none;
}

p.bg-default {
    background-color: #eee;
}
.draft {
    background-color: pink;
    font-size: larger;
    color: white;
    text-align: center;
    font-weight: bold;
    opacity: 0.5;
    z-index: 9999;
    min-height: 50px;
    width: 200px;
    position: fixed;
    bottom: 0;
    left: 0;
    -webkit-transform: translate(-50px, -25px) rotate(45deg);
    -moz-transform:  translate(-50px, -25px) rotate(45deg);

}

#wfs-container .size-1 {
    height: 34px;
    overflow-y:  auto;

}
#wfs-container .size-2 {
    height: 110px;
    overflow-y:  auto;
}
#wfs-container .size-3 {
    height: 186px;
    overflow-y:  auto;
}
#wfs-container .size-4 {
    height: 262px;
    overflow-y:  auto;
}
#wfs-container .size-5 {
    height: 338px;
    overflow-y:  auto;
}
#wfs-container .size-6 {
    height: 414px;
    overflow-y:  auto;
}
#wfs-container .size-7 {
    height: 490px;
    overflow-y:  auto;
}
#wfs-container .size-8 {
    height: 566px;
    overflow-y:  auto;
}

#spinner {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    opacity: 0.3;
}
#spinner img {
    position: absolute;
    left: 50%;
    top: 50%;
}

.wfs-custom-error-container {
    margin:0;
    padding:0;
    height:100%;
}

.btn-group > .btn {
    color: #333;
    background-color: #fff;
    border-color: #ccc;
}

.btn-group > .btn.btn-checked {
    background-color: #e6e6e6;
    border-color: #adadad;
}

#wfs-container .btn-group, #wfs-container .btn-group-vertical {
    display: block;
}

.btn-parent-group {
    overflow: auto;
}

.wfs-preview [data-wfs-visibility] {
    border: 1px dashed orange;
    border-radius: 5px;
    background-color: #ffa5000d;
    padding-bottom: 3px;
}

/*.wfs-preview [data-wfs-visibility]:before {*/
    /*position: absolute;*/
    /*left: calc(100% - 22px);*/
    /*margin-top: -5px;*/
    /*color: orange;*/
    /*display: inline-block;*/
    /*font-family: 'Glyphicons Halflings';*/
    /*font-style: normal;*/
    /*font-weight: 400;*/
    /*line-height: 1;*/
    /*-webkit-font-smoothing: antialiased;*/
    /*content: "\e105";*/
/*}*/

.wfs-preview .row[data-wfs-visibility]:before {
    left: calc(100% - 42px);
}

.wfs-preview .wfs-input-field {
    font-style: italic;
}

.wfs-preview .template-visibility {
    border: 1px dashed orange;
    border-radius: 5px;
    background-color: #ffa5000d;
    padding-left: 3px;
    padding-right: 3px;
    margin-left: 1px;
    margin-right: 3px;
}

.wfs-preview .template-visibility:after {
    position: relative;
    top: -5px;
    width: 3px;
    color: orange;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    content: "\e105";
}

.wfs-preview .template-substitution {
    border: 1px dashed #03A9F4;
    border-radius: 5px;
    background-color: #03a9f424;
    padding-left: 3px;
    padding-right: 3px;
}

.btn-group>.btn-group-hide:not(:first-child)+.btn-group {
    margin-left: -1px;
}


.form-group .twitter-typeahead .tt-menu {
    width: 100%;
    font-size: 14px;
    background-color: white;
    border: 1px solid #ccc;
    /*padding: 6px 0;*/
    border-radius: 4px;

}

[typeahead-field] {
    background: #fff url(../img/search-field.png) no-repeat;
    background-position: right 10px center;
}

.tt-menu .tt-suggestion {
    padding: 6px 12px;
    cursor: pointer;
}

.tt-menu .tt-content {
    font-size: 12px;
}

.tt-header-content, .tt-loading-content, .tt-empty-content {
    padding: 6px 12px 0 12px;
    font-size: 12px;
}

.tt-menu .tt-suggestion-summary {
    font-size: 12px;
}

.tt-menu .tt-suggestion:hover, .tt-menu .tt-cursor {
    background-color: #efefef;
}

form:not(.form-horizontal) .form-group .twitter-typeahead {
    display: block !important;
}

.tt-menu {
    max-height: 180px;
    overflow-y: auto;
}

.has-typeahead-error {
    border: 1px solid red;
}

.wfs-image-analyse-canvas-container:focus {
    border: 1px solid #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.wfs-image-analyse-canvas-container:focus .wfs-image-analyse-canvas-thumbnail {
    border: 0;
}

.wfs-image-analyse-canvas-container.wfs-analyse-pending .wfs-image-analyse-canvas-thumbnail {
    opacity: 0.3;
}

.wfs-image-analyse-canvas-container {
    border-radius: 4px;
    border: 1px solid transparent;
}

.wfs-rpa-signal-canvas-container {
    border-radius: 4px;
    border: 1px solid transparent;
}

.wfs-rpa-signal-canvas-inner-container {
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    text-align: center;
    padding-top: 12px;
    padding-bottom: 18px;
}

.wfs-rpa-signal-canvas-placeholder {
    height: 120px;
    width: 120px;
    background-image: url(/common/img/image-bot.png);
    background-size: 80px;
    background-repeat: no-repeat;
    background-position: center;
    background-position-y: 20px;
    margin: 0 auto;
}

.wfs-rpa-signal-start-button > button {
    background-color: #ffbd74;
    text-align: center;
    border-radius: 4px;
    border: 0;
    outline: none;
    height: 30px;
    color: white;
}

.wfs-rpa-signal-start-button > button:hover {
    background-color: #fdaa4e;
}

.wfs-rpa-signal-start-button > button[disabled], .wfs-rpa-signal-start-button > button[disabled]:hover {
    background-color: #d6d6d6;
}

.wfs-rpa-signal-status {
    padding-top: 6px;
    min-height: 22px;
}

.wfs-rpa-signal-canvas {
    /*border: 1px solid red;*/
    /*width: 202;*/
    /*height: 202;*/
}

.wfs-image-analyse-canvas-container.wfs-analyse-success {
    /*border: 1px solid green;*/
}

.wfs-image-analyse-canvas-container.wfs-analyse-error {
    border: 1px solid #a94442;
}

.wfs-image-analyse-canvas-container.wfs-analyse-pending {
    border: 1px solid #fdaa4e;
}

.wfs-image-analyse-canvas-container.wfs-analyse-pending:focus {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgb(255 152 0 / 0.6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgb(255 152 0 / 0.6);
}

.wfs-image-analyse-canvas-container.wfs-analyse-error:focus {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
}

.wfs-image-analyse-paste,
.wfs-image-analyse-clear,
.wfs-image-analyse-control,
.wfs-image-analyse-overlay {
    position: absolute;
    width: calc(100% - 42px);
    height: calc(100% - 44px);
}

.wfs-image-analyse-control {
    background-image: url('/common/img/image-paste.png');
    background-size: 80px;
    background-repeat: no-repeat;
    background-position: center;
    background-position-y: calc(50% - 30px);
}


.wfs-image-clear-btn {
    position: absolute;
    top: calc(50% - 38px);
    left: calc(50% - 28px);
    color: #ffbd74;
    background-color: rgb(255 255 255 / 0.8);
    padding-right: 12px;
    border: 1px solid #ccc;
    font-size: 40px;
    padding-right: 12px;
    cursor: pointer;
    display: none;
    border-radius: 50%;
    width: 58px;
    padding-left: 16px;
}

.wfs-image-clear-btn:hover {
    color: #fdaa4e;
}


.wfs-image-paste-btn {
    display: none;
    border: 1px solid black;
    border-radius: 3px;
    padding: 6px;
    text-align: center
    background-color: #fdaa4e;
    color: white;
    height: 31px;
    cursor: pointer;
}

.wfs-image-analyse-error {
    display: none;
}

.wfs-image-analyse-canvas-container.wfs-analyse-error .wfs-image-analyse-error {
    display: inline-block;
    position: absolute;
    bottom: 5%;
    font-size: 12px;
    left: calc(50% - 110px);
    width: 220px;
    text-align: center;
    color: #a94442;
}

.wfs-image-analyse-canvas-container.wfs-analyse-success .wfs-image-analyse-control,
.wfs-image-analyse-canvas-container.wfs-analyse-pending .wfs-image-analyse-control {
    background: none;
}


.wfs-image-analyse-control .wfs-image-paste-btn {
    position: absolute;
    top: calc(50% + 30px);
    left: calc(50% - 30px);
    width: 60px;
    display: inline-block;
    background-color: #ffbd74;
    text-align: center;
    border-color: white;
    border-radius: 4px;
}

.wfs-image-analyse-control .wfs-image-clear-btn > i {
    font-style: normal;
}

.wfs-image-analyse-canvas-container.wfs-analyse-success .wfs-image-analyse-control .wfs-image-paste-btn,
.wfs-image-analyse-canvas-container.wfs-analyse-pending .wfs-image-analyse-control .wfs-image-paste-btn {
    display: none;
}

.wfs-image-analyse-canvas-container.wfs-analyse-success:hover .wfs-image-analyse-control .wfs-image-clear-btn {
    display: block;
}

.wfs-image-analyse-canvas-container.wfs-analyse-pending:hover .wfs-image-analyse-control .wfs-image-clear-btn {
    display: none;
}

.wfs-image-analyse-canvas-inner-container {
    width: 100%;
}

.wfs-image-analyse-canvas-thumbnail {
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.wfs-image-analyse-canvas {
    display: none;
}

.wfs-image-analyse-control .wfs-image-paste-btn:hover {
    background-color: #fdaa4e;
}

.wfs-image-analyse-canvas-container.wfs-analyse-pending .wfs-image-analyse-loading {
    position: absolute;
    left: calc(50% - 30px);
    top: calc(50% - 30px);
    height: 60px;
    width: 60px;
    margin: 0px auto;
    -webkit-animation: wfs-image-analyse-rotation 1.6s infinite linear;
    -moz-animation: wfs-image-analyse-rotation 1.6s infinite linear;
    -o-animation: wfs-image-analyse-rotation 1.6s infinite linear;
    animation: wfs-image-analyse-rotation 1.6s infinite linear;
    border-left: 6px solid rgba(253,170,78,.3);
    border-right: 6px solid rgba(253,170,78,.3);
    border-bottom: 6px solid rgba(253,170,78,.3);
    border-top: 6px solid rgba(253,170,78,1);
    border-radius: 100%;
}

@-webkit-keyframes wfs-image-analyse-rotation {
    from {-webkit-transform: rotate(0deg);}
    to {-webkit-transform: rotate(359deg);}
}
@-moz-keyframes wfs-image-analyse-rotation {
    from {-moz-transform: rotate(0deg);}
    to {-moz-transform: rotate(359deg);}
}
@-o-keyframes wfs-image-analyse-rotation {
    from {-o-transform: rotate(0deg);}
    to {-o-transform: rotate(359deg);}
}
@keyframes wfs-image-analyse-rotation {
    from {transform: rotate(0deg);}
    to {transform: rotate(359deg);}
}

.wfs-copy-button-container {
    display: flex;
    /*justify-content: space-between;*/
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}

.wfs-copy-button-container > [wfs-field-type], .wfs-copy-button-container > .wfs-input-field {
    flex: 1;
}

.wfs-copy-button {
    height: 34px;
    color: #555555;
    background-color: #eeeeee;
    border-color: #ccc;
}

.wfs-copy-hover > [wfs-field-type], .wfs-copy-hover > .wfs-input-field {
    outline: 1px dashed #ccc;
    background-color: #eee;
}