/* Counter services share the approved KPV directory/editor surfaces and type. */
.kpv-sales-home{--sales-paper:#fff;--sales-soft:#faf6f5;--sales-line:#ebdfe1;--sales-ink:#3b2630;--sales-muted:#88747b;--sales-accent:#660015}
.kpv-sales-home>section{gap:22px}

.kpv-sales-heading{min-width:0}
.kpv-sales-branch{display:flex;align-items:center;gap:7px;max-width:260px;margin-inline-start:auto;padding:8px 12px;border:1px solid var(--sales-line);border-radius:8px;background:var(--sales-soft);color:var(--sales-muted);font-size:12px}.kpv-sales-branch svg{width:16px;height:16px;flex:none}.kpv-sales-branch span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kpv-sales-services{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.kpv-sales-service{position:relative;display:flex;align-items:center;gap:16px;min-width:0;min-height:156px;padding:16px 22px 16px 12px;overflow:hidden;border:1px solid var(--sales-line);border-radius:18px;background:var(--sales-paper);text-decoration:none;transition:border-color .2s,box-shadow .2s}
.kpv-sales-service::before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(110deg,#FFC78114,transparent 48%)}
.kpv-sales-service--withdraw::before{background:linear-gradient(110deg,#66001507,transparent 50%)}
.kpv-sales-service:hover{border-color:#c49caa;box-shadow:0 8px 24px #6600150a}.kpv-sales-service:focus-visible,.kpv-sales-tab:focus-visible{outline:2px solid #b98053;outline-offset:3px}
.kpv-sales-service-art{position:relative;flex:none;width:146px;height:116px;display:grid;place-items:center}.kpv-sales-art{display:block;width:160px;height:116px;overflow:visible}
.kpv-sales-service-copy{position:relative;min-width:0;flex:1}.kpv-sales-service-copy h2{margin:0;color:var(--sales-accent);font-size:20px;font-weight:600;line-height:1.6}.kpv-sales-service-copy p{margin:4px 0 0;color:var(--sales-muted);font-size:13px;line-height:1.8}.kpv-sales-service-link{display:inline-flex;align-items:center;gap:8px;margin-top:12px;color:var(--sales-accent);font-size:12px;font-weight:600}.kpv-sales-service-link svg{width:15px;height:15px;transition:transform .2s}.kpv-sales-service:hover .kpv-sales-service-link svg{transform:translateX(4px)}
.kpv-sales-service-arrow{position:relative;display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid var(--sales-line);border-radius:11px;background:var(--sales-soft);color:var(--sales-accent)}.kpv-sales-service-arrow svg{width:18px;height:18px}
.kpv-sales-ledger{overflow:visible;border:1px solid var(--sales-line);border-radius:18px;background:var(--sales-paper)}
.kpv-sales-ledger-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 22px;border-bottom:1px solid var(--sales-line)}
.kpv-sales-ledger-title{display:flex;align-items:center;gap:12px}
.kpv-sales-tabs{display:flex;gap:4px;padding:4px;border:1px solid var(--sales-line);border-radius:11px;background:var(--sales-soft)}
.kpv-sales-tab{display:flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:8px 13px;border:0;border-radius:8px;background:transparent;color:var(--sales-muted);font-size:13px;line-height:1.6;transition:background .18s,color .18s;cursor:pointer}.kpv-sales-tab svg{width:17px;height:17px;flex:none}.kpv-sales-tab.is-active{background:#660015;color:#fff;box-shadow:0 2px 5px #66001515}.kpv-sales-tab:disabled{cursor:wait}
.kpv-sales-home .fi-ta-ctn{border:0;border-radius:0 0 18px 18px;box-shadow:none;background:var(--sales-paper);--tw-ring-shadow:0 0 #0000}
.kpv-sales-home .fi-ta-header-ctn{border-color:var(--sales-line)}.kpv-sales-home .fi-ta-header{display:none}.kpv-sales-home .fi-ta-filters-above-content-ctn{border-color:var(--sales-line)}
.kpv-sales-home .fi-ta-filters-above-content-ctn{padding:18px 22px}.kpv-sales-home .fi-ta-filters{padding:0}.kpv-sales-home .fi-ta-filters :is(h3,h4),.kpv-sales-home .fi-ta-filters-heading{font-size:12px;font-weight:500;color:var(--sales-muted)}
.kpv-sales-home .fi-fo-field-wrp-label{font-size:12px;font-weight:600;color:var(--sales-ink)}.kpv-sales-home .fi-input-wrp{border:1px solid var(--sales-line);border-radius:10px;box-shadow:none;--tw-ring-shadow:0 0 #0000;background:var(--sales-paper)}.kpv-sales-home .fi-input-wrp:focus-within{border-color:#b78596;box-shadow:0 0 0 3px #6600150a}.kpv-sales-home .fi-input{font-size:14px;color:var(--sales-ink)}
.kpv-sales-home .fi-ta-header-cell{background:var(--sales-soft);padding-block:14px}.kpv-sales-home .fi-ta-header-cell-label{color:var(--sales-muted);font-size:12px;font-weight:500}.kpv-sales-home .fi-ta-row:hover{background:var(--sales-soft)}.kpv-sales-home .fi-ta-text{padding-block:17px}.kpv-sales-home .fi-ta-text-item-label{font-size:13px;color:var(--sales-ink)}.kpv-sales-home .fi-ta-pagination{border-color:var(--sales-line)}
.kpv-sales-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:260px;padding:30px 20px 34px;text-align:center}.kpv-sales-empty svg{display:block;width:112px;height:86px;margin-bottom:12px}.kpv-sales-empty h3{margin:0;color:var(--sales-ink);font-size:15px;font-weight:600;line-height:1.8}.kpv-sales-empty p{margin:5px 0 0;color:var(--sales-muted);font-size:12px;line-height:1.9}
.kpv-sales-empty-trace{stroke-dasharray:29;animation:kpv-sales-empty-scan 5s ease-in-out infinite}
@keyframes kpv-sales-empty-scan{0%,15%,100%{stroke-dashoffset:29;opacity:.2}45%,70%{stroke-dashoffset:0;opacity:.8}}
html.dark .kpv-sales-home{--sales-paper:#261e25;--sales-soft:#30242c;--sales-line:#4d3440;--sales-ink:#f6e9ed;--sales-muted:#bba7af;--sales-accent:#ffc781}
html.dark .kpv-sales-tab.is-active{background:#660015;color:#ffc781}html.dark .kpv-sales-service:hover{border-color:#a87764}html.dark .kpv-sales-service--withdraw::before{background:linear-gradient(110deg,#FFC78108,transparent 50%)}
@media(max-width:1100px){.kpv-sales-service{gap:10px;padding-right:16px}.kpv-sales-service-art{width:114px;height:104px}.kpv-sales-art{width:136px;height:104px}.kpv-sales-service-copy h2{font-size:19px}.kpv-sales-service-arrow{width:32px;height:32px}.kpv-sales-service-copy p{font-size:12px}}
@media(max-width:800px){.kpv-sales-branch{margin-left:0;max-width:100%}.kpv-sales-services{grid-template-columns:1fr;gap:14px}.kpv-sales-service{min-height:138px;padding:12px 18px 12px 8px;gap:16px}.kpv-sales-service-art{width:126px;height:110px}.kpv-sales-art{width:148px;height:110px}.kpv-sales-service-copy h2{font-size:21px}.kpv-sales-ledger-header{align-items:flex-start;flex-direction:column;gap:14px;padding:18px}.kpv-sales-tabs{width:100%}.kpv-sales-tab{flex:1;min-width:0}.kpv-sales-home .fi-ta-filters-above-content-ctn{padding:18px}}
@media(max-width:480px){.kpv-sales-home>section{gap:16px}.kpv-sales-heading{flex:1}.kpv-sales-service{gap:9px;min-height:136px;padding:12px}.kpv-sales-service-art{width:88px;height:100px}.kpv-sales-art{width:112px;height:100px}.kpv-sales-service-copy h2{font-size:18px}.kpv-sales-service-copy p{font-size:12px}.kpv-sales-service-arrow{width:28px;height:28px;border-radius:8px}.kpv-sales-service-arrow svg{width:15px;height:15px}.kpv-sales-service-link{margin-top:8px;font-size:11px}.kpv-sales-tab{gap:6px;padding-inline:7px;font-size:12px}.kpv-sales-tab svg{width:16px;height:16px}.kpv-sales-empty{min-height:240px}.kpv-sales-empty p{max-width:235px}}


/* Use the approved customer header, icon and typography classes directly. */
.kpv-sales-home{--customer-paper:var(--sales-paper);--customer-soft:var(--sales-soft);--customer-line:var(--sales-line);--customer-ink:var(--sales-ink);--customer-muted:var(--sales-muted)}
.kpv-sales-ledger-title{margin-bottom:0;gap:13px}
.kpv-sales-header-art .kpv-sales-art{width:165px;height:108px}
@media(max-width:767px){.kpv-sales-header-art .kpv-sales-art{width:114px;height:80px}.kpv-sales-branch{grid-column:2;margin-inline-start:0;max-width:100%;justify-self:start}}
@media(prefers-reduced-motion:reduce){.kpv-sales-home *{animation:none!important;transition:none!important}.kpv-device-collected-pack,.kpv-device-receipt{opacity:1;transform:none}.kpv-device-gold-output{transform:none}.kpv-device-glass-shine,.kpv-device-spark,.kpv-device-pos-tap{display:none}.kpv-device-command{stroke-dashoffset:0;opacity:1}.kpv-sales-service:hover .kpv-sales-service-link svg{transform:none}}

/* Header-only artwork: one composed scene, with the approved customer frame. */
.kpv-sales-header-illustration{position:relative;display:grid;place-items:center;width:165px;height:104px}
.kpv-sales-header-illustration img{display:block;width:100%;height:100%;object-fit:contain}
.kpv-sales-header-illustration::after{content:'';position:absolute;inset:0;pointer-events:none;mask:var(--header-artwork) center/contain no-repeat;-webkit-mask:var(--header-artwork) center/contain no-repeat;background:linear-gradient(115deg,transparent 35%,#fff5 49%,transparent 63%);background-size:240% 100%;background-position:160% 0;opacity:0;animation:kpv-sales-composed-shine 7.5s ease-in-out infinite}
@media(max-width:767px){.kpv-sales-header-illustration{width:104px;height:76px}}
@media(prefers-reduced-motion:reduce){.kpv-sales-header-illustration::after{animation:none;display:none}}

/* One 7.5s story: POS tap → command → cabinet scan → gold confirmation. */
.kpv-sales-header-illustration{--header-cycle:7.5s}
.kpv-sales-header-illustration::after{z-index:1}
.kpv-sales-header-motion{position:absolute;inset:0;z-index:2;width:100%;height:100%;overflow:visible;pointer-events:none}
.kpv-header-pos-select{opacity:0;animation:kpv-header-pos-select var(--header-cycle) infinite ease-in-out}
.kpv-header-tap-ring{opacity:0;transform-origin:center;transform-box:fill-box;animation:kpv-header-tap var(--header-cycle) infinite ease-out}
.kpv-header-tap-ring--second{animation-name:kpv-header-tap-second}
.kpv-header-command,.kpv-header-command-glow{opacity:0;stroke-dasharray:.22 1;stroke-dashoffset:1;animation:kpv-header-command var(--header-cycle) infinite cubic-bezier(.25,.65,.25,1)}
.kpv-header-atgm-scan{opacity:0;animation:kpv-header-scan var(--header-cycle) infinite ease-in-out}
.kpv-header-atgm-confirm{opacity:0;animation:kpv-header-atgm-confirm var(--header-cycle) infinite ease-out}
.kpv-header-gold-halo{opacity:0;transform-origin:center;transform-box:fill-box;animation:kpv-header-gold-halo var(--header-cycle) infinite ease-out}
.kpv-header-gold-spark{opacity:0;transform-origin:center;transform-box:fill-box;animation:kpv-header-gold-spark var(--header-cycle) infinite ease-in-out}
.kpv-header-finish-spark{opacity:0;animation:kpv-header-finish var(--header-cycle) infinite ease-in-out}
@keyframes kpv-header-finish{0%,72%,94%,100%{opacity:0}80%{opacity:1}87%{opacity:.3}}
@media(prefers-reduced-motion:reduce){.kpv-sales-header-motion{display:none}.kpv-sales-header-illustration::after{animation:none;display:none}}
@media print{.kpv-sales-header-motion,.kpv-sales-header-illustration::after{display:none}}

/* Visible physical assembly, following the customer folio's layer sequence. */
.kpv-sales-header-layers{display:block;width:100%;height:100%;overflow:visible}
.kpv-header-layer--base{transform-origin:320px 356px;animation:kpv-header-layer-base var(--header-cycle) infinite cubic-bezier(.22,.75,.25,1)}
.kpv-header-layer--pos{transform-origin:185px 230px;animation:kpv-header-layer-pos var(--header-cycle) infinite cubic-bezier(.22,.75,.25,1)}
.kpv-header-layer--atgm{transform-origin:440px 190px;animation:kpv-header-layer-atgm var(--header-cycle) infinite cubic-bezier(.22,.75,.25,1)}
.kpv-header-layer-receipt{animation:kpv-header-layer-receipt var(--header-cycle) infinite ease-in-out}
.kpv-header-layer-gold{animation:kpv-header-layer-gold var(--header-cycle) infinite cubic-bezier(.2,.65,.25,1)}
@keyframes kpv-header-layer-base{0%{opacity:0;transform:translateY(48px) scale(.92)}12%,90%{opacity:1;transform:none}100%{opacity:0;transform:translateY(40px) scale(.94)}}
@keyframes kpv-header-layer-receipt{0%,48%,100%{opacity:0;transform:translateY(-42px)}63%,82%{opacity:1;transform:none}92%{opacity:0;transform:translateY(24px)}}
@keyframes kpv-header-layer-gold{0%,59%,100%{opacity:0;transform:translateY(-65px)}74%,83%{opacity:1;transform:none}94%{opacity:0;transform:translateY(46px)}}
/* Retimed highlights follow the physical devices instead of leading them. */
@keyframes kpv-header-pos-select{0%,31%,57%,100%{opacity:0}37%,47%{opacity:.95}}
@keyframes kpv-header-tap{0%,32%,53%,100%{opacity:0;transform:scale(.4)}36%{opacity:1;transform:scale(.8)}50%{opacity:0;transform:scale(2.2)}}
@keyframes kpv-header-tap-second{0%,36%,57%,100%{opacity:0;transform:scale(.4)}40%{opacity:.8;transform:scale(.8)}54%{opacity:0;transform:scale(2.3)}}
@keyframes kpv-header-command{0%,45%{opacity:0;stroke-dashoffset:1}49%{opacity:1}62%{opacity:1;stroke-dashoffset:-1}65%,100%{opacity:0;stroke-dashoffset:-1}}
@keyframes kpv-header-scan{0%,55%{opacity:0;transform:translateY(0)}59%{opacity:.9}70%{opacity:.9;transform:translateY(140px)}73%,100%{opacity:0;transform:translateY(140px)}}
@keyframes kpv-header-atgm-confirm{0%,64%,88%,100%{opacity:0}70%,81%{opacity:1}}
@keyframes kpv-header-gold-halo{0%,74%,94%,100%{opacity:0;transform:scale(.65)}78%{opacity:.9;transform:scale(.9)}90%{opacity:0;transform:scale(1.65)}}
@keyframes kpv-header-gold-spark{0%,75%,90%,100%{opacity:0;transform:scale(.25) rotate(-25deg)}80%{opacity:1;transform:scale(1.2) rotate(0)}86%{opacity:.5;transform:scale(.6) rotate(25deg)}}
@keyframes kpv-sales-composed-shine{0%,70%{opacity:0;background-position:160% 0}76%{opacity:.65}86%{opacity:.65;background-position:-60% 0}87%,100%{opacity:0;background-position:-60% 0}}
@media(prefers-reduced-motion:reduce){.kpv-header-layer--base,.kpv-header-layer--pos,.kpv-header-layer--atgm,.kpv-header-layer-receipt,.kpv-header-layer-gold{animation:none!important;opacity:1;transform:none}}
@media print{.kpv-header-layer--base,.kpv-header-layer--pos,.kpv-header-layer--atgm,.kpv-header-layer-receipt,.kpv-header-layer-gold{animation:none!important;opacity:1;transform:none}}
/* Never show an empty or clipped device state while the clean stage assembles. */
.kpv-header-layer--base{animation:none;opacity:1;transform:none}
@keyframes kpv-header-layer-pos{0%,100%{opacity:1;transform:translate(30px,9px) rotate(-4deg) scale(.94)}32%,84%{opacity:1;transform:none}}
@keyframes kpv-header-layer-atgm{0%,100%{opacity:1;transform:translate(-22px,8px) rotate(3deg) scale(.94)}42%,84%{opacity:1;transform:none}}

/* Service stories use the same satin 3D materials as the approved banner.
   Hardware stays visible; only the product waits for successful QR acceptance. */
.kpv-service-scene{--service-cycle:8.8s}
.kpv-service-device{transform-origin:430px 338px;animation:kpv-service-device var(--service-cycle) cubic-bezier(.22,.75,.25,1) infinite}
.kpv-service-qr-card{transform-origin:60px 80px;animation:kpv-service-qr-card var(--service-cycle) cubic-bezier(.22,.75,.25,1) infinite}
.kpv-service-pay-ring{opacity:0;animation:kpv-service-pay var(--service-cycle) ease-out infinite}
.kpv-service-signal{opacity:0;stroke-dasharray:.2 1;animation:kpv-service-signal var(--service-cycle) ease-in-out infinite}
.kpv-service-qr-scan{opacity:0;animation:kpv-service-scan var(--service-cycle) ease-in-out infinite}
.kpv-service-reader{opacity:0;animation:kpv-service-reader var(--service-cycle) ease-in-out infinite}
.kpv-service-confirm{transform-box:fill-box;transform-origin:center;opacity:0;animation:kpv-service-confirm var(--service-cycle) cubic-bezier(.2,.8,.25,1.15) infinite}
.kpv-service-gold{opacity:0;animation:kpv-service-gold var(--service-cycle) cubic-bezier(.22,.75,.25,1) infinite}
.kpv-service-spark{transform-box:fill-box;transform-origin:center;opacity:0;animation:kpv-service-spark var(--service-cycle) ease-out infinite}
@keyframes kpv-service-device{0%,100%{transform:translate(8px,2px) rotate(1.5deg) scale(.97)}32%,84%{transform:none}}
@keyframes kpv-service-qr-card{0%,8%,100%{transform:translate(-9px,12px) rotate(-5deg)}30%,73%{transform:translate(13px,-8px) rotate(3deg)}90%{transform:translate(-9px,12px) rotate(-5deg)}}
@keyframes kpv-service-pay{0%,26%,49%,100%{opacity:0}32%{opacity:1}42%{opacity:.25}}
@keyframes kpv-service-signal{0%,31%{opacity:0;stroke-dashoffset:1}35%{opacity:1}46%{opacity:1;stroke-dashoffset:-1}49%,100%{opacity:0;stroke-dashoffset:-1}}
@keyframes kpv-service-scan{0%,7%{opacity:0;transform:translateY(0)}9%{opacity:1;transform:translateY(0)}19%{opacity:1;transform:translateY(94px)}29%{opacity:1;transform:translateY(0)}40%{opacity:1;transform:translateY(94px)}43%,100%{opacity:0;transform:translateY(94px)}}
@keyframes kpv-service-reader{0%,28%,48%,100%{opacity:0}34%,43%{opacity:1}}
@keyframes kpv-service-confirm{0%,44%,83%,100%{opacity:0;scale:.6}49%{opacity:1;scale:1.12}54%,76%{opacity:1;scale:1}}
@keyframes kpv-service-gold{0%,51%,100%{opacity:0;transform:translateY(-79px)}53%{opacity:1}68%,80%{opacity:1;transform:translateY(0)}90%{opacity:0;transform:translateY(23px)}}
@keyframes kpv-service-spark{0%,66%,86%,100%{opacity:0;scale:.4}72%{opacity:1;scale:1.2}79%{opacity:.5;scale:.8}}
@media(prefers-reduced-motion:reduce){.kpv-service-device,.kpv-service-qr-card{animation:none!important;transform:none}.kpv-service-gold{animation:none!important;opacity:1;transform:none}.kpv-service-pay-ring,.kpv-service-signal,.kpv-service-qr-scan,.kpv-service-reader,.kpv-service-confirm,.kpv-service-spark{display:none}}
@media print{.kpv-service-device,.kpv-service-qr-card,.kpv-service-gold{animation:none!important;opacity:1;transform:none}.kpv-service-pay-ring,.kpv-service-signal,.kpv-service-qr-scan,.kpv-service-reader,.kpv-service-confirm,.kpv-service-spark{display:none}}

/* Keep the animated silhouettes inside their own column at every breakpoint. */
.kpv-sales-service-art .kpv-service-scene{width:100%;height:auto}
@media(max-width:480px){.kpv-sales-service-art{width:104px}.kpv-sales-service{gap:12px}.kpv-sales-service-copy h2{font-size:17px}}

.kpv-service-qr-corners{opacity:0;animation:kpv-service-scanner-frame var(--service-cycle) ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.kpv-service-qr-corners{display:none}}

/* QR scanning must read at the actual compact card size: visible green frame,
   three bright passes with a white core, a broad trail and a projected beam. */
.kpv-service-scan-beam{opacity:0;pointer-events:none;animation:kpv-service-scanner-frame var(--service-cycle) ease-in-out infinite}
.kpv-service-scan-beam path:last-child{animation:kpv-service-beam-flow 1s linear infinite}
@keyframes kpv-service-scanner-frame{0%,6%,45%,100%{opacity:0}10%,40%{opacity:1}}
@keyframes kpv-service-beam-flow{to{stroke-dashoffset:26}}
@media(prefers-reduced-motion:reduce){.kpv-service-scan-beam,.kpv-service-qr-corners{display:none}}
@media print{.kpv-service-scan-beam,.kpv-service-qr-corners{display:none}}

/* Fill the remaining viewport using the same flex chain as the customer directory.
   Rows can still grow naturally; native table overflow stays inside the table. */
.fi-main-ctn:has(.kpv-sales-home){min-height:100vh;min-height:100svh}
.fi-main:has(> .kpv-sales-home),.kpv-sales-home,.kpv-sales-home>section,.kpv-sales-home>section>div:has(> .grid),.kpv-sales-home>section>div>.grid,.kpv-sales-ledger,#sales-table-panel,#sales-table-panel>div:has(> .fi-ta),.kpv-sales-home .fi-ta,.kpv-sales-home .fi-ta-ctn{display:flex;flex-direction:column;flex:1 0 auto;min-width:0}
.kpv-sales-header,.kpv-sales-services,.kpv-sales-ledger-header,.kpv-sales-home .fi-ta-header-ctn{flex-shrink:0}
.kpv-sales-home .fi-ta-content{flex:1 0 auto}
.kpv-sales-home .fi-ta-content:has(>.kpv-sales-empty){display:flex;flex-direction:column}
.kpv-sales-empty{flex:1 0 auto;min-height:370px;padding:28px 20px 32px;gap:0}
.kpv-sales-empty .kpv-sales-empty-art{display:block;width:min(100%,420px);height:auto;aspect-ratio:480/260;margin:0 0 14px;flex-shrink:0}
.kpv-sales-empty-copy{width:min(100%,390px);text-align:center;font-family:inherit}
.kpv-sales-empty-copy h3{margin:0 0 10px;font-size:20px;font-weight:600;line-height:1.6;color:var(--sales-accent)}
.kpv-sales-empty-copy p{margin:0;font-size:14px;line-height:1.9;color:var(--sales-muted);text-wrap:balance}
.kpv-line-main{animation:kpv-line-main 6s ease-in-out infinite}
.kpv-line-terminal,.kpv-line-qr{animation:kpv-line-entry 6s cubic-bezier(.22,.75,.25,1) infinite}
.kpv-line-qr{animation-delay:.4s}
.kpv-line-outline,.kpv-line-link{stroke-dasharray:1;animation:kpv-line-draw 6s ease-in-out infinite}
.kpv-line-link--second{animation-delay:.55s}
.kpv-line-qr-focus{animation:kpv-line-focus 6s ease-in-out infinite}
.kpv-line-confirm{animation:kpv-line-confirm 6s ease-in-out infinite}
.kpv-line-row{animation:kpv-line-row 6s ease-in-out infinite}
.kpv-line-gold{animation:kpv-line-gold 6s cubic-bezier(.22,.75,.25,1) infinite}
.kpv-line-spark{transform-box:fill-box;transform-origin:center;animation:kpv-line-spark 6s ease-in-out infinite}
.kpv-line-spark--second{animation-delay:.8s}
@keyframes kpv-line-main{0%,100%{transform:translateX(5px)}30%,80%{transform:none}}
@keyframes kpv-line-entry{0%,100%{opacity:.4;translate:0 10px}22%,80%{opacity:1;translate:0 0}}
@keyframes kpv-line-draw{0%,10%{stroke-dashoffset:1;opacity:.3}43%,83%{stroke-dashoffset:0;opacity:1}100%{stroke-dashoffset:0;opacity:.2}}
@keyframes kpv-line-focus{0%,10%,45%,100%{opacity:.2}22%,35%{opacity:1}}
@keyframes kpv-line-confirm{0%,39%,100%{opacity:.2}52%,83%{opacity:1}}
@keyframes kpv-line-row{0%,35%,85%,100%{opacity:0;transform:translateY(0)}44%,50%{opacity:.8;transform:translateY(0)}64%,74%{opacity:.8;transform:translateY(42px)}}
@keyframes kpv-line-gold{0%,42%,100%{opacity:0;transform:translateY(-60px)}44%{opacity:1}66%,83%{opacity:1;transform:none}94%{opacity:0;transform:translateY(12px)}}
@keyframes kpv-line-spark{0%,24%,65%,100%{opacity:0;scale:.5;rotate:0deg}38%{opacity:1;scale:1.3;rotate:25deg}53%{opacity:.5;scale:.8;rotate:50deg}}
html.dark .kpv-sales-empty-art{filter:brightness(1.6) saturate(.8)}
@media(max-width:639px){.kpv-sales-empty .kpv-sales-empty-art{width:min(100%,300px)}.kpv-sales-empty{min-height:320px;padding:28px 18px 34px}.kpv-sales-empty-copy{max-width:310px}.kpv-sales-empty-copy h3{font-size:18px}.kpv-sales-empty-copy p{font-size:13px}}
@media(prefers-reduced-motion:reduce){.kpv-sales-empty-art *{animation:none!important;opacity:1;translate:none}.kpv-line-main,.kpv-line-gold{transform:none}.kpv-line-outline,.kpv-line-link{stroke-dashoffset:0}.kpv-line-row,.kpv-line-spark{display:none}}
@media print{.kpv-sales-empty-art *{animation:none!important;opacity:1;translate:none}.kpv-line-main,.kpv-line-gold{transform:none}.kpv-line-outline,.kpv-line-link{stroke-dashoffset:0}.kpv-line-row,.kpv-line-spark{display:none}}

/* Compact ledger controls: keep normal input targets without a separate title row. */
.kpv-sales-ledger-header{padding:10px 20px;gap:14px;min-height:62px}
.kpv-sales-ledger-title{gap:10px}
.kpv-sales-ledger-title .kpv-customer-search-icon{width:34px;height:34px;border-radius:10px}
.kpv-sales-ledger-title .kpv-customer-search-icon svg{width:19px;height:19px}
.kpv-sales-ledger-title h2{font-size:15px;line-height:1.6}
.kpv-sales-tabs{padding:3px;border-radius:10px}
.kpv-sales-tab{min-height:32px;padding:5px 11px;gap:6px;font-size:12px}
.kpv-sales-tab svg{width:15px;height:15px}
.kpv-sales-home .fi-ta-filters-above-content-ctn{padding:12px 20px}
.kpv-sales-home .fi-ta-filters{position:relative;row-gap:0}
.kpv-sales-home .fi-ta-filters>div:first-child{position:absolute;inset-inline-end:0;top:0;z-index:1;min-height:20px}
.kpv-sales-home .fi-ta-filters>div:first-child>h4{display:none}
.kpv-sales-home .fi-ta-filters>div:first-child button{font-size:12px;line-height:20px}
.kpv-sales-home .fi-ta-filters .fi-fo-component-ctn{column-gap:16px;row-gap:12px}
.kpv-sales-home .fi-ta-filters .fi-fo-field-wrp-label{min-height:20px;line-height:20px}
.kpv-sales-home .fi-ta-filters [for="tableFilters.dates.until"]{padding-inline-end:52px}
.kpv-sales-home .fi-ta-header-toolbar{padding:9px 20px;gap:12px}
@media(max-width:800px){.kpv-sales-ledger-header{padding:12px 16px;gap:10px}.kpv-sales-tabs{width:100%}.kpv-sales-home .fi-ta-filters-above-content-ctn{padding:12px 16px}.kpv-sales-home .fi-ta-header-toolbar{padding:9px 16px}}
@media(max-width:480px){.kpv-sales-tab{padding-inline:7px;font-size:11px;gap:5px}}

/* Natural-height rows keep only horizontal scrolling during their entrance. */
.kpv-sales-home .fi-ta-content{overflow-y:hidden}

/* One compact receipt artwork per bill, with the native record link around it. */
.kpv-sale-bill-cell{display:flex;align-items:center;gap:10px;min-width:200px;padding:10px 14px}
.kpv-sale-bill-art{display:block;flex:none;width:40px;height:50px;overflow:visible}
.kpv-sale-bill-copy{display:flex;flex-direction:column;min-width:0;gap:2px}
.kpv-sale-bill-reference{font-size:12px;font-weight:600;line-height:20px;color:var(--sales-accent);white-space:nowrap;font-variant-numeric:tabular-nums}
.kpv-sale-bill-caption{font-size:10px;font-weight:400;line-height:16px;color:var(--sales-muted)}
.kpv-bill-header-shine{animation:kpv-bill-header-shine 7s var(--bill-delay,0s) ease-in-out infinite}
.kpv-bill-line{stroke-dasharray:24;animation:kpv-bill-line 7s var(--bill-delay,0s) ease-in-out infinite}
@keyframes kpv-bill-header-shine{0%,28%{opacity:0;transform:translateX(0)}32%{opacity:.8}58%{opacity:.8;transform:translateX(78px)}59%,100%{opacity:0;transform:translateX(78px)}}
@keyframes kpv-bill-line{0%,18%,100%{stroke-dashoffset:24;opacity:.2}40%,82%{stroke-dashoffset:0;opacity:.8}}
@media(prefers-reduced-motion:reduce){.kpv-bill-header-shine{display:none}.kpv-bill-line{animation:none!important;stroke-dashoffset:0;opacity:1}}
@media print{.kpv-bill-header-shine{display:none}.kpv-bill-line{animation:none!important;stroke-dashoffset:0;opacity:1}}

.kpv-sale-date-cell{display:flex;align-items:center;gap:9px;min-width:176px;padding:10px 14px}
.kpv-sale-date-art{display:block;flex:none;width:40px;height:50px}
.kpv-sale-date-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.kpv-sale-date-value{font-size:12px;font-weight:500;line-height:20px;color:var(--sales-ink);white-space:nowrap;font-variant-numeric:tabular-nums}
.kpv-sale-date-time{display:inline-flex;align-items:center;gap:5px;font-size:11px;line-height:16px;color:var(--sales-muted);font-variant-numeric:tabular-nums}
.kpv-sale-date-time svg{width:12px;height:12px;flex:none;color:#a48b76}
