.staffView-pos {
    --pos-panel: #fffaf5;
}

.staffView-pos > section > .title {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    padding: 22px 24px;
    border-radius: 20px;
    background: var(--chant-teal);
    color: var(--chant-cream);
}

.staffView-pos > section > .title::after {
    content: 'CAJA';
    position: absolute;
    right: 22px;
    bottom: -22px;
    color: rgba(255,227,199,.08);
    font-family: "Arial Black", Impact, sans-serif;
    font-size: 86px;
    font-weight: 950;
    line-height: 1;
}

.staffView-pos > section > .title h1 {
    position: relative;
    z-index: 1;
    color: var(--chant-cream);
    font-size: clamp(34px,4vw,50px);
}

.staffView-pos > section > .title p {
    position: relative;
    z-index: 1;
    color: rgba(255,227,199,.78);
}

.staffView-pos > section > .title .pill {
    position: relative;
    z-index: 1;
    border: 0;
    background: var(--chant-orange);
    color: var(--chant-ink);
}

.staffView-pos .posgrid {
    grid-template-columns: 150px minmax(0,1fr) 390px;
    gap: 14px;
    align-items: start;
}

.staffView-pos .side {
    position: sticky;
    top: 84px;
    padding: 10px;
    border: 0;
    background: rgba(255,250,245,.95);
    box-shadow: 0 7px 20px rgba(0,120,157,.06);
}

.staffView-pos .side button {
    min-height: 45px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--chant-teal);
    text-align: left;
    font-weight: 900;
}

.staffView-pos .side button:hover {
    background: #eaf7fa;
}

.staffView-pos .side button.active {
    background: var(--chant-orange);
    color: var(--chant-ink);
}

.posCatalog {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.posProductSearch {
    min-height: 52px;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 9px 7px 13px;
    border: 1px solid rgba(0,120,157,.16);
    border-radius: 14px;
    background: var(--chant-white);
    box-shadow: 0 5px 16px rgba(0,0,0,.045);
}

.posSearchIcon {
    color: var(--chant-teal);
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
}

.posProductSearch input {
    min-width: 0;
    padding: 9px 4px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--chant-ink);
    font-size: 15px;
    font-weight: 750;
}

.posProductSearch input::placeholder {
    color: #8b8b86;
    font-weight: 650;
}

.posProductSearch input::-webkit-search-cancel-button {
    display: none;
}

.posProductSearch button {
    width: 34px;
    height: 34px;
    display: none;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #eef7f9;
    color: var(--chant-teal);
    font-size: 22px;
    font-weight: 900;
}

.posProductSearch button.show {
    display: grid;
}

.posSearchEmpty {
    grid-column: 1 / -1;
    min-height: 180px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 5px;
    padding: 20px;
    border: 1px dashed rgba(0,120,157,.25);
    border-radius: 16px;
    background: rgba(255,250,245,.72);
    color: var(--chant-muted);
    text-align: center;
}

.posSearchEmpty b {
    color: var(--chant-teal);
    font-size: 16px;
}

.posSearchEmpty span {
    font-size: 12px;
}

.staffView-pos .products {
    padding: 0;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(165px,1fr));
    gap: 11px;
    box-shadow: none;
}

.staffView-pos .product {
    min-height: 215px;
    overflow: hidden;
    display: grid;
    grid-template-rows: 125px 1fr;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: var(--chant-white);
    box-shadow: 0 5px 16px rgba(0,0,0,.055);
    transition: transform .12s ease, box-shadow .12s ease;
}

.staffView-pos .product:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(0,120,157,.1);
}

.posProductImage {
    width: 100%;
    height: 125px;
    display: block;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg,var(--chant-cream),var(--chant-orange));
}

.posProductImage.posNoImage {
    display: grid;
    place-items: center;
    color: var(--chant-teal);
    font-family: "Arial Black", Impact, sans-serif;
    font-size: 26px;
}

.posProductInfo {
    min-width: 0;
    display: grid;
    align-content: space-between;
    gap: 8px;
    padding: 12px;
    text-align: left;
}

.staffView-pos .product b {
    min-width: 0;
    color: var(--chant-ink);
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
    font-size: 14px;
    line-height: 1.18;
    letter-spacing: 0;
}

.staffView-pos .product span {
    color: var(--chant-teal);
    font-size: 16px;
    font-weight: 950;
}

.staffView-pos .order {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 104px);
    overflow: auto;
    padding: 17px;
    border: 0;
    background: var(--chant-white);
    box-shadow: 0 7px 22px rgba(0,0,0,.07);
}

.posOrderHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,120,157,.12);
}

.posOrderHead small {
    display: block;
    color: var(--chant-orange);
    font-size: 9px;
    font-weight: 950;
    letter-spacing: .12em;
}

.posOrderHead h2 {
    margin: 2px 0 0 !important;
    color: var(--chant-teal) !important;
    font-size: 23px !important;
}

.posCartCount {
    min-width: 38px;
    height: 38px;
    padding: 0 8px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--chant-orange);
    color: var(--chant-ink);
    font-weight: 950;
}

.staffView-pos .line {
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(0,120,157,.1);
}

.staffView-pos .line > span {
    min-width: 0;
}

.staffView-pos .line b {
    color: var(--chant-ink);
}

.staffView-pos .line small {
    color: var(--chant-muted);
}

.staffView-pos .posLineModifiers {
    display: block;
    margin: 4px 0 2px;
    color: var(--chant-teal);
    font-size: 11px;
    font-weight: 900;
}

.staffView-pos .line small button {
    border: 0;
    background: #eef7f9;
    color: var(--chant-teal);
    font-weight: 950;
}

.posTotal {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 13px;
    background: #fff1dc;
}

.posTotal span {
    color: var(--chant-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.posTotal strong {
    color: var(--chant-teal);
    font-family: "Arial Black", Impact, sans-serif;
    font-size: 25px;
    letter-spacing: -.04em;
}

.staffView-pos .seg {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
}

.staffView-pos .seg button {
    min-width: 0;
    border: 1.5px solid rgba(0,120,157,.18);
    border-radius: 10px;
    background: white;
    color: var(--chant-teal);
    padding: 11px 6px;
    font-size: 12px;
}

.staffView-pos .seg button.active {
    border-color: var(--chant-teal);
    background: var(--chant-teal);
    color: white;
}

.staffView-pos .order input,
.staffView-pos .order textarea {
    border: 1.5px solid rgba(0,120,157,.2);
}

.staffView-pos .order textarea {
    min-height: 72px;
}

.staffView-pos #send {
    min-height: 52px;
    border-radius: 13px;
    background: var(--chant-orange);
    font-size: 14px;
}

.staffView-pos #send:disabled {
    opacity: .4;
}

.staffView-pos > section > .block {
    margin-top: 20px;
    border: 0;
    background: rgba(255,250,245,.96);
}

@media (max-width:1100px) {
    .staffView-pos .posgrid {
        grid-template-columns: 130px minmax(0,1fr) 330px;
    }

    .staffView-pos .products {
        grid-template-columns: repeat(auto-fill,minmax(145px,1fr));
    }
}

@media (max-width:900px) {
    .staffView-pos .posgrid {
        grid-template-columns: 1fr;
    }

    .staffView-pos .side {
        position: sticky;
        top: 60px;
        z-index: 20;
        width: 100%;
        display: flex;
        flex-direction: row;
        gap: 7px;
        overflow-x: auto;
        padding: 8px;
        border-radius: 14px;
    }

    .staffView-pos .side button {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 9px 13px;
        white-space: nowrap;
    }

    .staffView-pos .order {
        position: static;
        max-height: none;
    }
}

@media (max-width:620px) {
    .posProductSearch {
        min-height: 48px;
        padding-left: 10px;
    }

    .posProductSearch input {
        font-size: 14px;
    }

    .staffView-pos > section > .title {
        padding: 18px;
        border-radius: 17px;
    }

    .staffView-pos > section > .title h1 {
        font-size: 33px;
    }

    .staffView-pos .products {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 9px;
    }

    .staffView-pos .product {
        min-height: 190px;
        grid-template-rows: 108px 1fr;
    }

    .posProductImage {
        height: 108px;
    }

    .posProductInfo {
        padding: 10px;
    }

    .staffView-pos .product b {
        font-size: 12px;
    }

    .staffView-pos .product span {
        font-size: 14px;
    }

    .staffView-pos .order {
        padding: 14px;
    }

    .staffView-pos .seg {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}