@media print {
    font-size: 11px;
    tr.row-question,
    div.question {
        page-break-inside: avoid;
    }
}

html, body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    padding: 0;
    margin: 0;
}

#container {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

header {
    border-bottom: 3px solid #121c5e;
    position: fixed;
    height: 100px;
    width: 100%;
    z-index: 1;
}

header #visual {
    display: none;
}

header #custom-logo img {
    max-height: 100px;
    width: auto;
}

main {
    display: flex;
    top: 100px;
    bottom: 60px;
    justify-content: center;
    position: fixed;
    width: 100%;
}

footer {
    background-color: #3e8cea;
    height: 60px;
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
}

div#progress-holder {
    padding: 0 5px;
    width: 50%;
}

div#progress-bar {
    background-color: #fff;
    border-radius: .25em;
    display: inline-block;
    left: 50%;
    margin: 10px -25% 10px -25%;
    height: 40px;
    width: 50%;
    position: absolute;
}

div#progress-indicator {
    background-color: #82D9a8;
    border-radius: .25em 0 0 .25em;
    height: 100%;
}

div#progress-indicator span {
    color: #fff;
    height: 40px;
    line-height: 1.6rem;
    font-size: 1.4rem;
    padding: 5px;
    display: inline-block;
    font-weight: bold;
    width: 100%;
    text-align: center;
    text-shadow: 2px 2px 1px #000;
}

#logo {
    height: 80px;
    left: 50%;
    margin-left: -25%;
    margin-top: 10px;
    position: absolute;
}

#logo img {
    max-height: 100%;
    width: auto;
}

#logo img {
    width: 100%;
}

.button-action {
    border: none;
    background: none;
    color: #fff;
    font-size: 1.8rem;
    padding: .35em 2em;
}

.button-action:hover {
    background-color: #82D9a8;
    cursor: pointer;
}

#action-close,
#action-next {
    position: absolute;
    right: 0;
}

sidebar#alert-test {
    background-color: #3e8cea;
    opacity: .80;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

sidebar#alert-test p {
    color: #fff;
    font-size: .8em;
    font-weight: bold;
    margin: 0;
    padding: .25em 0;
    text-align: center;
    text-shadow: 0 0 .25em #000;
}

form {
    border: 3px solid #121c5e;
    border-radius: 1em;
    margin: 1em;
    padding: 1em;
    min-width: 720px;
    width: 80%;
    max-width: 1280px;
    overflow-y: auto;
    overflow-x: hidden;
}

.question {
    border-bottom: 2px solid #3e8cea;
    padding: .5em .5em 1em;
    margin-bottom: 1em;
    overflow-x: auto;
}

.question .lead {}

.question th {
    font-weight: normal;
    text-align: left;
}

.question td {
    text-align: center;
}

.question thead td {
    border-bottom: 2px solid #121c5e;
}

.question input[type=text],
.question-open textarea {
    border: 2px solid #121c5e;
    padding: .5em;
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
    border-radius: .25em;
    width: 80%;
}

.question .field-row input.text-an {
    width: 50%;
}

.question-open textarea {
    height: 6em;
}

div.choices {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

div.choices > .field-row {
    padding: 0 .5em .5em;
}

ul.choices {
    list-style: none;
    padding: 0;
}

ul.choices li {
    list-style: none;
    padding: 0 0 .5em;
}

.field-row {
    position: relative;
}

.question-multiplechoice .field-row label,
.question-singlechoice .field-row label,
.question-singlechoiceopen .field-row label {
    display: inline-block;
    margin-left: 2em;
}

.field-row input[type="checkbox"],
.field-row input[type="radio"] {
    cursor: pointer;
    height: 0;
    position: absolute;
    opacity: 0;
    width: 0;
}

.field-row label {
    margin-left: 2em;
}

.checkmark,
.radiomark {
    border: 2px solid #121c5e;
    background-color: #ffffff;
    border-radius: .25em;
    height: 25px;
    left: 0;
    position: absolute;
    top: 0;
    width: 25px;
}

.radiomark {
    border-radius: 1em;
}

.question-matrix .checkmark,
.question-likert .radiomark,
.question-semantic .radiomark {
    margin-left: -12px;
    left: 50%;
}

.question-likert .radiomark,
.question-semantic .radiomark {
    top: 50%;
    transform: translate(0, -50%);
}

.question-smiley .radiomark {
    top: 0;
    left: 0.5em;
    transform: unset;
}

.field-row:hover input ~ .checkmark,
.field-row:hover input ~ .radiomark {
    background-color: #ccc;
}

.checkmark:after,
.radiomark:after {
    content: "";
    display: none;
    position: absolute;
}

.field-row input:checked ~ .checkmark:after,
.field-row input:checked ~ .radiomark:after {
    display: block;
}

.field-row .checkmark:after,
.field-row .radiomark:after {
    border: solid #82D9a8;
    border-width: 0 3px 3px 0;
    left: 8px;
    height: 12px;
    transform: rotate(45deg);
    top: 4px;
    width: 6px;
}

.question-matrix .field-row .checkmark:after,
.question-likert .field-row .radiomark:after,
.question-semantic .field-row .radiomark:after {
    border: solid #82D9a8;
    border-width: 0 3px 3px 0;
    left: 50%;
    margin-left: -4px;
    height: 12px;
    transform: rotate(45deg);
    top: 4px;
    width: 6px;
}

.question input[type=text].open-numeric {
    width: 5%;
    min-width: 100px;
    text-align: right;
}

.question-total span.total-sum {
    text-align: right;
    display: inline-block;
    width: 5%;
    min-width: 100px;
}

.question-smiley ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

.question-smiley ul li:hover,
.question-smiley ul li img:hover {
    cursor: pointer;
}

.question input.text-an:disabled {
    display: none;
}

.question-semantic th.label-left {
    text-align: right;
}

.priority-wrapper {
    display: flex;
    flex-direction: row;
}

.priority-box {
    border: 2px solid #ccc;
    box-sizing: border-box;
    border-radius: .25em;
    width: 50%;
    margin: 1em;
    min-height: 3em;
}

.priority-item {
    background-color: #eee;
    border: 2px solid #999;
    border-radius: .25em;
    box-sizing: border-box;
    margin: .25em;
    padding: .25em;
    cursor: pointer;
}

.checked-bg {
    background-color: #82D9a8;
}

.attribute {
    border-bottom: unset;
}

.attribute > h3 {
    width: 100%;
    text-align: center;
    margin-top: unset;
}

.attribute .choices .field-row > label {
    display: inline-block;
    width: 20%;
}

.slider-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

.slider-block {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.slider-label {
    width: auto;
    max-width: 16%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.slider-inputs {
    width: 84%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.slider-handler-wrapper {
    width: 75%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.slider-handler-wrapper span:first-of-type {
    text-align: right;
    padding-right: 1em;
}

.slider-handler-wrapper span:last-of-type {
    text-align: left;
    padding-left: 1em;
}

.slider-handler {
    width: 80%;
}

.slider-handler-wrapper .slider-handler span {
    padding: unset;
}

.slider-input {
    width: 25%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.slider-input label {
    position: relative;
    margin-left: 10px;
}

.slider-input .checkmark {
    height: 18px;
    width: 18px;
    top: 4px;
}

.slider-input .checkmark:after {
    border: solid #82D9a8;
    border-width: 0 3px 3px 0;
    left: 5px;
    height: 11px;
    transform: rotate(45deg);
    top: 0;
    width: 5px;
}

.slider-input input:checked ~ .checkmark:after {
    display: block;
}

.priority-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}

.priority-label {
    margin-right: 2em;
    text-align: right;
}

.priority-label-mob {
    width: 100%;
    text-align: right;
    display: none;
}

.priority-label-mob:first-of-type {
    margin-top: 1em;
}

.priority-widget {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.priority-widget .draggable {
    background-color: #ccc;
    border-radius: .25em;
    box-sizing: border-box;
    cursor: pointer;
    padding: .25em;
    margin: .25em 0;
}

.priority-divider {
    width: 5%;
}

.priority-draggables {
    border: 2px solid #999;
    border-radius: .25em;
    box-sizing: border-box;
    padding: .5em;
    width: 45%;
}

.priority-box-wrapper {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 1em;
}

.priority-droppable {
    border: 2px solid #999;
    border-radius: .25em;
    box-sizing: border-box;
    padding: .5em;
    width: 100%;
    margin: unset;
}

.priority-buttons {
    width: 10%;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.priority-buttons a {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    background-color: #ccc;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    color: #333333;
    cursor: pointer;
}

.priority-buttons a:first-of-type {
    margin-bottom: 20px;
}

.priority-item.selected-item {
    background-color: #ffffff;
    border-color: #333333;
}

.table-responsive {
    overflow-y: hidden !important;
    padding: 0 0 10px;
}
.table-responsive::-webkit-scrollbar {
    height: 4px;
    margin-top: 5px;
}
.table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 2px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #333333;
    border-radius: 2px;
}

#auth-container {
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: scroll;
}

#auth-container section {
    box-sizing: border-box;
    margin: 0 0 1rem;
    max-width: 960px;
    width: 80%;
}

#auth-container form {
    box-sizing: border-box;
    margin: 0;
    width: 100%;
}

@media screen and (max-width: 1350px) {
    .slider-label {
        width: auto;
        max-width: 20%;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
    }

    .slider-inputs {
        width: 80%;
        height: auto;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .slider-handler-wrapper {
        width: 65%;
        height: auto;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .slider-handler {
        width: 70%;
    }

    .slider-input {
        width: 35%;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
}

@media screen and (max-width: 1023px) {
    .slider-block {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .slider-label {
        width: auto;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 5px;
    }

    .slider-inputs {
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .slider-handler-wrapper {
        width: 65%;
        height: auto;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .slider-handler {
        width: 70%;
    }

    .slider-input {
        width: 35%;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }
}

@media screen and (max-width: 768px) {
    header {
        height: 80px;
    }

    header #custom-logo img {
        max-height: 80px;
    }

    #logo {
        height: 60px;
        left: 40%;
        /*margin-left: -25%;*/
        /*margin-top: 10px;*/
        /*position: absolute;*/
    }

    main {
        top: 80px;
        bottom: 60px;
    }

    main > h1 {
        text-align: center;
    }

    form {
        min-width: unset;
        width: 100%;
        max-width: unset;
    }

    footer {
        height: 60px;
    }

    .question input[type=text],
    .question-open textarea {
        font-size: 1rem;
    }

    select.question-dropdown {
        font-size: 1rem;
        color: #333333;
    }

    .slider-handler-wrapper {
        width: 50%;
        height: auto;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .slider-handler {
        width: 65%;
    }

    .slider-input {
        width: 50%;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    div#progress-holder {
        position: relative;
    }

    div#progress-bar {
        width: 100%;
        margin: 10px 0;
        transform: translate(-50%, 0);
    }

    .button-action {
        padding: 0 20px;
        height: 100%;
    }
}

@media screen and (max-width: 576px) {
    header {
        height: 60px;
    }

    header #custom-logo img {
        max-height: 60px;
    }

    #logo {
        height: 50px;
        left: 50%;
        margin-top: 5px;
    }

    #logo img {
        width: auto;
        max-height: 100%;
    }

    main {
        top: 60px;
        bottom: 60px;
    }

    main > h1 {
        text-align: center;
        margin: 0 20px;
    }

    form#intaketoken {
        width: 100%!important;
        height: auto!important;
    }

    form {
        border: none;
        min-width: unset;
        width: 100%;
        max-width: unset;
        margin: unset;
        padding: 0 1em;
        box-sizing: border-box;
    }

    .question input[type=text],
    .question-open textarea {
        width: 100%!important;
        font-size: 1rem;
    }

    .question input[type=text].open-numeric {
        width: 5%!important;
        min-width: 100px;
    }

    .question .field-row input.text-an {
        margin-top: 10px;
    }

    select.question-dropdown {
        font-size: 1rem;
        color: #333333;
    }

    .priority-wrapper .priority-widget {
        flex-direction: column;
    }

    .priority-wrapper .priority-draggables,
    .priority-wrapper .priority-droppable {
        width: 100%;
        margin-left: unset;
        margin-right: unset;
    }

    .priority-wrapper .priority-droppable {
        margin-top: 1em;
        margin-bottom: 1em;
    }

    .priority-wrapper .priority-box-wrapper {
        width: 100%;
        margin-left: unset;
        margin-right: unset;
        margin: unset;
    }

    .priority-wrapper .priority-buttons {
        width: 100%;
        flex-direction: row;
    }

    .priority-wrapper .priority-buttons > a {
        transform: rotate(90deg);
    }

    .priority-wrapper .priority-buttons > a:first-of-type {
        margin-bottom: 0;
        margin-right: 20px;
    }

    .priority-wrapper .priority-label {
        display: none;
    }

    .priority-wrapper .priority-label-mob {
        display: block;
    }

    .slider-block {
        margin-bottom: 20px;
    }

    .slider-label {
        margin-bottom: 10px;
    }

    .slider-inputs {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .slider-handler-wrapper {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }

    .slider-handler {
        width: 70%;
    }

    .slider-input {
        width: 100%;
        justify-content: center;
    }

    div.choices > .field-row img {
        max-width: 100px;
    }

    footer {
        height: 60px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    #action-close, #action-previous, #action-next  {
        position: relative;
    }

    #action-previous {
        margin-right: auto;
    }

    #action-next {
        margin-left: auto;
    }

    div#progress-holder {
        position: relative;
        margin: 0 auto 0;
    }

    div#progress-bar {
        width: 100%;
        margin: 10px 0;
        transform: translate(-50%, 0);
    }

    .button-action {
        font-size: 0;
        padding: 0 20px;
        height: 100%;
    }

    .button-action > i {
        font-size: 1.8rem;
    }

    #auth-container p {
        font-size: .9rem;
    }

    #auth-container form {
        padding: 0;
    }
}

@media screen and (max-height: 576px) and (orientation: landscape) {
    header {
        height: 60px;
        background-color: white;
    }

    header #custom-logo img {
        max-height: 60px;
    }

    #logo {
        height: 50px;
        left: 40%;
        /*margin-left: -25%;*/
        margin-top: 5px;
        /*position: absolute;*/
    }

    #logo img {
        width: auto;
        max-height: 100%;
    }

    main {
        top: 60px;
        bottom: 60px;
    }

    main > h1 {
        text-align: center;
        margin: 0 20px;
    }

    form#intaketoken {
        width: 100%!important;
        height: 100%!important;
        padding: 60px 0 20px;
    }

    form#intaketoken div.flash {
        margin-top: 60px;
    }

    form {
        border: none;
        min-width: unset;
        width: 100%;
        max-width: unset;
        margin: unset;
        padding: 0 1em;
        box-sizing: border-box;
    }

    .question input[type=text],
    .question-open textarea {
        width: 80%!important;
        font-size: 1rem;
    }

    .question input[type=text].open-numeric {
        width: 5%!important;
        min-width: 100px;
    }

    .question .field-row input.text-an {
        margin-top: 10px;
    }

    select.question-dropdown {
        font-size: 1rem;
        color: #333333;
    }

    footer {
        height: 60px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    #action-close, #action-previous, #action-next  {
        position: relative;
    }

    #action-previous {
        margin-right: auto;
    }

    #action-next {
        margin-left: auto;
    }

    div#progress-holder {
        position: relative;
        margin: 0 auto 0;
    }

    div#progress-bar {
        width: 100%;
        margin: 10px 0;
        transform: translate(-50%, 0);
    }

    .button-action {
        font-size: 0;
        padding: 0 20px;
        height: 100%;
    }

    .button-action > i {
        font-size: 1.8rem;
    }
}

#map {
    border: .05em solid #fff;
    border-radius: .5em;
    box-shadow: 0 .25em .5em #000;
    box-sizing: border-box;
    height: 50vh;
    width: 100%;
}

.new-comment {
    border: 2px solid #121c5e;
    border-radius: .25em;
    padding: .25em;
    margin-bottom: 1em;
    width: 320px;
}

.new-comment:focus {
    border-color: #121c5e;
}

.save-comment {
    background-color: #121c5e;
    border: .25em solid #121c5e;
    border-radius: .25em;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 0 1em;
    cursor: pointer;
}

.save-comment:hover {
    background-color: orangered;
    border-color: orangered;
}
