﻿body {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

.panel-body .row {
    margin-right: 0;
    margin-left: 0;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
input,
select,
textarea {
    max-width: 280px;
}

.clickable {
    cursor: pointer;
}

/**************/
/* Front page */
/**************/

.front-page > div {
    margin-bottom: 1em;
}

.front-page .form-title {
    font-size: 2em;
}

.front-page .organization-name {
    font-size: 1.4em;
}

.language {
    background-color: #dddddd;
}

    .language.selected {
        background-color: #ffffff !important;
        font-weight: bold;
    }

#submit-button[disabled] {
    color: #999;
}

.error-message {
    color: red;
}

/* Privacy statement */

.privacy-statement .modal-title {
    font-size: 1.2em;
    font-weight: bold;
}

.privacy-statement h1 {
    font-size: 1.2em;
    font-weight: bold;
}

.privacy-statement h2 {
    font-size: 1.1em;
    font-weight: bold;
}

.privacy-statement .modal-content {
    padding: 10px;
}


/**************/
/* Form pages */
/**************/

.sidebar-nav {
    margin-left: -15px;
    margin-right: -15px;
}

.form-page-heading {
    display: none;
}

.page-title-buttons {
    display: none;
}

.form-title {
    margin-top: -8px;
}

.form-organization {
    font-size: 12px;
    display: inline-block;
}

/*iPhoneX*/
@media only screen and (min-device-width: 375px) and (max-device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
    .bottom-nav-bar {
        padding-bottom: 10px;
    }
}

img.page-organization-logo {
    height: 70px;
    margin-bottom: 5px;
    height: 2.2em;
    margin-top: 0px;
    margin-right: 10px;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}


/* Page menu */


@media (min-width: 768px) {
    .narrow-page {
        display: none !important;
    }

    .form-page-heading {
        display: table;
        width: 100%;
    }

    .page-title-buttons {
        display: block;
    }

    /* Make page menu navbar vertical */
    .sidebar-nav {
        margin-left: 10px;
        margin-right: 10px;
        min-width: 140px;
    }

        .sidebar-nav .navbar .navbar-collapse {
            padding: 0;
            max-height: none;
        }

        .sidebar-nav .navbar ul {
            float: none;
            display: block;
        }

        .sidebar-nav .navbar li {
            float: none;
            display: block;
        }

            .sidebar-nav .navbar li a {
                padding-top: 12px;
                padding-bottom: 12px;
            }

    img.page-organization-logo {
        height: 4em;
        margin-top: 10px;
        margin-right: 10px;
    }
}

@media (max-width: 770px) {
    table input.form-control {
        max-width: 8em;
    }

    .form-group.disabled {
        display: none;
    }

    .fieldset.disabled {
        display: none;
    }

    .navbar-brand {
        padding-top: 7px;
        padding-bottom: 4px;
        height: auto;
        width: 100%;
    }

    .navbar-toggle {
        margin: 0;
    }

    img.page-organization-logo {
        height: 2.2em;
        margin-top: 0px;
        margin-right: 10px;
    }

    .form-title {
        margin-top: 0;
    }

    .question-title {
        padding-top: 15px;
        margin-bottom: -10px;
    }

    .no-padding-right-side {
        padding-right: 0px;
        margin-left: -17px;
    }

    .text-area-no-padding {
        padding-left: 0px;
        margin-left: 2px !important;
    }
}

@media (max-width: 600px) {
    input.form-control {
        width: 100% !important;
    }

    th {
        font-size: 12px;
    }
}


/* Page header */
.page-form-title {
    font-size: 1.2em;
    font-weight: bold;
}

div.form-title-container {
    display: table-cell;
    width: 100%;
    vertical-align: top;
}

div.page-organization-logo {
    padding-right: 8px;
    display: table-cell;
    vertical-align: top;
}

div.navbar-button-container {
    display: table-cell;
}

.page-title-buttons {
    margin-top: -25px;
}

.page-body {
    position: relative;
}

/* Form fields */

.form-group.no-wrap {
    display: inline-block;
    float: left;
    margin-right: 20px;
    margin-left: 0;
}

.form-group {
    margin-bottom: 5px !important;
}

.form-horizontal .control-label {
    text-align: left;
}

.form-control {
    display: inline-block;
    margin-right: 10px;
    margin-top: 7px;
}

.info-text {
    font-weight: normal;
    padding-left: 15px;
    padding-bottom: 0;
}

.date {
    width: 9em;
}

.norwegian-birth-number {
    width: 12em;
}

.zipcode {
    width: 5em;
}

fieldset.select-radio, fieldset.select-checkbox {
    border: none;
    background-color: inherit;
    margin-left: 0;
    padding: 0;
    display: inline-block;
}

.radio-horizontal {
    float: left;
    margin-top: 7px;
    margin-right: 10px;
}

fieldset.select-radio legend {
    /* display: inline-block; */
}

div.radio {
    padding-left: 20px;
}

textarea.form-control {
    margin-left: 15px;
    width: 90%;
    min-width: 90% !important;
}

span.texarealimit {
    font-size: 0.8em;
}

input.texarealimit {
    font-size: 0.8em;
    margin-bottom: 2px;
}

input.disabled, textarea.disabled {
    background-color: #EEE;
}

.disabled input {
    background-color: #EEE;
}

.disabled label, .disabled legend {
    color: #777;
}

label.option-label {
    font-weight: normal;
}

.disabled label.option-label {
    color: #777;
}

.option-label.label-right {
    float: right;
    padding-right: 30px;
}

.option-label.label-left {
    float: left;
    padding-right: 3px;
}

.smiley-label > input {
    visibility: hidden;
    position: absolute;
}

.smiley-label > input +ul { 
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.75;
}

    .smiley-label > input:checked + ul {
        height: 3em;
        border: 2px solid #000000;
        opacity: 1;
        border-radius: 25px;
    }

.smiley-label .smiley {
    height: 2em;
    width: 2em;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: inline-block;
    vertical-align: middle;
}

.smiley-tired-face {
    background-image: url(../images/smileys/1f627.png);
}

.smiley-confused {
    background-image: url(../images/smileys/2753.png), url(../images/smileys/1f610.png);
}

.smiley-white-frowning-face {
    background-image: url(../images/smileys/1f644.png);
}

.smiley-neutral-face {
    background-image: url(../images/smileys/1f610.png);
}

.smiley-slightly-smiling-face {
    background-image: url(../images/smileys/1f642.png);
}

.smiley-smiley {
    background-image: url(../images/smileys/1f603.png);
}

.smiley-slightly-frowning-face {
    background-image: url(../images/smileys/1f641.png);
}

.smiley-big-smiley {
    background-image: url(../images/smileys/1f606.png);
}


.control-label.disabled {
    color: #777;
}

.disabled .scale-cell {
    color: #777;
}

.add-table-row-button {
    float: right;
}

.table tbody > tr > td.delete-table-row-cell {
    vertical-align: middle;
}

td.column-sum {
    font-weight: bold;
    padding-left: 20px !important;
}

.question-row .info-text {
    vertical-align: middle;
}

.highlighted {
    background-color: #ff7777 !important;
}

.field-help-button {
    margin-left: 0.4em;
    color: #3C5DAF;
    font-size: 16px;
    cursor: pointer;
    /* .glyphicon */
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

    .field-help-button:before {
        /* .glyphicon-info-sign:before */
        content: "\e086";
    }

.field-error-icon {
    margin-left: 0.2em;
    color: #EE0000;
    font-size: 18px;
    cursor: pointer;
    /* .glyphicon */
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

    .field-error-icon:before {
        /* .glyphicon-info-sign:before */
        content: "\e083";
    }

.page-error-icon {
    margin-left: 1px;
    color: #EE0000;
    font-size: 12px;
    cursor: pointer;
    /* .glyphicon */
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}

    .page-error-icon:before {
        /* .glyphicon-info-sign:before */
        content: "\e083";
    }

/*
.field-warning-icon {
    margin-left: 0.2em;
    color: gold;
    font-size: 18px;
    cursor: pointer;

    /* .glyphicon */
/*  position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-weight: normal;
    line-height: 1;    
}*/


/*.field-warning-icon:before {
    content: "\e209";
}*/

.field-warning-icon {
    width: 20px;
    margin-left: 2px;
}

/*.page-warning-icon {
    width: 20px;
    margin-left: 2px;
}*/

/*.page-warning-icon {
    margin-left: 1px;
    color: gold;
    font-size: 12px;
    cursor: pointer;
    /* .glyphicon */
/*  position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
}*/
/*.page-warning-icon:before {
    content: "\e209";
}*/

span.control-label,
legend.control-label {
    border-bottom: none;
    font-size: inherit;
    font-weight: bold;
}

.prefil-indicator {
    font-size: 10px;
    font-weight: normal;
}

/* Override bootstrap fieldset styling */
fieldset {
    padding: .35em .625em .75em;
    margin: 0 2px;
    border: 1px solid #c0c0c0;
    background-color: #fafafa;
}

legend {
    width: auto;
    border: none;
    padding: .2em;
    margin-bottom: auto;
    font-size: 1.2em;
}

.top-align {
    vertical-align: top !important;
}

/* Disable spinner in number fields */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Scale question */
.scale {
    display: table;
    width: 100%;
}

.scale-label-row {
    display: table-row;
}

.scale-option-row {
    display: table-row;
}

.scale-cell {
    float: left;
    padding: 3px;
    text-align: center;
}

    .scale-cell.label-right {
             
        text-align: right;
        padding-right: 10px;
        direction: rtl;
    }

    .scale-cell.label-left {
        text-align:left;
        padding-right: 3px;
        direction: ltr;
    }

    .scale-cell.label-no-answer {
        text-align: center;
        float: right;
        padding-left: 12px;
    }

.scale-cell input[type="radio"] {
    margin-right: 5px;
}


/* Field help */

.help-panel {
    display: none;
    position: absolute;
    width: 300px;
    right: 15px;
    top: 60px;
}

/* Form help */

.form-help .modal-title {
    font-size: 1.2em;
    font-weight: bold;
}

.form-help h1 {
    font-size: 1.2em;
}


/* Attachment upload */
.panel.attachments {
    margin: 20px;
}

.attachment-info {
    margin: 20px;
}

.max-info {
    font-weight: normal;
    font-size: 12px;
}

.attachment-type {
    margin-top: 8px;
    font-weight: bold;
}

.fileinput-button-container {
    text-align: right;
}

.fileupload-buttonbar {
}

.file-list-container {
}

.droparea-container {
    margin-top: 8px;
}

.droparea {
    padding: 5px;
    text-align: center;
    color: #999;
    border: 1px dashed #999;
    width: 100%;
}

table.file-list td {
    padding: 5px;
}

    table.file-list td.button {
        text-align: right;
    }


/* Summary/validation */

.summary-page-title {
    font-size: 14px;
    font-weight: bold;
    font-style: italic;
    padding-top: 10px;
}

    .summary-page-title a {
        color: #333;
    }

.validation-info-sign {
    font-size: 3em;
    color: #3C5DAF;
}

.validation-error-sign {
    font-size: 3em;
    color: orangered;
}

.validation-warning-sign {
    font-size: 3em;
    color: gold;
}

.validation-ok-sign {
    font-size: 3em;
    color: green;
}

.signature-error {
    font-size: 14px;
    color: orangered;
}


/* Maintenance page */

.maintenance-logo {
    padding: 75px 0 25px 0;
}

.maintenance-message {
    padding-top: 30px;
}

.form-horizontal .checkbox, .form-horizontal .checkbox-inline {
    padding-top: 3px !important;
}

.form-horizontal .checkbox {
    min-height: 20px !important;
}

.flag-image-text {
    display: inline-block;
    text-align: left;
    width: 150px;
}

.matrix-layout td {
    padding: 5px;
    text-align: center;
}

.matrix-layout th {
    padding: 5px;
    text-align: center;
}

.matrix-layout label {
    white-space: nowrap;
}

::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: #707070 !important;
}

::-moz-placeholder { /* Firefox 19+ */
    color: #707070 !important;
    opacity: 1;
}

:-ms-input-placeholder { /* IE 10+ */
    color: #707070 !important;
}

:-moz-placeholder { /* Firefox 18- */
    color: #707070 !important;
}

.optional-label {
    font-style: italic;
    font-weight: 400;
    font-size: smaller;
}

.privacy-fieldset {
    width: 400px !important;
    margin-left: 387px !important;
}

.file-description {
    border: none;
    background: none;
    resize: none;
    width: 100%;
}

.table-word-wrap {
    table-layout: fixed;
    width: 100%;
}

.table-word-wrap td {
    word-wrap: break-word
}

/**********************Administration***********************/
.form-signin{
    text-align:center;
    margin-top:50px;
}

.center-title{
    text-align:center;
}

.admin-nav {
    margin-top: 15px;
}

.admin-icon {
    width: 1em;
    height: 1em;
}

.active-nav {
    background-color: #007bff;
    color: white;
}

/* Map question */

.map-question {
    height: 700px;
    width: auto;
}

a.leaflet-draw-edit-edit, a.leaflet-draw-edit-remove { /* ,  */
    display: none;
}

a.leaflet-draw-edit-removeall {
    background-position: -240px -2px;
}

.leaflet-draw-section ul {
    display: none !important;
}


/* Session timeout warning */

#session-timeout-countdown {
    display: inline-block;
    width: 30px;
    margin-left: 20px;
    font-size: 20px;
}


/* Log viewer */

.loglevel-0, .loglevel-Trace {
    background-color: white;
}

.loglevel-1, loglevel-Debug {
    background-color: #d6d6d6;
}

.loglevel-2, .loglevel-Information {
    background-color: #eefbea;
}

.loglevel-3, .loglevel-Warning {
    background-color: #fac44e;
}

.loglevel-4, .loglevel-Error {
    background-color: #ff9292;
}

.loglevel-5, .loglevel-Critical {
    background-color: #fd3434;
}
