* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

.app {
    width: 370px;
    min-height: 100vh;
    margin: 0 auto;
    background: white;
}

.topnav {
    height: 60px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    text-align: center;
    color: #777;
}

.navitem {
    font-size: 12px;
}

.navitem .icon {
    font-size: 25px;
    line-height: 24px;
    font-weight: bold;
}

.navitem span {
    font-size: 10px;
}

.navitem.active {
    color: #99001a;
}

.content {
    padding: 5px 14px;
}

.grid {
    display: grid;
    grid-template-columns: 42px 78px 78px 70px;
    column-gap: 12px;
    row-gap: 13px;
    align-items: center;
}

.gridRest {
    display: grid;
    grid-template-columns: 42px 78px 78px 70px;
    column-gap: 12px;
    row-gap: 13px;
    align-items: center;
}

label {
    font-size: 16px;
}

span {
    font-size: 16px;
}

input,
select {
    width: 78px;
    height: 26px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 16px;
    padding: 2px 5px;
    box-shadow: 5px 5px 10px rgba(190, 40, 110, 0.25);
}

input:focus,
select:focus {
    outline: 1px solid #99001a;
}

button {
    height: 35px;
    font-size: 16px;
    border: 1px solid black;
    background: #eee;
    cursor: pointer;
}

button:hover {
    background: #ddd;
}

.divider {
    border-top: 1px solid #b00020;
    margin: 14px 0 8px 0;
}

.results input {
    text-align: right;
}

@media (max-width: 400px) {
    .app {
        width: 100%;
    }

    .content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .grid {
        grid-template-columns: 42px 1fr 1fr 64px;
        column-gap: 8px;
    }

    input,
    select {
        width: 100%;
    }
}