/* Preferito 10.0 · new Encaisser (iPad glass), quick pay on the ticket, receipts by e-mail, table tiles readable */

/* 9.0.1 · occupied tiles: white text (an older rule made `small` grey) */
.v9t.busy, .v9t.busy small, .v9t.busy b { color: #fff !important; opacity: 1 !important; }
.v9t.busy small:first-of-type { font-weight: 700; }
.v9t.bill, .v9t.bill small, .v9t.bill b { color: #4A2E05 !important; opacity: 1 !important; }
.v9t.paid, .v9t.paid small { color: #1F5E3A !important; opacity: 1 !important; }
body.v7off-loyalty [data-scan], body.v7off-loyalty .v10tool[data-scan] { display: none !important; }

/* ticket: print + quick pay */
.v10print { color: var(--ink, #17141A); }
.v10print:disabled { opacity: .35; }
.v10qps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.v10qp { min-height: 60px; border-radius: 16px; border: 1px solid #E4DFD9; background: #fff; color: #17141A; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font: inherit; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.v10qp small { font-size: 12px; font-weight: 700; }
.v10qp:active { transform: scale(.96); }
.v10qp.arm { background: #2E7D4F; border-color: #2E7D4F; color: #fff; }
.v10qpn { margin: 0; font-size: 12px; color: #B4530A; text-align: center; font-weight: 600; }

/* the new Encaisser screen */
.v10 { --p: #5B2148; --ink: #1C1418; --mut: #7A6B73; position: relative; overflow: hidden; margin: 8px 0 0; border-radius: 28px; display: grid; grid-template-columns: minmax(300px, 34%) minmax(0, 1fr); gap: 16px; padding: 18px; box-sizing: border-box; min-height: 560px;
  font-family: -apple-system, "SF Pro Display", "Instrument Sans", system-ui, sans-serif; color: var(--ink);
  background: radial-gradient(900px 600px at 0% 0%, #F6D9E6 0%, rgba(246,217,230,0) 60%), radial-gradient(800px 600px at 100% 100%, #E6D6F2 0%, rgba(230,214,242,0) 60%), radial-gradient(700px 500px at 85% 10%, #FBE9D7 0%, rgba(251,233,215,0) 60%), #F4EFF2; }
.v10 > .b1, .v10 > .b2 { position: absolute; border-radius: 50%; pointer-events: none; }
.v10 > .b1 { width: 520px; height: 520px; left: -140px; bottom: -220px; background: #5B2148; opacity: .14; filter: blur(80px); }
.v10 > .b2 { width: 420px; height: 420px; right: 120px; top: -200px; background: #E9A9C6; opacity: .32; filter: blur(70px); }
.v10glass { position: relative; background: rgba(255,255,255,.62); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); border: 1px solid rgba(255,255,255,.75); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 20px 50px rgba(59,18,46,.12); border-radius: 28px; }
.v10 .num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.v10 button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.v10 button:active { transform: scale(.96); }
.v10bill { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: 16px 0 0; }
.v10back { align-self: flex-start; border: 0; background: none; color: var(--p); font-size: 17px; font-weight: 500; padding: 0 20px; }
.v10t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 20px 0; }
.v10t h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.v10t .ref { font-size: 12.5px; font-weight: 600; color: var(--mut); background: rgba(91,33,72,.08); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.v10sub { padding: 2px 20px 8px; color: var(--mut); font-size: 14px; }
.v10tip { margin: 0 20px 6px; font-size: 13px; color: var(--p); font-weight: 600; }
.v10lines { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 10px; -webkit-overflow-scrolling: touch; }
.v10l { width: 100%; box-sizing: border-box; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; color: var(--ink); text-align: left; font-size: 15px; }
.v10l .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.v10l .t small { color: var(--mut); font-size: 12.5px; }
.v10l .num { font-weight: 600; }
.v10l.pick .ck { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(91,33,72,.3); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #fff; }
.v10l.pick.on { background: rgba(91,33,72,.1); }
.v10l.pick.on .ck { background: var(--p); border-color: var(--p); }
.v10empty { color: var(--mut); text-align: center; padding: 20px; }
.v10sum { padding: 10px 20px 6px; border-top: 1px solid rgba(91,33,72,.08); display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.v10sum > div { display: flex; justify-content: space-between; color: var(--mut); }
.v10sum .paid { color: #2E7D4F; }
.v10sum .left { color: var(--ink); align-items: baseline; font-size: 16px; font-weight: 600; }
.v10sum .left b { font-size: 25px; letter-spacing: -.02em; }
.v10tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); gap: 8px; padding: 8px 12px 14px; }
.v10tool { height: 62px; border: 0; border-radius: 18px; background: rgba(255,255,255,.75); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11.5px; font-weight: 600; box-shadow: 0 1px 2px rgba(59,18,46,.08); }
.v10tool span { font-size: 18px; line-height: 1; }
.v10pay { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; overflow-y: auto; }
.v10head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.v10head h2 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.v10seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(420px, 100%); height: 44px; padding: 4px; box-sizing: border-box; border-radius: 999px; background: rgba(255,255,255,.55); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.75); }
.v10seg .v10pill { display: block; height: auto; padding: 0; margin: 0; position: absolute; top: 4px; bottom: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: #fff; box-shadow: 0 3px 10px rgba(59,18,46,.15); transition: left .3s cubic-bezier(.3,1.3,.5,1); }
.v10seg button { position: relative; z-index: 1; border: 0; background: transparent; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--mut); }
.v10seg button[aria-selected="true"] { color: var(--ink); }
.v10due { position: relative; border-radius: 26px; padding: 14px 22px; color: #fff; background: linear-gradient(135deg, #5B2148, #7A2D60 55%, #B9568C); box-shadow: 0 18px 40px rgba(91,33,72,.25); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; }
.v10due > div:first-child { display: flex; flex-direction: column; gap: 4px; }
.v10due small { font-size: 15px; color: rgba(255,255,255,.8); }
.v10due b { font-size: 54px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.v10step { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.16); border-radius: 999px; padding: 4px; }
.v10step button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.22); color: #fff; font-size: 22px; }
.v10step span { min-width: 64px; text-align: center; font-size: 15px; font-weight: 600; }
.v10ppl { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.v10ppl span { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 4px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.16); }
.v10ppl span.cur { background: rgba(255,255,255,.3); }
.v10ppl span.done { opacity: .7; }
.v10ppl b { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; background: #fff; color: var(--p); }
.v10ppl .done b { background: #2E7D4F; color: #fff; }
.v10ms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.v10m { height: 70px; border-radius: 22px; display: flex; align-items: center; gap: 10px; padding: 0 14px; text-align: left; background: rgba(255,255,255,.72); color: var(--ink); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 1px 2px rgba(59,18,46,.08); }
.v10m span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.v10m b { font-size: 16px; font-weight: 600; }
.v10m small { font-size: 12px; opacity: .72; }
.v10m .ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800; }
.v10m .ic.g { background: #2E7D4F; color: #fff; } .v10m .ic.p { background: #5B2148; color: #fff; } .v10m .ic.y { background: #F2C14E; color: #3B2A00; } .v10m .ic.r { background: #E9A9C6; color: #3E1631; }
.v10m.on { background: #1C1418; color: #fff; border-color: #1C1418; box-shadow: 0 14px 30px rgba(28,20,24,.25); }
.v10more { display: flex; gap: 8px; flex-wrap: wrap; }
.v10more button { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; background: rgba(255,255,255,.6); color: var(--ink); border: 1px solid rgba(255,255,255,.8); }
.v10more button[aria-pressed="true"] { background: #1C1418; color: #fff; border-color: #1C1418; }
.v10panel { flex: 1; min-height: 150px; padding: 10px 12px; display: flex; overflow: hidden; }
.v10cash { flex: 1; display: flex; gap: 16px; min-height: 0; }
.v10pad { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(30px, 1fr); gap: 6px; }
.v10pad button { border: 0; border-radius: 16px; background: rgba(255,255,255,.85); font-size: 23px; font-weight: 500; color: var(--ink); box-shadow: 0 1px 2px rgba(59,18,46,.08); }
.v10given { width: 240px; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.v10given > small { font-size: 12.5px; font-weight: 600; color: var(--mut); text-transform: uppercase; letter-spacing: .06em; }
.v10given > b { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.v10bills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.v10bills button { height: 32px; border-radius: 12px; border: 1px solid rgba(91,33,72,.15); background: rgba(255,255,255,.7); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.v10chg { margin-top: auto; border-radius: 12px; padding: 6px 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.v10chg small { font-size: 13.5px; font-weight: 600; }
.v10chg b { font-size: 20px; font-weight: 700; }
.v10chg.ok { background: rgba(46,125,79,.12); color: #1F5E3A; }
.v10chg.ko { background: rgba(196,64,40,.12); color: #8A2A18; }
.v10card { flex: 1; display: flex; align-items: center; justify-content: center; gap: 24px; }
.v10card > div:last-child { display: flex; flex-direction: column; gap: 6px; max-width: 320px; }
.v10card b { font-size: 21px; }
.v10card span { font-size: 15px; color: var(--mut); line-height: 1.4; }
.v10nfc { width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(91,33,72,.16) 0%, rgba(91,33,72,.06) 55%, rgba(91,33,72,0) 70%); display: flex; align-items: center; justify-content: center; }
.v10nfc i { width: 88px; height: 88px; border-radius: 50%; background: var(--p); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(91,33,72,.35); }
.v10go { flex-shrink: 0; height: 58px; border-radius: 999px; border: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: #fff; background: linear-gradient(135deg, #5B2148, #8E3570); box-shadow: 0 16px 34px rgba(91,33,72,.35); }
.v10go.off { background: rgba(28,20,24,.08); color: #9A8C93; box-shadow: none; }
.v10done { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 36px; }
.v10done i.ok { width: 100px; height: 100px; border-radius: 50%; background: #2E7D4F; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 40px rgba(46,125,79,.35); }
.v10done h2 { margin: 0; font-size: 38px; font-weight: 700; letter-spacing: -.03em; }
.v10done p { margin: 0; font-size: 17px; color: var(--mut); }
.v10row { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.v10cap { height: 54px; padding: 0 24px; border-radius: 999px; border: 0; font-size: 16px; font-weight: 600; }
.v10cap.light { background: rgba(255,255,255,.85); color: var(--ink); }
.v10cap.dark { background: #1C1418; color: #fff; }
@media (max-width: 900px) { .v10 { grid-template-columns: 1fr; height: auto !important; } .v10ms { grid-template-columns: repeat(2, minmax(0, 1fr)); } .v10cash { flex-direction: column; } .v10given { width: auto; } }

/* receipt by e-mail */
.v10mail form { display: flex; gap: 8px; margin-top: 6px; }
.v10mail input { flex: 1; min-width: 0; height: 50px; border: 1px solid #E4DFD9; border-radius: 14px; padding: 0 14px; font: inherit; font-size: 16px; }
.v10mail .btn { width: auto; height: 50px; padding: 0 18px; }
.v10mm { min-height: 20px; margin: 10px 0 0; text-align: center; font-weight: 600; }
