@import './variables/colors.less';
@import './variables/spacing.less';
@import './variables/typography.less';
@import './flex.less';
@import './spacing.less';

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: @font-family;
    animation: opacity 0.2s ease-in-out;
}

@keyframes opacity {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

[v-cloak] {
    display: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #FFFFFF;
}

button {
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: @font-family;
}

h1 {
    font-size: @font-size-extra-large;
    color: @dark-grey;
    font-weight: @font-weight-semi-bold;
}

.svg-icon__wrapper svg {
    pointer-events: none;
}

.page-container {
    display: flex;
    flex-direction: column;
    padding: 80px 40px 40px 40px;
    // min-height: 100vh;
    height: 100vh;
    background: @light-grey;
}

.page__content{
    border-radius: 8px;
    height: 100%;
}

.page__container-full{
    width: 100vw;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: @secondary;
    font-weight: @font-weight-medium;
}

.error-text {
    color: @error;
    font-size: @font-size-small;
    margin-top: 4px;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: @medium-grey;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: @dark-grey;
}

.scroll {

    /* width */
    &::-webkit-scrollbar {
        width: 10px;
    }

    /* Track */
    &::-webkit-scrollbar-track {
        background: @primary-light;
        border-radius: 20px;
        cursor: pointer;
    }

    /* Handle */
    &::-webkit-scrollbar-thumb {
        background: @primary;
        border-radius: 20px;
        border: solid 2px @primary-light;
    }

    /* Handle on hover */
    &::-webkit-scrollbar-thumb:hover {
        background: @primary;
    }
}

.side-by-side{
    .d-flex;
    .flex-align-center;
    .flex-justify-between;

    > div {
        width: calc(50% - 20px);
    }
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.pointer {
    cursor: pointer;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: @font-size-medium;

    thead {
        th {
            text-align: left;
            padding: 12px 16px;
            font-weight: @font-weight-semi-bold;
            color: @dark-grey;
            border-bottom: 1px solid @medium-grey;
        }
    }

    tbody {
        tr {
            border-bottom: 1px solid @light-grey;

            td {
                padding: 12px 16px;
                color: @dark-grey;
            }

            &:hover {
                background: @light-grey;
            }
        }
    }
}