.paw-popup {
    &.custom-modal {
        .custom-modal-content {
            padding: 0;

            .custom-modal-icon-tray {
                padding-top: 15px;
                padding-right: 15px;

                .custom-modal-icon:hover {
                    color: $accent-color;
                }
            }

            .custom-modal-header {
                padding: 15px;
                padding-bottom: 0;
                border-bottom: 1px solid $divider-color;
            }

            .custom-modal-body {
                margin-bottom: 0;
            }
        }

        &.paw-popup-header-nodivider {
            .custom-modal-content {
                .custom-modal-header {
                    border-bottom: none;
                }
            }
        }
    }

    .paw-popup-message {
        padding: 16px;
    }

    .paw-popup-actions {
        padding-left: 8px;
        padding-right: 8px;
        padding-top: 0;
        padding-bottom: 16px;

        .paw-popup-action-holder {
            padding-left: 8px;
            padding-right: 8px;

            .paw-popup-action {
                width: 100%;
            }
        }
    }

    &.paw-popup-fullscreen {
        top: 0 !important;
        left: 0 !important;
        transform: none;
        width: 100vw !important;
        height: 100vh;
        border-radius: 0;
        max-width: 100vw !important;
        max-height: 100vh !important;

        .custom-modal-draggable-area {
            cursor: default;
        }
    }
}

.paw-finder-popup {
    height: 80%;
    max-height: 80% !important;
    max-width: 60% !important;
    width: 60% !important;

    .paw-finder-filters {
        max-height: 63px;
        min-height: 63px;
        height: 63px;

        .paw-finder-filter-slot {
            padding: 5px 10px;
            border-right: 1px solid $divider-color;
            min-width: 120px;

            &:first-child {
                &:last-child {
                    max-width: 33.333%;
                    border-right: none;
                }
            }
        }

        .paw-finder-filters-holder {
            padding-left: 10px;
            padding-right: 10px;
        }

        .select2.select2-container .select2-selection__rendered {
            height: 28px;
        }

        .dropdown.bootstrap-select > button.dropdown-toggle {
            min-height: 33px;
            max-height: 33px;
        }

        .paw-finder-filters-label {
            margin-left: 4px;
        }
    }

    .paw-finder-datagrid {
        width: 100%;
        height: 100%;
        position: static !important;

        .dataTables_wrapper {
            min-height: auto;

            .dataTables_scrollBody {
                min-height: auto;
            }
        }

        .dtfc-fixed-left {
            background: inherit;
            border-right: 1px solid $divider-color;
        }

        thead {
            .dtfc-fixed-left {
                background-color: $table-header-background-color;
            }
        }
    }

    .paw-popup-content {
        height: 100%;
    }

    .paw-preloader-backdrop {
        z-index: 3;
    }
}

@mixin paw-finder-input() {
    border: 1px solid $divider-color;
    border-radius: 4px;
    overflow: hidden;
}

.paw-finder-filters-popup {
    width: 400px !important;
    min-width: auto !important;

    .paw-popup-content {
        height: 100%;
    }

    .paw-finder-filters-list {
        padding: 5px 15px;
        padding-top: 15px;

        .paw-filter-pin {
            transition: transform 0.2s ease-in-out;

            &:not(.paw-active) {
                transform: rotate(45deg);
                opacity: 0.5;
            }

            &.paw-active {
                color: $accent-color;
                transform: rotate(0);
            }
        }
    }

    .paw-finder-input {
        @include paw-finder-input();
    }

    .bootstrap-select {
        @include paw-finder-input();
    }

    .select2.select2-container {
        @include paw-finder-input();

        .select2-selection__rendered {
            border-bottom: none;
            height: 28px;
        }
    }

    .paw-finder-input-date {
        @include paw-finder-input();
        .custom-datepicker, .input-group-addon{
            border-bottom: none;
        }
    }

    .dropdown.bootstrap-select > button.dropdown-toggle {
        min-height: 33px;
        max-height: 33px;
    }

    .paw-finder-filters-actions {
        border-top: 1px solid $divider-color;
        padding: 5px 15px;
    }

    &.custom-modal .custom-modal-body {
        overflow: visible;
    }

    &.paw-popup-fullscreen {
        .paw-filter {
            max-width: 800px;
            margin: auto;
        }
    }
}

.paw-finder-select{
    z-index: 10000 !important;
    max-width: 400px;
}

@media (max-width: 1390px) {
    .paw-finder-popup:not(.paw-popup-fullscreen) {
        width: 80% !important;
        max-width: 80% !important;
    }

    .paw-popup .select2-dropdown, .paw-select2-container .select2-dropdown {
        min-width: 400px !important;
        max-width: 400px !important;
    }
}

@media (max-width: 800px) {
    .paw-finder-popup:not(.paw-popup-fullscreen) {
        width: 95% !important;
        max-width: 95% !important;
        height: 95% !important;
        max-height: 95% !important;
    }    
}

@media (max-width: 500px) {
    .paw-popup .paw-popup-icon-action.paw-popup-size-control {
        display: none;
    }

    .paw-finder-popup:not(.paw-popup-fullscreen), .paw-finder-filters-popup:not(.paw-popup-fullscreen) {
        top: 0;
        left: 0;
        transform: none;
        width: 100vw !important;
        height: 100vh !important;
        border-radius: 0;
        max-width: 100vw !important;
        max-height: 100vh !important;
    }

    .paw-select-container {
        left: 0 !important;
        width: 100% !important;

        .paw-finder-select {
            width: 100%;
        }

        &.select2-container .select2-dropdown {
            width: 100% !important;
            min-width: auto !important;
        }
    }

    .paw-finder-popup .paw-finder-filters .paw-finder-filter-slot {
        &:first-child {
            &:last-child {
                max-width: 100%;
                border-right: 1px solid $divider-color;
            }
        }
    }
}