.container {
    width: 96%;
    margin: 0px auto;

    .row {
        width: 100%;
        margin: 0px;
        padding: 0px;
    }

    .title {
        font-size: 28px;
        font-weight: 500;
        margin: 20px 0px 20px 0px;
    }

    .pagebuttons {
        display: flex;
        flex: 1 1 20%;
        gap: 10px;
        box-sizing: border-box;
        margin: 10px 0px 10px 0px;
        height: 40px;

        a {
            background-color: var(--color-menu-bg);
            border: 1px solid var(--color-border);
            box-shadow: var(--color-shadow) 3px 2px;
            border-radius: 5px;
            color: var(--color-menu);
            text-decoration: none;
            height: 100%;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: 400;
            font-size: 24px;
        }

        a:hover {
            background-color: var(--color-menu-bg-hover);
            color: var(--color-menu-hover);
        }
    }

    .allorders-left {
        float: left;
        height: calc(100vh - 160px);
        width: 300px;
        border: 1px solid var(--color-box-border);
        border-radius: 5px;
        overflow-x: hidden;
        overflow-y: auto;
        font-size: 22px;

        .list-row {
            margin: 0px 0px 0px 0px;
            padding: 15px 0px 15px 0px;
            color: var(--color-left);
            background-color: var(--color-left-bg);
            border-bottom: 1px solid var(--color-left-border);
            height: 24px;
            display: flex;
            flex-wrap: nowrap;

            .order-seq {
                float: left;
                width: 60px;
                padding: 0px 5px 0px 5px;
                justify-content: center;
                align-items: center;
                text-align: right;
                font-weight: 600;
            }

            .order-ref {
                float: left;
                width: 100px;
                padding: 0px 5px 0px 5px;
                justify-content: center;
                align-items: center;
            }

            .order-time {
                float: left;
                width: 90px;
                padding: 0px 5px 0px 5px;
                justify-content: center;
                align-items: center;
                text-align: right;
            }
        }

        .list-row:hover {
            color: var(--color-left-hover);
            background-color: var(--color-left-bg-hover);
            cursor: pointer;
        }

        .odd {
            color: var(--color-left-odd);
            background-color: var(--color-left-odd-bg);
        }

        .allorders-left-bottom {
            position: absolute;
            bottom: 18px;
            height: 40px;
            width: 290px;
            padding: 5px 5px 5px 5px;
            border-top: 1px solid var(--color-box-border);
            background-color: var(--color-left-bg);
            border-radius: 5px;
            overflow-x: hidden;
            overflow-y: auto;
            font-size: 22px;
            text-align: center;
        }

        .double {
            height: 80px;

            button {
                width: 45px;
            }
        }

        .triple {
            height: 120px;

            button {
                width: 45px;
            }
        }
    }

    .basketPopup {
        position: absolute;
        z-index: 2;
        left: 120px;
        top: 170px;
        width: calc(98% - 200px);
        height: calc(98vh - 300px);
        padding: 0px 0px 0px 0px;
        background-color: var(--color-basket-header-bg);
        border: 2px solid var(--color-basket-border);
        box-shadow: var(--color-basket-shadow) 5px 5px 5px;
        border-radius: 5px;
        display: none;

        .basketHeader {
            height: 30px;
            padding: 10px 10px 10px 10px;
            color: var(--color---color-basket-header);
            border-bottom: 1px solid var(--color-basket-header-border);
            font-size: 24px;
            font-weight: bold;
        }

        .basketBody {
            padding: 10px 10px 10px 10px;
            height: calc(98vh - 420px);
            overflow-x: hidden;
            overflow-y: auto;
            color: var(--color-basket);
            background-color: var(--color-basket-bg);

            .order {
                font-size: 22px;
                margin: 0px 0px 5px 0px;
                padding: 0px 0px 0px 0px;
                width: 99%;

                td {
                    border-top: 1px solid var(--color-basket-header-border);
                }

                .seq {
                    float: left;
                    width: 75px;
                    padding: 5px 5px 5px 15px;
                    justify-content: center;
                    align-items: center;
                    font-weight: bold;
                }

                .icon {
                    float: left;
                    width: 50px;
                    padding: 5px 5px 5px 15px;
                    justify-content: center;
                    align-items: center;

                    img {
                        border: 2px solid var(--color-right-header1-icon-border);
                        height: 24px;
                    }
                }

                .ref {
                    float: left;
                    width: 150px;
                    padding: 5px 5px 5px 15px;
                    justify-content: center;
                    align-items: center;
                }

                .times {
                    float: left;
                    width: 200px;
                    justify-content: center;
                    align-items: center;
                    padding: 5px 5px 5px 15px;
                }

                .address {
                    float: left;
                    width: 400px;
                    justify-content: center;
                    align-items: center;
                    padding: 5px 5px 5px 15px;
                }

                .bearing {
                    float: left;
                    width: 100px;
                    vertical-align: top;
                    padding: 5px 5px 5px 15px;
                }

                .distance {
                    float: left;
                    width: 120px;
                    vertical-align: middle;
                    text-align: right;
                    font-size: 30px;
                    font-weight: bold;
                    padding: 5px 5px 5px 15px;
                }
            }
        }

        .basketFooter {
            padding: 10px 10px 10px 10px;
            color: var(--color---color-basket-footer);
            border-top: 1px solid var(--color-basket-footer-border);

            .right {
                text-align: right;
            }

            button {
                color: var(--color-right-header1-button);
                background-color: var(--color-right-header1-button-bg);
                border: 2px solid var(--color-right-header1-button-border);
                box-shadow: var(--color-right-header1-button-shadow) 1px 1px;
                border-radius: 3px;
                cursor: pointer;
                font-size: 20px;
                padding: 2px 15px 2px 15px;
                margin: 0px 5px 0px 0px;
            }

            button:hover {
                color: var(--color-right-header1-button-hover);
                background-color: var(--color-right-header1-button-hover-bg);
                box-shadow: var(--color-right-header1-button-shadow) -1px -1px;
            }
        }
    }

    .allorders-right {
        left: 0px;
        height: calc(100vh - 160px);
        width: calc(100% - 312px);
        position: relative;
        display: inline-block;
        overflow-x: hidden;
        overflow-y: auto;
        border-top: 1px solid var(--color-box-border);
        border-bottom: 1px solid var(--color-box-border);
        font-size: 22px;

        .order-head {
            margin: 5px 5px 0px 5px;
            padding: 5px 0px 0px 0px;
            width: 99%;
            color: var(--color-right-header1);
            background-color: var(--color-right-header1-bg);
            border: 1px solid var(--color-right-header1-border);
            border-radius: 5px;
            table-layout: fixed;
            position: relative;
            display: inline-block;

            .head-seq {
                float: left;
                width: 50px;
                padding: 5px 5px 5px 15px;
                justify-content: center;
                align-items: center;
                font-weight: bold;
            }

            .head-icon {
                float: left;
                width: 30px;
                padding: 5px 5px 5px 15px;
                justify-content: center;
                align-items: center;

                img {
                    border: 2px solid var(--color-right-header1-icon-border);
                    height: 24px;
                }
            }

            .head-ref {
                float: left;
                min-width: 120px;
                padding: 5px 5px 5px 15px;
                justify-content: center;
                align-items: center;
            }

            .head-times {
                float: left;
                max-width: 400px;
                justify-content: center;
                align-items: center;
                padding: 5px 5px 5px 15px;

                img {
                    margin: 0px 0px 0px 10px;
                    height: 24px;
                }

                .overtime {
                    animation: blinkLate 2s infinite;
                }
            }

            .head-buttons {
                float: left;
                max-width: 400px;
                justify-content: center;
                align-items: center;
                padding: 5px 5px 5px 15px;

                button {
                    color: var(--color-right-header1-button);
                    background-color: var(--color-right-header1-button-bg);
                    border: 2px solid var(--color-right-header1-button-border);
                    box-shadow: var(--color-right-header1-button-shadow) 1px 1px;
                    border-radius: 3px;
                    cursor: pointer;
                    font-size: 20px;
                    padding: 2px 15px 2px 15px;
                    margin: 0px 5px 0px 0px;
                }

                button:hover {
                    color: var(--color-right-header1-button-hover);
                    background-color: var(--color-right-header1-button-hover-bg);
                    box-shadow: var(--color-right-header1-button-shadow) -1px -1px;
                }
            }

            .head-newtime {
                display: none;
                position: absolute;
                left: 400px;
                top: 60px;
                width: 320px;
                height: 40px;
                color: var(--color-right-newtime);
                background-color: var(--color-right-newtime-bg);
                border-color: 1px solid var(--color-right-newtime-border);
                box-shadow: var(--color-right-newtime-shadow) 2px 2px;
                font-size: 20px;
                border-radius: 5px;
                text-align: center;
                padding: 5px 5px 5px 5px;
                z-index: 99;

                button {
                    height: 30px;
                    color: var(--color-right-header1-button);
                    background-color: var(--color-right-header1-button-bg);
                    border: 2px solid var(--color-right-header1-button-border);
                    box-shadow: var(--color-right-header1-button-shadow) 1px 1px;
                    font-size: 20px;
                    border-radius: 5px;
                }

                input {
                    width: 100px;
                    height: 23px;
                    font-size: 20px;
                    color: var(--color-right-header1-button);
                    background-color: var(--color-right-header1-button-bg);
                    border: 2px solid var(--color-right-header1-button-border);
                    box-shadow: var(--color-right-header1-button-shadow) 1px 1px;
                    border-radius: 5px;
                }
            }

        }

        .lateorder {
            color: var(--color-right-header1-late) !important;
            background-color: var(--color-right-header1-late-bg) !important;
        }

        .order-item {
            font-size: 22px;
            margin: 0px 0px 5px 0px;
            padding: 0px 0px 0px 0px;
            width: 99%;
            color: var(--color-right-item);
            background-color: var(--color-right-item-bg);

            .item-count {
                float: left;
                width: 50px;
                padding: 5px 5px 5px 5px;
                justify-content: center;
                align-items: center;
                text-align: right;
            }

            .item-descr {
                float: left;
                min-width: 500px;
                padding: 5px 5px 5px 5px;
                justify-content: center;
                overflow-wrap: break-word;
                height: fit-content;
            }

            .item-buttons {
                float: left;
                max-width: 450px;
                padding: 5px 5px 5px 5px;
                justify-content: center;

                button {
                    color: var(--color-right-item-button);
                    background-color: var(--color-right-item-button-bg);
                    border: 2px solid var(--color-right-item-button-border);
                    box-shadow: var(--color-right-item-button-shadow) 1px 1px;
                    border-radius: 3px;
                    cursor: pointer;
                    font-size: 20px;
                    padding: 2px 15px 2px 15px;
                    margin: 0px 5px 0px 0px;
                }

                button:hover {
                    color: var(--color-right-item-button-hover);
                    background-color: var(--color-right-item-button-hover-bg);
                    box-shadow: var(--color-right-item-button-shadow) -1px -1px;
                }

                .noclick {
                    background-color: var(--color-right-item-button-noclick-bg) !important;
                    color: var(--color-right-item-button-noclick) !important;
                    border: 2px solid var(--color-right-item-button-border) !important;
                    box-shadow: var(--color-right-item-button-shadow) 1px 1px;
                    cursor: default;
                }

                .noclick:hover {
                    box-shadow: var(--color-right-item-button-shadow) 1px 1px;
                }

                .ready {
                    background-color: var(--color-right-item-button-ready-bg) !important;
                    color: var(--color-right-item-button-ready) !important;
                    border: 2px solid var(--color-right-item-button-border) !important;
                    box-shadow: var(--color-right-item-button-shadow) 1px 1px;
                }

                .ready:hover {
                    color: var(--color-right-item-button-hover);
                    background-color: var(--color-right-item-button-hover-bg);
                    box-shadow: var(--color-right-item-button-shadow) -1px -1px;
                }
            }
        }

        .odd {
            color: var(--color-right-item-odd);
            background-color: var(--color-right-item-odd-bg);
        }

        .itemready {
            display: none;
        }
    }
}

.basketbutton {
    border-radius: 4px;
    margin: 0px 3px 0px 3px;
    width: 35px;
    min-height: 35px;
    font-weight: bold;
    font-size: 26px;
}

.b_inactive {
    background-color: var(--color-green-light);
    text-shadow:
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px 2px 0 #fff,
        -3px 0px 0 #fff,
        3px 0px 0 #fff,
        0px -3px 0 #fff,
        0px 3px 0 #fff;
}

.b_cooking {
    background-color: var(--color-green-light);
    background-image: url('../img/baskets/status_cooking.png');
    color: rgba(0, 0, 0, 0.5);
    text-shadow:
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px 2px 0 #fff,
        -3px 0px 0 #fff,
        3px 0px 0 #fff,
        0px -3px 0 #fff,
        0px 3px 0 #fff;
}

.b_togo {
    background-color: var(--color-orange-light);
    background-image: url('../img/baskets/status_togo.png');
    color: rgba(0, 0, 0, 0.3);
    text-shadow:
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px 2px 0 #fff,
        -3px 0px 0 #fff,
        3px 0px 0 #fff,
        0px -3px 0 #fff,
        0px 3px 0 #fff;
}

.b_underway {
    background-color: var(--color-orange-light);
    background-image: url('../img/baskets/status_underway.png');
    color: rgba(0, 0, 0, 0);
}

.b_delayed {
    background-color: var(--color-red-light);
    background-image: url('../img/baskets/status_delayed.png');
    color: rgba(0, 0, 0, 0);
}

.b_returned {
    background-image: url('../img/baskets/status_returned.png');
    text-shadow:
        -2px -2px 0 #fff,
        2px -2px 0 #fff,
        -2px 2px 0 #fff,
        2px 2px 0 #fff,
        -3px 0px 0 #fff,
        3px 0px 0 #fff,
        0px -3px 0 #fff,
        0px 3px 0 #fff;
}

.b_disabled {
    background-image: url('../img/baskets/status_disabled.png');
    color: rgba(0, 0, 0, 0.3);
}


@media (max-width: 1081px) {
    .container {
        .allorders-left {
            height: calc(100vh - 120px);
            width: 200px;
            font-size: 16px;

            .list-row {
                padding: 10px 0px 10px 0px;
                height: 20px;
            }
        }

        .allorders-right {
            height: calc(100vh - 120px);
            width: calc(100% - 212px);
            font-size: 16px;

            .order-head {
                padding: 0px 0px 0px 0px;

                .head-seq {
                    float: left;
                    width: 50px;
                    padding: 10px 5px 5px 10px;
                }

                .head-icon {
                    img {
                        height: 22px;
                    }
                }

                .head-ref {
                    width: 100px;
                    padding: 10px 5px 5px 10px;
                }

                .head-times {
                    max-width: 300px;
                    padding: 10px 5px 5px 10px;
                }

                .head-buttons {
                    padding: 10px 5px 5px 10px;

                    button {
                        font-size: 16px;
                        padding: 2px 15px 2px 15px;
                        margin: -5px 5px 0px 0px;
                    }

                }

                .head-newtime {
                    left: 400px;
                    top: 60px;
                    width: 320px;
                    height: 40px;
                    font-size: 16px;
                    padding: 5px 5px 5px 5px;

                    button {
                        height: 30px;
                        font-size: 16px;
                    }

                    input {
                        width: 100px;
                        height: 23px;
                        font-size: 16px;
                    }
                }

            }

            .order-item {
                font-size: 16px;
                margin: 0px 0px 5px 0px;
                padding: 0px 0px 0px 0px;

                .item-count {
                    width: 40px;
                    padding: 0px 5px 0px 5px;
                }

                .item-descr {
                    min-width: 400px;
                    padding: 0px 5px 0px 5px;
                }

                .item-buttons {
                    max-width: 450px;
                    padding: 0px 5px 0px 5px;

                    button {
                        font-size: 14px;
                    }
                }
            }
        }
    }
}
@keyframes blinkLate {
    0%, 100% { color: red; opacity: 0.4; }
    50% { color: red; opacity: 1; }
}
