/* Reservation screens (new reservation + edit reservation): menu side (.pos-*) and order side (.cart-*).
   One file so both pages share the same look. */
    /* ══════════ Reservation screen — menu side ══════════ */
    .pos {
        --pos-primary: #2563eb;
        --pos-primary-2: #1d4ed8;
        --pos-ink: #0f172a;
        --pos-muted: #64748b;
        --pos-line: #e2e8f0;
        --pos-soft: #f1f5f9;
        display: flex;
        flex-direction: column;
        gap: 8px;
        height: 100%;
        min-height: 0;
    }
    .pos button { font-family: inherit; cursor: pointer; }

    /* ── header ── */
    .pos-head {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        padding: 6px 8px;
        /* Solid, no backdrop-filter: a filter here would trap the date picker (it opens as a fixed layer)
           inside this bar, and the meal cards below would then cover the calendar. */
        background: #fff;
        border: 1px solid var(--pos-line);
        border-radius: 10px;
        box-shadow: 0 6px 24px rgba(15, 23, 42, .06);
    }
    .pos-flex { flex: 1 1 auto; }

    .pos-member {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 4px 6px 4px 10px;
        border-radius: 11px;
        min-width: 170px;
        max-width: 320px;
        flex: 0 1 auto;
        transition: background .2s ease, box-shadow .2s ease;
    }
    .pos-member.is-guest { background: var(--pos-soft); border: 1px dashed #cbd5e1; }
    .pos-member.is-member {
        background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
        border: 1px solid #c7d2fe;
        box-shadow: 0 4px 14px rgba(37, 99, 235, .12);
    }
    .pos-avatar {
        width: 30px; height: 30px; flex: 0 0 auto;
        border-radius: 10px;
        display: flex; align-items: center; justify-content: center;
        font-weight: 800; font-size: .9rem;
    }
    .is-guest .pos-avatar { background: #e2e8f0; color: #475569; }
    .is-member .pos-avatar {
        background: linear-gradient(135deg, var(--pos-primary) 0%, #7c3aed 100%);
        color: #fff;
        box-shadow: 0 6px 14px rgba(37, 99, 235, .35);
    }
    .pos-member-text { min-width: 0; flex: 1 1 auto; }
    .pos-member-name {
        font-weight: 800; color: var(--pos-ink); font-size: .82rem; line-height: 1.25;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .pos-member-meta {
        color: var(--pos-muted); font-size: .66rem; line-height: 1.3;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .pos-member-x {
        width: 22px; height: 22px; flex: 0 0 auto;
        border: none; border-radius: 10px;
        background: rgba(15, 23, 42, .06); color: #475569;
        display: flex; align-items: center; justify-content: center;
        transition: background .15s ease, color .15s ease;
    }
    .pos-member-x:hover { background: #fee2e2; color: #dc2626; }

    /* member search: one pill holding the mode, the number and the go button */
    .pos-search {
        display: flex;
        align-items: center;
        height: 34px;
        padding: 0 4px;
        background: #fff;
        border: 1.5px solid var(--pos-line);
        border-radius: 10px;
        transition: border-color .15s ease, box-shadow .15s ease;
    }
    .pos-search:focus-within {
        border-color: var(--pos-primary);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
    }
    .pos-search-mode { width: 112px; flex: 0 0 auto; border-inline-end: 1px solid var(--pos-line); }
    .pos-search-input { width: 132px; flex: 0 0 auto; }
    .pos-search .mud-input-outlined-border { border: none !important; }
    .pos-search .mud-input-control { margin: 0 !important; }
    .pos-search .mud-input { font-size: .78rem; }
    .pos-search .mud-input-slot,
    .pos-search input.mud-input-root { padding-top: 5px !important; padding-bottom: 5px !important; }
    .pos-search-go {
        width: 26px; height: 26px; flex: 0 0 auto;
        border: none; border-radius: 8px;
        background: linear-gradient(135deg, var(--pos-primary) 0%, var(--pos-primary-2) 100%);
        color: #fff;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 4px 10px rgba(37, 99, 235, .35);
        transition: transform .12s ease;
    }
    .pos-search-go:hover { transform: scale(1.06); }
    .pos-search-go .mud-icon-root { color: #fff; }

    .pos-ghost {
        display: inline-flex; align-items: center; gap: 6px;
        height: 34px; padding: 0 10px;
        border: 1.5px solid var(--pos-line); border-radius: 10px;
        background: #fff; color: #334155;
        font-weight: 700; font-size: .76rem; white-space: nowrap;
        max-width: 260px; overflow: hidden; text-overflow: ellipsis;
        transition: border-color .15s ease, color .15s ease, background .15s ease;
    }
    .pos-ghost:hover, .pos-ghost-primary { border-color: #bfdbfe; color: var(--pos-primary); background: #eff6ff; }
    .pos-ghost-on { border-color: #bbf7d0; color: #15803d; background: #f0fdf4; }

    .pos-pill {
        display: inline-flex; align-items: center; gap: 6px;
        height: 36px; padding: 0 12px; border-radius: 999px;
        font-weight: 700; font-size: .8rem;
    }
    .pos-pill-info { background: #e0f2fe; color: #075985; }

    /* hall / parcel */
    .pos-seg {
        display: inline-flex;
        padding: 3px;
        background: var(--pos-soft);
        border-radius: 10px;
        height: 34px;
    }
    .pos-seg-btn {
        display: inline-flex; align-items: center; gap: 6px;
        padding: 0 11px;
        border: none; border-radius: 8px;
        background: transparent; color: var(--pos-muted);
        font-weight: 700; font-size: .76rem;
        transition: background .18s ease, color .18s ease, box-shadow .18s ease;
    }
    .pos-seg-btn.on {
        background: #fff; color: var(--pos-primary);
        box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
    }

    .pos-date { width: 132px; flex: 0 0 auto; }
    .pos-date .mud-input-control { margin: 0 !important; }
    .pos-date .mud-input-outlined-border { border-radius: 10px !important; border-color: var(--pos-line) !important; border-width: 1.5px !important; }
    .pos-date .mud-input { font-size: .78rem; font-weight: 700; background: #fff; border-radius: 10px; }
    .pos-date .mud-input-slot,
    .pos-date input.mud-input-root { padding-top: 6px !important; padding-bottom: 6px !important; }

    /* ── meal types ── */
    .pos-mt {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 210px));
        gap: 10px;
    }
    .pos-mt-btn {
        position: relative;
        display: flex; align-items: center; justify-content: flex-start; gap: 8px;
        padding: 6px 10px;
        border: 1.5px solid var(--pos-line);
        border-radius: 12px;
        background: #fff;
        text-align: start;
        transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
    }
    .pos-mt-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .08); }
    .pos-mt-btn.on {
        border-color: transparent;
        background: linear-gradient(135deg, var(--pos-primary) 0%, #4f46e5 100%);
        box-shadow: 0 12px 28px rgba(37, 99, 235, .35);
    }
    .pos-mt-ico {
        width: 28px; height: 28px; flex: 0 0 auto;
        border-radius: 10px;
        background: #eff6ff; color: var(--pos-primary);
        display: flex; align-items: center; justify-content: center;
        transition: background .2s ease, color .2s ease;
    }
    .pos-mt-btn.on .pos-mt-ico { background: rgba(255, 255, 255, .2); color: #fff; }
    .pos-mt-btn.on .pos-mt-ico .mud-icon-root { color: #fff; }
    .pos-mt-text { display: flex; flex-direction: column; min-width: 0; }
    .pos-mt-name { font-weight: 800; font-size: .86rem; color: var(--pos-ink); line-height: 1.2; }
    .pos-mt-desc { font-size: .64rem; color: var(--pos-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .pos-mt-btn.on .pos-mt-name { color: #fff; }
    .pos-mt-btn.on .pos-mt-desc { color: rgba(255, 255, 255, .8); }
    .pos-mt-badge {
        position: absolute; top: -7px; inset-inline-end: -5px;
        min-width: 19px; height: 19px; padding: 0 5px;
        border-radius: 999px;
        background: #ef4444; color: #fff;
        font-weight: 800; font-size: .68rem;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 4px 10px rgba(239, 68, 68, .45), 0 0 0 3px #fff;
    }

    /* ── category + search ── */
    .pos-toolbar {
        display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    }
    .pos-cats {
        display: inline-flex;
        padding: 3px;
        background: #fff;
        border: 1px solid var(--pos-line);
        border-radius: 11px;
    }
    .pos-cat {
        display: inline-flex; align-items: center; gap: 6px;
        height: 28px; padding: 0 11px;
        border: none; border-radius: 8px;
        background: transparent; color: var(--pos-muted);
        font-weight: 700; font-size: .78rem; white-space: nowrap;
        transition: background .18s ease, color .18s ease;
    }
    .pos-cat:hover { color: var(--pos-ink); }
    .pos-cat.on { background: var(--pos-ink); color: #fff; }
    .pos-cat.on .mud-icon-root { color: #fff; }
    .pos-cat-count {
        min-width: 20px; height: 20px; padding: 0 6px;
        border-radius: 999px;
        background: #ef4444; color: #fff;
        font-size: .7rem; font-weight: 800;
        display: inline-flex; align-items: center; justify-content: center;
    }
    .pos-find { flex: 1 1 220px; min-width: 200px; }
    .pos-find .mud-input-control { margin: 0 !important; }
    .pos-find .mud-input { background: #fff; border-radius: 11px; font-size: .8rem; }
    .pos-find .mud-input-outlined-border { border-radius: 11px !important; border-color: var(--pos-line) !important; }

    /* ── items ── */
    .pos-grid-wrap {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 4px 4px 16px 4px;
    }
    .pos-grid-wrap::-webkit-scrollbar { width: 8px; }
    .pos-grid-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
    .pos-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
        gap: 9px;
        padding-top: 8px;
    }
    .pos-card {
        position: relative;
        display: flex; flex-direction: column;
        align-items: stretch;   /* buttons centre their content by default */
        padding: 7px;
        border: 1.5px solid transparent;
        border-radius: 10px;
        background: #fff;
        text-align: start;
        box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
        transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
    }
    .pos-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15, 23, 42, .12); }
    .pos-card:active { transform: scale(.97); }
    .pos-card.on { border-color: var(--pos-primary); box-shadow: 0 10px 26px rgba(37, 99, 235, .2); }
    .pos-card-art {
        height: 52px;
        border-radius: 10px;
        display: flex; align-items: center; justify-content: center;
        margin-bottom: 6px;
    }
    .pos-card-art .mud-icon-root { font-size: 1.5rem; }
    .tone-0 { background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%); color: #e11d48; }
    .tone-1 { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); color: #ea580c; }
    .tone-2 { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); color: #16a34a; }
    .tone-3 { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: #2563eb; }
    .tone-4 { background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%); color: #9333ea; }
    .tone-5 { background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%); color: #ca8a04; }
    .pos-card-name {
        font-weight: 800; font-size: .78rem; color: var(--pos-ink); line-height: 1.35;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
        min-height: 2.5em;
    }
    .pos-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
    .pos-card-price { font-weight: 800; color: var(--pos-primary); font-size: .8rem; }
    .pos-card-price small { font-weight: 600; color: var(--pos-muted); font-size: .68rem; }
    .pos-card-add {
        width: 22px; height: 22px;
        border-radius: 10px;
        background: var(--pos-soft); color: var(--pos-ink);
        display: flex; align-items: center; justify-content: center;
        transition: background .18s ease, color .18s ease;
    }
    .pos-card:hover .pos-card-add, .pos-card.on .pos-card-add { background: var(--pos-primary); color: #fff; }
    .pos-card:hover .pos-card-add .mud-icon-root, .pos-card.on .pos-card-add .mud-icon-root { color: #fff; }
    .pos-card-qty {
        position: absolute; top: -8px; inset-inline-end: -8px;
        min-width: 22px; height: 22px; padding: 0 6px;
        border-radius: 999px;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: #fff;
        font-weight: 800; font-size: .72rem;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 6px 14px rgba(239, 68, 68, .45), 0 0 0 3px #fff;
        animation: pos-pop .22s cubic-bezier(.2, 1.4, .4, 1);
    }
    @keyframes pos-pop { from { transform: scale(.4); } to { transform: scale(1); } }

    /* ── empty states ── */
    /* icons follow the compact sizes */
    .pos-mt-ico .mud-icon-root { font-size: 1.15rem; }
    .pos-avatar .mud-icon-root { font-size: 1.1rem; }
    .pos-card-add .mud-icon-root { font-size: .95rem; }
    .pos-seg-btn .mud-icon-root, .pos-ghost .mud-icon-root, .pos-cat .mud-icon-root, .pos-search-go .mud-icon-root { font-size: 1rem; }
    .pos-find .mud-input-slot, .pos-find input.mud-input-root { padding-top: 6px !important; padding-bottom: 6px !important; }

    .pos-empty {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        padding: 26px 16px; text-align: center;
    }
    .pos-empty-ico {
        width: 58px; height: 58px; border-radius: 18px;
        background: linear-gradient(135deg, #eff6ff 0%, #e0e7ff 100%);
        color: var(--pos-primary);
        display: flex; align-items: center; justify-content: center;
        margin-bottom: 14px;
    }
    .pos-empty-ico .mud-icon-root { font-size: 1.7rem; }
    .pos-empty-title { font-weight: 800; color: var(--pos-ink); font-size: .92rem; }
    .pos-empty-sub { color: var(--pos-muted); font-size: .78rem; margin-top: 4px; }

    @media (prefers-reduced-motion: reduce) {
        .pos-card, .pos-mt-btn, .pos-card-qty { transition: none; animation: none; }
    }
    /* ══════════ Reservation screen — order side ══════════ */
    .cart {
        --cart-primary: #2563eb;
        --cart-ink: #0f172a;
        --cart-muted: #64748b;
        --cart-line: #e2e8f0;
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        background: #fff;
        border: 1px solid var(--cart-line);
        border-radius: 16px;
        box-shadow: 0 10px 34px rgba(15, 23, 42, .08);
        overflow: hidden;
    }
    .cart button { font-family: inherit; cursor: pointer; }

    .cart-head {
        display: flex; align-items: center; gap: 12px;
        padding: 9px 12px;
        border-bottom: 1px solid var(--cart-line);
    }
    .cart-head-ico {
        width: 32px; height: 32px; flex: 0 0 auto;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--cart-primary) 0%, #4f46e5 100%);
        color: #fff;
        display: flex; align-items: center; justify-content: center;
        box-shadow: 0 8px 18px rgba(37, 99, 235, .35);
    }
    .cart-head-ico .mud-icon-root { color: #fff; }
    .cart-head-text { flex: 1 1 auto; min-width: 0; }
    .cart-title { font-weight: 800; font-size: .9rem; color: var(--cart-ink); line-height: 1.2; }
    .cart-customer {
        font-size: .68rem; color: var(--cart-muted);
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .cart-count {
        min-width: 24px; height: 24px; padding: 0 7px;
        border-radius: 999px;
        background: #eff6ff; color: var(--cart-primary);
        font-weight: 800; font-size: .78rem;
        display: flex; align-items: center; justify-content: center;
    }

    .cart-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 8px;
    }
    .cart-body::-webkit-scrollbar { width: 6px; }
    .cart-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }

    .cart-empty {
        height: 100%;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        text-align: center; padding: 24px 12px;
    }
    .cart-empty-ico {
        width: 54px; height: 54px; border-radius: 18px;
        background: #f1f5f9; color: #94a3b8;
        display: flex; align-items: center; justify-content: center;
        margin-bottom: 12px;
    }
    .cart-empty-ico .mud-icon-root { font-size: 1.6rem; }
    .cart-empty-title { font-weight: 800; color: var(--cart-ink); }
    .cart-empty-sub { color: var(--cart-muted); font-size: .84rem; margin-top: 2px; }

    .cart-group { margin-bottom: 8px; }
    .cart-group-head {
        display: flex; align-items: center; gap: 8px;
        padding: 0 4px 5px 4px;
    }
    .cart-group-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cart-primary); box-shadow: 0 0 0 4px #dbeafe; }
    .cart-group-name { font-weight: 800; color: var(--cart-ink); font-size: .82rem; }
    .cart-group-tag { font-size: .68rem; font-weight: 700; color: #075985; background: #e0f2fe; border-radius: 999px; padding: 2px 8px; }
    .cart-group-sum { margin-inline-start: auto; font-weight: 700; color: var(--cart-muted); font-size: .82rem; }

    .cart-line {
        display: flex; align-items: center; gap: 10px;
        padding: 5px 8px;
        margin-bottom: 5px;
        background: #f8fafc;
        border: 1px solid transparent;
        border-radius: 10px;
        transition: border-color .15s ease, background .15s ease;
        animation: cart-in .22s ease both;
    }
    .cart-line:hover { background: #fff; border-color: var(--cart-line); }
    @keyframes cart-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
    .cart-line-main { flex: 1 1 auto; min-width: 0; }
    .cart-line-name {
        font-weight: 700; color: var(--cart-ink); font-size: .8rem;
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .cart-line-sub { display: flex; align-items: center; gap: 6px; font-size: .66rem; color: var(--cart-muted); margin-top: 1px; }
    .cart-kind { font-weight: 700; border-radius: 999px; padding: 1px 8px; font-size: .66rem; }
    .kind-0 { background: #dbeafe; color: #1d4ed8; }
    .kind-1 { background: #ffedd5; color: #c2410c; }
    .kind-2 { background: #dcfce7; color: #15803d; }

    .cart-step {
        display: inline-flex; align-items: center;
        background: #fff;
        border: 1px solid var(--cart-line);
        border-radius: 12px;
        padding: 2px;
        flex: 0 0 auto;
    }
    .cart-step-btn {
        width: 24px; height: 24px;
        border: none; border-radius: 10px;
        background: transparent; color: #334155;
        display: flex; align-items: center; justify-content: center;
        transition: background .15s ease, color .15s ease;
    }
    .cart-step-btn:hover { background: #eff6ff; color: var(--cart-primary); }
    .cart-step-btn.danger:hover { background: #fee2e2; color: #dc2626; }
    .cart-step-qty { min-width: 22px; text-align: center; font-weight: 800; color: var(--cart-ink); font-size: .82rem; }

    .cart-foot {
        padding: 8px 12px 10px 12px;
        border-top: 1px solid var(--cart-line);
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    }
    .cart-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 6px; }
    .cart-stat {
        display: flex; flex-direction: column; align-items: center;
        padding: 4px 4px;
        background: #f1f5f9;
        border-radius: 10px;
    }
    .cart-stat-num { font-weight: 800; font-size: .92rem; color: var(--cart-ink); line-height: 1.1; }
    .cart-stat-lbl { font-size: .62rem; color: var(--cart-muted); }
    .cart-row {
        display: flex; align-items: center; justify-content: space-between;
        font-size: .86rem; color: #334155;
        padding: 4px 2px 8px 2px;
    }
    .cart-total {
        display: flex; align-items: baseline; justify-content: space-between;
        padding: 2px 2px 6px 2px;
    }
    .cart-total-lbl { font-weight: 700; color: var(--cart-muted); }
    .cart-total-num { font-weight: 800; font-size: 1.25rem; color: var(--cart-ink); letter-spacing: -.5px; }
    .cart-total-num small { font-size: .78rem; font-weight: 700; color: var(--cart-muted); }

    .cart-save {
        width: 100%;
        height: 40px;
        display: flex; align-items: center; justify-content: center; gap: 10px;
        border: none; border-radius: 12px;
        background: linear-gradient(135deg, var(--cart-primary) 0%, #4f46e5 100%);
        color: #fff;
        font-weight: 800; font-size: .88rem;
        box-shadow: 0 12px 26px rgba(37, 99, 235, .38);
        transition: transform .14s ease, box-shadow .2s ease, filter .2s ease;
    }
    .cart-save .mud-icon-root { color: #fff; }
    .cart-save:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(37, 99, 235, .45); }
    .cart-save:active:not(:disabled) { transform: scale(.98); }
    .cart-save:disabled { filter: grayscale(.6); opacity: .6; cursor: not-allowed; box-shadow: none; }
    .cart-save .mud-icon-root { font-size: 1.2rem; }
    .cart-head-ico .mud-icon-root { font-size: 1.15rem; }
    .cart-step-btn .mud-icon-root { font-size: .95rem; }
    .cart-save kbd {
        font-family: inherit; font-size: .68rem; font-weight: 700;
        background: rgba(255, 255, 255, .2);
        border-radius: 8px; padding: 2px 8px;
        direction: ltr;
    }

    @media (prefers-reduced-motion: reduce) {
        .cart-line, .cart-save { animation: none; transition: none; }
    }

/* ── pictures on item cards ── */
.pos-card-art { overflow: hidden; }
.pos-card-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ══════════ Edit-reservation page ══════════ */
.pos-edit { max-width: 1800px; margin: 0 auto; padding: 8px 10px; height: auto; box-sizing: border-box; }
.pos-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--pos-ink); font-size: .92rem; white-space: nowrap; }
.pos-title .mud-icon-root { color: var(--pos-primary); font-size: 1.2rem; }

.inv-strip {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--pos-line);
    border-radius: 14px;
    padding: 8px 10px;
}
.inv-strip-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 800; font-size: .82rem; color: var(--pos-ink); }
.inv-list { display: flex; flex-wrap: wrap; gap: 6px; max-height: 118px; overflow-y: auto; padding: 2px; }
.inv-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 10px;
    border: 1.5px solid var(--pos-line); border-radius: 10px;
    background: #fff; color: #334155;
    font-size: .76rem;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.inv-chip:hover { border-color: #bfdbfe; background: #eff6ff; }
.inv-chip.on { border-color: var(--pos-primary); background: #eff6ff; box-shadow: 0 4px 12px rgba(37, 99, 235, .18); }
.inv-no { font-weight: 800; color: var(--pos-primary); }
.inv-tag { font-weight: 700; border-radius: 999px; padding: 1px 8px; font-size: .66rem; }
.inv-tag.hall { background: #dcfce7; color: #15803d; }
.inv-tag.parcel { background: #ffedd5; color: #c2410c; }
.inv-total { font-weight: 800; color: var(--pos-ink); }
.inv-empty { color: var(--pos-muted); font-size: .78rem; }

.pos-edit-grid { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 10px; align-items: start; }
.pos-edit-grid .cart { position: sticky; top: 72px; height: auto; max-height: calc(100vh - 84px); }
.pos-edit-grid .pos { height: auto; }
.pos-edit-grid .pos-grid-wrap { overflow: visible; }

.cart-danger {
    width: 100%; height: 32px; margin-top: 6px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    border: 1.5px solid #fecaca; border-radius: 10px;
    background: #fff; color: #dc2626;
    font-weight: 700; font-size: .78rem;
}
.cart-danger:hover:not(:disabled) { background: #fef2f2; }
.cart-danger:disabled { opacity: .5; cursor: not-allowed; }
.cart-danger .mud-icon-root { font-size: 1rem; }

@media (max-width: 1100px) {
    .pos-edit-grid { grid-template-columns: minmax(0, 1fr); }
    .pos-edit-grid .cart { position: static; max-height: none; }
}
