[role="main"] {
    padding-bottom: 4em;
}

.reveal {
    display: none;
}

.reveal.visible {
    display: block;
}

.language-selector {
    margin-top: 1.7em;
}

.lang {
    display: inline-block;
    width: 20px;
    height: 15px;
    color: transparent;
    font-size: 0;
    text-indent: -999em;
}

.lang-sv {
    background: transparent url(/bundles/montaniaportal/img/png-country-4x2-fancy-res-80x60/se.png) no-repeat top left;
    background-size: 20px 15px;
}

.lang-en {
    background: transparent url(/bundles/montaniaportal/img/png-country-4x2-fancy-res-80x60/gb.png) no-repeat top left;
    background-size: 20px 15px;
}

/* survey form */
.survey div, .survey label {
    width: auto;
    float: none;
}

.survey .form-group {
    margin-bottom: 4em;
    margin-top: 4em;
}

/** Project form */

.project div, .project label {
    width: auto;
    float: none;
}

.project > .form-group {
    width: 50%;
    float: left;
}

.project h3, .project .form-actions, .project p {
    clear: left;
}

.project .form-group + h3 {
    padding-top: 1em;
}

.project .form-actions {
    padding-top: 1em;
}

.project .form-group-full {
    clear: both;
}

.project .form-group-full .form-group {
    width: auto;
    float: none;
    clear: left;
}

.edit-attachments label {
    font-weight: normal;
}

.edit-attachments .col-lg-9, .edit-attachments .col-lg-3 {
    width: auto;
    float: none;
    margin: 0;
    padding: 0;
}

.edit-attachments .delete {
    text-decoration: line-through;
}

/** Collections **/
[data-collection-add-btn] {
    margin-left: 1em;
}

td [data-collection-add-btn] {
    display: none;
}

.collection-item {
    clear: both;
}

.collection-item:not(:last-of-type) {
    border-bottom: solid 1px #ddd;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

.collection-item label {
    display: block;
}

.collection-item > label {
    display: none;
}

.collection-item .col-lg-9 {
    min-height: 35px;
    width: 50%;
    float: left;
    clear: left;
}

.collection-item > .col-sm-9 {
    display: flex;
    flex-wrap: wrap;
}

.collection-item > .col-sm-9 > * {
    width: 50%;
}

.collection-item [data-collection-remove-btn], .collection-item [type=file] {
    margin-left: 15px;
}

.collection-item [type=file] {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.collection-items {
    *zoom: 1;
}

.collection-items:before, .collection-items:after {
    content: "";
    display: table;
}

.collection-items:after {
    clear: both;
}

.collection-item .col-sm-offset-3 {
    margin-left: 0 !important;
}

@media (max-width: 750px) {
    .project .form-group {
        width: auto;
        float: none;
    }
}

button.loading {
    opacity: 0.5;
    pointer-events: none;
    cursor: wait;
}

.people-table .alert-send-error {
    display: none;
    padding: 0.25em 0.5em;
    margin-top: 0.5em;
    font-size: 12px;
}

.people-table label.checkbox {
    font-weight: normal;
}

.people-table .handle {
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}

.people-table span {
    margin-top: 7px;
    display: inline-block;
}

.people-table .sortable-chosen .handle {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

.people-table .col-lg-9 {
    padding-left: 0;
    padding-right: 0;
}

#kempe-summery-counter {
    margin-top: -10px;
    margin-bottom: 10px;
    text-align: right;
}

.textarea-counter {
    text-align: right;
    float: right;
}

.textarea-counter-container {
    margin-top: 1rem;
}

.type-ranking label {
    display: flex;
    align-items: center;
}

.type-ranking .radio, .type-ranking .checkbox {
    padding-left: 0;
    margin-right: 0.75rem;
}

.ranking-entry {
    width: 2rem !important;
    height: 2rem;
    border: solid 1px #aaa;
    display: inline-block;
    text-align: center;
    margin-right: 0.75rem;
}

.layout-numbers .ranking-entry {
    margin-right: 0;
}

.layout-numbers .col-sm-9 {
    display: flex;
}

.layout-numbers .radio, .layout-numbers .checkbox {
    margin-top: 0;
}

.layout-numbers .radio:first-of-type, .layout-numbers .checkbox:first-of-type {
    padding-left: 0;
}

.layout-numbers .radio label, .layout-numbers .checkbox label {
    display: flex;
    flex-direction: column-reverse;
    text-align: center;
}

.layout-numbers input {
    margin-left: 0 !important;
}

.layout-numbers .help-block {
    margin-left: 1rem;
}

.page-header {
    margin-top: 20px;
}

.container {
    margin-bottom: 40px;
    margin-top: 40px;
    background: #fff;
}

@media (max-width: 768px) {
    .container {
        margin-bottom: 0;
        margin-top: 0;
    }
}

.form-group + .col-lg-9 {
    clear: both;
}