﻿@import '../../../assets/styles/less/abstracts/_main.less';

.box-shadow() {
    /*box-shadow: 0px 1px 5px #888888;*/
    /*box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05);*/
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(0, 0, 0, 0.05);
}

fb-moejlighet-lista {
    fb-main-header {
        .fbspinner--small {
            margin-top: 10px;
        }
    }
}

#moejlighetListaFilter {
    .header-toolbar-row {
        background-color: @fb-color-grey-light;
        padding: 5px @panel-body-padding;
    }

    .lista-view {
        overflow: auto; // Flytta scroll till listvy
        height: calc(~"100vh - 80px");
        padding-top: @panel-body-padding;
    }

    .toolbar-row {
        background-color: @fb-color-grey-light;
        padding: @panel-body-padding 0;
        margin-bottom: @panel-body-padding;
        border-left: @fb-color-grey-medium solid 1px;
        border-bottom: @fb-color-grey-medium solid 1px;
        border-right: @fb-color-grey-medium solid 1px;
    }

    .toolbar {
        > div {
            position: relative;
        }
    }

    .addFilterInput {
        width: 200px;
        display: inline-block;

        .dropdown-menu {
            overflow: auto;
            max-height: 500px;
        }
    }


    .filters {
        background-color: @fb-color-white;
        min-height: 57px;
        padding-bottom: 5px;
        border: @fb-color-grey-medium solid 1px;

        > div {
            display: inline-block;
        }

        .fb-spinner:not(.input-spinner) {
            position: absolute;
            z-index: 1;
            top: 11px;
        }

        .clear-filters {
            margin-top: 10px;
        }

        .add-filter {
            padding-top: 12px;
            vertical-align: middle;
        }
    }


    .filter {
        position: relative;
        white-space: nowrap;
        min-height: 50px;
        vertical-align: top;
        background-color: @fb-color-white;
        margin-right: 20px;

        * {
            vertical-align: top;
        }

        .separator {
            display: inline-block;
            margin-top: 20px;
        }

        .remove-filter {
            position: absolute;
            top: 23px;
            right: 2px;
        }

        .filter-nummer {
            fb-form-input {
                display: inline-block;
            }
        }

        .filter-datum {
            > * {
                display: inline-block;
            }
        }

        .filter-fritext fb-form-input input {
            padding-right: 20px;
        }


        .filter-text fb-form-text .fb-form-group,
        .filter-text fb-text .fb-form-group {
            padding-right: 20px;
            width: 180px;
        }

        .filter-boolean {
            width: 75px;
        }
    }

    .tips-filter-popover {
        margin-top: 3px !important;
        width: 240px;
        white-space: normal;
        margin-top: 3px;
    }

    .default-popover {
        width: 300px;
        white-space: normal;

        .popover-btn-group {
            padding-top: @panel-body-padding;
        }

        .popover-btn-group-grey {
            padding: @panel-body-padding;
            background-color: @fb-color-grey-light;
        }
    }

    .switch-maeklare {
        min-width: 200px;
    }

    .dropdown-menu {
        z-index: 1001; // Leaflet kör 1000
        font-size: @fb-font-size-base;

        .disabled > a {
            pointer-events: none;
        }

        > .dropdown-menu { // Resetta style för innre dropdowns
            display: block;
            position: relative;
            border-radius: 0;
            border: none;
            padding: 0;
            margin: 0;
            box-shadow: none;
        }

        .list-header {
            padding: 3px 20px;
            display: block;
            font-weight: 600;
        }

        .list-separator {
            border-top: 1px solid @fb-color-grey-medium-dark;
        }

        .list-icon {
            position: absolute;
            right: 10px;
            padding-top: 2px;
        }

        .padding-for-list-icon {
            padding-right: 5px;
        }

        > fb-form-input {
            display: block;
            padding: 0 18px;
            font-size: @fb-font-size-base;
        }

        .fb-form-group {
            margin: 0;
        }

        .fb-form-checkbox {
            height: 20px;
            font-size: @fb-font-size-base;

            .fb-form-checkbox-wrapper label {
                top: 2px;
            }

            > label {
                float: none;
                margin-right: 25px;
            }
        }

        &.popup {
            cursor: default;
            padding: 7px @panel-body-padding;

            > li {
                padding: 5px 0;
            }

            .info {
                white-space: pre;
            }
        }
    }

    .grid-container {
        position: relative;

        .fa-spinner {
            position: absolute;
            top: 50%;
            left: 50%;
            font-size: 40px;
            z-index: 1;
            margin-left: -20px;
            margin-top: -40px;
        }
    }

    .grid-row {
        position: relative;
        overflow-x: hidden;
        background-color: @fb-color-white;
    }

    .fb-grid {
        min-height: calc(~"100vh - 304px");
        background-color: @fb-color-white;
    }

    .alert-shown {
        .fb-grid {
            min-height: calc(~"100vh - 345px");
        }
    }

    fb-map-multiple {
        height: calc(~"100vh - 240px");
        width: 100%;

        > .row > .col-md-12 {
            padding: 0;
        }
    }

    .grid-overlay {
        position: absolute;
        left: 0;
        top: 0;
        right: 0;
        bottom: 0;
        background-color: @fb-color-black;
        z-index: 1;
        opacity: 0.2;
    }

    .search-hits {
        background-color: @fb-color-white;
        padding-left: 30px;
    }

    .dropdown-menu {
        overflow-y: auto;
        overflow-x: hidden;
        max-height: 400px;

        > li > a {
            text-overflow: ellipsis;
            overflow-x: hidden;
        }
    }

    #dropdown-vyer {
        max-height: none;
    }

    #kolumner-dropdown {
        width: 310px;
        max-height: none;

        .dropdown-menu {
            width: 100%;
        }
    }

    .dropdown-visningsalternativ {
        white-space: nowrap;
        padding: 5px 20px;
        cursor: default;

        .left-column {
            display: inline-block;
            width: 105px;
        }

        .right-column {
            display: inline-block;

            .btn {
                margin: 0;
            }
        }
    }

    .maxantal-alert {
        > .close {
            position: absolute;
            right: @panel-body-padding;
        }

        > .pull-left {
            margin-right: @panel-body-padding;

            > span:first-child {
                font-weight: bold;
            }
        }

        > .pull-right {
            margin-right: @panel-body-padding + 5px;
        }

        button > i {
            color: @fb-color-white;
        }
    }

    .button-bar {
        padding-left: @panel-body-padding;

        > .btn-group {
            margin-right: 3px;
        }
    }
}
