* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: 'Rubik', sans-serif;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #ddf9ff;
}

a {
    text-decoration: none;
    color: inherit;
}

select,
button,
input,
textarea {
    outline: none;
    border: none;
    border-radius: 0;
    margin: 0;
    font-family: inherit;
}

fieldset {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: white;
}

fieldset > legend {
    text-align: center;
    background-color: #3185FC;
    color: white;
    padding: 5px 20px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
}

.swal2-confirm {
    background-color: #023e8a !important;
}

/************
Header
**********/

header {
    text-align: center;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ffffff;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

#headerTitle {
    padding: 10px;
    display: flex;
    align-items: center;
}

#headerImage {
    height: 35px;
    margin-right: 10px;
}

#headerTitleText {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 19px;
}

/************
Main
**********/

main {
    flex-grow: 1;
    padding: 20px 20px 80px 20px;
    overflow-y: auto;
}

/************
Footer
**********/

#tabExit,
#tabAdd {
    background-color: #023e8a;
    color: white;
    border-radius: 13px;
    align-items: center;
    justify-content: space-evenly;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
    height: 60px;
    display: none;
    position: fixed;
    right: 20px;
    bottom: 20px;
}

#tabExit {
    width: 60px;
}

#tabAdd {
    width: 140px;
}

#tabExit.active,
#tabAdd.active {
    display: flex;
}

/************
Tab Nav
**********/

#tabNav {
    flex-direction: column;
    justify-content: center;
    display: none;
}

#tabNav.active {
    display: flex;
}

.tabLink {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: white;
    color: black;
    border: 2px solid threedface;
}

.tabLink:last-child {
    margin-bottom: 0;
}

.tabLinkNameDate {
}

.tabLinkName {
}

.tabLinkDate {
}

.tabLinkPrice {
}

/************
Tab
**********/

.tab {
    width: 100%;
    display: none;
}

.tab.active {
    display: flex;
    flex-direction: column;
}

.tabName {
    text-align: center;
    font-size: 20px;
    margin-bottom: 5px;
}

.tabDate {
    text-align: center;
    font-size: 14px;
    margin-bottom: 10px;
}

.tabPeople {
}

.tabPerson {
}

.tabPersonName {
}

.tabPersonItemList {
}

.tabPersonItem {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr;
    padding: 5px;
    border-radius: 3px;
    margin-bottom: 5px;
    position: relative;
    border: 1px solid threedface;
}

.tabPersonItem:nth-child(odd) {
    background-color: #f1f0f0;
}

.tabPersonItem:last-child {
    margin-bottom: 10px;
}

.tabPersonItem > input {
    background-color: transparent;
    width: 100%;
}

.tabPersonItemName {
}

.tabPersonItemQuantity {
}

.tabPersonItemPrice {
}

.tabPersonItemDelete {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 3px;
}

.tabPersonItemDelete.active {
    display: flex;
}

.tabPersonActions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 10px;
}

.tabPersonActions > div {
    display: flex;
    justify-content: space-evenly;
    padding: 8px 0;
    border-radius: 5px;
}

.tabPersonActionAdd {
    background-color: #3185FC;
    color: white;
}

.tabPersonActionRemoveToggle {
    border: 1px solid threedface;
}

.tabPersonActionRename {
    border: 1px solid threedface;
}

.tabPersonActionDelete {
    background-color: #d62828;
    color: white;
}

.tabPersonAdd {
    text-align: center;
    background-color: #023e8a;
    color: white;
    padding: 10px 40px;
    border-radius: 8px;
    margin: 0 auto 15px;
}

.tabSummary {
}

.tabSummaryTitle {
    font-size: 15px;
    font-weight: 600;
}

.tabSummary > div {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    border-radius: 3px;
    font-size: 14px;
}

.tabSummary > div:nth-child(even) {
    background-color: #f1f0f0;
}

.tabSummary > div > span {
    padding-right: 8px;
}

.tabSummary > div > input {
    width: 100%;
    text-align: right;
    background-color: transparent;
}

.tabTotal,
.tabTotalInput {
    font-weight: 600;
    font-size: 16px !important;
}

.tabActions {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    column-gap: 10px;
    margin-bottom: 15px;
}

.tabActions > div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    border-radius: 5px;
}

.tabActionCalculate {
    background-color: #023e8a !important;
    color: white;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

.tabActionRename {
    background-color: white;
    border: 2px solid threedface;
}

.tabActionDelete {
    background-color: #d62828 !important;
    color: white;
}

/************
Desktop Optimizations
**********/

@media (min-width: 1250px) {
    .tabPeople {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        column-gap: 10px;
    }

    .tabSummary,
    .tabActions {
        max-width: 345px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}
