/* ===========================================================
   POS CASHIER — full-screen 3-column layout
   =========================================================== */

:root {
    --pos-rail-w: 78px;
    --pos-topbar-h: 96px;
    --pos-invoice-w: 360px;
    --pos-keypad-w: 280px;
}

/* shell: rail on the right (RTL), main area takes the rest */
.pos-shell {
    display: grid;
    grid-template-columns: 1fr var(--pos-rail-w);
    min-height: 100vh;
    background: var(--c-bg);
}
body.ltr .pos-shell {
    grid-template-columns: var(--pos-rail-w) 1fr;
}

.pos-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
    overflow: hidden;
}

/* ===========  RIGHT RAIL SIDEBAR  =========== */
.pos-sidebar {
    background: var(--c-sidebar);
    color: var(--c-sidebar-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 0;
    height: 100vh;
    position: sticky;
    top: 0;
}

.pos-rail-btn {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: transparent;
    border: 0;
    color: var(--c-sidebar-text-muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
}
.pos-rail-btn .material-symbols-rounded { font-size: 24px; }
.pos-rail-btn:hover { background: var(--c-sidebar-hover); color: #fff; }
.pos-rail-btn.active {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-2) 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(107,91,255,0.35);
}
.pos-rail-btn .rail-label {
    position: absolute;
    bottom: -18px;
    font-size: 10px;
    color: var(--c-sidebar-text-muted);
    white-space: nowrap;
    display: none;
}
.pos-rail-btn.active .rail-label { display: block; color: var(--c-primary-2); font-weight: 700; }

.menu-btn { background: transparent; color: #fff; }
.menu-btn:hover { background: var(--c-sidebar-hover); }

.rail-spacer { flex: 1; }

.rail-bell .rail-badge {
    position: absolute;
    top: 6px; right: 8px;
    background: var(--c-red);
    color: #fff;
    width: 18px; height: 18px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    display: grid; place-items: center;
}
body.ltr .rail-bell .rail-badge { right: auto; left: 8px; }

/* ===========  TOP BAR  =========== */
.pos-topbar {
    height: var(--pos-topbar-h);
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    padding: 0 22px;
    display: grid;
    grid-template-columns: auto auto 1fr auto auto;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.pos-cashier { display: flex; align-items: center; gap: 12px; }
.pos-cashier .avatar {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FF9F66, #FF5C7F);
    display: grid; place-items: center;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.pos-cashier .avatar img { width: 100%; height: 100%; object-fit: cover; }
.pos-cashier .avatar::after {
    content: "";
    position: absolute;
    bottom: -2px; inset-inline-end: -2px;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--c-green);
    border: 3px solid var(--c-surface);
}
.pos-cashier .info { line-height: 1.2; text-align: end; }
.pos-cashier .info .name { font-weight: 800; font-size: 15px; color: var(--c-text); }
.pos-cashier .info .role { color: var(--c-text-muted); font-size: 12px; }

.pos-actions { display: flex; gap: 10px; }
.pos-action-btn {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    padding: 10px 18px;
    color: var(--c-text);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    min-width: 76px;
}
.pos-action-btn .ico {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid; place-items: center;
}
.pos-action-btn.drawer .ico { background: var(--c-blue-soft); color: var(--c-blue); }
.pos-action-btn.hold   .ico { background: var(--c-amber-soft); color: var(--c-amber); }
.pos-action-btn:hover { background: var(--c-bg-soft); }

.pos-search {
    display: flex; align-items: center; gap: 10px;
    background: var(--c-bg-soft);
    border-radius: 14px;
    height: 52px;
    padding: 0 18px;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
}
.pos-search input {
    flex: 1;
    border: 0; background: transparent; outline: none;
    color: var(--c-text);
    font-size: 14px;
    font-family: inherit;
}
.pos-search input::placeholder { color: var(--c-text-muted); }
.pos-search .kbd {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 600;
}
.pos-search .barcode-btn {
    background: var(--c-primary-soft);
    color: var(--c-primary);
    border: 0;
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid; place-items: center;
    cursor: pointer;
}

.pos-branch {
    display: flex; align-items: center; gap: 10px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    padding: 10px 14px;
    min-width: 200px;
}
.pos-branch .ico {
    width: 34px; height: 34px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    border-radius: 10px;
    display: grid; place-items: center;
}
.pos-branch .text { line-height: 1.2; flex: 1; text-align: end; }
.pos-branch .text .b { font-weight: 800; font-size: 13.5px; color: var(--c-text); }
.pos-branch .text .s { color: var(--c-text-muted); font-size: 11.5px; }

.pos-clock {
    display: flex; align-items: center; gap: 10px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    padding: 10px 14px;
    min-width: 130px;
}
.pos-clock .ico {
    width: 34px; height: 34px;
    background: var(--c-bg-soft);
    color: var(--c-text-soft);
    border-radius: 10px;
    display: grid; place-items: center;
}
.pos-clock .text { line-height: 1.2; flex: 1; text-align: end; }
.pos-clock .text .t { font-weight: 800; font-size: 13.5px; color: var(--c-text); }
.pos-clock .text .d { color: var(--c-text-muted); font-size: 11.5px; }

/* ===========  WORK AREA: invoice | products | keypad  =========== */
.pos-work {
    flex: 1;
    display: grid;
    grid-template-columns: var(--pos-invoice-w) 1fr var(--pos-keypad-w);
    gap: 14px;
    padding: 14px 16px 16px;
    min-height: 0;
    overflow: hidden;
}

/* ----- INVOICE (left) ----- */
.invoice-panel {
    background: var(--c-surface);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    display: flex; flex-direction: column;
    overflow: hidden;
    min-height: 0;
}
.invoice-customer {
    display: flex; align-items: center; gap: 10px;
    padding: 12px;
}
.invoice-customer .add-btn {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
    color: #fff;
    border-radius: 12px;
    border: 0; cursor: pointer;
    display: grid; place-items: center;
}
.invoice-customer .pick {
    flex: 1;
    background: var(--c-bg-soft);
    border-radius: 12px;
    height: 38px;
    padding: 0 12px;
    display: flex; align-items: center; gap: 10px;
    font-weight: 700;
    color: var(--c-text);
    cursor: pointer;
}
.invoice-customer .pick .material-symbols-rounded { color: var(--c-text-muted); font-size: 20px; }
.invoice-customer .pick .nm { flex: 1; }

.invoice-table-wrap { flex: 1; overflow-y: auto; padding: 0 12px; }
.invoice-table-wrap::-webkit-scrollbar { width: 4px; }
.invoice-table-wrap::-webkit-scrollbar-thumb { background: #DCE0EA; border-radius: 99px; }

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}
.invoice-table thead th {
    padding: 8px 4px;
    color: var(--c-text-muted);
    font-weight: 700;
    font-size: 11.5px;
    text-align: end;
    border-bottom: 1px solid var(--c-border);
}
.invoice-table thead th:last-child { text-align: start; }

.invoice-table td {
    padding: 10px 4px;
    vertical-align: middle;
    border-bottom: 1px dashed var(--c-border);
}
.invoice-table tr.line-row:hover td { background: var(--c-surface-2); }

.line-product { display: flex; align-items: center; gap: 10px; flex-direction: row-reverse; }
.line-product .img {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FFE5C9, #FFC78A);
    color: #946B00;
    display: grid; place-items: center; flex-shrink: 0;
}
.line-product .img .material-symbols-rounded { font-size: 22px; }
.line-product .meta { line-height: 1.2; text-align: end; }
.line-product .meta .name { font-weight: 700; font-size: 12.5px; color: var(--c-text); }
.line-product .meta .code { color: var(--c-text-muted); font-size: 10.5px; margin-top: 2px; }

.qty-spinner {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--c-bg-soft);
    border-radius: 9px;
    padding: 2px 4px;
}
.qty-spinner button {
    width: 22px; height: 22px;
    border: 0; background: var(--c-surface);
    color: var(--c-text);
    border-radius: 6px;
    cursor: pointer;
    display: grid; place-items: center;
    font-size: 14px;
    font-weight: 700;
}
.qty-spinner button:disabled { color: var(--c-text-faint); cursor: not-allowed; }
.qty-spinner .qty {
    min-width: 22px; text-align: center;
    font-weight: 700; font-size: 12.5px;
}

.line-price, .line-total { font-weight: 700; color: var(--c-text); text-align: end; }
.line-remove {
    background: transparent; border: 0;
    color: var(--c-text-muted);
    width: 22px; height: 22px;
    border-radius: 6px;
    cursor: pointer;
    display: grid; place-items: center;
}
.line-remove:hover { background: var(--c-red-soft); color: var(--c-red); }

/* invoice action row */
.invoice-row-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 10px 12px 4px;
}
.invoice-row-actions button {
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    color: var(--c-text-soft);
    border-radius: 12px;
    height: 38px;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.invoice-row-actions button .material-symbols-rounded { font-size: 16px; }
.invoice-row-actions .clear { color: var(--c-red); background: var(--c-red-soft); border-color: transparent; }
.invoice-row-actions .erase { color: var(--c-purple); background: var(--c-purple-soft); border-color: transparent; }
.invoice-row-actions .note  { color: var(--c-blue);   background: var(--c-blue-soft);  border-color: transparent; }

/* totals */
.invoice-totals {
    margin: 10px 12px 6px;
    background: var(--c-surface-2);
    border-radius: 14px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    font-size: 12.5px;
}
.invoice-totals .label { color: var(--c-text-muted); font-weight: 500; text-align: end; }
.invoice-totals .value { font-weight: 700; color: var(--c-text); text-align: start; }
.invoice-totals .value .small { color: var(--c-text-muted); font-size: 11px; font-weight: 500; margin-inline-start: 4px; }

.invoice-cash-row {
    grid-column: span 2;
    background: var(--c-green-soft);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 800;
    color: var(--c-green);
    font-size: 14px;
}
.invoice-cash-row .v { color: var(--c-green); }
.invoice-cash-row .v .small { color: var(--c-green); opacity: 0.8; font-weight: 500; font-size: 11px; }

/* payment quick buttons */
.invoice-pay-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 12px 10px;
}
.invoice-pay-row button {
    border: 0;
    border-radius: 12px;
    padding: 10px 0;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.invoice-pay-row button .material-symbols-rounded { font-size: 18px; }
.invoice-pay-row .pay-card   { background: var(--c-red-soft);    color: var(--c-red); }
.invoice-pay-row .pay-wallet { background: var(--c-amber-soft);  color: var(--c-amber); }
.invoice-pay-row .pay-other  { background: var(--c-blue-soft);   color: var(--c-blue); }
.invoice-pay-row button.selected {
    box-shadow: inset 0 0 0 2px currentColor;
}

/* big total button */
.invoice-total-cta {
    margin: 0 12px 12px;
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-2) 100%);
    color: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(107,91,255,0.45);
}
.invoice-total-cta .lbl { font-weight: 800; font-size: 13.5px; display: flex; align-items: center; gap: 10px; }
.invoice-total-cta .lbl .ico {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
    display: grid; place-items: center;
}
.invoice-total-cta .amt { font-weight: 800; font-size: 18px; }
.invoice-total-cta .amt .small { font-size: 12px; font-weight: 500; opacity: 0.85; }

/* ----- PRODUCTS PANEL (center) ----- */
.products-panel {
    display: flex; flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.cat-tabs {
    display: flex; align-items: center; gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    flex-shrink: 0;
}
.cat-tabs::-webkit-scrollbar { height: 4px; }
.cat-tab {
    padding: 9px 18px;
    background: var(--c-surface);
    border-radius: 12px;
    color: var(--c-text-soft);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid var(--c-border);
    white-space: nowrap;
}
.cat-tab.active {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(107,91,255,0.35);
}
.cat-tab.scan {
    background: var(--c-green-soft);
    color: var(--c-green);
    border-color: transparent;
    width: 42px; padding: 9px 0;
    display: grid; place-items: center;
}

.sort-row {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 0 12px;
    flex-shrink: 0;
}
.sort-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    color: var(--c-text-soft);
    font-weight: 700; font-size: 12.5px;
    cursor: pointer;
}
.sort-pill .material-symbols-rounded { color: var(--c-text-muted); font-size: 16px; }
.view-toggle {
    display: inline-flex;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    overflow: hidden;
}
.view-toggle button {
    border: 0; background: transparent;
    width: 36px; height: 32px;
    color: var(--c-text-muted);
    cursor: pointer;
    display: grid; place-items: center;
}
.view-toggle button.active { background: var(--c-primary-soft); color: var(--c-primary); }

/* product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    overflow-y: auto;
    padding-bottom: 8px;
    flex: 1;
    min-height: 0;
}
.product-grid::-webkit-scrollbar { width: 6px; }
.product-grid::-webkit-scrollbar-thumb { background: #DCE0EA; border-radius: 99px; }

.product-card {
    background: var(--c-surface);
    border-radius: 14px;
    padding: 10px 10px 12px;
    border: 1.5px solid var(--c-border);
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    position: relative;
}
.product-card:hover {
    transform: translateY(-2px);
    border-color: var(--c-primary);
    box-shadow: 0 8px 20px rgba(107,91,255,0.12);
}
.product-card.selected {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px var(--c-primary-soft);
}
.product-card .star {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    color: var(--c-text-faint);
    cursor: pointer;
}
.product-card .star.fav { color: var(--c-amber); }
.product-card .thumb {
    width: 72px; height: 72px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FFE5C9, #FFC78A);
    color: #946B00;
    display: grid; place-items: center;
    margin-top: 8px;
}
.product-card .thumb .material-symbols-rounded { font-size: 36px; }
.product-card .pname {
    font-weight: 700;
    font-size: 12px;
    color: var(--c-text);
    text-align: center;
    line-height: 1.3;
    min-height: 32px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .pcode { color: var(--c-text-muted); font-size: 11px; }
.product-card .pprice {
    color: var(--c-primary);
    font-weight: 800;
    font-size: 14.5px;
}
.product-card .pprice .cur { color: var(--c-text-muted); font-weight: 500; font-size: 11px; }
.product-card .stock-pill {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--c-green); font-size: 11px; font-weight: 700;
}
.product-card .stock-pill::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-green);
}

/* suggested products row */
.suggested {
    flex-shrink: 0;
    padding-top: 10px;
    border-top: 1px solid var(--c-border);
    margin-top: 10px;
}
.suggested h4 {
    margin: 0 0 8px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--c-text);
    text-align: end;
}
.suggested-row {
    display: flex; align-items: center; gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.suggested-row::-webkit-scrollbar { height: 4px; }
.suggested-nav {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    color: var(--c-text-muted);
    cursor: pointer;
    flex-shrink: 0;
}
.suggested-item {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    padding: 8px 10px;
    display: flex; align-items: center; gap: 10px;
    min-width: 220px;
    cursor: pointer;
}
.suggested-item .thumb {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #FFE5C9, #FFC78A);
    color: #946B00;
    display: grid; place-items: center;
    flex-shrink: 0;
}
.suggested-item .meta { flex: 1; line-height: 1.2; text-align: end; }
.suggested-item .meta .name { font-weight: 700; font-size: 12px; color: var(--c-text); }
.suggested-item .meta .pr   { font-weight: 700; color: var(--c-primary); font-size: 12.5px; margin-top: 2px; }
.suggested-item .add {
    background: var(--c-primary-soft); color: var(--c-primary);
    border: 0; width: 28px; height: 28px;
    border-radius: 8px; cursor: pointer;
    display: grid; place-items: center;
}

/* ----- KEYPAD PANEL (right) ----- */
.keypad-panel {
    display: flex; flex-direction: column; gap: 10px;
    min-height: 0;
    overflow-y: auto;
}
.keypad-panel::-webkit-scrollbar { width: 4px; }

.barcode-box {
    background: var(--c-surface);
    border: 1.5px dashed var(--c-primary);
    border-radius: 14px;
    padding: 14px;
    display: flex; align-items: center; gap: 10px;
    color: var(--c-primary);
    font-weight: 800;
    font-size: 13.5px;
}
.barcode-box .material-symbols-rounded { color: var(--c-primary); font-size: 26px; }
.barcode-box input {
    flex: 1;
    border: 0; background: transparent; outline: none;
    text-align: end;
    color: var(--c-text); font-weight: 700; font-size: 13.5px;
    font-family: inherit;
}
.barcode-box input::placeholder { color: var(--c-primary); opacity: 0.8; }

.numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.numpad .key {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    height: 52px;
    font-size: 18px;
    font-weight: 800;
    color: var(--c-text);
    cursor: pointer;
    display: grid; place-items: center;
    transition: background 100ms ease, transform 80ms ease;
}
.numpad .key:hover { background: var(--c-bg-soft); }
.numpad .key:active { transform: scale(0.96); }
.numpad .key.bksp { color: var(--c-red); }

.kp-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.kp-actions button {
    border: 0;
    border-radius: 12px;
    height: 60px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.kp-actions button .material-symbols-rounded { font-size: 20px; }
.kp-discount { background: var(--c-red-soft);    color: var(--c-red); }
.kp-offer    { background: var(--c-amber-soft);  color: var(--c-amber); }
.kp-return   { background: var(--c-blue-soft);   color: var(--c-blue); }
.kp-hold     { background: var(--c-orange-soft); color: var(--c-orange); }

.pay-cta {
    background: linear-gradient(135deg, #2BD071 0%, #16A65A 100%);
    color: #fff;
    border: 0;
    border-radius: 16px;
    padding: 16px;
    font-weight: 800;
    font-size: 17px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(43,208,113,0.42);
    display: flex; justify-content: space-between; align-items: center;
}
.pay-cta .lbl { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.pay-cta .key {
    background: rgba(255,255,255,0.20);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

/* empty cart */
.cart-empty {
    text-align: center;
    color: var(--c-text-muted);
    padding: 60px 12px;
}
.cart-empty .material-symbols-rounded { font-size: 56px; color: var(--c-text-faint); }
.cart-empty .t { font-weight: 800; margin-top: 8px; color: var(--c-text); font-size: 15px; }
.cart-empty .s { margin-top: 4px; font-size: 12px; }

/* small toast for checkout success */
.pos-toast {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    background: var(--c-text);
    color: #fff;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: var(--shadow-pop);
    display: flex; align-items: center; gap: 10px;
    font-weight: 700;
    z-index: 9999;
}
.pos-toast.success { background: linear-gradient(135deg, #2BD071, #16A65A); }
.pos-toast.error   { background: linear-gradient(135deg, #FF6B81, #E63946); }

/* =====================================================================
   POS Multi-currency selector + conversion preview (Iraq)
   ===================================================================== */

.pos-currency-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    margin-top: 10px;
    background: rgba(108,92,231,.05);
    border: 1px dashed rgba(108,92,231,.25);
    border-radius: 12px;
}
.pcr-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 800;
    color: var(--c-text);
    white-space: nowrap;
}
.pcr-label .material-symbols-rounded { font-size: 18px; color: var(--c-primary); }
.pcr-chips { display: flex; gap: 6px; margin-inline-start: auto; }
.pcr-chip {
    --accent: #6c5ce7;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    border: 2px solid transparent;
    background: var(--c-surface);
    border-radius: 999px;
    font-family: inherit; font-weight: 800; font-size: 13px;
    color: var(--c-text-muted);
    cursor: pointer; transition: .15s;
}
.pcr-chip:hover { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.pcr-chip.selected {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border-color: var(--accent);
}
.pcr-sym { font-size: 16px; font-weight: 800; }
.pcr-code { font-size: 11px; direction: ltr; }

.pos-conv-preview {
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(34,197,94,.06);
    border: 1px solid rgba(34,197,94,.20);
    border-radius: 12px;
}
.pcp-line {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 800;
    color: var(--c-text);
    justify-content: center;
}
.pcp-line .material-symbols-rounded { color: var(--c-green); font-size: 20px; }
.pcp-foreign { color: var(--c-green); }
.pcp-rate { text-align: center; color: var(--c-text-muted); font-size: 11.5px; margin-top: 4px; direction: ltr; }

/* =====================================================================
   IRAQ CASH DENOMINATIONS — POS quick-tender chips
   ===================================================================== */
.denom-row {
    display: flex; align-items: center; gap: 8px;
    margin-top: 8px;
}
.denom-label {
    width: 40px;
    font-size: 11px; font-weight: 800;
    color: var(--c-text-muted);
    text-align: center;
    background: rgba(0,0,0,.04);
    padding: 4px 0;
    border-radius: 6px;
}
.denom-chips {
    display: flex; flex: 1; flex-wrap: wrap; gap: 4px;
}
.denom-chip {
    flex: 1;
    min-width: 56px;
    padding: 6px 4px;
    border: 1.5px solid var(--c-border);
    background: var(--c-surface);
    border-radius: 8px;
    font-family: inherit; font-weight: 800; font-size: 11.5px;
    color: var(--c-text);
    cursor: pointer; transition: .12s;
    direction: ltr;
}
.denom-chip:hover { border-color: var(--c-primary); transform: translateY(-1px); }
.denom-chip:active { transform: translateY(0); }
.denom-chip.iqd { color: #0EA5E9; border-color: rgba(14,165,233,.30); }
.denom-chip.iqd:hover { background: rgba(14,165,233,.06); border-color: #0EA5E9; }
.denom-chip.usd { color: #22C55E; border-color: rgba(34,197,94,.30); }
.denom-chip.usd:hover { background: rgba(34,197,94,.06); border-color: #22C55E; }
.denom-chip.clear {
    flex: 0 0 32px; min-width: 32px;
    color: var(--c-red); border-color: rgba(239,68,68,.30);
    display: grid; place-items: center;
}
.denom-chip.clear:hover { background: var(--c-red-soft); border-color: var(--c-red); }

/* Dual currency display on POS product cards */
.pprice-alt {
    font-size: 10.5px; font-weight: 600;
    color: #22C55E;
    margin-top: 2px;
    direction: ltr;
}
.pprice-alt .cur { color: #22C55E; font-weight: 700; }
.pr-alt {
    font-size: 10px; font-weight: 600;
    color: #22C55E;
    margin-top: 1px;
    direction: ltr;
}

/* ===== Shift modals (Open/Close) ===== */
.shift-modal-backdrop {
    position: fixed; inset: 0; background: rgba(15,23,42,.55);
    z-index: 100; backdrop-filter: blur(3px);
}
.shift-modal {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--c-surface);
    border-radius: 18px;
    padding: 28px 32px;
    width: min(420px, 92vw);
    z-index: 101;
    box-shadow: 0 30px 60px rgba(0,0,0,.30);
    text-align: center;
}
.shift-modal-ico {
    width: 60px; height: 60px; border-radius: 50%;
    background: rgba(108,92,231,.10); color: var(--c-primary);
    margin: 0 auto 14px;
    display: grid; place-items: center;
}
.shift-modal-ico .material-symbols-rounded { font-size: 32px; }
.shift-modal h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.shift-modal p { color: var(--c-text-muted); margin: 0 0 18px; font-size: 13px; }
.shift-modal-err { background: var(--c-red-soft); color: var(--c-red); padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.shift-field { text-align: start; margin-bottom: 12px; }
.shift-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--c-text); margin-bottom: 4px; }
.shift-field input { width: 100%; padding: 10px 12px; border: 1.5px solid var(--c-border); border-radius: 10px; font-size: 14px; font-family: inherit; }
.shift-field input:focus { outline: none; border-color: var(--c-primary); }
.shift-field input[type=number] { direction: ltr; text-align: end; font-weight: 800; }
.shift-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }

.shift-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.ssg-item { background: rgba(108,92,231,.05); border-radius: 10px; padding: 10px; text-align: start; }
.ssg-item .l { font-size: 11px; color: var(--c-text-muted); font-weight: 700; margin-bottom: 4px; }
.ssg-item .v { font-size: 14px; font-weight: 800; color: var(--c-text); }
.ssg-expected { grid-column: span 2; background: rgba(108,92,231,.10); border: 2px dashed var(--c-primary); }
