
@import url('webfont/jura.css');

.noSelect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Chrome/Safari/Opera */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  not supported by any browser */
}

body.noScroll {

    overflow: hidden;
}


/*****************************/
/*    Custom UI Elements     */
/*****************************/

/* ------------ Popup Editor Things --------- */

#ar_popupEditor {
    display: none;
    width: 1100px;
    height: 90vh;
    position: fixed;
    top: 5vh;
    left: initial;
    z-index: 100;
    box-sizing: border-box;
    padding: 25px;
    background: #eeedeb;
    border-radius: 15px;
    border: 2px solid black;
    box-shadow: 3px 3px 5px #222;
    overflow: auto;
    text-align: center;
}

#ar_popupEditor div {
    font-family: Arial, Helvetica, sans-serif;
}

#main.wide #ar_popupEditor {
    left: 13vw;
}

#ar_fullScreenGrayout {

    display:none;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    background-color:rgba(0,0,0,0.3);
    cursor: alias;
}

#ar_popupEditor h2 {
    font-size: 1.7em;
    font-weight: 600;
}


/* ------------ FORM STYLES --------------- */

label {
    display: block;
    width: 100%;
    text-align: left;
    color: #999;
    border-bottom: 1px solid #ccc;
    margin-top: 20px;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-size: 0.8em;
    clear: both;
}

label span.alert {

    float: right;
    text-align: right;
    font-style: italic;
    color: red;
}

input, textarea, select {
    display: block;
    border-radius: 5px;
    width: 100%;
    margin-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
    box-shadow: 1px 1px 5px #c7c7c7;
}

input {
    font-size: 1.1em;
    line-height: 30px;
}

input[type="date"], input[type="time"] {
    font-size: 1.5em;
}

textarea {
    line-height: 20px;
    font-size: 0.9em;
    min-height: 200px;
    border: 2px inset #eeedeb;
    resize: none;
}

input[type="submit"] {
    width: 80%;
    margin: 50px auto auto;
    background: rgb(200,200,200);
    text-transform: uppercase;
    color: #999999;
}

input[type="submit"].ready {

    cursor: pointer;
    color: black;

    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#adcef7+0,7aa3cc+95 */
    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#aafaba+0,6adc7b+95 */
    background: rgb(170,250,186); /* Old browsers */
    background: -moz-linear-gradient(top,  rgba(170,250,186,1) 0%, rgba(106,220,123,1) 95%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  rgba(170,250,186,1) 0%,rgba(106,220,123,1) 95%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  rgba(170,250,186,1) 0%,rgba(106,220,123,1) 95%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#aafaba', endColorstr='#6adc7b',GradientType=0 ); /* IE6-9 */

}

input[type="submit"].ready:hover {

    border-color: #2cde2c;
}

input[type="submit"].always {

    color: black;
    cursor: pointer;
    background: rgb(173,206,247);
    background: -moz-linear-gradient(top, rgba(173,206,247,1) 0%, rgba(122,163,204,1) 95%);
    background: -webkit-linear-gradient(top, rgba(173,206,247,1) 0%,rgba(122,163,204,1) 95%);
    background: linear-gradient(to bottom, rgba(173,206,247,1) 0%,rgba(122,163,204,1) 95%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#adcef7', endColorstr='#7aa3cc',GradientType=0 );
}

input[disabled], textarea[disabled] {
    color: #bbbbbb;
}

input[disabled].highlight {
    color: #f07575;
}

input[disabled].activateable {
    cursor: e-resize;
}

input.deleteButton {
    width: 250px;
    margin: 35px auto auto;
    background-color: rgb(228, 140, 140);
    text-transform: uppercase;
    font-size: 1em;
    font-weight: 200;
    cursor: pointer;
}

select {

    line-height: 35px;
    height: 35px;
    background-color: white;
    font-size: 1.1em;
}

.popupClose {
    position: absolute;
    top: 10px;
    right: 10px;
    text-transform: uppercase;
    font-size: 0.9em;
    padding: 5px;
    color: #777;
}

.popupClose:hover {

    color: black;
    cursor: pointer;
}

span.delete {
    height: 30px;
    display: block;
    background: url('image/icon_delete.png') no-repeat center left;
    background-size: 20px;
    padding-left: 25px;
    text-transform: uppercase;
    font-size: 0.8em;
    font-style: oblique;
    opacity: 0.5;
}

span.delete:hover {
    opacity: 1;
}

.requiredMissing {
    background-color: rgba(255,0,0,0.2);
}

.error {
    color: rgba(255,0,0,0.5);
}

span.validation_error {
    display: block;
    text-align: left;
    font-weight: bold;
}

.field_validation_error {
    /*background-color: rgba(255,40,20,0.1);*/
    box-shadow: 0 0 8px 9px rgba(255,40,20,0.1);
}

.form_freeText {
    width: 80%;
    margin: 40px auto auto;
    font-family: Jura,sans-serif;
    font-size: 1.2em;
}

.fieldTooltip {
    text-align: left;
    padding-left: 30px;
    color: gray;
    font-style: oblique;
    background: url(image/swoop_arrow.png) no-repeat 5px;
    background-size: contain;
    height: 30px;
}

input.halfWidth {
    width: 49%;
    float: left;
    clear: both;
    margin-bottom: 20px;
}

label.halfWidth {
    width: 49%;
    float: left;
    clear: none;
    margin-top: 10px;
}

label.halfWidth.alt {
    float: right;
    margin-top: -21px;
}

input.alt.halfWidth {
    float: right;
    clear: none;
}


/* -------- AR Custom - General --------- */

div.radio, div.imageField, div.formImageViewer, div.bigFileUpload, div.form_listBox, div.form_comboBoxContainer {
    display: block;
    border-radius: 5px;
    width: 100%;
    margin-bottom: 10px;
    padding-left: 5px;
    padding-right: 5px;
    box-shadow: 1px 1px 5px #c7c7c7;
}


/* -------- AR ListBox --------- */

div.form_listBox {
    display: table;
    border-collapse: collapse;
    box-sizing: border-box;
    min-height: 150px;
    background: white;
    border: 1px solid #aaa;
}

.listBox_row {
    position: relative;
    display: table-row;
    width: 100%;
    border-bottom: 1px solid #ccc;
    line-height: 25px;
    height: 25px;
}

.listBox_row div {
    display: table-cell;
    text-align: left;
    padding-left: 3px;
    padding-right: 3px;
}

.listBox_removeItem, .listBox_editItem {
    color: #999;
    width: 100px;
    font-size: 0.8em;
    text-align: right!important;
}

.listBox_removeItem:hover, .listBox_editItem:hover {
    color: #000;
    cursor: pointer;
}

.listBox_addItem {
    line-height: 30px;
    height: 30px;
    background: #c4f5c4;
    width: 60%;
    margin: 5px auto;
    border: 1px solid #aaa;
    border-radius: 5px;
    box-shadow: 2px 2px 4px #aaa;
    text-transform: uppercase;
    font-size: 0.8em;
    color: #666;
}

.listBox_addItem:hover {
    color: black;
    border-color: black;
    cursor: pointer;
}

.listBox_itemRemoved {
    color: #ccc;
    text-decoration: line-through;
}

.listBox_selectable {
    cursor: pointer;
}

.listBox_selectable:hover {
    background-color: #F0F5FF;
}


/* -------- AR DateTime --------- */

.dateTimeActivator {
    background: url(image/icon_unlock.png) center center no-repeat;
    background-size: 25px;
    height: 30px;
    width: 30px;
    position: absolute;
    top: 3px;
    right: 2px;
    cursor: pointer;
}

.form_dateTimeContainer {
    position: relative;
    display: flex;
}

.form_dateTimeContainer input {
    width: 48%;
    flex-grow: 1;
}

.form_dateTimeContainer input:last-of-type {
    margin-left: 5px;
}


/* -------- AR Radio --------- */

div.radio {
    background: white;
    border: 2px inset #eeedeb;
    height: 36px;
    display: flex;
    display: -webkit-flex;
    padding: 0;
    justify-content: space-around;
    -webkit-justify-content: space-around;
}

.radioChoice {

    height: 38px;
    max-width: 525px;
    position: relative;
    top: -1px;
    box-sizing: border-box;
    line-height: 38px;
    flex-grow: 1;
    -webkit-flex-grow: 1;
    cursor: pointer;
    padding-left: 10px;
    text-transform: uppercase;
    font-size: 0.9em;
    border-right: 2px inset #eeedeb;
    color: #999;

    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#f4f4f4+0,cccccc+95 */
    background: #f4f4f4; /* Old browsers */
    background: -moz-linear-gradient(top,  #f4f4f4 0%, #cccccc 95%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  #f4f4f4 0%,#cccccc 95%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  #f4f4f4 0%,#cccccc 95%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f4f4f4', endColorstr='#cccccc',GradientType=0 ); /* IE6-9 */

}

.radioChoice:last-of-type {
    border-right: none;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.radioChoice:nth-child(1) {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.radioChoice:nth-of-type(1):last-of-type {

    max-width: none;
}

.radioChoice.selected {

    /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#adcef7+0,7aa3cc+95 */
    background: #adcef7; /* Old browsers */
    background: -moz-linear-gradient(top,  #adcef7 0%, #7aa3cc 95%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  #adcef7 0%,#7aa3cc 95%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  #adcef7 0%,#7aa3cc 95%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#adcef7', endColorstr='#7aa3cc',GradientType=0 ); /* IE6-9 */

    color: black;
    font-weight: bold;
}

span.radioChoiceCheck {

    display: inline-block;
    width: 29px;
    height: 29px;
    position: absolute;
    left: 10px;
    top: 4px;
    background: url('image/icon_check.png') no-repeat center center;
    background-size: 28px;
}


/* -------- AR ImageField / BigFileUploader --------- */

/*noinspection CssOptimizeSimilarProperties*/
div.formImageViewer {
    width: 100%;
    height: 620px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: rgb(125,125,130);
    border: 2px solid #333;
    box-sizing: border-box;
}

div.imageField {

    background: white;
    border: 2px inset #eeedeb;
    height: 100px;
    width: 47%;
    display: inline-flex;
    display: -webkit-inline-flex;
    justify-content: center;
    -webkit-justify-content: center;
    vertical-align: top;
}

div.imageField:first-of-type {

    margin-left: 0;
    margin-right: 2.5%;
}

div.imageField.prompt, div.bigFileUpload.prompt {

    background: white url('image/file_prompt.png') no-repeat center center;
    cursor: pointer;
}

div.imageField.over, div.bigFileUpload.over {

    border: 6px dashed limegreen;
}

div.bigFileUpload {
    background: white;
    height: 400px;
    box-sizing: border-box;
    border: 1px solid #aaa;
    overflow-y: auto;
}

.imageField .dz-preview {
    display: inline;
    position: relative;
    top: 2px;
    overflow: hidden;
    width: 400px;
    height: 96px;
    border: 1px solid #aaa;
    border-radius: 5px;
    background: #eeedeb;
}

.imageField .dz-file-preview {
    background: url('image/icon_file.png') #edebec no-repeat 25px -15px;
    background-size: 120px;
}

.imageField .dz-image {
    width: 40%;
    height: 95%;
    position: relative;
    top: 2px;
    border-right: 1px dashed #ccc;
    display: flex;
    justify-content: center;
    float: left;
}

.imageField .dz-image img {
    object-fit: contain;
}

.imageField .dz-details {
    display: inline-block;
    width: 57%;
    float: right;
    margin: 5px;
}

.imageField .dz-details .removeFile {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 0.8em;
    text-transform: uppercase;
    color: #888;
}

.imageField .dz-details .removeFile:hover {
    color: black;
    text-decoration: underline;
    cursor: pointer;
}

.imageField .dz-progress {
    display: none;
    height: 10px;
    background-color: rgba(159, 195, 236, 0.9);
    border-radius: 5px;
    border: 1px solid black;
    width: 95%;
    max-width: 95%;
    position: absolute;
    bottom: 10px;
    left: 2.5%;
}

.imageField .dz-error-mark, .dz-success-mark, .dz-error-message {
    display: none;
}

.bigFileUpload .dz-preview {
    border: 1px solid #aaa;
    padding: 5px;
    border-radius: 5px;
    background: #ebedec;
    width: 140px !important;
    min-height: 200px;
    vertical-align: top;
}

.bigFileUpload .dz-error-message {
    font-size: 0.7em;
    text-transform: uppercase;
    margin-top: 6px;
}

.bigFileUpload .dz-filename {
    font-size: 0.8em;
}

.bigFileUpload .dz-file-preview .dz-image {
    height: 120px;
    border: 1px solid #ddd;
    background: url('image/icon_file.png') no-repeat center center;
    background-size: contain;
    opacity: 0.5;
}

.bigFileUpload a.dz-remove:hover {
    opacity: 0.8;
}

.bigFileUpload a.dz-remove {
    position: absolute;
    font-size: 0;
    background: url('image/icon_delete.png') no-repeat center center;
    background-size: contain;
    height: 25px;
    width: 25px;
    top: 0;
    right: 0;
    opacity: 0.5;
}

.bigFileUpload .dz-success-mark.dz-deferred {
    background-size: contain;
    background: url('image/icon_deferred.png') no-repeat center center;
}

.dz-error-mark path {
    fill: #ff7777;
}

.bigFileUpload.dropzone .dz-preview div.dz-progress {
    min-width: 100%;
    max-width: 100%;
    margin-top: 10px;
    display: none;
}


/* -------- AR ComboBox --------- */

div.ar_combo_container {
    position: relative;
    background: white;
    height: 36px;
}

.ar_combo_tokenField {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.ar_combo_tokenField div {
    background: #c7e3ff;
    border: 2px solid #999;
    display: inline-block;
    box-sizing: border-box;
    margin: 3px;
    padding: 3px;
    max-width: 190px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 3px;
}

.ar_combo_tokenField div::before {
    content: "X";
    margin-left: 2px;
    margin-right: 4px;
    color: darkgray;
}

.ar_combo_tokenField div:hover::before {
    cursor: pointer;
    color: black;
}

input.ar_combo_entryField {
    z-index: 2;
    position: relative;
    background: none;
    text-indent: calc(273px + 0px);
}

.ar_combo_pickerPopup {
    display: none;
    min-height: 200px;
    background: blue;
    position: absolute;
    width: 100%;
    z-index: 2;
}

/*****************************/
/*         FKEYUtil          */
/*****************************/

span.FKeyLink {
    float: right;
    border: 1px solid #ccc;
    height: 20px;
    padding: 0 3px 1px;
    position: relative;
    top: -1px;
    font-size: 0.8em;
}


/*****************************/
/*          Dialog           */
/*****************************/

.ar_dialog_grayout {

    display:none;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 500;
    background-color:rgba(0,0,0,0.7);
    cursor: not-allowed;
}

.ar_dialog {

    display: none;
    height: 250px;
    width: 50vw;
    position: fixed;
    top: 10%;
    left: 25vw;
    z-index: 501;
    background-color: #eeedeb;
    border-radius: 15px;
    border: 3px solid #333;
    box-shadow: 3px 3px 4px #272727;
}

.ar_dialog_choice {

    display: inline-block;
    width: 100px;
    height: 45px;
    line-height: 45px;
    border: 1px solid #aaa;
    background: gray;
    cursor: pointer;
}

.ar_dialog_choice {
    display: inline-block;
    width: 160px;
    height: 45px;
    line-height: 45px;
    margin: 15px;
    border: 3px outset #999;
    border-radius: 9px;
    background: #F0F5FF;
    cursor: pointer;
    text-transform: uppercase;
}

.ar_dialog_choice.default {

    border-color: lightblue;
}

.ar_dialog p {
    margin: 25px;
    font-size: 0.9em;
    text-transform: uppercase;
    font-style: oblique;
}

.ar_dialog h3 {
    font-size: 1.2em;
    border-bottom: 1px solid black;
    margin: 20px;
    text-align: left;
}


/*****************************/
/*         AJAX UI           */
/*****************************/

#ui_ajax_loading {

    display: none;
    width: 50px;
    height: 25px;
    position: fixed;
    right: 0;
    top: 10px;
    z-index: 5001;
    background: url('image/ajax-loader.gif') no-repeat center;
    background-size: contain;
}

#ui_ajax_success, #ui_ajax_fail {

    display: none;
    width: 20px;
    height: 20px;
    position: fixed;
    right: 40px;
    top: 13px;
    z-index: 5001;
    background-color: rgba(102, 217, 255, 0.5);
    border-radius: 10px;
}

#ui_ajax_fail {

    background-color: red;
    z-index: 5001;
}

#ui_ajax_updated {

    display: none;
    background: url('image/updated.png') no-repeat;
    background-size: contain;
    width: 190px;
    height: 60px;
    position: fixed;
    right: 10px;
    top: 95px;
    z-index: 5000;
}

#messageBox {
    display: none;
    position: fixed;
    width: 60vw;
    height: 50px;
    bottom: 30px;
    left: 20vw;
    z-index: 5000;
    background: rgba(200, 200, 200, 0.85) url('image/icon_error.png') no-repeat 98%;
    background-size: 40px;
    border-radius: 10px;
    border: 2px solid #000000;
}

#messageBox_text {
    display: inline-block;
    font-family: Jura, sans-serif;
    font-size:1.2em;
    line-height: 25px;
    vertical-align: middle;
}

