/*
Copyright (C) 2017 Draios inc.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

.wsd-capture-panel {
    @timeline-height: 30px;
    @timeline-margin: 8px;
    @timeline-viewport: @timeline-height + @timeline-margin;

    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;

    &__header {
        display: flex;

        border-bottom: 1px solid @color-separator;
        background-color: @color-background-secondary-nav-bar;
    }
    &__breadcrumbs {
        flex: 1;

        margin-right: @layout-spacing-md;

        overflow: hidden;
    }
    &__controls {
        display: flex;
        align-items: center;

        padding-right: @layout-spacing-md;
    }
    &__control + &__control {
        margin-left: @layout-spacing-md;
    }
    &__content {
        flex: 1;

        display: flex;
        align-items: stretch;

        overflow: hidden;
    }
    &__view-list {
        .side-panel-width();

        display: flex;
        flex-direction: column;
        align-items: stretch;

        border-right: 1px solid @color-separator;
    }
    &__data {
        flex: 1;

        display: flex;
        flex-direction: column;

        overflow: hidden;

        background-color: @color-background-panel;
    }

    &__data-settings-bar {
        display: flex;
        flex-direction: column;

        padding: @layout-padding-sm @layout-padding-md;
    }
    &__data-settings-filter,
    &__data-settings-search {
        display: flex;
        align-items: center;
    }
    &__data-settings-filter + &__data-settings-search {
        margin-top: @layout-spacing-sm;
    }
    &__data-settings-label {
        width: 75px;
        margin-right: @layout-spacing-sm;

        display: flex;
        align-items: center;

        height: 36px;
        line-height: 36px;
    }
    &__data-settings-label-icon {
        display: flex;
        margin-right: @layout-spacing-xs;
    }
    &__data-settings-label-text {
        .text-overflow();
    }
    &__data-settings-input {
        flex: 1;
        display: flex;
        flex-direction: column;
        alig-items: stretch;
    }

    &__timelines {
        display: flex;

        max-height: @timeline-viewport * (10 + 1);

        border-top: 1px solid @color-separator;
        background-color: @color-background-secondary-nav-bar;
    }
}
