/*
  The promotional representative's app (15-11-2026), drawn as the till's sale screen (DyninexMobile SalesPOS_Page2, Yazan
  15-11-2026: "ليه ما تعمل زي شكل pos"): light panels (#F9FAFB / white, #E5E7EB borders, radius 10, no shadows), the Leaders
  magenta as the one accent (Resources\Styles\Colors.xaml: Accent #B41F84 ...), small type (11-15), the till's page header
  (PageHeader: icon tile, title, subtitle, the screen's own controls at its end), the dark side menu of its shell, and the
  sale's layout: the customer bar, the search and the lines beside a summary panel with the grand total and one action.
  Logical properties (inline-start / inline-end) so Arabic and English share every rule.
*/

:root {
    --accent: #B41F84;
    --accent-dark: #8E1868;
    --accent-soft: #FDF2F9;
    --accent-soft2: #FBE3F2;
    --accent-border: #F3C4E2;
    --accent-rgb: 180, 31, 132;
    --ink: #111827;
    --ink-2: #374151;
    --ink-3: #6B7280;
    --ink-4: #9CA3AF;
    --line: #E5E7EB;
    --line-2: #D1D5DB;
    --grey: #F3F4F6;
    --bg: #F9FAFB;
    --bg-2: #F8FAFC;
    --nav: #0F172A;
    --nav-2: #1E293B;
    --ok: #15803D;
    --ok-soft: #ECFDF5;
    --bad: #B91C1C;
    --bad-soft: #FEF2F2;
    --warn: #92400E;
    --warn-soft: #FFFBEB;
    --info: #1D4ED8;
    --info-soft: #EFF6FF;
    --radius: 10px;
    --radius-sm: 6px;
    --head-h: 60px;
    --rail-w: 84px;
    --tabbar-h: 56px;
}

html, body { background: var(--bg); color: var(--ink); }
body {
    min-height: 100vh; min-height: 100dvh; margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans Arabic", "Noto Sans", Tahoma, sans-serif;
    font-size: 13px; line-height: 1.45;
    -webkit-tap-highlight-color: transparent; overscroll-behavior-y: contain;
}
.num, .money { font-variant-numeric: tabular-nums; }
.ltr-in-rtl { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.min-w-0 { min-width: 0; }
.text-ink-3 { color: var(--ink-3) !important; }
.fw-800 { font-weight: 700; }
.p-fwd, .p-back { display: inline-block; }
[dir=ltr] .p-fwd, [dir=ltr] .p-back { transform: scaleX(-1); }
input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }

/* ════════ Controls (the till's sizes: fields 38, actions 34, the main action 42) ════════ */
.btn { border-radius: var(--radius-sm); font-weight: 700; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.btn i { font-size: 15px; }
.btn-primary {
    --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-color: #fff;
    --bs-btn-hover-bg: var(--accent-dark); --bs-btn-hover-border-color: var(--accent-dark); --bs-btn-hover-color: #fff;
    --bs-btn-active-bg: var(--accent-dark); --bs-btn-active-border-color: var(--accent-dark); --bs-btn-active-color: #fff;
    --bs-btn-disabled-bg: #D9A2C7; --bs-btn-disabled-border-color: #D9A2C7; --bs-btn-disabled-color: #fff;
}
.btn-grey, .btn-soft, .btn-light { background: var(--grey); border: 1px solid var(--line); color: var(--ink); }
.btn-grey:hover, .btn-soft:hover, .btn-light:hover, .btn-grey:active, .btn-soft:active, .btn-light:active { background: #E5E7EB; color: var(--ink); border-color: var(--line); }
.btn-ghost { background: transparent; border: 0; color: var(--ink-2); }
.btn-ghost:active { background: var(--grey); }
.btn-touch { min-height: 34px; padding: 0 12px; }
.btn-lg-touch { min-height: 42px; padding: 0 16px; font-size: 13.5px; }
.btn-lg-touch i { font-size: 17px; }

.form-control, .form-select {
    min-height: 38px; font-size: 13px; border-radius: var(--radius-sm); border-color: var(--line); background-color: var(--bg); color: var(--ink);
    padding-top: .3rem; padding-bottom: .3rem;
}
.form-control::placeholder { color: var(--ink-3); }
.form-control:focus, .form-select:focus { border-color: var(--accent); background-color: #fff; box-shadow: 0 0 0 .18rem rgba(var(--accent-rgb), .12); }
.form-control[readonly], .form-select:disabled { background-color: var(--grey); color: var(--ink-3); }
textarea.form-control { min-height: 60px; }
.form-label { font-size: 11.5px; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; }
.form-hint { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.req { color: var(--bad); }
.is-invalid { border-color: var(--bad) !important; }

/* ════════ The frame: the till's dark side menu on a tablet, a tab bar on a phone ════════ */
.p-nav {
    position: fixed; z-index: 30; background: var(--nav); display: flex;
    inset-inline-start: 0; top: 0; bottom: 0; width: var(--rail-w); flex-direction: column; align-items: center;
    padding: calc(10px + env(safe-area-inset-top)) 8px calc(10px + env(safe-area-inset-bottom));
    gap: 6px;
}
.p-nav .p-nav-logo { width: 44px; height: 44px; border-radius: 10px; background: #fff; padding: 4px; object-fit: contain; margin-bottom: 10px; }
.p-nav a {
    width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; border-radius: 10px;
    color: #94A3B8; text-decoration: none; font-size: 10.5px; font-weight: 700; text-align: center; line-height: 1.25; position: relative;
}
.p-nav a i { font-size: 20px; line-height: 1; }
.p-nav a:hover { background: var(--nav-2); color: #E2E8F0; }
.p-nav a.active { background: var(--accent); color: #fff; }
.p-nav .p-nav-end { margin-top: auto; width: 100%; display: flex; flex-direction: column; gap: 6px; }
.p-nav .p-nav-end form { margin: 0; }
.p-nav .p-nav-end button { width: 100%; border: 0; background: transparent; color: #94A3B8; border-radius: 10px; padding: 8px 4px; font-size: 10.5px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.p-nav .p-nav-end button i { font-size: 19px; }
.p-nav .p-nav-end button:hover { background: var(--nav-2); color: #E2E8F0; }
.p-nav .p-badge {
    position: absolute; top: 4px; inset-inline-end: 10px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px;
    background: #F59E0B; color: #111827; font-size: 10px; font-weight: 800; display: none; align-items: center; justify-content: center;
}
.p-nav .p-badge.on { display: inline-flex; }
.p-shell { margin-inline-start: var(--rail-w); min-height: 100dvh; display: flex; flex-direction: column; }

@media (max-width: 699px) {
    .p-nav {
        inset-inline: 0; top: auto; bottom: 0; width: auto; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
        flex-direction: row; justify-content: space-around; padding: 4px 6px env(safe-area-inset-bottom); gap: 4px;
    }
    .p-nav .p-nav-logo, .p-nav .p-nav-end { display: none; }
    .p-nav a { padding: 6px 4px; flex: 1; max-width: 140px; }
    .p-shell { margin-inline-start: 0; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
}

/* ════════ The page header (the till's PageHeader) ════════ */
.p-head {
    position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line);
    min-height: var(--head-h); padding: env(safe-area-inset-top) 16px 0; display: flex; align-items: center; gap: 12px;
}
.p-head .p-head-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; text-decoration: none; }
.p-head .p-head-text { min-width: 0; }
.p-head .p-head-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-head .p-head-sub { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-head .p-head-end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.p-head .p-head-end form { margin: 0; }
.p-chip-h {
    height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border-radius: var(--radius-sm);
    background: var(--grey); border: 1px solid var(--line); color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; text-decoration: none;
}
button.p-chip-h:hover, a.p-chip-h:hover { background: #E5E7EB; color: var(--ink); }
.p-chip-h i { color: var(--accent); font-size: 15px; }
.p-chip-h.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.p-chip-h.primary i { color: #fff; }
.p-chip-h.primary:hover { background: var(--accent-dark); color: #fff; }
.p-icon-h { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--grey); border: 1px solid var(--line); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; position: relative; }
.p-icon-h:hover { background: #E5E7EB; }
.p-icon-h .p-dot { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 9.5px; font-weight: 800; display: none; align-items: center; justify-content: center; padding: 0 4px; }
.p-icon-h .p-dot.on { display: inline-flex; }
@media (max-width: 699px) { .p-head .p-hide-sm { display: none !important; } .p-head { padding-inline: 10px; gap: 8px; } }
@media (min-width: 700px) { .p-head .p-only-sm { display: none !important; } }
.p-net { display: none; background: #F59E0B; color: #111827; font-size: 12px; font-weight: 700; text-align: center; padding: 5px 12px; }
body.offline .p-net { display: block; }

/* ════════ Pages ════════ */
.p-page { padding: 12px; flex: 1; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.p-card + .p-card { margin-top: 12px; }
.p-card-title { font-size: 11px; font-weight: 700; color: #4B5563; letter-spacing: .4px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.p-card-title i { color: var(--accent); font-size: 14px; }
.p-opt { font-weight: 500; font-size: 11px; color: var(--ink-3); }

/* ════════ The sale layout: customer, search, lines | summary panel ════════ */
.p-pos { display: grid; grid-template-columns: 1fr; flex: 1; }
.p-pos-main { display: flex; flex-direction: column; background: var(--bg-2); min-width: 0; }
.p-pos-side { background: var(--bg); padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.p-pos-side .p-side-scroll { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) {
    .p-pos { grid-template-columns: minmax(0, 1fr) 330px; }
    .p-pos-side { border-inline-start: 1px solid var(--line); position: sticky; top: var(--head-h); height: calc(100dvh - var(--head-h)); }
    .p-pos-side .p-side-scroll { flex: 1; overflow-y: auto; min-height: 0; }
}
@media (max-width: 899px) {
    .p-pos-side .p-side-foot { position: sticky; bottom: 0; z-index: 10; box-shadow: 0 -6px 16px rgba(15, 23, 42, .06); }
}
@media (max-width: 699px) {
    .p-pos-side .p-side-foot { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
}

/* the customer bar (white, as the till's) */
.p-custbar { background: #fff; padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-pick { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px; text-align: start; background: transparent; border: 0; padding: 0; color: var(--ink); }
.p-pick .p-pick-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft2); color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; flex-shrink: 0; }
.p-pick.chosen .p-pick-icon { font-size: 14px; }
.p-pick .p-pick-name { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.p-pick .p-pick-facts { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.p-pick .p-pick-go { display: none; }
.p-pick.blocked .p-pick-icon { background: var(--bad-soft); color: var(--bad); }
.p-pick:not(.chosen) .p-pick-name { color: var(--accent-dark); }
.p-custbar .p-cust-extra { display: flex; gap: 6px; flex-wrap: wrap; }

/* the search bar */
.p-searchbar { background: #fff; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.p-search { position: relative; display: flex; gap: 8px; }
.p-search .p-search-box { position: relative; flex: 2; min-width: 0; }
.p-search .p-search-box > i { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 10px; font-size: 16px; color: var(--accent); pointer-events: none; }
.p-search input { min-height: 38px; padding-inline-start: 34px; padding-inline-end: 34px; font-size: 13px; }
.p-search .p-clear { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-end: 4px; width: 30px; height: 30px; border: 0; background: transparent; color: var(--ink-4); font-size: 16px; display: none; }
.p-search .p-clear.on { display: inline-flex; align-items: center; justify-content: center; }
.p-search .p-cam { width: 38px; min-width: 38px; height: 38px; padding: 0; font-size: 17px; }
.p-search .p-filter { flex: 1; min-width: 0; max-width: 200px; }
@media (max-width: 699px) { .p-search .p-filter { display: none; } }
.p-scan-hint { font-size: 11px; color: var(--ink-3); margin-top: 6px; display: flex; align-items: center; gap: 5px; }
.p-scan-hint i { color: var(--ok); }

/* the list area: the lines, with the search matches laid over them while searching (as the till) */
.p-cartarea { flex: 1; padding: 12px 16px; }
.p-cart-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.p-cart-head i { color: var(--accent); font-size: 15px; }
.p-cart-head .p-cart-clear { margin-inline-start: auto; border: 0; background: transparent; color: var(--ink-3); font-size: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 6px; }
.p-cart-head .p-cart-clear:hover { background: var(--grey); }
.p-results { display: grid; gap: 8px; }
.p-results:empty { display: none; }
.p-cartarea.searching .p-cart-wrap { display: none; }

.p-result {
    display: flex; align-items: center; gap: 12px; width: 100%; text-align: start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-height: 58px;
}
.p-result:hover { border-color: var(--accent-border); }
.p-result:active { background: var(--accent-soft); }
.p-r-icon, .p-l-icon { width: 38px; height: 38px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.p-result .p-r-main { flex: 1; min-width: 0; }
.p-result .p-r-name { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-result .p-r-facts { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-result .p-r-price { font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-result .p-r-add { width: 30px; height: 30px; border-radius: 6px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.p-result.added .p-r-add { background: var(--ok); }

/* a line (the till's cart line) */
.p-lines { display: grid; gap: 10px; }
.p-line { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; gap: 12px; align-items: flex-start; }
.p-line.flash { animation: p-flash .9s ease; }
@keyframes p-flash { 0% { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .12); } 100% { border-color: var(--line); box-shadow: none; } }
.p-line.off { background: var(--bad-soft); border-color: #FECACA; }
.p-line .p-l-main { flex: 1; min-width: 0; }
.p-line .p-l-name { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.p-line .p-l-sup { font-size: 11px; color: var(--ink-2); margin-top: 3px; }
.p-line .p-l-facts { font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.p-line .p-l-rule { font-size: 10px; font-weight: 700; color: var(--accent-dark); margin-top: 3px; }
.p-line .p-l-qty { flex-shrink: 0; }
.p-line .p-l-amt { min-width: 84px; text-align: end; flex-shrink: 0; }
.p-line .p-l-total { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-line .p-l-unit { font-size: 10px; color: var(--ink-4); margin-top: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-line .p-l-del { width: 28px; height: 28px; border: 0; background: transparent; color: var(--ink-4); border-radius: 6px; font-size: 15px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.p-line .p-l-del:hover { background: var(--bad-soft); color: var(--bad); }
@media (max-width: 560px) {
    .p-line { flex-wrap: wrap; }
    .p-line .p-l-main { flex-basis: calc(100% - 40px); }
    .p-line .p-l-icon { display: none; }
}

.p-qty { display: inline-flex; align-items: center; gap: 0; }
.p-qty button { width: 28px; height: 28px; border: 0; border-radius: 5px; background: var(--grey); color: var(--ink); font-size: 15px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.p-qty button:active { background: #E5E7EB; }
.p-qty button:disabled { color: var(--ink-4); }
.p-qty input { width: 38px; height: 28px; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.p-qty input::-webkit-outer-spin-button, .p-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.p-qty input:focus { outline: 1px solid var(--accent-border); border-radius: 5px; background: var(--accent-soft); }

/* the line chips (sale type, delivery, note, stock), as the till's */
.p-chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.p-lchip {
    height: 24px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--line);
    background: #fff; color: var(--ink-2); font-size: 11px; font-weight: 700; white-space: nowrap;
}
.p-lchip i { font-size: 13px; }
button.p-lchip:hover { border-color: var(--accent-border); }
.p-lchip.cnd { background: #FFF7ED; border-color: #FED7AA; color: #C2410C; }
.p-lchip.cnc { background: var(--info-soft); border-color: #BFDBFE; color: var(--info); }
.p-lchip.on { background: var(--ok-soft); border-color: #A7F3D0; color: var(--ok); }
.p-lchip.note { background: var(--warn-soft); border-color: #FDE68A; color: var(--warn); max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.p-lchip.gift { background: var(--ok-soft); border-color: #A7F3D0; color: var(--ok); }
.p-lchip.exempt { background: var(--grey); color: var(--ink-3); }
.p-lchip.stock { color: var(--ink-3); }

/* tags */
.p-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--grey); color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
.p-tag.cnd { background: #FFF7ED; color: #C2410C; }
.p-tag.cnc { background: var(--info-soft); color: var(--info); }
.p-tag.ok { background: var(--ok-soft); color: var(--ok); }
.p-tag.bad { background: var(--bad-soft); color: var(--bad); }
.p-tag.warn { background: var(--warn-soft); color: var(--warn); }
.p-tag.muted { background: var(--grey); color: var(--ink-3); }
.p-tag.accent { background: var(--accent-soft2); color: var(--accent-dark); }

.p-empty { text-align: center; color: var(--ink-3); padding: 40px 12px; font-size: 12px; }
.p-empty i { font-size: 34px; display: block; margin-bottom: 6px; color: var(--line-2); }
.p-empty .p-empty-title { font-weight: 700; color: var(--ink-2); font-size: 13px; }
.p-msg { border-radius: 8px; padding: 8px 10px; font-size: 12px; display: flex; gap: 8px; align-items: flex-start; border: 1px solid transparent; }
.p-msg i { font-size: 16px; line-height: 1.2; }
.p-msg.bad { background: var(--bad-soft); color: var(--bad); border-color: #FECACA; }
.p-msg.warn { background: var(--warn-soft); color: var(--warn); border-color: #FDE68A; }
.p-msg.info { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent-border); }
.p-skel { height: 58px; border-radius: var(--radius); background: linear-gradient(90deg, #F1F3F6 25%, #F8F9FB 37%, #F1F3F6 63%); background-size: 400% 100%; animation: p-shine 1.2s ease infinite; }
@keyframes p-shine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ════════ The summary panel ════════ */
.p-sum-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-2); padding: 3px 0; gap: 8px; }
.p-sum-row strong { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-side-foot { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.p-grand { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-grand .p-grand-label { font-size: 14px; font-weight: 700; color: var(--ink); }
.p-grand .p-grand-value { font-size: 18px; font-weight: 800; color: var(--accent-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-grand .p-grand-value small { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.p-sep { height: 1px; background: var(--line); margin: 10px 0; }
.p-side-foot .p-foot-actions { display: flex; gap: 8px; }
.p-side-foot .p-foot-actions .btn-primary { flex: 1; }
.p-side-foot .p-foot-actions .btn-grey { width: 42px; flex-shrink: 0; padding: 0; }
.p-who { width: 100%; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 10px; min-height: 38px; text-align: start; }
.p-who i { color: var(--accent); font-size: 15px; }
.p-who strong { color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.p-who:hover { border-color: var(--accent-border); }

/* the loyalty card (the till keeps it dark: #111827 with a light accent) */
.p-loyal { background: #111827; color: #fff; border-radius: var(--radius); padding: 12px 14px; position: relative; overflow: hidden; }
.p-loyal::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(var(--accent-rgb), .25); inset-inline-end: -40px; top: -50px; }
.p-loyal .p-loyal-title { font-size: 11px; font-weight: 700; color: #F0A3D3; display: flex; align-items: center; gap: 6px; }
.p-loyal .p-loyal-points { font-size: 20px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.p-loyal .p-loyal-sub { font-size: 11px; color: #CBD5E1; }

/* segmented / pill choices (the till's ChoiceRadio) */
.p-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.p-chip {
    height: 30px; padding: 0 10px; border-radius: 6px; border: 1.5px solid var(--line); background: #fff; font-size: 12px; font-weight: 700; color: var(--ink);
    display: inline-flex; align-items: center; gap: 6px;
}
.p-chip::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #fff; flex-shrink: 0; box-sizing: border-box; }
.p-chip.on { border-color: var(--accent); background: var(--accent-soft); }
.p-chip.on::before { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 3px, #fff 3.5px); }

/* ════════ Lists (customers, quotations) ════════ */
.p-listbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.p-listbar .p-search { flex: 1; }
.p-cust { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; width: 100%; text-align: start; }
.p-cust-pick { display: block; border-radius: var(--radius); cursor: pointer; }
.p-cust-pick:hover .p-cust { border-color: var(--accent-border); }
.p-cust .p-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft2); color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.p-cust.off .p-avatar { background: var(--bad-soft); color: var(--bad); }
.p-cust .p-c-name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.p-cust .p-c-facts { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.p-cust .p-c-actions { display: flex; gap: 6px; flex-shrink: 0; }
.p-icon-act { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line); background: var(--grey); color: var(--ink); font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.p-icon-act:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-soft); }

.p-q { display: block; width: 100%; text-align: start; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); padding: 12px 14px; }
.p-q:hover { border-color: var(--accent-border); }
.p-q .p-q-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.p-q .p-q-no { font-weight: 700; font-size: 13px; }
.p-q .p-q-total { margin-inline-start: auto; font-weight: 800; font-size: 14px; color: var(--accent-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.p-q .p-q-who { margin-top: 6px; font-weight: 700; font-size: 12.5px; }
.p-q .p-q-facts { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.p-grid-2 { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .p-grid-2 { grid-template-columns: 1fr 1fr; } }
.p-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 12.5px; }
.p-kv dt { color: var(--ink-3); font-weight: 600; }
.p-kv dd { margin: 0; font-weight: 600; }

/* ════════ Sheets (slide up on a phone, a panel at the side on a tablet) ════════ */
.p-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .4); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.p-backdrop.on { opacity: 1; pointer-events: auto; }
.p-sheet {
    position: fixed; z-index: 51; background: #fff; display: flex; flex-direction: column;
    inset-inline: 0; bottom: 0; max-height: 92dvh; border-radius: 14px 14px 0 0;
    transform: translateY(105%); transition: transform .22s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -8px 30px rgba(0,0,0,.15);
    padding-bottom: env(safe-area-inset-bottom);
}
.p-sheet.on { transform: none; }
.p-sheet.tall { height: 92dvh; }
@media (min-width: 900px) {
    .p-sheet, .p-sheet.tall { inset-inline: auto; inset-inline-end: 0; top: 0; bottom: 0; width: 460px; max-height: none; height: 100dvh; border-radius: 0; transform: translateX(105%); }
    [dir=rtl] .p-sheet { transform: translateX(-105%); }
    .p-sheet.on, [dir=rtl] .p-sheet.on { transform: none; }
    .p-sheet .p-grab { display: none; }
}
.p-sheet .p-grab { width: 40px; height: 4px; border-radius: 2px; background: var(--line-2); margin: 8px auto 2px; flex-shrink: 0; }
.p-sheet-head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-shrink: 0; min-height: 56px; }
.p-sheet-head::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--accent); }
.p-sheet-head h2 { font-size: 14px; font-weight: 700; margin: 0; flex: 1; }
.p-sheet-head .p-x { width: 32px; height: 32px; border: 1px solid var(--line); background: var(--grey); border-radius: 6px; font-size: 16px; color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.p-sheet-body { padding: 14px 16px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; background: var(--bg-2); }
.p-sheet-body .p-results { margin-top: 12px; }
.p-sheet-foot { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-shrink: 0; background: #fff; }
.p-sheet-foot .btn { flex: 1; }
body.sheet-open { overflow: hidden; }
.p-lock-note { font-size: 11px; color: var(--warn); background: var(--warn-soft); border: 1px solid #FDE68A; border-radius: 6px; padding: 6px 8px; display: flex; gap: 6px; align-items: flex-start; }

/* the stock window */
.p-stock-tot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.p-stock-tot div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px; text-align: center; }
.p-stock-tot small { display: block; font-size: 10.5px; color: var(--ink-3); }
.p-stock-tot strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.p-stock-tot div:first-child { background: var(--accent-soft); border-color: var(--accent-border); color: var(--accent-dark); }
.p-stock-row { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.p-stock-row + .p-stock-row { margin-top: 6px; }
.p-stock-row.mine { border-color: var(--accent-border); background: var(--accent-soft); }
.p-stock-row .p-s-name { flex: 1; min-width: 0; }
.p-stock-row .p-s-num { width: 58px; text-align: end; font-variant-numeric: tabular-nums; }
.p-stock-row .p-s-num small { display: block; font-size: 9.5px; color: var(--ink-3); }

/* ════════ The camera ════════ */
.p-cam-view { position: fixed; inset: 0; z-index: 70; background: #000; display: none; }
.p-cam-view.on { display: block; }
.p-cam-view video { width: 100%; height: 100%; object-fit: cover; }
.p-cam-frame { position: absolute; top: 50%; left: 50%; width: min(78vw, 520px); height: min(34vh, 240px); transform: translate(-50%, -50%); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); border: 2px solid rgba(255,255,255,.9); }
.p-cam-frame::after { content: ""; position: absolute; inset-inline: 8%; top: 50%; height: 2px; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: p-laser 1.6s ease-in-out infinite; }
@keyframes p-laser { 0%, 100% { transform: translateY(-70px); } 50% { transform: translateY(70px); } }
.p-cam-top { position: absolute; top: 0; inset-inline: 0; padding: calc(14px + env(safe-area-inset-top)) 16px 14px; display: flex; justify-content: space-between; align-items: center; color: #fff; background: linear-gradient(rgba(0,0,0,.55), transparent); font-size: 14px; }
.p-cam-top .p-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 20px; }
.p-cam-hint { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom)); inset-inline: 0; text-align: center; color: #fff; font-weight: 600; font-size: 13px; text-shadow: 0 1px 4px rgba(0,0,0,.6); padding: 0 16px; }

/* ════════ The saved draft ════════ */
.p-done { text-align: center; padding: 12px 6px 6px; }
.p-done .p-done-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; font-size: 28px; }
.p-done .p-done-no { font-size: 22px; font-weight: 800; letter-spacing: .5px; margin: 10px 0 2px; direction: ltr; color: var(--accent-dark); font-variant-numeric: tabular-nums; }

/* toasts */
.p-toasts { position: fixed; z-index: 80; inset-inline: 0; top: calc(var(--head-h) + 8px + env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; padding: 0 12px; }
.p-toast { pointer-events: auto; max-width: 520px; width: fit-content; background: var(--ink); color: #fff; border-radius: 8px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.18); display: flex; gap: 6px; align-items: center; animation: p-in .18s ease; }
.p-toast.ok i { color: #4ADE80; }
.p-toast.bad { background: var(--bad); }
.p-toast.warn { background: var(--warn); }
@keyframes p-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* install bar */
.p-install { position: fixed; inset-inline-end: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; background: var(--nav); color: #fff; border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: 420px; font-size: 12px; }
.p-install .btn { min-height: 30px; font-size: 12px; }
.p-install .p-x { width: 30px; height: 30px; border: 0; background: transparent; color: #fff; font-size: 16px; }
@media (max-width: 699px) { body:not(.no-tabs) .p-install { bottom: calc(var(--tabbar-h) + 10px + env(safe-area-inset-bottom)); inset-inline: 12px; } }

/* ════════ Sign-in (the till's LoginPage: light, one card, the accent) ════════ */
body.p-login { background: var(--bg); min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.p-login-card { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 28px 24px 22px; }
.p-login-card .p-login-logo { display: block; height: 46px; margin: 0 auto 14px; }
.p-login-card h1 { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.p-login-card .p-login-sub { text-align: center; color: var(--ink-3); font-size: 12.5px; margin-bottom: 20px; }
.p-pass { position: relative; }
.p-pass .form-control { padding-inline-end: 40px; }
.p-pass button { position: absolute; top: 0; inset-inline-end: 0; width: 40px; height: 100%; border: 0; background: transparent; color: var(--ink-3); font-size: 16px; }
.p-lang-pill { position: fixed; top: calc(14px + env(safe-area-inset-top)); inset-inline-end: 14px; display: flex; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.p-lang-pill button { border: 0; background: transparent; color: var(--ink-2); font-weight: 800; font-size: 12px; padding: 5px 10px; border-radius: 6px; }
.p-lang-pill button.active { background: var(--accent); color: #fff; }
.form-control-lg { min-height: 42px; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* the till's Promotion mark on a line, and a promotion's free line */
.p-lchip.offer { background: var(--accent); border-color: var(--accent); color: #fff; }
.p-lchip.offer:hover { background: var(--accent-dark); }
.p-line.p-free { background: var(--ok-soft); border-color: #A7F3D0; }
.p-line.p-free .p-l-icon { background: #D1FAE5; color: var(--ok); }
.p-line.p-free .p-l-rule { color: var(--ok); }

/* ════════ Finer sizes (Yazan, 15-11-2026: "الاحجام دفشة نعمها") ════════ */
:root { --head-h: 50px; --rail-w: 72px; --radius: 8px; }
body { font-size: 12.5px; }
.btn { font-size: 12px; }
.btn i { font-size: 14px; }
.btn-touch { min-height: 30px; padding: 0 10px; }
.btn-lg-touch { min-height: 38px; padding: 0 14px; font-size: 13px; }
.btn-lg-touch i { font-size: 15px; }
.form-control, .form-select { min-height: 34px; font-size: 12.5px; }
.form-label { font-size: 11px; margin-bottom: 3px; }
textarea.form-control { min-height: 52px; }

.p-nav { padding: calc(8px + env(safe-area-inset-top)) 6px calc(8px + env(safe-area-inset-bottom)); gap: 4px; }
.p-nav .p-nav-logo { width: 38px; height: 38px; margin-bottom: 8px; }
.p-nav a { padding: 7px 3px; font-size: 10px; border-radius: 8px; }
.p-nav a i { font-size: 18px; }
.p-nav .p-nav-end button { padding: 6px 3px; font-size: 10px; }
.p-nav .p-nav-end button i { font-size: 17px; }

.p-head { gap: 10px; padding-inline: 12px; }
.p-head .p-head-icon { width: 30px; height: 30px; font-size: 15px; border-radius: 7px; }
.p-head .p-head-title { font-size: 14px; }
.p-head .p-head-sub { font-size: 10.5px; }
.p-head .p-head-end { gap: 6px; }
.p-chip-h { height: 30px; font-size: 11.5px; padding: 0 8px; gap: 5px; }
.p-chip-h i { font-size: 14px; }
.p-icon-h { width: 30px; height: 30px; font-size: 14px; }

.p-page { padding: 10px; }
.p-card { padding: 10px 12px; }
.p-card + .p-card { margin-top: 10px; }
.p-card-title { font-size: 10.5px; margin-bottom: 6px; }
.p-step-no { width: 18px; height: 18px; font-size: 10px; }

.p-custbar { padding: 8px 12px; gap: 8px; }
.p-pick .p-pick-icon { width: 34px; height: 34px; font-size: 15px; }
.p-pick.chosen .p-pick-icon { font-size: 12px; }
.p-pick .p-pick-name { font-size: 13px; }
.p-pick .p-pick-facts { font-size: 10.5px; }
.p-searchbar { padding: 8px 12px; }
.p-search { gap: 6px; }
.p-search input { min-height: 34px; font-size: 12.5px; padding-inline-start: 30px; }
.p-search .p-search-box > i { font-size: 14px; inset-inline-start: 9px; }
.p-search .p-cam { width: 34px; min-width: 34px; height: 34px; font-size: 15px; }
.p-search .p-filter { max-width: 170px; }
.p-scan-hint { font-size: 10.5px; margin-top: 4px; }

.p-cartarea { padding: 10px 12px; }
.p-cart-head { font-size: 11.5px; margin-bottom: 8px; }
.p-results { gap: 6px; }
.p-result { min-height: 46px; padding: 7px 10px; gap: 10px; }
.p-r-icon, .p-l-icon { width: 30px; height: 30px; font-size: 15px; border-radius: 7px; }
.p-result .p-r-name { font-size: 12px; }
.p-result .p-r-facts { font-size: 10px; }
.p-result .p-r-price { font-size: 12px; }
.p-result .p-r-add { width: 26px; height: 26px; font-size: 15px; }

.p-lines { gap: 8px; }
.p-line { padding: 9px 10px; gap: 10px; }
.p-line .p-l-name { font-size: 12px; }
.p-line .p-l-sup { font-size: 10.5px; margin-top: 2px; }
.p-line .p-l-facts, .p-line .p-l-rule, .p-line .p-l-unit { font-size: 10px; }
.p-line .p-l-amt { min-width: 72px; }
.p-line .p-l-total { font-size: 12.5px; }
.p-line .p-l-del { width: 26px; height: 26px; font-size: 14px; }
.p-chips-row { gap: 5px; margin-top: 6px; }
.p-lchip { height: 22px; font-size: 10.5px; padding: 0 7px; gap: 3px; }
.p-lchip i { font-size: 12px; }
.p-qty button { width: 26px; height: 26px; font-size: 14px; }
.p-qty input { width: 32px; height: 26px; font-size: 12px; }
.p-tag { font-size: 10px; padding: 0 6px; }

@media (min-width: 900px) { .p-pos { grid-template-columns: minmax(0, 1fr) 300px; } }
.p-pos-side { padding: 10px; gap: 10px; }
.p-pos-side .p-side-scroll { gap: 10px; }
.p-sum-row { font-size: 12px; padding: 2px 0; }
.p-side-foot { padding: 10px 12px; }
.p-grand .p-grand-label { font-size: 13px; }
.p-grand .p-grand-value { font-size: 16px; }
.p-sep { margin: 8px 0; }
.p-who { min-height: 34px; font-size: 11.5px; }
.p-side-foot .p-foot-actions .btn-grey { width: 38px; }
.p-loyal { padding: 10px 12px; }
.p-loyal .p-loyal-points { font-size: 17px; }
.p-chip { height: 28px; font-size: 11.5px; padding: 0 9px; }

.p-cust { padding: 8px 10px; gap: 8px; }
.p-cust .p-avatar { width: 32px; height: 32px; font-size: 11.5px; }
.p-cust .p-c-name { font-size: 12.5px; }
.p-cust .p-c-facts { font-size: 10.5px; }
.p-icon-act { width: 28px; height: 28px; font-size: 13px; }
.p-q { padding: 10px 12px; }
.p-q .p-q-no, .p-q .p-q-who { font-size: 12.5px; }
.p-q .p-q-total { font-size: 13px; }

.p-sheet-head { min-height: 48px; padding: 8px 14px; }
.p-sheet-head h2 { font-size: 13px; }
.p-sheet-head .p-x { width: 28px; height: 28px; font-size: 14px; }
.p-sheet-body { padding: 12px 14px; }
.p-sheet-foot { padding: 8px 14px; }
@media (min-width: 900px) { .p-sheet, .p-sheet.tall { width: 420px; } }
.p-empty { padding: 28px 10px; font-size: 11.5px; }
.p-empty i { font-size: 28px; }
.p-toast { font-size: 12px; padding: 7px 11px; }
.p-msg { font-size: 11.5px; padding: 7px 9px; }
/* the server is working the basket out again */
.p-side-foot.busy .p-grand-value { opacity: .45; }
.p-side-foot.busy .p-grand-label::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-inline-start: 8px; border: 2px solid var(--accent-border); border-top-color: var(--accent); border-radius: 50%; animation: p-spin .7s linear infinite; vertical-align: -1px; }
@keyframes p-spin { to { transform: rotate(360deg); } }

/* the calculator */
.p-calc { background: #fff; }
.p-calc-screen { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; text-align: right; margin-bottom: 10px; min-height: 76px; }
.p-calc-expr { font-size: 12px; color: var(--ink-3); min-height: 18px; font-variant-numeric: tabular-nums; }
.p-calc-result { font-size: 32px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; word-break: break-all; }
.p-calc-result.err { color: var(--bad); }
.p-calc-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.p-calc-keys button { height: 50px; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 18px; font-weight: 600; color: var(--ink); }
.p-calc-keys button:active { background: var(--grey); }
.p-calc-keys .fn { background: var(--grey); }
.p-calc-keys .op { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent-border); }
.p-calc-keys .eq { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- the till's Inquiry and Promotions screens, the customer balance, announcements ---------- */
.text-accent { color: var(--accent) !important; }
.p-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.p-seg > button, .p-seg > label { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.p-seg > button.on, .p-seg > button[aria-checked="true"], .p-seg > label.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.p-inq { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 10px; }
@media (min-width: 900px) { .p-inq { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.p-inq-main, .p-inq-side { display: grid; gap: 10px; min-width: 0; }
.p-inq-main > .p-card, .p-inq-side > .p-card { margin: 0; }
.p-avatar-lg { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft2); color: var(--accent); font-weight: 800; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.p-tiles { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.p-tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 6px 8px; min-width: 0; }
.p-tile small { display: block; font-size: 10.5px; color: var(--ink-3); }
.p-tile strong { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-inv { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 8px 10px; margin-bottom: 6px; font-size: 12px; cursor: pointer; }
.p-inv:hover { border-color: var(--accent-border); }
.p-inv.neg { background: var(--bad-soft); border-color: #FECACA; }
.p-pts { font-size: 11px; color: var(--bad); display: flex; gap: 4px; align-items: center; margin-top: 3px; }
.p-pts.earn { color: var(--ok); }
.p-wallet { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; border-radius: var(--radius); padding: 12px; }
.p-wallet small { color: rgba(255,255,255,.8); }
.p-wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.p-wallet-grid > div { background: rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 6px 8px; }
.p-wallet-grid strong { display: block; font-size: 13px; }
.p-move { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.p-move:last-child { border-bottom: 0; }
.p-move-sign { width: 28px; height: 28px; border-radius: 50%; background: var(--grey); color: var(--bad); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 auto; }
.p-move-sign.plus { color: var(--ok); background: var(--ok-soft); }
.p-lines-head, .p-lines-row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 50px 80px; gap: 6px; align-items: start; font-size: 12px; padding: 6px 0; }
.p-lines-head.erp, .p-lines-row.erp { grid-template-columns: minmax(0, 1fr) 50px 80px; }
.p-lines-head { font-size: 11px; color: var(--ink-3); font-weight: 700; border-bottom: 1px solid var(--line); }
.p-lines-row { border-bottom: 1px solid var(--line); }
.p-lines-head > span:not(:first-child), .p-lines-row > span:not(:first-child) { text-align: end; }
.p-promo-item { display: flex; align-items: center; gap: 6px; font-size: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 6px; }
.p-promo-det { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 8px; cursor: default; }
.p-cust-balance { font-size: 11.5px; font-weight: 700; color: var(--accent-dark); margin-top: 2px; }
.p-loyal[role="button"] { cursor: pointer; }
.p-ann-img { display: block; max-width: 100%; max-height: 320px; border-radius: var(--radius-sm); margin-top: 8px; }
