/*!
 * Copyright (c) 2014-present Cliqz GmbH. All rights reserved.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at https://mozilla.org/MPL/2.0/.
 */

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "-mac-system", "-apple-system", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
    outline: none;
    font-size: 14px;
}

.tabs {
    height: 94%;
}

.tabs-labels {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;

    &.first {
        flex: 3;
    }

    &.second {
        flex: 2;
        border-left: 1px solid black;
    }

    .modal-header {
        font-size: 16.5px;
        font-weight: 500;
        margin: 5px 0;
    }
}

.tabs-labels {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;

    .tab {
        border: 1px solid black;
        padding: 5px;
        transition: background 0.1s, color 0.1s;

        &:hover {
            background: #d8d8d8;
        }

        &.active {
            background: #ccc;
        }
    }

    .tab-input {
        position: absolute;
        opacity: 0;
    }

    .tab-label {
        width: 100%;
        padding: 5px 20px;
        cursor: pointer;
        font-weight: bold;
        color: #7f7f7f;
    }
}

.modal-group {
    border: 1px solid black;
    display: flex;

    .modal-item {
        padding: 10px;
        margin: 3px 0;
        overflow-y: auto;

        &.first {
            flex: 3;
            border-right: 1px solid black;
        }

        &.second {
            flex: 2;
        }

        .modal-header {
            font-size: 16.5px;
            font-weight: 500;
            margin: 5px 0;
        }
    }
}

input[type="checkbox"].switch {
    cursor: pointer;
    width: 38px;
    height: 20px;
}

table {
    border-collapse: collapse;
    border: none;
    width: 100%;

    td {
        padding: 5px;

        input {
            margin: 0 5px;
        }
    }
}

.bordered-table {
    margin: 5px 0;

    th {
        height: 30px;
    }

    td {
        border: 1px solid grey;
        vertical-align: top;
    }

    td:first-child {
        width: 60%;
    }

    ul {
        margin: 0 20px;
    }
}

.textinput {
    padding: 5px;
    width: 100%;
}

.button {
    margin: 5px 0;
    padding: 5px 10px;
    text-align: center;
    cursor: pointer;
    outline: none;
    background-color: rgb(238, 238, 238);
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px #ccc;
}

.button:hover {
    background-color: #999;
}

.button:active {
    background-color: #999;
    box-shadow: 0 5px #666;
    transform: translateY(4px);
}
