/* POS (TPV) app, 1920x1080, copied from the Unity captures and USS in
   apprestaurantes/.../WebPreview/TPV_handoff (Tpv/*, Kitchen/Base/KitchenBase.uss).
   Used by preview/tpv.html (Edit Apps preview) and the /en/products/ POS mockup.
   Personalised parts (README_tpv.md): --tp-bar / --tp-a (col_ppal_empl), --tp-sec (col_sec_botones),
   --tp-font (letra_empl, class tp-rf). Everything else is fixed. */
.tp { --tp-on: #fff; --tp-on-sec: #fff; --tp-bar: #6699FF; --tp-a: #4D7FFF; --tp-a-soft: rgba(77,127,255,.14); --tp-sec: #F5A524; --tp-font: 'Nunito', sans-serif;
  --ink: #141B2D; --ink2: #3B4560; --mut: #66718C; --line: #E2E7F0; --page: #F4F5F8; --tile: #F1F3F7;
  position: relative; width: 1920px; height: 1080px; overflow: hidden; background: #fff; color: var(--ink); font-family: 'Poppins', sans-serif; -webkit-font-smoothing: antialiased; }
.tp *, .tp *::before, .tp *::after { box-sizing: border-box; }
.tp :where(button) { all: unset; box-sizing: border-box; cursor: pointer; }
.tp .tp-rf, .tp .tp-rf * { font-family: var(--tp-font); }
/* TpvStyle.ApplyFont: with letra_empl every panel takes it (bookings, dish sheet, clock-in...), except the login screen */
.tp.own-font *:not(.tp-brand):not(.tp-brand *) { font-family: var(--tp-font); }
.tp svg { display: block; flex: none; width: 20px; height: 20px; }
.tp-ic { width: 20px; height: 20px; }

/* ---------- top bar (TpvHeader) ---------- */
.tp-bar { position: absolute; left: 0; top: 0; right: 0; height: 90px; z-index: 5; display: flex; align-items: center; padding: 0 24px; background: var(--tp-bar); }
.tp-title { margin-right: 24px; font-size: 26px; font-weight: 700; color: var(--tp-on); white-space: nowrap; }
.tp-grow { flex: 1; }
.tp-tab { display: flex; align-items: center; gap: 8px; height: 44px; margin-left: 6px; padding: 0 14px; border-radius: 12px; background: rgba(255,255,255,.22); color: var(--tp-on); font-size: 16px; font-weight: 700; white-space: nowrap; transition: background .15s; }
.tp-tab.on { background: #fff; color: var(--tp-a); }
.tp-tab.lo { margin-left: 12px; }
.tp-tab svg { width: 18px; height: 18px; }
.tp-pop { position: absolute; z-index: 9; right: 145px; top: 74px; width: 240px; padding: 6px; border-radius: 14px; border-top: 3px solid var(--tp-bar); background: #fff; box-shadow: 0 16px 40px rgba(20,27,45,.18); animation: tpIn .14s ease both; }
.tp-pop button { display: flex; align-items: center; width: 100%; height: 48px; padding: 0 14px; border-radius: 10px; font-size: 16px; font-weight: 700; color: var(--ink); }
.tp-pop button.tap { background: #E4E7EC; }
@keyframes tpIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- body ---------- */
.tp-body { position: absolute; left: 0; right: 0; top: 90px; bottom: 0; }
.tp-dim { position: absolute; inset: 0; z-index: 4; background: rgba(20,27,45,.45); animation: tpFade .2s ease both; }
@keyframes tpFade { from { opacity: 0; } }

/* tables (TpvMesas) */
.tp-left { position: absolute; left: 0; top: 0; bottom: 0; width: 1350px; }
.tp-right { position: absolute; right: 0; top: 0; bottom: 0; width: 570px; background: var(--page); padding: 24px 24px 40px; display: flex; flex-direction: column; z-index: 5; }
.tp-sub { position: absolute; left: 45px; top: 29px; display: flex; gap: 16px; }
.tp-sub button { width: 240px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: #EEF0F4; color: var(--ink2); font-size: 18px; font-weight: 600; }
.tp-sub button.on { background: var(--tp-a); color: var(--tp-on); }
.tp-grid { position: absolute; left: 46px; top: 117px; display: grid; grid-template-columns: repeat(10, 105px); gap: 24px; }
.tp-t { width: 105px; height: 105px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: var(--tile); font-size: 32px; font-weight: 700; color: var(--ink); border: 3px solid transparent; transition: background .35s, color .35s; }
.tp-t.ord { background: #D7DCE5; } .tp-t.rdy { background: #FFC368; color: #fff; } .tp-t.paid { background: #4F80FF; color: #fff; } .tp-t.call { background: #E5484D; color: #fff; }
.tp-t.sel { border-color: var(--ink); }
.tp-t.add { background: #EEF0F3; color: #3B4560; } .tp-t.add svg { width: 34px; height: 34px; }
.tp-dt { margin: 14px 0 18px; text-align: center; font-size: 30px; font-weight: 700; letter-spacing: .01em; }
.tp-rows { display: flex; flex-direction: column; gap: 8px; }
.tp-row { display: flex; align-items: flex-start; gap: 18px; padding: 14px 15px; border-radius: 10px; background: #fff; font-size: 17px; }
.tp-row .q { width: 16px; font-weight: 700; } .tp-row .n { flex: 1; font-weight: 700; } .tp-row .p { font-weight: 700; }
.tp-row small { display: block; font-size: 14px; font-weight: 400; color: var(--mut); margin-top: 3px; } .tp-row small i { font-style: italic; }
/* table state banners and ready dishes (TpvMesas.uss .tm-st, .tm-row.ready) */
.tp-st { display: flex; align-items: center; min-height: 56px; margin-bottom: 10px; padding: 8px 10px 8px 14px; border-radius: 14px; color: #fff; animation: tpIn .25s ease both; }
.tp-st.call { background: #E5484D; } .tp-st.paid { background: #4D7FFF; }
.tp-st svg { width: 22px; height: 22px; margin-right: 12px; }
.tp-st .tx { flex: 1; } .tp-st b { display: block; font-size: 17px; font-weight: 700; } .tp-st small { display: block; margin-top: 2px; font-size: 14px; font-weight: 700; }
.tp-stb { height: 40px; margin-left: 10px; padding: 0 16px; display: flex; align-items: center; border-radius: 10px; background: #fff; color: #B42318; font-size: 15px; font-weight: 700; }
.tp-row.ready { background: #FFF1D9; }
.tp-row small.rd { margin-top: 4px; font-size: 13px; font-weight: 700; color: #9A5B00; }
.tp-row .c { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cbd2dc; margin-top: -1px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; transition: background .3s, border-color .3s; }
.tp-row.done { opacity: .5; }
.tp-row.done .c { background: #34a065; border-color: #34a065; }
.tp-row.done .c::after { content: ""; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) translate(1px,-1px); }
.tp-tot { display: flex; justify-content: space-between; padding: 22px 15px 0; font-size: 19px; font-weight: 700; }
.tp-empty { margin: auto; color: var(--mut); font-size: 18px; font-weight: 600; }
.tp-acts { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.tp-btn { height: 60px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 19px; font-weight: 700; }
.tp-btn svg { width: 20px; height: 20px; }
.tp-btn.pri { background: var(--tp-a); color: var(--tp-on); }
.tp-btn.gr { background: #E4E7EC; }
.tp-btn.off { opacity: .4; }
.tp-btn.tap, .tp-t.tap, .tp-sub button.tap, .tp-tab.tap, .tp-opt.tap, .tp-card.tap, .tp-dc.tap, .tp-key.tap { filter: brightness(.92); }

/* order (TpvCarta + TpvTicket) */
.tp-tags { position: absolute; left: 12px; top: 10px; display: flex; gap: 8px; }
.tp-tags button { height: 44px; padding: 0 18px; display: flex; align-items: center; border-radius: 10px; background: #EEF0F4; color: var(--ink2); font-size: 16px; font-weight: 600; }
.tp-tags button.on { background: var(--tp-a); color: var(--tp-on); }
.tp-dishes { position: absolute; left: 8px; top: 72px; display: grid; grid-template-columns: repeat(7, 180px); gap: 8px; }
.tp-dc { height: 210px; padding: 20px 14px 14px; border-radius: 14px; background: var(--tile); display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.tp-dc b { flex: 1; display: flex; align-items: center; font-size: 18px; line-height: 1.17; font-weight: 700; }
.tp-dc span { font-size: 14px; font-weight: 700; color: var(--mut); }
.tp-dc.off { opacity: .45; }
.tp-sev { position: absolute; left: 40px; bottom: 25px; width: 250px; height: 60px; border-radius: 10px; background: #3B4560; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 19px; font-weight: 700; }
.tp-oh { font-size: 24px; font-weight: 700; } .tp-oh small { display: block; font-size: 15px; font-weight: 400; color: var(--mut); margin-top: 2px; }
.tp-course { display: flex; align-items: center; gap: 12px; margin: 14px 0 16px; font-size: 14px; font-weight: 700; color: var(--ink2); }
.tp-sw { width: 52px; height: 30px; border-radius: 15px; background: #D3D8E1; position: relative; flex: none; transition: background .2s; }
.tp-sw::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.tp-sw.on { background: var(--tp-a); } .tp-sw.on::after { transform: translateX(22px); }
.tp-ti { padding: 14px 14px 10px; border-radius: 10px; background: #fff; margin-bottom: 8px; animation: tpIn .25s ease both; }
.tp-ti .h { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; }
.tp-ti .st { display: flex; justify-content: flex-end; margin-top: 8px; }
.tp-ti .st span { width: 46px; height: 40px; display: flex; align-items: center; justify-content: center; background: #ECEEF2; border-radius: 8px 0 0 8px; font-size: 17px; font-weight: 700; }
.tp-ti .st i { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: #DADDE3; border-radius: 0 8px 8px 0; font-style: normal; font-size: 22px; }
.tp-otot { display: flex; justify-content: space-between; align-items: baseline; margin: auto 6px 14px; font-size: 22px; font-weight: 700; }

/* dish sheet (DetallePlato, Poppins) */
.tp-sheet { position: absolute; z-index: 6; left: 640px; top: 229px; width: 640px; padding: 46px 52px 40px 58px; border-radius: 20px; background: #fff; animation: tpPop .22s ease both; }
@keyframes tpPop { from { opacity: 0; transform: scale(.96); } }
.tp-x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.tp-x svg { width: 18px; height: 18px; }
.tp-sheet .h { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-right: 50px; }
.tp-sheet .h b { font-size: 23px; font-weight: 600; line-height: 1.2; letter-spacing: .01em; }
.tp-sheet .h span { font-size: 21px; font-weight: 600; color: var(--tp-a); white-space: nowrap; }
.tp-sheet .al { margin: 54px 0 0; font-size: 16px; font-weight: 600; letter-spacing: .06em; color: #555; }
.tp-sheet p { margin: 28px 0 0; font-size: 21px; line-height: 1.3; color: #6b6b6b; letter-spacing: .01em; }
.tp-sheet .ft { display: flex; align-items: center; gap: 14px; margin: 44px -32px 0 -28px; padding: 20px 20px 0 22px; border-top: 1px solid var(--line); }
.tp-step { display: flex; align-items: center; height: 66px; padding: 3px; border-radius: 33px; background: #F1F2F4; border: 2px solid #E9EAEE; }
.tp-step i { width: 58px; height: 58px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 26px; font-weight: 700; }
.tp-step span { width: 36px; text-align: center; font-size: 20px; }
.tp-add { flex: 1; height: 60px; border-radius: 30px; background: var(--tp-a); color: var(--tp-on); display: flex; align-items: center; justify-content: center; gap: 24px; font-size: 22px; font-weight: 600; letter-spacing: .02em; }

/* payment (TpvCobro) */
.tp-ph { margin: 14px 0 18px; text-align: center; font-size: 29px; font-weight: 700; }
.tp-opt { display: flex; align-items: center; gap: 16px; height: 76px; padding: 0 24px; margin-bottom: 14px; border-radius: 10px; background: #fff; font-size: 19px; font-weight: 700; animation: tpIn .2s ease both; }
.tp-opt svg { width: 22px; height: 22px; color: var(--ink2); }
.tp-opt.on { box-shadow: inset 0 0 0 2px var(--tp-a); background: var(--tp-a-soft); }
.tp-kv { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; font-weight: 600; color: var(--ink2); }
.tp-kv b { font-size: 26px; color: var(--ink); }
.tp-kv b.xl { font-size: 32px; }
.tp-cnt { display: flex; align-items: center; justify-content: center; gap: 54px; margin: 18px 0 40px; }
.tp-cnt i { width: 90px; height: 90px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 40px; font-weight: 300; color: var(--ink2); }
.tp-cnt b { min-width: 60px; text-align: center; font-size: 56px; }
.tp-tl { display: flex; justify-content: space-between; height: 52px; align-items: center; padding: 0 16px; margin-bottom: 8px; border-radius: 10px; background: #fff; font-size: 17px; }
.tp-tl b { font-weight: 700; }
.tp-tl.on { box-shadow: inset 0 0 0 2px var(--tp-a); background: var(--tp-a-soft); }

/* till (TpvCaja) and pages (TpvMirror) */
.tp-pagebg { position: absolute; inset: 0; background: var(--page); }
.tp-chip { position: absolute; left: 50%; top: 250px; transform: translateX(-50%); padding: 10px 22px; border-radius: 22px; background: #fff; font-size: 18px; font-weight: 600; color: var(--ink2); white-space: nowrap; }
.tp-chip.open { background: var(--tp-a-soft); color: var(--tp-a); }
.tp-cards { position: absolute; left: 0; right: 0; top: 328px; display: flex; flex-wrap: wrap; justify-content: center; gap: 36px; padding: 0 534px; }
.tp-card { width: 260px; height: 170px; border-radius: 16px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-size: 20px; font-weight: 700; }
.tp-card svg { width: 30px; height: 30px; color: var(--ink2); }
.tp-col { position: absolute; left: 410px; width: 1100px; top: 26px; bottom: 24px; display: flex; flex-direction: column; }
.tp-col h2 { margin: 12px 0 26px; font-size: 29px; font-weight: 700; }
.tp-sec { margin: 20px 0 10px; font-size: 20px; font-weight: 600; color: var(--ink2); }
.tp-box { border-radius: 16px; background: #fff; padding: 0 20px; }
.tp-kr { display: flex; justify-content: space-between; align-items: center; height: 56px; border-bottom: 1px solid var(--line); font-size: 18px; }
.tp-kr:last-child { border-bottom: 0; } .tp-kr b { font-weight: 700; }
.tp-kr.big { height: 62px; font-size: 20px; font-weight: 700; } .tp-kr .ok { color: #15A35A; } .tp-kr .bad { color: #E5484D; }
.tp-pact { margin-top: auto; display: flex; justify-content: flex-end; gap: 16px; padding-top: 20px; border-top: 1px solid var(--line); }
.tp-pact .tp-btn { height: 48px; padding: 0 30px; font-size: 16px; border: 1px solid var(--line); }
.tp-pact .tp-btn.pri { border: 0; }
.tp-th, .tp-tr { display: grid; align-items: center; padding: 0 18px; font-size: 17px; }
.tp-th { height: 48px; border-radius: 12px; background: #fff; font-weight: 600; color: var(--ink2); margin-bottom: 8px; }
.tp-tb { flex: 1; border-radius: 12px; background: #fff; overflow: hidden; }
.tp-tr { height: 60px; border-bottom: 1px solid var(--line); animation: tpIn .25s ease both; }
.tp-none { padding: 48px 0; text-align: center; color: #8B93A7; font-size: 18px; font-weight: 600; }
.tp-mv .in { color: #15A35A; font-weight: 700; } .tp-mv .out { color: #E5484D; font-weight: 700; }
.tp-bot { display: flex; justify-content: space-between; margin-top: 18px; }
.tp-bot .tp-btn { width: 300px; }

/* dialogs (TpvDialog) */
.tp-dlg { position: absolute; z-index: 6; left: 660px; top: 354px; width: 600px; padding: 30px 32px 32px; border-radius: 20px; background: var(--page); text-align: center; animation: tpPop .22s ease both; }
.tp-dlg h3 { margin: 0; font-size: 29px; font-weight: 700; } .tp-dlg p { margin: 6px 0 18px; font-size: 15px; color: var(--mut); }
.tp-in { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border: 1px solid var(--ink2); border-radius: 10px; background: #fff; font-size: 22px; font-weight: 600; }
.tp-in .car { width: 2px; height: 26px; background: var(--ink); animation: tpCar 1s steps(1) infinite; margin-right: auto; margin-left: 2px; }
@keyframes tpCar { 50% { opacity: 0; } }
.tp-dlg .tp-acts { grid-template-columns: 1fr 1fr; margin-top: 30px; }
.tp-toast { position: absolute; z-index: 10; left: 50%; top: 116px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 16px 26px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 18px; font-weight: 600; animation: tpIn .25s ease both; white-space: nowrap; }
.tp-toast svg { width: 20px; height: 20px; color: #6EE7A0; }

/* bookings (Reservas, Poppins) */
.tp-bk { position: absolute; inset: 0; background: var(--page); padding: 36px 40px 32px; display: flex; flex-direction: column; }
.tp-bk .top { display: flex; align-items: center; gap: 28px; }
.tp-bk h2 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -.01em; }
.tp-bk .pill { padding: 9px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 23px; font-weight: 500; }
.tp-bk .urg { padding: 9px 20px; border-radius: 14px; background: rgba(77,127,255,.14); color: #1F5BD6; font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.tp-bk .new { margin-left: auto; height: 50px; padding: 0 26px; display: flex; align-items: center; border-radius: 10px; color: var(--tp-on-sec) !important; background: var(--tp-sec); color: #fff; font-size: 16px; font-weight: 500; }
.tp-bk .bar2 { display: flex; align-items: center; gap: 12px; margin: 18px 0 20px; }
.tp-bk .bar2 button { height: 56px; padding: 0 25px; display: flex; align-items: center; border-radius: 10px; background: #E9EBEF; color: var(--ink2); font-size: 21px; font-weight: 500; }
.tp-bk .bar2 button.on { background: var(--tp-a); color: var(--tp-on); }
.tp-bk .srch { margin-left: 16px; width: 240px; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #D6DAE2; border-radius: 6px; background: #fff; color: #8B93A7; font-size: 17px; }
.tp-bk .srch svg { width: 14px; height: 14px; }
.tp-bk .tbl { flex: 1; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.tp-bk .hr, .tp-bk .br { display: grid; grid-template-columns: 106px 96px 1fr 150px 290px; align-items: center; padding-left: 26px; }
.tp-bk .hr { height: 68px; background: #FAFAFB; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.tp-bk .br { height: 76px; border-bottom: 1px solid var(--line); border-left: 4px solid; padding-left: 26px; font-size: 15px; }
.tp-bk .br b { font-weight: 600; } .tp-bk .br .pp { padding-left: 10px; }
.tp-bk .st { display: flex; align-items: center; gap: 10px; }
.tp-bk .chip { width: 160px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 16px; font-weight: 500; transition: background .3s; }
.tp-bk .pen { border-color: #F5A524; } .tp-bk .pen .chip { background: #FFF1DC; }
.tp-bk .con { border-color: #2FB36B; } .tp-bk .con .chip { background: #DDF3E4; }
.tp-bk .can { border-color: #D93636; } .tp-bk .can .chip { background: #FDE0E2; }
.tp-bk .ok, .tp-bk .no { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 20px; }
.tp-bk .ok { background: #DDF3E4; color: #15A35A; } .tp-bk .no { background: #FDE0E2; color: #D93636; }

/* menu management (TpvGestionCarta) */
.tp-mm .hd { display: flex; align-items: center; justify-content: space-between; margin: 0 0 16px; }
.tp-mm .hd h2 { margin: 0; }
.tp-srch { width: 360px; height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid #D6DAE2; border-radius: 10px; background: #fff; color: var(--ink2); font-size: 22px; }
.tp-srch svg { width: 20px; height: 20px; color: #8B93A7; }
.tp-pills { display: flex; gap: 8px; }
.tp-pills button { height: 40px; padding: 0 18px; display: flex; align-items: center; border-radius: 20px; background: #fff; font-size: 15px; font-weight: 600; color: var(--ink2); }
.tp-pills button.on { background: var(--tp-a); color: var(--tp-on); }
.tp-cnt2 { margin: 18px 4px 8px; font-size: 15px; color: var(--mut); }
.tp-mr { display: flex; align-items: center; gap: 14px; height: 76px; padding: 0 18px 0 10px; margin-bottom: 8px; border-radius: 10px; background: #fff; }
.tp-mr .av { width: 56px; height: 56px; border-radius: 8px; background: #EEF0F4; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; color: #8B93A7; }
.tp-mr .tx { flex: 1; } .tp-mr b { display: block; font-size: 18px; font-weight: 700; } .tp-mr small { font-size: 14px; color: var(--mut); }
.tp-mr .tp-sw { width: 56px; height: 32px; border-radius: 16px; } .tp-mr .tp-sw::after { width: 26px; height: 26px; } .tp-mr .tp-sw.on::after { transform: translateX(24px); }
.tp-mr.off b, .tp-mr.off small { opacity: .5; }

/* invoices (TpvMirrorFacturas) */
.tp-sb { display: flex; gap: 12px; margin-bottom: 16px; }
.tp-sb .tp-srch { width: 560px; font-size: 17px; }
.tp-sb .tp-btn { height: 48px; padding: 0 24px; font-size: 16px; border: 1px solid var(--line); }
.tp-ih { display: grid; grid-template-columns: 150px 1fr 140px 150px 120px; align-items: center; height: 48px; padding: 0 32px; font-size: 14px; font-weight: 600; color: var(--ink2); background: #FAFAFB; border-bottom: 1px solid var(--line); }
.tp-ir { display: grid; grid-template-columns: 150px 1fr 140px 150px 120px; align-items: center; height: 60px; padding: 0 32px; font-size: 16px; border-bottom: 1px solid var(--line); animation: tpIn .25s ease both; }
.tp-ir b { font-weight: 700; } .tp-ir .tp-ib { justify-self: end; }
.tp-ib { width: 40px; height: 40px; border-radius: 10px; background: var(--tp-a-soft); color: var(--tp-a); display: flex; align-items: center; justify-content: center; }
.tp-ib svg { width: 20px; height: 20px; }
.tp-cf { display: grid; grid-template-columns: 536px 1fr; gap: 26px; align-items: start; }
.tp-cf .tp-box { padding: 26px 24px 30px; }
.tp-cf h4 { margin: 0 0 18px; font-size: 18px; font-weight: 600; color: var(--ink2); }
.tp-fr { display: flex; align-items: center; margin-bottom: 12px; font-size: 15px; font-weight: 600; color: var(--ink2); }
.tp-fr span { width: 170px; } .tp-fr div { flex: 1; height: 48px; display: flex; align-items: center; padding: 0 14px; border: 1px solid #D6DAE2; border-radius: 8px; font-size: 16px; font-weight: 400; color: var(--ink); }
.tp-fr div.foc { border-color: var(--tp-a); box-shadow: 0 0 0 3px var(--tp-a-soft); }
.tp-sug { position: absolute; z-index: 3; left: 170px; right: 0; top: 52px; padding: 6px 0; border: 1px solid rgba(20,27,45,.10); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(20,27,45,.14); animation: tpIn .2s ease both; }
.tp-sug div { padding: 10px 16px; font-size: 15px; color: var(--ink); } .tp-sug div small { display: block; color: var(--mut); font-size: 13px; }
.tp-sug div.on { background: var(--tp-a-soft); }
.tp-pb { padding: 0 !important; overflow: hidden; } .tp-pb h4 { padding: 26px 24px 0; }
.tp-ph2, .tp-pr { display: grid; grid-template-columns: 1fr 80px 60px 90px; padding: 0 32px; align-items: center; }
.tp-ph2 { height: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #FAFAFB; font-size: 13px; font-weight: 600; color: var(--ink2); }
.tp-pr { height: 46px; font-size: 15px; border-bottom: 1px solid var(--line); } .tp-pr span:not(:first-child), .tp-ph2 span:not(:first-child) { text-align: right; }
.tp-sum { margin: 20px 24px 24px auto; width: 340px; padding: 16px; border-radius: 12px; background: var(--page); font-size: 15px; }
.tp-sum div { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--ink2); } .tp-sum b { color: var(--ink); }
.tp-sum .t { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 21px; font-weight: 700; color: var(--ink); }
.tp-pact .txt { border: 0; background: none; }

/* printer settings (PrinterSettingsUI, Poppins) */
.tp-pr-d { position: absolute; z-index: 6; left: 720px; top: 192px; width: 480px; border-radius: 20px; background: #fff; padding: 0 32px 40px; animation: tpPop .22s ease both; }
.tp-pr-d .hd { display: flex; align-items: center; justify-content: space-between; height: 112px; margin: 0 -32px; padding: 0 56px 0 58px; border-bottom: 1px solid var(--line); font-size: 30px; font-weight: 600; letter-spacing: .02em; }
.tp-pr-d .hd .tp-x { position: static; }
.tp-pr-d p { margin: 46px 26px 22px; font-size: 16px; color: var(--mut); line-height: 1.15; }
.tp-pr-d .stt { display: flex; align-items: center; gap: 14px; height: 50px; margin: 0 24px; padding: 0 14px; border-radius: 10px; background: var(--page); font-size: 13px; }
.tp-pr-d .stt i { width: 10px; height: 10px; border-radius: 50%; background: #15A35A; }
.tp-pr-d label { display: block; margin: 34px 26px 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink2); }
.tp-pr-d .dd { margin: 0 20px; height: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; border: 1px solid #999; border-radius: 3px; background: #E4E4E4; font-size: 14px; }
.tp-pr-d .lg { display: flex; align-items: center; justify-content: space-between; margin: 24px 26px 0; font-size: 13px; color: var(--mut); }
.tp-pr-d .lg span { display: flex; padding: 3px; border-radius: 16px; background: #F1F2F4; } .tp-pr-d .lg span i { padding: 4px 10px; border-radius: 13px; font-style: normal; font-weight: 600; color: var(--ink); } .tp-pr-d .lg span i.on { background: var(--ink); color: #fff; }
.tp-pr-d .ft { display: flex; align-items: center; gap: 28px; margin: 18px -32px 0; padding: 16px 56px 0 48px; border-top: 1px solid var(--line); }
.tp-pr-d .ft .rf { font-size: 16px; font-weight: 600; } .tp-pr-d .ft .sv { flex: 1; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: #D05A6E; color: #fff; font-size: 16px; font-weight: 600; }

/* staff login + clock-in (TpvStaff, Fichajes: Gastrali brand, Nunito) */
.tp-brand { position: absolute; inset: 0; background: linear-gradient(135deg, #6699FF 0%, #4D7FFF 100%); font-family: 'Nunito', sans-serif; }
.tp-brand .bg { position: absolute; left: -10px; top: 300px; width: 760px; height: 800px; border-radius: 380px 380px 0 0; background: rgba(255,255,255,.07); }
.tp-lc { position: absolute; left: 480px; top: 339px; width: 960px; height: 402px; display: flex; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(20,40,120,.18); }
.tp-lc .l { width: 422px; background: #6699FF; display: flex; align-items: center; justify-content: center; }
.tp-lc .l img { width: 300px; }
.tp-lc .r { flex: 1; background: #fff; display: flex; flex-direction: column; align-items: center; padding-top: 44px; }
.tp-lc .av { width: 76px; height: 76px; border-radius: 50%; background: #EAF0FF; display: flex; align-items: center; justify-content: center; color: #4D7FFF; }
.tp-lc .av svg { width: 34px; height: 34px; }
.tp-lc h4 { margin: 24px 0 18px; font-size: 19px; font-weight: 700; }
.tp-lc .fi { width: 374px; height: 48px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border: 1.5px solid #6699FF; border-radius: 10px; color: #9AA3B5; font-size: 19px; }
.tp-lc .fi svg { width: 18px; height: 18px; color: #4D7FFF; }
.tp-lc .b1 { width: 380px; height: 48px; margin-top: 18px; border-radius: 10px; background: #6699FF; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 700; }
.tp-lc .b2 { display: flex; gap: 12px; margin-top: 12px; } .tp-lc .b2 button { width: 184px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 700; }
.tp-lc .ci { background: #FFC368; color: #fff; } .tp-lc .ex { background: #EEF0F4; color: var(--ink2); }
.tp-lc svg { width: 18px; height: 18px; }
.tp-cog { position: absolute; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 23px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32); display: flex; align-items: center; justify-content: center; color: #fff; }
.tp-cog svg { width: 24px; height: 24px; }
.tp-pin { position: absolute; z-index: 6; left: 730px; top: 240px; width: 460px; padding: 28px 32px 36px; border-radius: 16px; background: #fff; font-family: 'Nunito', sans-serif; animation: tpPop .22s ease both; }
.tp-pin .hd { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.tp-pin .hd b { flex: 1; font-size: 31px; font-weight: 600; } .tp-pin .hd small { font-size: 16px; color: #8B93A7; }
.tp-pin .hd .tp-x { position: static; }
.tp-pin .who { margin: 26px 0 0; text-align: center; font-size: 16px; font-weight: 600; color: #8B93A7; }
.tp-pin .dots { display: flex; justify-content: center; gap: 16px; margin: 52px 0 30px; }
.tp-pin .dots i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #9AA3B5; transition: background .15s; }
.tp-pin .dots i.on { background: var(--ink); border-color: var(--ink); }
.tp-pin .keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 16px; }
.tp-key { height: 68px; display: flex; align-items: center; justify-content: center; border: 1px solid #E5E7EB; border-radius: 10px; background: #F7F8FA; font-size: 24px; color: var(--ink); }
.tp-key.ent { background: #4D7FFF; color: #fff; border: 0; font-size: 20px; opacity: .4; transition: opacity .2s; } .tp-key.ent.on { opacity: 1; }
.tp-key svg { width: 26px; height: 26px; }
.tp-okmsg { margin: 18px 0 0; text-align: center; font-size: 17px; font-weight: 700; color: #15A35A; animation: tpIn .25s ease both; }
.tp-rep .tp-sec { margin: 14px 0 8px; } .tp-rep .tp-kr { height: 45px; } .tp-rep .tp-kr.big { height: 50px; } .tp-rep .tp-pact { padding-top: 14px; }

/* ---------- delivery / collection (DELIVERY_NOTES.md, captures 69-73) ---------- */
.tp-t.add { cursor: pointer; }
/* dialogs (TpvMirror + TpvDialog.uss): open 180 ms fade + scale .97 > 1 ease-out cubic, close 160 ms */
.tp-cdim { position: absolute; inset: 0; z-index: 20; background: rgba(20,27,45,.45); animation: tpFade .18s cubic-bezier(.33,1,.68,1) both; }
.tp-cd { position: absolute; z-index: 21; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 22px 32px 32px; border-radius: 24px; background: #F3F4F6; color: var(--ink);
  animation: tpDlg .18s cubic-bezier(.33,1,.68,1) both; }
@keyframes tpDlg { from { opacity: 0; transform: translate(-50%, -50%) scale(.97); } }
.tp-cdim.out { animation: tpOut .16s ease both; } .tp-cd.out { animation: tpDlgOut .16s ease both; }
@keyframes tpOut { to { opacity: 0; } } @keyframes tpDlgOut { to { opacity: 0; transform: translate(-50%, -50%) scale(.97); } }
.tp-cd h3 { margin: 0 0 14px; text-align: center; font-size: 30px; font-weight: 700; }
.tp-cx { position: absolute; right: 14px; top: 14px; width: 48px; height: 48px; border-radius: 50%; background: #E4E7EC; display: flex; align-items: center; justify-content: center; color: var(--ink2); }
.tp-cx svg { width: 18px; height: 18px; }
.tp-dco { width: 600px; }
.tp-corow { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; margin-bottom: 6px; padding: 0 16px; border-radius: 10px; background: #fff; font-size: 18px; }
.tp-dcu { width: 720px; }
.tp-dcu .fr { display: flex; align-items: center; margin-bottom: 14px; }
.tp-dcu label { width: 130px; flex: none; font-size: 18px; font-weight: 700; color: var(--ink2); }
.tp-dcu .fi { flex: 1; height: 56px; display: flex; align-items: center; padding: 0 16px; border: 1px solid #E2E7F0; border-radius: 10px; background: #fff; font-size: 22px; white-space: nowrap; overflow: hidden; }
.tp-dcu .fi.on { border-color: var(--tp-a); }
.tp-dcu .car { width: 2px; height: 26px; margin-left: 2px; background: var(--ink); animation: tpCar 1s steps(1) infinite; }
.tp-ck { display: flex; align-items: center; gap: 12px; margin: 22px 14px 18px; font-size: 17px; }
.tp-ck i { width: 26px; height: 26px; border-radius: 6px; border: 2px solid #C9CFDA; background: #fff; display: flex; align-items: center; justify-content: center; }
.tp-ck i svg { width: 18px; height: 18px; opacity: 0; }
.tp-ck.on i { background: var(--tp-a); border-color: var(--tp-a); color: var(--tp-on); } .tp-ck.on i svg { opacity: 1; }
.tp-dcu .sg button { display: flex; align-items: center; width: 100%; height: 60px; margin-bottom: 8px; padding: 0 16px; border-radius: 10px; background: #fff; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.tp-dcu .ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 6px 0; }
.tp-dcu .ba .tp-btn.gr { background: #E4E7EC; }
/* order screen of a delivery / collection order */
.tp-seeprev { width: 100%; height: 48px; margin-bottom: 10px; }
.tp-seeprev svg { width: 18px; height: 18px; }
.tp-left.narrow .tp-dishes { grid-template-columns: repeat(4, 180px); }
.tp-prev { position: absolute; left: 800px; top: 0; bottom: 0; width: 550px; z-index: 4; padding: 30px 24px 24px; background: var(--page); display: flex; flex-direction: column; }
.tp-prev .hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.tp-prev .hd b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.tp-prev .hd .tp-x { position: static; background: #fff; }
.tp-prev .ls { flex: 1; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.tp-prev .pc { display: flex; flex-direction: column; padding: 22px 22px 20px; border-bottom: 1px solid var(--line); }
.tp-prev .ph { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.tp-prev .bd { padding: 4px 12px; border-radius: 8px; background: #E2ECEF; color: #2563C9; font-size: 20px; font-weight: 700; }
.tp-prev .ph b { font-size: 20px; font-weight: 700; }
.tp-prev .pl { display: flex; align-items: center; height: 42px; font-size: 16px; }
.tp-prev .pl span { width: 46px; font-size: 20px; color: var(--mut); }
.tp-prev .sel { align-self: flex-end; height: 40px; padding: 0 18px; display: flex; align-items: center; border-radius: 8px; background: var(--tp-a); color: var(--tp-on); font-size: 15px; font-weight: 700; }
.tp-prev .none { margin: 24px; color: var(--mut); font-size: 17px; }
