    :root {
        --bg: #f8fafc;
        --panel: #ffffff;
        --sub: #f1f5f9;
        --text: #0f172a;
        --muted: #64748b;
        --brand: #4f46e5;
        --brandH: #4338ca;
        --brandSoft: rgba(79, 70, 229, .14);
        --ok: #10b981;
        --danger: #ef4444;
        --warn: #f59e0b;
        --pink: #ec4899;
        --border: #e2e8f0;
        --sh-sm: 0 1px 2px rgba(0, 0, 0, .05);
        --sh-md: 0 10px 26px rgba(2, 6, 23, .10);
        --sh-lg: 0 18px 46px rgba(2, 6, 23, .18);
        --r: 16px;
        --r2: 24px;
        --h: 70px;
        --ring: 0 0 0 3px var(--brandSoft);
    }

    [data-theme="dark"] {
        --bg: #0f172a;
        --panel: #1e293b;
        --sub: #334155;
        --text: #f1f5f9;
        --muted: #94a3b8;
        --brand: #6366f1;
        --brandH: #818cf8;
        --brandSoft: rgba(99, 102, 241, .18);
        --border: #334155;
        --sh-sm: none;
        --sh-md: 0 10px 26px rgba(0, 0, 0, .35);
        --sh-lg: 0 18px 46px rgba(0, 0, 0, .55);
    }

    * {
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent
    }

    html,
    body {
        height: 100%
    }

    body {
        margin: 0;
        font-family: "Cairo", Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
        background: var(--bg);
        color: var(--text);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        transition: background .25s, color .25s;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }

    .row {
        display: flex;
        align-items: center
    }

    .between {
        display: flex;
        align-items: center;
        justify-content: space-between
    }

    .col {
        display: flex;
        flex-direction: column
    }

    .muted {
        color: var(--muted)
    }

    /* simple dropdown list (customer search) */
    .dropdown {
        margin-top: 6px;
        border: 1px solid rgba(0, 0, 0, .08);
        border-radius: 14px;
        background: #fff;
        max-height: 240px;
        overflow: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .06)
    }

    .dropdown .item {
        padding: 10px 12px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 2px
    }

    .dropdown .item:hover {
        background: rgba(0, 0, 0, .03)
    }

    .dropdown .item .t {
        font-weight: 700;
        font-size: 13px
    }

    .dropdown .item .s {
        font-size: 12px;
        opacity: .75
    }

    .bold {
        font-weight: 900
    }

    .hidden {
        display: none !important
    }

    /* Buttons */
    .btn {
        border: 0;
        border-radius: 12px;
        padding: 10px 14px;
        font-weight: 900;
        font-size: 14px;
        cursor: pointer;
        transition: transform .15s, background .15s, box-shadow .15s, color .15s, border-color .15s, filter .15s;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        user-select: none;
        letter-spacing: .1px;
    }

    .btn:active {
        transform: scale(.98)
    }

    .btn-primary {
        background: var(--brand);
        color: #fff;
        box-shadow: 0 10px 22px rgba(79, 70, 229, .22)
    }

    .btn-primary:hover {
        background: var(--brandH)
    }

    .btn-ghost {
        background: transparent;
        color: var(--muted)
    }

    .btn-ghost:hover {
        background: var(--sub);
        color: var(--text)
    }

    .btn-outline {
        background: var(--panel);
        border: 1px solid var(--border);
        color: var(--text)
    }

    .btn-outline:hover {
        border-color: rgba(79, 70, 229, .35);
        box-shadow: var(--sh-sm)
    }

    .btn:focus-visible,
    input:focus-visible,
    select:focus-visible {
        outline: none;
        box-shadow: var(--ring);
    }

    .btn-danger {
        background: var(--danger);
        color: #fff
    }

    .icon-btn {
        width: 42px;
        height: 42px;
        padding: 0;
        border-radius: 999px
    }

    .pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: var(--panel);
        font-weight: 900;
        font-size: 12px;
    }

    /* Header */
    header {
        height: var(--h);
        background: var(--panel);
        border-bottom: 1px solid var(--border);
        padding: 0 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 50;
        box-shadow: var(--sh-sm);
        backdrop-filter: blur(6px);
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 12px
    }

    .header-actions {
        flex-wrap: nowrap;
        justify-content: flex-end;
    }

    .mark {
        width: 40px;
        height: 40px;
        border-radius: 14px;
        background: var(--brand);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 950;
        box-shadow: 0 14px 30px rgba(79, 70, 229, .25);
    }

    .status {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 11px;
        font-weight: 950;
        padding: 4px 10px;
        border-radius: 999px;
        background: rgba(16, 185, 129, .14);
        color: var(--ok);
        border: 1px solid rgba(16, 185, 129, .25);
        letter-spacing: .35px;
    }

    /* Layout */
    main {
        flex: 1;
        display: flex;
        overflow: hidden
    }

    /* Catalog */
    #catalog {
        flex: 1;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        position: relative
    }

    .catalog-top {
        position: sticky;
        top: 0;
        z-index: 20;
        background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 70%, rgba(0, 0, 0, 0) 100%);
        padding: 18px 18px 12px;
    }

    .search {
        position: relative;
        width: 100%
    }

    .search input {
        width: 100%;
        padding: 14px 48px 14px 18px;
        border-radius: 16px;
        border: 1px solid var(--border);
        background: var(--panel);
        color: var(--text);
        outline: none;
        box-shadow: var(--sh-sm);
        font-size: 15px;
    }

    .search input:focus {
        border-color: rgba(79, 70, 229, .55);
        box-shadow: var(--ring)
    }

    .search .ico {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--muted)
    }

    .search .clear {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        border-radius: 999px;
        display: none
    }

    .chips {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 12px 2px 6px
    }

    .chips::-webkit-scrollbar {
        display: none
    }

    .chip {
        padding: 9px 14px;
        border-radius: 999px;
        background: var(--panel);
        border: 1px solid var(--border);
        font-weight: 950;
        font-size: 13px;
        color: var(--muted);
        cursor: pointer;
        white-space: nowrap;
        transition: background .15s, color .15s, border-color .15s, transform .15s;
    }

    .chip:hover {
        transform: translateY(-1px)
    }

    .chip[data-on="1"] {
        background: var(--text);
        color: var(--panel);
        border-color: var(--text)
    }

    .catalog-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 2px 6px;
    }

    .meta-count {
        font-variant-numeric: tabular-nums;
        font-weight: 950
    }

    .meta-actions {
        display: flex;
        gap: 8px
    }

    #grid {
        padding: 0 18px 18px;
        overflow: auto;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
        gap: 16px;
    }

    .card {
        background: var(--panel);
        border-radius: var(--r);
        border: 1px solid var(--border);
        box-shadow: var(--sh-sm);
        overflow: hidden;
        cursor: pointer;
        position: relative;
        transition: transform .2s, box-shadow .2s, border-color .2s, filter .2s;
    }

    .card:hover {
        transform: translateY(-4px);
        box-shadow: var(--sh-md);
        border-color: rgba(79, 70, 229, .55)
    }

    .imgbox {
        height: 132px;
        background: var(--sub);
        position: relative;
        overflow: hidden;
    }

    .imgbox img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1.02);
        filter: saturate(1.02);
    }

    .card-body {
        padding: 14px
    }

    .title {
        font-size: 14px;
        font-weight: 950;
        margin-bottom: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .price {
        display: flex;
        align-items: baseline;
        gap: 8px
    }

    .now {
        color: var(--brand);
        font-weight: 950;
        font-size: 16px
    }

    .was {
        color: var(--muted);
        text-decoration: line-through;
        font-size: 12px
    }

    .badge {
        position: absolute;
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        border-radius: 10px;
        font-size: 10px;
        font-weight: 950;
        color: #fff;
        letter-spacing: .35px;
        text-transform: uppercase;
        box-shadow: var(--sh-sm);
        backdrop-filter: blur(6px);
    }

    .badge.promo {
        background: rgba(245, 158, 11, .95);
        color: #111
    }

    .badge.fav {
        background: rgba(236, 72, 153, .95)
    }

    .badge.new {
        background: rgba(79, 70, 229, .92)
    }

    .barcode {
        margin-top: 8px;
        font-size: 11px;
        color: var(--muted);
        display: flex;
        gap: 6px;
        align-items: center;
        font-variant-numeric: tabular-nums;
    }

    .barcode code {
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace
    }

    /* Cart */
    #cart {
        width: 420px;
        background: var(--panel);
        border-left: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        box-shadow: -12px 0 36px rgba(2, 6, 23, .05);
        z-index: 40;
    }

    .cart-top {
        padding: 18px;
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: 0;
        background: var(--panel);
        z-index: 2;
    }

    .cart-close-btn {
        display: none;
    }

    .tabs {
        display: flex;
        gap: 4px;
        background: var(--sub);
        padding: 4px;
        border-radius: 12px;
        margin-top: 12px
    }

    .customer-info {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .meta-chip {
        display: inline-flex;
        align-items: center;
        padding: 6px 10px;
        border: 1px solid var(--border);
        background: var(--bg);
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        color: var(--muted);
    }

    .tab {
        flex: 1;
        text-align: center;
        padding: 8px 6px;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 950;
        color: var(--muted);
        cursor: pointer;
        transition: background .15s, color .15s, box-shadow .15s;
    }

    .tab[data-on="1"] {
        background: var(--panel);
        color: var(--text);
        box-shadow: var(--sh-sm)
    }

    .cart-body {
        flex: 1;
        overflow: hidden;
        display: flex
    }

    .pane {
        flex: 1;
        overflow: auto;
        padding: 14px;
        display: none
    }

    .pane[data-on="1"] {
        display: flex
    }

    .list {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%
    }

    .empty {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 8px;
        color: var(--muted);
        padding: 20px;
        text-align: center;
    }

    .item {
        display: flex;
        gap: 12px;
        padding: 10px;
        border-radius: 14px;
        background: var(--bg);
        border: 1px solid transparent;
        transition: background .15s, border-color .15s;
    }

    .item:hover {
        background: var(--sub);
        border-color: rgba(148, 163, 184, .22)
    }

    .thumb {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        background: var(--sub);
        overflow: hidden;
        flex: 0 0 auto;
    }

    .thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block
    }

    .info {
        flex: 1;
        min-width: 0
    }

    .iname {
        font-weight: 950;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .iprice {
        font-size: 12px;
        color: var(--muted);
        margin-top: 4px
    }

    .qty {
        display: flex;
        align-items: center;
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: 12px;
        overflow: hidden;
        height: 36px;
        width: fit-content;
    }

    .qbtn {
        width: 32px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--muted);
        user-select: none;
        border: 0;
        background: transparent;
        appearance: none;
        -webkit-appearance: none;
    }

    .qbtn:hover {
        background: var(--sub);
        color: var(--brand)
    }

    /* Improve qty buttons appearance and inputs inside .qty */
    .qbtn {
        font-size: 16px;
        line-height: 1;
        padding: 0 8px;
    }

    .qbtn + .qbtn,
    .qty .qval + .qbtn {
        border-left: 1px solid var(--border);
    }

    .qty .qval {
        width: 44px;
        border: 0;
        background: transparent;
        text-align: center;
        font-weight: 950;
        font-size: 13px;
        padding: 0;
        margin: 0;
        appearance: textfield;
        -moz-appearance: textfield;
    }

    .qty .qval::-webkit-outer-spin-button,
    .qty .qval::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .qval {
        width: 28px;
        text-align: center;
        font-weight: 950;
        font-size: 13px
    }

    .qbtn-danger {
        color: var(--danger);
    }

    .qbtn-danger:hover {
        background: rgba(239, 68, 68, .08);
        color: var(--danger);
    }

    .cart-foot {
        padding: 16px 18px;
        border-top: 1px solid var(--border);
        background: var(--panel);
        position: sticky;
        bottom: 0;
        z-index: 2;
    }

    .totals {
        background: var(--bg);
        border: 1px solid rgba(148, 163, 184, .2);
        border-radius: 16px;
        padding: 14px;
        margin-bottom: 12px;
    }

    .trow {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        color: var(--muted);
        margin-bottom: 8px;
    }

    .trow strong {
        color: var(--text)
    }

    .grand {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed rgba(148, 163, 184, .35);
        display: flex;
        justify-content: space-between;
        font-weight: 950;
        font-size: 18px;
        color: var(--text);
    }

    .actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-bottom: 10px
    }

    #payBtn {
        width: 100%;
        height: 56px;
        border-radius: 16px;
        font-size: 16px;
        display: flex;
        justify-content: space-between;
        padding: 0 18px;
    }

    /* Overlays / Modals */
    .overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .6);
        backdrop-filter: blur(6px);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 100;
    }

    .modal {
        width: min(560px, 92vw);
        max-height: 90vh;
        overflow: auto;
        background: var(--panel);
        border: 1px solid var(--border);
        border-radius: var(--r2);
        box-shadow: var(--sh-lg);
        padding: 18px;
        animation: pop .2s ease-out;
    }

    .auth-modal {
        max-width: 560px;
    }

    @keyframes pop {
        from {
            opacity: 0;
            transform: translateY(14px) scale(.98)
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1)
        }
    }

    .mhead {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px
    }

    .mhead h3 {
        margin: 0;
        font-size: 16px
    }

    .field {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px
    }

    .field label {
        font-size: 12px;
        font-weight: 950;
        color: var(--muted)
    }

    .field input,
    .field select {
        width: 100%;
        padding: 12px 12px;
        border-radius: 14px;
        border: 1px solid var(--border);
        background: var(--bg);
        color: var(--text);
        outline: none;
    }

    #custSelectedId,
    #custSelectedPhone {
        background: var(--sub);
        font-weight: 800;
        color: var(--text);
    }

    .field input:focus,
    .field select:focus {
        border-color: rgba(79, 70, 229, .55);
        box-shadow: var(--ring);
        background: var(--panel)
    }

    .switch {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px;
        border-radius: 16px;
        border: 1px solid rgba(148, 163, 184, .18);
        background: var(--bg);
        margin-bottom: 10px;
    }

    .switch span {
        font-weight: 950
    }

    .switch input {
        width: 46px;
        height: 26px
    }

    .grid2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px
    }

    @media (max-width:520px) {
        .grid2 {
            grid-template-columns: 1fr
        }
    }

    /* Payment */
    .pmethods {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 10px 0 14px
    }

    .pm {
        padding: 14px;
        border: 2px solid var(--border);
        border-radius: 16px;
        cursor: pointer;
        text-align: center;
        font-weight: 950;
        color: var(--muted);
        background: var(--bg);
        transition: border-color .15s, background .15s, color .15s;
    }

    .pm[data-on="1"] {
        border-color: rgba(79, 70, 229, .7);
        background: var(--brandSoft);
        color: var(--brand)
    }

    .quick {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
        margin-top: 10px
    }

    .quick .btn {
        padding: 10px 0;
        border-radius: 14px
    }

    @media (max-width:520px) {
        .quick {
            grid-template-columns: repeat(3, 1fr)
        }
    }

    /* Toast */
    #toasts {
        position: fixed;
        bottom: 22px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 200;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .toast {
        background: #111827;
        color: #fff;
        padding: 12px 18px;
        border-radius: 999px;
        font-weight: 950;
        box-shadow: var(--sh-lg);
        display: flex;
        align-items: center;
        gap: 10px;
        animation: up .2s ease-out;
    }

    @keyframes up {
        from {
            opacity: 0;
            transform: translateY(10px)
        }

        to {
            opacity: 1;
            transform: translateY(0)
        }
    }

    /* Fly */
    .fly {
        position: fixed;
        z-index: 9999;
        pointer-events: none;
        width: 52px;
        height: 52px;
        border-radius: 999px;
        background: var(--panel);
        border: 1px solid var(--border);
        box-shadow: var(--sh-md);
        transition: transform .55s cubic-bezier(.2, .8, .2, 1), opacity .55s,
            left .55s cubic-bezier(.2, .8, .2, 1), top .55s cubic-bezier(.2, .8, .2, 1);
        overflow: hidden;
    }

    .fly img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block
    }

    /* Mobile cart drawer */
    .fab {
        display: none;
        position: fixed;
        bottom: 18px;
        right: 18px;
        width: 60px;
        height: 60px;
        border-radius: 999px;
        background: var(--brand);
        color: #fff;
        box-shadow: 0 14px 30px rgba(79, 70, 229, .35);
        align-items: center;
        justify-content: center;
        font-size: 24px;
        z-index: 90;
        cursor: pointer;
        transition: opacity .2s ease, transform .2s ease;
    }

    body.cart-open-mobile .fab {
        opacity: 0;
        transform: translateY(12px) scale(.92);
        pointer-events: none;
    }

    #cartBackdrop {
        display: none;
    }

    .countBadge {
        position: absolute;
        top: -6px;
        right: -6px;
        background: var(--danger);
        color: #fff;
        font-size: 12px;
        font-weight: 950;
        padding: 3px 7px;
        border-radius: 999px;
        border: 2px solid var(--panel);
    }

    @media (max-width:900px) {
        :root {
            --h: 64px;
        }

        header {
            padding: 0 12px;
            gap: 8px;
        }

        .logo .col .row .muted {
            display: none;
        }

        .header-actions {
            gap: 6px !important;
        }

        .icon-btn {
            width: 38px;
            height: 38px;
        }

        #clock {
            display: none;
        }

        .catalog-top {
            padding: 12px 12px 8px;
        }

        .customer-info {
            width: 100%;
            justify-content: flex-start;
            margin-top: 8px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .cart-top .between {
            align-items: stretch;
            gap: 8px;
            flex-wrap: wrap;
        }

        #customerBtn {
            width: 100%;
            justify-content: flex-start;
            min-height: 42px;
            padding: 10px 12px;
            text-align: left;
        }

        #customerBtnName {
            display: inline-block;
            max-width: calc(100% - 92px);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            vertical-align: bottom;
        }

        .meta-chip {
            min-width: 0;
            justify-content: center;
        }

        #customerInfoPhone {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        #cart {
            position: fixed;
            right: 0;
            top: var(--h);
            bottom: 0;
            transform: translateX(100%);
            transition: transform .25s;
            width: 100%;
            max-width: 460px;
            z-index: 95;
        }

        #cart.open {
            transform: translateX(0)
        }

        .fab {
            display: flex
        }

        #cartBackdrop {
            position: fixed;
            inset: var(--h) 0 0 0;
            background: rgba(2, 6, 23, .45);
            backdrop-filter: blur(2px);
            z-index: 88;
            opacity: 0;
            pointer-events: none;
            transition: opacity .2s ease;
        }

        body.cart-open-mobile #cartBackdrop {
            display: block;
            opacity: 1;
            pointer-events: auto;
        }

        .cart-top {
            padding-top: 12px;
        }

        .cart-close-btn {
            display: inline-flex;
            position: absolute;
            top: 8px;
            right: 8px;
            width: 34px;
            height: 34px;
            z-index: 3;
        }

        #grid {
            padding: 0 12px 84px;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .card .imgbox {
            height: 116px;
        }

        .modal {
            width: min(640px, 96vw);
            max-height: 92vh;
            padding: 16px;
        }
    }

    @media (max-width:560px) {
        .overlay {
            align-items: flex-end;
        }

        .modal {
            width: 100vw;
            max-height: calc(100vh - 8px);
            border-radius: 20px 20px 0 0;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
            padding: 14px;
            animation: pop .18s ease-out;
        }

        .search input {
            font-size: 14px;
            padding-top: 12px;
            padding-bottom: 12px;
        }

        .actions {
            grid-template-columns: 1fr;
        }

        .customer-info {
            grid-template-columns: 1fr;
        }

        #payBtn {
            height: 52px;
            font-size: 15px;
        }

        .cart-top,
        .cart-foot {
            padding-left: 14px;
            padding-right: 14px;
        }
    }

    @media (min-width:901px) and (max-width:1200px) {
        #cart {
            width: 390px;
        }

        #grid {
            grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
            gap: 14px;
        }

        .catalog-top {
            padding: 14px 14px 10px;
        }
    }

    /* Print */
    @media print {
        body * {
            visibility: hidden
        }

        #receiptOverlay,
        #receiptOverlay * {
            visibility: visible
        }

        #receiptOverlay {
            position: absolute;
            inset: 0;
            background: #fff
        }

        .modal {
            box-shadow: none;
            border-radius: 0;
            border: 0
        }
    }

    /* === FIX: prevent cards from collapsing (All tab) === */
.card{
  display: flex;
  flex-direction: column;
}

.imgbox{
  flex: 0 0 auto;
}

.card-body{
  flex: 0 0 auto;
  display: block;
}

/* optional safety: prevent title overlay due to line-height issues */
.title{
  display: block;
}
