@import '~ui-frontend-common/sass/variables/colors';
@import '~ui-frontend-common/sass/mixins/fonts';
@import '~ui-frontend-common/sass/mixins/elevation';

$field-spacing: 15px;

.header {
    padding: 30px 60px 0 60px;
}

.content {
    padding: 0px 60px 60px 60px;
}

h2 {
    font-size: 26px;
    font-weight: 500;
    line-height: 46px;
    margin-top: 23px;
    margin-bottom: 37px;
}

.header-informations {
    margin-bottom: 20px;
    height: 140px;
}

.actions {
    margin-top: 30px;
    display: flex;
}

.actions > button:not(:last-child) {
    margin-right: 20px;
}

.form-group {
    padding-bottom: 30px;
}

.form-group label {
    margin-right: 20px;
}

.type-label {
    color: $charcoal-grey;
    font-size: 15px;
    line-height: normal;
    text-align: left;
}

.inline-label {
    padding-top: 5px;
}

// STEP 1
.field-firstname {
    margin-right: $field-spacing;
}

// STEP 3
.field-street {
    width: 615px + $field-spacing;
}

.field-zip-code {
    width: 160px;
    margin-right: $field-spacing;
}

.field-city {
    width: 260px;
    margin-right: $field-spacing;
}

.field-country {
    width: 180px;
    margin-right: $field-spacing;
}

// STEP 4
.field-mobile {
    margin-right: $field-spacing;
}

button.primary {
    margin-right: 20px;
}

button.back {
    margin-top: 60px;
}

.hint {
    color: #a5a5a5;
    font-size: 15px;
}

.layer {
    width: 33px;
    height: 39px;
    font-family: Roboto;
    font-size: 30px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: normal;
    letter-spacing: -0.8px;
    text-align: left;
    color: $charcoal-grey;
  margin-left: 20px;
}

.controls {
    display: flex;
    align-items: center;
    text-align: right;
    margin-bottom: 20px;
    justify-content: space-between;

    .btn {
        margin-left: 20px;
    }
}

.search {
    @include elevation-1;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    height: 50px;
    flex-grow: 1;
    border-radius: 87px;
    background-color: $white;
    background-color: var(--white);

    &.disabled {
        opacity: 0.3;
    }

    input[type=search] {
        @include elevation-1;
        border: none;
        width: 100%;
        height: 50px;
        border-radius: 50px * 0.5;
        background-color: $white;
        border: none;
        padding: 10px 50px 10px 28.5px;
        display: flex;
        outline: none;

        &::placeholder {
            @include vitamui-input-placeholder;
            font-weight: normal;
        }
    }

    i {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background-color: var(--vitamui-primary);
        color: $white;
        line-height: 30px;
        text-align: center;
        font-size: 18px;
    }

}

.actions {
    display: flex;
    margin-top: 15px;
    margin-right: 60px;
    padding-left: 10px;

    div {
        color: #474d4a;
        font-size: 15px;
        font-weight: bold;
    }
}

.table-container {
    overflow: auto;
    max-height: 30vh;
}

table {
    color: $charcoal-grey-two;
    font-size: 15px;
    width: 95%;
    border-collapse: collapse;
    margin-bottom: 60px;

    th {
        text-align: left;
        height: 60px;
        padding-bottom: 15px;
        padding-left: 10px;

        &:last-child {
            width: 15%;
        }
    }

    td {
        padding: 5px 10px;
        vertical-align: middle;
        font-weight: 300;

        &:last-child {
            padding-right: 0px;
        }
    }

    .text-center {
        text-align: center;
    }

    tbody {
        tr:nth-child(odd) {
            border-top: 1px solid $white-three;
        }

    }
}

.collapsable {
    display: block;
    overflow: hidden;
}

.load-more {
    width: 100%;
    height: 133px;
    text-align: center;
    line-height: 133px;
    cursor: pointer;
}

.no-padding > td {
    padding: 0;
}

.collapsable {
    overflow: hidden;
}

.bg-white {
    background: $white;
}

.profileGroup-row {
    .actions {
        white-space: nowrap;
        visibility: hidden;
        text-align: right;
    }

    .actions {
        padding-right: 40px;

        button {
            box-shadow: 25px 25px 80px 0 rgba(121, 121, 121, 0.1);
            opacity: 0;
            transform: translateX(20%);
            transition: all 150ms ease-in;
        }
    }

    &:hover .actions {
        visibility: visible;

        button {
            opacity: 1;
            transform: translateX(0);
            transition-timing-function: ease-out;
        }
    }

}

input[type=radio] {
    position: absolute;
    visibility: hidden;
    display: none;
}

.radio-label {
    color: var(--vitamui-secondary);
    display: inline-block;
    cursor: pointer;
    font-weight: bold;
    padding: 5px 20px;
}

input[type=radio]:checked + label{
    color: $white;
    background: var(--vitamui-secondary);
}

.radio-group {
    border: solid 1px var(--vitamui-secondary);
    display: inline-block;
    margin: 20px;
    border-radius: 5px;
    overflow: hidden;
}

.clickable {
    cursor: pointer;
}

.field-domain {
    width: 210px;
}