/* Exoticz staff "ten" layer — close-out, count stock, checkout, overlap. Brand: ink #0B0612, violet #7B3FE4, lime #9BE22D. */
:root { --t-ink: #0B0612; --t-muted: #6B6280; --t-line: #ECE7F5; --t-violet: #7B3FE4; --t-ame: #B58CFF; --t-lime: #9BE22D; --t-lime-d: #3D6E0B; --t-bad: #C8102E; --t-warn: #B45309; --t-ok: #2F7A0B; --t-r: 20px; --t-font: var(--bx-font, "Plus Jakarta Sans", system-ui, sans-serif); }
html.ten-lock, html.ten-lock body { overflow: hidden; }

.ten-card { background: #fff !important; color: var(--t-ink) !important; border: 1px solid var(--t-line) !important; border-radius: var(--t-r) !important; padding: 18px !important; margin: 0 0 14px !important; box-shadow: 0 1px 2px rgba(42,10,74,.05) !important; font-family: var(--t-font); }
.ten-card * { box-sizing: border-box; }
.ten-kicker { margin: 0 0 2px !important; font: 700 .7rem/1.2 var(--t-font) !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--t-violet) !important; }
.ten-h { margin: 0 !important; font: 800 1.15rem/1.25 var(--t-font) !important; letter-spacing: -.02em !important; color: var(--t-ink) !important; text-transform: none !important; }
body.noir .panel .ten-card h3.ten-h::after { display: none !important; }
.ten-muted { margin: 8px 0 0 !important; font-size: .8rem; color: var(--t-muted) !important; line-height: 1.4; }
.ten-ok { margin: 8px 0 0; color: var(--t-ok); font-weight: 700; font-size: .86rem; }
.ten-err { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #FDECEE; color: var(--t-bad) !important; font-weight: 600; font-size: .86rem; }
.ten-err[hidden] { display: none !important; }
.ten-empty { padding: 18px 12px; border-radius: 14px; background: #F7F4FC; color: var(--t-muted); text-align: center; font-size: .86rem; }
.ten-done { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #EEF9DD; color: #24420A; font-size: .86rem; }
.ten-done .neg, .ten-var .neg, .neg { color: var(--t-bad) !important; }
.ten-var .pos { color: var(--t-ok); } .ten-var .meh { color: var(--t-warn); }
.ten-co-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.ten-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 10px; border-radius: 999px; font: 800 .74rem/1 var(--t-font); background: #EFEAF8; color: var(--t-muted); white-space: nowrap; }
.ten-badge.ok { background: #E7F7D2; color: var(--t-ok); } .ten-badge.warn { background: #FFF1DB; color: var(--t-warn); } .ten-badge.bad { background: #FDE4E7; color: var(--t-bad); }
.ten-co-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 8px 0 12px; }
.ten-co-stats > div { background: #F7F4FC; border-radius: 14px; padding: 10px 12px; margin: 0; }
.ten-co-stats > div.hl { background: #2A0A4A; color: #fff; } .ten-co-stats > div.hl dt { color: #CDB8F5; } .ten-co-stats > div.hl dd { color: #9BE22D; }
.ten-co-stats > div.bad { background: #FDE4E7; } .ten-co-stats > div.bad dd { color: var(--t-bad); }
.ten-co-stats dt { font-size: .7rem; font-weight: 600; color: var(--t-muted); margin: 0; }
.ten-co-stats dd { margin: 2px 0 0; font: 800 1.1rem/1.2 var(--t-font); color: var(--t-ink); }
.ten-co-stats dd small { font-size: .72rem; font-weight: 600; color: var(--t-muted); }
.ten-fs { border: 1px solid var(--t-line); border-radius: 16px; padding: 12px 14px 14px; margin: 0 0 12px; min-width: 0; }
.ten-fs legend { padding: 0 6px; font: 800 .82rem/1 var(--t-font); color: var(--t-ink); }
.ten-dens { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; margin-bottom: 10px; }
.ten-den { display: grid; grid-template-columns: 44px auto 1fr; align-items: center; gap: 8px; }
.ten-den-l { font-weight: 800; font-size: .86rem; }
.ten-den-t { text-align: right; color: var(--t-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.ten-lbl { display: block; margin: 8px 0 4px; font-size: .76rem; font-weight: 700; color: var(--t-muted); }
.ten-input, .ten-select { width: 100%; min-height: 44px; padding: 10px 12px !important; border-radius: 12px !important; border: 1px solid #DCD3EC !important; background: #fff !important; color: var(--t-ink) !important; font: 500 1rem/1.2 var(--t-font) !important; box-shadow: none !important; }
.ten-input.big { font-size: 1.3rem !important; font-weight: 800 !important; min-height: 52px; }
textarea.ten-input { min-height: 80px; resize: vertical; }
.ten-input:focus-visible, .ten-select:focus-visible { outline: 3px solid rgba(123,63,228,.35) !important; outline-offset: 1px; border-color: var(--t-violet) !important; }
.ten-var { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-size: .86rem; color: var(--t-muted); }
.ten-var strong { font-size: 1.1rem; }
.ten-check { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 4px; font-size: .92rem; cursor: pointer; border-bottom: 1px solid #F3EFF9; }
.ten-check:last-child { border-bottom: 0; }
.ten-check input { width: 22px; height: 22px; accent-color: var(--t-violet); flex: 0 0 auto; }
.ten-btn { width: 100%; }
.ten-btn-sm { min-height: 40px !important; padding: 0 16px !important; width: auto !important; }

/* steppers */
.ten-step { display: inline-grid; grid-template-columns: 52px 76px 52px; align-items: stretch; border: 1px solid #DCD3EC; border-radius: 14px; overflow: hidden; background: #fff; }
.ten-step button { appearance: none; border: 0 !important; background: #F3EEFB !important; color: var(--t-ink) !important; font: 800 1.5rem/1 var(--t-font) !important; min-height: 52px !important; padding: 0 !important; cursor: pointer; box-shadow: none !important; border-radius: 0 !important; width: auto !important; }
.ten-step button:active { background: #E2D6F7 !important; }
.ten-step button:focus-visible { outline: 3px solid var(--t-violet); outline-offset: -3px; }
.ten-step input, .ten-step output { width: 100%; border: 0 !important; text-align: center; font: 800 1.25rem/1 var(--t-font) !important; color: var(--t-ink) !important; background: #fff !important; padding: 0 !important; min-height: 52px; display: grid; place-items: center; -moz-appearance: textfield; border-radius: 0 !important; box-shadow: none !important; }
.ten-step input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ten-step.sm { grid-template-columns: 40px 52px 40px; border-radius: 12px; }
.ten-step.sm button { min-height: 40px !important; font-size: 1.2rem !important; }
.ten-step.sm input, .ten-step.sm output { min-height: 40px; font-size: 1rem !important; }

/* lists */
.ten-list { list-style: none; margin: 6px 0 0; padding: 0; }
.ten-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--t-line); background: none !important; margin: 0 !important; border-radius: 0 !important; }
.ten-list li:first-child { border-top: 0; }
.ten-list li small { display: block; color: var(--t-muted); font-size: .76rem; margin-top: 2px; }
.ten-link { appearance: none; border: 0 !important; background: none !important; color: #5A23B8 !important; font: 700 .84rem/1 var(--t-font) !important; padding: 8px 4px !important; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 0 !important; box-shadow: none !important; width: auto !important; }
.ten-link:focus-visible { outline: 3px solid var(--t-violet); outline-offset: 2px; border-radius: 6px; }

/* owner home card + reminder */
.ten-unclosed { margin: 18px 0 !important; }
.ten-reminder { position: sticky; top: 8px; z-index: 60; display: flex; align-items: center; gap: 12px; margin: 8px 0 12px; padding: 12px 14px; border-radius: 16px; background: #2A0A4A; color: #fff; box-shadow: 0 12px 30px rgba(42,10,74,.35); border: 2px solid var(--t-lime); font-family: var(--t-font); }
.ten-reminder[hidden] { display: none !important; }
.ten-rem-ic { font-size: 1.3rem; } .ten-rem-t { flex: 1 1 auto; font-weight: 600; font-size: .9rem; }
.ten-rem-btn { appearance: none; border: 0; background: var(--t-lime); color: var(--t-ink); font: 800 .86rem/1 var(--t-font); padding: 12px 14px; border-radius: 12px; cursor: pointer; white-space: nowrap; }
.ten-rem-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* sheets */
.ten-sheet { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(11,6,18,.62); padding: 18px; font-family: var(--t-font); }
.ten-sheet.open { display: flex; animation: tenFade .16s ease; }
@keyframes tenFade { from { opacity: 0; } to { opacity: 1; } }
.ten-sheet-card { width: min(560px, 100%); max-height: calc(100dvh - 36px); display: flex; flex-direction: column; background: #fff; color: var(--t-ink); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; }
.ten-sheet.wide .ten-sheet-card { width: min(1180px, 100%); height: min(860px, calc(100dvh - 36px)); }
.ten-sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--t-line); }
.ten-sheet-h h2 { margin: 0 !important; font: 800 1.15rem/1.2 var(--t-font) !important; color: var(--t-ink) !important; letter-spacing: -.02em !important; text-transform: none !important; display: block !important; }
.ten-sheet-h h2::after { display: none !important; }
.ten-x { appearance: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--t-line); background: #fff; color: var(--t-ink); font-size: 1.1rem; cursor: pointer; }
.ten-x:focus-visible { outline: 3px solid var(--t-violet); outline-offset: 2px; }
.ten-sheet-b { padding: 16px 18px 18px; overflow: auto; flex: 1 1 auto; min-height: 0; }
.ten-lead { margin: 0 0 14px; font-size: .95rem; line-height: 1.45; }
.ten-actions { display: grid; gap: 8px; margin-top: 8px; }
.ten-override { margin-top: 14px; border-top: 1px solid var(--t-line); padding-top: 10px; }
.ten-override summary { cursor: pointer; font-weight: 700; color: #5A23B8; min-height: 32px; display: flex; align-items: center; }

/* count stock */
.ten-count-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.ten-count-top .ten-input { flex: 1 1 200px; }
.ten-cam-btn { min-height: 44px !important; width: auto !important; }
.ten-video { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; background: #000; margin-bottom: 10px; }
.ten-count-list { display: grid; gap: 6px; }
.ten-cnt-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--t-line); border-radius: 16px; background: #fff; }
.ten-cnt-row.changed { border-color: var(--t-lime); background: #F6FCEC; }
.ten-cnt-row.low .ten-cnt-name b::after { content: " · low"; color: var(--t-warn); font-size: .76rem; font-weight: 700; }
.ten-cnt-row.flash { animation: tenFlash 1s ease; }
@keyframes tenFlash { 0% { box-shadow: 0 0 0 0 rgba(155,226,45,.9); } 100% { box-shadow: 0 0 0 14px rgba(155,226,45,0); } }
.ten-cnt-name b { display: block; font-size: .95rem; } .ten-cnt-name small { color: var(--t-muted); font-size: .74rem; }
.ten-par { display: grid; gap: 2px; font-size: .68rem; font-weight: 700; color: var(--t-muted); }
.ten-par input { width: 64px; min-height: 44px; border: 1px solid #DCD3EC; border-radius: 12px; text-align: center; font: 700 1rem var(--t-font); }
.ten-count-foot { position: sticky; bottom: -18px; margin: 12px -18px -18px; padding: 12px 18px; background: rgba(255,255,255,.96); border-top: 1px solid var(--t-line); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.ten-count-foot .ten-btn { width: auto; min-width: 200px; }

/* checkout */
.ten-ck { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; height: 100%; min-height: 0; }
.ten-ck-left { min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.ten-ck-right { display: flex; flex-direction: column; gap: 8px; background: #F7F4FC; border-radius: 18px; padding: 14px; min-height: 0; overflow: auto; }
.ten-chips, .ten-disc, .ten-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.ten-chips { margin-bottom: 10px; }
.ten-chip { appearance: none; border: 1px solid #DCD3EC !important; background: #fff !important; color: var(--t-ink) !important; font: 700 .82rem/1 var(--t-font) !important; min-height: 40px !important; padding: 0 12px !important; border-radius: 999px !important; cursor: pointer; box-shadow: none !important; width: auto !important; }
.ten-chip.on { background: var(--t-ink) !important; color: #fff !important; border-color: var(--t-ink) !important; }
.ten-disc .ten-chip.on { background: var(--t-lime) !important; color: var(--t-ink) !important; border-color: var(--t-lime) !important; }
.ten-chip:focus-visible, .ten-tile:focus-visible { outline: 3px solid var(--t-violet) !important; outline-offset: 2px; }
.ten-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; overflow: auto; padding: 2px; align-content: start; flex: 1 1 auto; min-height: 0; }
.ten-tile { position: relative; appearance: none; text-align: left; display: flex; flex-direction: column; gap: 6px; min-height: 104px; padding: 12px !important; border-radius: 16px !important; border: 1px solid var(--t-line) !important; background: #fff !important; color: var(--t-ink) !important; cursor: pointer; box-shadow: 0 1px 2px rgba(42,10,74,.05) !important; font-family: var(--t-font) !important; width: auto !important; transition: transform .08s ease; }
.ten-tile:active { transform: scale(.97); }
.ten-tile.in { border-color: var(--t-violet) !important; background: #F4EEFF !important; }
.ten-tile[disabled] { opacity: .5; cursor: not-allowed; }
.ten-tile .n { font-weight: 700; font-size: .9rem; line-height: 1.25; }
.ten-tile .p { margin-top: auto; font-weight: 800; font-size: 1.1rem; }
.ten-tile .s { font-size: .7rem; color: var(--t-muted); } .ten-tile .s.out { color: var(--t-bad); font-weight: 700; }
.ten-tile .q { position: absolute; top: 8px; right: 8px; min-width: 26px; height: 26px; border-radius: 999px; background: var(--t-violet); color: #fff; font-weight: 800; font-size: .8rem; display: grid; place-items: center; padding: 0 6px; }
.ten-cart { flex: 0 1 auto; }
.ten-lines { list-style: none; margin: 0; padding: 0; }
.ten-lines li { display: grid; grid-template-columns: 1fr auto 70px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #E6DEF3; background: none !important; margin: 0 !important; }
.ten-lines .ln small { display: block; font-size: .72rem; color: var(--t-muted); }
.ten-lines .lt { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.ten-sum { margin: 4px 0 0; }
.ten-sum > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: .9rem; margin: 0; }
.ten-sum dt { margin: 0; color: var(--t-muted); } .ten-sum dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.ten-sum .mut dt, .ten-sum .mut dd { font-size: .8rem; font-weight: 500; }
.ten-sum .tot { border-top: 2px solid var(--t-ink); margin-top: 4px; padding-top: 8px; }
.ten-sum .tot dt, .ten-sum .tot dd { color: var(--t-ink); font: 800 1.35rem/1.1 var(--t-font); }
.ten-cash-row { display: grid; gap: 6px; }
.ten-change { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-radius: 14px; min-height: 0; }
.ten-change:empty { display: none; }
.ten-change.ok { background: #2A0A4A; color: #fff; } .ten-change.ok strong { color: var(--t-lime); font: 800 1.6rem/1 var(--t-font); }
.ten-change.bad { background: #FDE4E7; font-weight: 700; }
.ten-pay { margin-top: 4px; min-height: 56px !important; font-size: 1.05rem !important; }
.ten-old { align-self: center; }
.ten-receipt { max-width: 480px; margin: 0 auto; text-align: center; }
.ten-big-change { margin: 12px 0 16px; padding: 22px; border-radius: 22px; background: #2A0A4A; color: #fff; display: grid; gap: 6px; }
.ten-big-change span { color: #CDB8F5; font-weight: 700; } .ten-big-change strong { font: 800 3rem/1 var(--t-font); color: var(--t-lime); letter-spacing: -.03em; }
.ten-receipt .ten-sum { text-align: left; margin-bottom: 12px; }
.ten-tax { margin-top: 12px; border-top: 1px solid var(--t-line); padding-top: 8px; }
.ten-tax summary { cursor: pointer; font-weight: 700; font-size: .84rem; color: #5A23B8; min-height: 32px; display: flex; align-items: center; }
.ten-tax-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; align-items: end; }
.ten-ck-card .ten-co-head { align-items: center; }
.ten-ck-card .ten-co-head .ten-btn { width: auto; min-width: 220px; }
.ten-tile-home .ten-tile-ic { font-size: 1.3rem; line-height: 1; }

#toast[data-kind="ok"] { border-left: 4px solid var(--t-lime); }

@media (max-width: 860px) {
  .ten-sheet { padding: 0; align-items: stretch; }
  .ten-sheet-card, .ten-sheet.wide .ten-sheet-card { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .ten-ck { grid-template-columns: 1fr; height: auto; }
  .ten-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
  .ten-ck-right { overflow: visible; }
  .ten-co-stats { grid-template-columns: 1fr 1fr; }
  .ten-cnt-row { grid-template-columns: 1fr auto; }
  .ten-cnt-row .ten-par { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; gap: 8px; }
  .ten-step { grid-template-columns: 52px 64px 52px; }
  .ten-ck-card .ten-co-head .ten-btn { width: 100%; }
  .ten-tax-row { grid-template-columns: 1fr 1fr; } .ten-tax-row button { grid-column: 1 / -1; }
  .ten-count-foot .ten-btn { min-width: 0; flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .ten-sheet.open, .ten-cnt-row.flash, .ten-tile { animation: none !important; transition: none !important; } }
/* old single-field close form superseded by the close-out checklist (kept in DOM for compatibility) */
#reg-close-form { display: none !important; }
.ten-ck-jump { display: none; }
@media (max-width: 860px) {
  .ten-ck-jump:not([hidden]) { display: flex; position: sticky; bottom: 10px; z-index: 3; margin-top: 10px; justify-content: space-between; align-items: center; width: 100%; min-height: 56px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--t-ink); color: #fff; font: 700 .95rem/1 var(--t-font); box-shadow: 0 10px 30px rgba(11,6,18,.35); cursor: pointer; }
  .ten-ck-jump strong { color: var(--t-lime); }
  .ten-ck-jump:focus-visible { outline: 3px solid var(--t-violet); outline-offset: 2px; }
}
@media (max-width: 860px) { .ten-ck .ten-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -2px; padding: 2px; } .ten-ck .ten-chips::-webkit-scrollbar { display: none; } .ten-ck .ten-chip { flex: 0 0 auto; } }
