.tab {
    display: flex;
}

.tablinks {
    flex: 1;
}

.tab button {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 12px;
    transition: 0.3s;
    font-size: 17px;
    background-color: #f5f2f2;
    border-radius: 40px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    float: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px 15px 5px 15px;
}

#contentCreationBtn {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: var(--accent);
    border-radius: 40px;
    border-bottom-right-radius: 0;
    color: white;
}

.tablinks {
    display: flex;
    flex-direction: column;
}

.tablinks .totals {
    display: block;
    margin-top: 4px;
}

.tablinks .onetime .monthly {
    white-space: nowrap;
    display: inline-block;
}

.wrapper {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(18, 24, 40, .06);
    padding: 10px 0 50px 0;
}

.extra-hours-info {
    margin-top: 0;
    color: #667;
    font-size: 10px;
}

.box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box p {
    margin-bottom: 0;
    text-align: center;
}

.location-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .5rem
}

.loc-card {
    border: 1px solid #ddd;
    background: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation
}

.loc-card.selected {
    border-color: var(--accent);
    box-shadow: 0 6px 18px rgba(0, 120, 212, .15);
    background: linear-gradient(180deg, #fff, #f7fbff)
}

.box--top p {
    margin-top: 0px;
}

.managementTotals {
    white-space: nowrap;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--accent);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--accent);
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

@media(max-width:520px) {
    .loc-card {
        min-width: 50%
    }
}

@media (max-width: 550px) {
    .wrapper {
        padding: 5px 0;
    }

    .wrapper p,
    .wrapper .d--bold,
    .wrapper h1 {
        font-size: 14px;
    }

    .wrapper .d--bold {
        font-size: 16px;
    }

    .loc-card {
        padding: 10px 12px;
        font-size: 13px;
    }

    quantity-input {
        transform: scale(.92);
        transform-origin: left center;
    }

    .wrapper .extra-hours-info {
        margin-top: 0;
        color: #667;
        font-size: 10px;
        padding-right: 20px;
    }

    .managementTotals {
        white-space: wrap;
        font-size: 0.78rem;
    }
}