﻿:root {
    --pmx-glass: rgba(10,14,20,.62);
    --pmx-glass2: rgba(255,255,255,.05);
    --pmx-bd: rgba(255,255,255,.10);
    --pmx-bd2: rgba(255,255,255,.08);
}

.pmx-glass {
    background: var(--pmx-glass);
    border: 1px solid var(--pmx-bd);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0,0,0,.45);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    overflow: hidden;
    height: min(92vh, 860px);
    display: flex;
    flex-direction: column;
}

.pmx-glass-2 {
    background: var(--pmx-glass2);
    border-color: var(--pmx-bd2) !important;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.pmx-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.pmx-bodywrap {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pmx-tabcontent {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.pmx-pane {
    height: 100%;
    min-height: 0;
}

.pmx-panewrap {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

/* Tabs iguales */
#pmxMainTabs .nav-item {
    flex: 1 1 0;
}

.pmx-pillbtn {
    border-radius: 12px !important;
    font-weight: 900;
    color: rgba(233,238,246,.82) !important;
    background: transparent !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    line-height: 1;
    white-space: nowrap;
    padding: .50rem .55rem !important;
}

    .pmx-pillbtn.active {
        background: rgba(255,255,255,.10) !important;
        border-color: rgba(255,255,255,.26) !important;
        color: rgba(255,255,255,.95) !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 22px rgba(0,0,0,.25) !important;
    }

.pmx-tabtext {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pmx-ico {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

.pmx-btn-glass {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(255,255,255,.92);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

    .pmx-btn-glass:hover {
        background: rgba(255,255,255,.10);
        border-color: rgba(255,255,255,.22);
        color: #fff;
    }

/* Floating label select */
.pmx-floating > label {
    color: rgba(233,238,246,.70) !important;
    font-weight: 800;
    font-size: .78rem;
    padding-top: .55rem;
}

.pmx-select {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    color: rgba(255,255,255,.92) !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important;
}

.pmx-floating > .pmx-select {
    height: 48px !important;
    padding-top: 1.28rem !important;
    padding-bottom: .45rem !important;
}

.pmx-select option {
    color: #0b1020;
}

/* Menú: scroll */
.pmx-products-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-width: thin;
}

    .pmx-products-scroll::-webkit-scrollbar {
        width: 10px;
    }

    .pmx-products-scroll::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.18);
        border-radius: 10px;
    }

    .pmx-products-scroll::-webkit-scrollbar-track {
        background: rgba(255,255,255,.06);
    }

.pmx-grid {
    margin-left: 0;
    margin-right: 0;
}

    .pmx-grid > [class*="col-"] {
        padding-left: .25rem;
        padding-right: .25rem;
    }

/* Cards Menú pequeños */
.pmx-card {
    cursor: pointer;
    user-select: none;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,.22);
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

    .pmx-card:hover {
        transform: translateY(-2px);
        border-color: rgba(255,255,255,.18);
        background: rgba(255,255,255,.05);
    }

.pmx-img {
    height: 86px;
    width: 100%;
    object-fit: cover;
    display: block;
    background: rgba(255,255,255,.06);
}

@media (min-width: 768px) {
    .pmx-img {
        height: 96px;
    }
}

.pmx-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    border-radius: 999px;
    padding: .16rem .42rem;
    font-size: .70rem;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.92);
    font-weight: 900;
}

.pmx-price {
    color: rgba(120,190,255,.95);
    font-weight: 900;
    font-size: .92rem;
}

.pmx-muted {
    color: rgba(233,238,246,.65);
}

/* ===== DETALLE ===== */
.pmx-detailwrap {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.pmx-detail-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
}

    .pmx-detail-scroll::-webkit-scrollbar {
        width: 10px;
    }

    .pmx-detail-scroll::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.18);
        border-radius: 10px;
    }

    .pmx-detail-scroll::-webkit-scrollbar-track {
        background: rgba(255,255,255,.06);
    }

.pmx-detail-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.pmx-item {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    padding: .55rem .6rem;
    transition: border-color .12s ease, background .12s ease;
}

    .pmx-item.is-sent {
        background: rgba(255,193,7,.10);
        border-color: rgba(255,193,7,.30);
    }

    .pmx-item.is-done {
        background: rgba(25,135,84,.10);
        border-color: rgba(25,135,84,.30);
    }

.pmx-item-img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    flex: 0 0 auto;
}

@media (min-width: 576px) {
    .pmx-item-img {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
}

.pmx-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pmx-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: .10rem .40rem;
    font-size: .66rem;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    color: rgba(233,238,246,.82);
    white-space: nowrap;
}

    .pmx-status-badge.is-prep {
        background: rgba(161,161,170,.14);
        border-color: rgba(161,161,170,.22);
    }

    .pmx-status-badge.is-sent {
        background: rgba(255,193,7,.20);
        border-color: rgba(255,193,7,.30);
        color: rgba(255,231,170,.98);
    }

    .pmx-status-badge.is-done {
        background: rgba(34,197,94,.20);
        border-color: rgba(34,197,94,.30);
        color: rgba(200,255,220,.98);
    }

.pmx-xqty {
    font-size: .78rem;
    color: rgba(233,238,246,.55);
}

.pmx-unitprice {
    font-weight: 900;
    color: rgba(120,190,255,.95);
}

.pmx-mini-btn {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.92);
}

    .pmx-mini-btn:hover {
        background: rgba(255,255,255,.14);
        border-color: rgba(255,255,255,.22);
        color: #fff;
    }

    .pmx-mini-btn.is-danger {
        background: rgba(220,53,69,.18);
        border-color: rgba(220,53,69,.28);
        color: rgba(255,180,190,.95);
    }

        .pmx-mini-btn.is-danger:hover {
            background: rgba(220,53,69,.26);
        }

.pmx-sendmark {
    height: 28px;
    padding: 0 .6rem;
    border-radius: 10px;
    border: 1px solid rgba(25,135,84,.28);
    background: rgba(25,135,84,.16);
    color: rgba(189,255,225,.95);
    font-weight: 900;
    font-size: .72rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
    margin-left: auto;
}

    .pmx-sendmark:hover {
        background: rgba(25,135,84,.22);
        border-color: rgba(25,135,84,.38);
        color: #fff;
    }

.pmx-delivered {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: rgba(189,255,225,.95);
    font-weight: 900;
    font-size: .74rem;
    white-space: nowrap;
    margin-left: auto;
}

.pmx-subtitle {
    font-size: .68rem;
    font-weight: 900;
    color: rgba(255,193,7,.92);
    letter-spacing: .2px;
}

.pmx-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .78rem;
    color: rgba(233,238,246,.70);
    padding-left: .55rem;
    gap: .5rem;
}

    .pmx-line .pmx-lineprice {
        color: rgba(255,193,7,.92);
        font-weight: 900;
    }

.pmx-xbtn {
    width: 22px;
    height: 22px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(220,53,69,.28);
    background: rgba(220,53,69,.16);
    color: rgba(255,180,190,.95);
    flex: 0 0 auto;
}

    .pmx-xbtn:hover {
        background: rgba(220,53,69,.24);
        border-color: rgba(220,53,69,.38);
        color: #fff;
    }

.pmx-summary, .pmx-closecard {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    padding: .75rem .8rem;
}

.pmx-warn {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: rgba(255,193,7,.92);
    font-size: .78rem;
    font-weight: 800;
}

/* Footer detalle */
.pmx-detail-footer {
    flex: 0 0 auto;
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.pmx-action {
    border-radius: 12px;
    border: 1px solid rgba(255,193,7,.25);
    background: rgba(255,193,7,.12);
    color: rgba(255,231,170,.98);
    font-weight: 900;
    font-size: .78rem;
    height: 40px;
}

    .pmx-action:hover {
        background: rgba(255,193,7,.18);
        border-color: rgba(255,193,7,.35);
        color: #fff;
    }

.pmx-action-text {
    display: none;
}

@media (min-width: 576px) {
    .pmx-action-text {
        display: inline;
    }

    .pmx-action {
        font-size: .82rem;
        height: 42px;
    }
}

.pmx-action-violet {
    border-color: rgba(111,66,193,.28);
    background: rgba(111,66,193,.16);
    color: rgba(210,190,255,.95);
}

    .pmx-action-violet:hover {
        background: rgba(111,66,193,.22);
        border-color: rgba(111,66,193,.38);
    }

.pmx-action-green {
    border-color: rgba(25,135,84,.28);
    background: rgba(25,135,84,.16);
    color: rgba(189,255,225,.95);
}

    .pmx-action-green:hover {
        background: rgba(25,135,84,.22);
        border-color: rgba(25,135,84,.38);
    }

.pmx-action-blue {
    border-color: rgba(13,110,253,.28);
    background: rgba(13,110,253,.16);
    color: rgba(190,225,255,.95);
}

    .pmx-action-blue:hover {
        background: rgba(13,110,253,.22);
        border-color: rgba(13,110,253,.38);
    }

.pmx-pillcount {
    margin-left: .35rem;
    padding: .05rem .35rem;
    border-radius: 8px;
    font-size: .68rem;
    font-weight: 900;
    background: rgba(255,193,7,.22);
    border: 1px solid rgba(255,193,7,.28);
    color: rgba(255,231,170,.98);
}

/* ===== COMANDAS ===== */
.pmx-com-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-width: thin;
}

    .pmx-com-scroll::-webkit-scrollbar {
        width: 10px;
    }

    .pmx-com-scroll::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.18);
        border-radius: 10px;
    }

    .pmx-com-scroll::-webkit-scrollbar-track {
        background: rgba(255,255,255,.06);
    }

.pmx-com-list {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.pmx-com-card {
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
    padding: .85rem;
}

.pmx-com-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: .12rem .55rem;
    font-size: .74rem;
    font-weight: 900;
    border: 1px solid rgba(255,193,7,.30);
    background: rgba(255,193,7,.20);
    color: rgba(255,231,170,.98);
    text-transform: lowercase;
}

    .pmx-com-badge.is-done {
        border-color: rgba(34,197,94,.30);
        background: rgba(34,197,94,.18);
        color: rgba(200,255,220,.98);
    }

.pmx-com-meta {
    font-size: .76rem;
    color: rgba(233,238,246,.55);
    display: flex;
    align-items: center;
    gap: .35rem;
}

.pmx-com-btn {
    height: 30px;
    padding: 0 .75rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.92);
    font-weight: 900;
    font-size: .76rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
}

    .pmx-com-btn:hover {
        background: rgba(255,255,255,.14);
        border-color: rgba(255,255,255,.22);
        color: #fff;
    }

.pmx-com-line {
    padding: .35rem .55rem;
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .82rem;
}

    .pmx-com-line .qty {
        color: rgba(233,238,246,.55);
        font-weight: 900;
    }

.pmx-com-extra {
    font-size: .72rem;
    color: rgba(255,193,7,.92);
    font-weight: 900;
}


.pmx-com-mod {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .18rem .5rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
    color: #cbd5e1;
    background: rgba(148,163,184,.10);
    border: 1px solid rgba(148,163,184,.18);
    white-space: nowrap;
}




/*TEST*/
.pmx-select::placeholder {
    color: rgba(233,238,246,.45);
}

.pmx-select:focus {
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(120,190,255,.45) !important;
    color: #fff !important;
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.12) !important;
}

textarea.pmx-select {
    min-height: 92px;
    resize: none;
}