/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* /Components/Pages/Home.razor.rz.scp.css */
/* ===== ERP Dashboard — uses global --ed-* tokens from app.css ===== */
.erp-dash[b-8gr7w73ayc] {
    padding-bottom: 1.5rem;
}

[data-card="flat"] .erp-dash .ed-kpi[b-8gr7w73ayc],
[data-card="flat"] .erp-dash .ed-metric[b-8gr7w73ayc],
[data-card="flat"] .erp-dash .ed-panel[b-8gr7w73ayc],
[data-card="flat"] .erp-dash .ed-chart-panel[b-8gr7w73ayc],
[data-card="flat"] .erp-dash .ed-tx-panel[b-8gr7w73ayc],
[data-card="flat"] .erp-dash .ed-quick-btn[b-8gr7w73ayc] {
    background: color-mix(in srgb, var(--ed-surface) 92%, var(--ed-bg));
    border-color: transparent;
}

/* Hero */
.ed-hero[b-8gr7w73ayc] {
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.14), transparent 42%),
        linear-gradient(125deg, #0f2a26 0%, #164039 42%, var(--ed-primary) 100%);
    border-radius: var(--ed-radius-lg);
    padding: calc(var(--ed-pad) + 0.35rem) calc(var(--ed-pad) + 0.65rem);
    margin-bottom: var(--ed-gap);
    color: #fff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ed-hero[b-8gr7w73ayc]::after {
    content: '';
    position: absolute;
    inset-inline-end: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.ed-hero-content[b-8gr7w73ayc] {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 220px;
}

.ed-hero-badge[b-8gr7w73ayc] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.28rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.55rem;
}

.ed-hero h1[b-8gr7w73ayc] {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 0.3rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.ed-hero p[b-8gr7w73ayc] {
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    font-size: 0.9rem;
}

.ed-hero-actions[b-8gr7w73ayc] {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ed-date-picker[b-8gr7w73ayc] {
    max-width: 280px;
}

.ed-date-picker .input-group-text[b-8gr7w73ayc] {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-start-start-radius: 10px;
    border-end-start-radius: 10px;
}

.ed-date-picker .form-control[b-8gr7w73ayc] {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-start-end-radius: 10px;
    border-end-end-radius: 10px;
    font-size: 0.85rem;
}

.ed-date-picker .form-control[b-8gr7w73ayc]::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

/* Quick Actions */
.ed-quick-actions[b-8gr7w73ayc] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.7rem;
    margin-bottom: var(--ed-gap);
}

.ed-quick-btn[b-8gr7w73ayc] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    padding: var(--ed-pad) 0.7rem;
    background: var(--ed-surface);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius);
    text-decoration: none;
    color: var(--ed-text);
    font-size: 0.78rem;
    font-weight: 650;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
    box-shadow: var(--ed-shadow);
}

.ed-quick-btn:hover[b-8gr7w73ayc] {
    border-color: rgba(var(--primary-rgb, 31, 79, 70), 0.45);
    color: var(--ed-primary);
    transform: translateY(-2px);
    box-shadow: var(--ed-shadow-hover);
}

.ed-quick-btn i[b-8gr7w73ayc] {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 1rem;
}

.ed-quick-btn.qa-sales i[b-8gr7w73ayc] { background: var(--ed-primary-soft); color: var(--ed-primary); }
.ed-quick-btn.qa-purchase i[b-8gr7w73ayc] { background: var(--ed-danger-soft); color: var(--ed-danger); }
.ed-quick-btn.qa-pos i[b-8gr7w73ayc] { background: var(--ed-success-soft); color: var(--ed-success); }
.ed-quick-btn.qa-reports i[b-8gr7w73ayc] { background: var(--ed-accent-soft); color: var(--ed-accent); }
.ed-quick-btn.qa-customer i[b-8gr7w73ayc] { background: var(--ed-info-soft); color: var(--ed-info); }
.ed-quick-btn.qa-product i[b-8gr7w73ayc] { background: var(--ed-warning-soft); color: var(--ed-warning); }

/* KPI Cards */
.ed-kpi-grid[b-8gr7w73ayc] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--ed-gap);
    margin-bottom: var(--ed-gap);
}

.ed-kpi[b-8gr7w73ayc] {
    background: var(--ed-surface);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius);
    padding: calc(var(--ed-pad) + 0.1rem) var(--ed-pad);
    box-shadow: var(--ed-shadow);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-inline-start: 3px solid transparent;
}

.ed-kpi[b-8gr7w73ayc]::before {
    content: '';
    position: absolute;
    inset-inline-end: -18px;
    top: -18px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(var(--primary-rgb, 31, 79, 70), 0.04);
}

.ed-kpi:hover[b-8gr7w73ayc] {
    transform: translateY(-2px);
    box-shadow: var(--ed-shadow-hover);
}

.ed-kpi.kpi-sales[b-8gr7w73ayc] { border-inline-start-color: var(--ed-primary); }
.ed-kpi.kpi-purchase[b-8gr7w73ayc] { border-inline-start-color: #c2410c; }
.ed-kpi.kpi-receipt[b-8gr7w73ayc] { border-inline-start-color: var(--ed-success); }
.ed-kpi.kpi-payment[b-8gr7w73ayc] { border-inline-start-color: var(--ed-info); }

.ed-kpi-top[b-8gr7w73ayc] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.ed-kpi-icon[b-8gr7w73ayc] {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
}

.kpi-sales .ed-kpi-icon[b-8gr7w73ayc] { background: var(--ed-primary-soft); color: var(--ed-primary); }
.kpi-purchase .ed-kpi-icon[b-8gr7w73ayc] { background: rgba(194, 65, 12, 0.1); color: #c2410c; }
.kpi-receipt .ed-kpi-icon[b-8gr7w73ayc] { background: var(--ed-success-soft); color: var(--ed-success); }
.kpi-payment .ed-kpi-icon[b-8gr7w73ayc] { background: var(--ed-info-soft); color: var(--ed-info); }

.ed-kpi-tag[b-8gr7w73ayc] {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

.ed-kpi-tag.up[b-8gr7w73ayc] { background: var(--ed-success-soft); color: var(--ed-success); }
.ed-kpi-tag.down[b-8gr7w73ayc] { background: var(--ed-danger-soft); color: var(--ed-danger); }

.ed-kpi-label[b-8gr7w73ayc] {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ed-muted);
    margin-bottom: 0.25rem;
}

.ed-kpi-value[b-8gr7w73ayc] {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ed-text);
    line-height: 1.2;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.ed-kpi-sub[b-8gr7w73ayc] {
    font-size: 0.78rem;
    color: var(--ed-muted);
}

/* Metrics Strip */
.ed-metrics[b-8gr7w73ayc] {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.7rem;
    margin-bottom: var(--ed-gap);
}

.ed-metric[b-8gr7w73ayc] {
    background: var(--ed-surface);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius);
    padding: var(--ed-pad) calc(var(--ed-pad) - 0.05rem);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: var(--ed-shadow);
    transition: transform 0.2s;
}

.ed-metric:hover[b-8gr7w73ayc] {
    transform: translateY(-1px);
}

.ed-metric-icon[b-8gr7w73ayc] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ed-metric-label[b-8gr7w73ayc] {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ed-muted);
    margin-bottom: 0.12rem;
}

.ed-metric-value[b-8gr7w73ayc] {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ed-text);
    line-height: 1.2;
}

/* Panel Card */
.ed-panel[b-8gr7w73ayc] {
    background: var(--ed-surface);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius);
    box-shadow: var(--ed-shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ed-panel-header[b-8gr7w73ayc] {
    padding: var(--ed-pad);
    border-bottom: 1px solid var(--ed-border);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ed-text);
}

.ed-panel-icon[b-8gr7w73ayc] {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
}

.ed-panel-body[b-8gr7w73ayc] {
    padding: 0.4rem var(--ed-pad) var(--ed-pad);
    flex: 1;
}

/* Chart */
.ed-chart-panel[b-8gr7w73ayc] {
    background: var(--ed-surface);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius-lg);
    box-shadow: var(--ed-shadow);
    margin-bottom: var(--ed-gap);
    overflow: hidden;
}

.ed-chart-header[b-8gr7w73ayc] {
    padding: var(--ed-pad) calc(var(--ed-pad) + 0.15rem);
    border-bottom: 1px solid var(--ed-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ed-chart-title[b-8gr7w73ayc] {
    font-size: 0.98rem;
    font-weight: 750;
    color: var(--ed-text);
    margin: 0;
}

.ed-chart-sub[b-8gr7w73ayc] {
    font-size: 0.78rem;
    color: var(--ed-muted);
    margin-top: 0.15rem;
}

.ed-legend[b-8gr7w73ayc] {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ed-legend-item[b-8gr7w73ayc] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ed-muted);
}

.ed-legend-dot[b-8gr7w73ayc] {
    width: 9px;
    height: 9px;
    border-radius: 3px;
}

.ed-legend-dot.sales[b-8gr7w73ayc] { background: linear-gradient(135deg, var(--ed-primary), #3d8b7e); }
.ed-legend-dot.purchase[b-8gr7w73ayc] { background: linear-gradient(135deg, #c2410c, #ea580c); }

.ed-year-btn[b-8gr7w73ayc] {
    background: var(--ed-bg);
    border: 1px solid var(--ed-border);
    border-radius: 9px;
    color: var(--ed-text);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ed-year-btn:hover[b-8gr7w73ayc] {
    background: var(--ed-primary);
    color: #fff;
    border-color: var(--ed-primary);
}

.ed-dropdown[b-8gr7w73ayc] {
    position: relative;
}

.ed-dropdown-menu[b-8gr7w73ayc] {
    position: absolute;
    inset-inline-end: 0;
    top: calc(100% + 6px);
    background: var(--ed-surface);
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
    border: 1px solid var(--ed-border);
    min-width: 110px;
    z-index: 1000;
    overflow: hidden;
}

.ed-dropdown-item[b-8gr7w73ayc] {
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ed-text);
    cursor: pointer;
    display: block;
    transition: background 0.15s;
}

.ed-dropdown-item:hover[b-8gr7w73ayc] {
    background: var(--ed-bg);
    color: var(--ed-primary);
}

.ed-chart-body[b-8gr7w73ayc] {
    padding: var(--ed-pad) calc(var(--ed-pad) + 0.15rem);
}

#salesPurchaseChart[b-8gr7w73ayc] {
    width: 100% !important;
    height: 300px !important;
}

[data-density="compact"] #salesPurchaseChart[b-8gr7w73ayc] {
    height: 260px !important;
}

/* Product / Sale Items */
.ed-item[b-8gr7w73ayc] {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--ed-border) 80%, transparent);
}

.ed-item:last-child[b-8gr7w73ayc] {
    border-bottom: none;
}

.ed-item-rank[b-8gr7w73ayc] {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--ed-bg);
    color: var(--ed-muted);
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ed-item-rank.top-1[b-8gr7w73ayc] { background: rgba(180, 83, 9, 0.14); color: #b45309; }
.ed-item-rank.top-2[b-8gr7w73ayc] { background: rgba(100, 116, 139, 0.12); color: #64748b; }
.ed-item-rank.top-3[b-8gr7w73ayc] { background: rgba(154, 52, 18, 0.12); color: #9a3412; }

.ed-item-thumb[b-8gr7w73ayc] {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--ed-bg);
    flex-shrink: 0;
    border: 1px solid var(--ed-border);
}

.ed-item-name[b-8gr7w73ayc] {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--ed-text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ed-item-meta[b-8gr7w73ayc] {
    font-size: 0.74rem;
    color: var(--ed-muted);
}

.ed-stock-bar[b-8gr7w73ayc] {
    height: 4px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--ed-border) 70%, #fff);
    overflow: hidden;
    margin-top: 5px;
}

.ed-stock-fill[b-8gr7w73ayc] {
    height: 100%;
    border-radius: 10px;
}

.stock-critical .ed-stock-fill[b-8gr7w73ayc] { background: linear-gradient(90deg, #c2410c, #ea580c); }
.stock-warning .ed-stock-fill[b-8gr7w73ayc] { background: linear-gradient(90deg, #b45309, #d97706); }
.stock-ok .ed-stock-fill[b-8gr7w73ayc] { background: linear-gradient(90deg, #0f766e, #0891b2); }

.ed-date-chip[b-8gr7w73ayc] {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--ed-muted);
    background: var(--ed-bg);
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ed-pct-badge[b-8gr7w73ayc] {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: var(--ed-success-soft);
    color: var(--ed-success);
    flex-shrink: 0;
}

/* Transactions */
.ed-tx-panel[b-8gr7w73ayc] {
    background: var(--ed-surface);
    border: 1px solid var(--ed-border);
    border-radius: var(--ed-radius-lg);
    box-shadow: var(--ed-shadow);
    overflow: hidden;
}

.ed-tx-header[b-8gr7w73ayc] {
    padding: var(--ed-pad) calc(var(--ed-pad) + 0.15rem);
    border-bottom: 1px solid var(--ed-border);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.ed-tx-tabs[b-8gr7w73ayc] {
    display: flex;
    gap: 0.3rem;
    padding: 0.65rem 1.1rem;
    border-bottom: 1px solid var(--ed-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ed-tx-tabs .nav-link[b-8gr7w73ayc] {
    color: var(--ed-muted);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    white-space: nowrap;
    transition: all 0.2s;
    background: transparent;
}

.ed-tx-tabs .nav-link:hover[b-8gr7w73ayc] {
    color: var(--ed-primary);
    background: var(--ed-primary-soft);
}

.ed-tx-tabs .nav-link.active[b-8gr7w73ayc] {
    color: var(--ed-primary);
    background: var(--ed-primary-soft);
    border-color: rgba(var(--primary-rgb, 31, 79, 70), 0.2);
}

.ed-tx-table thead th[b-8gr7w73ayc] {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ed-muted);
    background: color-mix(in srgb, var(--ed-bg) 88%, var(--ed-surface));
    border: none;
    padding: 0.7rem 1rem;
}

.ed-tx-table tbody td[b-8gr7w73ayc] {
    padding: 0.8rem 1rem;
    vertical-align: middle;
    border-color: color-mix(in srgb, var(--ed-border) 85%, transparent);
    font-size: 0.85rem;
}

.ed-tx-table tbody tr:hover[b-8gr7w73ayc] {
    background: color-mix(in srgb, var(--ed-primary-soft) 55%, transparent);
}

.ed-tx-party[b-8gr7w73ayc] {
    font-weight: 700;
    color: var(--ed-text);
    font-size: 0.85rem;
}

.ed-tx-voucher[b-8gr7w73ayc] {
    font-size: 0.7rem;
    color: var(--ed-muted);
}

.ed-tx-amount[b-8gr7w73ayc] {
    font-weight: 800;
    color: var(--ed-text);
}

.ed-tx-due[b-8gr7w73ayc] {
    font-size: 0.7rem;
    color: var(--ed-danger);
}

.ed-badge-paid[b-8gr7w73ayc] { background: var(--ed-success-soft); color: var(--ed-success); border-radius: 999px; padding: 0.25rem 0.65rem; font-size: 0.68rem; font-weight: 700; }
.ed-badge-partial[b-8gr7w73ayc] { background: var(--ed-warning-soft); color: var(--ed-warning); border-radius: 999px; padding: 0.25rem 0.65rem; font-size: 0.68rem; font-weight: 700; }
.ed-badge-unpaid[b-8gr7w73ayc] { background: var(--ed-danger-soft); color: var(--ed-danger); border-radius: 999px; padding: 0.25rem 0.65rem; font-size: 0.68rem; font-weight: 700; }

/* Empty state */
.ed-empty[b-8gr7w73ayc] {
    text-align: center;
    padding: 2.25rem 1rem;
    color: var(--ed-muted);
}

.ed-empty i[b-8gr7w73ayc] {
    font-size: 1.8rem;
    margin-bottom: 0.55rem;
    opacity: 0.3;
    display: block;
}

.ed-empty p[b-8gr7w73ayc] {
    font-size: 0.85rem;
    margin: 0;
}

/* RTL */
[dir="rtl"] .ed-hero-badge i[b-8gr7w73ayc] {
    transform: scaleX(-1);
}

[dir="rtl"] .ed-date-picker .input-group-text[b-8gr7w73ayc] {
    border-radius: 0;
    border-start-end-radius: 10px;
    border-end-end-radius: 10px;
}

[dir="rtl"] .ed-date-picker .form-control[b-8gr7w73ayc] {
    border-radius: 0;
    border-start-start-radius: 10px;
    border-end-start-radius: 10px;
}

/* Responsive */
@media (max-width: 1200px) {
    .ed-kpi-grid[b-8gr7w73ayc] { grid-template-columns: repeat(2, 1fr); }
    .ed-metrics[b-8gr7w73ayc] { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .ed-hero[b-8gr7w73ayc] { padding: 1.2rem 1.1rem; }
    .ed-hero h1[b-8gr7w73ayc] { font-size: 1.2rem; }
    .ed-kpi-grid[b-8gr7w73ayc] { grid-template-columns: 1fr; }
    .ed-metrics[b-8gr7w73ayc] { grid-template-columns: repeat(2, 1fr); }
    .ed-quick-actions[b-8gr7w73ayc] { grid-template-columns: repeat(3, 1fr); }
    .ed-kpi-value[b-8gr7w73ayc] { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .ed-metrics[b-8gr7w73ayc] { grid-template-columns: 1fr; }
    .ed-quick-actions[b-8gr7w73ayc] { grid-template-columns: repeat(2, 1fr); }
}
/* /Components/Pages/POSPage/PosList.razor.rz.scp.css */
.pos-container[b-n0gnhdyhey] {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 60px);
    background-color: #f5f5f5;
    overflow: hidden;
}

/* Main Content */
.pos-main-content[b-n0gnhdyhey] {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* Products Section (70% width) */
.pos-products-section[b-n0gnhdyhey] {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: #fff;
}

/* Search and Filters */
.pos-search-filters[b-n0gnhdyhey] {
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Products Grid */
.pos-products-grid[b-n0gnhdyhey] {
    flex: 1;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.product-card[b-n0gnhdyhey] {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .product-card:hover[b-n0gnhdyhey] {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    }

.product-image[b-n0gnhdyhey] {
    height: 96px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

    .product-image img[b-n0gnhdyhey] {
        max-height: 100%;
        width: auto;
        object-fit: contain;
    }

.out-of-stock[b-n0gnhdyhey], .low-stock[b-n0gnhdyhey] {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 2px;
    font-size: 10px;
    font-weight: bold;
}

.out-of-stock[b-n0gnhdyhey] {
    background-color: rgba(220, 53, 69, 0.9);
    color: white;
}

.low-stock[b-n0gnhdyhey] {
    background-color: rgba(255, 193, 7, 0.9);
    color: #000;
}

.product-info[b-n0gnhdyhey] {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name[b-n0gnhdyhey] {
    font-size: 12px !important;
    margin-bottom: 4px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price[b-n0gnhdyhey] {
    font-weight: bold;
    color: #0d6efd;
    font-size: 13px;
}

.product-stock[b-n0gnhdyhey] {
    font-size: 11px;
}

/* Order Section (30% width) */
.pos-order-section[b-n0gnhdyhey] {
    flex: 0 0 380px;
    width: 380px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-left: 1px solid #ddd;
    overflow: hidden;
}

[dir="rtl"] .pos-order-section[b-n0gnhdyhey] {
    border-left: none;
    border-right: 1px solid #ddd;
}

/* Order Header */
.order-header[b-n0gnhdyhey] {
    background-color: #0d6efd;
    color: white;
}

    .order-header h6[b-n0gnhdyhey] {
        font-size: 14px;
    }

    .order-header small[b-n0gnhdyhey] {
        font-size: 11px;
    }

/* Order Items */
.order-items[b-n0gnhdyhey] {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #f9f9f9;
}

.order-items-container[b-n0gnhdyhey] {
    max-height: 250px; /* Shows about 5-6 items */
    overflow-y: auto;
}

.order-items-list[b-n0gnhdyhey] {
    padding: 0;
}

.order-item[b-n0gnhdyhey] {
    display: flex;
    align-items: center;
    background-color: #fff;
    margin: 2px;
    border-radius: 3px;
}

.item-info[b-n0gnhdyhey] {
    flex: 2;
    min-width: 0;
}

    .item-info h6[b-n0gnhdyhey] {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .item-info small[b-n0gnhdyhey] {
        font-size: 11px;
    }

.item-qty[b-n0gnhdyhey] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .item-qty input[b-n0gnhdyhey] {
        width: 40px;
        text-align: center;
        font-size: 12px;
        padding: 2px;
    }

    .item-qty button[b-n0gnhdyhey] {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.item-price[b-n0gnhdyhey] {
    flex: 1;
    text-align: right;
    font-size: 13px;
    padding-right: 8px;
}

[dir="rtl"] .item-price[b-n0gnhdyhey] {
    text-align: left;
    padding-right: 0;
    padding-left: 8px;
}

.item-actions[b-n0gnhdyhey] {
    width: 24px;
}

    .item-actions button[b-n0gnhdyhey] {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

/* Empty States */
.empty-cart[b-n0gnhdyhey], .no-customer-selected[b-n0gnhdyhey] {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
}

    .empty-cart i[b-n0gnhdyhey], .no-customer-selected i[b-n0gnhdyhey] {
        color: #ddd;
    }

    .empty-cart h6[b-n0gnhdyhey], .no-customer-selected h6[b-n0gnhdyhey] {
        font-size: 14px;
    }

    .empty-cart p[b-n0gnhdyhey], .no-customer-selected p[b-n0gnhdyhey] {
        font-size: 12px;
    }

/* Order Summary */
.order-summary[b-n0gnhdyhey] {
    background-color: #fff;
}

.summary-row[b-n0gnhdyhey] {
    font-size: 13px;
}

    .summary-row.total[b-n0gnhdyhey] {
        font-size: 14px;
    }

/* Payment Methods */
.payment-methods[b-n0gnhdyhey] {
    background-color: #fff;
}

    .payment-methods h6[b-n0gnhdyhey] {
        font-size: 13px;
    }

.methods-grid[b-n0gnhdyhey] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.method-btn[b-n0gnhdyhey] {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
}

    .method-btn:hover[b-n0gnhdyhey] {
        background-color: #e9ecef;
    }

    .method-btn.active[b-n0gnhdyhey] {
        background-color: #e7f1ff;
        border-color: #86b7fe;
        color: #0d6efd;
    }

    .method-btn i[b-n0gnhdyhey] {
        font-size: 16px;
        margin-bottom: 3px;
    }

/* Action Buttons */
.action-buttons[b-n0gnhdyhey] {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
}

/* Custom scrollbar */
.order-items-container[b-n0gnhdyhey]::-webkit-scrollbar {
    width: 5px;
}

.order-items-container[b-n0gnhdyhey]::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.order-items-container[b-n0gnhdyhey]::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

    .order-items-container[b-n0gnhdyhey]::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* Receipt Modal */
.receipt-content[b-n0gnhdyhey] {
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.receipt-logo[b-n0gnhdyhey] {
    max-height: 50px;
    max-width: 180px;
}

/* Responsive */
@media (max-width: 992px) {
    .pos-container[b-n0gnhdyhey] {
        height: auto;
        min-height: calc(100dvh - 60px);
        overflow: visible;
    }

    .pos-main-content[b-n0gnhdyhey] {
        flex-direction: column;
        overflow: visible;
    }

    .pos-products-section[b-n0gnhdyhey] {
        min-height: 48dvh;
        overflow: visible;
    }

    .pos-products-grid[b-n0gnhdyhey] {
        overflow: visible;
        max-height: none;
    }

    .pos-order-section[b-n0gnhdyhey] {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        border-left: none;
        border-top: 1px solid #ddd;
        overflow: visible;
        position: sticky;
        bottom: 0;
        z-index: 20;
        max-height: 64dvh;
        box-shadow: 0 -12px 24px rgba(15, 23, 42, .12);
    }

    .order-items[b-n0gnhdyhey] {
        min-height: 0;
    }

    .order-items-container[b-n0gnhdyhey] {
        max-height: 22dvh;
    }

    .pos-search-filters .row > [class*="col-"][b-n0gnhdyhey] {
        width: 100%;
    }

    .product-card[b-n0gnhdyhey] {
        min-height: 100%;
    }
}

@media (max-width: 575.98px) {
    .pos-search-filters[b-n0gnhdyhey] {
        padding: 8px !important;
    }

    .pos-products-grid[b-n0gnhdyhey] {
        padding: 8px !important;
    }

    .product-image[b-n0gnhdyhey] {
        height: 82px;
    }

    .product-info[b-n0gnhdyhey],
    .product-card .card-body[b-n0gnhdyhey] {
        padding: 8px !important;
    }

    .product-name[b-n0gnhdyhey] {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        min-height: 34px;
    }

    .order-header[b-n0gnhdyhey],
    .order-customer[b-n0gnhdyhey],
    .order-summary[b-n0gnhdyhey],
    .payment-methods[b-n0gnhdyhey],
    .action-buttons[b-n0gnhdyhey] {
        padding: 8px !important;
    }

    .methods-grid[b-n0gnhdyhey] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .action-buttons[b-n0gnhdyhey] {
        flex-direction: column;
    }

    .action-buttons .btn[b-n0gnhdyhey] {
        width: 100%;
    }
}

@media (max-height: 720px) and (max-width: 992px) {
    .pos-order-section[b-n0gnhdyhey] {
        max-height: 72dvh;
    }

    .order-items-container[b-n0gnhdyhey] {
        max-height: 18dvh;
    }
}

/* RTL layout fixes for POS page */
[dir="rtl"] .pos-search-filters .input-group > .input-group-text:first-child[b-n0gnhdyhey] {
    border-top-right-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

[dir="rtl"] .pos-search-filters .input-group > .form-control[b-n0gnhdyhey] {
    border-radius: 0;
}

[dir="rtl"] .pos-search-filters .input-group > .btn:last-child[b-n0gnhdyhey] {
    border-top-left-radius: 0.375rem !important;
    border-bottom-left-radius: 0.375rem !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

[dir="rtl"] .order-item[b-n0gnhdyhey] {
    direction: rtl;
}

[dir="rtl"] .item-qty[b-n0gnhdyhey] {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .summary-row[b-n0gnhdyhey],
[dir="rtl"] .order-header[b-n0gnhdyhey],
[dir="rtl"] .payment-methods[b-n0gnhdyhey],
[dir="rtl"] .action-buttons[b-n0gnhdyhey] {
    direction: rtl;
}

[dir="rtl"] .action-buttons i[b-n0gnhdyhey] {
    margin-left: 0.25rem;
    margin-right: 0;
}

/* ==========================================================================
   MODERN THEME (Professional) — opt-in via Settings → POS Settings.
   Every rule below is scoped under .pos-theme-modern so the Classic theme
   above is completely untouched; switching back in Settings fully reverts.
   ========================================================================== */

.pos-theme-modern[b-n0gnhdyhey] {
    --pos-primary: #4f46e5;
    --pos-primary-dark: #3730a3;
    --pos-primary-light: #eef2ff;
    --pos-accent: #10b981;
    --pos-danger: #ef4444;
    --pos-warning: #f59e0b;
    --pos-surface: #ffffff;
    --pos-bg: #f4f5fb;
    --pos-border: #e6e8f0;
    --pos-text: #1e293b;
    --pos-text-muted: #7c839a;
    --pos-radius: 14px;
    --pos-radius-sm: 10px;
    --pos-shadow: 0 4px 16px rgba(30, 41, 59, .06);
    --pos-shadow-lg: 0 12px 32px rgba(30, 41, 59, .12);
    background: var(--pos-bg);
    color: var(--pos-text);
}

.pos-theme-modern .pos-products-section[b-n0gnhdyhey] {
    background: var(--pos-bg);
}

/* Search & filters bar */
.pos-theme-modern .pos-search-filters[b-n0gnhdyhey] {
    background: var(--pos-surface) !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--pos-border) !important;
    padding: 14px !important;
}

.pos-theme-modern .pos-search-filters .input-group-text[b-n0gnhdyhey] {
    background: var(--pos-surface) !important;
    border-color: var(--pos-border) !important;
    border-radius: var(--pos-radius-sm) 0 0 var(--pos-radius-sm) !important;
}

.pos-theme-modern .pos-search-filters .form-control[b-n0gnhdyhey],
.pos-theme-modern .pos-search-filters .form-select[b-n0gnhdyhey] {
    border-color: var(--pos-border) !important;
    background: var(--pos-bg) !important;
}

.pos-theme-modern .pos-search-filters .form-control:focus[b-n0gnhdyhey],
.pos-theme-modern .pos-search-filters .form-select:focus[b-n0gnhdyhey] {
    border-color: var(--pos-primary) !important;
    box-shadow: 0 0 0 3px var(--pos-primary-light) !important;
}

.pos-theme-modern .pos-search-filters .btn-outline-secondary[b-n0gnhdyhey] {
    border-color: var(--pos-border) !important;
    border-radius: 0 var(--pos-radius-sm) var(--pos-radius-sm) 0 !important;
}

/* Products grid & cards */
.pos-theme-modern .pos-products-grid[b-n0gnhdyhey] {
    background: var(--pos-bg) !important;
    padding: 16px !important;
}

.pos-theme-modern .product-card[b-n0gnhdyhey] {
    border: 1px solid var(--pos-border) !important;
    border-radius: var(--pos-radius) !important;
    background: var(--pos-surface) !important;
    box-shadow: var(--pos-shadow);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pos-theme-modern .product-card:hover[b-n0gnhdyhey] {
    transform: translateY(-4px);
    box-shadow: var(--pos-shadow-lg) !important;
    border-color: var(--pos-primary) !important;
}

.pos-theme-modern .product-image[b-n0gnhdyhey] {
    background: linear-gradient(180deg, #fafbff 0%, #f1f2f9 100%) !important;
    height: 108px;
}

.pos-theme-modern .product-card .badge[b-n0gnhdyhey] {
    border-radius: 999px;
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .02em;
    padding: 4px 9px;
}

.pos-theme-modern .product-name[b-n0gnhdyhey] {
    font-weight: 600;
    color: var(--pos-text);
}

.pos-theme-modern .product-price[b-n0gnhdyhey] {
    color: var(--pos-primary) !important;
    font-size: 14px !important;
}

.pos-theme-modern .product-stock[b-n0gnhdyhey] {
    background: var(--pos-bg);
    border-radius: 999px;
    padding: 2px 8px;
}

/* Order / cart panel */
.pos-theme-modern .pos-order-section[b-n0gnhdyhey] {
    background: var(--pos-surface) !important;
    border-left: none !important;
    box-shadow: -8px 0 24px rgba(30, 41, 59, .04);
}

[dir="rtl"] .pos-theme-modern .pos-order-section[b-n0gnhdyhey] {
    border-right: none !important;
    box-shadow: 8px 0 24px rgba(30, 41, 59, .04);
}

.pos-theme-modern .order-header[b-n0gnhdyhey] {
    background: linear-gradient(135deg, var(--pos-primary) 0%, var(--pos-primary-dark) 100%) !important;
    padding: 16px !important;
}

.pos-theme-modern .order-header .btn-outline-light[b-n0gnhdyhey] {
    border-radius: 999px;
}

.pos-theme-modern .order-customer[b-n0gnhdyhey] {
    background: var(--pos-surface) !important;
    border-bottom: 1px solid var(--pos-border) !important;
}

.pos-theme-modern .order-items[b-n0gnhdyhey],
.pos-theme-modern .order-items-container[b-n0gnhdyhey] {
    background: var(--pos-bg) !important;
}

.pos-theme-modern .order-item[b-n0gnhdyhey] {
    background: var(--pos-surface) !important;
    border: 1px solid var(--pos-border) !important;
    border-radius: var(--pos-radius-sm) !important;
    box-shadow: var(--pos-shadow);
    margin: 6px 8px !important;
    padding: 10px !important;
}

.pos-theme-modern .item-qty button[b-n0gnhdyhey] {
    border-radius: 999px !important;
    border-color: var(--pos-border) !important;
}

.pos-theme-modern .item-qty input[b-n0gnhdyhey] {
    border: 1px solid var(--pos-border);
    border-radius: var(--pos-radius-sm);
    background: var(--pos-bg);
}

.pos-theme-modern .item-price[b-n0gnhdyhey] {
    color: var(--pos-primary);
}

.pos-theme-modern .item-actions .btn-outline-danger[b-n0gnhdyhey] {
    border-radius: 999px;
}

.pos-theme-modern .empty-cart[b-n0gnhdyhey],
.pos-theme-modern .no-customer-selected[b-n0gnhdyhey] {
    background: var(--pos-bg) !important;
}

.pos-theme-modern .empty-cart i[b-n0gnhdyhey],
.pos-theme-modern .no-customer-selected i[b-n0gnhdyhey] {
    color: var(--pos-border) !important;
}

/* Order summary */
.pos-theme-modern .order-summary[b-n0gnhdyhey] {
    background: var(--pos-surface) !important;
    border-top: 1px solid var(--pos-border) !important;
}

.pos-theme-modern .summary-row.total[b-n0gnhdyhey] {
    background: var(--pos-primary-light);
    border-radius: var(--pos-radius-sm);
    padding: 10px 12px !important;
    border-top: none !important;
    color: var(--pos-primary-dark);
    font-size: 16px !important;
}

/* Payment methods */
.pos-theme-modern .payment-methods[b-n0gnhdyhey] {
    background: var(--pos-surface) !important;
    border-top: 1px solid var(--pos-border) !important;
}

.pos-theme-modern .method-btn[b-n0gnhdyhey] {
    background: var(--pos-bg) !important;
    border: 1px solid var(--pos-border) !important;
    border-radius: var(--pos-radius-sm) !important;
    padding: 10px 6px !important;
}

.pos-theme-modern .method-btn:hover[b-n0gnhdyhey] {
    border-color: var(--pos-primary) !important;
    background: var(--pos-primary-light) !important;
}

.pos-theme-modern .method-btn.active[b-n0gnhdyhey] {
    background: var(--pos-primary) !important;
    border-color: var(--pos-primary) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(79, 70, 229, .3);
}

/* Action buttons */
.pos-theme-modern .action-buttons[b-n0gnhdyhey] {
    background: var(--pos-surface) !important;
    border-top: 1px solid var(--pos-border) !important;
    padding: 14px !important;
}

.pos-theme-modern .action-buttons .btn[b-n0gnhdyhey] {
    border-radius: var(--pos-radius-sm) !important;
    font-weight: 600;
    border: none;
}

.pos-theme-modern .action-buttons .btn-danger[b-n0gnhdyhey] {
    background: var(--pos-surface) !important;
    color: var(--pos-danger) !important;
    border: 1px solid #fecaca !important;
}

.pos-theme-modern .action-buttons .btn-danger:hover[b-n0gnhdyhey] {
    background: #fef2f2 !important;
}

.pos-theme-modern .action-buttons .btn-success[b-n0gnhdyhey] {
    background: linear-gradient(135deg, var(--pos-accent) 0%, #059669 100%) !important;
    box-shadow: 0 6px 16px rgba(16, 185, 129, .32);
}

.pos-theme-modern .action-buttons .btn-success:hover[b-n0gnhdyhey] {
    box-shadow: 0 8px 20px rgba(16, 185, 129, .4);
}

/* Scrollbar */
.pos-theme-modern .order-items-container[b-n0gnhdyhey]::-webkit-scrollbar-thumb {
    background: #c7cbdb;
    border-radius: 999px;
}

/* ==========================================================================
   CLASSIC PRO THEME — opt-in via Settings → POS Settings (PosTheme="ClassicPro").
   Fresh light/teal layout: category rail on the left, product grid in the
   middle, order panel on the right. Fully separate DOM from Classic/Modern
   above — wired to the exact same C# state (productList, salesMaster, Save(),
   CancelOrder(), etc.) so switching themes never risks the checkout logic.
   ========================================================================== */

.posc-root[b-n0gnhdyhey] { height: calc(100dvh - 60px); display: flex; flex-direction: column; background: #eef1f5; color: #0f172a; font-family: inherit; overflow: hidden; }
.posc-main[b-n0gnhdyhey] { flex: 1; display: flex; min-height: 0; }

.posc-products[b-n0gnhdyhey] { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.posc-toolbar[b-n0gnhdyhey] { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #e6e9ee; }
.posc-search[b-n0gnhdyhey] { flex: 1; max-width: 420px; position: relative; display: flex; align-items: center; }
.posc-search i[b-n0gnhdyhey] { position: absolute; inset-inline-start: 12px; color: #94a3b8; font-size: 13px; }
.posc-search input[b-n0gnhdyhey] { width: 100%; height: 38px; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 10px; padding-inline-start: 34px; padding-inline-end: 10px; font-size: 13.5px; }
.posc-select[b-n0gnhdyhey] { height: 38px; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 10px; padding: 0 10px; font-size: 13px; font-weight: 500; }

.posc-body[b-n0gnhdyhey] { flex: 1; display: flex; min-height: 0; }
.posc-cats[b-n0gnhdyhey] { width: 160px; flex: none; background: #fff; border-inline-end: 1px solid #e6e9ee; padding: 10px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.posc-cat[b-n0gnhdyhey] { display: flex; align-items: center; gap: 8px; width: 100%; border: none; background: transparent; border-radius: 10px; padding: 9px 10px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 12.5px; color: #334155; text-align: start; }
.posc-cat.active[b-n0gnhdyhey] { background: #0d9488; color: #fff; }
.posc-cat-name[b-n0gnhdyhey] { flex: 1; }
.posc-cat-count[b-n0gnhdyhey] { font-size: 10.5px; font-weight: 700; color: #94a3b8; }
.posc-cat.active .posc-cat-count[b-n0gnhdyhey] { color: rgba(255,255,255,.8); }

.posc-grid-wrap[b-n0gnhdyhey] { flex: 1; overflow-y: auto; padding: 14px; }
.posc-grid[b-n0gnhdyhey] { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.posc-card[b-n0gnhdyhey] { position: relative; display: flex; flex-direction: column; text-align: start; background: #fff; border: 1px solid #e9edf2; border-radius: 14px; padding: 10px; cursor: pointer; font-family: inherit; transition: transform .1s, box-shadow .12s, border-color .12s; }
.posc-card:hover[b-n0gnhdyhey] { border-color: #0d9488; box-shadow: 0 10px 20px -12px rgba(13,148,136,.5); transform: translateY(-2px); }
.posc-thumb[b-n0gnhdyhey] { position: relative; width: 100%; aspect-ratio: 1.3; border-radius: 10px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; overflow: hidden; }
.posc-thumb img[b-n0gnhdyhey] { width: 100%; height: 100%; object-fit: cover; }
.posc-thumb i[b-n0gnhdyhey] { font-size: 26px; color: #94a3b8; }
.posc-name[b-n0gnhdyhey] { font-weight: 600; font-size: 12.5px; line-height: 1.3; min-height: 32px; color: #0f172a; }
.posc-row[b-n0gnhdyhey] { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; }
.posc-price[b-n0gnhdyhey] { font-weight: 700; font-size: 13px; color: #0f766e; }
.posc-stock[b-n0gnhdyhey] { font-size: 10px; color: #94a3b8; font-weight: 500; }
.posc-qty-pill[b-n0gnhdyhey] { position: absolute; top: 6px; inset-inline-end: 6px; min-width: 20px; height: 20px; padding: 0 5px; background: #0d9488; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.posc-badge[b-n0gnhdyhey] { position: absolute; top: 6px; inset-inline-start: 6px; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 999px; color: #fff; }
.posc-badge-info[b-n0gnhdyhey] { background: #0284c7; }
.posc-badge-danger[b-n0gnhdyhey] { background: #ef4444; }
.posc-badge-warn[b-n0gnhdyhey] { background: #f59e0b; color: #1f2937; }
.posc-empty[b-n0gnhdyhey], .posc-empty-cart[b-n0gnhdyhey] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #94a3b8; padding: 40px 16px; text-align: center; }

.posc-order[b-n0gnhdyhey] { width: 340px; flex: none; background: #fff; border-inline-start: 1px solid #e6e9ee; display: flex; flex-direction: column; min-height: 0; }
.posc-order-head[b-n0gnhdyhey] { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #eef1f5; }
.posc-order-title[b-n0gnhdyhey] { font-weight: 700; font-size: 14.5px; }
.posc-order-sub[b-n0gnhdyhey] { font-size: 10.5px; color: #64748b; }
.posc-resume-btn[b-n0gnhdyhey] { position: relative; height: 32px; padding: 0 11px; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 8px; font-family: inherit; font-weight: 600; font-size: 11.5px; color: #334155; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.posc-held-badge[b-n0gnhdyhey] { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 16px; height: 16px; padding: 0 4px; background: #f59e0b; color: #fff; border-radius: 8px; font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.posc-customer[b-n0gnhdyhey] { flex: none; padding: 8px 14px; border-bottom: 1px solid #eef1f5; }
.posc-lines[b-n0gnhdyhey] { flex: 1; overflow-y: auto; padding: 4px 10px; min-height: 60px; }
.posc-line[b-n0gnhdyhey] { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-radius: 10px; }
.posc-line:hover[b-n0gnhdyhey] { background: #f8fafc; }
.posc-line-info[b-n0gnhdyhey] { flex: 1; min-width: 0; }
.posc-line-name[b-n0gnhdyhey] { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.posc-line-price[b-n0gnhdyhey] { font-size: 10.5px; color: #64748b; }
.posc-line-qty[b-n0gnhdyhey] { display: flex; align-items: center; gap: 5px; flex: none; }
.posc-line-qty button[b-n0gnhdyhey] { width: 22px; height: 22px; border: 1px solid #e2e8f0; background: #fff; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #475569; font-size: 10px; }
.posc-line-qty span[b-n0gnhdyhey] { min-width: 16px; text-align: center; font-weight: 700; font-size: 12px; }
.posc-line-total[b-n0gnhdyhey] { width: 58px; text-align: end; font-weight: 700; font-size: 11.5px; flex: none; }
.posc-line-del[b-n0gnhdyhey] { flex: none; border: none; background: none; color: #ef4444; cursor: pointer; font-size: 11px; padding: 2px 4px; }

.posc-summary[b-n0gnhdyhey] { flex: none; border-top: 1px solid #eef1f5; padding: 12px 14px 14px; background: #fbfcfe; }
.posc-chips[b-n0gnhdyhey] { display: flex; gap: 6px; margin-bottom: 10px; }
.posc-chip[b-n0gnhdyhey] { flex: 1; height: 28px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; color: #475569; font-family: inherit; font-weight: 700; font-size: 11px; cursor: pointer; }
.posc-chip.active[b-n0gnhdyhey] { background: #0f172a; color: #fff; border-color: #0f172a; }
.posc-sumrow[b-n0gnhdyhey] { display: flex; justify-content: space-between; font-size: 11.5px; color: #64748b; margin-bottom: 5px; }
.posc-sum-disc[b-n0gnhdyhey] { color: #ef4444; }
.posc-sumtotal[b-n0gnhdyhey] { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px dashed #dbe2ea; margin-bottom: 12px; font-weight: 700; font-size: 13.5px; }
.posc-sumtotal span:last-child[b-n0gnhdyhey] { font-size: 19px; color: #0f766e; }
.posc-actions[b-n0gnhdyhey] { display: flex; gap: 8px; }
.posc-hold-btn[b-n0gnhdyhey] { width: 44px; flex: none; height: 44px; border: 1px solid #e2e8f0; background: #fff; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #475569; }
.posc-pay-btn[b-n0gnhdyhey] { flex: 1; height: 44px; border: none; border-radius: 12px; background: linear-gradient(135deg, #0d9488, #0f766e); color: #fff; font-family: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.posc-pay-btn:hover[b-n0gnhdyhey] { filter: brightness(1.05); }

.posc-root[b-n0gnhdyhey]  .form-select { border-radius: 10px; }

/* ==========================================================================
   MODERN PRO THEME — opt-in via Settings → POS Settings (PosTheme="ModernPro").
   Fresh dark/purple layout: category pills on top, larger cards, dark order
   panel. Same wiring guarantee as Classic Pro above.
   ========================================================================== */

.posm-root[b-n0gnhdyhey] { height: calc(100dvh - 60px); display: flex; flex-direction: column; background: #0c0e13; color: #e6e8ee; font-family: inherit; overflow: hidden; }

.posm-header[b-n0gnhdyhey] { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.06); }
.posm-search[b-n0gnhdyhey] { flex: 1; max-width: 460px; position: relative; display: flex; align-items: center; }
.posm-search i[b-n0gnhdyhey] { position: absolute; inset-inline-start: 12px; color: #6b7280; font-size: 13px; }
.posm-search input[b-n0gnhdyhey] { width: 100%; height: 40px; border: 1px solid rgba(255,255,255,.09); background: #15181f; border-radius: 11px; padding-inline-start: 34px; padding-inline-end: 10px; font-size: 13.5px; color: #e6e8ee; }
.posm-select[b-n0gnhdyhey] { height: 40px; border: 1px solid rgba(255,255,255,.09); background: #15181f; border-radius: 11px; padding: 0 10px; font-size: 13px; font-weight: 500; color: #e6e8ee; }
.posm-resume-btn[b-n0gnhdyhey] { position: relative; height: 40px; padding: 0 13px; border: 1px solid rgba(255,255,255,.09); background: #15181f; border-radius: 11px; font-family: inherit; font-weight: 600; font-size: 12.5px; color: #e6e8ee; cursor: pointer; display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.posm-held-badge[b-n0gnhdyhey] { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 17px; height: 17px; padding: 0 4px; background: #f59e0b; color: #0c0e13; border-radius: 9px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.posm-pills[b-n0gnhdyhey] { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 16px; overflow-x: auto; border-bottom: 1px solid rgba(255,255,255,.06); }
.posm-pill[b-n0gnhdyhey] { flex: none; display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; border: 1px solid rgba(255,255,255,.08); border-radius: 11px; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 12px; background: #15181f; color: #c7cbd6; }
.posm-pill.active[b-n0gnhdyhey] { background: rgba(139,92,246,.16); border-color: #8b5cf6; color: #fff; }
.posm-pill span[b-n0gnhdyhey] { font-size: 10px; font-weight: 700; color: #6b7280; }
.posm-pill.active span[b-n0gnhdyhey] { color: #a78bfa; }

.posm-main[b-n0gnhdyhey] { flex: 1; display: flex; min-height: 0; }
.posm-grid-wrap[b-n0gnhdyhey] { flex: 1; overflow-y: auto; padding: 16px; }
.posm-grid[b-n0gnhdyhey] { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.posm-card[b-n0gnhdyhey] { position: relative; display: flex; flex-direction: column; text-align: start; background: #15181f; border: 1px solid rgba(255,255,255,.07); border-radius: 15px; padding: 11px; cursor: pointer; font-family: inherit; transition: transform .1s, border-color .12s, box-shadow .12s; }
.posm-card:hover[b-n0gnhdyhey] { border-color: #8b5cf6; box-shadow: 0 12px 26px -14px rgba(139,92,246,.6); transform: translateY(-2px); }
.posm-thumb[b-n0gnhdyhey] { position: relative; width: 100%; aspect-ratio: 1.25; border-radius: 11px; background: rgba(255,255,255,.04); display: flex; align-items: center; justify-content: center; margin-bottom: 9px; overflow: hidden; }
.posm-thumb img[b-n0gnhdyhey] { width: 100%; height: 100%; object-fit: cover; }
.posm-thumb i[b-n0gnhdyhey] { font-size: 28px; color: #4b5563; }
.posm-name[b-n0gnhdyhey] { font-weight: 600; font-size: 12.5px; line-height: 1.3; min-height: 32px; color: #eef0f5; }
.posm-row[b-n0gnhdyhey] { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.posm-price[b-n0gnhdyhey] { font-weight: 700; font-size: 13.5px; color: #a78bfa; }
.posm-stock[b-n0gnhdyhey] { font-size: 10px; color: #6b7280; font-weight: 500; }
.posm-qty-pill[b-n0gnhdyhey] { position: absolute; top: 7px; inset-inline-end: 7px; min-width: 21px; height: 21px; padding: 0 5px; background: #8b5cf6; color: #fff; border-radius: 11px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.posm-badge[b-n0gnhdyhey] { position: absolute; top: 7px; inset-inline-start: 7px; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 999px; color: #fff; }
.posm-badge-info[b-n0gnhdyhey] { background: #0284c7; }
.posm-badge-danger[b-n0gnhdyhey] { background: #ef4444; }
.posm-badge-warn[b-n0gnhdyhey] { background: #f59e0b; color: #1f2937; }
.posm-empty[b-n0gnhdyhey], .posm-empty-cart[b-n0gnhdyhey] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #6b7280; padding: 40px 16px; text-align: center; }

.posm-order[b-n0gnhdyhey] { width: 350px; flex: none; background: #0f1218; border-inline-start: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; min-height: 0; }
.posm-customer[b-n0gnhdyhey] { flex: none; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.posm-lines[b-n0gnhdyhey] { flex: 1; overflow-y: auto; padding: 4px 10px; min-height: 60px; }
.posm-line[b-n0gnhdyhey] { display: flex; align-items: center; gap: 8px; padding: 8px 4px; border-radius: 10px; }
.posm-line:hover[b-n0gnhdyhey] { background: rgba(255,255,255,.03); }
.posm-line-info[b-n0gnhdyhey] { flex: 1; min-width: 0; }
.posm-line-name[b-n0gnhdyhey] { font-weight: 600; font-size: 12px; color: #eef0f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.posm-line-price[b-n0gnhdyhey] { font-size: 10.5px; color: #8b93a7; }
.posm-line-qty[b-n0gnhdyhey] { display: flex; align-items: center; gap: 5px; flex: none; }
.posm-line-qty button[b-n0gnhdyhey] { width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.1); background: #1b1f28; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #c7cbd6; font-size: 10px; }
.posm-line-qty span[b-n0gnhdyhey] { min-width: 16px; text-align: center; font-weight: 700; font-size: 12px; color: #fff; }
.posm-line-total[b-n0gnhdyhey] { width: 58px; text-align: end; font-weight: 700; font-size: 11.5px; flex: none; color: #fff; }
.posm-line-del[b-n0gnhdyhey] { flex: none; border: none; background: none; color: #f87171; cursor: pointer; font-size: 11px; padding: 2px 4px; }

.posm-summary[b-n0gnhdyhey] { flex: none; border-top: 1px solid rgba(255,255,255,.06); padding: 12px 14px 14px; background: #0c0e13; }
.posm-chips[b-n0gnhdyhey] { display: flex; gap: 6px; margin-bottom: 11px; }
.posm-chip[b-n0gnhdyhey] { flex: 1; height: 28px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: #15181f; color: #9aa2b4; font-family: inherit; font-weight: 700; font-size: 11px; cursor: pointer; }
.posm-chip.active[b-n0gnhdyhey] { background: #8b5cf6; color: #fff; border-color: #8b5cf6; }
.posm-sumrow[b-n0gnhdyhey] { display: flex; justify-content: space-between; font-size: 11.5px; color: #8b93a7; margin-bottom: 5px; }
.posm-sum-disc[b-n0gnhdyhey] { color: #f87171; }
.posm-sumtotal[b-n0gnhdyhey] { display: flex; justify-content: space-between; align-items: baseline; padding-top: 9px; border-top: 1px dashed rgba(255,255,255,.12); margin-bottom: 12px; font-weight: 700; font-size: 13.5px; color: #fff; }
.posm-sumtotal span:last-child[b-n0gnhdyhey] { font-size: 20px; color: #a78bfa; }
.posm-actions[b-n0gnhdyhey] { display: flex; gap: 8px; }
.posm-hold-btn[b-n0gnhdyhey] { width: 46px; flex: none; height: 46px; border: 1px solid rgba(255,255,255,.1); background: #15181f; border-radius: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #c7cbd6; }
.posm-pay-btn[b-n0gnhdyhey] { flex: 1; height: 46px; border: none; border-radius: 13px; background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; font-family: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.posm-pay-btn:hover[b-n0gnhdyhey] { filter: brightness(1.08); }

.posm-root[b-n0gnhdyhey]  .form-select { background: #15181f; color: #e6e8ee; border-radius: 10px; }

/* Shared payment modal (used by ClassicPro & ModernPro) */
.pos-pay-overlay[b-n0gnhdyhey] { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 1050; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.pos-pay-modal[b-n0gnhdyhey] { width: 380px; max-width: 92vw; background: #fff; border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(15,23,42,.6); padding: 24px; }
.pos-pay-amount-label[b-n0gnhdyhey] { text-align: center; font-size: 12.5px; color: #64748b; font-weight: 600; margin-bottom: 4px; }
.pos-pay-amount[b-n0gnhdyhey] { text-align: center; font-size: 34px; font-weight: 700; color: #0f766e; margin-bottom: 18px; }
.pos-pay-methods[b-n0gnhdyhey] { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 16px; }
.pos-pay-method[b-n0gnhdyhey] { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 13px 6px; border: 2px solid #e2e8f0; background: #f8fafc; border-radius: 13px; cursor: pointer; font-family: inherit; color: #0f766e; }
.pos-pay-method i[b-n0gnhdyhey] { font-size: 20px; }
.pos-pay-method span[b-n0gnhdyhey] { font-weight: 600; font-size: 11.5px; }
.pos-pay-method:hover:not(:disabled)[b-n0gnhdyhey] { border-color: #0d9488; }
.pos-pay-method:disabled[b-n0gnhdyhey] { opacity: .6; cursor: not-allowed; }
.pos-pay-cancel[b-n0gnhdyhey] { width: 100%; height: 38px; border: none; background: none; color: #64748b; font-family: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }

@media (max-width: 991.98px) {
    .posc-root[b-n0gnhdyhey], .posm-root[b-n0gnhdyhey] { height: auto; min-height: calc(100dvh - 60px); overflow: visible; }
    .posc-main[b-n0gnhdyhey], .posm-main[b-n0gnhdyhey] { flex-direction: column; }
    .posc-order[b-n0gnhdyhey], .posm-order[b-n0gnhdyhey] { width: 100%; border-inline-start: none; border-top: 1px solid rgba(0,0,0,.08); }
    .posc-cats[b-n0gnhdyhey] { width: 100%; flex-direction: row; overflow-x: auto; border-inline-end: none; border-bottom: 1px solid #e6e9ee; }
    .posc-lines[b-n0gnhdyhey], .posm-lines[b-n0gnhdyhey] { max-height: 260px; }
}

@media (max-width: 575.98px) {
    .posc-order[b-n0gnhdyhey], .posm-order[b-n0gnhdyhey] { width: 100%; }
    .posc-grid[b-n0gnhdyhey], .posm-grid[b-n0gnhdyhey] { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); }
    .posc-toolbar[b-n0gnhdyhey], .posm-header[b-n0gnhdyhey] { flex-wrap: wrap; height: auto; row-gap: 8px; }
    .posm-resume-btn[b-n0gnhdyhey] { margin-inline-start: 0; }
    .pos-pay-modal[b-n0gnhdyhey] { width: 92vw; padding: 18px; }
}
/* /Components/Pages/POSPage/RestaurantPos.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════════════
   Restaurant POS — Professional Dark Theme (no CSS variables)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Shell ─────────────────────────────────────────────────────── */
.rpos-shell[b-rivm1hwb3u] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    overflow: hidden;
    font-family: "Cairo", sans-serif;
    background: #f1f5f9;
    direction: rtl;
}

/* ── Top Bar ───────────────────────────────────────────────────── */
.rpos-topbar[b-rivm1hwb3u] {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 62px;
    padding: 0 16px;
    background: #12151f;
    border-bottom: 1px solid #2e3350;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
}
.rpos-topbar[b-rivm1hwb3u]::-webkit-scrollbar { height: 3px; }
.rpos-topbar[b-rivm1hwb3u]::-webkit-scrollbar-thumb { background: #2c3154; border-radius: 2px; }

.rpos-topbar-sep[b-rivm1hwb3u] {
    width: 1px;
    height: 30px;
    background: #2e3350;
    flex-shrink: 0;
}

/* Order Type Buttons */
.rpos-order-types[b-rivm1hwb3u] {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.rpos-type-btn[b-rivm1hwb3u] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1.5px solid #2e3350;
    background: #222740;
    color: #8892b0;
    font-size: 13px;
    font-weight: 600;
    font-family: "Cairo", sans-serif;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.rpos-type-btn i[b-rivm1hwb3u] { font-size: 16px; }
.rpos-type-btn:hover[b-rivm1hwb3u] {
    border-color: #4f6ef7;
    color: #e2e8f0;
    background: #2c3154;
}
.rpos-type-btn.active[b-rivm1hwb3u] {
    background: #4f6ef7;
    border-color: #6b85ff;
    color: #fff;
    box-shadow: 0 4px 14px rgba(79,110,247,.35);
}
.rpos-type-btn.takeaway.active[b-rivm1hwb3u] {
    background: #10b981;
    border-color: #34d399;
    box-shadow: 0 4px 14px rgba(16,185,129,.35);
}
.rpos-type-btn.delivery.active[b-rivm1hwb3u] {
    background: #f59e0b;
    border-color: #fbbf24;
    color: #1a1a1a;
    box-shadow: 0 4px 14px rgba(245,158,11,.35);
}

/* Table Picker */
.rpos-table-picker[b-rivm1hwb3u] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.rpos-table-label[b-rivm1hwb3u] {
    color: #8892b0;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}
.rpos-table-grid[b-rivm1hwb3u] {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    max-width: 260px;
}
.rpos-table-grid[b-rivm1hwb3u]::-webkit-scrollbar { display: none; }

.rpos-table-cell[b-rivm1hwb3u] {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1.5px solid #2e3350;
    background: #222740;
    color: #8892b0;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: "Cairo", sans-serif;
}
.rpos-table-cell:hover[b-rivm1hwb3u] {
    background: #2c3154;
    color: #e2e8f0;
    border-color: #4f6ef7;
}
.rpos-table-cell.sel[b-rivm1hwb3u] {
    background: #4f6ef7;
    border-color: #6b85ff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(79,110,247,.45);
}

/* Search */
.rpos-search-wrap[b-rivm1hwb3u] {
    flex: 1;
    min-width: 160px;
    position: relative;
}
.rpos-search-icon[b-rivm1hwb3u] {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #8892b0;
    font-size: 15px;
    pointer-events: none;
}
.rpos-search-input[b-rivm1hwb3u] {
    width: 100%;
    background: #222740;
    border: 1.5px solid #2e3350;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 13px;
    font-family: "Cairo", sans-serif;
    padding: 8px 36px 8px 12px;
    outline: none;
    transition: border-color .2s, background .2s;
    direction: rtl;
}
.rpos-search-input[b-rivm1hwb3u]::placeholder { color: #8892b0; }
.rpos-search-input:focus[b-rivm1hwb3u] {
    border-color: #4f6ef7;
    background: #2c3154;
}

/* Warehouse Select */
.rpos-warehouse-sel[b-rivm1hwb3u] {
    background: #222740;
    border: 1.5px solid #2e3350;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 13px;
    font-family: "Cairo", sans-serif;
    padding: 7px 10px;
    outline: none;
    direction: rtl;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-color .2s;
}
.rpos-warehouse-sel:focus[b-rivm1hwb3u] { border-color: #4f6ef7; }

/* ── Body ──────────────────────────────────────────────────────── */
.rpos-body[b-rivm1hwb3u] {
    display: flex;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* ── Order Side (FIRST in RTL = right) ────────────────────────── */
.rpos-order-side[b-rivm1hwb3u] {
    width: 370px;
    min-width: 320px;
    max-width: 370px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #1a1e2e;
    border-left: 1px solid #2e3350;
}

/* Order Head */
.rpos-order-head[b-rivm1hwb3u] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #12151f;
    border-bottom: 1px solid #2e3350;
    flex-shrink: 0;
}
.rpos-order-meta[b-rivm1hwb3u] { display: flex; flex-direction: column; gap: 4px; }
.rpos-order-title[b-rivm1hwb3u] { display: flex; align-items: center; gap: 8px; }

.rpos-badge-type[b-rivm1hwb3u] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
}
.rpos-badge-type.dine[b-rivm1hwb3u]  { background: rgba(79,110,247,.2);  color: #818cf8; border: 1px solid rgba(79,110,247,.3); }
.rpos-badge-type.take[b-rivm1hwb3u]  { background: rgba(16,185,129,.2);  color: #34d399; border: 1px solid rgba(16,185,129,.3); }
.rpos-badge-type.del[b-rivm1hwb3u]   { background: rgba(245,158,11,.2);  color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }

.rpos-order-no[b-rivm1hwb3u] { font-size: 12px; color: #8892b0; font-weight: 600; }

.rpos-clear-btn[b-rivm1hwb3u] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(239,68,68,.12);
    border: 1px solid rgba(239,68,68,.25);
    color: #f87171;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: "Cairo", sans-serif;
    cursor: pointer;
    transition: all .15s;
}
.rpos-clear-btn:hover[b-rivm1hwb3u] { background: rgba(239,68,68,.25); border-color: #ef4444; }

/* Customer */
.rpos-customer-wrap[b-rivm1hwb3u] {
    padding: 10px 14px;
    border-bottom: 1px solid #2e3350;
    flex-shrink: 0;
    background: #222740;
}

/* Items Scroll */
.rpos-items-scroll[b-rivm1hwb3u] {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.rpos-items-scroll[b-rivm1hwb3u]::-webkit-scrollbar { width: 4px; }
.rpos-items-scroll[b-rivm1hwb3u]::-webkit-scrollbar-thumb { background: #2c3154; border-radius: 4px; }
.rpos-items-scroll[b-rivm1hwb3u]::-webkit-scrollbar-track { background: transparent; }

.rpos-empty-order[b-rivm1hwb3u] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 140px;
    gap: 6px;
    color: #8892b0;
}
.rpos-empty-order p[b-rivm1hwb3u] { font-size: 14px; font-weight: 600; margin: 0; color: #8892b0; }
.rpos-empty-hint[b-rivm1hwb3u] { font-size: 11px; color: #4b5563; }

.rpos-items-header[b-rivm1hwb3u] {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    padding: 8px 14px;
    font-size: 10px;
    font-weight: 700;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-bottom: 1px solid #2e3350;
    background: #12151f;
}

.rpos-item-row[b-rivm1hwb3u] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid #2e3350;
    transition: background .12s;
}
.rpos-item-row:hover[b-rivm1hwb3u] { background: rgba(255,255,255,.03); }

.rpos-item-info[b-rivm1hwb3u] { flex: 1; min-width: 0; }
.rpos-item-name[b-rivm1hwb3u] {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rpos-item-price[b-rivm1hwb3u] { font-size: 11px; color: #8892b0; margin-top: 2px; }

.rpos-item-ctrl[b-rivm1hwb3u] {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
    background: #222740;
    border: 1px solid #2e3350;
    border-radius: 8px;
    padding: 2px;
}
.rpos-qty-btn[b-rivm1hwb3u] {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #8892b0;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .12s;
    font-family: monospace;
}
.rpos-qty-btn.minus:hover[b-rivm1hwb3u] { background: rgba(239,68,68,.2); color: #f87171; }
.rpos-qty-btn.plus:hover[b-rivm1hwb3u]  { background: rgba(79,110,247,.2); color: #6b85ff; }
.rpos-qty-val[b-rivm1hwb3u] {
    min-width: 26px;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
}

.rpos-item-right[b-rivm1hwb3u] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.rpos-item-total[b-rivm1hwb3u] {
    font-size: 13px;
    font-weight: 800;
    color: #a5b4fc;
    white-space: nowrap;
    min-width: 60px;
    text-align: left;
}
.rpos-del-btn[b-rivm1hwb3u] {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .12s;
    padding: 0;
}
.rpos-del-btn:hover[b-rivm1hwb3u] { background: rgba(239,68,68,.15); color: #ef4444; }

/* Collapse Toggle */
.rpos-collapse-toggle[b-rivm1hwb3u] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: #12151f;
    border: none;
    border-top: 1px solid #2e3350;
    border-bottom: 1px solid #2e3350;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s;
    font-family: "Cairo", sans-serif;
}
.rpos-collapse-toggle:hover[b-rivm1hwb3u] { background: #1a1e2e; }

.rpos-collapse-summary[b-rivm1hwb3u] {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8892b0;
    font-size: 13px;
}
.rpos-collapse-summary i[b-rivm1hwb3u] { font-size: 15px; color: #4f6ef7; }
.rpos-collapse-summary strong[b-rivm1hwb3u] {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    margin-right: 4px;
}

.rpos-collapse-icon[b-rivm1hwb3u] {
    color: #8892b0;
    font-size: 16px;
    transition: transform .25s ease;
}

/* Collapsible Panel */
.rpos-bottom-panel[b-rivm1hwb3u] {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
    flex-shrink: 0;
}
.rpos-bottom-panel.open[b-rivm1hwb3u] {
    max-height: 600px;
}

/* Kitchen Notes */
.rpos-notes-wrap[b-rivm1hwb3u] {
    padding: 10px 14px;
    border-top: 1px solid #2e3350;
    flex-shrink: 0;
}
.rpos-notes-label[b-rivm1hwb3u] {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}
.rpos-notes-input[b-rivm1hwb3u] {
    width: 100%;
    background: #222740;
    border: 1.5px solid #2e3350;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 12px;
    font-family: "Cairo", sans-serif;
    padding: 8px 10px;
    resize: none;
    outline: none;
    direction: rtl;
    transition: border-color .2s;
    line-height: 1.5;
}
.rpos-notes-input[b-rivm1hwb3u]::placeholder { color: #4b5563; }
.rpos-notes-input:focus[b-rivm1hwb3u] { border-color: #4f6ef7; }

/* Totals */
.rpos-totals[b-rivm1hwb3u] {
    padding: 12px 14px;
    border-top: 1px solid #2e3350;
    flex-shrink: 0;
    background: #222740;
}
.rpos-total-line[b-rivm1hwb3u] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 6px;
}
.rpos-total-label[b-rivm1hwb3u] { color: #8892b0; }
.rpos-total-val[b-rivm1hwb3u] { color: #e2e8f0; font-weight: 600; }
.rpos-total-val.tax[b-rivm1hwb3u] { color: #f59e0b; }

.rpos-discount-row[b-rivm1hwb3u] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 13px;
}
.rpos-disc-inputs[b-rivm1hwb3u] { display: flex; gap: 6px; }
.rpos-disc-field[b-rivm1hwb3u] {
    display: flex;
    align-items: center;
    background: #1a1e2e;
    border: 1.5px solid #2e3350;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color .2s;
}
.rpos-disc-field:focus-within[b-rivm1hwb3u] { border-color: #4f6ef7; }
.rpos-disc-input[b-rivm1hwb3u] {
    width: 50px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 12px;
    font-family: "Cairo", sans-serif;
    padding: 5px 6px;
    outline: none;
    text-align: center;
}
.rpos-disc-prefix[b-rivm1hwb3u],
.rpos-disc-suffix[b-rivm1hwb3u] {
    font-size: 11px;
    color: #8892b0;
    padding: 0 7px;
    background: #2c3154;
    align-self: stretch;
    display: flex;
    align-items: center;
}
.rpos-disc-prefix[b-rivm1hwb3u] { border-left: 1px solid #2e3350; }
.rpos-disc-suffix[b-rivm1hwb3u] { border-right: 1px solid #2e3350; }

.rpos-grand-line[b-rivm1hwb3u] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #2e3350;
    font-size: 15px;
    font-weight: 700;
    color: #e2e8f0;
    margin-top: 4px;
}
.rpos-grand-val[b-rivm1hwb3u] {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.5px;
}

/* Payment */
.rpos-payment[b-rivm1hwb3u] {
    padding: 10px 14px;
    border-top: 1px solid #2e3350;
    flex-shrink: 0;
}
.rpos-pay-label[b-rivm1hwb3u] {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #8892b0;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}
.rpos-pay-grid[b-rivm1hwb3u] {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
.rpos-pay-btn[b-rivm1hwb3u] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border-radius: 8px;
    border: 1.5px solid #2e3350;
    background: #222740;
    color: #8892b0;
    font-size: 10px;
    font-weight: 700;
    font-family: "Cairo", sans-serif;
    cursor: pointer;
    transition: all .15s;
}
.rpos-pay-btn i[b-rivm1hwb3u] { font-size: 16px; }
.rpos-pay-btn:hover[b-rivm1hwb3u] {
    border-color: #4f6ef7;
    color: #6b85ff;
    background: rgba(79,110,247,.1);
}
.rpos-pay-btn.active[b-rivm1hwb3u] {
    background: rgba(79,110,247,.2);
    border-color: #4f6ef7;
    color: #818cf8;
    box-shadow: 0 0 0 2px rgba(79,110,247,.2);
}

/* Action Buttons */
.rpos-actions[b-rivm1hwb3u] {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid #2e3350;
    flex-shrink: 0;
    background: #12151f;
}
.rpos-btn-hold[b-rivm1hwb3u] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    height: 48px;
    border-radius: 8px;
    border: 1.5px solid #2e3350;
    background: #222740;
    color: #8892b0;
    font-size: 13px;
    font-weight: 700;
    font-family: "Cairo", sans-serif;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.rpos-btn-hold:hover[b-rivm1hwb3u] {
    border-color: #f59e0b;
    color: #f59e0b;
    background: rgba(245,158,11,.1);
}
.rpos-btn-pay[b-rivm1hwb3u] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 16px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, #4f6ef7, #3b52d4);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    font-family: "Cairo", sans-serif;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 16px rgba(79,110,247,.4);
}
.rpos-btn-pay:hover:not(:disabled)[b-rivm1hwb3u] {
    box-shadow: 0 6px 22px rgba(79,110,247,.55);
    transform: translateY(-1px);
}
.rpos-btn-pay:disabled[b-rivm1hwb3u] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.rpos-btn-pay strong[b-rivm1hwb3u] { font-size: 15px; }

/* ── Menu Side (SECOND in RTL = left, fills remaining) ─────────── */
.rpos-menu-side[b-rivm1hwb3u] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f1f5f9;
}

/* Category Tabs */
.rpos-cats-wrap[b-rivm1hwb3u] {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}
.rpos-cats[b-rivm1hwb3u] {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
}
.rpos-cats[b-rivm1hwb3u]::-webkit-scrollbar { height: 3px; }
.rpos-cats[b-rivm1hwb3u]::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }

.rpos-cat[b-rivm1hwb3u] {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 18px;
    border-radius: 50px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    font-family: "Cairo", sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: all .18s ease;
    flex-shrink: 0;
}
.rpos-cat:hover[b-rivm1hwb3u] {
    border-color: #4f6ef7;
    color: #4f6ef7;
    background: #eef2ff;
}
.rpos-cat.active[b-rivm1hwb3u] {
    background: #4f6ef7;
    border-color: #4f6ef7;
    color: #fff;
    box-shadow: 0 4px 12px rgba(79,110,247,.3);
}
.rpos-cat-icon[b-rivm1hwb3u] { font-size: 20px; line-height: 1; }
.rpos-cat-name[b-rivm1hwb3u] { font-size: 11px; }

/* Offers Tab — fixed special styling */
.rpos-cat-offers[b-rivm1hwb3u] {
    border-color: #f59e0b !important;
    color: #d97706 !important;
    background: #fffbeb !important;
    position: relative;
}
.rpos-cat-offers:hover[b-rivm1hwb3u] {
    border-color: #f59e0b !important;
    color: #b45309 !important;
    background: #fef3c7 !important;
}
.rpos-cat-offers.active[b-rivm1hwb3u] {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border-color: #f59e0b !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(245,158,11,.4) !important;
}
.rpos-offers-badge[b-rivm1hwb3u] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 3px;
    vertical-align: middle;
    line-height: 1;
}
.rpos-cat-offers.active .rpos-offers-badge[b-rivm1hwb3u] {
    background: rgba(255,255,255,.35);
}

/* Product Grid */
.rpos-products[b-rivm1hwb3u] {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 12px;
    align-content: start;
}
.rpos-products[b-rivm1hwb3u]::-webkit-scrollbar { width: 5px; }
.rpos-products[b-rivm1hwb3u]::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.rpos-products[b-rivm1hwb3u]::-webkit-scrollbar-track { background: transparent; }

/* Empty State */
.rpos-empty-menu[b-rivm1hwb3u] {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 60px 20px;
    color: #94a3b8;
    text-align: center;
}
.rpos-empty-icon[b-rivm1hwb3u] { font-size: 52px; line-height: 1; }
.rpos-empty-title[b-rivm1hwb3u] { font-size: 16px; font-weight: 700; color: #64748b; margin: 0; }
.rpos-empty-sub[b-rivm1hwb3u] { font-size: 13px; margin: 0; }

/* Product Card */
.rpos-card[b-rivm1hwb3u] {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: 0 1px 4px rgba(0,0,0,.07), 0 4px 12px rgba(0,0,0,.04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    display: flex;
    flex-direction: column;
}
.rpos-card:hover[b-rivm1hwb3u] {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(79,110,247,.18);
    border-color: #4f6ef7;
}
.rpos-card.out-of-stock[b-rivm1hwb3u] { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }
.rpos-card.out-of-stock:hover[b-rivm1hwb3u] {
    transform: none;
    box-shadow: 0 1px 4px rgba(0,0,0,.07);
    border-color: transparent;
}

.rpos-card-img-wrap[b-rivm1hwb3u] {
    position: relative;
    aspect-ratio: 4/3;
    background: #f1f5f9;
    overflow: hidden;
}
.rpos-card-img[b-rivm1hwb3u] {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}
.rpos-card:hover .rpos-card-img[b-rivm1hwb3u] { transform: scale(1.07); }

.rpos-badge-oos[b-rivm1hwb3u] {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
}

.rpos-badge-offer[b-rivm1hwb3u] {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(239,68,68,.4);
    letter-spacing: .3px;
}

.rpos-card.on-offer[b-rivm1hwb3u] {
    border-color: #fde68a;
}
.rpos-card.on-offer:hover[b-rivm1hwb3u] {
    border-color: #f59e0b;
    box-shadow: 0 8px 28px rgba(245,158,11,.2);
}

.rpos-card-mrp[b-rivm1hwb3u] {
    font-size: 11px;
    color: #94a3b8;
    text-decoration: line-through;
    text-align: right;
    margin-top: -2px;
}

.rpos-card-price.offer-price[b-rivm1hwb3u] {
    color: #ef4444;
    font-size: 15px;
}

.rpos-card-body[b-rivm1hwb3u] {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.rpos-card-name[b-rivm1hwb3u] {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: right;
}
.rpos-card-foot[b-rivm1hwb3u] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.rpos-card-price[b-rivm1hwb3u] {
    font-size: 14px;
    font-weight: 800;
    color: #4f6ef7;
}
.rpos-add-btn[b-rivm1hwb3u] {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: #4f6ef7;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, transform .1s;
    padding: 0;
    flex-shrink: 0;
}
.rpos-add-btn:hover[b-rivm1hwb3u] { background: #3b52d4; transform: scale(1.1); }
.rpos-add-btn:disabled[b-rivm1hwb3u] { background: #cbd5e1; cursor: not-allowed; transform: none; }

/* ── Receipt Modal ─────────────────────────────────────────────── */
.rpos-modal-overlay[b-rivm1hwb3u] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.rpos-modal-box[b-rivm1hwb3u] {
    background: #fff;
    border-radius: 16px;
    width: 340px;
    max-width: 95vw;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    display: flex;
    flex-direction: column;
    direction: rtl;
}
.rpos-modal-head[b-rivm1hwb3u] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #4f6ef7;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}
.rpos-modal-close[b-rivm1hwb3u] {
    background: rgba(255,255,255,.2);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
    font-size: 14px;
}
.rpos-modal-close:hover[b-rivm1hwb3u] { background: rgba(255,255,255,.35); }
.rpos-modal-body[b-rivm1hwb3u] { padding: 16px; overflow-y: auto; max-height: 60vh; }
.rpos-modal-foot[b-rivm1hwb3u] {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}
.rpos-modal-btn[b-rivm1hwb3u] {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 13px;
    font-weight: 700;
    font-family: "Cairo", sans-serif;
    cursor: pointer;
    transition: all .15s;
}
.rpos-modal-btn.secondary[b-rivm1hwb3u] { background: #e2e8f0; color: #475569; }
.rpos-modal-btn.secondary:hover[b-rivm1hwb3u] { background: #cbd5e1; }
.rpos-modal-btn.primary[b-rivm1hwb3u] { background: #4f6ef7; color: #fff; box-shadow: 0 3px 10px rgba(79,110,247,.3); }
.rpos-modal-btn.primary:hover[b-rivm1hwb3u] { background: #3b52d4; }

/* Receipt */
.rpos-receipt[b-rivm1hwb3u] { font-family: monospace; direction: rtl; text-align: center; }
.rpos-receipt-brand[b-rivm1hwb3u] { font-size: 18px; font-weight: 900; color: #1e293b; margin-bottom: 4px; }
.rpos-receipt-meta[b-rivm1hwb3u] { display: flex; justify-content: space-between; font-size: 11px; color: #64748b; }
.rpos-receipt-table[b-rivm1hwb3u] { font-size: 13px; font-weight: 700; color: #4f6ef7; margin-top: 6px; }
.rpos-receipt-divider[b-rivm1hwb3u] { border: none; border-top: 1px dashed #e2e8f0; margin: 10px 0; }
.rpos-receipt-row[b-rivm1hwb3u] { display: flex; justify-content: space-between; font-size: 12px; color: #334155; padding: 3px 0; }
.rpos-receipt-note[b-rivm1hwb3u] { font-size: 11px; color: #64748b; text-align: right; margin-bottom: 8px; }
.rpos-receipt-total[b-rivm1hwb3u] { display: flex; justify-content: space-between; font-size: 15px; font-weight: 900; color: #1e293b; padding-top: 8px; border-top: 2px solid #1e293b; }

/* ── Print ─────────────────────────────────────────────────────── */
@media print {
    .rpos-shell[b-rivm1hwb3u] { display: none !important; }
}

/* ── Mobile layout ─────────────────────────────────────────────── */
@media (max-width: 992px) {
    .rpos-shell[b-rivm1hwb3u] {
        height: auto;
        min-height: calc(100dvh - 60px);
        overflow: visible;
    }

    .rpos-topbar[b-rivm1hwb3u] {
        height: auto;
        min-height: 58px;
        padding: 8px;
        align-items: stretch;
        gap: 8px;
    }

    .rpos-order-types[b-rivm1hwb3u],
    .rpos-table-picker[b-rivm1hwb3u],
    .rpos-search-wrap[b-rivm1hwb3u] {
        min-width: max-content;
    }

    .rpos-search-wrap[b-rivm1hwb3u] {
        flex: 1 0 240px;
    }

    .rpos-body[b-rivm1hwb3u] {
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .rpos-menu-side[b-rivm1hwb3u] {
        order: 1;
        overflow: visible;
    }

    .rpos-order-side[b-rivm1hwb3u] {
        order: 2;
        position: sticky;
        bottom: 0;
        z-index: 25;
        max-height: 68dvh;
        box-shadow: 0 -16px 32px rgba(15, 23, 42, .20);
    }

    .rpos-products[b-rivm1hwb3u] {
        overflow: visible;
        grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
        padding: 10px;
        gap: 10px;
    }

    .rpos-cats[b-rivm1hwb3u] {
        padding: 8px 10px;
    }

    .rpos-card-img-wrap[b-rivm1hwb3u] {
        aspect-ratio: 1 / .78;
    }

    .rpos-items-scroll[b-rivm1hwb3u] {
        max-height: 22dvh;
    }

    .rpos-bottom-panel[b-rivm1hwb3u] {
        max-height: 0;
    }

    .rpos-bottom-panel.open[b-rivm1hwb3u] {
        max-height: 34dvh;
        overflow-y: auto;
    }

    .rpos-actions[b-rivm1hwb3u] {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
}

@media (max-width: 575.98px) {
    .rpos-topbar[b-rivm1hwb3u] {
        padding: 7px;
    }

    .rpos-type-btn[b-rivm1hwb3u] {
        padding: 7px 10px;
        font-size: 12px;
    }

    .rpos-type-btn span[b-rivm1hwb3u],
    .rpos-table-label[b-rivm1hwb3u] {
        font-size: 12px;
    }

    .rpos-search-wrap[b-rivm1hwb3u] {
        flex-basis: 210px;
    }

    .rpos-warehouse-sel[b-rivm1hwb3u] {
        min-width: 132px;
    }

    .rpos-products[b-rivm1hwb3u] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 8px;
        gap: 8px;
    }

    .rpos-cat[b-rivm1hwb3u] {
        padding: 7px 12px;
    }

    .rpos-card-body[b-rivm1hwb3u] {
        padding: 8px;
    }

    .rpos-card-name[b-rivm1hwb3u] {
        font-size: 12px;
    }

    .rpos-card-price[b-rivm1hwb3u] {
        font-size: 13px;
    }

    .rpos-order-head[b-rivm1hwb3u],
    .rpos-customer-wrap[b-rivm1hwb3u],
    .rpos-actions[b-rivm1hwb3u] {
        padding-inline: 10px;
    }

    .rpos-item-row[b-rivm1hwb3u] {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .rpos-item-ctrl[b-rivm1hwb3u],
    .rpos-item-right[b-rivm1hwb3u] {
        justify-content: space-between;
    }

    .rpos-actions[b-rivm1hwb3u] {
        grid-template-columns: 1fr;
    }
}
