/*
 * RLUM POS — Design System v3.1
 * Target: SaaS POS modern (mockup ChatGPT 29-Jun-2026)
 * Primary: #2563EB | Font: Inter | Radius: 16px | Shadow: halus
 *
 * SCOPE: #rlum-pos-wrap — zero leak ke halaman lain
 * KOMPATIBEL: Semua class & ID lama dipertahankan penuh.
 */

/* ════════════════════════════════════════════
   DESIGN TOKENS SCOPE KASIR
════════════════════════════════════════════ */
#rlum-pos-wrap {
    --c-primary:      #2563EB;
    --c-primary-h:    #1D4ED8;
    --c-primary-s:    #EFF6FF;
    --c-primary-b:    #BFDBFE;
    --c-success:      #10B981;
    --c-success-s:    #ECFDF5;
    --c-danger:       #EF4444;
    --c-danger-s:     #FEF2F2;
    --c-warning:      #F59E0B;
    --c-warning-s:    #FFFBEB;
    --c-bg:           #F8FAFC;
    --c-surface:      #FFFFFF;
    --c-surface-2:    #F1F5F9;
    --c-border:       #E2E8F0;
    --c-border-2:     #F1F5F9;
    --c-text:         #0F172A;
    --c-text-2:       #475569;
    --c-text-3:       #94A3B8;
    
    --c-cart-w:       360px;
    --c-radius:       16px;
    --c-radius-md:    12px;
    --c-radius-sm:    8px;
    --c-shadow-sm:    0 1px 2px rgba(0,0,0,.05);
    --c-shadow:       0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -1px rgba(0,0,0,.03);
    --c-shadow-lg:    0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    --c-font:         'Inter', system-ui, -apple-system, sans-serif;
    --c-t:            .15s ease;
}

/* ── Dark mode ── */
#rlum-pos-wrap.dark-mode {
    --c-bg:       #0F172A;
    --c-surface:  #1E293B;
    --c-surface-2:#1A2438;
    --c-border:   #334155;
    --c-border-2: #253145;
    --c-text:     #F1F5F9;
    --c-text-2:   #94A3B8;
    --c-text-3:   #64748B;
    --c-primary-s:#1E3A5F;
    --c-success-s:#064E3B;
}

/* ════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════ */
#rlum-pos-wrap,
#rlum-pos-wrap * { box-sizing: border-box; margin: 0; padding: 0; }

#rlum-pos-wrap {
    display: flex; flex-direction: column;
    width: 100%; height: 100%; min-height: 100vh;
    background: var(--c-bg); color: var(--c-text);
    font-size: 14px; line-height: 1.5;
    font-family: var(--c-font); max-width: none;
}

/* ── HEADER ── */
.pos-header {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--c-surface); border-bottom: 1px solid var(--c-border);
    padding: 0 24px; height: 72px; flex-shrink: 0;
    position: sticky; top: 0; z-index: 100;
}
.pos-header-left { display: flex; align-items: center; gap: 16px; }
.pos-title { font-size: 20px; font-weight: 800; color: var(--c-text); line-height: 1.2; }
.pos-subtitle { font-size: 12px; color: var(--c-text-3); font-weight: 500; margin-top: 2px; }
.pos-header-actions { display: flex; align-items: center; gap: 12px; }
.pos-icon-btn {
    width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--c-border); background: var(--c-surface);
    color: var(--c-text-2); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--c-t); text-decoration: none;
}
.pos-icon-btn:hover { background: var(--c-bg); color: var(--c-primary); }
.pos-logout-btn { background: #FFF7ED; color: #EA580C; border-color: #FFEDD5; }
.pos-logout-btn:hover { background: #EA580C; color: #fff; }

/* ── TABBAR ── */
.pos-tabbar {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--c-surface); border-bottom: 1px solid var(--c-border);
    padding: 0 24px; height: 56px; flex-shrink: 0;
    position: sticky; top: 72px; z-index: 99;
}
.pos-tabbar-tabs { display: flex; align-items: center; gap: 16px; height: 100%; }
.pos-tab-btn {
    display: flex; align-items: center; gap: 8px;
    border: none; background: transparent;
    color: var(--c-text-3); font-size: 14px; font-weight: 600;
    cursor: pointer; height: 100%; position: relative;
    border-bottom: 3px solid transparent; padding: 0 4px;
    font-family: var(--c-font); transition: color var(--c-t);
}
.pos-tab-btn.active { color: var(--c-primary); border-bottom-color: var(--c-primary); }

.pos-tabbar-stats { display: flex; align-items: center; gap: 24px; }
.pos-stat-chip { display: flex; align-items: center; gap: 12px; }
.pos-stat-chip-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--c-success-s); color: var(--c-success);
}
.pos-stat-chip-label { font-size: 11px; color: var(--c-text-3); font-weight: 600; }
.pos-stat-chip-val { font-size: 15px; font-weight: 800; color: var(--c-text); line-height: 1.2; }

/* TAB SYSTEM */
.pos-tab-content { display: none; flex: 1; min-height: 0; overflow: hidden; }
.pos-tab-content.active { display: flex; flex-direction: column; }
.pos-layout {
    display: grid; grid-template-columns: 1fr var(--c-cart-w);
    flex: 1; min-height: 0; overflow: hidden;
}

/* ════════════════════════════════════════════
   KIRI: PRODUK
════════════════════════════════════════════ */
.pos-products {
    display: flex; flex-direction: column;
    background: var(--c-bg); padding: 24px;
    overflow: hidden; min-height: 0; gap: 20px;
}

/* Toolbar */
.pos-products-toolbar { display: flex; flex-direction: column; gap: 16px; flex-shrink: 0; }
.pos-toolbar-row-1 { display: flex; align-items: center; gap: 12px; }
.pos-search-wrap {
    flex: 1; display: flex; align-items: center;
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--c-radius-md); padding: 0 16px; height: 48px;
    box-shadow: var(--c-shadow-sm); transition: border-color var(--c-t);
}
.pos-search-wrap:focus-within { border-color: var(--c-primary); }
.pos-search-icon { color: var(--c-text-3); margin-right: 12px; }
.pos-search { flex: 1; border: none; outline: none; font-size: 14px; font-family: var(--c-font); color: var(--c-text); background: transparent; }
.pos-cat-select {
    height: 48px; padding: 0 16px; border: 1px solid var(--c-border);
    border-radius: var(--c-radius-md); font-size: 14px; font-weight: 500; font-family: var(--c-font);
    background: var(--c-surface); color: var(--c-text); outline: none; cursor: pointer;
    min-width: 180px; box-shadow: var(--c-shadow-sm); transition: border-color var(--c-t);
}
.pos-cat-select:focus { border-color: var(--c-primary); }
.pos-scan-btn {
    display: flex; align-items: center; gap: 8px;
    height: 48px; padding: 0 20px; border: 1px solid var(--c-primary);
    border-radius: var(--c-radius-md); background: var(--c-surface);
    color: var(--c-primary); font-size: 14px; font-weight: 600; font-family: var(--c-font);
    cursor: pointer; box-shadow: var(--c-shadow-sm); transition: background var(--c-t);
}
.pos-scan-btn:hover { background: var(--c-primary-s); }

/* Filter Pills */
.pos-filter-pills { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pos-filter-pills::-webkit-scrollbar { display: none; }
.pos-filter-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; border-radius: 99px; font-family: var(--c-font);
    border: 1px solid var(--c-border); background: var(--c-surface);
    color: var(--c-text-2); font-size: 13px; font-weight: 600;
    cursor: pointer; white-space: nowrap; box-shadow: var(--c-shadow-sm); transition: var(--c-t);
}
.pos-filter-pill:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pos-filter-pill.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }

/* 2-Kolom Layout (Panel + Grid) */
.pos-products-inner { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.pos-produk-row { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; flex: 1; min-height: 0; }

/* Panel Kiri: Transaksi Baru */
.pos-quick-panel {
    background: var(--c-surface); border-radius: var(--c-radius);
    padding: 24px; display: flex; flex-direction: column; gap: 16px;
    box-shadow: var(--c-shadow); border: 1px solid var(--c-border-2);
}
.pos-quick-title { font-size: 16px; font-weight: 800; color: var(--c-text); }
.pos-quick-sub { font-size: 12px; color: var(--c-text-3); line-height: 1.5; }
.pos-scan-box {
    border: 2px dashed #CBD5E1; border-radius: var(--c-radius-md);
    padding: 32px 16px; display: flex; flex-direction: column;
    align-items: center; gap: 12px; cursor: pointer;
    background: #F8FAFC; text-align: center; transition: border-color var(--c-t);
}
.pos-scan-box:hover { border-color: var(--c-primary); }
.pos-scan-box-text { font-size: 12px; color: var(--c-text-3); font-weight: 500; }
.pos-quick-or { text-align: center; font-size: 12px; color: var(--c-text-3); position: relative; }
.pos-quick-or::before, .pos-quick-or::after { content: ''; position: absolute; top: 50%; width: 30%; height: 1px; background: var(--c-border); }
.pos-quick-or::before { left: 0; } .pos-quick-or::after { right: 0; }
.pos-pilih-btn {
    width: 100%; padding: 14px; background: var(--c-primary); color: #fff; font-family: var(--c-font);
    border: none; border-radius: var(--c-radius-md); font-size: 14px; font-weight: 700;
    cursor: pointer; box-shadow: 0 4px 12px rgba(37,99,235,0.2); transition: background var(--c-t);
}
.pos-pilih-btn:hover { background: var(--c-primary-h); }

/* Input Manual di Panel Kiri */
.pos-manual-wrap {
    border-top: 1px solid var(--c-border); padding-top: 16px;
    display: flex; flex-direction: column; gap: 8px;
}
.pos-manual-title { font-size: 11px; font-weight: 700; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .4px; }
.pos-input {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--c-border); border-radius: var(--c-radius-sm);
    font-size: 13px; font-family: var(--c-font); background: var(--c-surface); color: var(--c-text);
    transition: border-color var(--c-t), box-shadow var(--c-t); outline: none;
}
.pos-input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.pos-btn-add {
    padding: 10px 16px; background: var(--c-primary-s); color: var(--c-primary);
    border: 1px solid var(--c-primary-b); border-radius: var(--c-radius-sm);
    font-size: 13px; font-weight: 700; cursor: pointer; font-family: var(--c-font); transition: var(--c-t);
}
.pos-btn-add:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }

/* Grid Produk Kanan */
.pos-produk-section {
    background: var(--c-surface); border-radius: var(--c-radius);
    padding: 24px; display: flex; flex-direction: column;
    box-shadow: var(--c-shadow); border: 1px solid var(--c-border-2);
    height: 100%; min-height: 0;
}
.pos-products-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.pos-products-section-title { font-size: 16px; font-weight: 800; }
.pos-view-toggle { display: flex; gap: 8px; }
.pos-view-btn {
    width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--c-border);
    background: var(--c-surface); color: var(--c-text-3); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--c-t);
}
.pos-view-btn:hover { background: var(--c-bg); color: var(--c-primary); }
.pos-view-btn.active { background: var(--c-primary-s); color: var(--c-primary); border-color: var(--c-primary-s); }

.pos-products-scroll-area { flex: 1; overflow-y: auto; padding-right: 4px; }
.pos-products-scroll-area::-webkit-scrollbar { width: 4px; }
.pos-products-scroll-area::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 4px; }

/* Grid Default (3 Baris Presisi) */
#pos-produk-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

/* List View Modifiers */
#pos-produk-grid.list-view { grid-template-columns: 1fr; gap: 12px; }
#pos-produk-grid.list-view .pos-produk-card { flex-direction: row; align-items: center; padding: 10px; }
#pos-produk-grid.list-view .pos-produk-img-wrap { width: 72px; height: 72px; aspect-ratio: 1 / 1; flex-shrink: 0; border-radius: var(--c-radius-sm); padding: 0; }
#pos-produk-grid.list-view .pos-produk-body { flex: 1; padding: 0 16px; }
#pos-produk-grid.list-view .pos-produk-name { font-size: 14px; }
#pos-produk-grid.list-view .pos-produk-card-footer { padding: 0 12px 0 0; gap: 32px; }

/* Product Card */
.pos-produk-card {
    background: var(--c-surface); border: 1px solid var(--c-border);
    border-radius: var(--c-radius-md); overflow: hidden; cursor: pointer;
    display: flex; flex-direction: column; transition: all 0.2s; position: relative;
}
.pos-produk-card:hover { border-color: var(--c-primary); box-shadow: var(--c-shadow); transform: translateY(-2px); }
.pos-produk-img-wrap {
    aspect-ratio: 1 / 1; background: #F3F4F6;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
}
.pos-produk-img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform var(--c-t); }
.pos-produk-card:hover .pos-produk-img { transform: scale(1.05); }
.pos-produk-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.pos-produk-name { font-size: 13px; font-weight: 700; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pos-produk-price { font-size: 14px; font-weight: 800; color: var(--c-primary); }
.pos-produk-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 12px; }
.pos-stock-badge { font-size: 11px; font-weight: 600; }
.pos-stock-badge.ok   { color: var(--c-text-3); }
.pos-stock-badge.low  { color: var(--c-warning); }
.pos-stock-badge.sold { color: var(--c-danger); }
.pos-produk-add-btn {
    width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--c-primary-b);
    background: var(--c-surface); color: var(--c-primary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s; flex-shrink: 0;
}
.pos-produk-add-btn:hover:not(:disabled) { background: var(--c-primary-s); transform: scale(1.05); }
.pos-produk-add-btn:disabled { background: var(--c-surface-2); border-color: var(--c-border); color: var(--c-text-3); cursor: not-allowed; }
.pos-card-sold { opacity: .55; cursor: not-allowed; }

.pos-show-more {
    width: fit-content; margin: 24px auto 0; padding: 8px 24px;
    background: var(--c-primary-s); color: var(--c-primary); border: none; font-family: var(--c-font);
    border-radius: 99px; font-size: 13px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; gap: 8px; transition: var(--c-t);
}
.pos-show-more:hover { background: var(--c-primary-b); }

/* Stats Bar Bawah */
.pos-stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    margin-top: 20px; flex-shrink: 0;
}
.pos-stat-item {
    background: var(--c-surface); border-radius: var(--c-radius); padding: 16px 20px;
    display: flex; align-items: center; gap: 16px; box-shadow: var(--c-shadow); border: 1px solid var(--c-border-2);
}
.pos-stat-icon-wrap { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pos-stat-icon-wrap.blue   { background: var(--c-primary-s); color: var(--c-primary); }
.pos-stat-icon-wrap.green  { background: var(--c-success-s); color: var(--c-success); }
.pos-stat-icon-wrap.orange { background: #FFF7ED; color: #EA580C; }
.pos-stat-icon-wrap.purple { background: #F5F3FF; color: #8B5CF6; }
.pos-stat-label { font-size: 11px; color: var(--c-text-3); font-weight: 600; margin-bottom: 4px; }
.pos-stat-num   { font-size: 18px; font-weight: 800; color: var(--c-text); line-height: 1; }

/* ════════════════════════════════════════════
   KANAN: KERANJANG
════════════════════════════════════════════ */
.pos-cart {
    background: var(--c-surface); border-left: 1px solid var(--c-border);
    display: flex; flex-direction: column; overflow: hidden; min-height: 0;
}
.pos-cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px; flex-shrink: 0; border-bottom: 1px solid var(--c-border-2);
}
.pos-cart-title { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.pos-cart-count {
    background: var(--c-primary); color: #fff; font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: 99px; min-width: 20px; text-align: center;
}
.pos-cart-clear {
    display: flex; align-items: center; gap: 6px; color: var(--c-danger); font-family: var(--c-font);
    font-size: 12px; font-weight: 600; background: none; border: none; cursor: pointer; padding: 4px 8px; border-radius: var(--c-radius-sm);
}
.pos-cart-clear:hover { background: var(--c-danger-s); }

/* Customer Area di Cart */
.pos-customer-section { padding: 12px 24px; border-bottom: 1px solid var(--c-border-2); flex-shrink: 0; background: var(--c-surface-2); }
.pos-customer-row { display: flex; gap: 8px; position: relative; flex-wrap: wrap; }

/* Item List */
.pos-item-list { flex: 1; overflow-y: auto; padding: 12px 0; display: flex; flex-direction: column; }
.pos-item-list::-webkit-scrollbar { width: 4px; }
.pos-item-list::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 2px; }

.pos-cart-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; height: 100%; margin: auto 0; padding: 24px; }
.pos-cart-empty-icon { width: 80px; height: 80px; background: var(--c-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.pos-cart-empty-title { font-size: 16px; font-weight: 700; color: var(--c-text); margin-bottom: 4px; }
.pos-cart-empty-sub { font-size: 13px; color: var(--c-text-3); }

/* Cart item row (class JS) */
.pos-item-row { display: flex; align-items: center; gap: 10px; padding: 12px 24px; border-bottom: 1px solid var(--c-border-2); transition: background var(--c-t); }
.pos-item-row:hover { background: var(--c-surface-2); }
.pos-item-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--c-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-item-qty-ctrl { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pos-qty-btn { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text-2); font-size: 14px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--c-t); }
.pos-qty-btn:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pos-item-qty-val { font-size: 13px; font-weight: 700; min-width: 20px; text-align: center; }
.pos-item-subtotal { font-size: 13px; font-weight: 700; color: var(--c-text); min-width: 75px; text-align: right; }
.pos-item-del { color: var(--c-text-3); background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px; transition: var(--c-t); border-radius: 6px; }
.pos-item-del:hover { color: var(--c-danger); background: var(--c-danger-s); }

/* Footer Cart (Totals & Actions) */
.pos-cart-footer { padding: 24px; border-top: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 20px; flex-shrink: 0; overflow-y: auto; max-height: 60vh; }
.pos-cart-footer::-webkit-scrollbar { width: 4px; }
.pos-cart-footer::-webkit-scrollbar-thumb { background: var(--c-border); }

/* Diskon */
.pos-disc-toggle-btn { width: 100%; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--c-primary); background: none; border: none; cursor: pointer; font-family: var(--c-font); padding: 4px 0; }
.pos-disc-toggle-btn:hover { opacity: .8; }
.pos-disc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pos-disc-input-wrap { display: flex; border: 1px solid var(--c-border); border-radius: var(--c-radius-sm); overflow: hidden; background: var(--c-surface); transition: border-color var(--c-t); }
.pos-disc-input-wrap:focus-within { border-color: var(--c-primary); box-shadow: 0 0 0 2px rgba(37,99,235,.1); }
.pos-disc-prefix { padding: 8px 12px; background: var(--c-surface-2); border-right: 1px solid var(--c-border); font-size: 12px; font-weight: 600; color: var(--c-text-2); display: flex; align-items: center; }
.pos-disc-val { flex: 1; padding: 8px 10px; border: none; outline: none; font-size: 13px; font-family: var(--c-font); color: var(--c-text); background: transparent; }

/* Totals */
.pos-total-box { display: flex; flex-direction: column; gap: 12px; }
.pos-total-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; }
.pos-total-label { color: var(--c-text-2); }
#pos-disc-display-row { color: var(--c-success); }
.pos-grand-total { font-size: 18px; font-weight: 800; color: var(--c-text); padding-top: 16px; border-top: 1px dashed var(--c-border); }
.pos-grand-total span:last-child { color: var(--c-primary); font-size: 20px; }

/* Payment Methods */
.pos-pay-section-title { font-size: 11px; font-weight: 700; color: var(--c-text-3); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .4px; }
.pos-payment-methods { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.pos-pay-method {
    padding: 10px 4px; border-radius: var(--c-radius-sm);
    border: 1px solid var(--c-border); background: var(--c-surface);
    cursor: pointer; transition: var(--c-t); font-family: var(--c-font);
    color: var(--c-text-2); font-size: 12px; font-weight: 600; text-align: center;
}
.pos-pay-method:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-s); }
.pos-pay-method.selected { border-color: var(--c-primary); background: var(--c-primary-s); color: var(--c-primary); font-weight: 700; box-shadow: 0 0 0 2px rgba(37,99,235,.1); }

/* Error & Kembalian */
#pos-bayar-error { margin-bottom: 8px; padding: 10px 14px; background: var(--c-danger-s); color: var(--c-danger); border-radius: var(--c-radius-sm); font-size: 13px; font-weight: 600; border: 1px solid #FECACA; }
.pos-kembali-box { margin-top: 10px; padding: 10px 14px; background: var(--c-success-s); border-radius: var(--c-radius-sm); font-size: 13px; font-weight: 600; color: var(--c-success); border: 1px solid #A7F3D0; }

/* Actions */
.pos-cart-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.pos-btn-save {
    padding: 14px; background: var(--c-primary-s); color: var(--c-primary);
    border: none; border-radius: var(--c-radius-md); font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: var(--c-t); font-family: var(--c-font);
}
.pos-btn-save:hover { background: var(--c-primary-b); }
#pos-btn-bayar {
    padding: 16px; background: var(--c-primary); color: #fff;
    border: none; border-radius: var(--c-radius-md); font-size: 15px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(37,99,235,.3); transition: var(--c-t); font-family: var(--c-font);
}
#pos-btn-bayar:not(:disabled):hover { background: var(--c-primary-h); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37,99,235,.4); }
#pos-btn-bayar:disabled { background: var(--c-text-3); cursor: not-allowed; box-shadow: none; transform: none; }

/* ════════════════════════════════════════════
   SUGGEST & OTHER GLOBALS
════════════════════════════════════════════ */
.pos-label { display: block; font-size: 12px; font-weight: 600; color: var(--c-text-2); margin-bottom: 6px; }
.pos-suggest-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 200; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--c-radius-sm); box-shadow: var(--c-shadow-md); overflow: hidden; display: none; margin-top: 4px; }
.pos-suggest-item { padding: 10px 14px; cursor: pointer; font-size: 13px; border-bottom: 1px solid var(--c-border-2); transition: var(--c-t); }
.pos-suggest-item:hover { background: var(--c-primary-s); color: var(--c-primary); }

/* ════════════════════════════════════════════
   RIWAYAT & LAPORAN
════════════════════════════════════════════ */
#pos-tab-riwayat, #pos-tab-laporan { padding: 24px; overflow-y: auto; background: var(--c-bg); }
.pos-riwayat-filter { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 24px; }
.pos-riwayat-summary { background: var(--c-primary-s); border: 1px solid var(--c-primary-b); border-radius: var(--c-radius-md); padding: 16px 20px; display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; font-size: 14px; }
.pos-riwayat-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--c-radius-md); padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; transition: box-shadow var(--c-t); box-shadow: var(--c-shadow-sm); }
.pos-riwayat-card:hover { box-shadow: var(--c-shadow); border-color: var(--c-primary-b); }
.pos-nomor    { font-size: 12px; color: var(--c-text-3); font-weight: 500; }
.pos-customer { font-size: 15px; font-weight: 700; color: var(--c-text); margin-top: 4px; }
.pos-trx-total { font-size: 16px; font-weight: 800; color: var(--c-primary); }
.pos-metode { font-size: 11px; background: var(--c-primary-s); color: var(--c-primary); padding: 4px 10px; border-radius: 99px; font-weight: 700; }
.pos-status-void { font-size: 11px; background: var(--c-danger-s); color: var(--c-danger); padding: 4px 10px; border-radius: 99px; font-weight: 700; }
.pos-void-btn { font-size: 12px; padding: 8px 14px; background: var(--c-danger-s); color: var(--c-danger); border: 1px solid #FECACA; border-radius: var(--c-radius-sm); cursor: pointer; transition: var(--c-t); font-family: var(--c-font); font-weight: 600; }
.pos-void-btn:hover { background: var(--c-danger); color: #fff; border-color: var(--c-danger); }

/* Laporan */
.pos-laporan-wrap { background: var(--c-surface); border-radius: var(--c-radius); padding: 24px; box-shadow: var(--c-shadow); border: 1px solid var(--c-border-2); }
.pos-lpr-summary { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.pos-lpr-card { flex:1; min-width:150px; background: var(--c-primary-s); border: 1px solid var(--c-primary-b); border-radius: var(--c-radius-md); padding: 20px; text-align: center; }
.pos-lpr-card-val { font-size: 24px; font-weight: 800; color: var(--c-primary); }
.pos-lpr-card-lbl { font-size: 12px; color: var(--c-text-2); font-weight: 600; margin-top: 8px; }
.pos-lpr-metode { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.pos-lpr-metode-item { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--c-radius-md); padding: 14px 20px; min-width: 140px; text-align: center; box-shadow: var(--c-shadow-sm); }
.pos-lpr-metode-nama { font-weight: 700; font-size: 13px; color: var(--c-text-2); margin-bottom: 4px; }
.pos-lpr-metode-val  { font-size: 16px; font-weight: 800; color: var(--c-text); }
.pos-chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 0 8px; margin: 24px 0; }
.pos-chart-bar-wrap { display: flex; flex-direction: column; align-items: center; min-width: 40px; }
.pos-chart-bar { width: 32px; background: linear-gradient(180deg, #60A5FA, var(--c-primary)); border-radius: 6px 6px 0 0; min-height: 4px; transition: height 0.3s ease; }
.pos-chart-bar-lbl { font-size: 10px; color: var(--c-text-3); font-weight: 600; margin-top: 8px; }
.pos-lpr-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pos-lpr-table th { background: var(--c-surface-2); color: var(--c-text-2); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 12px 16px; text-align: left; border-bottom: 2px solid var(--c-border); }
.pos-lpr-table td { padding: 12px 16px; border-bottom: 1px solid var(--c-border-2); color: var(--c-text); }
.pos-lpr-table tr:hover td { background: var(--c-surface-2); }

/* ════════════════════════════════════════════
   MODAL & TOAST
════════════════════════════════════════════ */
.pos-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); z-index: 9998; backdrop-filter: blur(4px); }
.pos-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; pointer-events: none; }
.pos-modal.shown { pointer-events: all; }
.pos-modal-box { background: var(--c-surface); border-radius: var(--c-radius); padding: 32px; max-width: 420px; width: 100%; box-shadow: var(--c-shadow-lg); }
.pos-struk { font-family: 'Courier New', monospace; font-size: 13px; border: 1px dashed var(--c-border); border-radius: 8px; padding: 20px; background: #FAFAFA; }
.pos-struk-header  { text-align: center; margin-bottom: 16px; }
.pos-struk-title   { font-weight: 900; font-size: 15px; }
.pos-struk-divider { border-top: 1px dashed var(--c-border); margin: 12px 0; }
.pos-struk-row     { display: flex; justify-content: space-between; margin-bottom: 6px; }
.pos-struk-total   { font-weight: 900; font-size: 14px; }

#rlum-pos-toast-container { position: fixed; bottom: 32px; right: 32px; z-index: 99999; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.rlum-pos-toast { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: var(--c-radius-md); background: var(--c-text); color: #fff; font-size: 14px; font-weight: 600; min-width: 260px; max-width: 360px; box-shadow: var(--c-shadow-lg); pointer-events: all; animation: rPosToastIn .3s cubic-bezier(0.175, 0.885, 0.32, 1.275); font-family: var(--c-font); }
.rlum-pos-toast.success { background: var(--c-success); }
.rlum-pos-toast.warning { background: var(--c-warning); }
.rlum-pos-toast.danger  { background: var(--c-danger);  }
.rlum-pos-toast.info    { background: var(--c-primary); }
.rlum-pos-toast-icon    { font-size: 18px; flex-shrink: 0; }
.rlum-pos-toast-msg     { flex: 1; }
.rlum-pos-toast-close   { background: rgba(255,255,255,.2); border: none; color: #fff; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; transition: var(--c-t); }
.rlum-pos-toast-close:hover { background: rgba(255,255,255,.3); }
.rlum-pos-toast.hiding  { animation: rPosToastOut .3s ease forwards; }

@keyframes rPosToastIn  { from { opacity:0; transform:translateX(100%); } to { opacity:1; transform:translateX(0); } }
@keyframes rPosToastOut { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(100%); } }

/* ════════════════════════════════════════════
   RESPONSIVE LAYOUT
════════════════════════════════════════════ */
@media (max-width: 1400px) { #rlum-pos-wrap { --c-cart-w: 340px; } .pos-produk-row { grid-template-columns: 220px 1fr; } }
@media (max-width: 1200px) {
    #rlum-pos-wrap { --c-cart-w: 320px; }
    .pos-produk-row { grid-template-columns: 1fr; }
    .pos-quick-panel { display: none; /* Sembunyikan panel kiri di layar kecil */ }
    #pos-produk-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
    #rlum-pos-wrap { --c-cart-w: 100%; }
    .pos-layout { grid-template-columns: 1fr; display: flex; flex-direction: column; }
    .pos-cart { border-left: none; border-top: 2px solid var(--c-border); }
    #pos-produk-grid { grid-template-columns: repeat(3,1fr); }
    .pos-cart-footer { max-height: none; }
    .pos-payment-methods { grid-template-columns: repeat(6,1fr); }
    .pos-stats-bar { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    #pos-produk-grid { grid-template-columns: repeat(2,1fr); }
    .pos-header { padding: 0 16px; height: 64px; }
    .pos-header-stats, .pos-stats-bar, .pos-tabbar-stats { display: none; }
    .pos-payment-methods { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 480px) {
    .pos-modal { align-items: flex-end; padding: 0; }
    .pos-modal-box { border-radius: var(--c-radius) var(--c-radius) 0 0; max-width: 100%; }
}
@media print {
    .pos-header, .pos-tabbar, .pos-products, .pos-cart-header,
    #pos-btn-bayar, .pos-btn-secondary, .pos-btn-save { display: none !important; }
}