* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    background: #111;
    color: white;

    font-family: system-ui, sans-serif;
}

#orders {
    padding: 12px;
}

.order {

    background: #222;

    border: 3px solid #3cb043;

    border-radius: 14px;

    margin-bottom: 12px;

    padding: 16px;

}

.header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 1.4rem;

    font-weight: bold;

}

.order {
    border-left: 8px solid #3cb043;
}

.order.age-green {
    border-left-color: #3cb043;
}

.order.age-yellow {
    border-left-color: #ffd500;
}

.order.age-orange {
    border-left-color: #ff9800;
}

.order.age-red {
    border-left-color: #f44336;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
}

.order-number {
    font-size: 1.6rem;
    font-weight: 700;
}

.order-timer {
    font-size: 1.4rem;
    font-weight: 700;
}

.customer {
    margin-bottom: 1rem;
    color: #bbb;
}

.item {
    padding: .6rem 0;
}

.item.completed {
    opacity: .45;
    text-decoration: line-through;
}

.item-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: 1.25rem;
}

.qty {
    min-width: 2rem;
    font-weight: 700;
}

.modifiers {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-left: 2.6rem;
    margin-top: .35rem;
}

.modifier {
    background: #333;
    border-radius: .4rem;
    padding: .2rem .55rem;
    font-size: .85rem;
}

.checkbox {

    width: 1.25rem;
    height: 1.25rem;

    border: 2px solid #999;
    border-radius: .25rem;

    flex-shrink: 0;

    position: relative;

}

.checkbox.completed {

    background: #3cb043;
    border-color: #3cb043;

}

.checkbox.completed::after {

    content: "";

    position: absolute;

    left: .30rem;
    top: .08rem;

    width: .28rem;
    height: .60rem;

    border: solid white;
    border-width: 0 .18rem .18rem 0;

    transform: rotate(45deg);

}

.item {

    cursor: pointer;
    user-select: none;

    transition:
        opacity .15s,
        background-color .15s;

}

.item:active {

    background: rgba(255,255,255,.10);

}

.item {
    padding: .75rem 0;
}

.item-header {
    min-height: 44px;
    align-items: center;
}

.item {
    transition: background-color .1s;
}

.item.pressed {
    background: rgba(255,255,255,.08);
}

.item {
    -webkit-tap-highlight-color: transparent;
}


body {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.order,
.item {
    touch-action: manipulation;
}


.order {

    transition:
        opacity .25s,
        transform .25s,
        max-height .25s,
        margin .25s,
        padding .25s;

    max-height: 1000px;

}

.order.removing {

    opacity: 0;

    transform: scale(.95);

    max-height: 0;

    margin: 0;

    padding-top: 0;
    padding-bottom: 0;

    overflow: hidden;

}


.order.adding {

    opacity: 0;

    transform: translateY(-20px);

}

