* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-size: 18px;
    &:focus,
    &:focus-visible {
        outline: none;
    }
}

body {
    background-color: #363c4c;
    color: #d7d6df;
    font-family: sans-serif;
}

h1 {
    padding: 0;
    margin-left: 1rem;
}

.payPeriods {
    display: flex;
    gap: 1rem;
    margin: 1rem;
}

table {
    margin-bottom: 0.5rem;
    width: fit-content;
    height: fit-content;
    padding: 0.5rem;
    border-radius: 10px;
    background-color: #42557b;
    td {
        padding: 0 10px;
    }
    .auto {
        opacity: 0.5;
    }
    thead {
        color: #8df9f9;
        font-weight: bold;
    }
}

.upcoming {
    width: fit-content;
    height: fit-content;
    padding: 0.5rem;
    border-radius: 10px;
    background-color: #42557b;
}

.btn {
    display: block;
    padding: 6px 10px 4px;
    background-color: #52586a;
    color: #d7d6df;
    height: fit-content;
    text-decoration: none;
    border-radius: 10px;
    width: fit-content;
    svg {
        height: 1.5rem;
        width: 1.5rem;
        fill: #d7d6df;
    }
    &:hover {
        opacity: 0.75;
    }
}

.refresh {
    margin-left: 1.5rem;
}

.top {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    a {
        display: block;
        padding: 10px 15px;
        background-color: #52586a;
        color: #d7d6df;
        height: fit-content;
        text-decoration: none;
        border-radius: 10px;
        &:hover {
            opacity: 0.75;
        }
    }
    #total {
        width: 100px;
    }
    #taxRate {
        width: 60px;
    }
}

.loginWrap {
    width: calc(100vw - 2rem);
    height: calc(100vh - 2rem);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login,
.expense,
.transfer {
    background-color: rgba(82, 88, 106, 0.5);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    input,
    button {
        border: 2px solid #242631;
        background-color: #363c4c;
        color: #d7d6df;
        padding: 5px;
        border-radius: 5px;
        &::placeholder {
            color: #52586a;
        }
    }
    input,
    button {
        font-size: 18px;
    }
    button {
        background-color: #242631;
        color: #52586a;
    }
}

.transfer {
    margin: 0 auto;
    max-width: 600px;
}

.expense {
    display: block;
    flex-direction: row;
    margin: 0 auto;
    max-width: 80%;
    margin-bottom: 200px;
    .left,
    .right {
        flex-direction: column;
        gap: 10px;
        flex-grow: 1;
    }
    .data {
        display: flex;
        gap: 10px;
    }
    .bottom {
        display: flex;
        justify-content: flex-end;
        width: 100%;
    }
}

.spacer {
    flex-grow: 1;
    gap: 10px;
}

#addSplit {
    width: fit-content;
    padding: 5px 10px;
}

.splitRow {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    background-color: rgba(82, 88, 106, 0.5);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 5px;
    gap: 4px;
}

.select {
    position: relative;
    margin-right: 5px;
}

.innerRow {
    display: flex;
    gap: 5px;
    .splitAmt {
        width: 100px;
        height: fit-content;
    }

    label {
        margin-top: 6px;
    }
}

.select {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.selectBox {
    position: relative;
    /* width: 210px; */
    width: 100%;
}

.selected {
    border: 2px solid #242631;
    background-color: #363c4c;
    color: #d7d6df;
    padding: 6px;
    border-radius: 5px;
}

.itemWrap {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #363c4c;
    border-radius: 10px;
    box-shadow: 0 0 10px 5px rgba(36, 38, 49, 0.5);
    z-index: 10;
}

.items {
    width: 100%;
    height: 100%;
    overflow-y: scroll;

    .item,
    .accItem {
        padding: 5px 15px;
        height: 28px;
        &:hover {
            background-color: rgba(36, 38, 49, 0.5);
        }
    }
}

#payFromItems .items {
    overflow-y: auto;
    height: fit-content;
}

.hidden {
    display: none;
}

.diff {
    display: flex;
    justify-content: flex-end;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.left,
.transfer {
    display: grid;
    row-gap: 5px;
    column-gap: 10px;
    grid-template-columns: 6rem auto;
    grid-template-rows: repeat(5, 45px);
    label {
        justify-self: end;
        margin-top: 6px;
    }
    .select {
        width: 100%;
        display: block;
        margin: 0;
    }
    .selected {
        width: 100%;
        padding: 6px;
        height: 45px;
        display: flex;
        align-items: center;
    }
}

.right {
    display: flex;
}

.row {
    display: flex;
    gap: 10px;
}

@media only screen and (max-width: 1200px) {
    .data {
        flex-direction: column;
    }
}
