.backoffice-menu {
    max-width: 280px;
}

/* width */

::-webkit-scrollbar {
    width: 8px;
}

/* Track */

::-webkit-scrollbar-track {
    background: #b9b9b9;
}

/* Handle */

::-webkit-scrollbar-thumb {
    background-color: #81231e;
}

/* Handle on hover */

::-webkit-scrollbar-thumb:hover {
    background-color: #343434;
}

.quick-actions {
    display: flex;
}

.quick-action {
    position: relative;
    border-radius: 4px;
    border: 1px solid #b9b9b9;
    box-shadow: 3px 5px 3px #cfcfcf;
    margin-right: 8px;
}

.quick-action:hover {
    box-shadow: 1px 2px 1px #cfcfcf;
}

.quick-action .quick-action-link {
    display: block;
    width: 100%;
    height: 100%;
    padding: 1rem;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #343434;
}

.quick-action .quick-action-link:hover {
    color: #000;
}

@keyframes slideLeft {
    from {
        width: 280px;
        padding: 1rem;
    }
    to {
        width: 0px;
        padding: 0rem;
    }
}

@keyframes slideRight {
    from {
        width: 0px;
        padding: 0rem;
    }
    to {
        width: 280px;
        padding: 1rem;
    }
}

.slider-card {
    width: 100%;
    height: 40vh;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.itemCountInput {
    max-width: 40px;
    border: none;
}

.plukktable {
    font-size: 10px;
}

.btn-xs {
    padding: 0;
    font-size: 0.7rem;
    padding: 5px;
    margin-right: 1px;
}

/* Field order */
.field-order-shell {
    min-height: calc(100vh - 32px);
    background: #f4f6f8;
    color: #202124;
}

body.field-order-toast-page .toast-main-container {
    top: calc(env(safe-area-inset-top, 0px) + 72px);
}

body.field-order-toast-page .toast-container {
    width: min(420px, calc(100vw - 24px));
}

body.field-order-toast-page .toast.field-order-toast {
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
}

.field-order-shell:fullscreen,
.field-order-shell:-webkit-full-screen {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.field-order-start {
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
    padding: 24px;
}

.field-order-start-inner {
    width: min(780px, 100%);
}

.field-order-titlebar {
    margin-bottom: 24px;
}

.field-order-titlebar h1 {
    font-size: 2rem;
    margin-bottom: 4px;
}

.field-order-titlebar p {
    margin: 0;
    color: #5f6368;
}

.field-order-customer-search {
    background: #fff;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(32, 33, 36, 0.08);
}

.field-order-search-results {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% - 18px);
    z-index: 1050;
    max-height: 320px;
    overflow-y: auto;
    box-shadow: 0 10px 24px rgba(32, 33, 36, 0.16);
}

.field-order-workspace {
    min-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
}

.field-order-topbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #d9dee3;
}

.field-order-customer-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.field-order-customer-summary div {
    min-width: 0;
}

.field-order-customer-summary strong,
.field-order-customer-summary span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-order-customer-summary span {
    color: #5f6368;
    font-size: 0.86rem;
}

.field-order-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.field-order-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 12px;
    padding: 12px;
    min-height: 0;
    flex: 1;
}

.field-order-product-area {
    min-width: 0;
}

.field-order-searchbar {
    position: relative;
    background: #f4f6f8;
    padding-bottom: 8px;
}

.field-order-mobile-tools {
    margin-top: 10px;
}

.field-order-mobile-category-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
}

.field-order-mobile-category-button span,
.field-order-mobile-category-button strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-order-mobile-category-button strong {
    text-align: right;
    color: #0b5ed7;
    font-size: 0.9rem;
}

.field-order-category-offcanvas {
    width: min(360px, 92vw);
}

.field-order-category-offcanvas .offcanvas-body {
    padding-top: 0;
    scrollbar-width: thin;
    scrollbar-color: #b8c4d1 #f3f6f9;
}

.field-order-browser {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.field-order-filter-panel {
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(32, 33, 36, 0.05);
    scrollbar-width: thin;
    scrollbar-color: #b8c4d1 #f3f6f9;
}

.field-order-filter-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 2px 8px;
    border-bottom: 1px solid #edf0f2;
    margin-bottom: 8px;
}

.field-order-filter-heading span {
    color: #111827;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.field-order-filter-heading small {
    color: #6b7280;
    font-size: 0.72rem;
}

.field-order-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 82px;
}

.field-order-category-strip {
    display: grid;
    gap: 6px;
    padding: 0;
    margin: 0;
    scrollbar-width: thin;
}

.field-category-group {
    display: grid;
    gap: 6px;
}

.field-category-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
}

.field-category-row.has-children {
    grid-template-columns: minmax(0, 1fr) 36px;
}

.field-category-children {
    display: none;
    gap: 6px;
}

.field-category-group.is-expanded > .field-category-children {
    display: grid;
}

.field-category-option {
    width: 100%;
    min-height: 40px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #374151;
    padding: 7px 8px;
    padding-left: calc(8px + (var(--field-category-depth, 0) * 14px));
    text-align: left;
    font-size: 0.86rem;
    line-height: 1.15;
}

.field-category-option:hover {
    background: #f3f6f9;
}

.field-category-group.is-branch-active > .field-category-row .field-category-option:not(.is-active) {
    border-color: #d7e6ff;
    background: #f8fbff;
}

.field-category-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.field-category-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-category-copy small {
    color: #6b7280;
    font-size: 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-category-option.is-active {
    color: #0b5ed7;
    border-color: #b8d4ff;
    background: #eef5ff;
    font-weight: 700;
}

.field-category-check {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    border: 1px solid #c8d0d8;
    border-radius: 5px;
    color: transparent;
    background: #fff;
    font-size: 0.72rem;
}

.field-category-option.is-active .field-category-check {
    color: #fff;
    border-color: #0b5ed7;
    background: #0b5ed7;
}

.field-order-category-strip .field-category-child {
    font-size: 0.82rem;
    background: #fafbfc;
}

.field-category-toggle {
    min-height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #d9dee3;
    border-radius: 7px;
    background: #fff;
    color: #4b5563;
    transition: transform 140ms ease, border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.field-category-toggle:hover {
    border-color: #b8d4ff;
    color: #0b5ed7;
    background: #eef5ff;
}

.field-category-group.is-expanded > .field-category-row .field-category-toggle i {
    transform: rotate(180deg);
}

.field-category-toggle i {
    transition: transform 140ms ease;
}

.field-order-product-card {
    display: grid;
    grid-template-rows: auto minmax(54px, auto) auto auto;
    gap: 8px;
    min-height: 236px;
    background: #fff;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(32, 33, 36, 0.05);
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.field-order-product-card:hover {
    border-color: #bfd7ff;
    box-shadow: 0 8px 22px rgba(32, 33, 36, 0.09);
    transform: translateY(-1px);
}

.field-order-product-media {
    display: flex;
    justify-content: center;
    min-height: 92px;
}

.field-order-product-image {
    width: 92px;
    height: 92px;
    border-radius: 6px;
    overflow: hidden;
    background: #eef1f4;
}

.field-order-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.field-order-image-fallback {
    height: 100%;
    display: grid;
    place-items: center;
    color: #6c757d;
    font-size: 1.7rem;
}

.field-order-product-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    align-items: center;
}

.field-order-product-name {
    font-weight: 700;
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.field-order-product-price {
    color: #0b5ed7;
    width: 100%;
    border-top: 1px solid #edf0f2;
    border-bottom: 1px solid #edf0f2;
    padding: 7px 0;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.1;
    background: #f8fbff;
}

.field-order-product-footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    align-items: center;
    border-top: 1px solid #edf0f2;
    padding-top: 7px;
}

.field-order-product-footer span {
    color: #4b5563;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem;
    line-height: 1.15;
    text-align: center;
}

.field-order-product-footer span.is-low {
    color: #b42318;
}

.field-order-product-controls {
    display: grid;
    grid-template-columns: 44px minmax(44px, 1fr) 44px;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.field-order-product-controls .btn,
.field-order-line-controls .btn {
    min-height: 40px;
}

.field-order-product-controls span {
    text-align: center;
    font-weight: 700;
    color: #111827;
}

.field-order-cart-panel {
    position: sticky;
    top: 58px;
    align-self: start;
    height: calc(100vh - 86px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #d9dee3;
    border-radius: 8px;
    overflow: hidden;
}

.field-order-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid #d9dee3;
}

.field-order-cart-header h2 {
    font-size: 1.1rem;
    margin: 0;
}

.field-order-cart-header span {
    color: #5f6368;
    font-size: 0.85rem;
}

.field-order-cart-lines {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.field-order-cart-empty,
.field-order-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    color: #5f6368;
    text-align: center;
}

.field-order-empty i {
    font-size: 2rem;
}

.field-order-cart-line {
    border: 1px solid #e1e5e8;
    border-radius: 8px;
    padding: 9px;
    margin-bottom: 8px;
    background: #fff;
}

.field-order-cart-line-main {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
}

.field-order-cart-image {
    width: 58px;
    height: 58px;
    border-radius: 6px;
    overflow: hidden;
    background: #eef1f4;
}

.field-order-cart-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.field-order-cart-image-fallback {
    height: 100%;
    display: grid;
    place-items: center;
    color: #6c757d;
}

.field-order-cart-line-copy {
    min-width: 0;
}

.field-order-cart-line-copy > strong,
.field-order-cart-line-copy > span {
    display: block;
}

.field-order-cart-line-copy > strong {
    line-height: 1.2;
    margin-bottom: 2px;
}

.field-order-cart-line-copy > span {
    color: #5f6368;
    font-size: 0.8rem;
}

.field-order-cart-line-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #edf0f2;
}

.field-order-cart-line-meta span {
    color: #5f6368;
    font-size: 0.8rem;
}

.field-order-cart-line-meta strong {
    color: #111827;
    font-size: 0.86rem;
    white-space: nowrap;
}

.field-order-line-controls {
    display: grid;
    grid-template-columns: 40px 1fr 40px 40px;
    gap: 6px;
    margin-top: 8px;
}

.field-order-line-controls input {
    text-align: center;
}

.field-order-cart-total {
    padding: 12px;
    border-top: 1px solid #d9dee3;
    background: #f8fafc;
}

.field-order-cart-total div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.field-order-cart-total .field-order-grand-total {
    font-size: 1.08rem;
    margin-top: 8px;
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid #d9dee3;
    color: #111827;
}

.field-order-mobile-summary {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    scrollbar-width: thin;
    scrollbar-color: #b8c4d1 #f3f6f9;
    z-index: 1040;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #d9dee3;
    box-shadow: 0 -4px 18px rgba(32, 33, 36, 0.12);
}

@media (max-width: 991.98px) {
    .field-order-main {
        display: block;
        padding: 10px;
    }

    .field-order-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        padding-top: 12px;
        padding-bottom: 96px;
    }

    .field-order-browser {
        display: block;
    }

    .field-order-filter-panel {
        display: none;
    }

    .field-order-category-offcanvas .field-order-category-strip {
        display: grid;
        gap: 8px;
    }

    .field-order-cart-panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1060;
        width: min(420px, 100vw);
        height: 100vh;
        border-radius: 0;
        transform: translateX(105%);
        transition: transform 180ms ease;
        box-shadow: -8px 0 24px rgba(32, 33, 36, 0.2);
    }

    .field-order-cart-panel.is-open {
        transform: translateX(0);
    }
}

@media (max-width: 575.98px) {
    body.field-order-toast-page .toast-main-container {
        top: calc(env(safe-area-inset-top, 0px) + 112px);
    }

    .field-order-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .field-order-mobile-category-button {
        align-items: flex-start;
        flex-direction: column;
    }

    .field-order-mobile-category-button strong {
        text-align: left;
    }

    .field-order-actions {
        width: 100%;
    }

    .field-order-actions .btn {
        flex: 1;
    }

    .field-order-product-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .field-order-product-card {
        grid-template-columns: 86px minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "media main"
            "footer footer"
            "controls controls";
        gap: 8px 10px;
        min-height: 0;
        padding: 9px;
    }

    .field-order-product-media {
        grid-area: media;
        min-height: 86px;
        align-items: center;
    }

    .field-order-product-image {
        width: 86px;
        height: 86px;
    }

    .field-order-product-main {
        grid-area: main;
        min-height: 86px;
        align-items: flex-start;
        justify-content: center;
        text-align: left;
        gap: 7px;
    }

    .field-order-product-name {
        font-size: 0.96rem;
    }

    .field-order-product-price {
        width: auto;
        border: 1px solid #d8e8ff;
        border-radius: 6px;
        padding: 6px 9px;
        font-size: 1rem;
    }

    .field-order-product-footer {
        grid-area: footer;
        padding-top: 7px;
    }

    .field-order-product-controls {
        grid-area: controls;
        margin-top: 0;
    }
}
